NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
IDE shows javascript error when values filled with php


Joined: 18 May 2007
Posts: 11
Reply with quote
Is there anyway to prevent the IDE from showing an error when there are php tags inside a javascript block. For example

Code:
<script>
  var test = <?= $text; ?>;
</script>


or
Code:

<script>
  var center = [lat: <?= $lat;?>, lng: <?= $lng;?>];
</script>



This shows as a javascript error around the php tags, probably because the ide isn't show a value there, but when the php script is ran, it should be valid.
View user's profileFind all posts by hergy80Send private message
IDE shows javascript error when values filled with php
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic