Jump to content

Archived

This topic is now archived and is closed to further replies.

DaveLinger

Getting a "Submit" result to open in a frame/iframe?

Recommended Posts

So I have this search page, with a bunch of options then a submit button, then below that, an iframe. I'd like the results to open in the iframe, rather than refreshing the whole page. How can this be accomplished?

important tags:

[code]<form method="POST" action="gosearch.php">

<input type="submit" value="Submit"></form>

<iframe name="results" src="includes/blank.php" scrolling="yes" width="100%" height="100%" frameborder="0" allowtransparency="1"></iframe>[/code]

Share this post


Link to post
Share on other sites
this is html question.

you simply set the target frame, just like you'd use for <a>
<form method="POST" action="gosearch.php" target="results">

Share this post


Link to post
Share on other sites
I don't know how far along you are on this project but what your describing is what Ajax and DHTML are good at. But thats javascript and I'll leave it at that.

Share this post


Link to post
Share on other sites
I'm working with Ajax at work...

In this case I would want it to use an iframe, unless I wanted it to search for every letter like google suggest, but that would rape my server. Thanks hvle.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.