Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have created a simple admin menu that allows users to enter in some basic information that is stored in the footer.

When they click save the url appends &settings-updated=true

Is there a way, using jQuery to show a success/fail message?

Can anyone show me how or give me an example?

Thanks in advance, George

share|improve this question

1 Answer 1

up vote 1 down vote accepted

See the top answer on this Stackoverflow question. Basically you need to use:

decodeURI((RegExp(name + '=' + '(.+?)(&|$)').exec(location.search)||[,null])[1]);

Get URL parameter with jQuery

share|improve this answer
    
Hi thanks, I'm not that technically able, could you help decode or explain how the actual code would need to work? –  George Wiscombe Aug 3 '11 at 16:37

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.