473,385 Members | 1,655 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

reference the document object?

Is it possible to reference a Web page title
(Document.Title) in an asp page? For example,
<% Document.Title%> embedded in the body of an asp page?

This would allow a server side include that changes a
header at the top of the page, based on the page Title.

Thanks, Jim
Jul 19 '05 #1
2 1436
No, you can base it on the URL, but ASP doesn't have access to the
client-side HTML. Unless, of course, you opened the ASP file with
FileSystemObject and parsed for <title></title>. But blecch.

--
http://www.aspfaq.com/
(Reverse address to reply.)

<an*******@discussions.microsoft.com> wrote in message
news:20*****************************@phx.gbl...
Is it possible to reference a Web page title
(Document.Title) in an asp page? For example,
<% Document.Title%> embedded in the body of an asp page?

This would allow a server side include that changes a
header at the top of the page, based on the page Title.

Thanks, Jim

Jul 19 '05 #2
wrote on 23 jun 2004 in microsoft.public.inetserver.asp.general:
Is it possible to reference a Web page title
(Document.Title) in an asp page? For example,
<% Document.Title%> embedded in the body of an asp page?
There are no asp-pages, a page is a clientside thing.

There are serverside .asp files,
that render clientside html [or other] files,
defaultly keeping the extention name .asp
This would allow a server side include that changes a
header at the top of the page, based on the page Title.


try:

<!-- #include file ="setmyServersideTitleValue.asp"-->
<title><%=myServersideTitleValue%></title>

or even:

<!-- #include file ="setmyServersideTitleValue.asp"-->
<script type="text/javascript">
document.title = '<%=myServersideTitleValue%>'
// mind the lowercase
</script>
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
by: Michael Winter | last post by:
In an attempt to answer another question in this group, I've had to resort to calling the DOM method, Node.removeChild(), using a reference to it (long story...). That is, passing Node.removeChild....
1
by: Zhang Weiwu | last post by:
Hello. I often need to write cross-browser javascript, so far gecko dom reference is the reference seems mostly suite me, for things running well on gecko are likely to be running well on other...
2
by: Michael Mishler | last post by:
Hi, I've often wondered where I can get a full reference of the javascript document object model in hierarchial form. I probably don't realize how vast the DOM really is, but is there a...
12
by: marcadonis | last post by:
Hi! Does anybody know of a way that I can keep a reference to an object that I can then reuse? I tried various approaches using navigator, but these all fail in an iframe due to premission...
5
by: Robin Tucker | last post by:
Hiya, I'm using mshtml and the web browser control to embed an OLE object in my ..NET application. What I want to do is get a reference to the "object" embedded therein: The HTML looks...
6
by: ged | last post by:
Hi, i am a oo (c#) programmer, and have not used javascript for a while and i cant work out how javascript manages its references. Object References work for simple stuff, but once i have an...
2
by: Jake Barnes | last post by:
Using javascript closures to create singletons to ensure the survival of a reference to an HTML block when removeChild() may remove the last reference to the block and thus destory the block is...
3
by: Llorenc Sole | last post by:
Hello, Is it possible to get a reference to a form's document object exclusively from a reference to the same form? I mean, for example, if I have: var f1 = document.forms; var f2 =...
0
by: AK | last post by:
Hello, I need to do the following with an xml document which has a list of assets: 1. Hash the assets 2. Hash the element describing the assets 3. Create a digital signature (using X.509...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.