TypeError: OkDialog.clickOk is not a function
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2022
01:49 AM
10-04-2022
01:49 AM
TypeError: OkDialog.clickOk is not a function
Today i got a weird error message as TypeError: OkDialog.clickOk is not a function when execution running.
Have anyone got this kind of error. My function looks like below
function OkCancelDialog_ClickOk()
{
this.oKButton.ClickButton();
}
Scripting Language : JavaScript
3 REPLIES 3
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2022
02:12 AM
10-04-2022
02:12 AM
By the looks of it, your function is called OkCancelDialog_ClickOk() which is different to OkDialog.clickOk() 🤔
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2022
03:01 AM
10-04-2022
03:01 AM
it just typo I renamed the object to okButton and onClick event is expected after clicking "ClickButton"
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2022
04:48 AM
10-04-2022
04:48 AM
Have you corrected the "typo", is it now working?
