custom search to iframe custom search to iframe
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

custom search to iframe

Started by ronan, April 06, 2005, 02:07:53 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ronan

hello

i have integrate the custom search from steverobbins on my gallery:

<script language="javascript" type="text/javascript">
                        <!--
                        document.searchcpg.search.focus();
                       
                        function puttext(text) { document.searchcpg.search.value = document.searchcpg.search.value + " " + text; }
                       
                        -->
                        </script>
<html>
<form method="get" action="../gallery/thumbnails.php" name="searchcpg">
<input type="hidden" name="album" value="search">
<input type="hidden" name="type" value="full">
<input type="input" style="width: 300" name="search" size="51" maxlength="255" value="" class="textinput">
<input type="submit" value="Search" class="button">
<input type="reset" onclick="javascript:document.searchcpg.search.focus();">

<!-- repeat as many of these as you wish to include for your visitor: -->
<a href="javascript:puttext('uk')">UK</a>

</form>
</html>


now, the custom search is in the menu on the left (table). the gallery is display in a iframe on the right. can i give the searchresult out in the iframe on the right?


very thanks


ronan

steverobbins

Hi Ronan,

Would you point me to your site, or send me your files and I'll take a look for you.

Thanks
Steve Robbins.

ronan

#2
hello steverobbins

the site doesn't exist at the moment.

i have upload a testsite, that you see what i mean:

the mainpage is on tables. on the left cell the navigation, on the right cell the index.
if you search a image now, the result display without my navigation.

but i need the searchresult in a iframe like this:
(navigation on the left site, searchresult in a iframe)

is this possible?


thanks

ronan


ps: sorry for my english, i hope, you understand what i mean!


steverobbins

Hi Ronan,

You could use the FORM TARGET features, take a look at this web page:

http://www.htmlcodetutorial.com/forms/_FORM_TARGET.html

this explains how to use the TARGET command.  You will need to name your frame / iframe with the NAME command.

Here is some code copied from that website:

<FORM
  TARGET="TargetFrame"
  ACTION="dosomething.php">
searching for: <INPUT NAME="inventory">
<INPUT TYPE=SUBMIT>
</FORM>


This should get you on your way,
Best Regards
Steve Robbins.

ronan

#4
hello steverobbins

you'r awesome!

it works perfect now :-)

very, very thank. now, i can begin with my design.

so far
ronan