16 replies [Last post]
mindmyweb
mindmyweb's picture
Offline
newbie
Indian
Last seen: 8 years 38 weeks ago
Indian
Timezone: GMT+5.5
Joined: 2011-03-14
Posts: 7
Points: 8

I was makeing tab navigator when I got into a problem when we link to an internal link on the same page my page is getting positioned in way were that link is the top. I would prefer it not to move when I call the link.

I already tried

and but It does not help is there anything in css we can use to fix this.

you can see an example on

http://www.mindmyweb.com/packages.html#tcontent1

any help will be great thanks

Verschwindende
Verschwindende's picture
Offline
Guru
Last seen: 36 weeks 1 day ago
Timezone: GMT-4
Joined: 2009-10-09
Posts: 2040
Points: 2262

Wait, I'm not sure I

Wait, I'm not sure I understand. What I get from your question is that you want a link but you don't want it to go anywhere. Am I correct?

mindmyweb
mindmyweb's picture
Offline
newbie
Indian
Last seen: 8 years 38 weeks ago
Indian
Timezone: GMT+5.5
Joined: 2011-03-14
Posts: 7
Points: 8

yes its an internal link

Yes that is correct its an internal link within the same page. Its calls a javascript function on click but then the page gets re positioned. I actually want no movement on the page itself when the link is clicked.

http://www.mindmyweb.com/packages.html

See this page click on ebay development services then click back on web development services and see what happens.

The page re positions makeing the top the anchor tab.

the top should still be the top of the page.

Verschwindende
Verschwindende's picture
Offline
Guru
Last seen: 36 weeks 1 day ago
Timezone: GMT-4
Joined: 2009-10-09
Posts: 2040
Points: 2262

mindmyweb wrote: Yes that is

mindmyweb wrote:

Yes that is correct its an internal link within the same page. Its calls a javascript function on click but then the page gets re positioned. I actually want no movement on the page itself when the link is clicked.

What's the purpose of using a link at all then? Makes no real sense to me.

Solution: remove the links.

mindmyweb
mindmyweb's picture
Offline
newbie
Indian
Last seen: 8 years 38 weeks ago
Indian
Timezone: GMT+5.5
Joined: 2011-03-14
Posts: 7
Points: 8

use of the links

The Javascript function is called using the rel property. The client must see the cursor change to a hand also to know that the item is actually a link. I think this is standard is tab browsing.

Contents of 4 divs are loaded into the page but 3 are hidden until one is clicked and javascript funtion is called. The only thing is the page bounces when the click happens.

I have noticed this is only happening when the content of the div to be filled is larger than the height of the page.

Verschwindende
Verschwindende's picture
Offline
Guru
Last seen: 36 weeks 1 day ago
Timezone: GMT-4
Joined: 2009-10-09
Posts: 2040
Points: 2262

OK, so remove the links to

OK, so remove the links to the page ID and you're good to go.

mindmyweb
mindmyweb's picture
Offline
newbie
Indian
Last seen: 8 years 38 weeks ago
Indian
Timezone: GMT+5.5
Joined: 2011-03-14
Posts: 7
Points: 8

Re

I am sorry i dont get you what is the page ID

This is what the code looks like

<div id="adv1" class="usual" style="clear:both;"> 
  <ul> 
    <li><a class="selected" href="#tcontent1" target="_top"  >About US</a></li> 
    <li><a  href="#tcontent2">Our Products</a></li> 
    <li><a href="#tcontent3">Our Designers</a></li> 
 
  <li><a href="#tcontent4">Traders Login</a></li> 
    <li><a href="#tcontent5" >Distributers / Online And Retail Shops </a></li> 
       <li><a href="#tcontent6" >Contact US </a></li> 
  </ul> 

containers look this like

<div id="tcontent2" class="tabcontent">
<table border="1" summary="catalogeItems">
<tr><td><img src="Images/chessPieces.01S.jpg" alt="Chess Pieces" /> </td> <td>Chess Boards </td> <td> Chess Cases / Storage Box</td> </tr>
 
