Hi,
My requirement is when i close the browser, from javascript i want to
call java application using HttpService in Flex.
I am using FABridge to call java application using HttpService from
javaScript.
JavaScript code snippet
----------------------------------
var flexApp = null;
var initCallback = function()
{
flexApp = FABridge.flash.root();
}
FABridge.addInitializationCallback("flash",initCallback);
function saveChanges() {
if (flexApp!= null) {
var dataChangedFlag = flexApp.dataChangedFlag();
if(dataChangedFlag) {
var closeWin = window.confirm("Do you want to save your changes?");
if (true) {
flexApp.httpService.request.reqParamMode="saveChanges";
flexApp.setUnSavedDataAsXML();
flexApp.httpService.send();
flexApp.closeWindow();
alert('done...');
}
}
}
Code is failing to identify httpService object.
If any one know's any other mechanism to handle browser close also
fine. Some how i want to call java application to save changes i made
in flex application when browser is closed.
very very urgent......................
Regards,
SriHari
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/