PDA

View Full Version : How to run javascript properly from swf in PDA device


k_sinha
02-28-2007, 06:51 AM
We are trying to call some javascript methods/ functions fron flash using getURL function, but when we are running the file in PDA device, the javascript function is not getting properly called and 'page cannot be found' page is opening in the same browser window. Can anyone please give the solution is this regard? This is bit urgent. Thanks.

lindee
02-28-2007, 07:39 AM
can we see your getURL code?

k_sinha
02-28-2007, 09:10 AM
Thanks for your response,

This is one example of getURL I am using,

var options = "width=800,height=600,toolbar=no,menubar=no,resizab le=no,scrollbars=yes";
getURL("javascript:openNewWindow('help/help.htm','"+options+"')");

This 'openNewWindow' function is written in the javascript file,

function openNewWindow(URLtoOpen,parameters) {
newWindow=window.open(URLtoOpen, "",parameters );
}