Questions tagged [view-source]

view-source is an URL scheme that will display the source code of an url.

In FireFox, Sea Monkey, Google Chrome and up to Internet Explorer 6, prepending an url with view-source: will show the source code of the url. Due to security issues in Internet Explorer, the support for this URL Scheme was dropped with the release of Windows XP SP2.

93 questions
3
votes
3 answers

on desktop, how to view the source code of the mobile version of a website

I have created a website that displays different source code depending on whether the user is using a desktop or mobile device. In Chrome on desktop, I can easily view the source code of the desktop version of any website simply by right-clicking…
3
votes
2 answers

Change meta Tag with Jquery - Cant see it in view sourcecode

I change the content of a metatag like this: $('meta[name=myMeta]').attr('content', 'newContent'); this works and console.log($('meta[name=myMeta]').attr('content')); resonses me the 'newContent' but if i now click "View Sourcode" i cant see the…
2
votes
0 answers

how to get a full html source?

my name is loran and i'm using asp.net - c# in my project. i'm trying getting the exactly html source from a facebook page: (http://www.facebook.com/search.php?q=loranzur%40yahoo.com). i'm trying to get the id number into a string variable (in the…
Loran Zur
  • 29
  • 3
2
votes
0 answers

How to open the ViewSource of an URL directly in Java?

I programmed a simple button that allows the user to open a desired website. Desktop.getDesktop().browse(new URL(_urlString).toURI()); I want another button that allows the user to open the websites sourcecode directly. I tried the…
2
votes
1 answer

How to hide an element from the source when it is hidden?

When using display: none you can still see the contents of the element in the source code. Is there a way to prevent this using JavaScript, PHP or some other approach?
Gitman
  • 41
  • 7
2
votes
1 answer

How to Hide The Source

Okay, I am not sure if this question belongs here. Either way, I am interested to know how to show one source on Developer ➛ Page Source (Firefox) and totally another when CTRL+A on the page ➛ Inspect Element. I have seen it is done on some of the…
user6494366
2
votes
1 answer

Is there any way to hide the variables that are being passed to Flash by swfobject when someone views source?

I have some Flash swfs that are embedded using swfobject and I pass them some vars like user id. How do I prevent people from reading these vars? If someone views the source of the php page that embeds the swfs they can see all the variables that…
undefined
  • 5,190
  • 11
  • 56
  • 90
2
votes
4 answers

Can new elements inserted with javascript be seen with view-source?

My code is as follows: window.onload = initialise; function initialise() { var objPForSubmitMsg = document.createElement('p'); objPForSubmitMsg.setAttribute('class', 'submitmsg'); var arObjForms =…
Vlad
  • 820
  • 10
  • 29
2
votes
4 answers

Mobile emulator to view source code?

I want to view source code on a WebApp, but when I enter the URL using my desktop, the browser it forwards to the desktop version. I then tried the Opera mobile emulator, but it functioned in every single way of a mobile device, including not…
SnowboardBruin
  • 3,645
  • 8
  • 36
  • 59
1
vote
2 answers

Add-on to view javascript-generated source code?

I know it's possible to save as... and look at the html file and see all the classes generated by javascript, but I would love to know if there's a firefox (or other browser) add-on which will show me page source with the javascript generated…
inorganik
  • 24,255
  • 17
  • 90
  • 114
1
vote
1 answer

Get web elements as they shown through view source

Using this code below I get the href from a link element. Sting url List wElements = DriverFactory.getWebDriver().findElements(By.className("link-class")) if(wElements.size() > 0) { url =…
1
vote
0 answers

View Source & Google Chrome Extension Interaction

I currently have a Google Chrome extension that can read the dom of the page I am viewing, by accessing: document.documentElement.outerHTML I can then also get it to print elements of the dom to the console of the current page, extension and…
HarryShotta
  • 347
  • 1
  • 15
1
vote
5 answers

Freeware Plugin to View HTML source generated by ASP.NET?

Are there any freeware plugins that would help me view the HTML Source generated by ASP.NET?
sam
  • 4,594
  • 12
  • 61
  • 111
1
vote
2 answers

ColdFusion: Calling Components with AJAX, hide from view source?

I'm curious... I love the asynchronous calls with jQuery, but I don't want my components available to the public by view source... What is the recommended solution for this?
dcolumbus
  • 9,596
  • 26
  • 100
  • 165
1
vote
1 answer

Viewing source of .txt file in browser shows HTML tags

When I "view source" (using cmd-I )of google.com/robots.txt in Safari, Chrome or Firefox on a Mac, I see:
Where is the HTML…
Andy Swift
  • 2,179
  • 3
  • 32
  • 53