02-13-2011 03:01 AM
I have an HTML page that essentially consists of:
<input type="text" id="foo">
<input type="button" value="Save Card" onclick="doSomething();">
On Chrome, Firefox and IE this works great. doSomething() runs and that's all.
Any ideas how to keep the page from reloading on the BB? I've tried it with and without <form> tags, using a <button> instead of <input>, tried setting onclick to "doSomething(); return false;", but nothing I've tried works.
Any help would be much appreciated. Thanks!