[jQuery] Re: head part missing in Safari

2008-06-24 Thread Nyro
Thanks for the quick fix. I slightly update it as it wasn't working in all the cases. Here is the replace line I used: data.replace(/\/?(html|head|body)([^]*)/gi, '') Adding the options and the \ before the / I'll put this code for every browser, event if I don't really use it. On Jun 23, 12:20 

[jQuery] Re: head part missing in Safari

2008-06-23 Thread Nyro
I know that what I'm trying to do doesn't make any sense regarding the html structure. I released a modal plugin. As all other modal plugin works, you can request a html page an include it, regardless if there is a whole html page or simply some html element. The thing is the use of jQuery result

[jQuery] Re: head part missing in Safari

2008-06-23 Thread Karl Rudd
If you do need to import a whole page then I suggest you process the returned data and strip the body and head data out before you insert it into the importing page. For example, a quick and dirty (untested) adaptation of the existing code: $.ajax({ url: 'jQueryBug.php',

[jQuery] Re: head part missing in Safari

2008-06-21 Thread Karl Rudd
It's not an issue with jQuery or the browser. A whole page (HTML element and all) into another page, it'd be invalid HTML so the browser could do anything with it. It's like writing: html head...head body ... html head...head body.../body /html ... /body /html So as you can see