I just spent all of today so far trying to debug the code to see what may be causing the issue and what I've come across so far is in one of my AJAX calls. The AJAX call gets a rather large Unordered List from a php file. PHP file was used because to the complex nature of the List. The reason behind this is too make a folder tree with a right click menu.
Now normally I would
NOT have used AJAX for this type of operation but this is what the client wanted And i tried to talk them out of it but they insisted.
What the PHP file spits out .... I shortened it A LOT
new Array("none", "<ul id=\"tree\" class=\"tree\"><li menu=\"tree_menu_1\" item=\"folder\" image=\"../../images/fam/folder.png\" id=\"node1\" filename=\"Root\" link_href=\"Javascript: load_folder(\'1\')\"><a id=\"\" href=\"Javascript: void(0)\" filename=\"Root\"><b>Root</b></a><ul id=\"tree\" class=\"tree\"><li menu=\"tree_menu_1\" item=\"folder\" image=\"../../images/fam/folder.png\" id=\"node29\" filename=\"Agency Content\" link_href=\"Javascript: load_folder(\'29\')\"><a id=\"\" href=\"Javascript: load_folder(\'29\')\" filename=\"Agency Content\">Agency Content</a><ul id=\"tree\" class=\"tree\"><li menu=\"tree_menu_1\" item=\"folder\" image=\"../../images/fam/folder.png\" id=\"node1306\" filename=\"Addison-Clark\" link_href=\"Javascript: load_folder(\'1306\')\"><a id=\"\" href=\"Javascript: load_folder(\'1306\')\" filename=\"Addison-Clark\">Addison-Clark</a></li><li menu=\"tree_menu_1\" item=\"folder\" image=\"../../images/fam/folder.png\" id=\"node559\" filename=\"Brodeur\" link_href=\"Javascript: load_folder(\'559\')\"><a id=\"\" href=\"Javascript: load_folder(\'559\')\" filename=\"Brodeur\">Brodeur</a></li></ul></li></ul></li></ul>", new Array("14", "1"), setTimeout('context_menu.set_multiple("tree_menu_1", "tree_menu_1")', 1000), setTimeout('context_menu.set_multiple("tree_menu_2", "tree_menu_2")', 1500))
I know its hard to see but it spits out a javascript array I'll explain the array
new Array("Errors", "HTML CODE", a javascript array for what folders need to open, function call to setup the first right click menu, function call to setup the second right click menu)
The AJAX call and return functions
function load_tree() {
// Set the loader ball
document.getElementById('loader_text').innerHTML = 'Loading Folder Tree';
document.getElementById('folders_container').innerHTML = document.getElementById('loader_ball_container').innerHTML;
// Send the request
ajax_request(ajax_connect(), 'process_load_tree.php', 'ajax_load_tree_return');
}
// This function will process our driectory tree
function ajax_load_tree_return(return_object) {
// Get the return array
return_array = eval(unescape(return_object));
// Check for errors
if(return_array[0] != 'none') {
// Trigger the error
error(return_array[0]);
} else {
// Add the folders in the folder div
document.getElementById('folders_container').innerHTML = return_array[1];
// Set the folder tree
set_folder_tree(return_array[2]);
}
}
- function load_tree() {
-
- // Set the loader ball
- document.getElementById('loader_text').innerHTML = 'Loading Folder Tree';
- document.getElementById('folders_container').innerHTML = document.getElementById('loader_ball_container').innerHTML;
-
- // Send the request
- ajax_request(ajax_connect(), 'process_load_tree.php', 'ajax_load_tree_return');
-
- }
-
- // This function will process our driectory tree
- function ajax_load_tree_return(return_object) {
-
- // Get the return array
- return_array = eval(unescape(return_object));
-
- // Check for errors
- if(return_array[0] != 'none') {
-
- // Trigger the error
- error(return_array[0]);
-
- } else {
-
- // Add the folders in the folder div
- document.getElementById('folders_container').innerHTML = return_array[1];
-
- // Set the folder tree
- set_folder_tree(return_array[2]);
-
- }
-
-
- }
-
So when the AJAX comes back I unescape it since i had to escape it going into the array and then EVAL it to make it an actual array and not a string. Now I thought it may have been due to the evil eval and IE so i tried something along the lines of this
http://ajaxian.com/archives/evaling-with-ies-windowexecscript and got the same results
Anyone have any thoughts?, Questions .... Apples?
I may have one solution that I'll be testing out today or tomorrow if it works I may go that route but that means changing the entire site as it is to fix one IE

issue that only happens when someone stretches their screen.