[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Syntax Error

Posted on 2016-10-31
6
Medium Priority
?
73 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 32

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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 32

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 59

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

What’s Wrong with Your Cloud Strategy ?

Even as many CIOs are embracing a cloud-first strategy, the reality is that moving to the cloud is a lengthy process and the end-state is likely to be a blend of multiple clouds—public and private. Learn why multicloud solutions matter in this webinar by Nimble Storage.

Question has a verified solution.

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

This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

656 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