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
error on using jar:http://localhost/clients/js/signedJar.jar
Moderator: General Moderators
-
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
If thats a javascript code, you have forgot to place it in the script tags..var ClipboardText=getClipboard();
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>
- 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
I seriously doubt javascript will have access to the users clipboard.
Moved to Client-Side.
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
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
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