Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Target=_self keeps opening a new tab within expandable list
Old 07-09-2012, 08:34 PM Target=_self keeps opening a new tab within expandable list
Average Talker

Posts: 29
Name: Jen Starbuck
Trades: 0
I have a few links inside an expandable list on a couple of our web pages.

You can view it at:
http://starbuckrealtygroup.com/sell/index.php --> Click the "Maximize Exposure" tab --> Look for the heading "Single Property Web Page with QR Technology" --> there is a link in the first sentence and the image is also clickable.

My issue is that even when I set the target="_self" it still opens a new tab. I want the internal links to open in the same tab. The issue only seems to be occurring within the expandable list. It works properly with the "Seller Resources" at the bottom of the page.

How can this be fixed?
jstarbuck is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-10-2012, 04:03 PM Re: Target=_self keeps opening a new tab within expandable list
vangogh's Avatar
Post Impressionist

Posts: 11,182
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
target="self" referrers to a frame, but you're not using frames. Those "tabs" are being created with Javascript. If you want the new content to load in the same "tab" you're going to need to code the link to work that way with more Javascript.

You might also try using an inline frame inside the "tab" to load content from another page. In that case you will be able to use the target attribute to load new content in place. This is probably the route you want to go.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Design, Development, Marketing, and SEO Tutorials |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 07-12-2012, 01:06 PM Re: Target=_self keeps opening a new tab within expandable list
Average Talker

Posts: 29
Name: Jen Starbuck
Trades: 0
I'm not sure I'm quite understanding your answer. I'm not trying to open a link within a frame in the expandable list.

What is happening: When you click a link within an expandable list, it's opening a NEW browser tab.

What I want to have happen is: when they click on a link, the link opens in the SAME BROWSER tab. This works correctly everywhere else on the site.
jstarbuck is offline
Reply With Quote
View Public Profile
 
Old 07-12-2012, 02:14 PM Re: Target=_self keeps opening a new tab within expandable list
vangogh's Avatar
Post Impressionist

Posts: 11,182
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
Quote:
What I want to have happen is: when they click on a link, the link opens in the SAME BROWSER tab. This works correctly everywhere else on the site.
On the rest of the site you use ordinary links. When someone clicks those links a new page is loaded in the tab. That's how links work by default. If that's what you want then remove target="self" and you're done.

If that doesn't work then something in your code is specifically telling the browser to open the link in a new tab. Since it works everywhere else on the site and the main difference is likely the Javascript opening and closing the expandable lists, that's probably a good place to start looking.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Design, Development, Marketing, and SEO Tutorials |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 07-13-2012, 07:19 AM Re: Target=_self keeps opening a new tab within expandable list
chrishirst's Avatar
Defies a Status

Posts: 44,046
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Quote:
What I want to have happen is: when they click on a link, the link opens in the SAME BROWSER tab. This works correctly everywhere else on the site.
Then remove the target attribute completely. Or set the correct value!

target="self" refers to A FRAME or WINDOW with a name attribute of "self". The CORRECT value for the target attribute to make a link open in the same frame/window is _self [UNDERSCORE]self
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 07-14-2012, 02:35 AM Re: Target=_self keeps opening a new tab within expandable list
ChrissAmirian's Avatar
Junior Talker

Posts: 4
Name: Christopher Amirian
Location: Tehran, Iran
Trades: 0
Hi there. I disabled the Javascript of my browser and tested your website. At that case the link opens normally in the current tab. So it is not an html problem . The problem is that one of the javascript files you use make this change.

Please check the file below:

Your website root -> /js/expandable-list.js

It has an error. please delete prepareList() call and see if it will fix your issue.

Thank you and regards;

Christopher Amirian
ChrissAmirian is offline
Reply With Quote
View Public Profile Visit ChrissAmirian's homepage!
 
Reply     « Reply to Target=_self keeps opening a new tab within expandable list
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.25216 seconds with 11 queries