View Single Post
Old 12-12-2011, 01:06 PM   PM User | #1
enderSFTD
New to the CF scene

 
Join Date: Dec 2011
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
enderSFTD is an unknown quantity at this point
AJAX and IE8 Doing my head in please help!

Hi Guys and Girls,

i am currently working on a project and have noticed that in ie8 when loading a php file using AJAX / JQuery.load() it will not load if the php contains and <script> tags!!!

Only IE8 ????

If i remove the scripts from within the php file it works??

Any suggestions below is the code I'm using to load the php file

Code:
var parts = window.location.href.split('?', 2);

// After calling split(), 'parts' is an array with two elements:
// parts[0] is 'sometext'
// parts[1] is '20202'

var the_text = parts[0];
var the_num  = parts[1];

$(document).ready(function() {
 	 $("#dealsystem").load('assets/snippets/bogof/dealsystem.inc.php?'+the_num);
   var refreshId = setInterval(function() {
      $("#dealsystem").load('assets/snippets/bogof/dealsystem.inc.php?'+the_num);
   }, 10000);
   $.ajaxSetup({ cache: false });
});
Thanks in advance and sorry for excessive ????
enderSFTD is offline   Reply With Quote