Click here to Skip to main content
       

JavaScript

 
SuggestionRe: JavaScript: How to reference user control inside content page? PinmemberBlikkies13-Feb-13 3:14 
AnswerRe: JavaScript: How to reference user control inside content page? Pinmemberryanb3114-Feb-13 4:33 
AnswerRe: JavaScript: How to reference user control inside content page? Pinmembertwseitex15-Feb-13 1:02 
Questiongetting rid of  &Nbsp's [modified] PinmemberBrianCampbellMCAD11-Feb-13 4:52 
AnswerRe: getting rid of  &Nbsp's PinmemberBrianCampbellMCAD11-Feb-13 9:17 
QuestionCreate Appointment in yahoo calendar using API Pinmembersrinivasan.p.t29-Jan-13 4:08 
AnswerRe: Create Appointment in yahoo calendar using API Pinmemberryanb314-Feb-13 9:52 
QuestionJava Script is not working in Chrome PinmemberFlex_Query29-Jan-13 3:17 
The code below works fine on IE and FF but not on Google Chrome.
Please can someone help me to find out the mistake?.
 

Flex Code:
Public function init():void
{
ExternalInterface.addCallback("getCloseConfirmMessage", closeConfirmMessage);
    
ExternalInterface.call("setUpBeforeUnload",FlexGlobals.topLevelApplication.id);
}
Public function closeConfirmMessage():void
{
     //DB Updation code
}
 
Java Script :
   <script language="javascript" type="text/javascript">
     var fxControl;
     function confirmClose()
     {    
alert("Please click OK to end the session");                                   fxControl.getCloseConfirmMessage();         
     };
     function setUpBeforeUnload( appName )
     {    
          fxControl = document[ appName ] || window[ appName ];         
window.onbeforeunload = confirmClose;
     };
 
</script>
QuestionRe: Java Script is not working in Chrome Pinmemberryanb314-Feb-13 9:52 
AnswerRe: Java Script is not working in Chrome PinmemberBrisingr Aerowing10-Mar-13 11:19 
QuestionPosting a message from diffrent domain PinmemberAghaKhan28-Jan-13 23:01 
GeneralRe: Posting a message from diffrent domain PinmemberPrasad Khandekar14-Mar-13 0:58 
QuestionProject Help Please Pinmemberjmallen25-Jan-13 5:53 
AnswerRe: Project Help Please Pinmembersarinya_chalat3-Feb-13 17:17 
AnswerMessage Automatically Removed PinmemberMember 822740423-Jan-13 2:30 
Questionproject question Pinmemberjacklyne16-Jan-13 21:04 
AnswerRe: project question PinmvpRichard MacCutchan17-Jan-13 0:45 
GeneralRe: project question PinmemberAnalogNerd17-Jan-13 6:21 
AnswerRe: project question PinmemberJ4amieC17-Jan-13 1:09 
QuestionAbout mobile web debugger Pinmembertidelgl13-Jan-13 20:18 
QuestionRegular Expression PinmemberAB777111-Jan-13 5:10 
AnswerRe: Regular Expression Pinmembervinodkumarnie18-Jan-13 22:44 
AnswerRe: Regular Expression PinprotectorAspDotNetDev24-Jan-13 15:09 
QuestionHow to put clipboard data into TextBox PinmemberRavindra Bisen10-Jan-13 1:02 
AnswerRe: How to put clipboard data into TextBox PinmemberJ4amieC10-Jan-13 3:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web01 | 2.8.1411022.1 | Last Updated 22 Nov 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid