Popup-Fenster für Ruby on rails

Habe ich javascript für das Popup als POPUP.JS

In meinen Augen ich will das popup

 <%= link_to "Start" , answer_exam_group_answers_path(@exam_group), :class => "submit_button", :popup => ['exam_dialog','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,fullscren=yes,resizable=no']%>

Wird als HTML -

<a href="/exam_groups/1/answers/answer" class="submit_button" onclick="window.open(this.href,'exam_dialog','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,fullscren=yes,resizable=no');return false;">Start</a>

Aber ich brauche das als HTML -

<a href="/online_student_exam/start_exam/1743" class="user_button" onclick="this.hide();window.open(this.href,'exam_dialog','toolbar=no,location=no,menubar=no,scrollbars=yes,resizable=no');return false;" style="display: none;"> ? Start Exam</a>

Kann mir jemand helfen, für die syntax.hide() ans ? Start-Prüfung

InformationsquelleAutor Raja Sekar | 2013-10-09

Schreibe einen Kommentar