Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6319439
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T15:48:26+00:00 2026-05-24T15:48:26+00:00

I’m currently making a jQuery Plugin for a Redirect Timer and it is really

  • 0

I’m currently making a jQuery Plugin for a Redirect Timer and it is really bugging out.

The part that isn’t working is that this is also suppose to style the whole thing so you can customize the timer. The time works fine but not the other stuff for some reason.

I wan’t to use defaults for the style, the number of seconds, and the redirect URL like this:

$('#redirect').redirect({
            'Seconds': '15',
            'Redirect_URL': 'http://google.com',
            'Button_Value': 'Hi',
            'Button_Position': 'right',
            'Number_Color': 'red',
            'Number_Size': '35',
            'Redirect_Box_Padding': '23',
            'Redirect_Box_Radius': '10',
            'Button_Border_Width': '1',
            'Button_Border_Line_Type': 'solid',
            'Button_Padding': '12',
            'Button_Radius': '13',            
            'Loading_IMG' : 'http://moviereviews.com/images/loading_button3.gif'
       },500);
    });

I will give you a link to the JS Fiddle Code editor which personally I think it is easier for you guys to get to know the code and find a problem. If you got a answer that will fix this problem thanks! and I will totally Select it as a Best Answer:

http://jsfiddle.net/gWNSj/

Note: Please don’t rearrange the whole entire code, because then I wont be able to read it.

Thanks,
Shawn

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T15:48:26+00:00Added an answer on May 24, 2026 at 3:48 pm

    You have a few issues with your code most of which are unfortunately below the //Do not edit beyond this point line. The one that is most directly causing your problem is the fact that your global variables don’t get initialized until you click on the button, but they get used to build the HTML/stylesheet when the DOM is ready. If you use Chrome debugger or Firebug, you can see that the stylesheet has a number of undefined values. The button you also clicked is called “undefined” because the variable has not been set yet.

    You probably want to just add the html when $(foo).redirect() gets called, in the plugin itself and use the specified options to style it. You should also put the actual redirect function inside the plugin, instead of adding a separate click handler to perform the countdown.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I'm working with an upstream system that sometimes sends me text destined for HTML/XML
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
For some reason, after submitting a string like this Jack’s Spindle from a text
I have a jquery bug and I've been looking for hours now, I can't
this is what i have right now Drawing an RSS feed into the php,
I've got a string that has curly quotes in it. I'd like to replace
I am currently running into a problem where an element is coming back from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.