0

Hi,

I have a problem with IE7 (Works fine in FireFox!).

I'm sending a Jquery AJAX POST request to get option values from a PHP script.

The php script returns a bunch of the following:

<option value='x'>xxx</option>

Ajax also sends a value to the PHP script, so if that value matches the option value, the option comes back pre-selected.

On success, the Ajax is to populate the SELECT BOX called 'one', with the data returned from the PHP script.

This works fine in FireFox, but in IE7 I get the following error:

Error: Unexpected call to method or property access.

Any ideas on what I could do?

The full ajax function is as follows:

function getbills(){
	
var transchk = "";

var tranrelation = $("select#catted_relatesto").val();

var tranrelation = escape(tranrelation);

var dataString = 'transchk=' + transchk + '&tranrelation=' + tranrelation; 
	
 $.ajax({  
   type: "POST",  
   url: "bin/getbills.php",  
   data: dataString,  
   success: function(msg) {  //the msg container holds the xmlhttp response 
                             
	
	/* Insert response HTML into the billpaymentbill and billrefundbill selects */
	$("#billpaymentbill").html(msg);
	
	$("#billrefundbill").html(msg);
	
	}
	
 }); 

}

Edited by rayarman: n/a

1
Contributor
1
Reply
2
Views
7 Years
Discussion Span
Last Post by rayarman
0

Occam's razor!

Never mind - i'd been sending a </SELECT> tag in the ajax response!

Fixed!

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.