Hi, As Alex says, you need to URIEncode the values you're getting from the inputs, but that would probably result in a different symptom. Other than that, the code quoted works fine this end (provided I add the missing '}' at the end to close the function, but I'm assuming that's a copy and paste error). I assume 'updatedata', 'appendarray', and 'pageopened' are form fields (I used text fields) and that 'hidden- div' is a div.
So the problem must lay elsewhere in the page. I suggest Step #3 from here: http://proto-scripty.wikidot.com/faq#xyzprob HTH, -- T.J. Crowder tj / crowder software / com Independent Software Engineer, consulting services available On Jun 2, 3:20 am, "[email protected]" <[email protected]> wrote: > 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 -~----------~----~----~----~------~----~------~--~---
