Domitian
04-23-2007, 05:36 PM
Hey Guys, I was wondering if someone could help me. I'm having a problem with my app in IE. It works perfectly in FF. I knew I'd have to fix some syntactical issues with trailing commas and whatnot. These have been ironed out. My issue now is that I have inline scripts on the HTML page, and I according to the debugger, the issue is in onAvailable. Any help would be appreciated thanks.
Code for the inline script:
<script type="text/javascript">
/**
* Login functionality to reload the page after the login is successful
*/
function loginCallback(oElement, bSuccess, oResponse)
{
if(bSuccess)
{
window.location.reload();
}
else
{
Load.handleFailure(oElement, oResponse);
}
}
var loginBtn = new Ext.Button(Ext.get('login-div'), {text:"Login", id:"loginBtn"});
loginBtn.on('click', function(){
Load.processForm('Logging In', 'login', '', false, loginCallback, 'message-center');
});
changeInputs();
</script>
Code for the inline script:
<script type="text/javascript">
/**
* Login functionality to reload the page after the login is successful
*/
function loginCallback(oElement, bSuccess, oResponse)
{
if(bSuccess)
{
window.location.reload();
}
else
{
Load.handleFailure(oElement, oResponse);
}
}
var loginBtn = new Ext.Button(Ext.get('login-div'), {text:"Login", id:"loginBtn"});
loginBtn.on('click', function(){
Load.processForm('Logging In', 'login', '', false, loginCallback, 'message-center');
});
changeInputs();
</script>