> What exactly do you mean "My gateways just use a script > tag." Are you generating a script into a hidden iframe?
They're a feature in the onTap framework... The xml syntax makes them reasonably easy to use, you put something like this on the main page: <cfmodule template="#request.tapi.xhtml()#"> <div xmlns:tap="http://www.fusiontap.com"> <tap:gateway> <tap:event name="gaterespond"> <tap:import target="content" /> </tap:event> <div id="menu"> <a href="a">a</a> <a href="b">b</a> <a href="c">c</a> </div> </tap:gateway> <div id="content" /> </div> </cfmodule> Then on the a, b and c pages you'd have something like this: <cfmodule template="#request.tapi.xhtml()#" return="content"> <div> <div id="title">Page A</div> <div>various content here</div> </div> </cfmodule> <cfoutput>#request.tapi.html.gatewayRespond(content)#</cfoutput> Then when you view the main page the individual links are submitted via a <script> tag to the server and the content from the a, b or c page is automatically injected into the "content" div. This is a very simple example, but the principal is the same as with more complex interfaces. There's a little more thought that needs to go into making it degrade gracefully for non-javascript enabled browsers, but it's honestly not terribly challenging -- it's basically an extra if statement and another function call or two. The gateway itself looks like this: <span id="[gatewayid]"> <script language="JavaScript"> </script> </span> With some extra javascript functions output prior to the gateway (event handlers for the gateway's send, receive, error, timeout and resend events). So you see it's just an SRS style tool, though it's pretty powerful. Unless you need to consume a webservice directly from the browser or submit http post requests (which isn't really necessary in most cases for this sort of thing) then this should be able to handle any asynch-javascript you need. Admittedly I'm not using it for large form submissions, but I prefer to submit those normally or into an iframe. s. isaac dealey 954.522.6080 new epoch : isn't it time for a change? add features without fixtures with the onTap open source framework http://macromedia.breezecentral.com/p49777853/ http://www.sys-con.com/author/?id=4806 http://www.fusiontap.com ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:5:152144 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/5 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:5 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.5 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
