Bonjour Christophe,
Well... that is the thing... The code is SOOOO simple (too? and in any
case a lot of magic in the background)
My form is
========%<=========%<============
<form action="" id="NRYForm" method="POST" onsubmit= "selt=$
('formsubmit'); selt.hide(); new Ajax.Updater('status','/ajaxrpc/
directPrint/', {asynchronous:true,
parameters:Form.serialize(this),onComplete:function()
{selt.show();}});xx= document.getElementById( 'id_Batch' ) ;
xx.value=''; return false";"/>
<table><tr><th><label for="id_Batch">Batch Number:</label></
th><td><input type="text" name="Batch" id="id_Batch" /><br />Scan or
type in the batch umber<input type="hidden" name="value"
value="BatchBundleBC" id="id_value" /></td></tr></table>
<input type="submit" id="formsubmit" value="Print">
</form>
========%<=========%<============
On the server I do
========%<=========%<============
myencoder=simplejson.JSONEncoder(ensure_ascii=False,sort_keys=True)
return HttpResponse(myencoder.encode("<p>This is my status</p>"))
========%<=========%<============
The message gets displayed where I expect it.... but with quotes. I
use the same system to cascade dropdown select and it works great.
Thanks,
François
<div id="status"></div>
On May 23, 1:31 pm, Christophe Porteneuve <[EMAIL PROTECTED]> wrote:
> Hey François
>
> W/o any code we won't be able to help you...
>
> --
> Christophe Porteneuve a.k.a. TDD
> "[They] did not know it was impossible, so they did it." --Mark Twain
> Email: [EMAIL PROTECTED]
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Spinoffs" 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/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---