[Building Sakai] Help... Scorm tool Edia : call the quitButton by javascript NOT work..
swwangl at tsmc.com
swwangl at tsmc.com
Sun Apr 8 16:42:00 PDT 2012
Dear All:
I am not famailiar with wicket used by sakai Edia tool..
I need to call the quitButton by javascript: document.getElementsByName
("quitButton").item(0).click();
I spend much time, buit it NOT work... Could anyone give me some advise..
==PlayerPage.html
<input tabindex="-1" class="scormActionButton" type="image"
wicket:id="quitButton" value="Submit For Grading" alt="Submit For Grading"
title="Submit For Grading" />
<input tabindex="-1" class="scormActionButton" type="image"
wicket:id="quitShowButton" value="Submit For Grading" alt="Submit For
Grading" title="Submit For Grading" />
===ButtonForm.java
quitShowButton.add(new SimpleAttributeModifier("onclick",
"alertTimerClickHandler_Quit(\""+msg_quit+"\", \""+msg_exit+"\", "+stopMin
+")"));
==javascript
function alertTimerClickHandler_Quit(){
var obj=document.getElementsByName("quitButton").item(0);
Wicket.ajaxRolloverImageButtonManager.activateBtn(obj.id);
obj.click();
}
Best Regards,
BSID/ERP
Joan Wang 王琇緯
---------------------------------------------------------------------------
TSMC PROPERTY
This email communication (and any attachments) is proprietary information
for the sole use of its
intended recipient. Any unauthorized review, use or distribution by anyone
other than the intended
recipient is strictly prohibited. If you are not the intended recipient,
please notify the sender by
replying to this email, and then delete this email and any copies of it
immediately. Thank you.
---------------------------------------------------------------------------
More information about the sakai-dev
mailing list