Jump to content


Photo

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


  • Please log in to reply
3 replies to this topic

#1 DaveLinger

DaveLinger
  • Members
  • PipPipPip
  • Advanced Member
  • 268 posts
  • LocationWV, USA

Posted 16 July 2006 - 02:26 AM

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:

<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>

http://www.DaveLinger.com
dave at linger dot com

#2 hvle

hvle
  • Members
  • PipPipPip
  • Advanced Member
  • 667 posts
  • Locationmelbourne, Australia

Posted 16 July 2006 - 02:54 AM

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">
Life's too short for arguing.

#3 Drumminxx

Drumminxx
  • Members
  • PipPipPip
  • Advanced Member
  • 92 posts
  • LocationUSA

Posted 16 July 2006 - 02:59 AM

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.
:: gucci.com ::
:: blockbuster.com ::

--------------------

#4 DaveLinger

DaveLinger
  • Members
  • PipPipPip
  • Advanced Member
  • 268 posts
  • LocationWV, USA

Posted 16 July 2006 - 03:10 AM

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.
http://www.DaveLinger.com
dave at linger dot com




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users