[Building Sakai] Debugging Javascript & Velocity

David Adams da1 at vt.edu
Wed Apr 24 04:11:52 PDT 2013


Hi Daniel,
To troubleshoot Javascript, you'll need a client-side debugger. I'm fond of
the Developer Tools built into Google Chrome (under the Tools submenu).
Firefox has similar tools (Firebug was the best one when I was using
Firefox). If you pull those tools up you should immediately see if there
are issues on the page. Then if you click the bad link, you should see
what's going wrong. The other, simpler option would be to just pull up the
Javascript Console on whatever browser you're using and it should display
some error or other that should lead you in the right direction.

-dave

David Adams
Director, Systems Integration and Support
Virginia Tech Learning Technologies


On Wed, Apr 24, 2013 at 6:02 AM, 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/25c3b82b/attachment.html 


More information about the sakai-dev mailing list