[jQuery] Sort options in select.

2010-01-18 Thread NMarcu
Hello all, What's the best way to sort options in select. I found a jquery plugin sortOptions(), but if I have options: Address 1 Address 2 Address 3 Address 100 Address 200 , will be sort like this: Address 1 Address 100 Address 2 Address 200 Address 3 ...and is not good. Do you have another

[jQuery] Add, remove rows to table,

2010-01-16 Thread NMarcu
It's normal, after append a new row in a table, to not access a td (from the new row), with his id or class?

[jQuery] tabs in one line, on small resolution

2010-01-12 Thread NMarcu
Hello all. I'm using jquery tabs, and I have 6 tabs. On a big resolution, everithing is OK, but on 800x600, the last tab, go to second line. How can I set tabs, to remain in one line, not depending by resolution, or of the number of tabs?

[jQuery] JQuery files(.js) required

2010-01-07 Thread NMarcu
Hello, My site is loading very slow with all js files imported, so I putted all in one single file. I have a question. I have some file that I think I don't need it. I'm loading this files: jquery-1.3.2.js, jquery.bgframs.js, jquery.ui-1.7.2.custom.min.js, ui.core.js, ui.draggable.js,

[jQuery] jQuery Load, use in Django(help to do load two times)

2009-12-04 Thread NMarcu
Hello all, I have a strange problem with jquery load. I have this two loads on a click event: action='first'; $( '#operators_list_div' ).html( 'nbsp;' ).load( '{% url add_save_view %}',{'action':action, }); action='second'; $( '#address_list' ).html( 'nbsp;' ).load( '{% url add_save_view

[jQuery] Is possible to update two div with the same load?

2009-12-04 Thread NMarcu
Hi, I need to update a div that contain a table, and another one that contain a drop down list, that is build depending on what is in one table from db(the first div depend on this also). It's possible to update the 2 divs with the same load, or need to use two load. I try this but not worked

[jQuery] JQuery Dialog, bug when page loading?

2009-11-18 Thread NMarcu
Hello all, I have a question, I'm not sure if is a Dialog bug or I do something wrong. When page is loading(at the beginning). I can see for a short time(approx 1 sec) the component of the Dialog. If I use a confirmation Dialog, with the question: Are you sure?, I get this messages on the

[jQuery] How to get the column index, on click on column head.

2009-11-16 Thread NMarcu
Hello all. Like this: var ColIndex = $(this).parent().children().index($(this)); I get the column index, when click on a row(not the table head). How can I get the index of column, when click on the head of column?

[jQuery] uncaught exception: Syntax error, unrecognized expression: %}, on using ajax

2009-11-05 Thread NMarcu
Hello all, I got an error, and I don't know how to pass on it. I got this error when I try to use ajax from django templates. I use this, from jquery: $('#create-user').click(function() { $( '#test_div' ).load( {% url test_ajax %}); }); I have this button: button