Preview JavaScript function - Post ID...

User 187934 Photo


Senior Advisor
20,181 posts

Check your jquery library script links and make sure their linking to the proper location and or file.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 126415 Photo


Registered User
36 posts

I'm getting a bit confused. Here is the code I'm working with. It works just fine uploaded. I just can't get it to preview or work in the split screen. The html shows up, but the script doesn't run.
(thank you for all your help)
<SCRIPT>
function animate() {
function fadeTo(lis, duration, opacity, callback) {
if (!lis.length) {
callback();
}
var $lis = $(lis.shift());
$lis.delay(1000).fadeTo(duration, opacity, function () {
fadeTo(lis, duration, opacity, callback);
})
}
fadeTo($('#fds li').get(), 500, 1, function () {
setTimeout(function () {
fadeTo($('#fds li').get(), 500, 0, function () {
setTimeout(animate, 5000);
})
}, 5000);
})
}
animate();
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="js/jquery-1.9.1.min.js"><\/script>')</script>
User 187934 Photo


Senior Advisor
20,181 posts

Try this.
Go to "Tools"
Then "Preferences.."
Then "Browser Testing"
Make sure you have a modern browser selected like IE10. I bet you have IE8 selected.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 126415 Photo


Registered User
36 posts

I am using the latest versions of FireFox and Chrome
User 187934 Photo


Senior Advisor
20,181 posts

Change this
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="js/jquery-1.9.1.min.js"><\/script>')</script>

To this.
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 126415 Photo


Registered User
36 posts

Sorry. I tested in FF and Chrome but the script didn't run.
User 187934 Photo


Senior Advisor
20,181 posts

Can I have a link to your page?
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 126415 Photo


Registered User
36 posts

I appreciate what you're doing for me, but the link leads to a practice site that I can't make public.

So if we need to stop here, I understand and thank you
User 187934 Photo


Senior Advisor
20,181 posts

If it works online it should work on your local machine. Not sure what would cause that other then maybe you have a file named with uppercase on your pc and it's actually not as pc's don't see the difference but servers do. Example .JPG is not the same as .jpg on a server but a pc will use both. You could also message me with the link.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 126415 Photo


Registered User
36 posts

Thanks. How do I message you?

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.