simpli Posted April 2, 2009 Share Posted April 2, 2009 Hi, there are some website out there where the whole javascript isn't showing. Anyone has any idea how not to show the js when the user views the page source? Also there was a web page where I would see the data on the page (it would be text data, I know because I could select it and all) but when I view source, it was nowhere to be found. I know they used ASP but I don't know if it's an ASP function to hide all this information. Can anyone advise? Thanks J-R Quote Link to comment Share on other sites More sharing options...
RichardRotterdam Posted April 2, 2009 Share Posted April 2, 2009 You can't use ASP to hide javascrip. ASP runs serverside and javascript clientside(in your case). You can't really hide javascript you could encode it so it still works but wont be usable for others. As for the text you don't see, thats loaded with javascript dynamicly. I suggest you try firebug where you can see the source dynamicly while the page loads. Quote Link to comment Share on other sites More sharing options...
simpli Posted April 3, 2009 Author Share Posted April 3, 2009 Thanks for your reply and the info. But since it is showing in the page, shouldn't I be seeing it even if it was loaded dynamically through js? Quote Link to comment Share on other sites More sharing options...
xtopolis Posted April 3, 2009 Share Posted April 3, 2009 Anyone has any idea how not to show the js when the user views the page source? Not really, you can obfuscate it, or include it externally.. but not really hide it. Also there was a web page where I would see the data on the page (it would be text data, I know because I could select it and all) but when I view source, it was nowhere to be found. Try doing a "save as" on the page, then view the source of the saved version. Quote Link to comment Share on other sites More sharing options...
RichardRotterdam Posted April 3, 2009 Share Posted April 3, 2009 shouldn't I be seeing it even if it was loaded dynamically through js? Yes you could write a javascript function that displays all the source which is dynamicly loaded. But i'ts easier to just use firebug to do that for you Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.