|
-
Dec 13th, 2005, 09:50 AM
#1
Thread Starter
New Member
[RESOLVED] Setting Explorer's Title
I am doing an ASP.NET project and making use of a frameset page to dispay my menus and the pages.
Problem is the title of the IE does not change as the menu calls up different pages. The title is as set by the frameset.
Please how can i programmatically change the title of the IE at will.
-
Dec 13th, 2005, 12:59 PM
#2
Fanatic Member
Re: Setting Explorer's Title
Hi,
youcant. the title of IE is set when there is evidence of a title present when teh page loads or re-loads.
what youll have to do is use querystrings to imitate a page change and invoke a reload/refresh, then dynamically change the title using script. such an example is this.
VB Code:
<title><% call titlewrite() %></title> 'write the title on the fly...
<a href="?id=buton1"> ' anchor ref for each buttton, so when pressed
' it adds thjis ID to the existing page, adn the script changes the frame.
</a>
function titlewrite()
myArray = Array ("hello world", "hello world again", "and another hello world")
if Request.querystring("ID") = "button1" then
with response
.write myArray(0)
end with
' or you could do it this way
Select Case Cstr(Request.Querystring("ID"))
CAse "button1"
with response
.write myArray(0)
end with
' and so on
end select
if IsNull(Request.Querystring("ID")) then
with response
.write "Site home"
end with
end if
end function
Get the idea??
Hope this helps
Kai hirst
As the information I give is useful in its nature, consider using the RATE POST feature located on the bottom left of this post please..
A few things that make a good Developer a Great One.
Methodical and a thorough approach to research and design inevitably leads to success.
Forward thinking is the key to Flow of control.
Never test in the design environment, always test in real time, you get the REAL results.
CBSE & OOSE are the same animal, they just require different techniques, and thinking.
SEO is a globe of objectives, SE rankings is an end to a means for these objectives, not part of them.
The key to good design is explicit attention to both detail and response.
Think Freely out of the "Box" you're in..... You will soar to better heights.
Kai Hirst - MSCE, MCDBA, MCSD, MCP, MCAP, MSCT
-
Dec 15th, 2005, 06:08 PM
#3
Re: Setting Explorer's Title
You can try using javascript's document.title property, but I don't think it'll work in a frameset. The only way it'd work is if you reloaded the page with the new title, or better, use web user controls in a single page instead of frames.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|