[Building Sakai] Debugging Javascript & Velocity

Adrian Fish adrian.r.fish at gmail.com
Wed Apr 24 06:04:57 PDT 2013


Does the generated form look alright when you inspect it in firebug? You
could take the submitform bit out, click the button and then inspect it
just to make sure the action is being set up correctly. Just for
exclusion's sake.


On 24 April 2013 12:02, Daniel Merino <daniel.merino at unavarra.es> wrote:

> Hi everybody.
>
> I'm trying to fix a local patch that does not work, but I'm not able to
> find the error. Is Javascript code running inside a Velocity template,
> two technologies that I don't know very well. I hope some experienced
> developer can help me.
>
> In a vm file inside content tool, I have this code:
>
> <input type="button" class="active" name="savechanges" id="savechanges"
>
> onclick="javascript:showNotif('submitnotifxxx','savechanges','addContentForm');document.getElementById('addContentForm').action='#toolLink("ResourcesAction"
> "doMultipleFoldersUpload")';submitform('addContentForm');"
> value="$tlang.getString("label.continue")" accesskey="s" />
>
> that renders a Continue button. This button should call
> doMultipleFoldersUpload method in ResourcesAction.java class, but I have
> checked that this method is not called and no error is shown inside
> Tomcat's logs.
>
> I don't know how to continue in order to detect this error. Could
> somebody give me any hint or idea?
>
> If you need more information, just tell me.
>
> Thanks in advance.
> Best regards,
> --
> Daniel Merino Echeverría
> daniel.merino at unavarra.es
> Gestor de teleformación - Centro Superior de Innovación Educativa.
> Tfno: 948-168489 - Universidad Pública de Navarra.
> _______________________________________________
> sakai-dev mailing list
> sakai-dev at collab.sakaiproject.org
> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>
> TO UNSUBSCRIBE: send email to
> sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of
> "unsubscribe"
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20130424/f02f1141/attachment.html 


More information about the sakai-dev mailing list