[android-developers] Re: Trying to get Javascript on Android

2009-10-21 Thread ebisudave
[SOLVED] Found the answer here: http://rossboucher.com/2008/08/19/iphone-touch-events-in-javascript/comment-page-1/#comment-14391 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to

[android-developers] Re: Trying to get Javascript on Android

2009-10-08 Thread ebisudave
Um... hello? Is there anyone who has any idea how to implement a touchmove event? Anyone, anywhere? I have looked around the internet and asked on a few different forums, and got zero response. Zero. Nothing. Not even people telling me to RTFM or what's wrong with my question. I've tried

[android-developers] Re: Trying to get Javascript on Android

2009-10-05 Thread ebisudave
After much looking around on the subject, it is far from clear how I can get my slider to respond to a touch event. I have attempted to modify the YUI slider code as follows. What might be going wrong? Also, please note, I am a total JavaScript beginner. Not only is the code cobbled together

[android-developers] Re: Trying to get Javascript on Android

2009-10-01 Thread ebisudave
John, Fred, and Streets Of Boston, Sorry I stepped away from this conversation for a bit. Work has a nasty habit of getting in the way sometimes. Thank you for replying and explaining the situation to me a little more. I can now see how touch events might diverge from mouse events in certain

[android-developers] Re: Trying to get Javascript on Android

2009-09-20 Thread Maps.Huge.Info (Maps API Guru)
The reason they don't work on the Android browser (or webkit for that matter) is that they are using mouse events. If you want to use that code on the Android you have to use touch events instead. Try reading up on the following: touchstart - finger touches the screen touchmove - finger is

[android-developers] Re: Trying to get Javascript on Android

2009-09-20 Thread ebisudave
John, Thank you for the reply. Hmm... seems a little odd to me that they went and made a whole different set of events for using fingers on a touch screen when they are duplicates of what I do with a mouse. There's nothing about touching with a finger which, as far as I can see, is

[android-developers] Re: Trying to get Javascript on Android

2009-09-20 Thread Maps.Huge.Info (Maps API Guru)
It probably will work, mouse and touch events won't happen simultaneously. As for touch, you can have multiple finger touches (think iPhone) which can be interpreted differently than anything that can be done with a mouse. Android doesn't (I believe) support gestures at this point but may in the

[android-developers] Re: Trying to get Javascript on Android

2009-09-20 Thread Streets Of Boston
There's nothing about touching with a finger which, as far as I can see, is operationally different from the things I do with my mouse It *is* a little different. E.g. you won't have corresponding finger- events for mouseover, mouseout, etc. The phone cannot quite detect your finger hovering

[android-developers] Re: Trying to get Javascript on Android

2009-09-20 Thread Maps.Huge.Info (Maps API Guru)
One other thing... I've found differences between the way iPhone and Android handle events. Mouse events on the iPhone are handled differently on Android, so keep that in mind as well. -John Coryat What Zip Code? Radar Now! --~--~-~--~~~---~--~~ You received

[android-developers] Re: Trying to get Javascript on Android

2009-09-19 Thread ebisudave
Thank you everyone for the helpful information. What I have learned so far: * Android devices are limited in speed and power, so don't expect all the same functionality of a computer.* I understand this concept, and my initial suspicion is that this is not the issue. I have one (1) slider on

[android-developers] Re: Trying to get Javascript on Android

2009-09-19 Thread Mark Murphy
ebisudave wrote: Is there no reference that outlines any special considerations for how JavaScript runs on Android? Not that I have seen. Is Android *supposed* to run JavaScript like any other JavaScript capable browser? On the whole, yes. Bear in mind that Android uses WebKit, so where

[android-developers] Re: Trying to get Javascript on Android

2009-09-19 Thread ebisudave
Is Android *supposed* to run JavaScript like any other JavaScript capable browser? On the whole, yes. Bear in mind that Android uses WebKit, so where you see browser-specific instructions for Javascript libraries, follow those for iPhone, Safari, or perhaps Chrome. If only Chrome were

