<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>WebForumz.com - Classic ASP</title>
		<link>http://webforumz.com</link>
		<description>Active Server Pages - Classic ASP forum offering ASP Help and discussing ASP Coding Practices, ASP Tips, experiences and more.</description>
		<language>en</language>
		<lastBuildDate>Fri, 20 Nov 2009 22:17:45 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://webforumz.com/wfHeiss/misc/rss.jpg</url>
			<title>WebForumz.com - Classic ASP</title>
			<link>http://webforumz.com</link>
		</image>
		<item>
			<title>variable in request form - undefined</title>
			<link>http://webforumz.com/classic-asp/75562-variable-in-request-form-undefined.htm</link>
			<pubDate>Fri, 13 Nov 2009 03:58:07 GMT</pubDate>
			<description>I have had a system up and running for a few years, I inherited it from someone. They have a form submitting on a ASP/Javascript page. 
  
The form looks like this:...</description>
			<content:encoded><![CDATA[<!-- BEGIN TEMPLATE: postbit_external -->
<div>I have had a system up and running for a few years, I inherited it from someone. They have a form submitting on a <acronym title="Active Server Pages">ASP</acronym>/Javascript page.<br />
 <br />
The form looks like this:<br />
--------------------------------------------------------------------------<br />
<!-- BEGIN TEMPLATE: bbcode_code_printable -->
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">&lt;form method=&quot;post&quot; action=&quot;registration.<acronym title="Active Server Pages">asp</acronym>&quot; name=&quot;form&quot; id=&quot;form&quot;&gt;<br />
&lt;table width=&quot;410&quot; border=&quot;0&quot; align=&quot;center&quot; cellpadding=&quot;4&quot; cellspacing=&quot;0&quot;&gt;<br />
&nbsp; &nbsp; &lt;tr class=&quot;texto_nota&quot;&gt; <br />
&nbsp; &nbsp; &nbsp; &lt;td&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;div align=&quot;right&quot;&gt;Last name:&lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;td&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;input type=&quot;text&quot; name=&quot;lastname&quot; size=&quot;60&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;/td&gt;<br />
&nbsp; &nbsp; &lt;/tr&gt;<br />
&nbsp; &nbsp; &lt;tr class=&quot;texto_nota&quot;&gt; <br />
&nbsp; &nbsp; &nbsp; &lt;td&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;div align=&quot;right&quot;&gt;First name:&lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;td&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;input type=&quot;text&quot; name=&quot;firstname&quot; size=&quot;60&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;/td&gt;<br />
&nbsp; &nbsp; &lt;/tr&gt;&lt;/table&gt;<br />
&lt;p&gt; <br />
&nbsp; &nbsp; &lt;input type=&quot;submit&quot; id=&quot;Submit&quot; name=&quot;Submit&quot; value=&quot;Submit&quot;&gt;<br />
&nbsp; &lt;/p&gt;<br />
&lt;/form&gt;</code><hr />
</div>
<!-- END TEMPLATE: bbcode_code_printable -->----------------------------------------------<br />
And then the <acronym title="Active Server Pages">ASP</acronym>:<br />
 <br />
<!-- BEGIN TEMPLATE: bbcode_code_printable -->
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">if (String(Request(&quot;Submit&quot;)) != &quot;undefined&quot;){<br />
..bla.. <br />
}</code><hr />
</div>
<!-- END TEMPLATE: bbcode_code_printable -->Now, it always used to do the “bla”, but now suddenly, no matter what, its taken the value of “submit” as <b>undefined</b>, and thus the “bla” is not being done. I have tried adding in specifically “.item” and .”form” in the request line, but nothing seems to work.<br />
<br />
Any ideas?<br />
<br />
Thanks!</div>


<!-- END TEMPLATE: postbit_external -->]]></content:encoded>
			<category domain="http://webforumz.com/classic-asp/">Classic ASP</category>
			<dc:creator>snooper</dc:creator>
			<guid isPermaLink="true">http://webforumz.com/classic-asp/75562-variable-in-request-form-undefined.htm</guid>
		</item>
		<item>
			<title><![CDATA[Expected ';' in JScript]]></title>
			<link>http://webforumz.com/classic-asp/75457-expected-in-jscript.htm</link>
			<pubDate>Wed, 04 Nov 2009 17:33:45 GMT</pubDate>
			<description>Hi all, 
