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 November 30th, 2004, 06:20 PM
Registered User
 
Join Date: Nov 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default calling a link into a popup (java) window

Hi...
I'm stumpted and need help....

I have an ASP page that calls a link to a java popup script from a database
<a href='<%=Products.Value("trailerLink")%>'>

the link in the database looks like this...
javascript:popup('http://www.servername.com/vvs/detect.aspx?c=384')

the script works fine when called from plain HTML, but when the link is called from the DB... no luck

Thanks!

 
Old November 30th, 2004, 06:36 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

Sounds like a simple syntax error, what does the link look like:
1..on the asp page
2..in the browser

;;;I have an ASP page that calls a link to a java popup script from a database <a href='<%=Products.Value("trailerLink")%>'>

That link wont open a new window


Wind is your friend
Matt
 
Old November 30th, 2004, 07:03 PM
Registered User
 
Join Date: Nov 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

ASP: <a href='<%=Products.Value("trailerLink")%>'>
DB: javascript:popup("http://www.remoteserver.com/vvs/detect.aspx?c=386")
browser: javascript:popup(%22http://www.remoteserver.com/vvs/detect.aspx?c=386%22)

Thanks!

 
Old November 30th, 2004, 08:21 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

;;;javascript:popup("http://www.remoteserver.com/vvs/detect.aspx?c=386")

This is what's in the DB field? If so I would suggest only placing the following in there:

http://www.remoteserver.com/vvs/detect.aspx?c=386

Then in your ASP page put:
<A HREF="#" onClick="popup('<%=Products.Value("trailerLink")%> ');">

I assume your popup Function works?

BTW: in your first post you said the DB value was:
javascript:popup('http://www.servername.com/vvs/detect.aspx?c=384')
Then your second podt it was:
javascript:popup("http://www.remoteserver.com/vvs/detect.aspx?c=386")

Which on is it?




Wind is your friend
Matt





Similar Threads
Thread Thread Starter Forum Replies Last Post
Centering Popup window & Blur Parent window jkusmanto Javascript How-To 0 May 25th, 2007 03:19 AM
How to avoid a Basic Authentication popup via link snorre70 HTML Code Clinic 1 July 30th, 2004 06:34 AM
How to Avoid PopUp Windows when link to a file? Dragonist HTML Code Clinic 3 July 29th, 2004 08:43 PM
popup window sankar Pro VB 6 0 July 29th, 2003 01:42 AM





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