I know how to submit a value in a form to a php script the "regular" way. However, I can't find out how to submit a value using a "b:button". Any help appreciated.
It works if the Handler of the button selects the form and then submits it:
So if you click the button the form gets submitted and the output of "dosomenthing.php" gets into the "result"-div.
hth
Matthias
Thanks, Matthias, I'll try that.
Bernhard
Another way to send data would be using c:load or bb.command.load Cheers, Ghica
It works if the Handler of
18 May, 2008 - 14:42 — ZappelIt works if the Handler of the button selects the form and then submits it:
<input type="text" name="myInput">
</form>
<b:button>Submit
<e:handler event="click" type="text/javascript">
form = bb.document.getElementById("myForm");
myForm.submit();
</e:handler>
</b:button>
<div id="result">
</div>
So if you click the button the form gets submitted and the output of "dosomenthing.php" gets into the "result"-div.
hth
Matthias
Thanks a lot
18 May, 2008 - 15:23 — fishermanThanks, Matthias, I'll try that.
Bernhard
Another way to send data
18 May, 2008 - 23:32 — ghicaAnother way to send data would be using c:load or bb.command.load
Cheers, Ghica