Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Javascript pop-up link problem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Javascript pop-up link problem

 Post Reply Post Reply
Author
fx5500 View Drop Down
Groupie
Groupie
Avatar

Joined: 30 July 2005
Location: Turkey
Status: Offline
Points: 64
Post Options Post Options   Thanks (0) Thanks(0)   Quote fx5500 Quote  Post ReplyReply Direct Link To This Post Topic: Javascript pop-up link problem
    Posted: 10 September 2006 at 8:02pm
Hi.
I wanna add a pop up link in navigation butons andI am editing navigation_buton_inc.asp.
 
I am inserting the code below to navigation_buton_inc.asp but I am receiving this error;
----------------------------------------------.
Microsoft VBScript compiling error (0x800A0400)
Phrase required
/forum/includes/navigation_buttons_inc.asp, line 72
<SCRIPT LANGUAGE="JavaScript">
---------------------------------------
 
and the javascript code is;
---------------------------------
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=220,height=520,left = 412,top = 134');");
}
// End -->
</script>

<!-- STEP TWO: Use the following link to open the new window -->
<A HREF="javascript:popUp('http://www.homesite.com/site.asp')">Click-This...</A>
 
------------------------------------------------
This code is working on another asp page but not working in navigation_buton_inc.asp page...
 
What is the problem? Why this javascript dont working in wwf's page?
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 11 September 2006 at 8:41am
As this is a VBscript error from the server it looks like you are trying to run the javascript code within an ASP block and therefore trying to run it server side with client side code.

Make sure your code is outside of the ASP block <% %>
Back to Top
fx5500 View Drop Down
Groupie
Groupie
Avatar

Joined: 30 July 2005
Location: Turkey
Status: Offline
Points: 64
Post Options Post Options   Thanks (0) Thanks(0)   Quote fx5500 Quote  Post ReplyReply Direct Link To This Post Posted: 13 September 2006 at 5:45pm

OK thx borg. Its solve the problemThumbs%20Up

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.