facebook

xmlHttpRequest calls – not working with Chrome Mobile Web

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #352303 Reply

    JohnWord
    Member

    If this is aleady in the forum I could not find it. If so, I apologize.

    I have this app (been around for a couple of years – in the store, etc.. successful (thank you MobiOne),
    that uses xmlHttpRequests to talk to the server (xml)

    example: xmlhttp.open(“POST”….

    It worked FINE for testing in the old simulator.. But I cannot get it to work in the new
    Chrome Mobile Web Simulator

    all calls fail. The servers sees the transmission, but says the request is corrupted – coming in ‘RAW’ instead of XML.
    I cannot find out to change the Simulator to work properly.

    Note if I compile the app it works fine on the phone, so clearly a browser difference.
    Does anyone know what to change in Chrome settings?

    thanks.

    #352305 Reply

    JohnWord
    Member

    never mind – I found a way to fix this..

    I had to explicitly set the header..

    xmlhttp.setRequestHeader(“Content-Type”, “text/xml”);

    in addition to: xmlhttp.overrideMimeType(‘text/xml’)

    so this can be closed.

    thanks

    #352308 Reply

    Thanks for letting us know.

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: xmlHttpRequest calls – not working with Chrome Mobile Web

You must be logged in to post in the forum log in