Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
New Developer
riddler
Posts: 2
Registered: ‎02-17-2009
My Device: Not Specified

JavaScript Radio Buttons with Bold

I just received two new BlackBerry devices with 4.5 and 4.6 OS to test out a wireless application

I noticed that certain javascript that worked on the 4.2 and the 4.3 devices no longer work on the 4.5 and 4.6 ones. Here is the code that is on the handheld.

 

<input type = "radio" name ="pageChoice" VALUE="V" onClick="document.intro.submit()">View<br/>


What used to happen is that the page would be submitted when one of the (many) radio button on the menu screen were selected. It would be redirected to a struts action where the following code would be executed:

 

String choice = (String)req.getParameter("pageChoice");

System.out.println("choice>" + choice + "<");
 
On the 4.2 & 4.3 devices, the ‘pageChoice’ variable returns V if ‘View' is selected. However on 4.5 and 4.6 devices, null is being displayed.  The page is being redirected, but the request value is empty.

Any thoughts on this?

 

Thanks

Developer
Posts: 107
Registered: ‎09-25-2008
My Device: Not Specified

Re: JavaScript Radio Buttons with Bold

Can you provide a full test page? Is the input tag properly contained within the form element?