ASP "no error" error

E

Edward King

I have a statement in a asp,like follows£º
var str=window.top.main.document.all.contenttext.value;

I use IIS5.0 to deploy this asp,then I visit this asp like follows:
http://localhost/test/default.asp

I found I can get this page,then I use my computer's IP address,
http://192.168.0.3/test/default.asp

I got errors! It said "no right"£¬then I erase this statement,then I visit
this asp again,this time I don't get error.But I need this statement "var
str=window.top.main.document.all.contenttext.value"
How to correct my code to run it?

Thanks!
 
K

Ken Schaefer

Sounds like a client-side error to me - nothing to do with ASP or ASP.NET

In the first case, the site is in the Local Intranet IE security zone
In the second case, the site is in the Internet IE security zone, which is
probably why is preventing you from executing that javascipt. Add the
address to the Intranet or Trusted Sites security zones.

Cheers
Ken
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,269
Messages
2,571,100
Members
48,773
Latest member
Kaybee

Latest Threads

Top