@Paul: I changed the switch to if{} statements, but got the same
result so changed it back. The bug is somewhere else ...

The code that does the exact same as my switch. (It works in FF just
like the switch but in IE still the same bugs come up)
code: -------------------------------------------
        $j("#infotainmentbox div.video").empty();
        if(!(MOVIE_PLAYER === null)) { //Start movie
                        $j("#infotainmentbox").empty().append(MOVIE_PLAYER);
                        $j("#infotainmentbox").before('<div 
id="infotainmentboxMenubtn2"><a
href="#" onClick="history.go(-1);" onfocus="this.blur()"><img src="/
templates/melle4/images/goback.png" title="Go Back" height="29px"
width="189px" border="0" /></a></div>');
        }
        if(!(PHOTO_PLAYER === null)) { // Start gallerie
                        $j("#infotainmentbox").empty().append(PHOTO_PLAYER);
                        $j("#infotainmentbox").before(PHOTO_BACK);
                        $j("#backtogallery2").hide();
        }
code: -------------------------------------------
The reason I code switches like that is that it puts all the logic in
one nice block, and sowhere I read that they run faster than if{}
elseif{} else{} and a lot faster than a couple of if{} statements.

Anyway thanks for the suggestion

Oliver Prater

On Feb 21, 5:23 pm, Paul Mills <paul.f.mi...@gmail.com> wrote:
> Hi Oliver,
> Your switch statement looks a bit strange to me - I've never coded one
> that way before.
> Try redoing it as a couple of if {} else {} statements.
>
> IE is must fussier about syntax than FF so I always check for syntax
> errors when IE starts misbehaving.
>
> Hope that helps.
> Paul
>
> On Feb 21, 1:04 pm, "oliver.pra...@googlemail.com"
>
> <oliver.pra...@googlemail.com> wrote:
> > Thanks Carol,
>
> > that at least gives me a good feeling, I'm not the only one :-)
>
> > If I find any solution with my as good as none experience in jQuery,
> > or just through pure luck I will off course not hesitate to post it.
>
> > Oliver Prater
>
> > On Feb 21, 12:16 am, carol <carolgjenk...@hotmail.com> wrote:
>
> > > Oliver,
>
> > > I am having the very same problem...the content in my greybox does not
> > > show in IE7.  It's driving me nuts!  Have you found a solution?
>
> > > Thanks!
> > > Carol
>
> > > On Feb 20, 3:03 pm, "oliver.pra...@googlemail.com"
>
> > > <oliver.pra...@googlemail.com> wrote:
> > > > Hi guys after I finally got my code working in FF, IE7 is killing me!
>
> > > > I never programed in javascript bevor so take it easy on me please.
>
> > > > Using the DEBUGGER has helped me a lot, but now there are no more
> > > > debug messages and I don't know what the hell I can do to get it work!
>
> > > > I am guessing that my code is broken since the plugins are working
> > > > great!
>
> > > > The code I wrote in jQuery:http://code-bin.homedns.org/242
>
> > > > Now to the problem:
> > > > Please note that the behavior I want is already working fine in FF so
> > > > just open it with FF to see what I created it to do.
>
> > > > The main problem is the pulled up content ... and the format of the
> > > > data after you push the community button.
>
> > > > Without 
> > > > hiding:http://www.vonderdecken.net/index.php?option=com_content&view=categor...
> > > > (it works perfectly in both IE7 and FF)
>
> > > > Now starts the strange part in IE7: (This all works in FF like I
> > > > expected it too)
> > > > 1.) The pull up works with silverlight player, but if you push
> > > > community you get a mess.
> > > > Link:http://www.vonderdecken.net/
>
> > > > 2.) The pull up doesnt work and its hard to get a hands on of the
> > > > YouTube player, which only loads in the maincontent (shows after you
> > > > press community), well since the pulling up didn't work strangly the
> > > > main content is perfect. (pretty much vice versa the other player)
> > > > Link:http://www.vonderdecken.net/index.php?option=com_content&view=article...
>
> > > > 3.) The gallery pulls up the back, but not the slide show. The show
> > > > seems intact if you hit community but vanishes 1 sec later ...
> > > > Link:http://www.vonderdecken.net/index.php?option=com_morfeoshow&task=view...
>
> > > > I'm open to really any hints you give to solve this!
> > > > I don't know what roll the jQuery functions and css plays...
>
> > > > Oliver Prater

Reply via email to