BethShaffer Posted November 15, 2016 Report Share Posted November 15, 2016 Hi, I'm hoping to get some help with my Javascript code, though I don't know that it is broken. This works perfectly on page one of the Search Results, but on results with more than one page, when I go to the next page, none of the formatting or text generated by the script shows at all. <script type="text/javascript"> var cb_boolean = '[@field:GroupIntergroup]'; if (cb_boolean == 'Group') {document.write('<span style="color: green;">[@field:Meeting_Days]</span> [@field:City]');} else {document.write('<span style="color: #ff8c00;">Multiple Groups</span>');} </script> What am I doing wrong? Quote Link to comment Share on other sites More sharing options...
MayMusic Posted November 16, 2016 Report Share Posted November 16, 2016 If you have ajax enabled on your page disable it and see if that helps Quote Link to comment Share on other sites More sharing options...
BethShaffer Posted November 16, 2016 Author Report Share Posted November 16, 2016 THANK YOU!!! That was the issue! Works great on all pages now. I would have played with this for hours. Quote Link to comment Share on other sites More sharing options...
MayMusic Posted November 16, 2016 Report Share Posted November 16, 2016 You are welcome Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.