Nicolas Fahr
Top achievements
Rank 1
Nicolas Fahr
asked on 06 Mar 2011, 01:15 PM
When using following client side code
the PostBack does not get triggered in Firefox after first selecting cancel and then reopining the window and calling confirm
IE and Opera are OK.
Any ideas?
Thanks
convert:
function
() {
var
cb =
function
(arg) {
if
(arg) {
__doPostBack(
''
,
''
);
}
}
originalRadConfirm(
"Question"
,
cb, 200,
200,
null
,
"Headline"
);
},
the PostBack does not get triggered in Firefox after first selecting cancel and then reopining the window and calling confirm
IE and Opera are OK.
Any ideas?
Thanks
4 Answers, 1 is accepted
0
Hi Nicolas,
Could you please post the full JavaScript code along with information on how you call the radconfirm dialog?
All the best,
Georgi Tunev
the Telerik team
Could you please post the full JavaScript code along with information on how you call the radconfirm dialog?
All the best,
Georgi Tunev
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Eric Villemure
Top achievements
Rank 1
answered on 13 Apr 2011, 02:42 PM
Hi, do you have any update on this?
I am trying to make this work in Firefox 3.6.16 but no postback occurs
I can make it work with the browser's confirm function but since we need translations on the Yes No buttons and the beautiful Telerik skin we prefer using radconfirm. Do you have any idea that could help me. Thank you
I am trying to make this work in Firefox 3.6.16 but no postback occurs
function
PopupConfirmDialog(eventtarget, eventargs, hiddenFieldId, msg) {
$get(hiddenFieldId).value =
false
;
radconfirm(msg,
function
(args) {
if
(args) {
$get(hiddenFieldId).value = args;
__doPostBack(eventtarget, eventargs);
}
else
{
__doPostBack(
''
,
''
);
}
});
}
I can make it work with the browser's confirm function but since we need translations on the Yes No buttons and the beautiful Telerik skin we prefer using radconfirm. Do you have any idea that could help me. Thank you
function
PopupConfirmDialog(eventtarget, eventargs, hiddenFieldId, msg) {
$get(hiddenFieldId).value =
false
;
if
(confirm(msg)) {
$get(hiddenFieldId).value =
true
;
__doPostBack(eventtarget, eventargs);
}
else
{
__doPostBack(
''
,
''
);
}
}
0
Nicolas Fahr
Top achievements
Rank 1
answered on 13 Apr 2011, 02:58 PM
Unfortunately i cannot provide a full working sample at this time.
In my case, the radconfirm is called when the users clicks on a RadToolBarButton:
In my case, the radconfirm is called when the users clicks on a RadToolBarButton:
function
rtbItemActions_ClientButtonClicking(sender, args) {
var
item = args.get_item();
var
commandName = item.get_commandName();
switch
(commandName) {
case
'convert'
:
var
invoiceControl = $find(
'<%= invoiceControl.ClientID %>'
);
args.set_cancel(
true
);
invoiceControl.convert();
break
;
...
}
}
0
Hi Nicolas,
Please make sure that this JavaScript function exists in the page in the first place. If there are no controls that use it it will not be output by the ASP parser. You can make sure that it is available by forcing the ScriptManager to output it (see the following article: http://msdn.microsoft.com/en-us/library/system.web.ui.clientscriptmanager.getpostbackeventreference.aspx).
Without your actual code there is little we can do to investigate this issue.
All the best,
Marin
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.