Miles,
Thanks always to help continue to educate the community.
The timer example and code are on this page.
http://www.hashemian.com/tools/javasc...
We have used it to count down our annual race on this site
http://www.hannibalcannibal.com
We don't normally do much with this site until months before the race each year, now. The code was working I put in place and tuned for the new date last year. We keep our websites up to date and last year at this time many of us were using the FCK editor. I simply would paste (using the old editor) javascript
code like this into a page and it would run. This year I go to reskin the site and add some new content to support our race and when I pasted the javascript code into the Telerik editor it would strip it.
I noticed it doing this to any code of this sort when I started using the new editor with a google analytic code. The same thing happens, I paste it in there like I have always done and the Telerik editor removes the code. At first I thought if I could cure Telerik from stipping this code, it would work like it used too.
So, I started this thread asking why the Telerik editor is stripping code from a page to find a solution to add the same counter that was working (2 years running) into our reskinned site. From the sounds of things we now have to embed javascript into the CSS file or the header and call on it with the code we produce manually with the HTML editor. This is more advanced than how it used to work obviously from just pasting the javascript in the editor and saving it.
We are not that pressed for a solution here because I am going to have to buy a module for a counter. I has dawned on me (if I am reading situation correctly) that minor javascript implementation with a DNN page is changing to be much more manual than it used to be. So, at this point since you have been so gracious enough to converse on the subject and offer solutions, I would like to see if we couldn't use this timer code as a generic example on the new method of implementing such code?
I can all but gaurantee that even though I skirted this counter need with a module that something else will crop up whereby I will need to implement some small amount of javascript. I am guessing I am not the only one since my needs are probably similar to the rest of the community.
If you want me to start a new thread named something along the lines of, "Proper implementation of javascript within a DNN page", I will do it. Am I wrong, has things changed in DNN so you just can't copy and paste the code? Is there something else I am doing wrong?
Thanks again,
Dave