Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme »

Javascript Countdown


  #1  
Old Sep 12, 2011, 01:06 PM
bvimusic
 
25 posts · Jul 2010
Hello,

I am trying to add a javascript countdown to my page.
This should be simple enough but I've been struggling with it for way too many hours to even admit.

So, if I make a test .php page on my server with the script in the <head> tag and run it, it runs fine. When I then create a .js file and place that code in the ATO Theme Options > HTML Inserts: Header, it is returning an error. As a result, I feel like something is breaking between atahualpa and my page.. I don't really know what's happening.

Here is the page I'm working on:
http://www.hoodielife.com/time1.php

This code has a debug mode so I can see that it's a problem with acquiring the date / time from the server.. but this isn't the case when the code is part of the original .php page, only when I move it to a separate .js file.

Can someone please help?
  #2  
Old Sep 12, 2011, 02:37 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Plaese do not open multiple copies of the same issue (http://forum.bytesforall.com/showthread.php?t=15355)

This thread is being closed
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Last edited by lmilesw; Sep 12, 2011 at 02:40 PM.

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Javascript Problem bvimusic Atahualpa 3 Wordpress theme 5 Sep 12, 2011 04:25 PM
javascript in a page cway Center area post/pages 1 Apr 30, 2011 03:03 PM
[SOLVED] Javascript Error in IE8 Ber|Art Header configuration & styling 1 Oct 31, 2010 01:28 AM


All times are GMT -6. The time now is 03:57 PM.


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.