I originally had my view look something like:
<% @heading = “Bugs” %>
<%= link_to ‘Bug table’, :action => ‘bug_table’ %>
I originally had my view look something like:
<% @heading = “Bugs” %>
<%= link_to ‘Bug table’, :action => ‘bug_table’ %>
Ping? 2 weeks and no one knows…?
Summary:
Thanks!
Go get Firebug: http://www.getfirebug.com
You’re obviously including the javascript into your page, it’s just not
getting initialized properly.
Jason
Jason R. wrote:
Go get Firebug: http://www.getfirebug.com
You’re obviously including the javascript into your page, it’s just not
getting initialized properly.
Jason
Ok, this just gets weirder & weirder…
Firebug shows that the javascript is loaded & all seems well. (Maybe
I’m not clear what I need to check to see that it’s “initialized”…?)
Just as a sanity check, I put the js back in the main file, and
verified: sure enough, all works correctly. Pulled it back out, no
workie.
Ok, so where in firebug do I look to see what is different? For what am
I looking?
Thanks!
On 23 Oct 2007, at 19:08, Olie D. wrote:
Just as a sanity check, I put the js back in the main file, and
verified: sure enough, all works correctly. Pulled it back out, no
workie.Ok, so where in firebug do I look to see what is different? For
what am
I looking?
Set breakpoints and step through them.
Fred
If there are no errors in the Console, then we’ll need to see what you
are
trying to do. The code you’ve posted doesn’t help with solving the
problem.
Jason
Basically, you’re code is not executing. I get the feeling that it’s
supposed to “just run”. This won’t happen in a file because the DOM is
not
yet loaded when the script is pulled in. It works in-line because
javascript
is run after the DOM is loaded.
You’ll need to wrap the code up in a function that gets called onload
(any
time after DOM is loaded, really).
Jason
Jason R. wrote:
If there are no errors in the Console, then we’ll need to see what you
are
trying to do. The code you’ve posted doesn’t help with solving the
problem.Jason
I’m using “show fully-HTML-savvy tool-tips (so BR, B, I tags, etc)” code
that I got from a tutorial on the web.
Again, if I put the javascript in the main source, it all works
perfectly. If I use the javascript tags & js in its own file, it
doesn’t work.
I’m not sure what parts you want to see. Should I upload a zip-folder
with some key bits?
Also, Fred, I’m not sure what you’re telling me about breakpoints. I’m
new to firebug, could you be explicit?
Thanks!
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs