<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Client Side Web Development</title><link>http://forums.asp.net/130.aspx</link><description>Client-side programming discussions, including CSS, DHTML, JScript/Javascript, etc. &lt;a href="http://aspadvice.com/SignUp/list.aspx?l=18&amp;c=16" target="_blank"&gt;Email List&lt;/a&gt;</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: javascript and bad character ?</title><link>http://forums.asp.net/thread/2356371.aspx</link><pubDate>Wed, 14 May 2008 07:21:59 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2356371</guid><dc:creator>christopheEU</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2356371.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=130&amp;PostID=2356371</wfw:commentRss><description>&lt;p&gt;Hi Jagan.unique,&lt;/p&gt;
&lt;p&gt;thanks for your reply ...that nice that work !&lt;/p&gt;
&lt;p&gt;but, for to resolve my problem in my code c sharp now, i replace the &amp;#39; by &lt;a&gt;\\&amp;#39;&lt;/a&gt; and i have made some test and that&amp;#39;s works !&lt;/p&gt;
&lt;p&gt;your solution work too, but i don&amp;#39;t know if the user&amp;nbsp;has enter a &amp;#39; or not !&lt;/p&gt;
&lt;p&gt;As you can see i&amp;#39;m a&amp;nbsp;real beginner :-)&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks for your time&lt;/p&gt;
&lt;p&gt;Christophe&lt;/p&gt;</description></item><item><title>Re: javascript and bad character ?</title><link>http://forums.asp.net/thread/2356099.aspx</link><pubDate>Wed, 14 May 2008 04:47:52 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2356099</guid><dc:creator>jagan.unique</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2356099.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=130&amp;PostID=2356099</wfw:commentRss><description>&lt;p&gt;Hi &lt;b&gt;christopheEU ,&lt;/b&gt;&lt;/p&gt;&lt;p&gt;I found a better way for sending apostrophe as a parameter value.. use \ followed by &amp;#39; will solve your problem..&lt;br /&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Ex.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;lt;script type=&amp;quot;text/javascript&amp;quot;&amp;gt;&lt;br /&gt;function ShowVaue(ctrl,v)&lt;br /&gt;{&lt;br /&gt;alert(v);&lt;br /&gt;//document.getElementById(&amp;quot;Label1&amp;quot;).value=v;&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/script&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;asp:Button ID=&amp;quot;Button1&amp;quot; runat=&amp;quot;server&amp;quot; Text=&amp;quot;Button&amp;quot; OnClientClick=&amp;quot;ShowVaue(&amp;#39;d&amp;#39;,&amp;#39;n\&amp;#39;avez vous&amp;#39;);&amp;quot; /&amp;gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: javascript and bad character ?</title><link>http://forums.asp.net/thread/2354238.aspx</link><pubDate>Tue, 13 May 2008 11:15:23 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2354238</guid><dc:creator>christopheEU</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2354238.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=130&amp;PostID=2354238</wfw:commentRss><description>&lt;p&gt;&lt;font size="2"&gt;H JaganUnique,&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;if i understand, you tell me place code :&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;c sharp :Value = Value.Replace(&lt;font color="#a31515" size="2"&gt;&amp;quot;&amp;#39;&amp;quot;,&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;&amp;amp;#39;&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;);&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;and on javascript for to delete &amp;amp;#39; and replace by &amp;#39; put:&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&amp;nbsp;Value = Value.Replace(&lt;font color="#a31515" size="2"&gt;&amp;quot;&amp;amp;#39;&amp;quot;,&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;&amp;#39;;&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;);&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;is it right ?&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;But, if just to test something and it&amp;#39;s works &lt;/font&gt;&lt;/p&gt;&lt;font size="2"&gt;In my code c sharp, now i replace the &amp;#39; by &lt;a&gt;\\&amp;#39;&lt;/a&gt;&amp;nbsp;&lt;/font&gt;&lt;font size="2"&gt;&lt;pre class="coloredcode"&gt;Value = Value.Replace(&lt;span class="st"&gt;&amp;quot;&amp;#39;&amp;quot;&lt;/span&gt;, &lt;span class="st"&gt;&amp;quot;\\&amp;#39;&amp;quot;&lt;/span&gt;);&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;And it&amp;#39;s works fine, when i click on the button no javascript fails and when the page is loading i see my string as : n&amp;#39;avez vous !&lt;/p&gt;
&lt;p&gt;Now, why the double \\ ?&lt;/p&gt;
&lt;p&gt;thanks&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Christophe&lt;/p&gt;&lt;/font&gt;</description></item><item><title>Re: javascript and bad character ?</title><link>http://forums.asp.net/thread/2354068.aspx</link><pubDate>Tue, 13 May 2008 09:50:57 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2354068</guid><dc:creator>jagan.unique</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2354068.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=130&amp;PostID=2354068</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/fan/images/icon-quote.gif"&gt; &lt;strong&gt;christopheEU:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;font size="2"&gt;n&amp;#39;avez vous =&amp;gt; i see after loading =&amp;gt; n&amp;amp;#39;avez vous !!!&lt;/font&gt;&lt;font size="2"&gt; 
&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font size="2"&gt;And of course, i&amp;#39;d like to see n&amp;#39;avez vous&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;Any idea ?&lt;/font&gt;&lt;/p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&amp;nbsp;&lt;p&gt;again replace &lt;font color="#a31515" size="2"&gt;&amp;amp;#39; with &amp;#39;&amp;nbsp;&lt;/font&gt; &lt;/p&gt;&lt;p&gt;&amp;nbsp;some think lik this.. &lt;font size="2"&gt;Value = Value.Replace(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;&amp;amp;#39;&amp;quot;,&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;&amp;#39;&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;);&lt;/font&gt;&lt;/p&gt;</description></item><item><title>Re: javascript and bad character ?</title><link>http://forums.asp.net/thread/2354033.aspx</link><pubDate>Tue, 13 May 2008 09:34:42 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2354033</guid><dc:creator>christopheEU</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2354033.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=130&amp;PostID=2354033</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks for your fast reply !&lt;/p&gt;
&lt;p&gt;now if i put your code in my code c sharp like :&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;font size="2"&gt;Value = Value.Replace(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;&amp;#39;&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;&amp;amp;#39;&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;);&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;i execute the application, no fail when i enter value with &amp;#39; but when the page is end of loading i see my value as for example:&lt;/font&gt;&lt;/p&gt;&lt;font size="2"&gt;n&amp;#39;avez vous =&amp;gt; i see after loading =&amp;gt; n&amp;amp;#39;avez vous !!!&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;And of course, i&amp;#39;d like to see n&amp;#39;avez vous&lt;/p&gt;
&lt;p&gt;Any idea ?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Christophe&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;/p&gt;&lt;/font&gt;</description></item><item><title>Re: javascript and bad character ?</title><link>http://forums.asp.net/thread/2353984.aspx</link><pubDate>Tue, 13 May 2008 09:09:58 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2353984</guid><dc:creator>jagan.unique</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2353984.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=130&amp;PostID=2353984</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;use escape characters code while sending &amp;#39; (apostrophe) in a parameter. other wise it will treat as another parameter value and doesn&amp;#39;t executes your code..&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;br /&gt;Ex: &amp;amp;#39; (for apostrophe) &lt;/p&gt;&lt;p&gt;list of escape characters..&lt;/p&gt;&lt;p&gt;http://www.theukwebdesigncompany.com/articles/entity-escape-characters.php&amp;nbsp;&lt;/p&gt;</description></item><item><title>javascript and bad character ?</title><link>http://forums.asp.net/thread/2353953.aspx</link><pubDate>Tue, 13 May 2008 08:54:55 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2353953</guid><dc:creator>christopheEU</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2353953.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=130&amp;PostID=2353953</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m a beginner with javascript and asp net, i work with visual studio 2005.&lt;/p&gt;
&lt;p&gt;I have a javascript function who add a value in a listbox:&lt;/p&gt;&lt;font color="#0000ff" size="2"&gt;
&lt;p&gt;function&lt;/font&gt;&lt;font size="2"&gt; ListAddItem(listBoxId, value)&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;{&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;...&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;}&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;This function is on a parent page and on this page i have several links.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;when i click on a link a child page opens, on this page there are some text box, i enter some string&amp;nbsp; and when i click the button&lt;/p&gt;
&lt;p&gt;i call the opener.ListAddItem&lt;/p&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;
&lt;p&gt;script += &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;opener.ListAddItem(&amp;#39;list1&amp;quot;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;, &amp;#39;&amp;quot;&lt;/font&gt;&lt;font size="2"&gt; + Value + &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;&amp;#39;);&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;;&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;
&lt;p&gt;that work of course, but there is a problem if i enter some string who contains some &amp;#39;&amp;nbsp; !!!&lt;/p&gt;
&lt;p&gt;Ok before to call the function javascript i use string.replace(&amp;quot;&amp;#39;&amp;quot;,&amp;quot;&amp;#39;&amp;#39;&amp;quot;); in c sharp !&lt;/p&gt;
&lt;p&gt;but that doesn&amp;#39;t work because when i execute the code and enter a string with a &amp;#39;, the &amp;#39; is well double &amp;#39;&amp;#39; but now my function fails because he think there are 3 parameter and not 2!!!&lt;/p&gt;
&lt;p&gt;Have you got any idea ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks in advance&lt;/p&gt;
&lt;p&gt;Christophe&lt;/p&gt;</description></item></channel></rss>