Hi Every one ...
Please help me to solve our problem ..
we are trying to Bookmark our page through \"Bookmark\" link provided on our page ,
for that We have signed that page with script buy NSS \"signtool\" and all certificate and files packed in a Jar file.
It working nice in Local machine . But it not working on web or End User so please give me Solution for enabling that script on web also ..
Below The script we try to use..
function addBookmark()
{
//${pageContext.request.requestURL} var urltest=url.value;
if (navigator.userAgent.indexOf(\'Gecko\') == -1)
{
alert(\"You are in IE Browser \");
var boll =\"${pageContext.request.requestURL}\";
window.external.AddFavorite(boll,\'community forums\');
alert(\"You added \");
}
else
{
netscape.security.PrivilegeManager.enablePrivilege(\"UniversalXPConnect\");
var bmsvc = Components.classes[\"@mozilla.org/browser/nav-bookmarks-service;1\"]
.getService(Components.interfaces.nsINavBookmarksService);
var ios = Components.classes[\"@mozilla.org/network/io-service;1\"]
.getService(Components.interfaces.nsIIOService);
alert(\"You have granted privelaged from Mozilla Authority\");
//var uri = ios.newURI(\"
http://www.example.org/\", null, null);
var uri = ios.newURI(\"
http://www.example.org/\", null, null);
var newBkmkId = bmsvc.insertBookmark(bmsvc.bookmarksMenuFolder, uri, bmsvc.DEFAULT_INDEX, \"example.org\");
}
}
Please reply me we are in trouble
Regards
Ashutosh Kumar
9324177101