Thank you! That with:
<% if @section>0 %>
<script type="text/javascript">
// <!--
document.location.hash="id<%= @rowid %>";
// -->
</script>
<% end %>

at the *start* of the file was all that was needed!

On Oct 1, 1:42 pm, Marnen Laibow-Koser <rails-mailing-l...@andreas-
s.net> wrote:
> Matt wrote:
> > Hi
>
> > This might be more of an HTML question but it could be because of an
> > interaction with Rails that the solution I use right now is not
> > working.
>
> > I have tried several ways to jump/scroll to a certain row in a large
> > table, I tried an event like <div id="event#666"> and use
> >http://website#section#666
> > I inserted the div with the even before the <tr> and after it, both
> > did not work
>
> Right. This won't work, both because jumping to an ID doesn't work and
> because a div can't surround a TR.
>
>
>
> > I have also tried to use <a name="event#666"> (found this also on the
> > web somewhere) but it also did not work.
>
> This is the correct tag -- but you can't put a # into the name.  What
> you want is <a name="some_name"></a>.   Then to refer to it, use 
> thehttp://url/of/the/page#some_name.
>
>
>
> > Is there another solution that is more rails friendly? What am I
> > messing up?
>
> You're messing up basic HTML syntax, nothing to do with Rails directly.
> :)
>
> Best,
> --
> Marnen Laibow-Koserhttp://www.marnen.org
> [email protected]
>
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to