search for: on_btn_click

Displaying 2 results from an estimated 2 matches for "on_btn_click".

2010 Jun 16
4
firebug jQuery undefined message in rails app
...dexOf("div-link") > -1){ links.onclick = function{ removeHash(this.getAttribute("href"));}; } */ $("a.div-link").click(function(){displayDiv($(this).attr("href"));}); function displayDiv(id){ var linkInt = linksToInt[id]; on_btn_click(linkInt); } function on_btn_click(displayDiv){ displayDiv != null ? null : this; switch(displayDiv){ case 0: $(content).empty(); $(displayDiv).show(); break; case 1: $(content).empty();...
2010 Jun 21
4
javascript tabs not working in rails app
...": 3, "#b": 4, "#c": 5, "#d": 6, "#e": 7, "#f": 8, "#g": 9, "#h": 10} $("a").click(function(){displayDiv($(this).attr("href"));}); function displayDiv(id){ var linkInt = linksToInt[id]; on_btn_click(linkInt); } function on_btn_click(displayDiv){ displayDiv != null ? null : this; switch(displayDiv){ case 0: $("#content > div").hide(); $("#a").show(); break; case 1: $("#content > div")...