Jump to content

sujeeth_it

Members
  • Content Count

    2
  • Joined

  • Last visited

Community Reputation

0 Neutral

About sujeeth_it

  • Rank
    Newbie
  1. Hello all,I am writing a AJAX code for a functionality. I am getting the response from AJAX in XML content. I am using the following code to get the XML object.if (window.XMLHttpRequest){ req = new XMLHttpRequest(); if (req.overrideMimeType) { req.overrideMimeType('text/xml'); }} else if (window.ActiveXObject) { try { req = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { req = new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) {} }}And i am using [var doc = req.responseXML; ] code to get the XML response.and i am reading the content using childNodes like functions.Its working fine in IE but not working in Mozill FireFox.Please suggest me some alternative way for my objective.Please do help in this regard.
  2. Hi frnz,i have a query on AJAX.Till today i was doing ajax implementation like going to an intermediate jsp page where i will get the values and in ajax script i will get that whole page.No we are implementing a framework for ajax. Now i am getting all my values in controller and setting an attribute in request.setAttribute(). and i have to come back to same page with that attribute.but as soon as i will cam to same page using dispatch page in controller i going out of session.please any body help me in this regard. i am calling my ajax code on body onload.expecting help from you!!!
×
×
  • Create New...