Hello.

Is it possible in Drupal to call an external page and append name-value pairs to the external url?
And doing this as a behind-the-scene event.

Thanks.
Pol

Comments

philippejadin’s picture

Depending of your needs :

- add a 1x1 iframe inside your page
- use an ajax call using jquery
- include the page using php include ('yourpage?param1=x&param2=y');
- ...

palabat’s picture

I'm still new to drupal and ajax. please forgive my ignorance.
The plan that I'm having is to display an external page. But in order to display that page without logging in, I have to programmatically submit to a login page with all the credentials in order to get the session id. The way I want it to happen is to execute a page (2-frame page), so that the top frame will be for logging in to an external page and the bottom frame is for displaying the intended external page. Is this possible? please help.

Thanks.
Pol

philippejadin’s picture

You could do this using jquery ajax function that allows you to load a page inside another one. The external page is simply inserted inside the html, in a placeholder.

But you'd better do this with php (becuse this way it will be server side). There is a php library called curl that will "mimick" a webbrowser. You can post some php code inside a normal drupal node body, as long as you use the right filter (php code filter that is)

hth