I am building a glossary. Each letter of the alphabet has its own
HTML page, and each glossary entry on the page already has a unique
HTML anchor tag immediately to the left of it.
I've already learned how to do a Javascript pop up browser window. Is
there a way to create one that will use the existing HTML anchors as
markers and retrieve and display only the text string that starts
after a specified anchor, and ends just before then next anchor?
Ed 4 2332
In article <7e************ *************@p osting.google.c om>, gg************* ****@recursor.n et enlightened us with... I am building a glossary. Each letter of the alphabet has its own HTML page, and each glossary entry on the page already has a unique HTML anchor tag immediately to the left of it.
I've already learned how to do a Javascript pop up browser window. Is there a way to create one that will use the existing HTML anchors as markers and retrieve and display only the text string that starts after a specified anchor, and ends just before then next anchor?
Ed
Like this?
Tested in NN7/IE6. No claims made for other browsers. Watch for word-wrap.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
"http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
<head>
<title> New Document </title>
<script type="text/javascript" language="javas cript">
function checkIt(lnk)
{
alert(lnk.inner HTML);
}
</script>
</head>
<body>
<a href="someLink. html" onClick="checkI t(this);return false;">Text of link
</a>
</body>
</html>
--
--
~kaeli~
If a book about failures doesn't sell, is it a success? http://www.ipwebdesign.net/wildAtHeart http://www.ipwebdesign.net/kaelisSpace
kaeli <ti******@NOSPA M.comcast.net> wrote in message news:<MP******* *************** **@nntp.lucent. com>... In article <7e************ *************@p osting.google.c om>,
Like this? Tested in NN7/IE6. No claims made for other browsers. Watch for word-wrap.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"> <html> <head> <title> New Document </title> <script type="text/javascript" language="javas cript"> function checkIt(lnk) { alert(lnk.inner HTML); } </script> </head>
<body> <a href="someLink. html" false;">Text of link </a> </body> </html>
Kaeli,
Thanks for you fast response. When I tried this, it popped up a grey
alert box that contained the link description text ("Text of link" in
your example), but nothing from the page that I linked to
(someLink.html" in your example). Was that what it was supposed to
do?
What I was after was to open up a small new browser window which
contained only the text between two anchors on another page, e.g. the
link resides on page_one.html, and when clicked it pops up a small
browser window which contains only the text found between
page_two.html#f irstanchor and page_two.html#s econdanchor.
Any ideas?
Ed
In article <7e************ **************@ posting.google. com>, gg************* ****@recursor.n et enlightened us with... kaeli <ti******@NOSPA M.comcast.net> wrote in message news:<MP******* *************** **@nntp.lucent. com>...
Thanks for you fast response. When I tried this, it popped up a grey alert box that contained the link description text ("Text of link" in your example), but nothing from the page that I linked to (someLink.html" in your example). Was that what it was supposed to do?
Yes. What I was after was to open up a small new browser window which contained only the text between two anchors on another page, e.g. the link resides on page_one.html, and when clicked it pops up a small browser window which contains only the text found between page_two.html#f irstanchor and page_two.html#s econdanchor.
Sorry, I misunderstood what you wanted.
I've been putzing around with using an IFRAME, but so far haven't gotten it
to work well in IE (issue with waiting for the contents to load and catching
that event before trying to read the contents) or work at all in NN6 (won't
let me reference the iframe with document.frames and won't let me access the
iframe document contents with getElementById) .
I'd do this server-side, to be honest. Anything you do client-side is going
to be a JS hack to read and parse the contents of the file and won't be as
cross-browser as an internet app should be.
--
--
~kaeli~
Do not taunt Happy Fun Ball! http://www.ipwebdesign.net/wildAtHeart http://www.ipwebdesign.net/kaelisSpace This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: dave |
last post by:
Hello,
I've got a page, actually a friend does, that he'd like to update with
his schedule for the week. THis is a simple html page, and he'd like to do
this via a php script. Ideally one would load the page, see a current week
schedule if any, or nothing if there is none, and be able to add events.
This should be as simple as possible and not require a database for this is
simple text entry. I've fofilled part of this, i can open the...
|
by: dkalsow |
last post by:
Good Morning,
Does anyone have an example (in vb .net) of how I can bring down an internal
web html page into a string variable and then search for a specific string.
The web page is internal and does not need any user to access it.
Thanks.
Dale
|
by: Eric Lindsay |
last post by:
I have been trying to get a better understanding of simple HTML, but I
am finding conflicting information is very common. Not only that, even
in what seemed elementary and without any possibility of getting wrong
it seems I am on very shaky ground .
For example, pretty much every book and web course on html that I have
read tells me I must include <html>, <head> and <body> tag pairs.
I have always done that, and never questioned it. ...
|
by: mcmwhite |
last post by:
Hi,
Does anyone know how I can open a newly-created HTML page
in a new window, using ASP.NET?
Eg. I have an ASP.NET page which creates some new HTML, based
on what the user has entered into a textbox. The ASP page
has a textbox (txtYourName) and a button. Clicking the button
will run this piece of code:
|
by: kklickman |
last post by:
I've got a page with two columns: one floats left, the other doesn't
float. The page displays fine in Netscape no matter what. In IE (both
6 and 7), it looks fine as long as the browser window is more than 800
pixels wide. However, when the browser window gets narrow, IE pushes
the text in the right-hand column to below where the left-hand column
ends. I can't figure out where I went wrong.
Sample page is...
| |
by: Ari Krupnik |
last post by:
While working on a commercial product, I came up with a way to allow
users to drag and drop bits of web pages into my site. This works
regardless of whether the source is from my site or not, and even
works with non-browser applications (such as Word) that can drop an
HTML representation of their rich text. Tested in IE and FF on Windows
and Linux:
http://www.jeteye.com/dnd/
Ari.
|
by: Matsam |
last post by:
Hi,
I am using a HTML page as login page and my 2nd page is in ASP. I want to pass the values in the text boxes login name & password to the 2nd page and want to check its validity there. But I cant get these values in my 2nd page.
I have used the code
loginname = trim(Request.Form.Item("txtLogin")) in the 2nd page.
But only blank is returning..
At the same time, I have written the same code for passing some variables from one ASP...
|
by: Reg |
last post by:
I have a following code in HttpRequestListener's ProcessRequest method which
is a Windows
Console Application. I'm trying to read html page with browser (Opera) and
html file contains tags to include
Java Applet jar too,
for (int i = 0; i < numRequestsToBeHandled; i++)
{
HttpListenerResponse response = null;
|
by: GoldenShiner |
last post by:
hello,
I have a c# application which after clicking a button in infopath form, creates an HTML file. I would like to open this page in a NEW window, instead of what is actually doing, opening into under a tab. Any help will be greatly appreciated.
<code>
fileName = ("Warningfile " + PHYS_MSTR_water_body_id.ToString() + " " + PHYS_MSTR_event_date.ToString() + " " + time_collected_hh.ToString() + " " + time_collected_minutes.ToString() + "...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |