Wrox Programmer Forums
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old January 13th, 2005, 05:10 AM
Authorized User
Join Date: Jul 2003
Posts: 62
Thanks: 0
Thanked 0 Times in 0 Posts
Default ASP "no right" error

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:

I found I can get this page,then I use my computer's IP address,

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?


Old January 13th, 2005, 05:23 AM
Friend of Wrox
Join Date: Oct 2003
Posts: 463
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to madhukp

Please do not cross post. Put it under only one area.

What are the objects window, top, main, document, all and contenttext ? Are you using some Object oriented ideas ?

The above statement seem to be a JavaScript. This should be put inside

<script type = "text/Javascript">


You cannot place it between ASP delimiters <% and %>.
Old January 13th, 2005, 06:55 AM
Friend of Wrox
Join Date: Jun 2003
Posts: 184
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Jonax

I think it has to do with (security)zones in IE - try adding to the list of trusted sites...

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error in Migrating Project from ASP to ASP.NET hbansal ASP.NET 1.0 and 1.1 Professional 0 September 12th, 2008 05:48 AM
error.asp? grstad Classic ASP Basics 3 December 8th, 2006 03:58 PM
ASP error redski Classic ASP Basics 3 December 8th, 2005 10:29 PM
ASP error cudjoe83 Classic ASP Databases 2 August 26th, 2003 04:49 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.