forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Miscellaneous => Topic started by: ronan on April 06, 2005, 02:07:53 pm

Title: custom search to iframe
Post by: ronan on April 06, 2005, 02:07:53 pm
hello

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

Code: [Select]
<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
Title: Re: custom search to iframe
Post by: steverobbins on April 07, 2005, 10:02:03 pm
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.
Title: Re: custom search to iframe
Post by: ronan on April 08, 2005, 12:09:06 pm
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!

Title: Re: custom search to iframe
Post by: steverobbins on April 08, 2005, 01:11:07 pm
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:

Code: [Select]
<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.
Title: Re: custom search to iframe
Post by: ronan on April 08, 2005, 03:01:19 pm
hello steverobbins

you'r awesome!

it works perfect now :-)

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

so far
ronan