- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- AJAX Problem
Operating System - OpenVMS
1753947
Members
7621
Online
108811
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-16-2007 04:43 PM
тАО02-16-2007 04:43 PM
Hello,
I am using Prototype.js to implement Ajax.
My JS code is -->
function getHTML(num) {
var saf = 0 ;
var num;
if(!num) {
num = document.getElementById('refid').value;
} else {
num = num;
}
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 ?
I am using Prototype.js to implement Ajax.
My JS code is -->
function getHTML(num) {
var saf = 0 ;
var num;
if(!num) {
num = document.getElementById('refid').value;
} else {
num = num;
}
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 ?
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-16-2007 04:46 PM
тАО02-16-2007 04:46 PM
Re: AJAX Problem
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;
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;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-17-2007 01:24 AM
тАО02-17-2007 01:24 AM
Solution
Welcome to the wonderful world of browser differences. There are a whole lot of these. Just with CSS and HTML. And certainly with JavaScript. Beyond client-side differences, there are also client-side oddities and even attacks as you have no control over the JavaScript environment. Bad guys can have their own JavaScript engines.
As for your specific question, and respectfully, this looks rather like a Microsoft question, and not an OpenVMS question. (You're not running the JavaScript code on OpenVMS here, you're running it within Microsoft Internet Explorer. Yes, the JavaScript can be stored on and loaded from OpenVMS. Or Unix. Or most anything.)
Probably the best forum available here at ITRC might be the Microsoft Internet Tools area http://forums1.itrc.hp.com/service/forums/categoryhome.do?categoryId=181
And do take a look at the Microsoft (Java)Script Debugger tool
http://blogs.msdn.com/ie/archive/2004/10/26/247912.aspx as this tool might tell you what your JavaScript is really doing inside the Microsoft Internet Explorer (Java)Script Engine. I expect there are other debuggers around.
Stephen Hoffman
HoffmanLabs
--
FWIW: The ITRC Forums JavaScript for the forums themselves isn't working on the local Firefox. hpweb_utilities.js is throwing errors.
As for your specific question, and respectfully, this looks rather like a Microsoft question, and not an OpenVMS question. (You're not running the JavaScript code on OpenVMS here, you're running it within Microsoft Internet Explorer. Yes, the JavaScript can be stored on and loaded from OpenVMS. Or Unix. Or most anything.)
Probably the best forum available here at ITRC might be the Microsoft Internet Tools area http://forums1.itrc.hp.com/service/forums/categoryhome.do?categoryId=181
And do take a look at the Microsoft (Java)Script Debugger tool
http://blogs.msdn.com/ie/archive/2004/10/26/247912.aspx as this tool might tell you what your JavaScript is really doing inside the Microsoft Internet Explorer (Java)Script Engine. I expect there are other debuggers around.
Stephen Hoffman
HoffmanLabs
--
FWIW: The ITRC Forums JavaScript for the forums themselves isn't working on the local Firefox. hpweb_utilities.js is throwing errors.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP