try URIencoding it ..

Also if its post why are you sending it as key/value pairs ..... try the 
following to see if its whats messing it up

var myAjax = new Ajax.Updater(target, url+'?'+pars, {method: 'post', 
parameters: foo: 'BAR'}); // notice i am sending your key value pairs in the 
URL string ... then on the php end do
print_r($_GET);
echo("\n");
print_r($_POST);

And see what the server says
HTH

ALex

----- Original Message ----- 
From: <[email protected]>
To: "Prototype & script.aculo.us" <[email protected]>
Sent: Tuesday, June 02, 2009 3:20 AM
Subject: [Proto-Scripty] Problem with Ajax.Updater...


>
> Hello shiny people!! :)
>
> can somebody understand as to why this code doesn't work on IE and
> Opera, while working fine in other browsers?
>
> function commentUpdate(){
> // finally prepare data and make a new AJAX call...
>     var updatedata = document.getElementById('updatedata').value;
>     var appendarray = document.getElementById('appendarray').value;
>     var pageopened = document.getElementById('pageopened').value;
> //     document.getElementById('tempholder').value = "Updating...";
>     var url = '/components/com_cbactivity/add-on1/helpers/
> commentupdate.php';
>     var pars = 'updatedata='+updatedata+'&appendarray='+appendarray
> +'&pageopened='+pageopened;
>     var target = 'hidden-div';
>     var myAjax = new Ajax.Updater(target, url, {method: 'post',
> parameters: pars});
>
> I don't see any syntax error, I tried both methods (get&post),
> everything gets executed, until Ajax.Updater!
> Then, it simply doesn't "enter" the  file!
>
> All this, ONLY on IE and Opera! Other browsers working fine! And this
> is what's surprising! Because the target file (commentupdate.php) is a
> pure PHP file, which means everything is server-processed!
>
> >
> 


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" 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/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to