Page 1 of 1

External page loading with ajax

Posted: Tue 6. Jul 2010, 14:56
by caramello
Does anyone know how to load en external (job openings page with selct forms) into phpwcms using ajax or anothe way besides <iframe>

Re: External page loading with ajax

Posted: Sat 14. Aug 2010, 10:15
by Oliver Georgi
There are several options to do so. It's always the question how it should look like after loading. Should remote page's CSS stay alive (iFrame) or do you want to present it based on your own styling (replace innerHTML of DOM node in your own page).

Re: External page loading with ajax

Posted: Sat 14. Aug 2010, 15:31
by caramello
replace inner html, without the styling of the external page. In this case it's a form, that shows results (available jobs based on location and function) over which i have no influence. But it would be nice if the form and the result of the form have some styling that are equivalent to the website it's beeing used in.

Re: External page loading with ajax

Posted: Sat 14. Aug 2010, 18:48
by Oliver Georgi
if you use innerHTML you have it in your hand – the remote html will be part of your site – you can then use CSS to style it.