On Jul 2, 1:47 pm, philippe <[email protected]> wrote: > Hi > > I made a chrome over gecko > > I trace the states of my Http(s) and Files requests using OnStaeChange > and onLocationChange. > > Now I start with Ajax XmlHttpRequest. > > If I use the following code into a javascript function > > function getSynchronousContentByAjax(url) { > > httpRequest = new XMLHttpRequest(); > httpRequest.open('GET', url, false); > httpRequest.send(null); > > return httpRequest.responseText; > } > > It works OK and I can replace the text into a div by the text got from > the URL. > > But I have no trace about the call to the URL , no trace from > onStateCHange or from onLocationCHange > > I saw that there is an interface nsIXmlHttpREquest. Have I to use it ? > > Do you have samples > > thank's a lot > philippe
Hello. What exactly do you want to do during you Ajax request? XmlHttpRequest creates a new connection to the web server and brings the result, of course your document's location and state remain unchanged. If you want to know the progress or the result of the XmlHttpRequest, this class should have methods to do it from javascript. _______________________________________________ dev-embedding mailing list [email protected] https://lists.mozilla.org/listinfo/dev-embedding
