473,756 Members | 2,721 Online
Bytes | Software Development & Data Engineering Community
+ 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.XMLHT TP)" and
onreadystatecha nge 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 <cfhttpreques t, and what is it?
Thanks
Adam M
Sep 26 '06 #1
2 2210

am_pcguy wrote:
[...]
Is there a Javascript equivalent to the <cfhttpreques t, 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*****@warmma il.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
3199
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 company website site is going to be rebuilt and I am the lucky one to do this but I am unsure of the needs and complexity of the project, and what would be the best base code. Do you have any thoughts in this area? The site requires functionality...
16
2594
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 next to no work for it, and I am thinking of taking on python as a second language to java in the hope of improving my resume.
12
18672
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 LEFT JOIN UserTeamAssoc UTA ON UTA.userID = U.userID, Role R, UserRoleAssoc URA, Team T WHERE U.userID = URA.userID AND URA.roleID = R.roleID AND U.userId > 1
4
2123
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 I generate an onChange() event on this field (since I only have the call to the custom tag in this form)? Thanks in advance for any suggestions.
3
5419
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 Posts with the following HTTP Headers: Content-Type: text/XML Content-Length: {Length of content} The sample code they sent on how to access the API are .bat files that call their API via JAVA. Here is one of the .bat files: @echo off call...
1
1960
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 buttons on the banner to switch styles. My friend has implemented the exact same thing on a basic HTML website and it works perfectly well.
2
4080
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 address in the url, it displays an error: The web site you are accessing has experienced an unexpected error. File not found: /mysite/htdocs/dsp_welcome.cfm While searching for the error, I found a solution which suggests that it might be...
2
7448
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. In the following collection of articles, we will cover the basics and gradually move onto more useful examples including using a query to send mail to multiple recipients. The <cfmail> tag If you want to send email in Coldfusion, the cfmail...
106
19819
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 gladly delete my question an put it in the correct section. Well what i am trying to do is pretty simple. I have a input field and someone starts typing in a customer number. As they type in the customer number the drop down box is populated. They...
0
10034
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9843
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9713
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7248
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5142
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5304
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3805
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 we have to send another system
2
3358
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2666
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.