One method would be to include Page B with a _javascript_ include (script src="" and have Page B put the string you're after into a _javascript_ variable.After the include, your code can see that variable as if it were on the same page.
I'm sure there's more elegant solutions though.
Shawn
That's definitely possible, but I surely cannot do an script src="" from within a _javascript_ functionis there
a way I could assign the js variable (created on page B)to a global scope that I can then
access inside any _javascript_ function on page A?
One method would be to include Page B
Check out IFRAMEs
http://www.oreillynet.com/pub/a/_javascript_/2002/02/08/iframe.html
http://www.oreillynet.com/pub/a/_javascript_/2002/02/08/iframe.html
I haven't used them yet but it might be just what you're looking for.
Mark
-Original Message-
From: Nikhil Madani
You can't make HTTP requests with _javascript_.However, you can use a hidden
frame to do the dirty work.Create a hidden frame, set it's location to
your URL, then check the content of it's document to get the output from the
url (what you need) and set it to your variable. Just be careful, because
Is this the sort of thing you're looking for?
http://jibbering.com/2002/4/httprequest.html
-Bret
-Original Message-
From: Nikhil Madani [mailto:[EMAIL PROTECTED]
I know this forum might not be the most relevant place for _javascript_
help, but anyway here is my problem:
On a
Interesting..can't hurt to try it out! Only drawbacsk seems to be how different browsers handle the IFRAME element.
Thanks Mark...
(P.S- To others reading this message- I'd still be interested to know if you've got a different take on this issue...(no offense to you Mark))
Check out
On Fri, 2004-03-12 at 12:19, Nikhil Madani wrote:
I know this forum might not be the most relevant place for _javascript_ help, but anyway here is my problem:
On a certain page A, I have a _javascript_ function that needs to retrieve
HTML code from another web page B, possibly on another
I found this exact same page in my search too
Will have to try it out. My only worry is the part where the author says...depends on version of MSXML installed. Now I'm not sure which versions of IE come with MSXML or if its a feature the client will have to download and install to access
On Fri, 2004-03-12 at 13:19, Nikhil Madani wrote:
I found this exact same page in my search too
Will have to try it out. My only worry is the part where the author says...depends on version of MSXML installed.
If it helps any I've tested that script with:
Win2k IE5 6
WinXP IE whatever
Xml fetching and parsing all in one... that *is* cool.
Re IFRAME: the url for the iframe can be loaded dynamically at any time via
scripting, and does not require a visible screen element. At least that's
what I've read.
-Original Message-
From: Rob [mailto:[EMAIL PROTECTED]
Sent:
So, besides the XML approach (which sounds VERY interesting), there are two methods suggested.I've done both myself, and personally prefer the IFrames.
The first method would be something like so:
script src="">
script
x = js_string_set_in_pageB.cfm;
/script
The second would be something
Is it just me or are a few parts of the MM site down (JRun
Updater/Developers Home...)
--
Peter Tilbrook
ColdFusion Applications Developer
ColdGen Internet Solutions
Manager, ACT and Region ColdFusion Users Group - http://www.actcfug.com
http://www.actcfug.com/
4/73 Tharwa Road
Queanbeyan,
Cool folks...thanks a lotI'm going to getting working on all these
ideas. Once again, thanks for your inputs
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
13 matches
Mail list logo