Webview

Put your problem here if it does not fit any of the other categories.

Webview

Postby dswastik » Wed Mar 09, 2011 8:33 am

I am displaying a web page in web view, which has an element like this
<input type=checkbox id=a1>
Is there any way, that when this checkbox is checked/unchecked I get a notification in my activity class.
dswastik
Freshman
Freshman
 
Posts: 2
Joined: Wed Mar 09, 2011 8:30 am

Top

Re: Webview

Postby raj_J2ME » Wed Mar 09, 2011 10:00 am

dswastik wrote:I am displaying a web page in web view, which has an element like this
<input type=checkbox id=a1>
Is there any way, that when this checkbox is checked/unchecked I get a notification in my activity class.

Hey Welcome to Android Forums,

This is how you can get the notification of the event occurred,

Code: Select all
<input type="button" value="Say hello" onClick="showAndroidToast('Hello Android!')" />

<script type="text/javascript">
    function showAndroidToast(toast) {
        Android.showToast(toast);
    }
</script>


Follow the same way for the checkbox too.
Please check and revert... :)
Thanks with Regards,
Raj - The Kernel
raj_J2ME
Master Developer
Master Developer
 
Posts: 311
Joined: Tue Feb 15, 2011 7:40 am
Location: The Capital of India,

Re: Webview

Postby dswastik » Thu Mar 10, 2011 11:44 am

Thanks a lot, it worked.
dswastik
Freshman
Freshman
 
Posts: 2
Joined: Wed Mar 09, 2011 8:30 am

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 13 guests