hi
we are developing an Ajax based system using JavaScript and Coldfusion.
we have only just started to realise the need for escaping / encoding
special characters. how do you guys deal with this, e.g:
1) how do we deal with the special characters in JavaScript to ensure that
Coldfusion
If, when making your Ajax calls, you pass the returnFormat = JSON
attribute to your CFC method, then CF will automatically encode the
result when creating the JSON output. When passing a JSON value to
ColdFusion, inside your CFC method you can use the DeserializeJson()
method to decode
In addition to Cutter's points about JSON encoding, look into the
URLEncodedFormat and URLDecode.
-Original Message-
From: Cutter (CFRelated) [mailto:cold.fus...@cutterscrossing.com]
Sent: Wednesday, February 25, 2009 8:34 AM
To: cf-talk
Subject: Re: ajax and special characters
Exactly, but maybe I'm missing something.
I'm guessing that it's putting the style tags in straight into the actual
grid itself when it inits. In Safari, they are being ignored (style elements
only allowed in head?) and in Firefox they seem to write out the first time
correctly, but they
Not directly related to the cfgrid question, but if you think you're having
trouble with style blocks needing to be in the head for any reason (browser
or otherwise), try this:
cfsavecontent variable=css
style
... all your class defs ...
/style
/cfsavecontent
cfhtmlhead text=#css# /
That will
Is this what you mean?
http://www.coldfusionjedi.com/index.cfm/2007/8/20/Custom-grid-renderers-with-CFGRID
On Thu, Feb 12, 2009 at 4:14 PM, Robbie Byrd rb...@mdimediagroup.com wrote:
Hi there,
I'm pulling my hair out trying to figure out how to set a row color based on
a CFC returning
Hi there,
I'm pulling my hair out trying to figure out how to set a row color based on a
CFC returning either a specific CSS class. I'm not a big javascript guy, and
I've found on the Ext forums how to set row colors using an override, but I'm
not exactly sure where to place the code.
Anyone
Anyone wish to share any links to examples and maybe some code on cf8 Ajax
uses and magic?
Terry Troxel
~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http
http://livedocs.adobe.com/coldfusion/8/htmldocs/ajaxui_1.html
http://www.fusionauthority.com/techniques/4593-using-ajax-with-coldfusion-part-i.htm
http://www.adobe.com/products/coldfusion/features/ajax_features/
http://www.ajaxcf.com
http://www.webmonkey.com/tutorial
-ajax-with-coldfusion-part-i.htm
http://www.adobe.com/products/coldfusion/features/ajax_features/
http://www.ajaxcf.com
http://www.webmonkey.com/tutorial/Add_Ajax_to_Your_Site_Using_Adobe_ColdFusion
http://tutorial401.easycfm.com
On Sun, Feb 8, 2009 at 12:02 PM, Terry Troxel te...@it-werks.com
'] ;
});
}
});
}
};
/script
-Original Message-
From: Paul Stewart [mailto:p...@whichfranchise.com]
Sent: Wednesday, February 04, 2009 10:54 AM
To: cf-talk
Subject: Re: This CFC function and jQuery Ajax stuff is killing me...
Just been reading
2 queries of data and some random data via ajax.
I'm in *over* my head... I can work with simple stuff, but
these functions are getting complex.
Here's what I'm setting up to return via cfreturn ... /:
cfset structSchedule.message = Success
cfset structSchedule.month
Thanks, Paul! I'll work with this some, also!
Rick
-Original Message-
From: Paul Stewart [mailto:p...@whichfranchise.com]
Sent: Wednesday, February 04, 2009 10:54 AM
To: cf-talk
Subject: Re: This CFC function and jQuery Ajax stuff is killing me...
Just been reading Learning
'] ;
});
}
});
}
};
/script
-Original Message-
From: Paul Stewart [mailto:p...@whichfranchise.com]
Sent: Wednesday, February 04, 2009 10:54 AM
To: cf-talk
Subject: Re: This CFC function and jQuery Ajax stuff is killing me...
Just been reading Learning Jquery so hopefully this can get you on the
right
Hey Rick,
What you have coming back is a JSON object. The part of your ajax call
- success: function(response) { - is the beginning point for
displaying that data returned. You'll be adding quite a bit more
javascript to handle the display. You can either put this additional
js
Can we have some more background? What are you going to be doing with this
data once you get it back to the calling page? A grid or what?
On Tue, Feb 3, 2009 at 11:57 PM, James Holmes james.hol...@gmail.comwrote:
Try $.getJSON instead of $.ajax for a little more efficiency.
cfajaxproxy
Hey, Matt! Thanks for the code and explanation!
I'll try it out and see what I can do.
Rick
-Original Message-
From: Matt Williams [mailto:mgw...@gmail.com]
Sent: Wednesday, February 04, 2009 7:02 AM
To: cf-talk
Subject: Re: This CFC function and jQuery Ajax stuff is killing me
Hi, John...and thanks for the reply.
Yes, the data is headed for a table.
I'll be outputting rows set up like this:
Date am/pm position agent
Just those four rows. This is the first
time I've tried to output more than single
elements returned via ajax. Usually, I can just
Thanks for the further tips, James...I'm sure it'll all
come clear...(eventually :o)
So, am I to understand, that after reading
http://jehiah.com/projects/cfjson/
that CFJSON will translate my json-formatted
javascript data returned from an ajax call into
CF-formatted data, ready-to-use on my
coldfusion TO the client, you are
now on the client. At some point you're going to have to accept that there
is no client side ColdFusion. The J in AJAX is JavaScript. If you're
going to be working with AJAX, you're going to have to bite the bullet at
some point and roll up your sleeves and work
Subject: Re: This CFC function and jQuery Ajax stuff is killing me...
no no no no no.
again CF = server side. JS = client side.
if you pass JSON -to- the server -from- the client, you can use cfjson to
create coldfusion structures with it. Or, if you're on CF8, you can just
use
On Wed, Feb 4, 2009 at 11:32 AM, Rick Faircloth r...@whitestonemedia.comwrote:
Oh, Charlie...you make me sad...
well now you sound like my wife and her mother.
Yeah, I get the server-side vs client-side...I was just
hoping that somehow I would get to work with CF code
back on the
rows. This is the first
time I've tried to output more than single
elements returned via ajax. Usually, I can just
specify what the individual data is for the return,
such as struct.name, struct.date, etc. Now I'm trying
to figure out how to deal with queries, etc.
I wish I could somehow
: Wednesday, February 04, 2009 2:48 PM
To: cf-talk
Subject: Re: This CFC function and jQuery Ajax stuff is killing me...
On Wed, Feb 4, 2009 at 11:32 AM, Rick Faircloth
r...@whitestonemedia.comwrote:
Oh, Charlie...you make me sad...
well now you sound like my wife and her mother
On Wed, Feb 4, 2009 at 12:31 PM, Rick Faircloth r...@whitestonemedia.comwrote:
PS - When all you've got is a hammer,
everything looks like a nail!
PPS - that's not a good thing :)
--
I have failed as much as I have succeeded. But I love my life. I love my
wife. And I wish you my kind
Well, I have to admit I've never tried any of the
CF8 built-in ajax widgets.
I've considered it, but as with most widgets, sooner
or later I'm going to run into their limitations and
have to learn to get more granular control over the
code by hand-coding it so I might as well start now.
I've
Fair enough. There *are* limits to what cfgrid can do natively. But the
basics are *so* easy.
On Wed, Feb 4, 2009 at 2:46 PM, Rick Faircloth r...@whitestonemedia.comwrote:
Well, I have to admit I've never tried any of the
CF8 built-in ajax widgets.
I've considered it, but as with most
Not to overly dramatic, but, I think my head really is
about to explode. I know my blood pressure is sky high!
I'm going to conquer this stuff or die trying! (Probably
will kill me...)
Anyway, I'm trying to return data from a method involving
2 queries of data and some random data via ajax
via ajax. [snip]
~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f
Archive:
http://www.houseoffusion.com/groups/cf-talk
Thanks for the tips, James... I'll see what I can do!
Rick
-Original Message-
From: James Holmes [mailto:james.hol...@gmail.com]
Sent: Tuesday, February 03, 2009 9:46 PM
To: cf-talk
Subject: Re: This CFC function and jQuery Ajax stuff is killing me...
You have a properly
I should have added that I was wondering how you used jQuery to do the
Ajax call, since $.getJSON() should automatically convert the JSON to
data:
http://docs.jquery.com/Ajax/jQuery.getJSON
mxAjax / CFAjax docs and other useful articles:
http://www.bifrost.com.au/blog/
2009/2/4 Rick
The call that I've been using is
$.ajax({ cache: false,
type: post,
url: ../components/floor_duty.cfc?method=get_duty_schedule,
dataType: json,
data: formval,--- form values, etc., are put into this
variable
success
Try $.getJSON instead of $.ajax for a little more efficiency.
cfajaxproxy is the JS way of getting to the same point, essentially.
With either method, you need to be able to write the JS you need to
use the result set. You're getting back an object with two properties:
COLUMNS and DATA. COLUMNS
I have cfsetting showdebugoutput=false at the top
of the calling page.
My ajax json response is coming back fine, but below it,
in firebug, is ColdFusion debugging code...why?
What's triggering that?
The json response is:
{MESSAGE:Success,FIRST_NAME:Linda,LAST_NAME:DeLoach}
which is correct
1) Do you have coldfire installed?
2) What do you see when you hit the Ajax URL in your browser?
3) When you say at the top of the calling page do you mean the page that
contains the jQuery javascript MAKING the ajax call, or do you mean in
floor_duty.cfc which is RESPONDING to the ajax call
Rick,
Brad is dead on, see, every request that comes from your CF server returns
the debugging information. CF is smart enough to do it for web services and
Images, but there's no difference between your original page request and the
ajax request, so it tacks on the debugging info there.
nathan
.2) What do you see when you hit the Ajax URL in your browser?
From the Net panel in the firebug interface you can right click and it
will give you an option navigate to the page (Open in new tab) . Very handy.
HTH
G
On Fri, Jan 30, 2009 at 11:18 AM, Brad Wood b...@bradwood.com wrote:
1) Do
what are your debug settings in the cfadmin? if it's set to display debug
info, the cfsetting tag on the calling page isn't going to have any effect
on the AJAX call. that's an entirely different request.
On Tue, Jan 27, 2009 at 3:42 PM, Rick Faircloth r...@whitestonemedia.comwrote:
I have
I have cfsetting showdebugoutput=false at the top of the calling
page.
At the top of the calling page, or of the called page?
~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free
Hi, all...
I've put together a page that uses ajax to add, update, preview, and delete
virtual tours for real estate properties using CF and Ajax (jQuery) and a CFC.
Where I need some guidance is the part for the update.
I've got the actual update working fine, but I was wondering how I should
I don't even want to know what value that method would return.
mike
-Original Message-
From: Raymond Camden [mailto:rcam...@gmail.com]
Sent: Sunday, January 11, 2009 9:44 PM
To: cf-talk
Subject: Re: Is it possible to reference a cfc method using ajax?
Don't forget that in CF8, you can
: Raymond Camden [mailto:rcam...@gmail.com]
Sent: Sunday, January 11, 2009 9:44 PM
To: cf-talk
Subject: Re: Is it possible to reference a cfc method using ajax?
Don't forget that in CF8, you can convert a result to JSON over the
wire. So if some CFC, let's call it, um, nose, had a method, pick
Good to know...thanks, Cutter...
Rick
-Original Message-
From: Cutter (CFRelated) [mailto:cold.fus...@cutterscrossing.com]
Sent: Monday, January 12, 2009 12:30 PM
To: cf-talk
Subject: Re: Is it possible to reference a cfc method using ajax?
That depends on the function's
Don't forget that in CF8, you can convert a result to JSON over the
wire. So if some CFC, let's call it, um, nose, had a method, pick, that
returned an array, if you did an Ajax call to
nose.cfc?method=pickreturnFormat=json ...
I don't even want to know what value that method
, pick, that
returned an array, if you did an Ajax call to
nose.cfc?method=pickreturnFormat=json ...
I don't even want to know what value that method would return.
That depends on the function's attributes.
Cutter, I think you missed Mike's point, although I think it's clear
that the resultset
Steve, I've admittedly only skimmed your blog post, but could your
problem with CF's JSON encode of Queries be fixed with the queryFormat
attribute? It's another 'special' attribute like returnFormat.
On Mon, Jan 12, 2009 at 11:30 AM, Cutter (CFRelated)
cold.fus...@cutterscrossing.com wrote:
-talk
Subject: Re: Is it possible to reference a cfc method using ajax?
Haha! So busy reading the thread as a whole that I missed the full
context of that particular postOne of the few examples where I would
have rather had one of Ben Nadel's examples over Ray's (Sorry bro
Ray, (Please, call me Cutter.) I want to say I looked at that once
before, but I just don't remember. At the time, I was also looking to
write an implementation that would take the JSON return at it's base
level, without additional attributes. I'll take another look at it
though, it may be
Cool - sorry Cutter. ;)
FYI, the ability to generate 2 styles of json from a query is also
available in serializeJSON, and can also be used within deserialize as
well.
On Mon, Jan 12, 2009 at 2:07 PM, Cutter (CFRelated)
cold.fus...@cutterscrossing.com wrote:
Ray, (Please, call me Cutter.) I
Yeah, I have to look at the two formats again (I think the attribute is
queryFormat), but I personally like the default format over the standard
format. It has a much smaller footprint, with a lot smaller bit set
going over the wire. If I remember correctly though, even the alternate
format
Hi, all...good Sunday to ya.
I was wondering if it's possible for me to reference
methods of a cfc in ajax code, e.g.
$.ajax({cache: false,
type: POST,
url: components/virtual_tours.cfc?method=getAllTours,
dataType: json,
data: formval
An ajax call is just an http call. It should work with any url you can
put in a browser. The important part is making sure that the request
returns the data you want and in the format you want. That can be the
tricky bit. The only gotcha I see there is that you are using a
relative path call
Thanks for the feedback, Judah...
Rick
-Original Message-
From: Judah McAuley [mailto:ju...@wiredotter.com]
Sent: Sunday, January 11, 2009 3:26 PM
To: cf-talk
Subject: Re: Is it possible to reference a cfc method using ajax?
An ajax call is just an http call. It should work
Back in the old days before the invention of the marketing term Ajax,
the data fetching part of things was called XMLHttpRequest which gives
you some decent idea of what it does. Ajax has moved beyond that to do
all sorts of things but fundamentally the asynchronous part of things
that does data
Don't forget that in CF8, you can convert a result to JSON over the
wire. So if some CFC, let's call it, um, nose, had a method, pick,
that returned an array, if you did an Ajax call to
nose.cfc?method=pickreturnFormat=json
The returnFormat argument will tell the CFC to JSON encode the result
:44 PM
To: cf-talk
Subject: Re: Is it possible to reference a cfc method using ajax?
Don't forget that in CF8, you can convert a result to JSON over the
wire. So if some CFC, let's call it, um, nose, had a method, pick,
that returned an array, if you did an Ajax call to
nose.cfc?method
Hello,
We have added a recently viewed items panel to the right side of our website.
In this panel we simply loop through the array of viewed items and present
them stacked up in the panel. The code for rendering the list of items is in a
separate CF template that is placed using an Ajax
Hi Massimo,
Yes, it's something like the
http://www.massimocorner.com/libraries/spry/linkedselect/sample_api.htm
example.
I will try to modify it to allow items to be moved between the two
selects and instead of the Reset button to have another select. If the
selected item in this select is
Happy Holidays to all,
I'm looking for script that makes it possible to move items between
two multiple select boxes. Similar with the CrossSelect tag, But I
need the query for the first select to be driven by another select.
Something like the bind feature in CF8 where the first select will
Hopefully somebody can make sense of my explanation
Not sure I am following you... Anyway, this may be worth a look:
http://www.massimocorner.com/libraries/spry/linkedselect/
http://www.massimocorner.com/libraries/spry/linkedselect/sample_api.htm
Thanks for the tip, Chris.
I'll take a look into jQueryUI. Haven't looked at it before.
Rick
-Original Message-
From: Chris Jordan [mailto:chris.s.jor...@gmail.com]
Sent: Saturday, December 13, 2008 1:10 AM
To: cf-talk
Subject: Re: Anyone willing to help me build an AJAX/jQuery/CF8
Thanks for the reference and the links, James!
Rick
-Original Message-
From: James Holmes [mailto:james.hol...@gmail.com]
Sent: Saturday, December 13, 2008 2:17 AM
To: cf-talk
Subject: Re: Anyone willing to help me build an AJAX/jQuery/CF8 modal login
for pay or gifts?
ExtJS
Hello, all...
I appreciate everyone's help in getting my first ColdFusion/Ajax/jQuery
code working for this login...except for one *minor* (sarcasm) point.
The cf line of code in the first page below (PRE_LOGIN.CFM),
which should prevent the login dialog from appearing after someone
logs
now I'm looking for someone who would spend an hour or two working
with me through IM or via some other method to show me how to put
all this together. I want to expand from this to use AJAX in other
ways in my apps, but if I can't get this simple thing working, well...
I'd be willing to pay
who would spend an hour or two working
with me through IM or via some other method to show me how to put
all this together. I want to expand from this to use AJAX in other
ways in my apps, but if I can't get this simple thing working, well...
I'd be willing to pay for someone's time or buy
No problem. I can do it using either cfwindow or jquery's window. Send me a
message and I'll help you build it.
~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
Thanks, Tony... Matt Williams has already built a demo
that I'm studying now.
Thanks, however!
Rick
-Original Message-
From: Tony Bentley [mailto:t...@tonybentley.com]
Sent: Friday, December 12, 2008 9:02 PM
To: cf-talk
Subject: Re: Anyone willing to help me build an AJAX/jQuery
an AJAX/jQuery/CF8 modal
login for pay or gifts?
No problem. I can do it using either cfwindow or jquery's window. Send me
a message and I'll help
you
build it.
~|
Adobe® ColdFusion® 8 software 8 is the most important
to help me build an AJAX/jQuery/CF8 modal
login for pay or gifts?
No problem. I can do it using either cfwindow or jquery's window. Send me
a message and I'll help
you
build it.
~|
Adobe® ColdFusion® 8 software 8
I just can't seem to get my head around the processing
flow for an ColdFusion and Ajax-based login using a Shadowbox modal window...
Does anyone know of any tutorials that show how to use
ColdFusion, jQuery, and a modal window (doesn't have to be a Shadowbox)
for login?
I found a tutorial by Ray
force capable of transforming an enemy into a friend.
--Martin Luther King, Jr.
On Thu, Dec 11, 2008 at 9:36 PM, Rick Faircloth r...@whitestonemedia.comwrote:
I just can't seem to get my head around the processing
flow for an ColdFusion and Ajax-based login using a Shadowbox modal
window
Thanks, Yves! I'll check them out!
Rick
-Original Message-
From: Yves Arsenault [mailto:yves.arsena...@gmail.com]
Sent: Thursday, December 11, 2008 9:10 PM
To: cf-talk
Subject: Re: Need help with Ajax-ColdFusion-Modal Login...
Hi Rick,
Not sure if you checked the presentations
.
On Thu, Dec 11, 2008 at 10:16 PM, Rick Faircloth
r...@whitestonemedia.comwrote:
Thanks, Yves! I'll check them out!
Rick
-Original Message-
From: Yves Arsenault [mailto:yves.arsena...@gmail.com]
Sent: Thursday, December 11, 2008 9:10 PM
To: cf-talk
Subject: Re: Need help with Ajax
Yeah, I missed the Hack-Proofing... presentation.
Charlie does provide some great resources for the community.
-Original Message-
From: Yves Arsenault [mailto:yves.arsena...@gmail.com]
Sent: Thursday, December 11, 2008 9:22 PM
To: cf-talk
Subject: Re: Need help with Ajax-ColdFusion
Thanks for sending in the code.
It works now on my local machine ,it seems that there are some restrictions or
certificate issues on the site I am currently working on.
Thanks a lot again
NK
~|
Adobe® ColdFusion® 8
I'm glad it's working for you!
Rick
-Original Message-
From: N K [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 10, 2008 12:29 PM
To: cf-talk
Subject: Re: Desperately trying to make CF-jQuery-Ajax work!
Thanks for sending in the code.
It works now on my local machine
It didn't work even after removing the form tags ...
If I just run the request_processor.cfm by passing a value to it using cfparam
it works. Not sure what going on.
Can you please send me the exact code which you are running on your machine for
all the 3 files.
Thanks
NK
Ok...try this:
formval = {idm:$(this).val()};
$.ajax({
type: POST,
url: request_processor.cfm,
dataType: json,
data: formval
Save yourself some trouble and use CF8's cfajaxproxy tag. MX and older
versions return wddx and CF_AJAX is a good solution if you can't get the latest
copy but when all you need is the following:
cfajaximport tags=cfajaxproxy
cfajaxproxy
cfc = image
Thanks for the tip, Tony!
Rick
Tony Bentley wrote:
Save yourself some trouble and use CF8's cfajaxproxy tag. MX and older
versions return wddx and CF_AJAX is a good solution if you can't get the
latest copy but when all you need is the following:
cfajaximport tags=cfajaxproxy
Thanks for your response.After doing the recommended changes didn't help.Which
version of cfjson.cfc are you using?
The dropdown box is populated from the database but when the values are changed
rather selected from the dropdown ,doesn't display anything.
NK
Are you able to view the Console tab in Firebug to get a look at what
values and data are being sent?
Rick
N K wrote:
Thanks for your response.After doing the recommended changes didn't
help.Which version of cfjson.cfc are you using?
The dropdown box is populated from the database but when
Also, my version of cfjson.cfc is 1.6, dated September 11th, 2006, the
version
that is on the tutorial site.
N K wrote:
Thanks for your response.After doing the recommended changes didn't
help.Which version of cfjson.cfc are you using?
The dropdown box is populated from the database but
Using IE version 6.0 and Firefox 3.0.4.And does not work on both of them.
The issue is that the data is not being displayed when a value is been selected
from the dropdown ,though the window expands.
I tested the request_processor.cfm passing value to it and its works but the
main page does not.
What do you get in the Post and Response tab areas
in Firebug when you try to run the code?
Look, especially, in the Response tab and see if you can
see anything. If you can, don't forget to scroll all the way to the
bottom of the Response tab area and see if there is any code
or anything in
() {
$('#contentdiv').html('nbsp;');
var formval = {idm:$(this).val()};
$.ajax({
type: POST,
url: request_processor.cfm
(){
$(#idm).change( function() {
$('#contentdiv').html('nbsp;');
var formval = {idm:$(this).val()};
$.ajax
Please tell let me know what was the typo issue as I have been facing the same
issue.
NK
Got it working...the problem was basically some typo's in the tutorial code.
Mike Chabot wrote:
~|
Adobe® ColdFusion® 8 software 8 is
Try as I might, I can't remember but one typo I fixed and it doesn't
actually prevent the
code from working. The first line of the javascript after the opening
$(document)... line
should be: $('#contentdiv').html('nbsp;'); instead of
$('#contentdiv').html(' nbsp;');
That just causes
Hi, all...
I've been trying to wrap my head around using CF-jQuery-AJAX for awhile,
but just can't seem to get anything working.
I've looked at examples everywhere...on 365labs.net and the tutorial,
Quickstart Guide to ColdFusion+jQuery Ajax to the jQuery site, itself,
and also the AJAX_CFC site
ms/i/fontbr /
/td
/tr
/table
Rick Faircloth wrote:
Hi, all...
I've been trying to wrap my head around using CF-jQuery-AJAX for awhile,
but just can't seem to get anything working.
I've looked at examples everywhere...on 365labs.net and the tutorial,
Quickstart Guide
entirely. Create a html or text file that contains
the desired response and call that until you get that working.
I don't know the status of AjaxCFC but one reason it might be dying is
that CF8 has great Ajax support built right in. What you do in CF is
create a proxy to a CFC function on the server
great Ajax support built right in. What you do in CF is
create a proxy to a CFC function on the server which lets you call the
CF server function using JS, and CF handles all the complexity for
you. It works well. Another reason AjaxCFC might have seen a lack of
development is that it might
Hi,
First time poster here. I am using several ajax controls in a CF application,
and they work fine...mostly. I am seeing a time-interval related problem; if a
page w/ ajax controls is left inactive for about 30 minutes, the next ajax call
fails, returning with a 302 (temporarily moved) code
Hmmm..
next ajax call fails, returning with a 302 (temporarily moved)
What is the value of the location header?
and non-ajax calls detect it appropriately
Do you mean loading it in a browser? Are you saying that the browser
gets a 200, or the browser just follows the redirect?
~Brad
Are you this is not due to a login timing out? The 302 http error is a
redirect code which makes sense if your login expired and your code is then
trying to redirect the ajax call to the login page. Can you determine which
page the redirect is attempting to load?
This could still be a session
Wil Genovese wrote:
Are you this is not due to a login timing out? The 302 http error is a
redirect code which makes sense if your login expired and your code is then
trying to redirect the ajax call to the login page.
You may be on to something...there is CAS (single sign
Pardon the reply to my own message, but Wil, you were right on...CAS had
expired my authentication, and when an ajax call stumbled into this, the
redirect wasn't handled properly (not sure it can be in the middle of
say, ColdFusion.nagivate(), other than triggering the onError()
callback
No worries ;) Another useful feature of using array notation is that
you can have key names that are not valid variable names, ie. numbers.
Indeed, some clever clogs used this in a solution for getting x number
of random numbers that are all unique. It's posted in the archives
somewhere but it
I am new to ajax.. and my javascript isn't too hot either:)
I am trying a simple lookup of a city and state given a zip code. I
have it working if I just return a city as a string, but when I try
to return a structure with a city and state I get undefined
Here is the code where I call
501 - 600 of 1842 matches
Mail list logo