It looks like you are using php, can you just do a plain old server include, rather than doing it client side?

-- Josh

----- Original Message ----- From: "vince" <[EMAIL PROTECTED]>
To: "jQuery (English)" <jquery-en@googlegroups.com>
Sent: Monday, June 25, 2007 10:48 AM
Subject: [jQuery] Preload multiple hidden data with $.get()?



I am using many draggable and hideable panes such as for preferences
and quick info. Right now I am using multiple $.get requests at
document load and am not getting all the data loaded for some reason.
Maybe there is an easier way to do this?

Example:

$(document).ready(

function() {

// Preload pane data
$.get('results_help.html',function(data1)
{ document.getElementById('results_help').innerHTML = data1 });
$.get('pre_legend.php',function(data2)
{ document.getElementById('pre_legend').innerHTML = data2 });
$.get('cust_login.php',function(data3)
{ document.getElementById('login_container').innerHTML = data3 });
$.get('preferences.html',function(data4)
{ document.getElementById('prefer').innerHTML = data4 }) ;

      }
);

To me this seems a bit obtrusive on the way it loads all the data,
maybe there is an easier way to do this.

Thanks,
Vince

p.s. jquery rocks!


Reply via email to