Advanced search  

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

Pages: [1]   Go Down

Author Topic: custom search to iframe  (Read 2747 times)

0 Members and 1 Guest are viewing this topic.

ronan

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
custom search to iframe
« 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
« Last Edit: April 09, 2005, 11:28:09 am by GauGau »
Logged

steverobbins

  • Contributor
  • Coppermine novice
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 35
  • photographer
    • Steve Robbins' Personal Website
Re: custom search to iframe
« Reply #1 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.

ronan

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
Re: custom search to iframe
« Reply #2 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!

« Last Edit: October 03, 2005, 09:25:31 am by ronan »
Logged

steverobbins

  • Contributor
  • Coppermine novice
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 35
  • photographer
    • Steve Robbins' Personal Website
Re: custom search to iframe
« Reply #3 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.

ronan

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
Re: custom search to iframe
« Reply #4 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
« Last Edit: October 03, 2005, 09:25:13 am by ronan »
Logged
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 20 queries.