JQuery AJAX not working with FF -- works fine with Chrome and IE
As the subject line says it works fine in IE and Chrome..
but nothing happens in Firefox.
From my testing the problem seems to be occuring
when using jquery to open the xml feed.
(I have not edited jquery at all and I'm using version 1.2.6)
Here's my code.
// File: readXML.js
// Start function when DOM has completely loaded
function XMLSummary(xml_feed, title)
{
var topic_header_flag
var topic_content_flag
$(document).ready(function(){
// Open the xml feed
$.get(xml_feed,{},function(xml){
// Build an HTML string
myHTMLOutput = '';
myHTMLOutput += '<table width="98%" border="0" cellpadding="2" cellspacing="2">';
// Run the function for each topic tag in the XML file
$('topic',xml).each(function(i) {
summary_e = $(this).find("summary").attr("Identity");
topic_header_e = $(this).find("topic_header_e").text();
topic_content_e = $(this).find("topic_content_e").text();
doc_name_e = $(this).find("doc_name_e").text();
doc_filename_e = $(this).find("doc_filename_e").text();
// IF filename is a local link then replace filename with self referencing javascript call
if (is_javascript == 0)
{
//need to pull doc_name and the summary_id and replace the function name and send these to it.
//needs to look like this javascript:XMLSummary('xml_files/data2.xml','Mission Verbs')
//the summary_id eg in this case '2' should match up with the xml file number
// If filename is a document or an outside link than open in new window
else
{
output += '<tr><td><a href="'+ doc_filename_e + '"target="_blank">' + doc_name_e + '</a></td></tr>';
}
Bookmarks