![]() |
|
|
|||||||
| Website Development Web development programming languanges, HTML, PHP, MySQL and design support. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Junior Member
Join Date: Feb 2005
Posts: 13
|
Jumping Website
I am currently designing the following website:
[url]http://www.punjabidirectorybc.com/[/url] The way the site is designed is simple... There are two Iframes being used... One is for the towns listings menu and the town listing will load up into the second iframe that will contain all of the listings for that particular town. The problem is that some of the listings are very long. So I wanted to put in a simple alpabetical navigation where the viewer could click on a letter of the alphabet and jump down to the appropriate section. This would cut down the amount of the scrolling. Simple enough. However... when I include an internal link and you click on it... It jumps down to the appropriate section but also causes the entire website to jump up. It's this "jumping up" that I am trying to avoid. Could someone go to the above link and click on the "Prince Rupert" listing. On that page in the top left corner.. you will see the letter "S" which is an internal link. Click on it and you will see what I am getting at. If anyone could help me stop this, I would be indebted to you. This problem has been driving me nuts for weeks and I just can't figure out how to stop it. Thanking you in advance... |
|
|
|
|
|
#2 |
|
Acceptably Annoying
|
From a first glance at your code, this appears to be an issue with the context menu script developer. I would suggest you look to them for support. While we try to assist people anywhere we can, we don't dig into other developer's source code to figure out why it behaves the way it does.
Dynamic Drive has a support forum at http://www.dynamicdrive.com/forums I would think that would be your best place to start asking for help with this issue.
__________________
With the speed of technology advancement today, anybody who says "it can't be done" is usually interrupted by somebody who is already doing it. |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Feb 2005
Posts: 13
|
I forgot that I had left the CSS portion of that "context menu script " but I had removed the java script portion of that Context menu. Anyways... It's all gone but the problem still exsists.
Are you able to continue to help me or should I still go back to Dynamic Drive? Whatever you decide would be fine. Thanks |
|
|
|
|
|
#4 |
|
Acceptably Annoying
|
You want the link to pop to the top of the frame, not the page, so set the target to the second frame. Try this
Code:
<a href="S" target="_self">S</a>
__________________
With the speed of technology advancement today, anybody who says "it can't be done" is usually interrupted by somebody who is already doing it. |
|
|
|
|
|
#5 |
|
Junior Member
Join Date: Feb 2005
Posts: 13
|
Thanks for getting back.. bigH20
Now I'm not sure what you mean when you say "play around with the target attribute until you get it in the correct place". Do you mean to play will all of the target attributes.. if so.. then that didn't work. Or do you mean to move the link somewhere else in the actual coding. If so.. then I don't know how that's going to make any difference ?!? I would have thought that the answer to this problem would have been simple but it don't seem to be that way anymore. This is really driving me crazy. |
|
|
|
|
|
#6 |
|
Acceptably Annoying
|
I can't play with your site to debug it. All I can do is take a picture of the code as it is now using the browser's "view source" function. The source is different now than it was the last time I made a suggestion which is different from when you first your problem, so for me to say "DO THIS" is purely based on what I'm suspecting you want to do... not based on hard mods to fluid code.
the target"_self" directive will point the href target to the frame it is called in. You had a boatload of other directives in your code, so adding this call could yield different results depending on where you placed it. To be honest, I don't do much (if any) html coding. It's mostly all PHP code that is rendered to html by the PHP engine. From looking at your source however, all I can see is the rendered (or coded) html. From that standpoint, If you get your frames set up properly, and point the target of the href call within the frame, you should be set. It's all a matter of understanding the programming. A quick search on your programming method's function calls should yield the results you are looking for.
__________________
With the speed of technology advancement today, anybody who says "it can't be done" is usually interrupted by somebody who is already doing it. |
|
|
|
|
|
#7 |
|
Junior Member
Join Date: Feb 2005
Posts: 13
|
I sure hope that I am not testing your patience by asking some "boneheaded" questions... But I appreciate your willingness to help out BigH2O.
I definitely understand what the target function does and I realize that there might be something else in the coding that is interferring with the way in which it is working. What I am unsure of is what you mean when you say "A quick search on your programming method's function calls should yield the results you are looking for." Just how do I do a search on my programming method's function calls. Is there some online program that I can use to do this. I've been using dreamweaver to build the site. Maybe theres something in dreamweaver that can do that search for me. What do you think? |
|
|
|
|
|
#8 |
|
Junior Member
Join Date: Feb 2005
Posts: 13
|
Finally got it
I don't believe it... I finally got it.
Just for the benefit of anyone else with a similar problem... I am doing this post. It turned out that on my index page, one of the div boxes was interferring with the targeting attribute. The div box was being used as a sort of background to the site. I don't know what the relationship of the div box and targeting attribute is but I recoded the index page to work without it... It finally worked. Thanks for all your help BigH2O |
|
|
|
|
|
#9 |
|
Acceptably Annoying
|
Glad you got it worked out, and thanks for letting us know your solution.
__________________
With the speed of technology advancement today, anybody who says "it can't be done" is usually interrupted by somebody who is already doing it. |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|