Displaying 2 results from an estimated 2 matches for "linkstoint".
Did you mean:
linkpoint
2010 Jun 16
4
firebug jQuery undefined message in rails app
..."../javascripts/application.js"></script>
<script type="text/javascript"
src="../javascripts/jquery-1.4.2.js"></script>
and I installed jquery in public/javascripts
Any ideas what''s going wrong? thanks for reply.
(function($) {
var linksToInt = {
"#pple": 0,
"#serv": 1,
"#sol": 2,
"#dash": 3,
"#adm": 4,
"#inv": 5,
"#stu": 6
}
/*
links = document.getElementsByTagName("a");
if(links.clas...
2010 Jun 21
4
javascript tabs not working in rails app
...uot;tabContent" id="b">
<p>
Content
</p>
</div>
<div class="tabContent" id="c">
<p>
Content
</p>
</div>
<% end %>
This is in application.js:
$(document).ready(function() {
var linksToInt = {
"#i": 0,
"#j": 1,
"#k": 2,
"#a": 3,
"#b": 4,
"#c": 5,
"#d": 6,
"#e": 7,
"#f": 8,
"#g": 9,
"#h": 10}
$("a").click(function(){displayDiv($(this).at...