Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing Targets within a Frame

Status
Not open for further replies.

Guest_imported

New member
Joined
Jan 1, 1970
Messages
0
Hi,
I'm trying to design a web page for a school project and desided to use DreamWeaver UltraDev. Though I know a fair amount on Frames, I'm having a hard time figuring out how to change targets once they're assigned. What I mean is, I have my navigational links in the left frame of my frameset, and I want to have an admin link to allow an administrator to log on and have extra options available. So, I want the admin logon page to display in the main frame of the frameset, which isin't a problem, but if they exist (user & password) I want to add extra links to the existing navigational links on the left! So... um.. How? Is it possible to keep the target to main, but once the logon button is clicked change the target to leftframe?

Greatly appreciate any kind of tips,

Candie
 
Just on one page or on all of them???

Have Fun...

Sharky99 >(::O>
 
Those links would display in the frameset (left frame) that would then be targeted to the main frame. So, I'm not sure if I understand your questions with on one page or all of em?
 
Ok no problem, in your frame when you add a link just select the name of your left frame as the target and that's it.


If i understood your question...

Hope it'll help ;-) Have Fun...

Sharky99 >(::O>
 
Hi

As you are using the mighty ultradev you have many options for doing what you are after.

Once the admin user has been verified you can use asp to set a session variable which signifies that the user is admin:

Code:
<%session(&quot;admin&quot;)=&quot;y&quot;%>

then write some javascript to reload the left frame:

Code:
parent.leftframe.location.href='yourpage.asp'

can't remember if it is window.parent or not

Then in the navigation page you can put this bit of code:

Code:
<% if session(&quot;admin&quot;)=&quot;y&quot; then %>
add your extra nav buttons/links here
<% end if %>

Then the refresh will add the extra links if they have logged in successfully Derren
[Mediocre talent - spread really thin]
 
Thank you for your help! Even though Sharky was way off, I don't blame you for not understanding and appreciate the effort to help. Guess I could never be a teacher and explain very well! ;o) Derren was more along my line... I did assign a Session object to determine that the admin existed in an asp page though I wondered why everytime I would do a change and save it, why my extra links would show up after I refreshed! Just a few more touch ups and it should run like a charm! Thanks again!

I'll definately recommend this site to my programmer friends,

Candie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top