navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

Microsoft MVP

 

Hyperlink into framed pages

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> ASP and Database >> Hyperlink into framed pages
Page: [1]
 
hzarabet

 

Posts: 1539
From: New Milford CT USA
Status: offline

 
Hyperlink into framed pages - 5/11/2001 19:09:00   
I offer a lot of free hyperlinks to companies. I would like to start having these hyperlinked pages appear in frames so viewers can easily return to my site.

How do I set up framed hyperlinks on the database? SQL7 if that matters?

Thanks all.

------------------
www.Signingshotline.com lists EVERY upcoming athlete autograph appearance in the US and Canada

hzarabet

 

Posts: 1539
From: New Milford CT USA
Status: offline

 
RE: Hyperlink into framed pages - 5/12/2001 20:39:00   
Hopefully, this will make it easier. Here is the asp script containing my hyperlink info:

<%
If (FP_FieldVal(fp_rs,"Hyperlink_Option"))= "Yes" and (FP_FieldVal(fp_rs,"PromoterWebsite")) = "/promotersfaq.asp" then
response.write "<a href='"& FP_FieldVal(fp_rs,"PromoterWebSiteNotListed") &"'><img border=0 src=images/website.gif width=55 height=60></a>"
ElseIf (FP_FieldVal(fp_rs,"PromoterWebsite")) = "0" then
Response.write "Promoter doesn't have website"
ElseIf (FP_FieldVal(fp_rs,"PromoterWebsite")) = "/promotersfaq.asp" then
response.write "<a href='http://www.signingshotline.com/promotersfaq.asp'>Link YOUR website here! Just $9.99 per listing!</a>"
Else
response.write "<a href='"& FP_FieldVal(fp_rs,"PromoterWebsite") &"'><img border=0 src=images/website.gif width=55 height=60></a>"end if%>


The actual call to the promoter's website is near the end of the script.
So what do I have to do to have

Else response.write "<a href='"& FP_FieldVal(fp_rs,"PromoterWebsite") &"'><img border=0 src=images/website.gif width=55 height=60></a>"end if%>

cause FP_FieldVal(fp_rs,"PromoterWebsite") open in a frame called frame.htm all the time?

------------------
www.Signingshotline.com lists EVERY upcoming athlete autograph appearance in the US and Canada


(in reply to hzarabet)
Spooky

 

Posts: 26599
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: Hyperlink into framed pages - 5/14/2001 20:41:00   
Is it just a case of adding a target to the URL "<a href='"& FP_FieldVal(fp_rs,"PromoterWebsite") &"' target="_framename"> ?

Remember, targeting others sites in your frameset is bad ettiquette, so check with them first

------------------
§þððk¥
"I am Spooky of Borg. Prepare to be assimilated, babycakes!"
Subscribe to OutFront News
Database / DRW Q & A
The Spooky Login!


(in reply to hzarabet)
hzarabet

 

Posts: 1539
From: New Milford CT USA
Status: offline

 
RE: Hyperlink into framed pages - 5/14/2001 20:10:00   
Thanks Spooky:

Error message

Microsoft VBScript compilation error '800a0408'

Invalid character

/results_copy(1).asp, line 265

response.write "<a href='"& FP_FieldVal(fp_rs,"PromoterWebsite") &"' target="_framelink.asp"><img border=0 src=images/website.gif width=55 height=60></a>"end if
------------------------------------------------------------------------------^

BTW, I was going to tell these folks of my intentions prior to installing the frame, I just wanted to make sure I could do it first.

The ratio of people I bring to these sites that are linked to me is about 25 to 1 in their favor. I feel at this point, I need to give the user the option (and reminder) to return back to my site after they are done with the link.

Thanks,

Howard

------------------
www.Signingshotline.com lists EVERY upcoming athlete autograph appearance in the US and Canada


(in reply to hzarabet)
hzarabet

 

Posts: 1539
From: New Milford CT USA
Status: offline

 
RE: Hyperlink into framed pages - 5/16/2001 20:47:00   
Hi Spooky:

I humbly follow up on the error message


Thanks

Hzarabet

------------------
www.Signingshotline.com lists EVERY upcoming athlete autograph appearance in the US and Canada


(in reply to hzarabet)
Spooky

 

Posts: 26599
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: Hyperlink into framed pages - 5/16/2001 20:32:00   
My bad. Example only

Make sure you use ' quotes and not " quotes when within a asp string. If you use " it assumes you are breaking out of the string.


(in reply to hzarabet)
hzarabet

 

Posts: 1539
From: New Milford CT USA
Status: offline

 
RE: Hyperlink into framed pages - 5/16/2001 15:08:00   
Well, the error message is gone, but I am still not opening into a frame. I think it's the way I am setting my frame page.

I have two frames in the page, frametop.asp which is a navbar and framemain.asp which should be where my link shows up (with the framed navbar on top of it). IN FP2000, when entering the framemain page, a browse window comes up to "hardcode" the URL for this page. Instead, I am entering <%=FP_FieldVal(fp_rs,"PromoterWebsite")%> as I do not have a URL to hard code this to.

Am I doing this correctly? I have never used frames before (Surprise!).

------------------
www.Signingshotline.com lists EVERY upcoming athlete autograph appearance in the US and Canada


(in reply to hzarabet)
hzarabet

 

Posts: 1539
From: New Milford CT USA
Status: offline

 
RE: Hyperlink into framed pages - 5/17/2001 23:39:00   
The best I am getting is having my link open in a new window!

I am lost on this one.

------------------
www.Signingshotline.com lists EVERY upcoming athlete autograph appearance in the US and Canada


(in reply to hzarabet)
rdouglass

 

Posts: 9187
From: Biddeford, ME USA
Status: offline

 
RE: Hyperlink into framed pages - 5/18/2001 20:36:00   
I may be missing the bigger picture, but this is what I see...

It looks to me in the previous examples, you're targeting a page and not a frame as in:

response.write "<a href='"& FP_FieldVal(fp_rs,"PromoterWebsite") &"' target="_framelink.asp"><img border=0 src=images/website.gif width=55 height=60></a>"

Here you are targeting a page (_framelink.asp) and not a frame (frames do not have extensions). If your frame is actually named "_framelink" then you should remove the ".asp" so that the line looks similar to :

response.write "<a href='"& FP_FieldVal(fp_rs,"PromoterWebsite") &"' target="_framelink"><img border=0 src=images/website.gif width=55 height=60></a>"

At least that's how I see it...

[This message has been edited by rdouglass (edited 05-18-2001).]


(in reply to hzarabet)
hzarabet

 

Posts: 1539
From: New Milford CT USA
Status: offline

 
RE: Hyperlink into framed pages - 5/18/2001 20:47:00   
I apologize for sounding so ......."unenlightened", but how do you do that?

As I said, I can set up a frame page using FP2000, but how do I just set up a target page?

------------------
www.Signingshotline.com lists EVERY upcoming athlete autograph appearance in the US and Canada


(in reply to hzarabet)
rdouglass

 

Posts: 9187
From: Biddeford, ME USA
Status: offline

 
RE: Hyperlink into framed pages - 5/18/2001 15:23:00   
As I understand it, you DON'T want to set up a seperate page, you want to set up a frame then target the frame.

In the scenario using the example above, you would open your frames page in Normal View (in FrontPage) and right-click on the frame you want to be targeted and select properties. In this example you would rename the frame to "framelink" (without the quotes). Then you would use the HREF above (emphasis on the 'target' section):

response.write "<a href='"& FP_FieldVal(fp_rs,"PromoterWebsite") &"' target="_framelink"><img border=0 src=images/website.gif width=55 height=60></a>"

NOTE: Please notice the "_" (underscore) added to the beginning of the frame name.

It shouldn't matter what frame the link originated in. That should load any URL in PromoterWebsite field into the frame"_framelink". This should also work from other pages going to that page and targeting the frame.


(in reply to hzarabet)
hzarabet

 

