Jump to content

load external page not working for .load function


funbinod

Recommended Posts

I wish to load some external pages to the page with document load function. I mean when page loads I want them to be loaded to the page to respective ids without any click or anything. I tried the following--

$(document).ready(function(e) {	$(document).load(function(e) {		$("#suncr").load("suncr.php?m=8");		$("#sundr").load("suncr.php?m=9");		$("#cnb").load("suncr.php?m=6");		$("#cstock").load("cstock.php?");    });});

why this code is not working? can anyone guide....

Link to comment
Share on other sites

  • 3 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...