Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Code implementation problem

Status
Not open for further replies.

eyal

Programmer
May 15, 2000
38
IL
Hi,<br>I created an .asp page called x, then when it all worked fine I copied all the relevant lines (as far as I know) and implemented them in my main asp page (main.asp) which contains all the graphics. In the x.asp I used the following function:<br>function artOnChange(){<br>&nbsp;&nbsp;document.form1.action = &quot;x.asp?loadcombo=true&quot;;<br>&nbsp;&nbsp;document.form1.submit();<br>}<br>in the main asp page (main.asp) I changed the x.asp to main.asp, but when I run it through IE5 I get an error message about the line (document.form1.action = &quot;x.asp?loadcombo=true&quot;;) and when I choose to debug it with InterDev I get a read only page that contains the previous asp page name (x.asp).<br>Any suggestions?<br>Thanks<br>Eyal
 
change the x.asp in the code to main.asp, x.asp doesnt exist anymore since you renamed it. <p>Karl<br><a href=mailto:kb244@kb244.8m.com>kb244@kb244.8m.com</a><br><a href= </a><br>Experienced in , or have messed with : VC++, Borland C++ Builder, VJ++6(starting),VB-Dos, VB1 thru VB6, Delphi 3 pro, Borland C++ 3(DOS), Borland C++ 4.5, HTML,Visual InterDev 6, ASP(WebProgramming), QBasic(least i didnt start with COBOL)
 
That's what I did but everytime I run it I get the error:&quot;document.form1 is not an object&quot;, and when I choose to debug it I get in the function the x.asp issue even though when I open the main.asp file with InterDev the x.asp is not there, the main.aso is.<br>Do I miss anything?<br>&nbsp;Eyal
 
Sounds like the document is being retrieved from the cache.<br>With dynamically generated pages (like ASP) that change often,&nbsp;&nbsp;you need to disable caching.&nbsp;&nbsp;Take a look at Phil Paxton's dissertation on caching:<br><br><A HREF=" TARGET="_new"> <p>nick bulka<br><a href=mailto: > </a><br><a href= > </a><br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top