<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1018258" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1018258</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/passing-asp-session-variable-javascript-function#comment-1107105</link>
    <description> &lt;p&gt;oops. i overlooked that too. good one.&lt;br /&gt;
-dk&lt;/p&gt;
 </description>
     <pubDate>Wed, 17 Apr 2002 05:22:42 +0000</pubDate>
 <dc:creator>dk01</dc:creator>
 <guid isPermaLink="false">comment 1107105 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/passing-asp-session-variable-javascript-function#comment-1107080</link>
    <description> &lt;p&gt;Just looking at it again, I don&#039;t think it&#039;s just the quotes but also the missing semicolon that might&#039;ve caused the syntax error. &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/wink.png&quot; title=&quot;Wink&quot; alt=&quot;Wink&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Wed, 17 Apr 2002 01:45:55 +0000</pubDate>
 <dc:creator>Abhishek Reddy</dc:creator>
 <guid isPermaLink="false">comment 1107080 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/passing-asp-session-variable-javascript-function#comment-1107067</link>
    <description> &lt;p&gt;Assuming clzip is equal to the string &quot;hello&quot; then this&lt;br /&gt;
&amp;lt;script language=&quot;Javascript&quot;&amp;gt;&lt;br /&gt;
myvar = &lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;Session&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;clzip&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;;&lt;br /&gt;
&amp;lt;/script&amp;gt;&lt;/p&gt;
&lt;p&gt;would return&lt;/p&gt;
&lt;p&gt;&amp;lt;script language=&quot;Javascript&quot;&amp;gt;&lt;br /&gt;
myvar = hello;&lt;br /&gt;
&amp;lt;/script&amp;gt;&lt;/p&gt;
&lt;p&gt;However you need to assign the string to a string in javascript so you need to put quotes around it like so:&lt;/p&gt;
&lt;p&gt;&amp;lt;script language=&quot;Javascript&quot;&amp;gt;&lt;br /&gt;
myvar = &quot;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;Session&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;clzip&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&quot;;&lt;br /&gt;
&amp;lt;/script&amp;gt;&lt;/p&gt;
&lt;p&gt;and it should give back:&lt;/p&gt;
&lt;p&gt;&amp;lt;script language=&quot;Javascript&quot;&amp;gt;&lt;br /&gt;
myvar = &quot;hello&quot;;&lt;br /&gt;
&amp;lt;/script&amp;gt;&lt;/p&gt;
&lt;p&gt;if your session var is a number or is boleen then you might need to use it without the quotes. if you are already doing that then you should get it to work. hope this helps!&lt;br /&gt;
-dk&lt;/p&gt;
 </description>
     <pubDate>Tue, 16 Apr 2002 20:06:40 +0000</pubDate>
 <dc:creator>dk01</dc:creator>
 <guid isPermaLink="false">comment 1107067 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/passing-asp-session-variable-javascript-function#comment-1107043</link>
    <description> &lt;p&gt;But response.write is vbscript.  I&#039;m trying to pass the session variable to a new variable inside a javascript function.&lt;/p&gt;
 </description>
     <pubDate>Tue, 16 Apr 2002 16:03:37 +0000</pubDate>
 <dc:creator>Angela French</dc:creator>
 <guid isPermaLink="false">comment 1107043 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/passing-asp-session-variable-javascript-function#comment-1107011</link>
    <description> &lt;p&gt;I actually spent pretty much a whole day trying to do something similar once!&lt;/p&gt;
 </description>
     <pubDate>Tue, 16 Apr 2002 13:59:39 +0000</pubDate>
 <dc:creator>detox</dc:creator>
 <guid isPermaLink="false">comment 1107011 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/passing-asp-session-variable-javascript-function#comment-1106986</link>
    <description> &lt;p&gt;There aren&#039;t escape characters for quotes in ASP so try this:&lt;/p&gt;
&lt;p&gt;Response.Write(&quot;var zip = &quot; &amp;amp; chr(34) &amp;amp; Session(&quot;clzip&quot;) &amp;amp; chr(34) &amp;amp; &quot;;&quot; &amp;amp; vbCrLf)&lt;/p&gt;
&lt;p&gt;Which will output:&lt;/p&gt;
&lt;p&gt;var zip = &quot;YourVariableValue&quot;;&lt;/p&gt;
 </description>
     <pubDate>Tue, 16 Apr 2002 02:23:53 +0000</pubDate>
 <dc:creator>Abhishek Reddy</dc:creator>
 <guid isPermaLink="false">comment 1106986 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
