Bug Tracker

Modify

Ticket #5940 (closed bug: invalid)

Opened 3 years ago

Last modified 3 years ago

Ajax usage problem with 1.4.1

Reported by: ekuloglu Owned by:
Priority: major Milestone: 1.4.2
Component: unfiled Version: 1.4.1
Keywords: ajax version incompatible Cc:
Blocking: Blocked by:

Description

I have two pages that work with jquery 1.3.2 successfully. But when i use 1.4.1 with same code, it doesn't work. Those two page have very simple codes. You can find codes below.

ReadXML.Asp <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> <title>Deneme</title> <script type="text/javascript" src="/jquery-1.4.1.min.js"></script> <script type="text/javascript">

function textDegistir() {

var dTbl = document.getElementById("tbl")

$.ajax({type: "GET",

url: "/GetXML3.asp", data: "", dataType: "xml",

success: function(msg, sts, req){

resXML = msg;

if(resXML != null) {

while (dTbl.rows.length > 1)

dTbl.deleteRow(1);

var node = resXML.childNodes[1];

for(i = 0; i <= node.childNodes.length - 1; i++) {

var nTr = dTbl.insertRow(dTbl.rows.length); var nTd = nTr.insertCell(0); nTd.innerHTML = node.childNodes[i].childNodes[0].text;

nTd = nTr.insertCell(1); nTd.innerHTML = node.childNodes[i].childNodes[1].text;

} }

}, error: function(XMLHttpRequest_, textStatus_, errorThrown_){

alert(textStatus_); alert(errorThrown_); alert(XMLHttpRequest_);

}

});

}

</script> </head> <body> <form id="frm" method="post" action="">

<input type="button" id="btn1" onclick="textDegistir()" /> <input type="text" id="txt" /> <table id="tbl" border="1" cellpadding="0" cellspacing="0">

<tr style="width:200px">

<td style="width:100px"><b>Name</b></td> <td style="width:100px"><b>Last Name</b></td>

</tr>

</table>

</form>

</body> </html>


GetXML3.Asp <% Response.Expires = -1 Response.Buffer = True Response.ContentType = "text/xml" %> <?xml version='1.0' encoding='ISO-8859-9'?> <records>

<record>

<name>Ethem</name> <lastname>Kuloglu</lastname>

</record>

</records>

Change History

comment:1 Changed 3 years ago by dmethvin

  • Status changed from new to closed
  • Resolution set to invalid

The description says there is a problem, but does not describe the problem.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.