Forum Discussion
_anomDiebolt_
Qrew Elite
Alex's formula:
This can be applied to Mark's inquiry as well. These two fragments are essentially equivalent:
<a class='Vibrant' style='font-size:14px; color:white; background:#6BBD57; white-space:nowrap;' onclick='$("#saveAndKeepWorkingMenuOption").click();'>Save & keep working</a>can be shortened to this (not tested):
<a class='Vibrant' style='font-size:14px; color:white; background:#6BBD57; white-space:nowrap;' onclick='saveAndKeepWorkingMenuOption.click();'>Save & keep working</a>It is a little know fact (to even seasoned developers) that modern browsers automatically create a global variable named after every attribute id in the page. So in the above formula instead of using a jQuery selector and jQuery's click() method, you can use native JavaScript and a raw reference to the global variable saveAndKeepWorkingMenuOption.
This can be applied to Mark's inquiry as well. These two fragments are essentially equivalent:
<a class='Vibrant' style='font-size:14px; color:white; background:#6BBD57; white-space:nowrap;' onclick='$("#saveButton").click();'>Save & Nothing More</a>
<a class='Vibrant' style='font-size:14px; color:white; background:#6BBD57; white-space:nowrap;' onclick='saveButton.click();'>Save & Nothing More</a>
RichieEyles1
5 years agoQrew Member
Can we check a box first and then save and carry on, when it is a new record?
------------------------------
Richie Eyles
------------------------------
------------------------------
Richie Eyles
------------------------------