javascript code not show (read) in view source

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • waqasahmed996
    New Member
    • Jun 2008
    • 160

    javascript code not show (read) in view source

    hi to all

    its my first message in new format:)

    actually i have a translator which translate english into arabic.

    but i have to face a problem that when translator translates words then it also print java script code.

    please tell me what can i do to remove this problem

    is that possible that hide javascript code when user view "view source" from browser.(if this thing related to my problem:))
  • gits
    Recognized Expert Moderator Expert
    • May 2007
    • 5390

    #2
    could you explain the problem a bit more or show an example or some code so that we might better understand what your problem is?

    kind regards

    Comment

    • waqasahmed996
      New Member
      • Jun 2008
      • 160

      #3
      thanks gits. my problem is solved

      i am working with smarty.

      i added code like this in smarty

      {php} ob_start("add_t ags");{/php}

      javascript code here

      {php} ob_end_flush(); {/php}

      Comment

      • gits
        Recognized Expert Moderator Expert
        • May 2007
        • 5390

        #4
        glad to hear that ... :) for future posts i would suggest to give more information ... for example you didn't mention that the problem might have something to do with smarty etc. ... but as i said: glad to hear you got it working and thanks for posting a hint regarding the solution :)

        kind regards

        Comment

        Working...