Can i send parameter to php controller using javascript but without jquery or ajax? -


Well enough questions can be explained.

What I'm trying to do is get the data from the popup and turn on I want to send the material I received for processing in a PHP controller.

But I do not want to use the jquery library, because it is making a struggle for me.

Update Window. Afterwards = Confirm Exact; Confirm functionExit () {var a = document.getElementsByTagName ("div"); (I = 0; i & lt; a.length; i ++) {if (a [i] .className == 'ymx-frame-content') {var b = a [i] .getElementsByTagName ("div" ) InnerHTML; // warning (b); }} Ajax should be a window here. Load later = reload opener; If (top.opener & top.opener.closed) {try {opener.location.reload (1); } Hold (e) {} window.close (); }} Window.ununload = function () {reloadOpener ();

You can only use jquery-less AJAX: < Pre> var a = New XMLHttpRequest (); A.open ("GET", "myscript.php on = foo & amp; othervar = bar", true); A.onreadystatechange = function () {if (this.readyState == 4) {if (this.status == 200) {// Data has been successfully sent / response in this. Response text) and warning ("HTTP error" + this.status); }}; A.send ();

Alternatively, you can create a iframe tag and point it to the correct page. You can also make a form and post it on the frame as needed.

Comments

Popular posts from this blog

python - Assemble mpeg file unable to play in mediaplayer -

c# - crystal report failed -

mongodb - CakePHP paginator ignoring order, but only for certain values -