Details - Web 2.0 & AJAX :: AJAX

This thread was displayed: 273 times


Starting with 17th May 2007, Adobe Systems will stop offering support for any version of the discontinued InterAKT products. As a result, we will not answer to new support incidents starting with May 17th, 2007. Pending support incidents will still be followed in order to be closed. The product forums will remain open and be transformed in user-to-user forums. The general forums will be made read-only and not allow new posts or comments.

For more information about the affected products visit: www.interaktonline.com/Support/

View Threaded Show descending
kuko Elasticky
08-19-2006 21:16:06 GMT +2

AJAX error:

Hi,

I've problem with AJAX on my page.... Even If I've changed script several times IE doesn't accept it and continiually request with the error statement:  line 23..bla bla object expected!

SCRIPT IS HERE:

<!--

//Ajax connection


var id;
var filename;
filename= "prihlasenie.php?&name="+document.getElementByID("meno").value+"heslo="+document.getElementByID("heslo").value;


/* ajaxFunction
-approach to PHP evaluating inserted inserted values..*/


function ajaxFunction(){
    var aVersions = [ "MSXML2.XMLHttp.5.0",
        "MSXML2.XMLHttp.4.0","MSXML2.XMLHttp.3.0",
        "MSXML2.XMLHttp","Microsoft.XMLHttp"
    ];

    for (var i = 0; i < aVersions.length; i++) {
        try {
            var oXmlHttp = new ActiveXObject(aVersions[i]);
return oXmlHttp;

//<< lines not recognized
        } catch (oError) {
            //Do nothing
        }
    }
    throw new Error("MSXML is not installed.");

 

// Create a function that will receive data sent from the server
 ajaxRequest.onreadystatechange = function(){
  if(ajaxRequest.readyState == 4){
   id = ajaxRequest.responseText;
  }
 }
 ajaxRequest.open("GET", filename, true);
 ajaxRequest.send(null);
}

}//-->

Please HelP!

TNX

Back | Reply | Quote | Top
fawad malik
09-04-2006 10:58:27 GMT +2

Sorry man, you need serious help in basic concepts of programming.

There are serious problems with your code.

If you're still interested in a solution, I can send you some help, if you can explain what's the purpose of your script.

cheers

fm

Reply | Quote | Top
Home > Support > Forums > Web 2.0 & AJAX > Details - Web 2.0 & AJAX
Adobe acquired InterAKT
InterAKT has been acquired by Adobe.
Learn more
 
© Adobe Systems Romania. All rights reserved.