I recently found some code that allowed me to display a random image without having to name the images a specific name. Instead I could just throw in an image to a directory and the...</description>
			<content:encoded><![CDATA[<!-- BEGIN TEMPLATE: postbit_external -->
<div>Hi all,<br />
I recently found some code that allowed me to display a random image without having to name the images a specific name. Instead I could just throw in an image to a directory and the JavaScript will just pick an image randomly. Testing the code I find it is not happy with the syntax, and although it has narrowed it down to a line and a clue, having placed the ';' in various positions the same error continues to bug me. The error message is quoted below, can anyone please point me in the right direction? <br />
 <br />
Error Type:<br />
Microsoft JScript compilation (0x800A03EC)<br />
Expected ';'<br />
/mysite/rndm.<acronym title="Active Server Pages">asp</acronym>, line 12, column 6<br />
Const IMGS_DIR = &quot;/miscimages/&quot;;<br />
-----^<br />
Thanks in advance,<br />
Mitch...</div>


<!-- END TEMPLATE: postbit_external -->]]></content:encoded>
			<category domain="http://webforumz.com/classic-asp/">Classic ASP</category>
			<dc:creator>VegaLA</dc:creator>
			<guid isPermaLink="true">http://webforumz.com/classic-asp/75457-expected-in-jscript.htm</guid>
		</item>
		<item>
			<title>Help with how to check if an external page exists before including it on the page</title>
			<link>http://webforumz.com/classic-asp/75422-help-with-how-to-check-if.htm</link>
			<pubDate>Fri, 30 Oct 2009 12:56:12 GMT</pubDate>
			<description>Hello, 
Here is some background of what and why I am trying to do this.   
 
We have 3 different systems that manage our Web sites. One is a static Web site on IIS with asp and .net, and then others...</description>
			<content:encoded><![CDATA[<!-- BEGIN TEMPLATE: postbit_external -->
<div>Hello,<br />
Here is some background of what and why I am trying to do this.  <br />
<br />
We have 3 different systems that manage our Web sites. One is a static Web site on <acronym title="Internet Information Services">IIS</acronym> with <acronym title="Active Server Pages">asp</acronym> and .net, and then others are content management systems. ( we are in the process of getting a new one so everything is not managed in 3 places). When a news article is written, it has to be posted in all 3 places and it is a pain, and because of the technology and restrictions, we can't do any kind of integration between the 3, and we can't change any of the current set up right now either.<br />
<br />
So I created a news story on a blank template in the CMS and then included it on an <acronym title="Active Server Pages">asp</acronym> page on the static site. This <acronym title="Active Server Pages">asp</acronym> page is basically a news article template so it can be reused over and over again without having to create a page each time a news article is created. The the URL for the news article has a query string that will match the page name of the article in the CMS. So if the page in the CMS is called newsarticle.<acronym title="HyperText Markup Language">html</acronym>, then on the static page it would be newstemplate.<acronym title="Active Server Pages">asp</acronym>?id=newsarticle. Then there is simple script that grabs the query string and puts it into a variable, takes the variable and adds that to the path of the included page (all the news articles will have the same path except for the actual page name). I put a simple if/then statement that if the query string doesn't exist, it will redirect to the news listing page. However, I found that if the query string gets messed up or changed, it then creates a url path that doesn't exist and goes to the 404 page, which then is included on the page. So it becomes a 404 page within a page if that makes sense. So what I am looking to do is to figure out a way to check on the included page before it is loaded on the page to see if it exists, and if so add it on the page. If not, redirect to the news story. This can be done in <acronym title="Active Server Pages">asp</acronym> or in aspx, but i don't really know the .net stuff so then I would have to create the external include again...<br />
<br />
Sorry for the long paragraph, but I wanted to give a description of why I wanted to do something instead of just asking for help with it.<br />
<br />
The code I am using to include the external file is:<br />
<br />
<!-- BEGIN TEMPLATE: bbcode_code_printable -->
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">url = &quot;EXTERNAL URL HERE&quot; &amp; varPagename &amp; &quot;.<acronym title="HyperText Markup Language">html</acronym>&quot; <br />
&nbsp;  <br />
&nbsp;  set xmlhttp = CreateObject(&quot;MSXML2.ServerXMLHTTP&quot;) <br />
&nbsp;  xmlhttp.open &quot;GET&quot;, url, false <br />
&nbsp;  xmlhttp.send &quot;&quot; <br />
&nbsp;  <br />
&nbsp;Response.write xmlhttp.responseText <br />
&nbsp;  set xmlhttp = nothing</code><hr />
</div>
<!-- END TEMPLATE: bbcode_code_printable --></div>


<!-- END TEMPLATE: postbit_external -->]]></content:encoded>
			<category domain="http://webforumz.com/classic-asp/">Classic ASP</category>
			<dc:creator>saxy46</dc:creator>
			<guid isPermaLink="true">http://webforumz.com/classic-asp/75422-help-with-how-to-check-if.htm</guid>
		</item>
	</channel>
</rss>
