Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > ASP Link query...

Reply
Thread Tools

ASP Link query...

 
 
David
Guest
Posts: n/a
 
      06-28-2004
Hi,

Quick question.

I have the following link:

<A HREF=""Schedule.asp?JobNumber=" & RS("JobNumber") & "&PONumber=" &
RS("PONumber") & """>" & RS("JobNumber") ONCLICK= popup() & "</a>


I want the link to reference a function in the <Script> tag as
follows:

<script>

function popup() {
window.open( "Schedule.asp" , ""
,"top=40,left=40,width=200,height=100" ) ;
}

</script>

I am not sure where to place the ONCLICK code in the hyperlink as this
link is written out via response.write......Its all the " " & ' ' that
get me ...

Thanks in advance


David
 
Reply With Quote
 
 
 
 
Cowboy \(Gregory A. Beamer\) [MVP]
Guest
Posts: n/a
 
      06-28-2004
If you want the popup to happen when the page displays, call popup in the
<body> tag. You can either load the script with ASP or the body tag. If you
load the body tag, you will have to make the function accept the vars as
params.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

************************************************
Think Outside the Box!
************************************************
"David" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) om...
> Hi,
>
> Quick question.
>
> I have the following link:
>
> <A HREF=""Schedule.asp?JobNumber=" & RS("JobNumber") & "&PONumber=" &
> RS("PONumber") & """>" & RS("JobNumber") ONCLICK= popup() & "</a>
>
>
> I want the link to reference a function in the <Script> tag as
> follows:
>
> <script>
>
> function popup() {
> window.open( "Schedule.asp" , ""
> ,"top=40,left=40,width=200,height=100" ) ;
> }
>
> </script>
>
> I am not sure where to place the ONCLICK code in the hyperlink as this
> link is written out via response.write......Its all the " " & ' ' that
> get me ...
>
> Thanks in advance
>
>
> David



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is D-Link DSL-604T same as D-Link DSL-604+ ? norm Wireless Networking 6 11-18-2005 10:25 AM
RE: Link Link Link =?Utf-8?B?REw=?= Windows 64bit 0 05-17-2005 12:15 PM
Re: Link Link Link DANGER WILL ROBINSON!!! Kevin Spencer ASP .Net 0 05-17-2005 10:41 AM
Single FE Link for State/Link PIX Failover Matthew Melbourne Cisco 2 01-10-2005 06:58 PM
D-LINK DWL-AG650 doesn't work with WinXP - Zero Configuration Service (WZCSVC) / D-Link AirXpert nearly works Johannes Rosenstock Wireless Networking 0 08-27-2004 11:49 PM



Advertisments