Jump to content

My Search Result Javascript code is not working on Next Page

Recommended Posts

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]');}
{document.write('<span style="color: #ff8c00;">Multiple Groups</span>');}

What am I doing wrong?

Link to post
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...