Go Back   CodingForums.com > :: Client side development > JavaScript programming > DOM and JSON scripting

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-26-2006, 09:53 AM   PM User | #1
burrough
New Coder

 
Join Date: Jul 2006
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
burrough is an unknown quantity at this point
Question Event handling in mobile browser..

Hi All,
I was looing for some kind of information how event handling would be done in a mobile browser..
i would be greatful if i could get some info on how i can implement the complete event handling module from capturing of events to handling(invoking scripts and as such... )...

(PS :@ KOR
As per ur suggestion Kor , i started a new thread so that i cud get some more help... please keep me updated with ur thoughts)
burrough is offline   Reply With Quote
Old 07-26-2006, 01:18 PM   PM User | #2
Kor
Red Devil Mod


 
Kor's Avatar
 
Join Date: Apr 2003
Location: Bucharest, ROMANIA
Posts: 8,478
Thanks: 58
Thanked 379 Times in 375 Posts
Kor has a spectacular aura aboutKor has a spectacular aura about
You must first tell us what kind of browser u will use. Compatible NS, compatible Mozilla? Compatible IE... And which version NS4, NS7, IE4, IE 6, ....

Second you must make clear what you understand by "handling events"
__________________
KOR
Offshore programming
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
Kor is offline   Reply With Quote
Old 07-26-2006, 01:30 PM   PM User | #3
burrough
New Coder

 
Join Date: Jul 2006
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
burrough is an unknown quantity at this point
hi there

I am really sorry for keeping it abstract...

I am currently referring KHTML which is used in webcore... (apple's browser... )

i would actually put across a sample case ..

<input type = "button" name="b" value="Search" Onclick="doSomething()">

on coming across something like this i know that firts step would be registering a handler and then we will have to probably invoke the scripts whenthe onclick actually happens.. this is the skeleton flow i know .. i would like u to tell me how can i go about the implemenatation of the same and in the first place if i am right about the above explanation... ..

please lemme know on how i can go about the implementation of the same
..
i hope i am clear...
burrough is offline   Reply With Quote
Old 07-28-2006, 05:10 AM   PM User | #4
burrough
New Coder

 
Join Date: Jul 2006
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
burrough is an unknown quantity at this point
hello

I am not sure if i have put across my problem clearly... i would like to know if any more details are required so that i can get some lead to get started..
burrough is offline   Reply With Quote
Old 07-31-2006, 03:56 PM   PM User | #5
brothercake
Senior Coder


 
Join Date: Jun 2002
Location: near Oswestry
Posts: 4,508
Thanks: 0
Thanked 0 Times in 0 Posts
brothercake is an unknown quantity at this point
It varies widely by device and browser.

I can tell you that that specific example will work in Pocket IE, but that's about the limit of its complexity - it doesn't support DOM handlers, only inline handlers.

Mobile Opera 8 however is almost on a par with its desktop cousin, however you still have a limited range of events, because the devices just can't generate many of them - you'll get click events, focus events if a device has a d-pad, and the usual programattic events like the submit event of forms and the onreadystatechange of an xmlhttp request.

Minimo sucks and blows - I wouldn't waste time with it.

But really - the bottom line here has to be one of practicality - if you're developing for a mobile platform, you need a test device; there's no way you'll be able to do a good job just by asking people to check it every now and then.

So - do you have such a device? What is it running? Is that your target audience?
__________________
"Why bother with accessibility? ... Because deep down you know that the web is attractive to people who aren't exactly like you." - Joe Clark
brothercake is offline   Reply With Quote
Old 08-01-2006, 05:27 AM   PM User | #6
burrough
New Coder

 
Join Date: Jul 2006
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
burrough is an unknown quantity at this point
hi

Thanx for the response........
currently my device is Pocket PC......but the whole idea is to have platform independent browser may be catering to a whole range.As of now i have started on pocket PC.
can i get some information on how i can use the DOM to achieve the whole of event handling.Details on how one would invoke DOM and more on the flow of the control for event hamdling using DOM.
burrough is offline   Reply With Quote
Old 08-02-2006, 04:47 PM   PM User | #7
brothercake
Senior Coder


 
Join Date: Jun 2002
Location: near Oswestry
Posts: 4,508
Thanks: 0
Thanked 0 Times in 0 Posts
brothercake is an unknown quantity at this point
Okay well as it stands now, what you want is a pipe-dream - you're not gonna be able to make an app that works on all mobile browsers, you will have to code-fork for each specific one you want to support.

So - if Pocket IE is your first audience, DOM scripting is not gonna help you - it doesn't properly support it, it generally only supports inline handlers. So the first thing I suggest is that you set up a test page with a few inline handlers, and see which ones are working.
__________________
"Why bother with accessibility? ... Because deep down you know that the web is attractive to people who aren't exactly like you." - Joe Clark
brothercake is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:55 AM.


Advertisement
Log in to turn off these ads.