Tag Archives: html

Simple asynchronous form submission using jQuery

It’s not hard to submit a form asynchronously in jQuery. Here’s a little example. I put a block like this right below my form element. <script type=”text/javascript”> $(“#my_form”).submit(function() { $.ajax({ type: “POST”, url: “/path/to/post/handler/”, data: $(“#my_form”).serializeArray(), success: function() { // … Continue reading

Posted in General | Tagged , , , , , , | 2 Comments

Cleaner pattern for
  • loops in Django templates?
  • I find myself typing stuff like this a lot: {% for item in list %} {% if forloop.first %}<ul>{% endif %} <li>{{ item.value }}</li> {% if forloop.last %}</ul>{% endif %} {% empty %} <p>No items in list.</p> {% endif %} … Continue reading

    Posted in General | Tagged , , | Leave a comment

    Help me with a CSS issue?

    Hey, having issues with CSS+HTML again.  I’m working with a resizable <div>, and I want to make sure that no matter what size it’s container, that I have a middle section that fills the “main” middle area of the div.  … Continue reading

    Posted in General | Tagged , , , , , , , , | 3 Comments

    Can we all agree that “Programming Language” := “Turing Complete”

    I’m tired of articles like this one that say things like XML essentially is a programming language that allows users to customize the underlying format of their word-processing documents It peeves me a lot when people refer to things like … Continue reading

    Posted in General | Tagged , , , | 2 Comments