SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    Mar 2003
    Location
    Baia Blu (La Spezia) - Italy
    Posts
    37
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    crossbrowser xmlhttp request

    Hi,
    I use this function to send a request to an asp page:
    Code:
     function sendRequest() {
     	var objASP = new ActiveXObject("MICROSOFT.XMLHTTP");
    	var address = "update.asp?mode=delete";
    	objASP.open("POST", address, true);
    	objASP.send();
     }
    It runs well but obviously only under internet explorer.
    Does anyone know a crossbrowser solution? (at least for mozilla and netscape)

    Thanks

  2. #2
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,236
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    For IE/Windows and Mozilla: http://jibbering.com/2002/4/httprequest.html

    There is no way to do an XMLHTTP request in Safari,Opera, or IE/Mac though.

  3. #3
    SitePoint Enthusiast
    Join Date
    Mar 2003
    Location
    Baia Blu (La Spezia) - Italy
    Posts
    37
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It's what I was looking for, thanks.

    Bye


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •