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.

Problems with javascript in IE

Featured Replies

There is a javascript function on this page that works fine in most browsers we use but not internet explorer (at least version 8 ). When an option is selected from the drop-down lists, the list below is supposed to show only the entries linked to that selection (as written in the javascript code). Is there something wrong with the code, or is this something that commonly happens on IE8?

 

Thanks in advance for any help or advice.

Edited by Foreigner

Webpage error details

 

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)

Timestamp: Sun, 22 Jan 2012 22:18:16 UTC

 

 

Message: 'cases[...].url' is null or not an object

Line: 207

Char: 3

Code: 0

URI: http://ec.europa.eu/environment/sme/cases/case_study_en.htm

 

 

Message: Object doesn't support this property or method

Line: 262

Char: 1

Code: 0

URI: http://ec.europa.eu/environment/sme/scripts/mootools-1.2.3-core.js

 

 

Two errors, if you fix those, it will probably start working again.

  • 7 months later...

HI There, I'm new to this....

 

I have made a site with a jquery fadeslideshow function : www.visualpractice.co.uk

This works perfectly will all browsers except IE...grrrr.

 

Can anyone advise what Im doing wrong? thanks.

 

code excerpt:

 

 

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.js"></script>

<script src="http://www.visualpractice.co.uk/fadeslideshow.js"></script>

<script src="SpryAssets/SpryEffects.js" type="text/javascript"></script>

 

<script type="text/javascript">

var mygallery=new fadeSlideShow({

wrapperid: "rolingimageholderbox", //ID of blank DIV on page to house Slideshow

dimensions: [800, 538], //width/height of gallery in pixels. Should reflect dimensions of largest image

imagearray: [

["http://www.visualpractice.co.uk/Habitat800.jpg", "", "", ""],

["http://www.visualpractice.co.uk/Mandarina800.jpg", "", "", ""],

["http://www.visualpractice.co.uk/Armani800.jpg", "", "", ""],

 

],

displaymode: {type:'auto', pause:3000, cycles:0, wraparound:false},

persist: true, //remember last viewed slide and recall within same session?

fadeduration: 500, //transition duration (milliseconds)

descreveal: "ondemand",

togglerid: ""

})

function MM_effectAppearFade(targetElement, duration, from, to, toggle)

{

Spry.Effect.DoFade(targetElement, {duration: duration, from: from, to: to, toggle: toggle});

}

</script>

  • 4 weeks later...

I can't, but I can give you a little tip.

 

It would be extremely useful to you as a developer to learn to debug your code. All browsers come with a Javascript console/debugger, and familiarising yourself with it is vital to your programming advancement. Knowing what is going wrong, what line is causing the error, which function is in question or which object has returned that NULL value can help you scale down the possible problems and home in on your error.

 

Ctrl + Shift + C in Chrome and Firefox, F12 in MSIE and Alt + Shift + I for Safari. Can't remember what the shortcut is for Opera, but you need to download "Dragonfly", the Opera Javascript console.

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.