Hello everyone for once again,

After the extremely helpful comments of Dan (the fireGub enlightment) and, 
Chris and Jordan on the actual use of ajaxCFC, I have manage to move on another 
issue. The idea   of Ajax is quite clear at the moment in my head and I have 
manage to make a request to the server, receive a response and handle it....  
almost..... 

The following example worked 100% ok:

test.cfc

<cfcomponent extends="ajax">
        
        <cffunction name="GetCurrentTime" returntype="string" output="true">
<cfset var szTime = TimeFormat(Now(), "h:mm:ss tt")>
<cfsavecontent variable="jsReturn"><cfoutput>
                        Aftin tin ora:#szTime# Ton lene <h1>PSILO</h1>
                </cfoutput></cfsavecontent>
                <cfreturn jsReturn />
</cffunction>
                

</cfcomponent>
- - - - - - - 

test.cfm

<!--<script type="text/javascript">
                        function content()      {
                                // send data to CF
                                DWRUtil.useLoadingMessage();
                                
DWREngine._execute(_ajaxConfig._cfscriptLocation, null, 'GetCurrentTime', null, 
jsReturn);
                                }
                        
                        function jsReturn(r) {
                             sDumper(r);
                             }                  
                </script>
</head>
<body>
<a href="#"class="links"onClick='content();'>pos ton lene</a></li>-->
- - - - 

When I am trying to replace the sDumper(r) with document.write(r);

then I am getiing the most unsuall alert message 
"typeError: $("disabledZone")has no properties" and even though the requested 
content displayed the browser keeps loading for ever and freezes (you cannot 
refresh it). 

I ve check the internet for the error but no much of a result.

Any ideas more than welcome.

( I am thinking to document a Ajaxcfc newbie problems trilogy ) 

Please participate

hahaha

thanx Ioannis







~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:265558
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to