Current location: Hot Scripts Forums » General Web Coding » JavaScript » AJAX works in IE not in firefox


AJAX works in IE not in firefox

Reply
  #1 (permalink)  
Old 06-04-06, 03:38 AM
srustiranjan srustiranjan is offline
New Member
 
Join Date: Jun 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
AJAX works in IE not in firefox

hi there,

can someone tell how to get the value of a text box in javascript. I am getting a form from an external ASP file using XMLHTTP and this form contains these text boxes.

I have used UserName.value in IE it works but not in firefox
note: UserName is the name of the text box used in the external asp file (which is called by XMLHTTP)
Reply With Quote
  #2 (permalink)  
Old 06-04-06, 08:32 AM
Nico's Avatar
Nico Nico is offline
Community Leader
 
Join Date: Sep 2005
Location: Spain
Posts: 8,075
Thanks: 11
Thanked 88 Times in 83 Posts
How are you creating the request object? Note that for Firefox you have to use new XMLHttpRequest();

And to get the value you can either use
Code:
document.formname.fieldname.value;

// Or

document.getElementById('field_id').value;
Could you may post some of your code? I'm not quite sure what exactly you're trying to do.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Padding works in IE windows, but not IE mac, firefox, or safari cheeserly CSS 2 01-05-06 09:29 AM
login script works fine in firefox, nothing in IE! varial PHP 3 03-14-05 08:36 AM


All times are GMT -5. The time now is 11:10 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.