Here is a new version of this modification i'd like you guys to review:

it replaces the initial
http://code.google.com/p/iui/source/browse/web-app/iui/iui.js#560

addEventListener("click", function(event)
{
        var link = findParent(event.target, "a");
        if (link)
        {
                function unselect() { link.removeAttribute("selected"); }
                if (link.href && link.hash && link.hash != "#" && !link.target)
                {
                                followAnchor(link);
                }
                else if (link == $("backButton"))
                {
                        ...

by

addEventListener("click", function(event)
{
        var link = findParent(event.target, "a");
        if (link)
        {
                function unselect() { link.removeAttribute("selected"); }
                if (link.href && link.hash && link.hash != "#" && !link.target)
                {
(($(link.hash.substring(1)))!=null)? followAnchor(link):location.href=link.href;
                }
                else if (link == $("backButton"))
                {
                        ...

As you can see, it's just a 60 characters addition to the original code and it works pretty well : )
demo: http://www.we-are-gurus.com/labs/iui/sandbox/anchor/

R.

--
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.

Reply via email to