Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
BobK101060 #1
Extracting HTML source from Javascript
I am trying to use the CFHTTP command to pull HTML source into a variable. The
problem I am running into is that the HTML page is using a javascript file to
generate the portion of the page that I need to get to. When I pull in the HTML
page using the CFHTTP command I get the <SCRIPT src=.... command and not the
resultant HTML it produces. Is there any way to get the resultant HTML
programatically? I need to sift through the HTML source and parse out some key
information. Thanks in advance for any help you may offer.
BobK101060 Guest
-
extracting a UserControl's HTML ?
hello, i have a usercontrol in my app that draws a DropDownList and some text. elsewhere, i have a need to extract the control's HTML as if it... -
No html source for datagrid
I posted this earlier but this time I am adding a url if you want to see the datagrid. (Use start date of 11/10/2004). Basically I wanted to know... -
extracting Javascript from a web page
Hi Everyone, I have a perl script which tries to read a web page and then submit data to a form using LWP::UserAgent. The page has some... -
get html source of an URL
Hie, I am trying to write a program doing the following : - I give it an URL (for instance http://www.yahoo.com) - it gets the source of the web... -
converting javascript extracting routine to cgi
noViagraHere wrote: <snipped JavaScript code> You wouldn't, since CGI isn't a programming language. I'm sure it can be done in Perl, though. ... -
Der Nickname #2
Re: Extracting HTML source from Javascript
What you're trying to do isn't possible. JavaScript and ColdFusion aren't able
to exchange variables by default. To read JavaScript you need to get use of
WDDX. Would like to help, but I lost the referring link to it. :(
Der Nickname Guest
-
Dan-CFTagStore.com #3
Re: Extracting HTML source from Javascript
Hi, You could set your CFHTTP to point to the SRC part of the SCRIPT tag. For
example: if your target page contains <script src='myInclude.js'>, then set
the URL part of CFHTTP to the myInclude.js instead. Now, becareful in that the
script may be generated at runtime in which case, your best option is to load
the page in an IFRAME and access that using Javascript (example: iframe is
called name='myFrame' then use myFrame.document.innerHTML) to get the
resultant runtime generated html. You could detect if the iframe document is
loaded and then get the contents. If you need some help, email me at
[email]dan@digital-crew.com[/email]?subject=MMWF JS Help Regards, Dan.
Dan-CFTagStore.com Guest



Reply With Quote

