473,325 Members | 2,442 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,325 software developers and data experts.

Problem on IE refreshing form elements values

Hi,
I have this problem I can´t solve.

I´m using some mix of javascript / php / ajax code to open a text
file, process its info and close it.

While skiping through the text file lines, I´d like some of myForm
elements be updated with the info extracted from the file.

This way, the user realice that actually some process is being executed
and forgets about "oh ! this isn´t working, I'll try closing and
opening the app again".

Here is some part of the HTML code:

<FORM name="myForm" id="myForm" method="POST" >

<INPUT type="text" name="employee" id="employee">

<INPUT type="button" name="btnProcess" id="btnProcess"
onclick="xajax_ProcessFile();" >

</FORM>

and part of my ProcessFile() php function should look like:

$h = fopen($file_name,"rb") ;

while( ($fld = fgetcsv($h, 35," ")) !== FALSE ) {
$emp = $fld[0] ;

$objResponse->addScript("document.getElementById('employee').va lue='$emp';");
}
fclose($h);
return $objResponse->getXML();

Now... on Mozilla/FireFox this works just like I expect.
As the function skips through the text file lines, the value of
myForm.employee.value is updated with some text of the line being
processed.
But, on IE nothing happens until the function reachs the end of the
text file (when the last record do appears on myForm.employee.value )
So, on both navigators my function reaches its propose (that is to
process the text file) but on IE the info is not shown on the form
while processing.

Any idea ???

Jun 22 '06 #1
1 1294

odgarro wrote:
Now... on Mozilla/FireFox this works just like I expect.
As the function skips through the text file lines, the value of
myForm.employee.value is updated with some text of the line being
processed.
But, on IE nothing happens until the function reachs the end of the
text file (when the last record do appears on myForm.employee.value )
So, on both navigators my function reaches its propose (that is to
process the text file) but on IE the info is not shown on the form
while processing.


I believe IE waits to display the page until it is all rendered.

You could just use XmlHttpObject to get the textfile from your
server, then parse it in the javascript, and show what you want, as an
update.

Jun 22 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Philo Del Middleston | last post by:
I've been searching, but apparently not phrasing my search right, so I'm going to float a question out here in the meantime... I'm wondering how to go about refreshing the content of a control...
1
by: Ed Blinn | last post by:
Can someone tell me why this script will only work on a Mac with Internet Explorer. Thanks, Ed <html> <head> <script type="text/javascript"> //Square Root
3
by: Lee Mundie | last post by:
Hi there, Simple problem here but can't seem to fix it! Okay, I have a select list from which people choose avatars... the list is option values ie. <option>Worm</option> ...
4
by: Martin Ho | last post by:
Hey Everyone, I really hope there is someone who can figure out this problem. Honestly, I spent 3 days now trying to find the solution, but nothing works. I'll try to explain the problem...
3
by: james crosthwaite via .NET 247 | last post by:
Hi, I'm pretty new to .NET and i'm having a major problem which ireally need some help with. I am developing an application for my office which allows usersto book rooms. I have a Booking Form...
2
by: Kapil Jain | last post by:
Dear All, Please assist me for below code : What i need is -> One "Patient Master" form for online Entry : My AIM -> When somebody want to add new patient a parent form will open than finally...
4
by: P K | last post by:
Hi, I have two listboxes on my form. One has a list of available values while the other is a list of selected values. So I select a value from list 1 and add it to list 2 when "add" button is...
1
by: odgarro | last post by:
Hi, I have this problem I can´t solve. I´m using some mix of javascript / php / ajax code to open a text file, process its info and close it. While skiping through the text file lines, I´d...
2
by: sorobor | last post by:
dear sir .. i am using cakephp freamwork ..By the way i m begener in php and javascript .. My probs r bellow I made a javascript calender ..there is a close button ..when i press close button...
6
by: shankari07 | last post by:
hi guys, I have a form in html which has the city drop down. when clicking the drop down a javascript is called and a file(test.txt) is created and the city is written into the file. Through php...
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...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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...

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.