IE8 innerHTML removes attribute quotes

October 29, 2010 · Leave a Comment
Filed under: Browser Compatibility, Browsers, Featured, JavaScript 

When you get the innerHTML of a DOM node in IE, if there are no spaces in an attribute value, IE will remove the quotes around it.

So to over come this problem you can use the below function to replace it with Quotes again.

function iereplaceInnerHTML(obj, convertToLowerCase) {
 var zz = obj.innerHTML
     ,z = zz.match(/<\/?\w+((\s+\w+(\s*=\s*(?:".*?"|'.*?'|[^'">\s]+))?)+\s*|\s*)\/?>/g);

  if (z){
    for (var i=0;i]/g;
      z[i] = z[i]
              .replace(/(])/g
              , replacer = function(){
                  var args = Array.prototype.slice.call(arguments);
                  return '="'+(convertToLowerCase ? args[2].toLowerCase() : args[2])+'"'+args[3];
                };
          z[i] = z[i].replace(y[j],y[j].replace(replaceRE,replacer));
          j++;
        }
       }
       zz = zz.replace(zSaved,z[i]);
     }
   }
  zz = zz.replace("colSpan=","colspan=");
  return zz;
 }



Usage :

iereplaceInnerHTML(document.getElementById('test'),'');

Asia’s Largest Open Source Conference! In Chennai INDIA

June 10, 2010 · 1 Comment
Filed under: Featured, JavaScript, LAMP, Linux, MySql, PHP, Postgres, Technology News 

Asia’s largest conference on open source, to be held from 19th-21st September, 2010 at Chennai, India (more: http://osidays.com).

OSI Days 2010 is the 7th and latest conference in the rich legacy established by the Linux Asia series of conference in India. Organised by the Forum for Open Source Initiatives in India (FOSII) and the Linux for You magazine (part of the EFY Group), OSI Days serves as the focal point for the convergence of the Open Source Community and Industry in Asia.

The conference is targeted at the Policy & Decision makers in a technological ecosystem – Government, Academicians, CXOs, SMEs, Developers and hardcore hackers. OSI Days 2010 will bring together over 3000 of the finest people in the open source domain together to discuss and confer on varied and relevant topics including:

  • Mobile: App Development, Game Development, Android, iPhone, Symbian & Others
  • IT Managers / Business: Legal, Community Management, Best Practices, Marketing Strategies, Open Web / Standardization, Business Models
  • Cloud Computing: Tools and Platforms, Cloudnomics, Cloud for Dummies & Others
  • Government: Applications, eGovernance , Case Study, Legal
  • Hardware: Infrastructure Management, Security, Semi Embedded Devices, Parallelization, Grid, Multi Core, Multi Threading, Virtualization & Others
  • PHP: PHP 5 & 6, PHP Security, Frameworks, Architecture / QA & Best Practices
  • Ruby on Rails
  • Drupal: Best Practices, Module Development, Theme Development, Scaling/ Management/ Performance & Others
  • Databases: MySQL, NoSQL, CouchDB, PostgreSQL, Ingres, SQLite & Others
  • Java Script
  • Developer / Tools & Techniques

(For details: please See the conference schedule at: http://osidays.com/schedule)

The Call for Papers are open for the conference till June 15th (more: http://osidays.com/call-for-papers). We invite you to come join us in promoting open source technologies and projects by participating at the confernce as speakers and contributing to the knowledge and wisdom at OSI Days 2010.

For any clarifications,
Dhiraj Khare
OSI Days 2010
dhiraj@osidays.com

Schedule at a Glance

A

B

C

D

E

S

U

N

D

A

Y

Panel Discussions

FOSS for Everyone

Sessions

PHP

Sessions

Drupal

Training/Workshop

Mobile Application Development

Training/Workshop

Zend Certification Training

FOSS Awards

M

O

N

D

A

Y

Panel Discussions

IT Dev Web

Sessions

PHP

Panel Discussions

IT Implementer

Training/Workshop

MySQL

Training/Workshop

TBA

T

U

E

S

D

A

Y

IT Dev Mob

Sessions

Open Source Databases

CXO Summit

Training/Workshop

TBA

Training/Workshop

Open Source Databases

Opera, Safari Beat Chrome On Google’s Own JavaScript Conformance Test

Back in June, Google launched Sputnik, a suite of tools that runs over 5,000 tests to check a web browser’s JavaScript conformance. Last week, they made the tool a lot easier for anyone to use, with a version that works in the web browser. The results are interesting.

Opera, Safari Beat Chrome

Notably, both the Opera and Safari web browsers beat Google’s own Chrome browser in the test. As you can see in the picture above, Opera is the clear leader, with only 78 failures (the closer to the center, the less errors). Safari came in second with 159 errors, with Chrome in third with 218 errors. Firefox is close behind with 259 errors, while Internet Explorer is the outlier with 463 errors.

These tests were run on Windows machines, with the latest released version of each browser. Using the web tool on my Mac, though, shows similar results (at least for Opera, Chrome, Safari, and Firefox — there is no IE for Mac anymore).

While much of the focus on JavaScript is about speed (that’s what the SunSpider test measures, for example), Sputnik is interesting because it focuses on conformity, making it more like the Acid3 test, which tests web standards compliance. Chrome, Safari, and Opera have all passed Acid3, with Firefox getting very close (94/100 for Firefox 3.6). IE, meanwhile, again lags behind with just 20/100 for IE8. And even the new IE9 preview only scores 55/100.

Speaking of IE9, I tried to run the Sputnik tool in the preview build of the new browser on Windows 7. Unfortunately, it completely shut down several times after getting up to about 50 failures after only a few hundred of the 5,000+ tests — not a good sign. But again, it’s just a very early preview release of the browser, and early SunSpider results for the browser have been good.

At Last Dojo Toolkit in Debian and Ubuntu | shermanns life

February 6, 2010 · Leave a Comment
Filed under: Dojo Toolkit, JavaScript 

It took a long time for Dojo Toolkit to reach Debian and therefore Ubuntus package archives. Well but now it's in and it's time to give Zend Framework what

bill's blog | The Dojo Toolkit

February 6, 2010 · Leave a Comment
Filed under: Dojo Toolkit, JavaScript 

Weve released the second beta for the dojo 1.3 release We are expecting this to be the last beta It's downloadable from downloaddojotoolkitorg so be sure to

License | The Dojo Toolkit

February 6, 2010 · Leave a Comment
Filed under: Dojo Toolkit, JavaScript 

Freely use Dojo to build applications and services; Distribute Dojo as a part of commercial products; Modify Dojo make extensions to the toolkit and produce

Twitter / dojotoolkit: dojo.beer("qcon","london", …

February 6, 2010 · Leave a Comment
Filed under: Dojo Toolkit, JavaScript 

dojo.beer("qcon","london", "20090311") http://qconlondon.com/london-2010/ usergroups.

Online Editor for the Web (JavaScript, MooTools, jQuery, Prototype

February 6, 2010 · Leave a Comment
Filed under: Dojo Toolkit, JavaScript 

Online 4 pane (HTML, JavaScript, CSS,and results) editor. Loads most of the popular JavaScript libraries.Read the full article at the source.


Web Developer – http://wdtoolkit.com/

Dojo Contributors | The Dojo Toolkit

February 6, 2010 · Leave a Comment
Filed under: Dojo Toolkit, JavaScript 

dojotoolkit-fr.org. Easy!Designs, LLC: Aaron Gustafson, Matt Haris, Daniel Ryan Element^N, Inc. dba apstrata: Michael Liss, Rabih Nassar, Rola Kazzaz,

Re: Dojo toolkit integration with CakePHP now supported!!

February 6, 2010 · Leave a Comment
Filed under: Dojo Toolkit, JavaScript 

Re: Dojo toolkit integration with CakePHP now supported!! Walther Tue, 26 Jan 2010 23:08:24 -0800. This looks very promising (I don't use dojo, but still).

Next Page »