PDA

View Full Version : Ajax XML Ticker not working in IE7



thehappyappy
10-24-2007, 04:47 PM
1) Script Title: Ajax XML Ticker (txt file source)

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex2/ajaxticker.htm

3) Describe problem: The ticker is great and it works perfectly in Safari and Firefox, but it doesn't seem to be working in IE. I have IE7 and it doesn't show anything at all.

ddadmin
10-24-2007, 11:20 PM
In IE, you need to run the script- as with any Ajax script- online in order to work. Running the script offline on your own hard drive won't work.

thehappyappy
10-25-2007, 09:29 AM
Sorry to sound so stupid, but How do I do that? I've uploaded everything and was testing live. Is this not how I do it? I've included a link to the site (http://bubbledev.phonesaved.com) so you can see what I mean

ddadmin
10-26-2007, 10:32 AM
In your CSS, make sure you've defined an explicit width for either the ID or CSS Classname used by this script:

var xmlfile="counter.txt" //path to ticker txt file on your server:

new ajax_ticker(xmlfile, "ajaxticker1", "someclass", 3500, "fade")

So for example, you might have something like the following in the HEAD of your page:


<style type="text/css">

#ajaxticker1{
width: 150px;
}

</style>

The counter shows up already in IE6 btw, just not IE7.

thehappyappy
10-26-2007, 10:39 AM
Thanks, I'll look at changing that. I've put the css in it's own file and linked that to the pages because the ticker will work across the site, but that wouldn't make a difference though, would it?

ddadmin
10-26-2007, 10:41 AM
So one of your external CSS files already have a CSS rule(s) that applies an explicit width to the ticker? If so that should work the same as the code I posted above, yes...

thehappyappy
10-26-2007, 10:53 AM
I've checked the width and it's set to 139px, but it's still not working.
The full css is:
#ajaxticker1{
width: 139px;
height: 32px;
border: 0px ridge black;
vertical-align:middle;
color: #CCFF00;
font-size: 18px;
letter-spacing: 9px;
}

#ajaxticker1 div{ /*IE6 bug fix when text is bold and fade effect (alpha filter) is enabled. Style inner DIV with same color as outer DIV*/
width: 139px;
height: 32px;
border: 0px ridge black;
line-height: 32px;
padding-left: 22px;
color: #CCFF00;
font-size: 18px;
letter-spacing: 9px;
}

.someclass{ //class to apply to your scroller(s) if desired
}

Thanks for helping with this

ddadmin
10-28-2007, 11:42 PM
Hmm that's bizarre. Just to rule out the fading effect being the issue in IE7, try disabling it in the script:


new ajax_ticker(xmlfile, "ajaxticker1", "someclass", 3500, "fade")

To do that, remove the part in red above.

thehappyappy
10-29-2007, 11:21 AM
Nope that didn't work either. It's still not show up in IE7. I cannot understand why it's not working in ie7 although I've just noticed a problem even the recommend friend isn't visible in IE7, but it is in 6. I think that for some reason the css isn't being read in IE7, but is in 6

ddadmin
10-30-2007, 06:21 AM
I just checked your external .CSS files for the #ajaxticker1 ID, which I found here: http://bubbledev.phonesaved.com/extra/css/static/ticker.css There's no width attribute defined within it though?

thehappyappy
10-30-2007, 10:06 AM
I managed to sort it out in the end. Basically the problem was that the css controlling the poisition of everything in the right hand panel wasn't loading so the ticker was there, but in a totally different place to where it should be. Anyway, it seems okay now. Thanks for your help.

ravik20
12-21-2007, 04:37 AM
Hi,

Thanks..

The solution u have provided is not working on IE6..

http://www.dynamicdrive.com/dynamicindex2/ajaxticker.htm

I have checked it online..

Pls do let me know..

if (contentdiv.filters && contentdiv.filters[0]){
if (typeof contentdiv.filters[0].opacity=="number") //IE6+
contentdiv.filters[0].opacity=this.opacitysetting*100

Regards
Ravikaanth

ddadmin
12-22-2007, 10:49 AM
Ravik:
Are you saying you're having trouble getting the DD demo to run even in IE6? The script does work in IE6 (just tested). Be sure you're running the script online in IE.

ravik20
12-22-2007, 10:57 AM
sorry it is working fine in ie67 and mozilla online.. not in ie6

sorry

regards
ravi

ddadmin
12-22-2007, 11:01 AM
So the DD demo (http://www.dynamicdrive.com/dynamicindex2/ajaxticker.htm) doesn't work in IE6 for you? As mentioned, I just tested it, and it does work for me. More info is needed if I'm missing something.

jscheuer1
12-22-2007, 02:45 PM
Hi,

Thanks..

The solution u have provided is not working on IE6..

http://www.dynamicdrive.com/dynamicindex2/ajaxticker.htm

I have checked it online..

Pls do let me know..

if (contentdiv.filters && contentdiv.filters[0]){
if (typeof contentdiv.filters[0].opacity=="number") //IE6+
contentdiv.filters[0].opacity=this.opacitysetting*100

Regards
Ravikaanth

If you have a 'stand alone' version of IE 6 (means you have IE 7 installed as well), unless you have altered your registry, it will error on filters.

Howiestein
12-30-2007, 07:44 PM
Is there a way to get it to open in the same window instead of the new window?

jscheuer1
12-31-2007, 04:58 AM
Is there a way to get it to open in the same window instead of the new window?

Please start a new thread for a new question.