Internet Products
1753738 Members
4497 Online
108799 Solutions
New Discussion юеВ

Re: AJAX Problem on Internet Explorer

 
Pankaj Yadav_1
Frequent Advisor

AJAX Problem on Internet Explorer

Hello,

I am using Prototype.js to implement Ajax.

My JS code is -->

function getHTML(num) {
var saf = 0 ;
num = num || $F('refid');

var url = '/cgi-bin/ttps/search.cgi';
var pars = 'num='+num+'&showallfiles='+saf
+'&act=showattachedfilesection';
var myAjax = new Ajax.Updater( {success: 'placeholder'}, url,
{method: 'get', parameters: pars, onFailure: reportError });
}

The above code works fine in Firefox but not in IE.

Please tell me what to do ?

Some more information -->

What happens in IE ?

The getHTML function is invoked when I click on a link.
When I click on a link the function is called and processing happens
but never stops.

How I know that processing happens ?
By the following code -->

var myGlobalHandlers = {
onCreate: function(){
Element.show('systemWorking');
},
onComplete: function() {
if(Ajax.activeRequestCount == 0){
Element.hide('systemWorking');
}
}
};
Ajax.Responders.register(myGlobalHandlers);


Here is the Perl code which creates the variable $str and returns to
another Ajax(not above) and a placeholder is replaced by the data
below. Notice the getHTML function below.-->

my $i;
foreach $i (0 ..$#selectlist) {
$str .= "";
$str .= "\"#placeanchor\" onClick=\"getHTML($selectlist[$i]{'conid'});\">
$selectlist[$i]{'conid'}
";
$str .= "$selectlist[$i]
{'arriveDate'}";
$str .= "$selectlist[$i]
{'dbname'}";
$str .= "$selectlist[$i]
{'startDate'}";
$str .= "$selectlist[$i]
{'expiryDate'}";
$str .= "$selectlist[$i]
{'status'}";
$str .= "";
}
$str .= "";
$str .= "";
print $str;
2 REPLIES 2
Pankaj Yadav_1
Frequent Advisor

Re: AJAX Problem on Internet Explorer

ok I am giving the reproducible case -->

http://netfares.skybirdfares.com/cgi-bin/tps/index.cgi

Please login and then click on Search in the TopMenu .
After that enter "yy test"(don't include double quotes) as the search
text.
The Search results will come and after that click anyone of the links
on the left.

Username: guest

Password: tmp123

You will see that the results don't come after you click the link.
This happens only in IE.
That is the problem .
Please solve it.
Pankaj Yadav_1
Frequent Advisor

Re: AJAX Problem on Internet Explorer

The username has been changed to "guest1" the password is the same.

username : guest1

password : tmp123