Article View: borland.public.jbuilder.java.language
Article #15434HELP...PASSING VARIABLES
From: MJR
Date: Thu, 10 Jun 1999 00:00
Date: Thu, 10 Jun 1999 00:00
16 lines
2117 bytes
2117 bytes
I wrote an applet which needs a cookie-value located on the parent html file. Does anyone know how I could pass this value on to the applet. I tried: <applet code=..........> <param name=cookieVal value=GetCookie() > OR <param name=cookieVal value=userName> where GetCookie() is a java script method defined earlier which returns the cookie value, and userName is a java script variable defined earlier which is the cookie value. But this stores "GetCookie()" and "userName" respectively as the parameter instead of the actual return value of the function/variable. I guess my question is, then, how you can call a script function/variable from HTML. Any help would be much appreciated.
Technical Details
Message-ID:
<7jp1de$9ul$1@mailint03.im.hou.compaq.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d6b,b1b085475626e53b,start X-Google-Attributes: gid111d6b,public X-Google-Thread: fecd1,b1b085475626e53b,start X-Google-Attributes: gidfecd1,public X-Google-Thread: 10bb9b,b1b085475626e53b,start X-Google-Attributes: gid10bb9b,public X-Google-Thread: 113ae9,b1b085475626e53b,start X-Google-Attributes: gid113ae9,public X-Google-Thread: fa45f,b1b085475626e53b,start X-Google-Attributes: gidfa45f,public X-Google-Thread: 10a146,b1b085475626e53b,start X-Google-Attributes: gid10a146,public X-Google-Thread: f5d71,b1b085475626e53b,start X-Google-Attributes: gidf5d71,public X-Google-Thread: f74b3,b1b085475626e53b,start X-Google-Attributes: gidf74b3,public From: "MJR" <Rao.Mohith@compaq.com> Subject: HELP...PASSING VARIABLES Date: 1999/06/10 Message-ID: <7jp1de$9ul$1@mailint03.im.hou.compaq.com> X-Deja-AN: 488013769 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2120.0 X-Complaints-To: usenet@mailint03.im.hou.compaq.com X-Trace: mailint03.im.hou.compaq.com 929040622 10197 172.18.100.18 (10 Jun 1999 18:50:22 GMT) Organization: Compaq Computer Corp. NNTP-Posting-Date: 10 Jun 1999 18:50:22 GMT Newsgroups: borland.public.jbuilder.java.language,comp.lang.java,comp.lang.java.api,comp.lang.java.help,comp.lang.java.machine,comp.lang.java.misc,comp.lang.java.programmer,microsoft.public.inetexplorer.ie4.java_applets