[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now


assign value applet param through javascript

Posted on 2004-09-30
Medium Priority
Last Modified: 2008-02-01

i want to assign value to param "cookval" through javascript.
is there there any way like
since we can assign value to a text box by this method

<applet code=writefile.class  width=0 height=0 id=appwrite>
      <param name="cabbase" value="mycab.cab">
      <param id=cv name=cookval>

<a href="javascript:callme();">callme</a>

<script language="JavaScript">
function callme()
      //value to be assigned here
Question by:sandeepaher
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 36

Expert Comment

ID: 12197735
Hi sandeepaher,

Even if you affect the value of the param (which is possible), the outcome will not change because the applet is loaded once, then done. If you are considering this, check out MAYSCRIPT here: http://www.faqs.org/docs/htmltut/applets/_APPLET_MAYSCRIPT.html and http://java.sun.com/j2se/1.4.2/docs/guide/plugin/developer_guide/java_js.html


Author Comment

ID: 12197754
ok i realise this is illogical since the applet executes only once and it needs all the parameters then.
i need to do this in the applet itself i.e., reading cookies in applet.

actually the this is what the applet is supposed to do,
it should read the cookie and write the cookie information to a file on users machine.

can u tell me what is the method oreading and writing cookies in applet
LVL 36

Expert Comment

ID: 12197796
Unfortunately, my Java skills are quite elementary and amount to making Hello World programs or "Wow, I can change the System.out.print text and it will display differently!" programs. For more help with Mayscript, I recommend you post in the Java section or post a link pointer to this question in the Java section.

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

LVL 28

Expert Comment

ID: 12198039
Well this is an old page of mine, explaining it a bit. http://utopia.knoware.nl/users/sybev/java/JSObject/JSObjectTrue.htm

The applet also needs to be programmed in such a way that it supports receiving data from javascript. Only then it can work. At least that used to be the case in times of IE4 and NS3.
LVL 25

Accepted Solution

devic earned 2000 total points
ID: 12198270
here is some trick.... I hope it will work ;)

<div id=myCV>
<applet code=writefile.class  width=0 height=0 id=appwrite>
    <param name="cabbase" value="mycab.cab">
    <param id=cv name=cookval value="">
<a href="javascript:callme('someNewVal');">callme</a>

<script language="JavaScript">
function callme(newVal)
      var m=document.getElementById("myCV");
LVL 25

Expert Comment

ID: 12198681
thank you sandeepaher!

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will give core knowledge of JavaScript and will head in to your first JavaScript program. I am Durvesh Naik and I am here to deal with this series of JavaScript. I will teach you JavaScript in part wise , as its quite boring to read big…
A while back, I ran into a situation where I was trying to use the calculated columns feature in SharePoint 2013 to do some simple math using values in two lists. Between certain data types not being accessible, and also with trying to make a one to…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

649 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question