IE not work :(

25 messages Options
Embed this post
Permalink
1 2
ciesa

IE not work :(

Reply Threaded More More options
Print post
Permalink
works fine in all browser, but in IE dont work

Message: Object required
Line: 1
Char: 20256
Code: 0
URI: http://page/shadowbox.js
DrScientist

Re: IE not work :(

Reply Threaded More More options
Print post
Permalink
It does work in IE

Make sure all the permissions are properly set on the files within the shadowbox folder and make sure all paths within your HTML page are properly configured

Also if you need help debugging post more information on what youre trying to do and maybe some sample code
ciesa

Re: IE not work :(

Reply Threaded More More options
Print post
Permalink
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

<head>

meta data
<?php
echo'
	<title>'.$titulo_pagina.'</title>
';
?>
<style type="text/css" media="all">
@import "css/global.css";
</style>
<script src="js/jquery-1.1.3.js" type="text/javascript"></script>
<script src="js/thickbox.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" media="screen" title="default" href="css.css" />
<link rel="stylesheet" type="text/css" media="print" href="print.css" />
<link rel="stylesheet" type="text/css" href="shadowbox.css">
<script type="text/javascript" src="shadowbox.js"></script>
<script type="text/javascript">
Shadowbox.init({

    skipSetup: true,
    players: ["html"]
});

window.onload = function(){
    Shadowbox.open({
        content:    '<a rel="shadowbox" class="html" href="http://esa.ipb.pt/blogs/acesso2009/"><img src="imagens/acessoESA0910.gif" alt="Acesso ESA 09/10" /></a>',
        player:     "html",
        title:      "",
        height:     222,
        width:      496
    });

};
</script>
</head>
<body>

Site:
http://esa.ipb.pt
DrScientist

Re: IE not work :(

Reply Threaded More More options
Print post
Permalink
Hello again

Are you missing your <html> tags?

Are you sure shadowbox.js is in the correct folder, did you mean js/shadowbox.js ? [not sure where you placed it]

Also

Download Mozilla, then download the addon called 'Firebug'

It will tell you what error is appearing. Or check (in Mozilla) Tools > Error Console and check whats being outputted
ciesa

Re: IE not work :(

Reply Threaded More More options
Print post
Permalink
in mozilla Firefox works fine!
Opera ok;
IE error :(
ciesa

Re: IE not work :(

Reply Threaded More More options
Print post
Permalink
In reply to this post by DrScientist
DrScientist wrote:
Are you missing your
< html>
tags?
just problem in copy paste
DrScientist wrote:
Are you sure shadowbox.js is in the correct folder, did you mean js/shadowbox.js ? [not sure where you placed it]
all paths correct
DrScientist wrote:
Download Mozilla, then download the addon called 'Firebug' It will tell you what error is appearing.
no error
DrScientist wrote:
Or check (in Mozilla) Tools > Error Console and check whats being outputted
no errors, works fine in mozilla
DrScientist

Re: IE not work :(

Reply Threaded More More options
Print post
Permalink
Hello

I tested your site in IE8 and it seemed to work fine, there is an error but the shadowbox is appearing nicely
ciesa

Re: IE not work :(

Reply Threaded More More options
Print post
Permalink
worked ?!?!?
a can't see :(
work one time, i didnt change nothing never work again   (cookies ?)
can you teste more thant one time ?
thanks
ktoś

Re: IE not work :(

Reply Threaded More More options
Print post
Permalink
I have this same problem. It doesn't work in IE6, but sometimes when I refresh page several times it work. Error is in shadowbox.js and only when the player is "html"
DrScientist

Re: IE not work :(

Reply Threaded More More options
Print post
Permalink
In reply to this post by ciesa
Hi

I tested your site on a different computer on IE8 (compatibility settings and regular settings) and it loads if you refresh the page when clearing the cache/cookies OR holding down shift and refreshing (essentially clearing the cache)

TO try to fix it, move
window.onload = function(){
 
    // open a welcome message as soon as the window loads
    Shadowbox.open({
        content:    'Acesso ESA 09/10',
        player:     "html",
        title:      "",
        height:     222,
        width:      496
    });
 
};


to the very bottom, right ABOVE </body>

What I'm thinking is sometimes when you refresh it calls up the window.unload BEFORE the .init function gets a chance to set up. I'm not sure if it makes sense but you have to understand the error is only occuring when you DONT clear the cache.
Jay424

Re: IE not work :(

Reply Threaded More More options
Print post
Permalink
In reply to this post by ciesa
Try putting this at the end of your shadowbox css file.

#shadowbox_title {border: 0px solid;}
#shadowbox_info {border: 0px solid;}
LessZoa

Re: IE not work :(

Reply Threaded More More options
Print post
Permalink
In reply to this post by ciesa
also not working for me...

works sweetly fine with FF3.0.1, but not with IE7 at all (have not tested for IE8 yet as most are still on 7).

Images/linked items are opening in the same tab instead initiating the .js for shadowbox.

ENVIRONMENTS TESTED:
OS:Vista Business & XP svc paks 2 & 3
Browser: IE7
Not tested: IE8



Also, if there is an older version that did indeed work with IE7 & 8, is it still available for DL somewhere? I'd be willing to pay the commercial fee for it with upgrade(s) for certain time frame.

Nice bit of coding, if it will work with IE.

LessZoa
  webmaven - developer - admin - designer
"I know just enough to be dangerous to my vendors & staff."
twitter | blog | work | fun
LessZoa

Re: IE not work :(

Reply Threaded More More options
Print post
Permalink
My test page code


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled</title>
<link rel="stylesheet" type="text/css" href="resources/shadowbox/shadowbox.css">
<script type="text/javascript" src="resources/shadowbox/shadowbox.js"></script>
<script type="text/javascript">
Shadowbox.init({
    language: 'en',
    players:  ['img', 'html', 'iframe', 'qt', 'wmp', 'swf', 'flv'],
    handleOversize:     "drag",
    displayNav:         true,
    handleUnsupported:  "remove",
    autoplayMovies:     false,
		continuous:         true,
});
</script>
<style>

.hidden{display:none;}


</style>

</head>
<body>
<p>Dinkering around with a test for shadow box links and other features. This is just a testing area for CSS & JS that will be linked up directly from this page.</p>

<a href="resources/images/doll2.gif" rel="shadowbox">
<img src="resources/images/doll1.gif" width="100" height="100" alt="doll1 (3K)" /></a>

<br /><br />

<a href="resources/images/doll3.png" rel="shadowbox">
<img src="resources/images/doll1.gif" width="100" height="100" border="0" /></a>
<br /><br />

<a href="resources/images/fox.jpg" rel="shadowbox">
fox</a>
<a href="resources/images/redHibiscus.jpg" rel="shadowbox;options={handleOversize:'resize'}">
flower</a>

<br /><br />

<a rel="shadowbox[Whalen Jack];options={slideshowDelay:5}" href="resources/images/whalen/1.jpg" title="Whalen Jack">Image Gallery (slideshow)</a>
  <a rel="shadowbox[Whalen Jack];options={slideshowDelay:5}" href="resources/images/whalen/2.jpg" title="Whalen Jack" class="hidden">image</a>
  <a rel="shadowbox[Whalen Jack];options={slideshowDelay:5}" href="resources/images/whalen/3.jpg" title="Whalen Jack" class="hidden">image</a>
	<a rel="shadowbox[Whalen Jack];options={slideshowDelay:5}" href="resources/images/whalen/4.jpg" title="Whalen Jack" class="hidden">image</a>
	<a rel="shadowbox[Whalen Jack];options={slideshowDelay:5}" href="resources/images/whalen/5.jpg" title="Whalen Jack" class="hidden">image</a>
	<a rel="shadowbox[Whalen Jack];options={slideshowDelay:5}" href="resources/images/whalen/6.jpg" title="Whalen Jack" class="hidden">image</a>
<br /><br />


<!-- footer -->
<a href="">Home</a> | 
<a href="index2.html" rel="shadowbox">Some Page</a> | 
<a href="">Another Page</a> | 
<a href="">Yet Another Page</a> | 
<a href="">Amazed Yet?</a>
</body>
</html>


LessZoa
  webmaven - developer - admin - designer
"I know just enough to be dangerous to my vendors & staff."
twitter | blog | work | fun
LessZoa

Re: IE not work :(

Reply Threaded More More options
Print post
Permalink
Of note:

I keep getting the "ActiveX" warning, and even when I approve it, the .js is not initiated.

My java is up to date.

No other idea what could be causing it not to work for me. :(

My (internal) domain is a "trusted site"
Even when running locally IE7 is not initiating the JS.

going to test it on my machines @ home and will post updates if I get to it.

aloha nui!
LessZoa
  webmaven - developer - admin - designer
"I know just enough to be dangerous to my vendors & staff."
twitter | blog | work | fun
Ketan Vakil

Re: IE not work :(

Reply Threaded More More options
Print post
Permalink
Having the same issue on my site. IE 8 is fine. 6 and 7 not. Firefox, Safari, etc. all fine. Very strange.

http://dev.ketanvakil.com/ketanvakil.com/

-Ketan
Ketan Vakil

Re: IE not work :(

Reply Threaded More More options
Print post
Permalink
I think I may have solved it. IE 6/7 likes single quotes and no comma after the last declaration, like such:

<script type="text/javascript">
        Shadowbox.init({
    language: 'en',
    handleOversize: 'none',
    animSequence: 'sync',
    displayNav: 'true',
    counterType: 'skip',
    players:  ['img', 'html', 'iframe', 'qt', 'wmp', 'swf', 'flv'],
});
</script>
Ketan Vakil

Re: IE not work :(

Reply Threaded More More options
Print post
Permalink
In reply to this post by Ketan Vakil
I think I may have solved it. IE 6/7 likes single quotes and no comma after the last declaration, like such:

<script type="text/javascript">
        Shadowbox.init({
    language: 'en',
    handleOversize: 'none',
    animSequence: 'sync',
    displayNav: 'true',
    counterType: 'skip',
    players:  ['img', 'html', 'iframe', 'qt', 'wmp', 'swf', 'flv'],
});
</script>
Russell

Re: IE not work :(

Reply Threaded More More options
Print post
Permalink
I had the same problem in IE 6 and 7, I removed the whitespace from the options and it worked right-away. Don't know if that will help you guys out. Here is my code:


<script type="text/javascript">
Shadowbox.init({language:"en",players:["html", "iframe", "img"]});
</script>
killFrogg

Re: IE not work :(

Reply Threaded More More options
Print post
Permalink
FLV and SWF do still not work in IE8. I've tried all variations with single comma, whitspaces etc. but haven't got a good result. With IE8's ability to debug js I found out that it always throws the "Unknown player"-exception even though I declared "flv" and "swf" of course. It is the same error as if I don't declare "img" but try to open an image via shadowbox.

As I said I've tried all variations I could imagine that's why it would be useless to show code here. The whole thing is pretty strange in my opinion ...
killFrogg

Re: IE not work :(

Reply Threaded More More options
Print post
Permalink
Okay, I found out it works on another computer with IE8 but not on mine for some reason :(
1 2