This is a migrated thread and some comments may be shown as answers.

RadConfirm asp:button and firefox 3

7 Answers 71 Views
Window
This is a migrated thread and some comments may be shown as answers.
CSurieux
Top achievements
Rank 2
CSurieux asked on 22 Jul 2009, 04:30 PM
Hello,

I am using the traditional telerik work around for radconfirm working as a delete before confirm.
I omitted the code before which could be find in library....
        var callBackFn = function(arg) {  
            if (arg) {  
                callerObj["onclick"] = "";  
                if (callerObj.click) callerObj.click(); //Works fine every time in IE, but does not work for links in Moz     
 

But as the comment says, this does not works in FireFox.

Is there something new in this area to be able to use radconfirm in IE AND Firefox ?


Thanks

7 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 23 Jul 2009, 10:07 AM
Hi Christian,

I suggest to examine the "Alert, Prompt, Confirm" demo on our site where you can see how to extend the function.


Regards,
Georgi Tunev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
CSurieux
Top achievements
Rank 2
answered on 23 Jul 2009, 12:02 PM
Thanks Georgi,

Giving a first look to this new demo I noticed a mispelled <strnog> tag in your demo.
More later.

CS
0
CSurieux
Top achievements
Rank 2
answered on 23 Jul 2009, 12:25 PM
Hello Georgi,

I inspected the code and it seems similar to mine...but my 'Confirm postback button' is placed in an ajaxManager to be a 'Confirm call-back button' and it doesn't works ????
Even in IE ???

Is there any way to have it working with ajaxManager ???


Regards
CS
0
Georgi Tunev
Telerik team
answered on 23 Jul 2009, 01:21 PM
Hello Christian,

In such case I would suggest to use the approach shown in the attached file. The idea is to use ajaxRequestWithTarget in the callback function.


Greetings,
Georgi Tunev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
CSurieux
Top achievements
Rank 2
answered on 23 Jul 2009, 03:03 PM
Thanks,

Looks better than my

__doPostBack(callerObj.name,

'');

 



CS
0
CSurieux
Top achievements
Rank 2
answered on 24 Jul 2009, 02:43 PM
Hello Georgi,

I got some pb with your sample, button.id is not ok, asynch call back occurs but is not handled correctly by my c# button.

Your documentation speaks of c# button.UniqueID and it seems that this property doesn't go  js-side in 'id' but in 'name' property.
It works with button.name.
Where goes this c# UniqueID ?
is using button.name safe for any browser, is 'name' a standard js property ?

Thanks for help.

CS
0
Georgi Tunev
Telerik team
answered on 27 Jul 2009, 06:02 AM
Hello Christian,

Yes, you could use the name property in this scenario - especially when masterpage or other iNaming container is involved. The property is a standard one and is recognized by all major browsers.



Kind regards,
Georgi Tunev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Window
Asked by
CSurieux
Top achievements
Rank 2
Answers by
Georgi Tunev
Telerik team
CSurieux
Top achievements
Rank 2
Share this question
or