Is it possible for a hyperlink to call TWO URLs?

J

Jonathan N. Little

Chris said:
Thanks. At last someone who gets it!


When you say "sort of works", is there a problem with it? It works fine for
me as far as jumping within the iframe goes.

Is there an online emulator for Opera and FF I can play with?

Why emulate? Unlike MSIE there are not restricted to one OS! Just
download and install.
 
J

Jonathan N. Little

It targets your IFRAME and not your outer document
Correct

Sorry Jonathan but I don't think you understand what the problem is or what
I'm trying to do. I tried your suggestion even though I couldn't understand
what it would solve, and it did nothing different.

No I am afraid it is you that do not understand: The change is to your
IFRAME document

<html><head>


<meta http-equiv="Content-Language" content="en-gb">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252"><title>Go To End</title></head><body>

<div style="position: absolute; left: 50px; top: 245px; width: 147px;
height: 83px; z-index: 1;" id="layer1">
<b><span style="background-color: rgb(255, 255, 0);"><font
size="5"><a href="#end" target="I1">Go To
End</a></font></span></b><p><a name="start" target="I1"></a></p></div>
<div style="position: absolute; left: 3669px; top: 227px; width: 163px;
height: 70px; z-index: 2;" id="layer2">
<span style="background-color: rgb(255, 255, 0);">
<a href="#start">
<font size="5"><b>Go To </b></font><font
size="5"><b>Start</b></font></a></span><a name="end"></a></div>
<p><img src="A1image_data/A1pan.jpeg" border="0" height="403"
width="3832"></p>

</body></html>

{ I apologize to the NG this is CI's markup not mine! }
It still makes the whole page scroll down.

What? I thought your said the problem was that your document would
scroll to the top and that the iframe image would not be visible and
that was the issue?

Your links are on the image, and the iframe is way down the document
beneath a gaggle of lorem ipsum's. I would assume that if someone were
view the image and then (I don't know, lost the ability to us a scroll
bar) click the link to reposition the image and the image darted from
view that this would not be a desirable outcome.

If you refer to my other recent
post to Spartacus in this thread, you will see he has understood the issue.
Hopefully between all our brains we will be able to find a way around the
problem.

The problem really is that this is NOT the way to do this. Flash would
be far more suitable.
 
S

Spartanicus

Chris Ianson said:
Thanks. At last someone who gets it!

The wonders of supplying a url, had you done that straight away everyone
would have "gotten it" and wouldn't have wasted their time guessing.
When you say "sort of works", is there a problem with it? It works fine for
me as far as jumping within the iframe goes.

It doesn't completely scroll the content due to less than ideal absolute
positioning of the links, but the main problem is the repositioning of
the content in the mother page.
Is there an online emulator for Opera and FF I can play with?

Why? Both are free to download and use, both are available for all
popular operating systems.
Ahh, but if I could jump back up to another bookmark

Continuing to use Frontpage terminology that means something else
outside that narrow confine doesn't help if you want to talk to people
outside of the Frontpage community.
that is positioned
exactly where I wanted everything to line up, then although I couldn't "fix"
it, I could circumvent it.

You can't reposition the mother document to the same position in the
viewport.
I have a second panorama image ('image2') which will be loadable into that
iframe by the user.

* E.g. they click a jump tag (book mark/name ref) on the sea on the left of
image1, and it will load image2 into that iframe, positioning image2 on the
left of the iframe, showing underwater on the left.
* Click the jump tag in the middle, you image2 but the scrollbar jumps to
the middle of image2.
* Click the jump tag on the right, you get the right-edge of image2 and the
iframe scrollbar positions itself automatically all the way to the right.

Sorry, I can't make sense of that jumbled description.
 
C

Chris Ianson

Spartanicus said:
The wonders of supplying a url, had you done that straight away everyone
would have "gotten it" and wouldn't have wasted their time guessing.

My sincere and humble apologies for hoping you'd understand without me
having to create and upload an example.
Continuing to use Frontpage terminology that means something else
outside that narrow confine doesn't help if you want to talk to people
outside of the Frontpage community.

Again, sincerest apologies for any distress caused to you or your loved
ones.
Sorry, I can't make sense of that jumbled description.

So am I.

Look, I'm spending ages here trying to explain WHY I want to achieve
something, when actually all I need to know is HOW to achieve it.

Back to my question. Is there a way to call TWO jump tags from ONE click on
a hyperlink? I want 1 click to:

A) Work exactly as it does in the URL I provided
B) Jump to a name reference in the MAIN document (not the iframe) that
lines the window position back to where it should be

£1,000,000* to anyone who is able to actually show a way to do this.

*money will be in the form of an IOU payable after the death of the planet
 
C

Chris Ianson

Jonathan N. Little said:
No I am afraid it is you that do not understand: The change is to your
IFRAME document

Sorry mate but you don't get it. Trust me, I know what I want to do. View
the part of this thread where I am talking with Spartacus, as he gets it
perfectly too.
<html><head>


<meta http-equiv="Content-Language" content="en-gb">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252"><title>Go To End</title></head><body>

<div style="position: absolute; left: 50px; top: 245px; width: 147px;
height: 83px; z-index: 1;" id="layer1">
<b><span style="background-color: rgb(255, 255, 0);"><font size="5"><a
href="#end" target="I1">Go To
End</a></font></span></b><p><a name="start" target="I1"></a></p></div>
<div style="position: absolute; left: 3669px; top: 227px; width: 163px;
height: 70px; z-index: 2;" id="layer2">
<span style="background-color: rgb(255, 255, 0);">
<a href="#start">
<font size="5"><b>Go To </b></font><font
size="5"><b>Start</b></font></a></span><a name="end"></a></div>
<p><img src="A1image_data/A1pan.jpeg" border="0" height="403"
width="3832"></p>

