<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-4210075784363570204.post1951112387326596118..comments</id><updated>2010-02-28T22:07:04.361-08:00</updated><category term='Craigslist'/><category term='MVC'/><category term='Firefox development'/><category term='Family'/><category term='Startups'/><category term='AJAX'/><category term='Browser Testing'/><category term='Communities'/><category term='XUL'/><category term='Windows'/><category term='firewood'/><category term='HTML Signatures'/><category term='Stack Exchange'/><category term='Programming'/><category term='Static pages'/><category term='Greasemonkey'/><category term='VPN'/><category term='Cross-platform'/><category term='Marketing'/><category term='Obfuscation'/><category term='Spring'/><category term='Open Source Licensing'/><category term='Struts'/><category term='Project Management'/><category term='XSLT'/><category term='Data Loss Prevention'/><category term='QA'/><category term='Problem Solving'/><category term='Remote XUL'/><category term='Gmail'/><category term='XML'/><category term='Social Networks'/><category term='Employment'/><category term='Java'/><category term='Web 2.0'/><category term='Google'/><category term='Compression'/><category term='Web Hosting'/><category term='Business'/><category term='PHP'/><category term='Frameworks'/><category term='String parsing'/><category term='Linux'/><category term='Pacman'/><category term='Collaboration'/><category term='Operating systems'/><category term='Ubuntu'/><category term='JavaScript'/><category term='stackexchange'/><category term='Namespaces'/><title type='text'>Comments on Open Source Opportunities: Nested-Nested Quotes</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://blog.opensourceopportunities.com/feeds/1951112387326596118/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4210075784363570204/1951112387326596118/comments/default'/><link rel='alternate' type='text/html' href='http://blog.opensourceopportunities.com/2007/10/nested-nested-quotes.html'/><author><name>James Mortensen</name><uri>http://www.blogger.com/profile/14761411429474089032</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>12</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4210075784363570204.post-1163004855974212007</id><published>2010-02-28T22:07:04.361-08:00</published><updated>2010-02-28T22:07:04.361-08:00</updated><title type='text'>Hi Ryan,

