someone have already used dialog_buttons_ok_cancel but meet error Element type "g:dialog_buttons_ok_cancel" must be followed by either attribute specifications, ">" or "/>".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-26-2018 02:50 AM
I tried to create a dialog window. but when i use <g:dialog_buttons_ok_cancel ok="return validateComments()"ok_type="button" cancel_type="button" /> in my html . it caused the error Element type "g:dialog_buttons_ok_cancel" must be followed by either attribute specifications, ">" or "/>". some one have found a solution for this?
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-26-2018 11:24 AM
Hi,
Use it like this
<g:dialog_buttons_ok_cancel ok="return validateComments()"ok_type="button" cancel_type="button" > </g:dialog_buttons_ok_cancel>
Please mark my answer correct/helpful if it helped you solve your issue.
-Anurag
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-27-2018 08:02 AM
Hey,
Just checking if this worked or not? If it id then can you please close this thread by marking my answer correct?
-Anurag
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2020 01:02 AM
I tried this but it's still showing me the same error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2019 05:50 AM
I know it is pretty old but if you like me learning about Modal from SN Guru and got to this topic the error can be fixed by adding space in :
ok="return validateComments()<add space here>"ok_type="button"