Jump to content

[SOLVED] javascript code not showing with view page source


simpli

Recommended Posts

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

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.

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.

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.