473,240 Members | 1,612 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,240 software developers and data experts.

Inside Anchors

Now I have a question myself :)

I am working on a website for a Hotel and on the first page we have a
flash movie that shows the latest news items. The news items are
retrieved from the database and shown in the movie.
The news items do all have a summary and some of them can have a more
detailed text.

If there is detailed text available I want to open the detailed text of
the news item, after clicking the item in the flash movie. This is
working without problems.

But if there is no detailed text I want to jump to the list with news
items and then jump to that specific news item with the anchor.

An example url for linking to the news-item is:

http://www.example.com/index2.php?p=...&language=NL#3
(note: the target of this link = "_top")

index2.php is the frameset containing a header, a left navigation and
content frame. All parameters in this URL are passed on into the file
which is loaded in the content frame.

news is the news.php file which is included into the content.php file in
the content frame. This file has all parameters available.

The news.php has a <a name="3"></a> just before the corresponding
news-item, but I can't get it to work.

The strange thing however is that if I use the anchored link in the
document itself, it is working. (on the top of the list with news-items
there are all hyperlinks in the style:

http://www.example.com/content.php?p...&language=NL#3
And this hyperlink is working (document is opened in the same frame)

Has it to do with the fact that the frameset is called (because of
refresh navigational items), even if the parameters are all passed on or
am I missing something trivial?

Thanks....

Mark
Jul 17 '05 #1
1 2409
In reply to my own problem (or should I say challenge :P), which I have
also been able to solve, hereby my solution.

This was some lack of thinking on my behalf, because I should have known
that you can't use an #anchor as a parameter and give that to a frameset
where three other documents are requested. So the anchor already is lost
there. So I added another document, which is included in the frameset to
a PHP parameter and inserted a prenews document which retrieves all the
parameters (all parameters are passed on in this document) and then a
javascript document.location.replace('url') will be executed with of
course the url rewritten with the #anchor added. Because I am now in the
same frame of the frameset, the document jumps to the correct anchor
inside the document

Mark

Mark Kuiphuis wrote:
Now I have a question myself :)

I am working on a website for a Hotel and on the first page we have a
flash movie that shows the latest news items. The news items are
retrieved from the database and shown in the movie.
The news items do all have a summary and some of them can have a more
detailed text.

If there is detailed text available I want to open the detailed text of
the news item, after clicking the item in the flash movie. This is
working without problems.

But if there is no detailed text I want to jump to the list with news
items and then jump to that specific news item with the anchor.

An example url for linking to the news-item is:

http://www.example.com/index2.php?p=...&language=NL#3

(note: the target of this link = "_top")

index2.php is the frameset containing a header, a left navigation and
content frame. All parameters in this URL are passed on into the file
which is loaded in the content frame.

news is the news.php file which is included into the content.php file in
the content frame. This file has all parameters available.

The news.php has a <a name="3"></a> just before the corresponding
news-item, but I can't get it to work.

The strange thing however is that if I use the anchored link in the
document itself, it is working. (on the top of the list with news-items
there are all hyperlinks in the style:

http://www.example.com/content.php?p...&language=NL#3

And this hyperlink is working (document is opened in the same frame)

Has it to do with the fact that the frameset is called (because of
refresh navigational items), even if the parameters are all passed on or
am I missing something trivial?

Thanks....

Mark

Jul 17 '05 #2

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

Similar topics

7
by: Ben Wilson | last post by:
To anyone who can help me, you have my thanks in advance. I am implementing a "301 Moved Permanently" redirect in my website due to a change of our domain names. Unfortunately, I am having a...
1
by: Peter Jakobi | last post by:
Hello, I want to place two lines relative to another. The problem is, that these two lines are in different groups. Is there an possibility to set the x and y values of the second line with...
5
by: metalseb | last post by:
Hi folks I want to implement a full CSS navbar on the top of my page. Basically, this is a DIV with links on <li> tags shown in inline display. Things are going right, but if I want to show a...
2
by: learner | last post by:
Hi, A document has many Anchors. I want to take a particular action only if some particular anchors are clicked. I mean if some anchors are clicked, i want an alert box to pop up with ok and...
21
by: adrian suri | last post by:
Hi just started to experement with styleshhets, and have defined hover a:hover { Color : red; Text-decoration : none; Border-top-width : medium; Border-right-width : medium;
3
by: ryan.mclean | last post by:
Hi all, I hope somebody here can help me, I am attempting to obtain a reference to the anchors inside of a table. Here is what I have: table = document.getElementById(a_strTableId); for(var i...
0
by: udit_handa | last post by:
I am creating a scheduler using tables and Adding server side html Anchors in a page. As long as i click other buttons created at design time the viewstate is maintained but these server side...
12
by: Rich | last post by:
Strangely, on-page anchors will work on MSIE, but not on Netscape7.2 or Firefox1.5. All anchors are numbers e.g. <a href="#21">TOPIC</a> supposed to connect down to <a name="#21>beginning of...
3
by: windandwaves | last post by:
does it matter if I write var anchors = document.getElementsByTagName("A"); or var anchors = document.getElementsByTagName("a"); Or is there a better way to catch both <a hrefs and <A...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

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.