Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP General (http://www.velocityreviews.com/forums/f65-asp-general.html)
-   -   ASP Link query... (http://www.velocityreviews.com/forums/t795170-asp-link-query.html)

David 06-28-2004 03:36 PM

ASP Link query...
 
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

Cowboy \(Gregory A. Beamer\) [MVP] 06-28-2004 06:17 PM

Re: ASP Link query...
 
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" <david@scene-double.co.uk> wrote in message
news:c178e3e8.0406280736.361c4844@posting.google.c 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





All times are GMT. The time now is 06:55 AM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.