You inspired me to write a very simple t...</title><content type='html'>Hi Ryan,&lt;br /&gt;&lt;br /&gt;You inspired me to write a very simple test case for solving this problem.  &lt;br /&gt;&lt;br /&gt;In the code below, I replace Google Analytics pageTracker namespace with my own.  I include a function called _trackEvent that does nothing but output the third parameter, which is the one you&amp;#39;re having problems with.&lt;br /&gt;&lt;br /&gt;I then create a single textbox to contain a &amp;quot;name&amp;quot;.  I include two divs, one represents the original code you submitted to me.  The other represents a modified version.  Instead of onsubmit, I use onclick.  What matters is what&amp;#39;s inside the attribute.&lt;br /&gt;&lt;br /&gt;Click either link, and an alertbox will appear.  One will show you that the function &amp;quot;document.getElementById&amp;quot; is never evaluated while the other link will clearly show the name from the textbox.&lt;br /&gt;&lt;br /&gt;Using the second link, I could swap out my pageTracker namespace with Google Analytics, click on the second link, and know that the test data is being tracked by the analytics.&lt;br /&gt;&lt;br /&gt;This is intended to demonstrate how you can write a simple, easy test case in JavaScript to help you verify that the results of one module of your code are correctly passing the values as the proper inputs to another module.&lt;br /&gt;&lt;br /&gt;To run the code below, copy to a file on your desktop called &amp;quot;test.html&amp;quot;, save, and run in Mozilla Firefox.  &lt;br /&gt;&lt;br /&gt;&amp;lt;html&amp;gt;&lt;br /&gt;&amp;lt;head&amp;gt;&lt;br /&gt;&amp;lt;style&amp;gt;&lt;br /&gt;.test {&lt;br /&gt;   color:blue;&lt;br /&gt;   text-decoration:underline;&lt;br /&gt;   cursor:pointer;&lt;br /&gt;   cursor:hand;&lt;br /&gt;   padding:0 0 10px 0;&lt;br /&gt;   &lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&amp;lt;/style&amp;gt;&lt;br /&gt;&amp;lt;script type=&amp;quot;text/javascript&amp;quot;&amp;gt;&lt;br /&gt;&lt;br /&gt;// In the author&amp;#39;s code, I&amp;#39;m not sure what this function is supposed to do, but it doesn&amp;#39;t matter.  All I need to do is see the input values passed to the final function call.&lt;br /&gt;function MM_callJS(strFunct) {&lt;br /&gt; alert(strFunct);&lt;br /&gt;        eval(strFunct);&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;// I replace Google Analytics&amp;#39;s pageTracker namespace with my own, which includes a function that just outputs what I expect the value I pass in to be.  If the data I&amp;#39;m passing in doesn&amp;#39;t look like what I expect, I can use this tool to help me debug it.&lt;br /&gt;var pageTracker = { &lt;br /&gt;  _trackEvent: function(strEmail,strQuote,strValue) {&lt;br /&gt;&lt;br /&gt; alert(&amp;#39;You know your code is working if you see the value of the third argument here: &amp;#39; + strValue);&lt;br /&gt;  }&lt;br /&gt;};&lt;br /&gt;&lt;br /&gt;/* &lt;br /&gt;&lt;br /&gt;When you get your code to the point it is in the second example, you&amp;#39;ll then know it is passing in the correct inputs, then you can swap your pageTracker namespace out with Google Analytics.&lt;br /&gt;&lt;br /&gt;*/&lt;br /&gt;&lt;br /&gt;&amp;lt;/script&amp;gt;&lt;br /&gt;&amp;lt;/head&amp;gt;&lt;br /&gt;&amp;lt;body&amp;gt;&lt;br /&gt;&amp;lt;div id=&amp;quot;test1&amp;quot; class=&amp;quot;test&amp;quot; onclick=&amp;quot;MM_callJS(&amp;#39;pageTracker._trackEvent(\&amp;#39;Email\&amp;#39;, \&amp;#39;Quote\&amp;#39;, \&amp;#39;document.getElementById(\&amp;amp;quot;name\&amp;amp;quot;).value\&amp;#39;)&amp;#39;)&amp;quot;&amp;gt;Test1:  First attempt, you&amp;#39;ll see the function name alerted instead of the value.&amp;lt;/div&amp;gt;&lt;br /&gt;&amp;lt;div id=&amp;quot;test2&amp;quot; class=&amp;quot;test&amp;quot; onclick=&amp;quot;MM_callJS(&amp;#39;pageTracker._trackEvent(\&amp;#39;Email\&amp;#39;, \&amp;#39;Quote\&amp;#39;, \&amp;#39;&amp;#39; + document.getElementById(&amp;#39;name&amp;#39;).value + &amp;#39;\&amp;#39;)&amp;#39;)&amp;quot;&amp;gt;Test1:  First attempt, you&amp;#39;ll see the function name alerted instead of the value.&amp;lt;/div&amp;gt;&lt;br /&gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;&amp;lt;p&amp;gt;Below is the &amp;quot;name&amp;quot; from the form:&amp;lt;/p&amp;gt;&lt;br /&gt;&amp;lt;input id=&amp;quot;name&amp;quot; value=&amp;quot;James&amp;quot;&amp;gt;&amp;lt;/input&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;/body&amp;gt;&lt;br /&gt;&amp;lt;/html&amp;gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4210075784363570204/1951112387326596118/comments/default/1163004855974212007'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4210075784363570204/1951112387326596118/comments/default/1163004855974212007'/><link rel='alternate' type='text/html' href='http://blog.opensourceopportunities.com/2007/10/nested-nested-quotes.html?showComment=1267423624361#c1163004855974212007' title=''/><author><name>James Mortensen</name><uri>http://www.blogger.com/profile/14761411429474089032</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.opensourceopportunities.com/2007/10/nested-nested-quotes.html' ref='tag:blogger.com,1999:blog-4210075784363570204.post-1951112387326596118' source='http://www.blogger.com/feeds/4210075784363570204/posts/default/1951112387326596118' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-785970823'/></entry><entry><id>tag:blogger.com,1999:blog-4210075784363570204.post-564496101990752406</id><published>2010-02-26T01:39:01.801-08:00</published><updated>2010-02-26T01:39:01.801-08:00</updated><title type='text'>Hi,

