custom search to iframe custom search to iframe
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

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