Can a Java guru solve this Droid top-of-page problem?
This is a discussion on Can a Java guru solve this Droid top-of-page problem? within the Droid Development forums, part of the Droid Hacking category; [CODE]
First some background. It is an established fact that the Droid browser has idiosyncrasies that can interfere with programmatic control. I first noticed this ...
-
Can a Java guru solve this Droid top-of-page problem?
[CODE]
First some background. It is an established fact that the Droid browser has idiosyncrasies that can interfere with programmatic control. I first noticed this with the behavior of the back button. After much testing and help-seeking, I concluded that there was a hardware glitch in the Droid and started a forum thread about my findings titled, “Droid backbutton vs. Iphone backbutton.” There was skepticism about my claims in the thread at first, but a month after it started, someone confirmed my findings and provided a technical explanation for the undesired behavior I’d been observing. (pseudomammal on 10/14, if you’re interested).
Well now I’ve come up with a second Droid-browser-only glitch where it seems to defy Java control. I have a running example where the problem can be reproduced: just go to www.tofilmfest.ca/tiffwidget, choose “schedule and lists,” then choose “next,” and you’ll be at a multi-paged gridview with page command buttons at the top and bottom. If you go to the bottom and press the next page button, it will turn the page and then go to the top of the form – IF you’re using a desktop browser or an iPhone browser. With a Droid, it turns the page and goes to the top momentarily … after which, it goes right back down to the bottom.
Here is the Java code that makes it go to the top:
Code:
Sys.WebForms.PageRequestManager.getInstance().add_pageLoaded(PageLoadedHandler);
function PageLoadedHandler(sender, args) {
var dataItems = args.get_dataItems();
if (dataItems['GridViewCommand'] == 'Page') {
window.scrollTo(0, 0);
pageTracker._trackPageview('Pageturn');
}
}
Can someone suggest a Droid workaround for this problem? A way Java can make a Droid browswer go to the top from a button control and stay there? Say a simulated ctrl-home? Or an enforced pause after the scroll command?
-
-
ask over at xda or pm a dev
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
Similar Threads
-
By albacore in forum Droid General Discussions
Replies: 0
Last Post: 09-23-2010, 08:36 AM
-
By chrisusa96 in forum Droid 2 General Discussions
Replies: 6
Last Post: 08-28-2010, 09:54 PM
-
By GaryDZ in forum New Member Introductions & Site Assistance
Replies: 0
Last Post: 07-24-2010, 11:21 AM
-
By hrhkee in forum Droid General Discussions
Replies: 18
Last Post: 11-28-2009, 05:38 AM
Search tags for this page
android browser go to top of page
,
android browser scroll to top problem
,
android browser scrolling issue in forms
,
android gridview scroll problem
,
android javascript scroll top of page
,
android scroll to top java
,
as droid browser loads goes back to top
,
how do i scroll in a widow on my droid
,
how to go back to top of page android browser
,
how to go to top of thepage in android browser
,
java for droid 2
,
java top of page
,
javascript scroll top page android
,
scroll top of page android browser
,
window.scrollto android
Click on a term to search our site for related topics.
Tags for this Thread