473,320 Members | 1,580 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Problems with IE using ajax Update

3
I'm stuck with a problem, basically the code works fine in MOZILLA.
I call from a <select> tag a ajax.update and successfully it show up everything.
However using IE the <select> tag is completely empty. The Result don't show.
I'll really appreciate any help Thanks

AJAX FUNCTION
Expand|Select|Wrap|Line Numbers
  1. function findl() 
  2. {
  3.         var url = script.php';
  4.         var params = 'submit_pol=' + $F('submit_pol');
  5.         var ajax = new Ajax.Updater(
  6.         {success: 'lossResult'}, url,{method: 'POST', parameters: params, asynchronous:true, evalScripts:true});
  7.  
  8.  
SCRIPT.PHP
[PHP] ...echo "<option name='submit_loss' value=''></option>";
foreach ($return as $row)
{
echo "<option value='$row[VAL]'>$row[VAL]</option></br>";
}
[/PHP]
HTML CODE:
[HTML]<select style="width:136px;height:14px"
name="submit_loss"
id="lossResult" onFocus="findl()">
<option value=""></option>
</select>[/HTML]
Sep 28 '07 #1
1 1372
acoder
16,027 Expert Mod 8TB
It may have something to do with the fact that you're using the name "submit_loss" for the OPTION as well as the SELECT object.
Nov 3 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

10
by: Danny | last post by:
Hi all, I am having some odd problems with AJAX on Firefox (1.5). When I use GET as the request method everything works ok, but when I do a POST the remote function doesn't get the parameters I...
3
by: PFA\(.\)\(.\)Coder | last post by:
I am trying to use ajax to create a voting system. I used the tutorial by Rasmus found here: http://rajshekhar.net/blog/archives/85-Rasmus-30-second-AJAX-Tutorial.html It's pretty much a...
5
by: Martin | last post by:
Hello NG, I've been doing some AJAX for a few weeks now. The basics worked fine so far, but now I've got the following problem which I can't solve: With AJAX you typically update/replace only...
9
by: RBM007 | last post by:
Hello, I have created some pages in the (old) Atlas pages and migrated to AJAX version. After the update I noticed that any page containing ASP.NET AJAX won't compile anymore. Even if the same...
1
by: Jason | last post by:
I have a webpage that I've wrapped in an Atlas UpdatePanel. This page contains four textboxes, each with AutoPostBack set to true. The problem comes when someone edits the first box and tabs to...
13
by: Marvin Zhang | last post by:
Hi, I'm not familiar with web programming, but I have a problem here. I have a page. When a user click one button on it, I will use AJAX to request a PHP script which will do a bunch of tasks,...
6
by: =?Utf-8?B?U2hhd24gU2VzbmE=?= | last post by:
Greetings! I was researching AJAX to provide a solution to displaying status messages while a long process executed. I found several examples online and was able to use their code to get a quick...
5
by: katiebeals | last post by:
I'm using ajax to read and write to a text file. The code works on Windows, but not in Macintosh. Any suggestions on what is wrong with the code? Thanks much-- a friend wrote me this code, and I...
2
by: shivendravikramsingh | last post by:
hi friends, i m using a ajax function for retrieving some values from a database table,and display the values in required field,my prob is that the ajax function i m using is working f9 once,but if...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.