Page 1 of 1

error on using jar:http://localhost/clients/js/signedJar.jar

Posted: Thu Feb 12, 2009 7:59 am
by manupriya.sinha
Hi,

We are using PHP 5.0, Java Script and Apace HTTP Server.

For Mozilla security reason, we have created a signed jar of all the js files being used in our application. We have put this jar in the js folder itself.

We have successfully installed the certificate. Now from one of the php page, we are using the following code -

<script type="text/javascript" src="jar:http://localhost/clients/js/signedJar.j ... "></script>
var ClipboardText=getClipboard();

getClipboard() method is in editGrid.js file. But I get an exception telling getClipboard() method is not defined.

Please help.I think I am missing out on something important.

Thanks,
Manu

Re: error on using jar:http://localhost/clients/js/signedJar.jar

Posted: Thu Feb 12, 2009 10:25 pm
by susrisha
var ClipboardText=getClipboard();
If thats a javascript code, you have forgot to place it in the script tags..

Code: Select all

 
<script type="text/javascript" src="jar:http://localhost/clients/js/signedJar.jar!/editGrid.js"/>
<script type="text/javascript">
var ClipboardText=getClipboard(); 
</script>
 

Re: error on using jar:http://localhost/clients/js/signedJar.jar

Posted: Thu Feb 12, 2009 10:38 pm
by John Cartwright
I seriously doubt javascript will have access to the users clipboard.

Moved to Client-Side.

Re: error on using jar:http://localhost/clients/js/signedJar.jar

Posted: Wed Feb 18, 2009 6:27 am
by manupriya.sinha
We have put the code snippet here... the javascript is inside <SCRIPT> tag.

Actually our code works fine in IE. It is due to Mozilla Security that we are not able to run the same javascript in Firefox.

Thanks,
Manu