Re: Javascript remoting with cfcs
On Thursday 18 Mar 2004 15:50 pm, Rob wrote: Try it again - I just tried it on FireFox linux worked ok Err... well, I can type things in the box, but there is nothing to tell me what to type to see it working :-) Could you put a few sentances on the site to explain what to do to see it working, or but the buttons back on ? The floating window and background are neat, but it's meant to be demonstrating webservice consumation :-) pengoworks JS gateway. I would too - mine is pretty beta OTOH it works :-) -- Tom Chiverton Advanced ColdFusion Programmer Tel: +44(0)1749 834997 email: [EMAIL PROTECTED] BlueFinger Limited Underwood Business Park Wookey Hole Road, WELLS. BA5 1AF Tel: +44 (0)1749 834900 Fax: +44 (0)1749 834901 web: www.bluefinger.com Company Reg No: 4209395 Registered Office: 2 Temple Back East, Temple Quay, BRISTOL. BS1 6EG. *** This E-mail contains confidential information for the addressee only. If you are not the intended recipient, please notify us immediately. You should not use, disclose, distribute or copy this communication if received in error. No binding contract will result from this e-mail until such time as a written document is signed on behalf of the company. BlueFinger Limited cannot accept responsibility for the completeness or accuracy of this message as it has been transmitted over public networks.*** [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Javascript remoting with cfcs
On Fri, 2004-03-19 at 01:54, Thomas Chiverton wrote: On Thursday 18 Mar 2004 15:50 pm, Rob wrote: Try it again - I just tried it on FireFox linux worked ok Err... well, I can type things in the box, but there is nothing to tell me what to type to see it working :-) Could you put a few sentances on the site to explain what to do to see it working, or but the buttons back on ? The floating window and background are neat, but it's meant to be demonstrating webservice consumation :-) Hehehe, well it's still being worked on - it's not really ready for big time usage, but here you go... After it loads hit enter to get a prompt Neuro created an object called robject that has the functions of the web service built in You can type # reflect(robject) to see if that really happend (it might not). then to test it you can just type the function from the web serive for example # robject.getTest() you can also type help at the prompt to get a bit of info - not much. It's more of a hack the web page at the moment. btw its a _javascript_ shell so if you know _javascript_ you can get around pretty easy. for example type # alert(hi there) Cheers, OTOH it works :-) -- Rob [EMAIL PROTECTED] [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Javascript remoting with cfcs
Dick Applebaum wrote: The full impact of this hasn't ripenedin my mind yet -- at the very Yeah, same here. It's sounding very cool, I just can't yet work out where I'd use it... Having said that I could've created a whole web service back/frontend to my most recent project and built a whole bunch of clients (web/web+JS/.NET/Java/etc.). Ohhh, that would've been cool. I think you could do some very exciting things with this. Total agreement here. Nice one Rob. The things we do when we are unemployed Hah, wanna move to the UK? We're after another CF/web guy :D P.S. doesn't work with Safari FYI Rob, works in the following: -- Oliver Tupman Key Systems Geotechnical [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Javascript remoting with cfcs
Dick Applebaum wrote: The full impact of this hasn't ripenedin my mind yet -- at the very Yeah, same here. It's sounding very cool, I just can't yet work out where I'd use it... Having said that I could've created a whole web service back/frontend to my most recent project and built a whole bunch of clients (web/web+JS/.NET/Java/etc.). Ohhh, that would've been cool. I think you could do some very exciting things with this. Total agreement here. Nice one Rob. The things we do when we are unemployed Hah, we're after another CF/web guy. Wanna move to the UK? :D P.S. doesn't work with Safari FYI Rob, works in the following: - Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113 - IE 6 both on Win XP. -- Oliver Tupman Key Systems Geotechnical [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Javascript remoting with cfcs
On Wednesday 17 Mar 2004 23:39 pm, Rob wrote: It works on my linux Mozilla 1.4.1 and IE 6.0. I *think* it'll work on IE 5... I should try XP too. Doesn't work on my FireFox .8 :-( robject.getAddOne is not a function This is very cool though, but for the moment I'll have to stick to pengoworks JS gateway. -- Tom Chiverton Advanced ColdFusion Programmer Tel: +44(0)1749 834997 email: [EMAIL PROTECTED] BlueFinger Limited Underwood Business Park Wookey Hole Road, WELLS. BA5 1AF Tel: +44 (0)1749 834900 Fax: +44 (0)1749 834901 web: www.bluefinger.com Company Reg No: 4209395 Registered Office: 2 Temple Back East, Temple Quay, BRISTOL. BS1 6EG. *** This E-mail contains confidential information for the addressee only. If you are not the intended recipient, please notify us immediately. You should not use, disclose, distribute or copy this communication if received in error. No binding contract will result from this e-mail until such time as a written document is signed on behalf of the company. BlueFinger Limited cannot accept responsibility for the completeness or accuracy of this message as it has been transmitted over public networks.*** [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Javascript remoting with cfcs
On Mar 18, 2004, at 3:32 AM, Thomas Chiverton wrote: Doesn't work on my FireFox .8 :-( mmm... Works on FireFox 0.8 on OS X [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Javascript remoting with cfcs
On Thu, 2004-03-18 at 03:32, Thomas Chiverton wrote: On Wednesday 17 Mar 2004 23:39 pm, Rob wrote: It works on my linux Mozilla 1.4.1 and IE 6.0. I *think* it'll work on IE 5... I should try XP too. Doesn't work on my FireFox .8 :-( robject.getAddOne is not a function I was working on it last night making the console interactive. You might have hit it when I was jacking with it. Try it again - I just tried it on FireFox linux worked ok This is very cool though, but for the moment I'll have to stick to pengoworks JS gateway. I would too - mine is pretty beta -- Rob [EMAIL PROTECTED] [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Javascript remoting with cfcs
Rob, That's great, but man do you have a lot of time on your hands... It's a cool toy for sure though, although I can't think of a use for it. How browser compatabile is the _javascript_? like will it run on IE5~ish browsers? The things we do when we are unemployed tell me about it. i did this last time. http://www.dopefly.com/projects/filesurfer.html -nathan strutz Rob wrote: Ok you guys gotta check thi s out. I am totally stoked it works. - it's still really basic and can only pass simple types - but man its cool. http://www.rohanclan.com/products/neuromancer/ This will make no sence, but I am all amped up so bear with me... You can pass a cfc web service name to the _javascript_ remoteObject creator - it'll then go out look at the wsdl and create a local _javascript_ object that matches the cfc. So if you have a cfc with the method getAddOne(number) this will create a _javascript_ object with a method called getAddOne(number) and when you use it in _javascript_, it actually calles the cfc to do the work. You can try it buy using that little text box on the top. it calls the _javascript_ object getAddOne with what you type in the box. That value is sent to the controlling cfc and the results are passed to the green text area. If you don't believe its using a web service try typing a non number and see what happens. Also note ... no page refresh :-o It's totally point less I guess, but man its cool :-D The things we do when we are unemployed -- Rob [EMAIL PROTECTED] [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Javascript remoting with cfcs
On Wed, 2004-03-17 at 15:27, Nathan Strutz wrote: That's great, but man do you have a lot of time on your hands... I guess - took about 2 days to do the whole thing (would've taken longer if Dave didnt hook me up with the soap SOAPAction value ) It's a cool toy for sure though, although I can't think of a use for it. Hehehe - yeah I know me either really. I had a dream to make it a couple days ago so I figured might as well. How browser compatabile is the _javascript_? like will it run on IE5~ish browsers? It works on my linux Mozilla 1.4.1 and IE 6.0. I *think* it'll work on IE 5... I should try XP too. Well it's kind of neat even if it is usless at present. Cheers, -- Rob [EMAIL PROTECTED] [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Javascript remoting with cfcs
I don't know how useless this would be - I can see potential for it right away. For instance - what if I had a page that had to dynamically change or update parts of the page (i.e. search results)?I currently do this sort of thing by calling a new page in a hidden IFrame, which will then generate new output, and use _javascript_ to replace the target DIV's innerHTML.This makes the page look to be dynamic, and not reload (therefore saving form values and helping preserve the user experience).With your approach, I should be able to move the output generation into a CFC, and update the page with a simple JS call, and no page reload or call to an IFrame.This brings business rule logic back to the server where it should be, and gives me greater control over the process.Either way would work, but now all of a sudden, I can see where a web service is useful.In the past, it's been a little grey My thoughts... Shawn -Original Message- From: Rob [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 17, 2004 4:39 PM To: CF-Talk Subject: Re: _javascript_ remoting with cfcs On Wed, 2004-03-17 at 15:27, Nathan Strutz wrote: That's great, but man do you have a lot of time on your hands... I guess - took about 2 days to do the whole thing (would've taken longer if Dave didnt hook me up with the soap SOAPAction value ) It's a cool toy for sure though, although I can't think of a use for it. Hehehe - yeah I know me either really. I had a dream to make it a couple days ago so I figured might as well. How browser compatabile is the _javascript_? like will it run on IE5~ish browsers? It works on my linux Mozilla 1.4.1 and IE 6.0. I *think* it'll work on IE 5... I should try XP too. Well it's kind of neat even if it is usless at present. Cheers, -- Rob [EMAIL PROTECTED] _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Javascript remoting with cfcs
What about Dan Switzer's Client/Server Gateway JSAPI? Have you toyed with this at all? http://www.pengoworks.com/workshop/js/gateway/ Mike For instance - what if I had a page that had to dynamically change or update parts of the page (i.e. search results)?I currently do this sort of thing by calling a new page in a hidden IFrame, which will then generate new output, and use _javascript_ to replace the target DIV's innerHTML.This makes the page look to be dynamic, and not reload (therefore saving form values and helping preserve the user experience). With your approach, I should be able to move the output generation into a CFC, and update the page with a simple JS call, and no page reload or call to an IFrame.This brings business rule logic back to the server where it should be, and gives me greater control over the process.Either way would work, but now all of a sudden, I can see where a web service is useful.In the past, it's been a little grey [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Javascript remoting with cfcs
On Wed, 2004-03-17 at 16:15, Michael T. Tangorre wrote: What about Dan Switzer's Client/Server Gateway JSAPI? Have you toyed with this at all? http://www.pengoworks.com/workshop/js/gateway/ Oh wow man. you just killed me :( Well, it looks like he did it as well. Oh well so much for originality. And his works on my mozilla too - bogus. Well, I still had fun making it. -- Rob [EMAIL PROTECTED] [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Javascript remoting with cfcs
On Wed, 2004-03-17 at 16:15, Michael T. Tangorre wrote: What about Dan Switzer's Client/Server Gateway JSAPI? Have you toyed with this at all? http://www.pengoworks.com/workshop/js/gateway/ Ah no his is totallly different ... thank goodness :-D he is using an iframe and wddx (it looks like) mine is straight up web services (like flash remoting kind of I guess - but cooler I think becuase you get full objects with this and I dont think you get full objects with flash I could be wrong though) His is way more stable and cool - mine is more proof of concept / pointless :) -- Rob [EMAIL PROTECTED] [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Javascript remoting with cfcs
On Mar 17, 2004, at 4:26 PM, Rob wrote: On Wed, 2004-03-17 at 16:15, Michael T. Tangorre wrote: What about Dan Switzer's Client/Server Gateway JSAPI? Have you toyed with this at all? http://www.pengoworks.com/workshop/js/gateway/ Ah no his is totallly different ... thank goodness :-D he is using an iframe and wddx (it looks like) mine is straight up web services (like flash remoting kind of I guess - but cooler I think becuase you get full objects with this and I dont think you get full objects with flash I could be wrong though) Rob I think this is cool like prior posts see a use for it in ryo RIA apps such as a drill-down or chat, etc where you want to efficiently communicate with a server or service and update the existing page instead of replacing it. I think this comes very close to Flash remoting... except the bit about getting the object at the client. The full impact of this hasn't ripenedin my mind yet -- at the very least you could have a client-side app that trolls for web services -- when it finds one it could dynamically customize itself to utilize/communicate with that particular ws. I think you could do some very exciting things with this. Dick P.S. doesn't work with Safari His is way more stable and cool - mine is more proof of concept / pointless :) -- Rob [EMAIL PROTECTED] [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]