I haven't looked at it in about a year or so, but I used JSRS with a
few modifications in the past for a project. It's a bit overdone in my
opinion, but it is a good way to learn the concept's behind exchanging
data with the server using JS.

Basically JSRS, takes data passed to it, and passes the data as URL
variables to a hidden iframe or ilayer. You can access these URL
variables with CF the same as any other CF template. The part that
makes JSRS so complex is that it handles arrays as well as simple
strings, so it has to be able to serialize and deserialize js arrays.
Overkill imo...you are better off ripping out what you need from JSRS
and making your own library. His real innovation was figuring out
exactly how to make an invisible iframe/ilayer across all 3 major
platforms at the time. Today I think using the script tag is a better
way to exchange data though. IFrame's are fine, but they make that
annoying click in IE when the url is changed.


-- 
jon
mailto:[EMAIL PROTECTED]

Friday, November 22, 2002, 12:15:12 AM, you wrote:

gec> Has anyone out there done anything with JSRS (JavaScript Remote Scripting) by 
gec> Brent Ashley (see http://ashleyit.com/rs/) and ColdFusion?  If you don't know 
gec> what Remote Scripting is, it basically allows you to get information from the 
gec> server without refreshing the page -- for example database queries.  There are 
gec> a lot of examples out there -- see http://ashleyit.com/rs/links.htm for some 
gec> links if you are interested.  None of the links are done with CF though.

gec> The current distribution of JSRS (v2.12) has a jsrsServer.cf5.inc file 
gec> packaged with it written by an author out of Taiwan.  Problem is there are no 
gec> CF examples of any kind whatsoever available anywhere that I can find and thus 
gec> I thought I'd throw this out to cf-talk.

gec> If anyone has used JSRS with CF I'd be most grateful to hear from you 
gec> offline.  I'm trying to write an example in CF to help myself understand the 
gec> process better and I'm having some difficulties.

gec> Thanks,
gec> Grant

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com

Reply via email to