I have a page where I'm creating several divs dynamically inside a div of my parent page.
for (i = 0; i < pages.length; i++) {
var e = document.createElement("div");
var eid = "dynamicdiv-" + i;
e.id = eid;
e.style.cssText = 'position:absolute; left: ' + left + 'px; color: #0000bb;';
maindiv.appendChild(e);
$('#' + eid).load(pages[i]);
}
My pages variable is an array of strings of urls. They are all html pages and have their own parameters. The problem I'm having is with jquery load(). It does not appear to be passing the parameters I need to create the page. Instead, it's passing the parameters from my parent page. The CSS on these pages are also not loading.
I'm fairly new to javascript, any help would be greatly appreciated.
Example url: http://example.com/index.html?param1=value
Any ideas? Thanks!