Here's an idea Justin,

Instead of using href, embed the fields in a (hidden) form with type=GET.
Then create a link to a JavaScript that changes the form field values as
necessary and does a submit...

If that won't work for you and you really want to learn about JavaScript
windowing (and all sorts of other goodies) then check out "The Book of
JavaScript" by Thau. The best resource I've read on JavaScript.

Here is an example of windowing in JavaScript...

<script language="JavaScript">
<!--

function setEnviron() {
var env_window =
window.open("http://www.vamanet.com/members/CHGENV?PARM1=76453tr&PARM2=sessi
onID", "env_window", "width=300,height=300,scrollbars");env_window.focus();
}

//-->
</script>

You have a slew of options for setting window parameters.  You control
whether or not you show the address bar, toolbars, sizing, the works.

HTH,

Joel R. Cochran
Director of Internet Services
VamaNet.com
(800)480-8810
mailto:webmaster@vamanet.com


> -----Original Message-----
> From: Justin Houchin [mailto:jhouchin9@charter.net]
> Sent: Monday, April 29, 2002 11:36 AM
> To: web400@midrange.com
> Subject: [WEB400] Dynamic JavaScript Links
>
>
> This is a multi-part message in MIME format.
> --
> [ Picked text/plain from multipart/alternative ]
> Hi Everyone,
>     I am having problems trying to build an A HREF link with
> a userid that it found a cookie. When a person first comes to
> my webpage, it will look to see if it has a userid cookie, if
> not it will fill in the "userid" with guest. Then will allow
> me to set custom prices for items per customer.
>  Here is what I have:
> <td height="11"><a href="" onClick="gotoiteminq();"
> target="mainFrame"><img
> src="Images/Clip%20Art/Accessories%20Button.gif" width="118"
> height="26" border="0"></a></td>.
>
> Here is the JavaScript Source:
>
> function gotoiteminq() {
>  window.location="/cgi-bin/iteminq?XCAT=ACC&USERID=(userid)";
>  }
>
> The /cgi-bin/iteminq?XCAT=ACC&USERID=(userid) is a CGI
> program on the 400. I will get the variable userid from the
> GetCookie function. I do have that working. I just need help
> in getting the window and links to build dynamically. Someone
> please lead me in the right direction.
>
>
>
> Thanks,
>
> Justin Houchin
> Programmer
> Reliatek, Inc
> jhouchin9@charter.net
> _______________________________________________
> This is the Web Enabling the AS400 / iSeries (WEB400) mailing list
> To post a message email: WEB400@midrange.com
> To subscribe, unsubscribe, or change list options,
> visit: http://lists.midrange.com/cgi-bin/listinfo/web400
> or email: WEB400-request@midrange.com
> Before posting, please take a moment to review the archives
> at http://archive.midrange.com/web400.
>


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.