Print Page | Close Window

Javascript pop-up link problem

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=21264
Printed Date: 09 April 2026 at 2:33am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Javascript pop-up link problem
Posted By: fx5500
Subject: Javascript pop-up link problem
Date 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?



Replies:
Posted By: WebWiz-Bruce
Date 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 <% %>


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: fx5500
Date Posted: 13 September 2006 at 5:45pm

OK thx borg. Its solve the problemThumbs%20Up




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net