Important: when posting, please provide your Club Number at a minimum, and as many details as possible.
For further info, please read This page before posting.

Our Club Website was frozen after putting javascript to HTML coding place

  • tyano
  • tyano's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 4
  • Thanks: 1

Our Club Website was frozen after putting javascript to HTML coding place

11 years 7 months ago
#40137
Dear ambassador,

This is Taiichiro.
I belong to Imabari TMC of Japan(#1834055).

Now I have a trouble for our web site ( imabari.toastmastersclubs.org/ ), so I would like you to help me.

Recently our club built up our web site, and I created the web site. I wanted to improve the site more, so I tried to use javascript to HTML coding place of home page part. After refreshing, the site was frozen. I cannot enter our site, of course Login admin again as well.

I put javascript code "<script src="............"></script>" to use jQuery. Probably the lines made problems to freeze the site.

I want to remove the a few line that I've put already to HTML coding page of the home page, but because of the reason I cannot enter the site or login again. I cannot reach the site and remove them. Also I don't have any authority to access the FTP server to fix the file, so I have totally no idea to fix the problems...

So I would like you to fix it or access the file that I write the code and remove the code.
Please... Please...

best,

Taiichiro
The topic has been locked.
  • SteveTheTechie
  • SteveTheTechie's Avatar
  • Offline
  • Emeritus
  • Emeritus
  • Posts: 11492
  • Thanks: 3057

Re: Our Club Website was frozen after putting javascript to HTML coding place

11 years 7 months ago - 11 years 7 months ago
#40139
I am the system developer. I looked at what you did. I am not happy about this. :angry:
Code:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script> <script> $(function(){ $('.fadein img:gt(0)').hide(); setInterval(function(){$('.fadein :first-child').fadeOut().next('img').fadeIn().end().appendTo('.fadein');}, 3000); }); </script>
We already use jquery, so all you are accomplishing is just to kill our inclusion of it earlier in the file. :pinch: There is a reason that we say we do not support scripts. Also, you redefined some of our style rules. :angry: If you had bothered to discuss this with us *before* you did this, I would have given you some pointers to keep you from creating problems.

With that said, do the following:
1. Access your website via a page other than the home page. e.g., the directions page.
2. Login to admin console, the script will hang. That is fine, you just need the code to load the source so you can salvage it.
3. Use browser's source view. Salvage (copy/paste) as much of your code as you can. It starts approximately around line 2260 (roughly).
4. When you get that done, come back here and we will delete your home page via our code. Your stuff is in your home page HTML, so that should resolve the issue. Then you can use what you salvaged to put something together that will actually work. Do not ditch our jquery that we are already including. (we are using a recent version)
Last edit: 11 years 7 months ago by SteveTheTechie.
The topic has been locked.
  • tyano
  • tyano's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 4
  • Thanks: 1

Re: Our Club Website was frozen after putting javascript to HTML coding place

11 years 7 months ago
#40144
I greatly appreciate your help!!

And sorry for my fault using script... I couldn't stop my curiosity to use script. :) I'll never use script in the site, so don't get angry please :)

I could login to admin console with following your advice. (I never come up with the idea that I can get into our site through another route to login. Nice idea.) I salvaged my code that suppose to be line 2267 to 2550 without script part.

Now I'm ready!
The topic has been locked.
  • SteveTheTechie
  • SteveTheTechie's Avatar
  • Offline
  • Emeritus
  • Emeritus
  • Posts: 11492
  • Thanks: 3057

Re: Our Club Website was frozen after putting javascript to HTML coding place

11 years 7 months ago
#40146
Look, even though we do not support scripts, people do use them with FTH. However, there are certain rules that need to be followed to prevent problems.
The topic has been locked.
  • tyano
  • tyano's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 4
  • Thanks: 1

Re: Our Club Website was frozen after putting javascript to HTML coding place

11 years 7 months ago
#40150
Hi,

I cannot still look at our home page. Did I misunderstand what you said? What do I suppose to do next for me??

I thought next you'll delete our home page, then the issue will be resolve. so we can use the home page... Is this correct??
The topic has been locked.
  • SteveTheTechie
  • SteveTheTechie's Avatar
  • Offline
  • Emeritus
  • Emeritus
  • Posts: 11492
  • Thanks: 3057

Re: Our Club Website was frozen after putting javascript to HTML coding place

11 years 7 months ago
#40151
We did not delete it yet.
The topic has been locked.
Moderators: BrianHeniPamrhtaylor3marc33NotLiableNSBjgavinLcala305peterb323DebbieT
Time to create page: 0.388 seconds