Jump to content

document.write issues

Recommended Posts

I'm having issues with the below script's, any suggestions?

<script>if("[@field:Calendar_Day_Type]" != "Gig" & "[@authfield:Band_Member_Level]" == "10"){document.write("<a onclick=\"window.open('https://c0ebl287.caspio.com/dp.asp?AppKey=68bd3000d24ddf1e8c9e4dd4a994&amp;Random_Show_ID=[@field:Random_Show_ID]','_blank','width=800,height=700,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false\"><span style='color:#000000;cursor:pointer;' title='[@field:Artist] - [@field:Play_Date*] - DETAILS PAGE'>[@field:Artist]</span></a>");}</script>

How about this one:


var cb_boolean = '[@field:Show_Outside]';
if (cb_boolean == 'Yes') 
document.write("<img src='https://storage.googleapis.com/zali_circle_icons/sun_50x50.png' style='width: 15px; height: 15px; vertical-align: top;' title='This show is outside' />");


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.

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.

  • Create New...