My problem is that I have a function that is to call blockUI both upon login and logout. BlockUI only fires upon logout.
Here's my code:
**code**
function Processing(dataString,l_processing,control)
{
if (l_processing == "yes")
{
$().ajaxStart(function()
{
$.blockUI(
{
message:
$('img#l-processing'),
css: {
border:
'none',
padding: '15px',
backgroundColor: '#000',
'-webkit-border-radius': '10px',
'-moz-border-radius': '10px',
'-ms-filter': 'progid:DXImageTransform.Microsoft.Alpha
(Opacity=50)',
'filter': 'progid:DXImageTransform.Microsoft.Alpha
(Opacity=50)',
opacity: '.5'
}
})
});
if(control == "logout")
{
$.ajax({
type: "POST",
url:
"logout.php",
data:
dataString,
});
ReloadPage();
}
else if(control == "login")
{
$.ajax({
type: "POST",
url: "login.php",
data: dataString,
});
ReloadPage();
//return false;
}
}
l_processing = "no";
control = "no";
}
**end code**
All vars are being passed correctly. "else if(control == "login")"
fires just fine, within the "if(l_processing == "yes")", but the
BlockUI portion does not start. However, when control = "logout"
BlockUI starts up just fine.
I've done alerts and find that all variables being sent into the
function are populating as they should.
Any ideas?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---
