<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1003276" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1003276</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/asp-dictionary-object-problem-i-cant-get-items-and-keys-methods-work#comment-1014443</link>
    <description> &lt;p&gt;In the same logic as you i write for a one but in VBScript version, it work! see:&lt;br /&gt;
&amp;lt;%&lt;br /&gt;
dim avaiVar&lt;/p&gt;
&lt;p&gt;set avaiVar = Server.CreateObject(&amp;quot;Scripting.Dictionary&amp;quot;)&lt;/p&gt;
&lt;p&gt;avaiVar.Add &amp;quot;test&amp;quot;, &amp;quot;hello&amp;quot;&lt;br /&gt;
avaiVar.Add &amp;quot;name&amp;quot;, &amp;quot;joe&amp;quot;&lt;/p&gt;
&lt;p&gt;arr = avaiVar.Keys&lt;br /&gt;
for i = 0 to avaiVar.Count - 1&lt;br /&gt;
   Response.Write arr( i )&lt;br /&gt;
next&lt;br /&gt;
%&amp;gt;&lt;br /&gt;
when i try to translate this code back to JavaScript...&lt;br /&gt;
it give me the undefined answer... i think the problem is come out in your line:&lt;/p&gt;
&lt;p&gt;var arr = avaiVar.Keys();&lt;/p&gt;
&lt;p&gt;since i try to output something in JavaScript, it work:&lt;/p&gt;
&lt;p&gt;Response.Write( avaiVar(&amp;quot;test&amp;quot; ) )&lt;/p&gt;
&lt;p&gt;there should be a something problem of the ASP component and JavaScript array architecture...would you mind call it is a bug??&lt;/p&gt;
&lt;p&gt;William Ng&lt;/p&gt;
 </description>
     <pubDate>Tue, 31 Aug 1999 23:36:00 +0000</pubDate>
 <dc:creator />
 <guid isPermaLink="false">comment 1014443 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/asp-dictionary-object-problem-i-cant-get-items-and-keys-methods-work#comment-1014441</link>
    <description> &lt;p&gt;Yup, I have included the &amp;lt;% and %&amp;gt; tag, and the dictionary object is a default component in ASP.&lt;br /&gt;
 Thanx for your help, Chad &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;br /&gt;
 Regards.&lt;/p&gt;
 </description>
     <pubDate>Tue, 31 Aug 1999 03:28:00 +0000</pubDate>
 <dc:creator>elara</dc:creator>
 <guid isPermaLink="false">comment 1014441 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/asp-dictionary-object-problem-i-cant-get-items-and-keys-methods-work#comment-1014442</link>
    <description> &lt;p&gt;elara,&lt;/p&gt;
&lt;p&gt;Just because a component is included (default) with IIS/ASP doesn&#039;t mean your host supports it.&lt;/p&gt;
&lt;p&gt;A couple of weeks ago I was going crazy trying to figure out why my CDONTS script wasn&#039;t working (CDONTS is also a component of IIS/ASP used for creating mail objects on the server). After a lot of frustation I sent an email to the hosting service (Powersurge.net) asking them if they didn&#039;t support CDONTS, guess what, they don&#039;t. The good news was they had ASPMail which is a little bit better anyways.&lt;/p&gt;
&lt;p&gt;I would just double check with your host to see if they&#039;ve disabled this component.&lt;/p&gt;
&lt;p&gt;You have changed the default server scripting language to Javascript right? It&#039;s VBScript by default.&lt;/p&gt;
&lt;p&gt;Later,&lt;br /&gt;
PJ&lt;/p&gt;
 </description>
     <pubDate>Mon, 30 Aug 1999 20:47:00 +0000</pubDate>
 <dc:creator>PJ</dc:creator>
 <guid isPermaLink="false">comment 1014442 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/asp-dictionary-object-problem-i-cant-get-items-and-keys-methods-work#comment-1014440</link>
    <description> &lt;p&gt;The coding looks good at first glance (minus the smiley faces &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;) Two things that I can see that may be a problem:&lt;/p&gt;
&lt;p&gt;1) You do have this within the &amp;lt;% %&amp;gt; tags, correct?&lt;/p&gt;
&lt;p&gt;2) Is the Scripting.Dictionary component installed on your providors server for use? I am not sure if this component comes with IIS and ASP or if it is a seperate one made by a third-party company.&lt;/p&gt;
 </description>
     <pubDate>Sun, 29 Aug 1999 18:51:00 +0000</pubDate>
 <dc:creator />
 <guid isPermaLink="false">comment 1014440 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
