Obviously no one else cares but I found a solution to this so I
thought I'd post it:

Below is a modified version of the example code shown on this page
( http://code.google.com/apis/gadgets/docs/ui.html )

The example shows how to add to a To Do or Grocery list
When the user hits enter / return instead of clicking on the add
button
the app errors with:"Missing or malformed url parameter"

By modifying the form to xhtml instead of html4 and adding a
javascript void
function to the forms Action parameter the app no longer throws this
error.

here's the modified form code:
  <form name="myform" id="myform" action="javascript:void(0);"
method="GET"><br/>
  <input type="text" name="inputbox" id="inputbox" value="" />
  <input type="button" id="button" name="button" value="Add"
onClick="addToList(this.form)" />
  <input type="button" id="button2" name="button2" value="Clear"
onClick="clearList(this.form)" />
  </form>

Thanks
JMcG

On 28 July, 15:16, jmcg <[email protected]> wrote:
> Firstly, apologies if this has been asked before, I did search but
> found 0 results.
>
> I'm having problems with a user input form,
> if the user fills in the input textbox and clicks the button in the
> form the gadget works and pulls the information required.
> if the user fills in the input textbox and presses the enter key they
> see this error
>  "Missing or malformed url parameter".
>
> This also happens using the example "Grocery List Gadget" on this page
> -http://code.google.com/apis/gadgets/docs/ui.html
>
> I get the same error using both Firefox v3.5.1 and Internet Explorer
> 7.0.5730.13 on a
> Windows XP Professional Edition Service Pack 3 machine.
>
> Any suggested workarounds would be greatly appreciated.
>
> JMcG
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"iGoogle Developer Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Gadgets-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to