Search found 3 matches

Go to advanced search

by Brian Wente
Thu Mar 28, 2013 3:48 am
Forum: Issues
Topic: How to change header text programmatically (or link to a REST output)?
Replies: 13
Views: 4222
 
Jump to post

How to change header text programmatically (or link to a REST output)?

Perfect!

($('h1').first().text(localStorage.getItem('categoryName')));

Thanks!

by Brian Wente
Thu Mar 28, 2013 3:36 am
Forum: Issues
Topic: How to change header text programmatically (or link to a REST output)?
Replies: 13
Views: 4222
 
Jump to post

How to change header text programmatically (or link to a REST output)?

how does the categoryName or the local storage value get read by the javascript variable?

by Brian Wente
Thu Mar 28, 2013 3:00 am
Forum: Issues
Topic: How to change header text programmatically (or link to a REST output)?
Replies: 13
Views: 4222
 
Jump to post

How to change header text programmatically (or link to a REST output)?

So I can use this?

($('h1').first().text(categoryName));

On the previous page, I need to set the value of categoryName and store it as a local storage variable.

Then "on load" run the javascript?

Go to advanced search