Passing parameter to applet using JavaScript

wxdqz

New Member
I am writing an application where I obtain data from one site, when I clicka submit button I request another site to open. The second site containsan applet that contains a form. I want to put the data into the form. MyJavaScript function to open the form and insert the data is called by thepage onLoad event. The problem is that the applet isn抰 finished initalizingbefore the showForm method is called. I get an 搊bject does not exist?error,then the form opens (without my data). Here抯 my function. Any help wouldbe appreciated.<script language=擩avaScript?gt;function Selected() {var handyString = parent.location.search;var startOfSource = handyString.indexOf("acct=");if (startOfSource != -1){var result = handyString.substring(startOfSource+5,20);top.MapFrame.document.MapCafe.externalAPI("FindTool SetReqName Find \r\n");top.MapFrame.document.MapCafe.externalAPI("FindTool SetText \""+result+"\"");top.MapFrame.document.MapCafe.externalAPI("FindTool Show\r\n");}}</script></head><BODY onload="Selected();"><APPLET厖厖厖
 
Back
Top