djax
djax copied to clipboard
scroll to location links within djax page
I am trying to use simple "click link to go to different location on the page" on one of my pages using djax, but it does not seem to work. Looks like there is some conflict.
To show what i want to achieve, here is the markup from one of my pages:
<div class="one-third column" id="middle">
<a href="#s1">Section 1</a>
<a href="#s2">Section 2</a>
<a href="#s3">Section 3</a>
<h1 id="s1">Header 1</h1>
<p>Lorem Ipsum</p>
<h1 id="s2">Header 2</h1>
<p>Lorem Ipsum</p>
<h1 id="s3">Header 3</h1>
<p>Lorem Ipsum</p>
</div>
Is this even possible while using djax?
Thanks for any help, and nice script!
@o-l-e I'm not certain of the current behavior but these should definitely be ignored by djax. I'll ensure so in the next update.
hi, i have a messy test here http://sandbox.slettenostvold.com/djax/index.html What am i doing wrong?
Thanks
Try name attribute instead of id.
<h1 name="s1">Section 1 header</h1
sorry, just tried it and no luck.