html - JavaScript Add to Bookmark not working in FF >= 23.0 -


my javascript code bookmark search, works fine chrome, ie , ff versions less 23.0, not versions greater 23.0. can me this?
read http://www.mozilla.org/en-us/firefox/23.0beta/releasenotes/ changes in firefox versions > 23.0.
current code:

function bookmarkurl(title, url){     if ( window.sidebar ) window.sidebar.addpanel(title, url, ''); } function bookmarktip(tiptext){     document.getelementbyid('bookmark_tip').style.display = 'block';     document.getelementbyid('bookmark_tip_text').innerhtml = tiptext; }    function firefox_bookmark(title, url) {     jquery('#bookmark_tip').show();     settimeout(function() {          jquery('#bookmark_tip').fadeout(500);      }, 30000);     bookmarkurl(title, url); } 

html:
<a class="bookmark" onclick="firefox_bookmark('cricket', 'url');">bookmark link</a>

as @poonamthapar states, firefox have removed proprietary function window.sidebar.addpanel firefox v23 (see here, third bullet point)

line 4 of (formatted) script block below offending line

<script type="text/javascript">   function bookmarkurl(title, url){      if (window.sidebar)       window.sidebar.addpanel(title, url, ""); // <-- function removed in firefox v23   }   function bookmarktip(tiptext){     document.getelementbyid('bookmark_tip').style.display = 'block';     document.getelementbyid('bookmark_tip_text').innerhtml = tiptext;   }   function firefox_bookmark(title, url) {     jquery("#bookmark_tip").show();      settimeout(function() {        jquery("#bookmark_tip").fadeout(500);      }, 30000);     bookmarkurl(title, url);   } </script> <a class="bookmark" onclick="firefox_bookmark('cricket', 'url');">bookmark link</a> 

Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -