[thelist] Javascript Woes

Salvatore Palmisano spalmisano at usaiss.com
Mon Feb 19 20:10:38 CST 2001


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





More information about the thelist mailing list