Ok so I missed something.
What I intent to do is a admin application to store informations on a
web serveur. These informations will be used by Flahs, PHP and Ajax
applications.
The flow is :
1) Admin page (HTML) use form to encode data and send it via a POST to
the PHP backend
// this use POST by default
send( $('requestURL').value , "title="+$('dataTitle').value
+"&description="+$('dataDescription').value );
// I think here accents are replaced by \u00e9 like strings
2) The backend store the data (in JSON files for the moment)
// this save the object in JSON file using the JSON.org PHP lib
$newObj = $dm->create();
$newObj->id = $this->id;
$newObj->title = $_POST['title'];
$newObj->description = $_POST['description'];
return $dm->save( $newObj );
3) The admin pas collect the information from the server to display
them
var obj = o.responseText.evalJSON();
This is in this last step I got a problem.
....
I'm confused !
I was modifying a test console page to show you my problem.
And now it works :-?
Using YUI : http://www.constantdupuis.be/t/kosmotor2/testConsole.html
Using Prototype (1.5.1_rc2) :
http://www.constantdupuis.be/t/kosmotor2/testConsolePrototype.html
I don't understand ! Sorry !
...
I really missed something !
Thanks and Regards,
Con(fused)stant
On 12 avr, 21:20, "tobie" <[EMAIL PROTECTED]> wrote:
> I just did a quick test here:http://sandbox.tobielangel.com/and all
> seems to work as expected on the JSON side of things.
>
> Looks like its definitely a header/url encode issue.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---