how to make $ equal any other symbol ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • fuchsia555
    New Member
    • Dec 2009
    • 56

    how to make $ equal any other symbol ?

    how to make $ = any other symbol in javascript language
    to make this javascript code to read this symbol as $

    for example
    how to make javascript read ( # ) as ( $ )
    because i want to put #TEXT# in php code but i want certain javascript program read this as $TEXT$ ,,,, why ? because if i put $TEXT$ in php it read it as a variable and doesn't generated in html source so javascript program will not work
  • DMsy2
    New Member
    • Dec 2009
    • 15

    #2
    $TEXT will only be a variable inside PHP code, which will never be visible to the Javascript in the browser.

    Do you mean you want to do
    echo " $TEXT$ ";
    ?
    Would
    echo ' $TEXT$ ';
    do what you want?

    What are you really trying to achieve, without talking of # and $ ?

    Comment

    • Dormilich
      Recognized Expert Expert
      • Aug 2008
      • 8694

      #3
      because if i put $TEXT$ in php it read it as a variable and doesn't generated in html source so javascript program will not work
      this problem has been solved by Atli in your other thread.

      Comment

      • fuchsia555
        New Member
        • Dec 2009
        • 56

        #4
        Thanks DMsy2

        Thanks DMsy2 , your answer was useful too

        Comment

        Working...