NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Missing info about javascript methods in Code View


Joined: 26 Sep 2009
Posts: 7
Reply with quote
Hello,

The Code Explorer/Navigator filter most of the names of the methods in my javascript objects. For example, having written this code:

Code:
var SiteOpt = {browserstring: '<?php echo $bvars["browserstring"]; ?>', firefox: <?php if ($bvars["firefox"] || $bvars["firefoxmac"]){echo "true";} else {echo "false";} ?>, chrome: <?php if ($bvars["chrome"] || $bvars["chromemac"]){echo "true";} else {echo "false";} ?>,

   <?php if (!c::get("isMobiel") && ($bvars["MSIE6"] || $bvars["MSIE7"])) { ?>
   errordialog: function(msg, url, linenumber) {
[...]


I would expect the function name "errordialog" to show up in the javascript code views, but I only get to see the object "SiteOpt", but none at all of the many methods that are contained by it. And these methods also don't show up anywere in the Code Completion. The only thing I get to see are a lot of anonymous functions; this info isn't a big help to me.

I think these are very serious failures. The promises about PhpEd 6... sound great, but in view of what I've written I don't think they have been realised yet.

Hoping you can mend this,

Sincerely,

Alex Pot
the Netherlands
View user's profileFind all posts by dkdwalzoSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 7857
Reply with quote
What are you trying to achive with php here?
Just do everything in js and a) your product will run much faster (because of caching js on the client side) and b) you won't get errors caused of the mixture of the languages.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Missing info about javascript methods in Code View
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