Java Script load secrets

  • 1
  • Question
  • Updated 9 years ago
  • Answered
Loading javascript. Is there something different that I haven't learn yet?

Now I can load HTML , save and update site and see results in a short time on the site. I can make changes in HTML and update and see those changes in a short time.

I can do the same with images, update and see results on site in a short time.

I can enter java script threw HTML like<!--<script type="text/javascript" language="javascript" src="http://www.somewhere.com/what.js"> </script>--> and see results in a short time

Now the Problem

I trying to set up javascript for menus for my site. and have got them to work. I thought it would be a real time saver to learn this and save time. I can load the original files threw into the file manger and they work. Now I update those file and upload them using the same name as original file. I answer the question in the file manger ask ok to replace and check threw the download in file manger and verified that the new file is in place. (yes same name)

Now I save my work and update site and problem starts. Instead of a short time to see change I have waited and still waiting for Yola Magic and update my site. After all the changes are small and should take any longer that a HTML or Image to appear RIGHT! No such luck the changes take any where from 15 minutes to over 4 hours and still waiting.

No matter how many time I try and update and verified that things that I did the file correction, uploading and updating, I still waiting.

This last time four hours plus.The new file is in the file manger with the name of old (deleted, replaced) file. The download says it's there. Updated successful???

NO according to the site threw a page source and checking back to the .js address it's still the old file, even though the new file has been verified in the file manger.

Using file fox

Checking site in firefox and ie8. both agree it's the old file.

I'm the first to say that I make mistakes but I've been over and over every section of code, comma, period, dots and dashes and still can not replace one javascript file with new javascript file with same name.

any help and suggestion would be helpful. Got business to take care of so may not be back for 12 hours.

Thanks to all

papa

Ps. just check site Updating has been successful but why 6 hours for it to happen?

http://www.shoppealots.com/test-menu-...

papa
Photo of papa

papa

  • 327 Posts
  • 20 Reply Likes
  • really slow at learning

Posted 9 years ago

  • 1
Photo of Marije

Marije, Official Rep

  • 4636 Posts
  • 237 Reply Likes
Hi Papa,

Nothing should take 6 hours to update on Yola! So, that means that something is wrong. Can you give the name of the file that you uploaded and want to use on the page?

Can you also make sure that you included the folder name in the path to the file - that is, if your file is in a folder.
Photo of papa

papa

  • 327 Posts
  • 20 Reply Likes
Thanks Mareje
Your right nothing takes that wrong with Yola and I do believe it's on my end and I can't place my finger on it.
This is the code that I'm putting on my site.
<!--<script type='text/javascript'> //HV Menu v5.411- by Ger Versluis (http://www.burmees.nl/) //Submitted to Dynamic Drive (http://www.dynamicdrive.com) //Visit http://www.dynamicdrive.com for this script and more function Go(){return} </script> <script type='text/javascript' src='resources/drop_down/change here.js'></script> <script type='text/javascript' src='resources/drop_down/leave alone.js'></script> <noscript>Your browser does not support script</noscript>-->
You can also view it on a page source on this page
http://www.shoppealots.com/test-menu.php

When you click on the resources/drop_down/change here.js or resources/drop_down/leave alone.js in source code you can go right back to the file.

The problem occurs when you update the file in the file manger. When you update the change here file and upload it go right into the file manger.

Then the waiting starts. The new file shows in the file manger but the source code from site does not change and the old file remains. I have tried over writing it, and also deleting the old file totally and then adding the new file.

The only change that i made to the file ways the background color. the mouse over font color, added one more font character (Palatino Linotype) and the menu pages. Before I go to far I just change a little at a time till I can learn more of js. Think I understand enough to change those items. Have not change any coding. Just the above items

Thanks for your quick reply. I'm sure it's something simple.
Photo of papa

papa

  • 327 Posts
  • 20 Reply Likes
also I do save and update my site. I lost to much work not to do that anymore.
papa
Photo of papa

papa

  • 327 Posts
  • 20 Reply Likes
marije
folder is drop_down
the file is change_here.js

papa
Photo of UK Duke

UK Duke, Champion

  • 3321 Posts
  • 213 Reply Likes
sounds like a browser cache issue.
I know firefox caches css and java very strongly.

I update css and java files and the change shows straight after a browser history clean.

Lee.
Photo of papa

papa

  • 327 Posts
  • 20 Reply Likes
Thanks Lee
It's got to be something in the way I'm changing something somewhere. I tried clearing the history and cookies on both computers that I use.

I'm sure it's something really simple or something that I have neglected to do.
once again Thanks Lee
Photo of lambofgod

lambofgod

  • 875 Posts
  • 35 Reply Likes
So what your saying Lee is that the .js files are updating but due to Firefox caching the files it appears that they are the same?
Photo of UK Duke

UK Duke, Champion

  • 3321 Posts
  • 213 Reply Likes
correct
Photo of papa

papa

  • 327 Posts
  • 20 Reply Likes
Lee
at 8:45 central time I tried uploading a new "resources/drop_down/change here.js" with a change of mouse over from red fonts to white font.
1st when deleted old file
2nd uploaded the new file
3rd updated site
4th check site no changes
5th cleared history
6th update site again
7th check site in both ie8 & firefox latest one still no changes
check file in file manger is new one with white font
updated site again
check ie8 and firefox
did a page source and check .js address back to site
still shows old one.
9:05 central time check site still no update on ie8 or firefox

The only change was mouse over red font change to white still red font
confused
papa
Photo of Sanja

Sanja, Official Rep

  • 10698 Posts
  • 495 Reply Likes
Hello papa

I took the liberty of going into your site builder and working on this issue. I think I may have fixed it. Can you please take a look and let me know if you still see an issue with your menu? Thanks. (I have not updated your site - so it will not be working on your live site).
Photo of papa

papa

  • 327 Posts
  • 20 Reply Likes
Sanja
I'm thinking your work did help

Thank You
Photo of Marije

Marije, Official Rep

  • 4636 Posts
  • 237 Reply Likes
Hey Papa - sorry I didn't reply to you earlier, I had been offline. I'm really hoping that Sanja's fixed the issue :)
Photo of papa

papa

  • 327 Posts
  • 20 Reply Likes
Thanks everybody

I took Lee advice of clearing the history and then tried uploading.

That worked some what took from 8:45 till 10:05 to change.

Then I tried clearing the history closing out of internet

re-starting the computer go back to internet clear history again go to yola and load update file and update site and then has been going right threw.

any other way it just get lost in space or some where

Of course maybe Sanja magic work and the uploading is because of her great work.

I went threw and update the .js menu and close everything and restarted. upload file when to site and changes were right there.

Thanks Lee I believe your ideal work magic also. And thank you Sanja for working your magic.

It's so nice to have a forum with such great people that are willing to help or even make a suggestion. Very refreshing to see the sharing done here

Thanks All
papa
Photo of Sanja

Sanja, Official Rep

  • 10698 Posts
  • 495 Reply Likes
I'm just glad to hear that you are now able to get your codes working! What a sense of relief that must be. :)