Click to See Complete Forum and Search --> : Search - results appear in new window?


Daniel H
10-28-2005, 11:39 AM
Hope this is the right forum, its a php site, a Zen Cart shopping site we've installed. What we'd like to do is a have the site in the main window, then people can click video links to watch video products which appears in a popup. In the popup we want there to be a search box which searches the shopping site, and when people search it brings the results up in the parent window that they were browsing the site originally.

Is this possible to put in the form properties for the results to appear in that parent window?

Also another thing is we use 6 figure item numbers, and put a space in between each set of 3 numbers i.e. 232 123 (don't ask its just the way!!) is there a way of making the search box when people just search 232123 without the space that it still brings up the correct result?

Many thanks

P.S. Did ask this on there support forum, but tbh, its not very good for support!

Daniel H
10-28-2005, 09:21 PM
I take it no one knows :(

NogDog
10-28-2005, 11:40 PM
I take it no one knows :(
Of course I know, I'm just busy. :)

Part 1: in the <a> or <form> tag in the pop-up that you want to redirect to the parent window, add the attribute target="_parent".

Part 2:

# assume for this example the search string comes from a field named "search"
$search = $_POST['search'];
if(is_numeric($search) and strlen($search) == 6)
{
$search = sprintf("%s %s", substr($search, 0, 3), substr($search, 3, 3));
}

Daniel H
10-29-2005, 10:09 AM
Hi NogDog many thanks for the reply :D

Just having a few problems though, I'd added the target code but still it doesn't bring the results in the parent window just in the same :( I tried even put it as _blank thinking that would do it in a new window but not chance.

I've added it to the advanced part of the form properties in Frontpage is this correct :confused:

Here is the page itself - www.shoppingtelly.tv/oldindex.htm it should bring up a pop up on load.

Thanks

LiLcRaZyFuZzY
10-29-2005, 10:18 AM
it does bring up a pop up for me:
product search, deal of the day, current show on air, etc..

but it looks pretty much like ad :rolleyes:
and i had to set my popup blocker so it would appear, it might be that your browser is cool and block them too ;)

Daniel H
10-29-2005, 11:34 AM
Sorry the problem wasn't getting the popup to appear but when you search at the top right of the popup for items, I want the results to be displayed in the parent window.

:)

Once the site is finsihed properly, people will have to click on a link on the shopping site for the popup to appear, although a problem if they get blocked, has anyone created any code yet that gets around popup blockers?!?

LiLcRaZyFuZzY
10-29-2005, 04:15 PM
...by not using pop-ups?

Daniel H
10-29-2005, 05:22 PM
...by not using pop-ups?

Well I'd love to do that :D

But want to be able to size the new window and position it in the middle, without all the browser toolbars etc

Daniel H
10-29-2005, 06:14 PM
Still having trouble with this :(

I'm sure it must be possible to put links to a pop-up in a sidebox? or any code that will open a new window with a certain size, in the middle of page and without toolbars?

:confused:

LiLcRaZyFuZzY
10-30-2005, 02:09 AM
If you click on "go advanced" when replying to a post, and then upload a file from your computer, it opens a pop-up window (which btw isnt blocked by my browser) and you can upload your file. When the upload is done, it automatically updates the mainpage.