Jump to content

Ajax Request doesnt work in firefox?


Asheh

Recommended Posts

	new Ajax.Request('dcwidth', {
  method: 'get',
  parameters: {'custom_text': strNewImage} ,
  onSuccess: function(x) {
		var msg = x.responseText;
		var tmp = msg.split(':');
		var width = tmp[0];
		var height = tmp[1];
		var left = ((576/2) - width/2) + 2;
		parent.frames['plate_display'].document.getElementById(strId).style.left = left;
		parent.frames['plate_display'].document.getElementById(strId).style.width = tmp[0];
		parent.frames['plate_display'].document.getElementById(strId).style.height = tmp[1];
  }
}); 	

 

 

Hi guys the above code doesnt seem to want to work in firefox?

 

Does anyone know why this might be? I call it in an OnChange for a textbox so i can resize an image dynamically but the image disapears in firefox so im assuming it sets the width/height to an invalid number.

 

 

Hope you can help

Regards

Ash.

Link to comment
https://forums.phpfreaks.com/topic/51292-ajax-request-doesnt-work-in-firefox/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.