dcsimg
Unable to load value in parent HTML from Applet
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   sudhir_garg
Posted On:   Wednesday, January 16, 2002 11:04 PM

Hi All, I am trying to write an applet which will call when user clicks on an image(on image click i am calling window.showModalDialog("myhtmlpageinwhichappletembeded")) .Let me say first page is simple html page which consists an Image and textbox in html . Inside the applet i am doing some processing like user will enter query and displaying record in listbos(Applet List). Now my problem is whatever value user has selected from listbox should be popdown on parent html page from which i am calling the applet.I am providing a button(Button class) in applet which will take the selectecd value from the listbox i.e. value is coming proper. since i am writing a method in java applet named getValues(), and i am calling this function in javascript as f   More>>

Hi All,
I am trying to write an applet which will call when user clicks on an image(on image click i am calling window.showModalDialog("myhtmlpageinwhichappletembeded")) .Let me say first page is simple html page which consists an Image and textbox in html . Inside the applet i am doing some processing like user will enter query and displaying record in listbos(Applet List). Now my problem is whatever value user has selected from listbox should be popdown on parent html page from which i am calling the applet.I am providing a button(Button class) in applet which will take the selectecd value from the listbox i.e. value is coming proper. since i am writing a method in java applet named getValues(), and i am calling this function in javascript as following

/*
following code is in my embedded html file
*/

function fnsubmit()
{
alert("i am trying to close the applet window");
returnValue =document.Cal.getValues();
// cal is my applet name
alert(returnValue);
// this value is coming proper
// But i am unable to load this value in textbox of parent html . this is undefined
window.close();
}





/*
following code is in my parent html file
*/


























Please help this is urgent.
Thanks in Advance

Sudhir    <<Less
About | Sitemap | Contact