Hi everyone
this is my first post so I hope I am posting to the right place.
I am trying to develop a dialog/modal plugin. this is my first plugin and I'm not sure if I have produced it in the correct way. The problem I am having is that the $.extend is not updating the settings object. I've got 2 elements using the plugin. the #dialog...
Hi all,
I have a situation where I've overrided the admin_change.html template for a given model. I've created a file such as:
/myproject/templates/admin/myapp/mymodel/change_form.html
Then, in the overrided change_form.html template, where I am editing an existing object instance, I want to have access to that model instance varia...
Hi:
When I make some components in my web page,I found there a so many duplicate codes,for example,in my page I want to make two charts.
THe biggest difference of them is the data store and the title,however they have many same attributes.
I do this by define a new instance of Ext.chart:
var chart1=new Ext.chart.LineChart{config1};
...
I'm trying to create a jquery plugin
initially the plugin is used like
$('element').plugin;
Now, i want to extend it further to call specific operations like
$('element').plugin.create;
or
$('element').plugin.delete;
any way of doing this?
...
How can I extend an embedded interpreter with C++ code? I have embedded the interpreter and I can use boost.python to make a loadable module (as in a shared library) but I don't want the library floating around because I want to directly interface with my C++ application. Sorry if my writing is a bit incoherent.
...
http://www.quirksmode.org/dom/domform.html
I was reading through the site as mentioned above and tried to implement it in my project. But it just doesn't work when i click on "get me more fields" button. Here is the code:
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//...
To illustrate my question more clearly, let's suppose I have a include.html template with content:
{% block test_block %}This is include{% endblock %}
I have another template called parent.html with content like this:
This is parent
{% include "include.html" %}
Now I create a templated called child.html that extends parent.html:
...
Hey,
I have a method which I will accept either a single object or a list of objects. I want to add whatever is passed to another list. Currently, my method looks like this:
def appendOrExtend(self, item):
if type(item).__name__ == "list":
self.list.extend(item)
else:
self.list.append(item)
It seems to me that there shoul...