I am using some Javascript tracking code to t...</title><content type='html'>Hi,&lt;br /&gt;&lt;br /&gt;I am using some Javascript tracking code to track clients emailing me; however, I am having a slight problem. Here is my code:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;form action=&amp;quot;&amp;quot; method=&amp;quot;post&amp;quot; onsubmit=&amp;quot;MM_callJS(&amp;#39;pageTracker._trackEvent(\&amp;#39;Email\&amp;#39;, \&amp;#39;Quote\&amp;#39;, \&amp;#39;document.getElementById(\&amp;amp;quot;name\&amp;amp;quot;).value\&amp;#39;)&amp;#39;)&amp;quot;&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The problem is with the onsubmit method. It all works fine and tracks properly; however, I am trying to get the users name from the javascript form in the third argument:&lt;br /&gt;&lt;br /&gt;\&amp;#39;document.getElementById(\&amp;amp;quot;name\&amp;amp;quot;).value\&amp;#39;)&amp;#39;&lt;br /&gt;&lt;br /&gt;However, it just returns the actual words document.getElementById(&amp;quot;name&amp;quot;).value&amp;#39;) rather than giving me what I want (the name of the user entered into the &amp;quot;name&amp;quot; text field.&lt;br /&gt;&lt;br /&gt;What am I doing wrong?&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;&lt;br /&gt;Ryan</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4210075784363570204/1951112387326596118/comments/default/564496101990752406'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4210075784363570204/1951112387326596118/comments/default/564496101990752406'/><link rel='alternate' type='text/html' href='http://blog.opensourceopportunities.com/2007/10/nested-nested-quotes.html?showComment=1267177141801#c564496101990752406' title=''/><author><name>Ryan</name><uri>http://www.blogger.com/profile/18235524694684540665</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.opensourceopportunities.com/2007/10/nested-nested-quotes.html' ref='tag:blogger.com,1999:blog-4210075784363570204.post-1951112387326596118' source='http://www.blogger.com/feeds/4210075784363570204/posts/default/1951112387326596118' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-353887597'/></entry><entry><id>tag:blogger.com,1999:blog-4210075784363570204.post-8519502016033162330</id><published>2009-03-06T18:48:00.000-08:00</published><updated>2009-03-06T18:48:00.000-08:00</updated><title type='text'>I'm glad to hear that people are getting use out o...</title><content type='html'>I'm glad to hear that people are getting use out of this.  I had a lot of fun writing this article; thanks for the feedback!&lt;BR/&gt;&lt;BR/&gt;James</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4210075784363570204/1951112387326596118/comments/default/8519502016033162330'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4210075784363570204/1951112387326596118/comments/default/8519502016033162330'/><link rel='alternate' type='text/html' href='http://blog.opensourceopportunities.com/2007/10/nested-nested-quotes.html?showComment=1236394080000#c8519502016033162330' title=''/><author><name>James Mortensen</name><uri>http://www.blogger.com/profile/14761411429474089032</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.opensourceopportunities.com/2007/10/nested-nested-quotes.html' ref='tag:blogger.com,1999:blog-4210075784363570204.post-1951112387326596118' source='http://www.blogger.com/feeds/4210075784363570204/posts/default/1951112387326596118' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-785970823'/></entry><entry><id>tag:blogger.com,1999:blog-4210075784363570204.post-3018729437886972814</id><published>2009-03-02T20:58:00.000-08:00</published><updated>2009-03-02T20:58:00.000-08:00</updated><title type='text'>Great post!&lt;br&gt;&lt;br&gt;This was really helpful in a re...</title><content type='html'>Great post!&lt;BR/&gt;&lt;BR/&gt;This was really helpful in a recent update to our web site.&lt;BR/&gt;&lt;BR/&gt;On the site, server side ASP.NET code needs to generate javascript code that contains a document.write statement which passes quoted string parameters to a function to 'flip' an image (the image is an &lt;A HREF="http://www.flipscript.com" REL="nofollow"&gt;ambigram&lt;/A&gt;.&lt;BR/&gt;&lt;BR/&gt;The nesting became quite silly, but it was actually in the simplest form it could be to get the job done!&lt;BR/&gt;&lt;BR/&gt;Anyway, thanks for taking the time to do such a nice write-up.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4210075784363570204/1951112387326596118/comments/default/3018729437886972814'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4210075784363570204/1951112387326596118/comments/default/3018729437886972814'/><link rel='alternate' type='text/html' href='http://blog.opensourceopportunities.com/2007/10/nested-nested-quotes.html?showComment=1236056280000#c3018729437886972814' title=''/><author><name>FlipScript</name><uri>http://www.blogger.com/profile/16302814298276475242</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.opensourceopportunities.com/2007/10/nested-nested-quotes.html' ref='tag:blogger.com,1999:blog-4210075784363570204.post-1951112387326596118' source='http://www.blogger.com/feeds/4210075784363570204/posts/default/1951112387326596118' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-916829185'/></entry><entry><id>tag:blogger.com,1999:blog-4210075784363570204.post-8704135699130121368</id><published>2009-01-08T21:21:00.000-08:00</published><updated>2009-01-08T21:21:00.000-08:00</updated><title type='text'>I managed to get through it, in the onclick string...</title><content type='html'>I managed to get through it, in the onclick string I used function(){ }&lt;BR/&gt;Thanks though</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4210075784363570204/1951112387326596118/comments/default/8704135699130121368'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4210075784363570204/1951112387326596118/comments/default/8704135699130121368'/><link rel='alternate' type='text/html' href='http://blog.opensourceopportunities.com/2007/10/nested-nested-quotes.html?showComment=1231478460000#c8704135699130121368' title=''/><author><name>Gilberto</name><uri>http://www.blogger.com/profile/05439053598796099144</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_3duhhssxaLI/R1jPQFF6b5I/AAAAAAAAAAM/vEi_EhoOYKQ/S220/iop.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.opensourceopportunities.com/2007/10/nested-nested-quotes.html' ref='tag:blogger.com,1999:blog-4210075784363570204.post-1951112387326596118' source='http://www.blogger.com/feeds/4210075784363570204/posts/default/1951112387326596118' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1625918018'/></entry><entry><id>tag:blogger.com,1999:blog-4210075784363570204.post-6379199761358362346</id><published>2009-01-07T23:31:00.000-08:00</published><updated>2009-01-07T23:31:00.000-08:00</updated><title type='text'>And how to make literal quotes non-literal O_O tha...</title><content type='html'>And how to make literal quotes non-literal O_O that&amp;#39;s what I&amp;#39;m looking for: this is my code, can you help me?&lt;BR/&gt;&lt;BR/&gt;onmouseout=\&amp;quot;javascript: document.getElementById(&amp;#39;inp_&amp;quot;.$fila[&amp;#39;id&amp;#39;].&amp;quot;&amp;#39;).onclick=&amp;#39;location.href=&amp;#39;inbox?setla=true&amp;amp;lang=&amp;quot;.$lenguaje.&amp;quot;&amp;amp;ver=mensaje&amp;amp;id=&amp;quot;.$fila[&amp;#39;id&amp;#39;].$leer.&amp;quot;&amp;#39;&amp;#39;; if (document.getElementById(&amp;#39;chec_&amp;quot;.$fila[&amp;#39;id&amp;#39;].&amp;quot;&amp;#39;).checked == true){ document.getElementById(&amp;#39;chec_&amp;quot;.$fila[&amp;#39;id&amp;#39;].&amp;quot;&amp;#39;).value = &amp;#39;1&amp;#39;; } else if (document.getElementById(&amp;#39;chec_&amp;quot;.$fila[&amp;#39;id&amp;#39;].&amp;quot;&amp;#39;).checked == false){ document.getElementById(&amp;#39;chec_&amp;quot;.$fila[&amp;#39;id&amp;#39;].&amp;quot;&amp;#39;).value = &amp;#39;null&amp;#39;; }\&amp;quot;&amp;gt;&amp;quot;;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4210075784363570204/1951112387326596118/comments/default/6379199761358362346'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4210075784363570204/1951112387326596118/comments/default/6379199761358362346'/><link rel='alternate' type='text/html' href='http://blog.opensourceopportunities.com/2007/10/nested-nested-quotes.html?showComment=1231399860000#c6379199761358362346' title=''/><author><name>Gilberto</name><uri>http://www.blogger.com/profile/05439053598796099144</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_3duhhssxaLI/R1jPQFF6b5I/AAAAAAAAAAM/vEi_EhoOYKQ/S220/iop.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.opensourceopportunities.com/2007/10/nested-nested-quotes.html' ref='tag:blogger.com,1999:blog-4210075784363570204.post-1951112387326596118' source='http://www.blogger.com/feeds/4210075784363570204/posts/default/1951112387326596118' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1625918018'/></entry><entry><id>tag:blogger.com,1999:blog-4210075784363570204.post-4821830132420171849</id><published>2008-12-18T00:18:00.000-08:00</published><updated>2008-12-18T00:18:00.000-08:00</updated><title type='text'>Thank you,your piece was pretty helpful. I am pers...</title><content type='html'>Thank you,your piece was pretty helpful. I am personally using PHP right now so I'd like to add that instead of using the escape sequence in '/' we can also use the dot operator for the purpose.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4210075784363570204/1951112387326596118/comments/default/4821830132420171849'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4210075784363570204/1951112387326596118/comments/default/4821830132420171849'/><link rel='alternate' type='text/html' href='http://blog.opensourceopportunities.com/2007/10/nested-nested-quotes.html?showComment=1229588280000#c4821830132420171849' title=''/><author><name>Anubhav</name><uri>http://www.blogger.com/profile/00205099153134503895</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.opensourceopportunities.com/2007/10/nested-nested-quotes.html' ref='tag:blogger.com,1999:blog-4210075784363570204.post-1951112387326596118' source='http://www.blogger.com/feeds/4210075784363570204/posts/default/1951112387326596118' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1085586784'/></entry><entry><id>tag:blogger.com,1999:blog-4210075784363570204.post-6092075331363331669</id><published>2008-08-13T05:26:00.000-07:00</published><updated>2008-08-13T05:26:00.000-07:00</updated><title type='text'>&amp;lt;td onclick=&amp;quot;f_myFunction(&amp;#39;someStringC...</title><content type='html'>&amp;lt;td onclick=&amp;quot;f_myFunction(&amp;#39;someStringContaining\&amp;#39;SingleAnd\&amp;quot;DoubleQuote&amp;#39;);&amp;quot; &amp;gt;&lt;BR/&gt;&lt;BR/&gt;&lt;BR/&gt;Therefore, for the above example to function properly, you would only escape the inner single quotes, not the double quotes.&lt;BR/&gt;&lt;BR/&gt;James - thank for that info&lt;BR/&gt;&lt;BR/&gt;&lt;BR/&gt;But if we are not going to escape the double quotes then it is going end the onClick attribute def!</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4210075784363570204/1951112387326596118/comments/default/6092075331363331669'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4210075784363570204/1951112387326596118/comments/default/6092075331363331669'/><link rel='alternate' type='text/html' href='http://blog.opensourceopportunities.com/2007/10/nested-nested-quotes.html?showComment=1218630360000#c6092075331363331669' title=''/><author><name>Ramesh</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.opensourceopportunities.com/2007/10/nested-nested-quotes.html' ref='tag:blogger.com,1999:blog-4210075784363570204.post-1951112387326596118' source='http://www.blogger.com/feeds/4210075784363570204/posts/default/1951112387326596118' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1475573070'/></entry><entry><id>tag:blogger.com,1999:blog-4210075784363570204.post-2831141746670777666</id><published>2008-08-12T18:41:00.000-07:00</published><updated>2008-08-12T18:41:00.000-07:00</updated><title type='text'>&amp;lt;td onclick=&amp;quot;f_myFunction(&amp;#39;someStringC...</title><content type='html'>&amp;lt;td onclick=&amp;quot;f_myFunction(&amp;#39;someStringContaining\&amp;#39;SingleAnd\&amp;quot;DoubleQuote&amp;#39;);&amp;quot; &amp;gt;&lt;BR/&gt;&lt;BR/&gt;The top level quote is a single quote.  This means that any single quotes inside the string must be escaped with a &amp;#39;\&amp;#39;.  The double quotes will be treated as regular characters.&lt;BR/&gt;&lt;BR/&gt;Therefore, for the above example to function properly, you would only escape the inner single quotes, not the double quotes.&lt;BR/&gt;&lt;BR/&gt;James</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4210075784363570204/1951112387326596118/comments/default/2831141746670777666'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4210075784363570204/1951112387326596118/comments/default/2831141746670777666'/><link rel='alternate' type='text/html' href='http://blog.opensourceopportunities.com/2007/10/nested-nested-quotes.html?showComment=1218591660000#c2831141746670777666' title=''/><author><name>James Mortensen</name><uri>http://www.blogger.com/profile/14761411429474089032</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.opensourceopportunities.com/2007/10/nested-nested-quotes.html' ref='tag:blogger.com,1999:blog-4210075784363570204.post-1951112387326596118' source='http://www.blogger.com/feeds/4210075784363570204/posts/default/1951112387326596118' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-785970823'/></entry><entry><id>tag:blogger.com,1999:blog-4210075784363570204.post-3081058448432000152</id><published>2008-08-12T04:03:00.000-07:00</published><updated>2008-08-12T04:03:00.000-07:00</updated><title type='text'>Hi,&lt;br&gt;&lt;br&gt;I am facing a nesting quote problem in ...</title><content type='html'>Hi,&lt;BR/&gt;&lt;BR/&gt;I am facing a nesting quote problem in the below scenario&lt;BR/&gt;...&lt;BR/&gt;&amp;lt;td onclick=&amp;quot;f_myFunction(&amp;#39;someStringContaining\&amp;#39;SingleAnd\&amp;quot;DoubleQuote&amp;#39;);&amp;quot; &amp;gt;&lt;BR/&gt;...&lt;BR/&gt;&lt;BR/&gt;Any suggestions here..Thanks!</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4210075784363570204/1951112387326596118/comments/default/3081058448432000152'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4210075784363570204/1951112387326596118/comments/default/3081058448432000152'/><link rel='alternate' type='text/html' href='http://blog.opensourceopportunities.com/2007/10/nested-nested-quotes.html?showComment=1218538980000#c3081058448432000152' title=''/><author><name>Ramesh</name><uri>http://www.blogger.com/profile/10465700957451190030</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.opensourceopportunities.com/2007/10/nested-nested-quotes.html' ref='tag:blogger.com,1999:blog-4210075784363570204.post-1951112387326596118' source='http://www.blogger.com/feeds/4210075784363570204/posts/default/1951112387326596118' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-437782272'/></entry><entry><id>tag:blogger.com,1999:blog-4210075784363570204.post-8114715725729116820</id><published>2008-06-04T20:02:00.000-07:00</published><updated>2008-06-04T20:02:00.000-07:00</updated><title type='text'>I was using this method of quotes within quotes to...</title><content type='html'>I was using this method of quotes within quotes to manipulate the DOM, that is until I discovered &lt;A HREF="http://taconite.sourceforge.net/" REL="nofollow"&gt;Taconite&lt;/A&gt;.&lt;BR/&gt;&lt;BR/&gt;Taconite lets you use special XML tags to wrap an AJAX response, and these XML tags instruct a parser on where to place the response in the HTML DOM.  &lt;BR/&gt;&lt;BR/&gt;It's LGPL code, so you can take the XML parser and use it without the AJAX portion with some hacking.  &lt;BR/&gt;&lt;BR/&gt;Although there are tools to help eliminate the need to use strings within strings, I still find that this is indeed theh only solution in some cases.&lt;BR/&gt;&lt;BR/&gt;James</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4210075784363570204/1951112387326596118/comments/default/8114715725729116820'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4210075784363570204/1951112387326596118/comments/default/8114715725729116820'/><link rel='alternate' type='text/html' href='http://blog.opensourceopportunities.com/2007/10/nested-nested-quotes.html?showComment=1212634920000#c8114715725729116820' title=''/><author><name>James Mortensen</name><uri>http://www.blogger.com/profile/14761411429474089032</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.opensourceopportunities.com/2007/10/nested-nested-quotes.html' ref='tag:blogger.com,1999:blog-4210075784363570204.post-1951112387326596118' source='http://www.blogger.com/feeds/4210075784363570204/posts/default/1951112387326596118' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-785970823'/></entry><entry><id>tag:blogger.com,1999:blog-4210075784363570204.post-8212266485578015229</id><published>2008-06-02T19:31:00.000-07:00</published><updated>2008-06-02T19:31:00.000-07:00</updated><title type='text'>Omg I'm having a quotation nightmare!  I'm re-crea...</title><content type='html'>Omg I'm having a quotation nightmare!  I'm re-creating a select box using javascript so that I can have onclick/onmouseover events on the options.&lt;BR/&gt;&lt;BR/&gt;The creation process of these options and the subsequent usage of the parameters are impossible, man.&lt;BR/&gt;&lt;BR/&gt;It's killing me!!! &lt;BR/&gt;&lt;BR/&gt;Kudos to you for getting somewhere with it</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4210075784363570204/1951112387326596118/comments/default/8212266485578015229'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4210075784363570204/1951112387326596118/comments/default/8212266485578015229'/><link rel='alternate' type='text/html' href='http://blog.opensourceopportunities.com/2007/10/nested-nested-quotes.html?showComment=1212460260000#c8212266485578015229' title=''/><author><name>Sean</name><uri>www.seanhasselback.com</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.opensourceopportunities.com/2007/10/nested-nested-quotes.html' ref='tag:blogger.com,1999:blog-4210075784363570204.post-1951112387326596118' source='http://www.blogger.com/feeds/4210075784363570204/posts/default/1951112387326596118' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-120071905'/></entry></feed>
