We help IT Professionals succeed at work.
Get Started

Assistance with adding JQuery getJSON needed

error77
error77 asked
on
282 Views
Last Modified: 2012-05-11
Hi all,

I wonder if anyone could help me here.

I have this code:

if ( ( today === highlightDay || today === presetDay || today === 21 || today === 30 ) ) { thisTheme = o.pickPageHighButtonTheme; }
                                          
Now, where you see the "today" link today === 21 || today === 30 etc....

these are hardcoded.

What I need to do is to be able to read the 21 , 30 etc from a JSON file instead.

I've been looking here: http://api.jquery.com/jQuery.getJSON/  but I don't know how to get this together.

Can anyone help please?

Thanks
Comment
Watch Question
Multitechnician
CERTIFIED EXPERT
Distinguished Expert 2020
Commented:
This problem has been solved!
Unlock 1 Answer and 7 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE