[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Syntax Error

Posted on 2016-10-31
6
Medium Priority
?
77 Views
Last Modified: 2016-10-31
I'm getting a syntax error on this line....

<script type="text/javascript">baseUrl = '{$url}'; token_id = '{$token_id}'; nowPlaying = viewed_id = 0; player_volume = {$volume};</script>

Open in new window

0
Comment
Question by:DS928
6 Comments
 
LVL 37

Expert Comment

by:Pawan Kumar
ID: 41867095
Try..
<script type="text/javascript">
baseUrl = '{$url}'; token_id = '{$token_id}'; nowPlaying = 0; viewed_id = 0; player_volume = {$volume};
</script>
0
 
LVL 23

Accepted Solution

by:
Snarf0001 earned 2000 total points
ID: 41867102
You don't have the player_volumne one enclosed in quotes.  JS by itself doesn't understand the templating, so won't be able to parse the tag.

Try this one:

<script type="text/javascript">
baseUrl = '{$url}'; token_id = '{$token_id}'; nowPlaying = viewed_id = 0; player_volume = '{$volume}';
</script>

Open in new window

0
 

Author Comment

by:DS928
ID: 41867106
Doesn't work.....
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 37

Expert Comment

by:Pawan Kumar
ID: 41867117
Try.. Separate out nowPlaying & viewed_id ..
<script type="text/javascript">
baseUrl = '{$url}'; token_id = '{$token_id}'; nowPlaying = 0; viewed_id = 0; player_volume = '{$volume}';
</script>
0
 
LVL 60

Expert Comment

by:Julian Hansen
ID: 41867131
Can you post the full error
0
 

Author Closing Comment

by:DS928
ID: 41867138
Works great.  Thank you..
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses how to create an extensible mechanism for linked drop downs.
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…

872 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question