Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - window.location : Error window undefined
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

window.location : Error window undefined

 Post Reply Post Reply
Author
riya_singtel View Drop Down
Newbie
Newbie
Avatar

Joined: 14 March 2005
Location: India
Status: Offline
Points: 30
Post Options Post Options   Thanks (0) Thanks(0)   Quote riya_singtel Quote  Post ReplyReply Direct Link To This Post Topic: window.location : Error window undefined
    Posted: 31 March 2005 at 3:34am
I am using Window.location to go to another page two times in my code written in asp using vbscript. For one it always works fine. For other it gives problems some times displaying an error 'window is undefined'
 
the structure of my code is
<%
Select Case a
Case "1"
Response.Write "<INPUT type=""BUTTON"" VALUE=""Select Dates"" OnClick=""Window.location='links.asp?link=OLM&try=4'"">"
Case "2"
Response.Write "<INPUT type=""BUTTON"" VALUE=""Select Dates"" OnClick=""Window.location='links.asp?link=OOO&try=4'"">"
End Select
%>
It gives the error with the second part. The first part never gave the error
Thanks
Back to Top
MadDog View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 01 January 2002
Status: Offline
Points: 3008
Post Options Post Options   Thanks (0) Thanks(0)   Quote MadDog Quote  Post ReplyReply Direct Link To This Post Posted: 31 March 2005 at 3:44am
Whats the error you are getting?
Back to Top
riya_singtel View Drop Down
Newbie
Newbie
Avatar

Joined: 14 March 2005
Location: India
Status: Offline
Points: 30
Post Options Post Options   Thanks (0) Thanks(0)   Quote riya_singtel Quote  Post ReplyReply Direct Link To This Post Posted: 31 March 2005 at 4:02am
'Window' is undefined
Back to Top
Mart View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 November 2002
Status: Offline
Points: 2304
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mart Quote  Post ReplyReply Direct Link To This Post Posted: 31 March 2005 at 4:17am
window needs to be in lower case
Back to Top
riya_singtel View Drop Down
Newbie
Newbie
Avatar

Joined: 14 March 2005
Location: India
Status: Offline
Points: 30
Post Options Post Options   Thanks (0) Thanks(0)   Quote riya_singtel Quote  Post ReplyReply Direct Link To This Post Posted: 31 March 2005 at 8:15pm
thanks a lot...cudnt imagine that...but would like to know why does the case matter..aren't we coding in VbSCript..and as far as i know case doesnt matter in vbscriptConfused
Back to Top
ub3rl337ch3ch View Drop Down
Senior Member
Senior Member
Avatar

Joined: 16 February 2005
Location: Australia
Status: Offline
Points: 341
Post Options Post Options   Thanks (0) Thanks(0)   Quote ub3rl337ch3ch Quote  Post ReplyReply Direct Link To This Post Posted: 04 April 2005 at 12:48am
By using response.write, you are affectively writing the following code to the html of the page. In html, when you do an onclick="whatever" you are actually telling it to run "whatever" as if it were in javascript tags.
Back to Top
riya_singtel View Drop Down
Newbie
Newbie
Avatar

Joined: 14 March 2005
Location: India
Status: Offline
Points: 30
Post Options Post Options   Thanks (0) Thanks(0)   Quote riya_singtel Quote  Post ReplyReply Direct Link To This Post Posted: 04 April 2005 at 6:23am
Great... Thanks.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.