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

What am I doing wrong?

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...