Greetings:
I am developing a page with two components: Toolbar and Grid.
The toolbar has a menu with 3 submenus:
Activity in the last 24 hours
48 hours
72 hours
All of these options load XML to a grid. The XML is generated via a server side Perl code.
After all the correct initialization I load the grid like this:
If I enter the URL /cgi-bin/dashformat.pl?time=48hours on the browser, I obtain the right XML needed, so this discards a possible problem with the script.
The definition myInProgressGrid.loadXML("/cgi-bin/dashformat.pl?time=48hours"); properly loads the grid if I load the page using Safari, FireFox, Chrome or Opera - but it neither works on IE 7 nor IE 8.
I tried also these options:
myInProgressGrid.load("/cgi-bin/dashformat.pl?time=48hours");
myInProgressGrid.load("/cgi-bin/dashformat.pl?time="+mytime); (using variable mytime=48hours)
myInProgressGrid.load(mytime); (using variable mytime=("/cgi-bin/dashformat.pl?time=48hours")
I am totally lost, is there any tip, is it a problem of MSIE? I would hate to have 3 scripts in the server side just to show three different options. As we plan to have overview by Week, Month, Year, this will add more server side scripts that can all be handled in a single one with a parameter.
The definition myInProgressGrid.loadXML("/cgi-bin/dashformat.pl?time=48hours"); properly loads the grid if I load the page using Safari, FireFox, Chrome or Opera - but it neither works on IE 7 nor IE 8.
What does happen in Opera? Try to open “/cgi-bin/dashformat.pl?time=48hours” url in Opera and check if your xml is properly-formed.
Hi Olga:
Let me better explain the issue. The Grid loads and displays perfectly the XML on all browsers except MSIE 7 and 8. The XML is properly formatted otherwise the grid would reject it. The XML also looks perfect if I request it via MSIE.
So this is the way I load the grid:
myInProgressGrid.load("/cgi-bin/dashformat.pl");
This works well in ALL browsers including MSIE 7 and 8
But if want to load the grid by passing a parameter (which just creates a reduced list of records from the DB) then it does not work:
myInProgressGrid.load("/cgi-bin/dashformat.pl?time=86400");