Advertisement

How to load a external html page ?

Moderators: Calcifer, slothy

How to load a external html page ?

Postby yoyo » Fri Nov 30, 2007 4:22 pm

Hi all, I am new here.
Sorry for my bad English.

Small quick question:

How to load a external html page ?

Examples :
jsFunction="openPage('center','Html page','http://www.myswebsite.com','Tab view','Tab view')

It's possible?

Because I could not find an example of this operation.

Thank you in advance for your answers
yoyo
 
Posts: 2
Joined: Fri Nov 30, 2007 4:11 pm

Postby Batalf » Fri Nov 30, 2007 4:31 pm

Hi

There's a security restriction which doesn't allow you to open external websites via ajax.

You need to do this by a workaround.

Examples:

1) Have a php script read the external website and output it's content. Then link your ajax script to that php script

or

2) Create an html page with an iframe, and link to your local html file.
Last edited by Batalf on Fri Nov 30, 2007 4:55 pm, edited 1 time in total.
Batalf
Site Admin
 
Posts: 2160
Joined: Sat Oct 22, 2005 9:38 pm

Postby yoyo » Fri Nov 30, 2007 4:53 pm

Thanks!

I am really stupid!
yoyo
 
Posts: 2
Joined: Fri Nov 30, 2007 4:11 pm


Return to General questions

Who is online

Users browsing this forum: No registered users and 4 guests

cron