![]() |
|
|
|||||||
![]() |
HTML - Copy Source code of a page into Form Field |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
I have a page which contains a TEXTAREA form field.
I want to be able to click a button and have it go off and fetch the source code for a compiled ASP page (ie. what the user would see if they loaded the ASP page into their browser) and put the source code into this form field. Is this possible? Keith |
|
|
|
|
#2 |
|
Posts: n/a
|
On Tue, 18 Jan 2005 13:21:06 -0000, Keith <@.> wrote:
> I want to be able to click a button and have it go off and fetch the > source code for a compiled ASP page (ie. what the user would see if they > loaded the ASP page into their browser) and put the source code into > this form field. Is the asp page accessible through a server, i.e. is it online (or on intranet or wherever)? Which server-side language do you use? Or do you wanna do it with javascript? -- Mitja |
|
|
|
#3 |
|
Posts: n/a
|
Keith wrote:
> Is this possible? Yes. Example: http://examples.tobyinkster.co.uk/textyarea/example Source code: http://examples.tobyinkster.co.uk/te...ample?source=1 In my example, I've limited the script so that it can only copy source code from pages at examples.tobyinkster.co.uk, but I've included instructions on how this restriction can be removed. -- Toby A Inkster BSc (Hons) ARCS Contact Me ~ http://tobyinkster.co.uk/contact |
|