Gossamer Forum
Home : Products : DBMan : Customization :

Frames - from search results open in new window

Quote Reply
Frames - from search results open in new window
I have set up the DB to have the users search page open up in a frame. The results of the search display in a frame. What I want to do, however is have the URLs that display in the results (when clicked on) open up in a separate window (_blank)as they are other web sites and I don't want to keep those sites embedded in my frames.

Is there anyway to do this?

Thanks, Kate
Quote Reply
Re: Frames - from search results open in new window In reply to
Use target="_newwin" in your URL links, like the following:

Code:
<a href="$rec{'URL'}" target="_newwin">$rec{'Title'}</a>

Replace Title with whatever field name you are linking.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Quote Reply
Re: Frames - from search results open in new window In reply to
OK so the original code I had that opened the results in a frame was:

<a href="$url{'URL'}">$rec{'URL'}</a>

I have tried several edits and none seem to work.

Doing the following <a href="$url{'URL'} target="_blank">$rec{'URL'}</a> results in the text "target="blank" showing on the URL and the link opening up in the frame anyway

Using the following link <a href="$url{'URL'} target=_blank">$rec{'URL'}</a> generates an error message as it tries to tag target="blank" as part of the URL text
Quote Reply
Re: Frames - from search results open in new window In reply to
The reason being is that you have not closed the record hash codes for the URL field with a double quote....

Code:
<a href="$url{'URL'} target=_blank">$rec{'URL'}</a>

SHOULD BE:

Code:
<a href="$rec{'URL'}" target="_blank">$rec{'URL'}</a>

And you need to use $rec NOT $url. In addition, the reason that I recommended ="_newwin" is that if you use _blank, then multiple windows will open, which as I discussed before in other Gossamer Threads forums...is not user friendly.

Regards,

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Quote Reply
Re: Frames - from search results open in new window In reply to
Just wanted to say thanks for the help. It worked like a charm and I am using the newwindow rather than the blank.

Kate
Quote Reply
Re: Frames - from search results open in new window In reply to
You're welcome. Also, BTW: AOL 4.0 cannot interpret the _blank value for the target attribute. The _blank is an evil exploitation of Microsoft. And since 38% of American Internet users use AOL, it is wise to accomodate AOL users. And with the current marketing campaigns, we may see an increase in AOL users worldwide.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums


[This message has been edited by AnthroRules (edited March 16, 2000).]