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

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
manupriya.sinha
Forum Newbie
Posts: 2
Joined: Thu Feb 12, 2009 7:54 am

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

Post 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
User avatar
susrisha
Forum Contributor
Posts: 439
Joined: Thu Aug 07, 2008 11:43 pm
Location: Hyderabad India

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

Post 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>
 
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

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

Post by John Cartwright »

I seriously doubt javascript will have access to the users clipboard.

Moved to Client-Side.
manupriya.sinha
Forum Newbie
Posts: 2
Joined: Thu Feb 12, 2009 7:54 am

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

Post 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
Post Reply