By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,570 Members | 970 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,570 IT Pros & Developers. It's quick & easy.

javascript code not show (read) in view source

100+
P: 160
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:))
Jul 30 '09 #1
Share this Question
Share on Google+
3 Replies


gits
Expert Mod 5K+
P: 5,298
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
Jul 31 '09 #2

100+
P: 160
thanks gits. my problem is solved

i am working with smarty.

i added code like this in smarty

{php} ob_start("add_tags");{/php}

javascript code here

{php} ob_end_flush();{/php}
Jul 31 '09 #3

gits
Expert Mod 5K+
P: 5,298
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
Jul 31 '09 #4

Post your reply

Sign in to post your reply or Sign up for a free account.