Posts: 1539
From: New Milford CT USA
Status: offline

 
RE: Hyperlink into framed pages - 5/18/2001 23:06:00   
Thanks rdouglass for all the help. Unfortunately, I am still stuck. I believe it is with setting up the frames page.

I can set up a basic frame page:
header/main/"total page". Click on /totalpage and the frame page opens.

But I am missing the point how to incorporate this with my database variable.
For example...we're calling the main target 'framelink'. This is where my link should wind up (with my navbar frame above it as a header). But where in my asp is the "total page" being called? Where is my frame with the navbar being called? I think I am missing a very simple concept that I will not believe when I figure it out!

Thanks again


(in reply to hzarabet)
Spooky

 

Posts: 26599
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: Hyperlink into framed pages - 5/19/2001 20:12:00   
When you click on a link, does your frames pages already show? or does this link to a frames page simply exist on a single page, and you need to load a frameset first to display it and the other parts of the frame?

(in reply to hzarabet)
hzarabet

 

Posts: 1539
From: New Milford CT USA
Status: offline

 
RE: Hyperlink into framed pages - 5/19/2001 22:05:00   
Hi Spooky:

I believe I do not have a proper frameset page.

I can set up a frameset page with two frames and name for the "total" page.

One frame is a header with my navbar and the main frame being where I want my link to appear. I tried to have <%=FP_FieldVal(fp_rs,"PromoterWebsite")%> as my link in main frame. Calling the "total" frameset framelink.asp. I thought I could insert /framelink.asp into my asp statement. The header frame did work, but the main frame where I wanted the link to show up just gave me a 404 error.

I am sure this must be easy and I am doing something......dumb.

Thanks

------------------
www.Signingshotline.com lists EVERY upcoming athlete autograph appearance in the US and Canada


(in reply to hzarabet)
Spooky

 

Posts: 26599
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: Hyperlink into framed pages - 5/20/2001 16:44:00   
With out seeng your frameset, its a little had to tell.
But the way I have suggested in the past is to use a dynamic frameset, where the frameset page has the contents of the main frame set to receive a querystring.

ie

normally specify <frame> headpage.asp mainframe.asp</frame>

Instead do : <frame> headpage.asp <%=Request.querystring("PageName")%></frame>

Now when you click on a link :

framespage.asp?Page=Pagename.asp

pagenname.asp sill be loaded in the main frame.


------------------
§þððk¥
"I am Spooky of Borg. Prepare to be assimilated, babycakes!"
Subscribe to OutFront News
Database / DRW Q & A
The Spooky Login!


(in reply to hzarabet)
hzarabet

 

Posts: 1539
From: New Milford CT USA
Status: offline

 
RE: Hyperlink into framed pages - 5/22/2001 20:17:00   
This isn't fair. This is supposed to be an easy one!

Here is my frameset per your recommendation:

<frameset rows="64,*">
<frame name="header" scrolling="no" noresize target="main" src="frameheader.asp">
<frame name="main" src="<%=Request.querystring(FP_FieldVal(fp_rs,"PromoterWebsite"))%>">
<noframes>
<body>

<p>This page uses frames, but your browser doesn't support them.

</body>
</noframes>
</frameset>


FYI, aside from src="<%=Request.querystring(FP_FieldVal(fp_rs,"PromoterWebsite"))%>"> I also tried src="<%=Request.querystring(fp_rs,"PromoterWebsite")%>"> and
src="<%=Request.querystring ("PromoterWebsite")%>">

In all cases it's the same thing. The header portion is fine, but the variable in the main section gives me a 404 error!

Thanks again all.

------------------
www.Signingshotline.com lists EVERY upcoming athlete autograph appearance in the US and Canada


(in reply to hzarabet)
Spooky

 

Posts: 26599
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: Hyperlink into framed pages - 5/22/2001 20:36:00   
With the code, you only need this :

<%=Request.querystring("URL")%>

You would use the database code in the link that you use to send the user to the frames page.

<a href='framesindex.asp?URL=<%=FP_FieldVal(fp_rs,"PromoterWebsite") %>'>Link text</a>

