Webmaster Forum


Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Coding Forum Problems with your code? Let's hear about it.

Ezilon Directory   I Sell Pagerank   V7N Directory

Reply
 
LinkBack Thread Tools Display Modes
Old 01-05-2008, 12:36 PM   #1 (permalink)
Contributing Member
 
Join Date: 12-14-05
Posts: 109
iTrader: 0 / 0%
Latest Blog:
None

gnznroses is on the right pathgnznroses is on the right path
Thumbs down Javascript: works in IE, not FF

i had someone modify a script for me. the script creates tabs for "pages" of content and puts the tabstrip only on the top of the content. so i had them add a tabstrip along the bottom of the content as well.
problem is, when you click the tabs on that bottom row, it works in IE but not in FF.
i can't figure out how this works so i'm really hoping someone else can...

here's a code excerpt and the changes he made (in red):
Quote:
var oThis = this;
/* Create a link to activate the tab */
DOM_a = document.createElement("a");
DOM_a.appendChild(document.createTextNode(t.headin gText));
DOM_a.href = "javascript:void(null);";
DOM_a.title = t.headingText;
//DOM_a.onclick = this.navClick;
addEvent(DOM_a,"click",oThis.navClick);



/* Add some properties to the link so we can identify which tab
was clicked. Later the navClick method will need this.
*/
DOM_a.tabber = this;
DOM_a.tabberIndex = i;

/* Do we need to add an id to DOM_a? */
if (this.addLinkId && this.linkIdFormat) {

/* Determine the id name */
aId = this.linkIdFormat;
aId = aId.replace(/<tabberid>/gi, this.id);
aId = aId.replace(/<tabnumberzero>/gi, i);
aId = aId.replace(/<tabnumberone>/gi, i+1);
aId = aId.replace(/<tabtitle>/gi, t.headingText.replace(/[^a-zA-Z0-9\-]/gi, ''));

DOM_a.id = aId;
}

/* Add the link to the list element */
DOM_li.appendChild(DOM_a);

/* Add the list element to the list */
DOM_ul.appendChild(DOM_li);
}

/* Add the UL list to the beginning of the tabber div */
e.insertBefore(DOM_ul, e.firstChild);

/* Copy the UL list to the end of the tabber dib */
var bottom_DOM_ul = DOM_ul.cloneNode(true);
e.appendChild(bottom_DOM_ul);

if i restore the click event line back to how it was, then the bottom tabs don't work in IE either.

here's a live copy to see what i'm talking about:
http://bashsoftware.net/temp/tabs/tabsexample.html

(the actively selected tab doesn't change colors as it should either, but i have a fix for that, not included in this version of the script)

-edit-
need to see the navClick function?
gnznroses is offline  
Add Post to del.icio.us
Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links
Old 01-13-2008, 11:39 AM   #2 (permalink)
Contributing Member
 
Join Date: 12-14-05
Posts: 109
iTrader: 0 / 0%
Latest Blog:
None

gnznroses is on the right pathgnznroses is on the right path
are we allowed to bump topics? cause i still haven't figured this out.
gnznroses is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Javascript app works in Firefox, not in IE Gr8Writer Coding Forum 0 01-30-2008 04:39 PM
A .tpl and how it works? chai714 Web Design Lobby 5 02-09-2006 10:19 PM
Count-up from a particular year + Javascript within Javascript? Help! Azam.biz Coding Forum 3 06-06-2005 06:47 AM
jsp/xsl works only on Win/IE azbuki Coding Forum 17 03-17-2004 10:05 AM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 06:40 AM.
© Copyright 2008 V7 Inc