[thelist] Javascript Woes
Asif Suria
asifsuria at yahoo.com
Mon Feb 19 20:42:37 CST 2001
You can pass your asp variables into your JS functions
if you want. Just add <% =myAspVariable %> inside your
JS function where you want intID. You can also use a
asp looping structure such as for.... next inside your
JS function.
Asif
--- Salvatore Palmisano <spalmisano at usaiss.com> wrote:
> Ok Ive modifed this a bit to use a separate function
> call, as the intID has
> to be different for each link on the page:
>
> <SCRIPT LANGUAGE=JAVASCRIPT>
> function events(intid){
> myWindow=window.open("page.asp?id="+
> intid.value
>
+",null,"resizable=yes,toolbar=no,location=no,status=no,menubar=no,scrollbar
> s=no,copyhistory=no,width=385,height=295");
> }
> </SCRIPT>
>
> The call is then: <A HREF=javascript:events(intid)>
>
> I guess the question remains: how can I reference
> the intid passed to the
> function?
> Note: intID is dynamically generated on the page
> from a db call. The <A>
> tag formats properly as javascript:events(123) but I
> cant seem to reference
> the 123 within the function.
>
> --Salvatore Palmisano
> Chief Information Officer
> International Security Solutions, Inc.
> spalmisano at usaiss.com
>
> -----Original Message-----
> From: thelist-admin at lists.evolt.org
> [mailto:thelist-admin at lists.evolt.org]On Behalf Of
> Asif Suria
> Sent: Monday, February 19, 2001 7:57 PM
> To: thelist at lists.evolt.org
> Subject: Re: [thelist] Javascript Woes
>
>
> I recently wrote a small JS function that worked
> fine
> for me. The function is
>
> function openPage() {
> var newPage =
> window.open("facultyDirectory.html","smallwin",
> "width=700,height=600");
> newPage.moveTo(10, 10);
> }
>
> Probably the single quotes in your function could be
> a
> problem. Good luck.
>
> Asif
>
>
> ---------------------------------------
> For unsubscribe and other options, including
> the Tip Harvester and archive of TheList go to:
> http://lists.evolt.org Workers of the Web, evolt !
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35
a year! http://personal.mail.yahoo.com/
More information about the thelist
mailing list