If you have the possibility to change the pulled-in page, then I
suggest using IDs and then scroll via javascript, for example like
this:
<a id="anchor_1">foo 1</a>
var item = document.getElementById('anchor_1');
item.offsetParent.scrollTop = item.offsetTop;
Maybe you can use "getElementByName(anchor_name)" for this task, then
you would not need to change the pulled-in website. But I myself have
never used this function and no experience.
On Jul 22, 7:54 am, chuckphillips <[EMAIL PROTECTED]>
wrote:
> I use iui and would like to link to a named anchor on a page (pulled
> in via ajax).
>
> Foo is a link to a page with a named anchor "6"
>
> <ul id="test" title="Test">
> <li><a href="/foo/#6">Foo</a></li>
> </ul>
>
> /foo is a snippet of html that contains lots of text with named
> anchors
>
> i.e.
>
> <a name="1">foo1</a> <p>tons of text here</p>
> <a name="2">foo2</a> <p>tons of text here</p>
> <a name="3">foo3</a> <p>tons of text here</p>
> <a name="4">foo4</a> <p>tons of text here</p>
> <a name="5">foo5</a> <p>tons of text here</p>
> <a name="6">foo6</a> <p>tons of text here</p>
>
> How might you attack this issue?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"iPhoneWebDev" 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/iphonewebdev?hl=en
-~----------~----~----~----~------~----~------~--~---