</body></html>

That does nothing different.

The problem is: This makes the whole browser window scroll downwards.
The solution is: Make the hyperlink call a bookmark in that main window to
scroll it back up.

I just don't know how!
{ I apologize to the NG this is CI's markup not mine! }

And I apologise too. This isn't my day job.
What? I thought your said the problem was that your document would scroll
to the top and that the iframe image would not be visible and that was the
issue?

Never said the iframe wasn't visible. I just don't want the main window's
cursor bar to move when the iframe cursor bar moves.
The problem really is that this is NOT the way to do this. Flash would be
far more suitable.

Understood, but it has to be in HTML. I can't be any clearer than that.

Cheers.
 
S

Spartanicus

Chris Ianson said:
Look, I'm spending ages here trying to explain WHY I want to achieve
something

That's because this is a discussion group,
, when actually all I need to know is HOW to achieve it.

not a help desk. Ask a question here and we'll discuss the implications
of what you're trying to do, whether you like it or not.
Back to my question. Is there a way to call TWO jump tags from ONE click on
a hyperlink?

As you've been told a number of times: no.

Now, I've wasted enough time on you, bye.
 
C

Chris Ianson

Now, I've wasted enough time on you, bye.

Jeez you guys are hard work!

I didn't ask for a discussion, you chose to discuss it, then got rude and
called me a waste of your time for making you discuss it! :-S Utterly
bizarre.

If you don't know the answer, and have time limitations, don't reply to the
question and save your time!

Jeeez.
 
J

Jonathan N. Little

Chris Ianson wrote:
The problem is: This makes the whole browser window scroll downwards.
The solution is: Make the hyperlink call a bookmark in that main window to
scroll it back up.

I just don't know how!

Answer: You cannot. Not with just HTML.

Jonathan N. Little said:
And I apologise too. This isn't my day job.

But is is mine... and I say again what you wish to to cannot be done the
way you want to. Not trying to be difficult, just being truthful.

<snip>

What I said still holds true. Finally seeing your URL confirms this.
Understood, but it has to be in HTML. I can't be any clearer than that.

Very clear, but the problem is you are not receiving the clear answer.
This in not a 'Faith-based' situation here, just believing so without
the facts to back you does not make it possible...
 
B

Beauregard T. Shagnasty

Chris said:
Hmm interesting, you've obviously taken the time to try to fix it,
thanks. I appreciate that. Sadly it has the same behaviour as
before, at least on IE6 & 7. The whole page scrolls to the bottom
when you click a link in the iframe.

Els' version works fine in my Win2K IE6. (I will never see 7, on my
computer.)
 
E

Els

Chris said:
Hmm interesting, you've obviously taken the time to try to fix it, thanks. I
appreciate that. Sadly it has the same behaviour as before, at least on IE6
& 7. The whole page scrolls to the bottom when you click a link in the
iframe.

Did something break,

It works here in IE6 and IE7 and Firefox - it doesn't in Opera, but in
Opera you can scroll from left to right with the mouse wheel, as long
as the pointer is on the scrollbar.

I have a second version on http://here.locusmeus.com/temp/chris2.html
- maybe that one works for you? What version of Windows are you using?
I tested on WinXP and Win98.
and what was your proposed solution?

The reason the page jumped down, is that you used "end" as a fragment
identifier. Even if you wouldn't have a target <a> element with the
name or id "end", it would still jump down. Just like it jumps to the
top of the page when you use <a href="#top"> in some (most?) browsers.
I changed these names to left and right to avoid this problem.

Since the <a> elements were still half way the image, the page would
jump to that place. So my solution is to place the <a> elements with
the id/name attributes to the top of the image. And because you seemed
to like to have the links halfway, I separated links and targets.
Target <a> left and right at the top, link <a> left and right half way
the image.

My second version is better btw - there's a weird thing in the first
version. The second one would also validate against a transitional
doctype. So.. hope it works for you :)
 
S

Steve Pugh

Chris Ianson said:
Hmm interesting, you've obviously taken the time to try to fix it, thanks. I
appreciate that. Sadly it has the same behaviour as before, at least on IE6
& 7. The whole page scrolls to the bottom when you click a link in the
iframe.

Not here with IE 7.0.5296.0 (and its the same in FireFox 1.5.0.1).
It scrolls the parent page so that the top of the iframe is at the top
of the window. If your browser window is much taller than mine then I
suppose it would look like it wa scrolling to the bottom of the parent
window. I don't think that positioning the iframe at the top of the
browser window is a bad thing.

OTOH, it doesn't work at all in Opera 8.53

Personally I'm in the camp that would use CSS + an optional little bit
of JavaScript rather than an iframe.

Steve
 
J

Jonathan N. Little

No, the best the I can understand it is that he does not want the main
frame to scroll at all, but since the anchors are within the iframe the
link is going to scroll the outer frame to the top of the iframe,
always! Again there is NO WAY to do what he wishes with HTML alone.

What he wants is something that functions like a Java applet or Flash
object.
 
E

Els

Jonathan said:
No, the best the I can understand it is that he does not want the main
frame to scroll at all, but since the anchors are within the iframe the
link is going to scroll the outer frame to the top of the iframe,
always!

In my example it is, yes. But in his first attempt the page really
jumped down to the bottom of the main page. Him seeing the same
behaviour in my example as in his is something I don't understand,
because my example does not do what his does at all. (except in Opera,
where neither his nor my example does anything on clicking a link in
the iframe ;-) )

If anything, my example makes the page scroll up (to the top of the
iframe) - not down.
Again there is NO WAY to do what he wishes with HTML alone.

I'm not so sure he wishes anything else than just have the image
remain in view when clicking the links.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,021
Latest member
AkilahJaim

Latest Threads

Top