</table>
</div>
 
<div id="tcontent3" class="tabcontent">
This section is getting updated please check back in a few days
</div>

Verschwindende
Verschwindende's picture
Offline
Guru
Last seen: 36 weeks 1 day ago
Timezone: GMT-4
Joined: 2009-10-09
Posts: 2040
Points: 2262

Sorry, I just don't know how

Sorry, I just don't know how to communicate the information you need.

I guess basically all I can say is that if you don't want the action of a link then don't use <a>. A link goes somewhere and using an ID in the link and on the page tells it where to go. If you don't want that you need to come up with a different plan.

I hope someone else can help you better.

mindmyweb
mindmyweb's picture
Offline
newbie
Indian
Last seen: 8 years 38 weeks ago
Indian
Timezone: GMT+5.5
Joined: 2011-03-14
Posts: 7
Points: 8

Thanks

There is always a way mate

Thanks for trying

Verschwindende
Verschwindende's picture
Offline
Guru
Last seen: 36 weeks 1 day ago
Timezone: GMT-4
Joined: 2009-10-09
Posts: 2040
Points: 2262

mindmyweb wrote:There is

mindmyweb wrote:

There is always a way mate

Thanks for trying

Laughing out loud I take it you don't like my advice.

mindmyweb
mindmyweb's picture
Offline
newbie
Indian
Last seen: 8 years 38 weeks ago
Indian
Timezone: GMT+5.5
Joined: 2011-03-14
Posts: 7
Points: 8

Here it is

That is because I managed to make it work just the way i wanted to the trick was to add this line of code to the href

onclick="return false"

It does the Trick Tongue Glasses

And Now my page looks flawless Cool

Regards
Adi

Verschwindende
Verschwindende's picture
Offline
Guru
Last seen: 36 weeks 1 day ago
Timezone: GMT-4
Joined: 2009-10-09
Posts: 2040
Points: 2262

Still jumps for me. :shrug:

Still jumps for me. :shrug:

andybruce
andybruce's picture
Offline
newbie
china
Last seen: 8 years 33 weeks ago
china
Timezone: GMT+8
Joined: 2011-04-22
Posts: 1
Points: 1

sdfsdf

ggsagsgadsg

johanmicale
johanmicale's picture
Offline
newbie
johanmicale
Last seen: 8 years 33 weeks ago
johanmicale
Timezone: GMT-7
Joined: 2011-04-26
Posts: 2
Points: 2

The highflying is tarradiddle

The highflying is tarradiddle in garment a breaking 33rd and it entails idiosyncratic perdurable benignancy for me. I am determining to wee your towering way of connector the playacting. Now you danger it macerate for me to micturate and get the theory. Add you for the airman.
quotes about life

johanmicale
johanmicale's picture
Offline
newbie
johanmicale
Last seen: 8 years 33 weeks ago
johanmicale
Timezone: GMT-7
Joined: 2011-04-26
Posts: 2
Points: 2

Asserted nicely say set it

Asserted nicely say set it contains unessential entropy for me. I am distensible to striking your opportune way of descriptor the communicator. Now you add it promiscuous for me to see and use the rootle. Straits you for the airman.
life quotes

Deuce
Deuce's picture
Offline
Guru
Somewhere, USA
Last seen: 2 years 21 weeks ago
Somewhere, USA
Timezone: GMT-5
Joined: 2005-11-20
Posts: 4424
Points: 1843

I really hope a bus hits you

I really hope a bus hits you on your way home.

all ยป http://dictionary.reference.com/browse/all

Google isn't a bunch of guys reading and grading web sites, it's more like a bunch of monkeys sniffing food and putting the good bananas at the top. -Triumph

BookofRadeluxe
BookofRadeluxe's picture
Offline
newbie
Europe
Last seen: 8 years 31 weeks ago
Europe
Timezone: GMT+2
Joined: 2011-05-04
Posts: 1
Points: 1

I really hope a bus hits you

I really hope a bus hits you