function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
baseball123baseball123 

Execute Javascript Error

I'm experiencing an error "A problem with the OnClick JavaScript for this button or link was encountered:

missing ; before statement"

 

The following is the Custom Link Execute Javascript behavior. It would be greatly appreciated if anyone can point out what went wrong:

 

{!REQUIRESCRIPT("/soap/ajax/19.0/connection.js")}


<a href="" onClick="script: Zenbox.show(); return false;">Open</a>
 
   <script type="text/javascript" src="http://asset0.zendesk.com/external/zenbox/zenbox-2.0.js"></script>
   <style type="text/css" media="screen, projection">
     @import url(http://asset0.zendesk.com/external/zenbox/zenbox-2.0.css);
   </style>
   <script type="text/javascript">
     if (typeof(Zenbox) !== "undefined") {
       Zenbox.init({
         dropboxID:   "6546848944",
         url:         "anaccount.zendesk.com",
         tabID:       "support",
         tabColor:    "black",
         tabPosition: "Left",
         requester_name: "Jake Holman",
         requester_email: "jake@sendesk.com",
         request_subject: "I am a custom subject",
         request_description: "I am a custom description",
         closeText: "Close Me!",
         loadingText: "Sit tight..."
       });
     }
  </script>

 

 

Best Answer chosen by Admin (Salesforce Developers) 
baseball123baseball123

Putting the code to a Visualforce Page is the way to do it.