[android-developers] Re: Trying to get Javascript on Android

2009-09-19 Thread Maps.Huge.Info (Maps API Guru)
In a word: YES! Implementations of JavaScript vary across all the major platforms, you have to be very careful about testing, test and more testing each time you make a change to any code on a web page. The worst offenders are IE6 and IE7. Safari has plenty of quirks and as the iPhone is a

[android-developers] Re: Trying to get Javascript on Android

2009-09-19 Thread Jim Ancona
ebisudave wrote: On the whole, yes. Bear in mind that Android uses WebKit, so where you see browser-specific instructions for Javascript libraries, follow those for iPhone, Safari, or perhaps Chrome. If only Chrome were available on Linux... but that's another issue. I'm reading this

[android-developers] Re: Trying to get Javascript on Android

2009-09-19 Thread Shawn Brown
Hi, * http://www.nanaze.com/2009/01/debugging-javascript-on-android.html * Thank you for the link, however, that article went way, way over my head, at commercial airliner altitudes. Maybe not. Just: 1) get the sdk http://developer.android.com/sdk/1.6_r1/index.html 2) set your path

[android-developers] Re: Trying to get Javascript on Android

2009-09-19 Thread ebisudave
Here's what I have learned so far: The following scripts all behave the same on my Android device: http://developer.yahoo.com/yui/examples/slider/slider-ticks.html http://developer.yahoo.com/yui/examples/slider/slider_dual_thumb_clean.html

[android-developers] Re: Trying to get Javascript on Android

2009-09-19 Thread ebisudave
Shawn, This is much easier than the stuff I know you fiddle with in you linux box No... no it's not. Let's not get into broad statements about what my environment is like or how I handle it. Linux is fine, it's me who has different abilities, so please leave it for me to decide what I can and

[android-developers] Re: Trying to get Javascript on Android

2009-09-18 Thread Mark Murphy
ebisudave wrote: By way of introduction, please know that I'm a complete newbie when it comes to JavaScript. I'm a web designer who can program a little. But I've only just started playing with JavaScript about four days ago. I made a JavaScript slider with Yahoo's User Interface library:

[android-developers] Re: Trying to get Javascript on Android

2009-09-18 Thread Casper Bang
I asked a similar question a few weeks ago with no answer. I am using JQuery for some animation on a 1 sec timer which also fails in the Android browser. The only thing I can imagine is that we run into some kind of JavaScript speed limitation, exhausted javascript message pump or something like

[android-developers] Re: Trying to get Javascript on Android

2009-09-18 Thread Maps.Huge.Info (Maps API Guru)
I think a lot of developers, especially ones from the web world, forget that these mobile devices are like desktop computers of the mid-90's in power and speed. Trying to get a complex JavaScript application to run on the phone is probably going to be disappointing. Just because it runs on FF

[android-developers] Re: Trying to get Javascript on Android

2009-09-18 Thread Maps.Huge.Info (Maps API Guru)
You can easily test your device's browser JavaScript capabilities by calling up a Google Map API (v3 is best on mobile) application. Here's one you can try: http://www.usnaviguide.com/v3maps/ProjectedOverlayTest.htm If this map works, you have JavaScript enabled. -John Coryat What Zip Code?

[android-developers] Re: Trying to get Javascript on Android

2009-09-18 Thread Casper Bang
Oh certainly, but as I said, it works in the emulator. So currently I don't think my problem is due to heavy javascript usage. I don't want to steal the thread from ebisudave, but as an example of the kind I have trouble with, take a look at the top chart here (animated jquery sparkline example):

[android-developers] Re: Trying to get Javascript on Android

2009-09-18 Thread Shawn Brown
EbisuDave, I bet you are in Tokyo ! Have you tried: http://www.nanaze.com/2009/01/debugging-javascript-on-android.html Shawn --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post