What Is URL Command That Displays Source Instead Of Page?
Jul 23, 2005
There's some command I forgot that you can type into the
address field of a web browser that will cause it to
display the source code for that page instead of
the page itself. Can anyone tell me what it is?
It's something like:
viewsource:http://mysite.com
or
view:http://mysite.com
or
source:http://mysite.com
except I don't quite have it correct.
View 1 Replies
ADVERTISEMENT
Jul 23, 2005
i popup a new window in my submit command and return false;
but my parent still flips the page ! how can i stop it ?
View 2 Replies
View Related
Dec 7, 2009
I am having issues trying to get the javascript to load when I load the page. I had it before and lost the file now I can't seem to get it again. Here is my code.
<!DOCTYPE html PUBLIC "-W3CDTD XHTML 1.0 TransitionalEN" "[URL]">
<html>
<head>
<title>Wheeler Insurance - Customer Survey</title>
</head>
<body onload="java script:View Survey();">
<p><p>
<script language="javascript" type="text/javascript"><!--
var PDF_surveyID = '095504C919339503'; .....
View 2 Replies
View Related
Oct 4, 2007
I'm not very good with coding and this seems like a very basic issue. I have a resume page that opens up in a new window. I made a button on the resume page that fires up the print command window when clicked using this code:
javascript:window.print()
It works fine except it only prints the first page. How I can get it to print all the pages?
View 5 Replies
View Related
Jul 20, 2005
I am trying to create a new window from which the original page can close that new window. For some reason the following code will not work. Passing the window.open command to a variable called myWindow does not work with the mouse event, but it seems to work fine with a javascript: URL command. I would prefer to do it with the mouse event. Code:
View 2 Replies
View Related
Jul 20, 2005
When using the document.write command to dynamically cretae a new html
page .. how should I use the "" charcters.
e.g. for font size="2"
As the attributes appear within " "for the purposes of the documnet.write
bit ...it just gives me errors.?
View 4 Replies
View Related
May 25, 2011
I use this code to produce a date... however, I need to produce a different date depending on the page title... for instance: Page title: Product 1 will display 5/29/11. Page Title: Product 2 will display 6/13/11 etc.Here is the code I use to produce the date... any tips on how to get a different date for the different pages?
Code:
<p align="center"><br><b>Est. Shipping Date:</b><br> <br>
<script type="text/javascript">
Number.prototype.mod = function(n) {
[code]....
View 16 Replies
View Related
Feb 4, 2009
I am using the following JQuery function to rotate content on my webpage on page refresh. It works perfectly, but all items are displayed while the page is loading before they are hidden. It looks a little odd from the user's point of view as they see all items and then they disappear. how I can make it hide all rotating content while the page loads - then just display the correct content once page has loaded?
<script type="text/javascript">
$(document).ready(function(){
$(".rcontent").hide();
var randNum = (Math.floor(Math.random() * 2))+1;
[Code]....
View 3 Replies
View Related
Jun 6, 2010
could someone please point me in the right direction for creating an AJAX page that displays "live" data from a mysql database? I need the page to update its self every time data changes in a mysql table.
View 1 Replies
View Related
Mar 2, 2009
I have made a page thats makes an AJAX call to the server gets the time and displays it. In the OPEN method i have set
req.open("GET","/timerProg.cgi?param1="+new date(),false);
I have set the last parameter as false as i am expecting a synchronous request so that time displayed should be consistent.
I am using new date() since the browser is caching my request and displaying the same output everytime as i dont know any other alternative.
The alternative so that browser does not cache the results and gives proper output each time.
View 2 Replies
View Related
Feb 12, 2010
I have a listings page which displays results using images and text which are stored in a MySQL database, all is working fine. The images are pulled into the page from the database and each listing can have up to a maximum of 10 images. Some will have all 10, some probably one or two, so the page is coded such that if there's an image in the field, it displays a thumbnail, if there isn't then it shoves a " " in instead.
The results page has one main photo (image 1) and then a series of thumbnails (images 2-10) below it and I need to be able to set this up so that when someone clicks on image 2 it shows the full-size version of that image in the div where image1 sits, and the same for however many remaining images there are.
So my question is, how easy it is to do this with javascript and does anyone have any idea how to code it?
The main photo sits in a div whose id is "mainphoto" the remainder all sit in a div whose id is "thumbpix".
View 1 Replies
View Related
May 25, 2010
If there is any method by which i can get the source code of a webpage in a program by using the URL. what i want to do is that am developing a javascript webpage which requires some info to be taken out of a certain webpage, and in the url of that webpage i can enter the query, so i wanted to know if there was any method to get the source of the webpage and store it in a varabile so i can scan it for the required info.
View 9 Replies
View Related
Feb 23, 2011
I got some code that loads divs from other web pages into a particular div in my main page. In other words, I click on a button, and this tells jquery to load afragment of a particular page into my main page. For instance if I have 5 web pages onrock stars, I could have 5 buttons, and each button could load one rockstar's biography into a div on the main page (and replace whatever was there before). This works, and I do see the content that it loaded. But when I do 'view source' in IE, I do not see that content (the bio of the rock star). Another clue that this content is not really there, is when I try and run some code on that content. The content (from those external pages) have divs with specific names, and I try and make them into collapsible panels by running the following short function:
var IdentifyPanels = function() {
$("DIV.ContainerPanel > DIV.collapsePanelHeader > DIV.ArrowExpand").toggle(
function() {
[code]....
View 2 Replies
View Related
Jul 23, 2005
Is it possible on Mozilla based browsers and IE based browsers to get
the complete source for the current page that is opened?
document.body.innerHTML does well but only gets what's within the
page's BODY tag. document.body.outerHTML doesn't work with Mozilla.
Is there such a thing as document.src.value or something simple like
that?
View 2 Replies
View Related
Jul 20, 2005
I'd like to know if 'view-source' in javascript can work without
reloading the page. (or not calling the page again, just as I
right-click in IE)
View 3 Replies
View Related
Apr 19, 2009
Is there a function in javascript to get the source code of a page and contain it in a variable, or automatically obtain information from it in some way?For example, if I needed to get the title of a certain page, would I be able to somehow implement document.title to get the title of a webpage?
View 4 Replies
View Related
Aug 15, 2010
How do I create a JavaScript script to save a web page's source code to a file?
Example: I will go to a website, it automatically from the web page's source code will be saved to a file.
View 4 Replies
View Related
Mar 26, 2010
I need to write a script that parses a web page for a given delimiter and then stores the following 50 characters as a variable. I wrote the following php script:
Code:
<?php
$del = "picture_id";
$url = "http://xxxx.net/xxxxx/xxxxxx.php?do=xxxx";
$source = file_get_contents($url);
[Code]....
The delimiter is always going to be constant, however the succeeding characters will be different each and every time. I need to write this in Javascript because it is hosted on my server, and ran by users who post on my brothers message board (which is hosted elsewhere). Since Php is server side I always get "guest" as a value rather than the random string of characters like it should be.
View 2 Replies
View Related
Jan 16, 2011
There's a thing I would need for my website: I want to include an image from an other site. But it's url is changing every day because the image changes every day. (That's the site: [URL]
How can I find out the image url with javascript and show it on my website?
View 7 Replies
View Related
May 17, 2011
I'm wondering, I've looked at several examples of this, but none seem to work. I can get POST functions to work (posting data to a certain URL is no problem). However, I can't get the source code of a page. Here's the function I've got so far:
Code:
I'm wanting to use this to use certain settings in the script on my web site that I have stored on another page. The usage is like this:
Code:
And then googlesource should be populated with the source code of [url]. Just an example. why the above function is not working? I've tried messing around with all kinds of request headers and everything.
All the function returns is "undefined".
View 5 Replies
View Related
Oct 22, 2009
I know that when you "display: none" with CSS it will not show the div content in the browser, but will still show the div and content in page source.Is there a way (via javascript or anything else) to also remove the content from page source at the same time?
View 11 Replies
View Related
Mar 26, 2009
Let's say we have two separate files / pages:
File A - www.example.com/index.html There is an iframe on this page which contains different links. Every link leads to File B (e.g. www.example.com/news.html) which in turn has a frame.
The links on page A should change the source of the frame on page B. In brief - the frame on page A opens page B and every link should change the content/source of page B's relevant frame...
View 5 Replies
View Related
Feb 11, 2010
I have created and opened a new window using Javascript and written to it with the document.write Command. When I click "View" and then "Page Source" (Firefox) to view the source of it, however, it displays a blank page. How can I get the source of a window I created?
View 2 Replies
View Related
Feb 3, 2011
I have a single web page that loads several iframes. One of the iframe pages has to be logged in first. I have that taken care of but once the page is loaded I need to change the source to a link with in the page. My guess is I need something to execute the code like a onload or something. This is what Ive been trying to get to work but like I said a newb! code...
View 1 Replies
View Related
Oct 31, 2010
I'm trying to have a scroll function (scrollIntoView(true)) that scrolls to an element created by JS. This isn't working because when I use document.createElement the element's html doesn't show up in page source so I can't find it using document.getElementById.
What should I do?
View 2 Replies
View Related
Nov 2, 2010
I am working on a module where I have 2 div tags which I wanted to swap on page refresh. i.e., when page loads it displays 1st div and upon refresh it loads 2nd div(and one more refresh wil load 1st and so on....). that works perfectly but the issue is I have an iframe inside both the divs which points to two different html files and its not swapping upon refresh. whatever iframe loads first remains there.
I thought its because of browser caching and the browser caches the iframe thats loaded 1st., so I tried adding meta tags on head like no-cache and expire=-1 but no luck.
View 3 Replies
View Related