gaj_ft
03-04-2012, 11:45 PM
1) Script Title: Dynamic Ajax Content
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/ajaxcontent.htm
3) Describe problem: Hey guys, new here but have been learning heaps from this site in the past few days, heres my problem:
Im using the dynamic ajax content script to load another html page (same server) into a div of my main page. It works amazingly BUT once the ajax runs and the page is loaded into the div, my entire page gets shifted to the right and is no longer center. The margin on the left becomes almost twice the size as the blank margin on the right.
Here are some pictures to help explain:
Page loaded, before clicking a link that calls the script: http://postimage.org/image/bethn47wt/
Page after clicking a link that calls the script, external page loaded, page no longer centered: http://i40.tinypic.com/2z3zxwz.jpg
This occurs in all major browsers such as IE, chrome, FF and opera.
My page is being centered using 'margin-left/right:auto' on both my body and #wrapper in my css. Ive been fiddling with making sure everything is constrained properly in terms of widths and margins but still no luck. Does anybody know what might be causing this? Does it have to do with a 'positioning' trait? or perhaps the html file that im trying to load in?
Any help or guidance would be greatly appreciated,
Thanks!
Gaj
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/ajaxcontent.htm
3) Describe problem: Hey guys, new here but have been learning heaps from this site in the past few days, heres my problem:
Im using the dynamic ajax content script to load another html page (same server) into a div of my main page. It works amazingly BUT once the ajax runs and the page is loaded into the div, my entire page gets shifted to the right and is no longer center. The margin on the left becomes almost twice the size as the blank margin on the right.
Here are some pictures to help explain:
Page loaded, before clicking a link that calls the script: http://postimage.org/image/bethn47wt/
Page after clicking a link that calls the script, external page loaded, page no longer centered: http://i40.tinypic.com/2z3zxwz.jpg
This occurs in all major browsers such as IE, chrome, FF and opera.
My page is being centered using 'margin-left/right:auto' on both my body and #wrapper in my css. Ive been fiddling with making sure everything is constrained properly in terms of widths and margins but still no luck. Does anybody know what might be causing this? Does it have to do with a 'positioning' trait? or perhaps the html file that im trying to load in?
Any help or guidance would be greatly appreciated,
Thanks!
Gaj