473,473 Members | 1,817 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Using Coldfusion want to use Javascript.

I have a web based application for my company. We use Coldfusion, I
wanted to see if I could use Javascript to make the page a bit more
dynamic.

Right now I use the command:
<cfhttp URL="http://server:port" method="get" Timeout="20" charset="UTF-8">
<cfhttpparam name="var" type="CGI" value="command I send">

this connects to an application on another server listening on the
provided port for a request. When it sees the command a parser
reads the command and formats an XML file that is returned to the web
page. I can parse the XML and use it to fill out the page.

I've read about using "ActiveXObject(Microsoft.XMLHTTP)" and
onreadystatechange to dynamically update a web page.

I would like to send the Coldfusion command, or it's Javascript equivalent
to update the page. Say if you need to change an address,
you could submit the change and just the address would be updated on the
page, so it isn't necessary for the remote server to return the entire
account information again.

Is there a Javascript equivalent to the <cfhttprequest, and what is it?
Thanks
Adam M
Sep 26 '06 #1
2 2180

am_pcguy wrote:
[...]
Is there a Javascript equivalent to the <cfhttprequest, and what is it?
What you seem to be after is AJAX, which is based on xmlHTTPRequest:

<URL: http://www.ajaxtoolbox.com/ >

--
Rob

Sep 26 '06 #2
am_pcguy <am*****@warmmail.comwrote in
news:pa****************************@warmmail.com:
I have a web based application for my company. We use Coldfusion, I
wanted to see if I could use Javascript to make the page a bit more
dynamic....
With Javascript on the browser, and ColdFusion on the server, you can
communicate quite nicely with AJAX and update parts of the web page
without reloading the whole page.

An earlier method (few years ago) used Flash and Actionscript with
ColdFusion to do the same thing. Since Macromedia owns both ColdFusion
and Flash, that's their preferred method (and they have lots of
examples). But with that method, the browser is using Flash to simulate
a web page, whereas with AJAX you have a real, honest-to-goodness web
page.

Sep 26 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

17
by: Scott | last post by:
Hi, Can I ask some advice in regards database solutions and content management solutions.? Do you have a philosophy on what is the best for databases - ASP, JSP, Cold fusion, PHP, etc. My...
16
by: worzel | last post by:
is python more popular than coldfusion? I realsie that is a very general question as one thing does not directly relate to the other. My issue is that I am ditching coldfusion due to there being...
12
by: Phil Powell | last post by:
<cfquery name="getAll" datasource="#request.dsn#"> SELECT U.userID, U.fname, U.lname, U.phone, U.lastLoggedIn, U.choiceId, U.experience, T.label AS teamLabel, R.label AS roleLabel FROM User U...
4
by: jnag | last post by:
Hello, I have date fields on a form which is generated by a Coldfusion custom tag (another piece of code). I want to change something else on the form when the user changes the date. But, how do...
3
by: sj3vans | last post by:
I'm trying to integrate a ColdFusion application with a webAPI provided by another company to access their services. Their requirements are that requests should be generated using standard HTTP...
1
by: jnag | last post by:
Hello, I have implemented styleswitcher.js on my coldfusion website. The code looks perfectly ok, but the stylesheets are not taking effect. Basically, nothing changes when I click on the...
2
by: quest007 | last post by:
Hi! I have configured IIS for coldfusion and when I access my coldfusion site through localhost, the pages are served as required. But if i ty to access it from a remote machine by specifying the IP...
2
acoder
by: acoder | last post by:
How to Send Mail in Coldfusion You can use Coldfusion to easily send mail. From simple plain text emails to more complex HTML and multipart emails, the job is made a lot easier with Coldfusion. ...
106
by: bonneylake | last post by:
Hey Everyone, Well i don't know if my question should be in javascript/ajax or coldfusion, i figure this is more of a coldfusion question. But if this is in the wrong section let me know an all...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.