Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

IE object null error

Featured Replies

I have mental block on this one, and would really appreciate somone to give me a second pair of eyes on something

 

In IE only the "ID is null or not an object" error , citing the following line:

 

content = $(tab.id + "_data")

Works beautifully in FF etc..

 

The issue is then that in IE that the Divs the tabs controll just stack under eachother, rather than shwing the active pane

 

For infomation purposes - this is inthe magento/prototype/scriptilicious environment

 

Any ideas?

 

 

var richardstabs = {

tabContainerID: "navBar",

tabs: new Array(),

initialize: function() {

},

createTabs: function() {

var classObject = this;

this.tabs = $$("#navBar div");

this.tabs.each(function(el) {

Event.observe($(el), "click", function() {

classObject.switchTab(el);

});

});

this.switchTab($(this.tabs[0]));

},

switchTab: function(tab) {

content = $(tab.id + "_data");

if (content) {

this.tabs.pluck("id").each(function(elid) {

$(elid).className = "";

$(elid + "_data").hide();

});

 

tab.className = "activeTab";

content.show();

} else {}

}

};

document.observe("dom:loaded", function() {

richardstabs.createTabs();

});

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.