Hi,
use everytime the async calls!!!
function Edit(save_id, edit_id,task_name, id, table_id)
{
var b;
var proj = document.getElementById("DDProject");
var box = document.getElementById("DDYears");
document.getElementById(save_id).style.display='inline';
document.getElementById(edit_id).style.display='none';
calendar.WebForm1.Edit(task_name ,
proj.options[proj.selectedIndex].value,
box.options[box.selectedIndex].value,
table_id,
Edit_callback);
}
function Edit_callback(res)
{
var b = res.value;
if (b != null)
{
alert('Ok');
}
else
{
alert('This element was deleted');
};
b=null;
}
Regards,
Michael
On 6/6/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> I'm using .net 1.1. I have client-side script like this:
> function Edit(save_id, edit_id,task_name, id, table_id)
> {
> var b;
> var proj = document.getElementById("DDProject");
> var box = document.getElementById("DDYears");
> document.getElementById(save_id).style.display='inline';
> document.getElementById(edit_id).style.display='none';
> b = calendar.WebForm1.Edit( task_name ,
> proj.options[proj.selectedIndex].value,
> box.options[box.selectedIndex].value, table_id).value;
> if (b != null)
> {
> alert('Ok');
> }
> else
> {
> alert('This element was deleted');
> };
> b=null;
> }
>
> Server side code return some value or null. On IE this code work
> correctly, but on FF 1.5.4 always run second alert (This element was
> deleted). Can you tell me any way to fix this problem?
>
>
> >
>
--
Best regards | Schöne Grüße
Michael
Microsoft MVP - Most Valuable Professional
Microsoft MCAD - Certified Application Developer
http://weblogs.asp.net/mschwarz/
http://www.schwarz-interactive.de/
mailto:[EMAIL PROTECTED]
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ajax.NET Professional" 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/ajaxpro
The latest downloads of Ajax.NET Professional can be found at
http://www.ajaxpro.info
-~----------~----~----~----~------~----~------~--~---