This will open framesindex.asp and (if you check the code) should have the URL as the code for <frame name="main" .... etc

------------------
§þððk¥
"I am Spooky of Borg. Prepare to be assimilated, babycakes!"
Subscribe to OutFront News
Database / DRW Q & A
The Spooky Login!


(in reply to hzarabet)
hzarabet

 

Posts: 1539
From: New Milford CT USA
Status: offline

 
RE: Hyperlink into framed pages - 5/22/2001 22:12:00   
I feel as thick as a brick! I still can't get it to work!

Here is my frameset again:

<frameset framespacing="0" border="0" rows="51,*" frameborder="0">
<frame name="header" scrolling="no" noresize target="main" src="frameheader.asp">
<frame name="main" src=<%=Request.querystring("main")%>>
<noframes>
<body>

<p>This page uses frames, but your browser doesn't support them.

</body>
</noframes>
</frameset>


OK...now here is the corresponding portion of my asp on my results page. One problem is using <%%> with <%%>:

response.write "<a href='http://www.signingshotline.com/framelink.asp?main=<%=FP_FieldVal(fp_rs,'PromoterWebsite')%>'><img border=0 src=images/website.gif width=55 height=60></a>"end if%>

AHHHHHHHH!!!!

------------------
www.Signingshotline.com lists EVERY upcoming athlete autograph appearance in the US and Canada


(in reply to hzarabet)
Spooky

 

Posts: 26599
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: Hyperlink into framed pages - 5/23/2001 20:06:00   
If using asp you write the link, you dont need the tags <% as you are already in script.

Like so :

response.write "<a href='http://www.signingshotline.com/framelink.asp?main="& FP_FieldVal(fp_rs,'PromoterWebsite')&"'><img border=0 src=images/website.gif width=55 height=60></a>"end if%>

------------------
§þððk¥
"I am Spooky of Borg. Prepare to be assimilated, babycakes!"
Subscribe to OutFront News
Database / DRW Q & A
The Spooky Login!


(in reply to hzarabet)
hzarabet

 

Posts: 1539
From: New Milford CT USA
Status: offline

 
RE: Hyperlink into framed pages - 5/23/2001 20:45:00   
Got it Spooky. Thanks to all for their patience !

------------------
www.Signingshotline.com lists EVERY upcoming athlete autograph appearance in the US and Canada


(in reply to hzarabet)
hzarabet

 

Posts: 1539
From: New Milford CT USA
Status: offline

 
RE: Hyperlink into framed pages - 5/23/2001 21:56:00   
Everything works fine, but I would like to add a "remove this frame" link to my header.

Here is the framed page:

http://www.signingshotline.com/framelink.asp?main=http://www.tristarproductions.com

As this main frame isn't hard coded, I guess it's ASP to the rescue.

Thanks

------------------
www.Signingshotline.com lists EVERY upcoming athlete autograph appearance in the US and Canada


(in reply to hzarabet)
Spooky

 

Posts: 26599
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: Hyperlink into framed pages - 5/23/2001 22:45:00   
As in remove YOUR frame?
Id do a similar thing, add the same querystring to your header page in the frames index.

...src="frameheader.asp?main=<%=Request.querystring("main")%">">...

Now in the header page, make the "remove frame" link value <%=Request.querystring("main")%>

So now the hyperlink will lead to the same page as the main content. Make sure it targets _top

------------------
§þððk¥
"I am Spooky of Borg. Prepare to be assimilated, babycakes!"
Subscribe to OutFront News
Database / DRW Q & A
The Spooky Login!


(in reply to hzarabet)
hzarabet

 

Posts: 1539
From: New Milford CT USA
Status: offline

 
RE: Hyperlink into framed pages - 5/24/2001 20:21:00   
Like a charm!!!!

------------------
www.Signingshotline.com lists EVERY upcoming athlete autograph appearance in the US and Canada


(in reply to hzarabet)
Page:   [1]

All Forums >> Web Development >> ASP and Database >> Hyperlink into framed pages
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts