Not logged in. · Lost password · Register
Forum: General discussion RSS
Need Help With Search Function...
Aaron #1
Member since Mar 2003 · 64 posts
Group memberships: Members
Show profile · Link to this post
I cannot get the search function to display the output in an Iframe... can anyone help?
<a href="http://www.way2.info" target="_blank">www.way2.info</a> - Find all information here
Avatar
Henry (Administrator) #2
Member since Jan 2003 · 865 posts · Location: Munich Germany
Group memberships: Administrators, Members
Show profile · Link to this post
You need to pass the searchstring to the document inside the iFrame that is designated to display the results!
That is because the searchstring is cleared on every GET. You'd get unpredictable results with lots of users if you don't clear the string.
SteveB #3
Member since Apr 2003 · 29 posts
Group memberships: Members
Show profile · Link to this post
Aaron,

I've just tried this, and it seems to work:


  <form name="form1" target="playlistframe" method="get" action="playlist2.html" class="standard">
    search:
    <input type="text" name="searchstring">
    <input type="submit" name="button" value="  search  ">
  </form>

  <p class="standard"><a href="#currentsong">jump to current song</a>
  </p>

<iframe name="playlistframe" width="550" height="300" src="playlist2.html"></iframe>


playlist2.html (actually called test_playlist2.html, but you knew that...) just contains a simple playlist tag. Tell you what, I'll zip the files and attach them...

HTH

Steve
The author has attached one file to this post:
testiframe.zip 7.2 kBytes
You have no permission to open this file.
Avatar
Azimuth #4
Member since Jan 2003 · 427 posts · Location: Chicago, Illinois - USA
Group memberships: Members
Show profile · Link to this post
<ot>
I just added some iframes to my pages. Very cool stuff!
</ot>
Aaron #5
Member since Mar 2003 · 64 posts
Group memberships: Members
Show profile · Link to this post
Many thanks... I was pulling my hair out. I was missing the 'action'

thanks!
Aaron
<a href="http://www.way2.info" target="_blank">www.way2.info</a> - Find all information here
SteveB #6
Member since Apr 2003 · 29 posts
Group memberships: Members
Show profile · Link to this post
Glad to hear it worked!
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Page created in 140 ms (60.4 ms) · 65 database queries in 49.1 ms
Current time: 2018-07-16, 06:41:47 (UTC +00:00)