[jQuery] Re: Using jQuery UI with Google Maps

2010-03-01 Thread Thai Dang Vu
I think I found an answer for this problem. The answer is: do not create a dialog on the fly (i.e. do not create a div on the fly and then $(div).dialog()), but create a dialog before initializing the google map. On Wed, Feb 24, 2010 at 2:41 PM, Thai Dang Vu tdan...@gmail.com wrote: Hi, I

[jQuery] Using jQuery UI with Google Maps

2010-02-24 Thread Thai Dang Vu
Hi, I create a jQuery dialog which is above a Google map. If I drag that dialog, the whole google map dispappears. Does anybody have any idea of what happened? Thank you.

[jQuery] UI Dialog: any way to move the close button to the header?

2010-01-14 Thread Thai Dang Vu

[jQuery] How to change a form action?

2009-12-30 Thread Thai Dang Vu
I have a form like this form id='form' action='...'.../form I want to change the action of that form. So I use $('#form').attr('action', 'http:/'); but there's an error saying something like 'this element property cannot be changed'. Is it possible to change a form action?

Re: [jQuery] Re: How to change a form action?

2009-12-30 Thread Thai Dang Vu
It's very embarrassing. I spent an hour with it because it was not working. Then suddenly, it works. 2009/12/30 Šime Vidas sime.vi...@gmail.com Well, Ive tested in Firefox and IE8 and it works.

[jQuery] Re: Plugin to let the user draw rectangles

2009-12-29 Thread Thai
Hi Richard, Could you explain a little bit about these lines (esp. the appendTo and distance) $.extend($.ui.boxer, { defaults: $.extend({}, $.ui.mouse.defaults, { appendTo: 'body', distance: 0 }) }); I put the code to my page and the after I

Re: [jQuery] Re: jQuery suggestion

2009-12-29 Thread Thai Dang Vu
Idea). On Mon, Dec 28, 2009 at 3:26 PM, Scott Sauyet scott.sau...@gmail.comwrote: On Dec 28, 2:55 pm, Thai Dang Vu tdan...@gmail.com wrote: I'm using IntelliJ Idea 9.0 which supports code completion/suggestion for javascript. It doesn't work with the innerHeight/Width because

[jQuery] jQuery suggestion

2009-12-28 Thread Thai Dang Vu
I'm using IntelliJ Idea 9.0 which supports code completion/suggestion for javascript. It doesn't work with the innerHeight/Width because of this // innerHeight and innerWidth jQuery.fn[inner + name] = function(){ return this[0] ? jQuery.css(

Re: [jQuery] Fill key va value from response of Json { 1: Quan 1, 2: Quan 2, 3: Quan 3, 4: Quan 4 } in listbox.

2009-11-04 Thread Thai Dang Vu
Can you try this (never try it by myself) $('#edit-field-city-value option:not(first-child)').remove(); for (var key in your_json_object) { $('#edit-field-city-value').append('option value=' + key + '' + your_json_object[key] + '/option'); } On Wed, Nov 4, 2009 at 4:06 AM, Tan

[jQuery] jQuery UI draggable

2009-10-26 Thread Thai Dang Vu
Suppose that I have this div div id='draggable' div id='header'x/div div id='content'zzz/div /div I use jQuery UI draggable to make the div 'draggable' draggable $('#draggable').draggable(); Then I can press the mouse anywhere in the 'draggable' div and drag that div. Now I

[jQuery] jQuery UI datepicker

2009-10-19 Thread Thai Dang Vu
Hi everybody, Is there any way to have the jQuery UI datepicker appearing as an image at first and then whenever we click on that image, the calendar will appear in a floating div (i.e. everything on the page isn't moved)? Thank you.

[jQuery] Re: How to parse a json object?

2009-10-09 Thread Thai Dang Vu
That works and :-) thank you so much. On Fri, Oct 9, 2009 at 6:00 AM, Chippo mathew.chap...@gmail.com wrote: Hi Thai you could try something like this I think... var obj = {'title':'mytitle','etc':'etc'}; for(var a in obj){ // a would be the key ie 'title' // obj[a] would get the value

[jQuery] How to parse a json object?

2009-10-08 Thread Thai Dang Vu
Hi everybody, Supposed that I have a json object but I don't know anything about its keys and values. Is there anyway to print out all the key and value pairs in that object? Thanks.

[jQuery] Re: How to parse a json object?

2009-10-08 Thread Thai Dang Vu
paste it into www.jsonlint.com to pretty-print it. If you have a JavaScript object, one easy way to view it is to load your page in Firefox with Firebug installed, and then add this line to your code: console.dir( yourObject ); -Mike On Thu, Oct 8, 2009 at 11:20 AM, Thai Dang Vu tdan

[jQuery] Re: li selection problem

2008-10-24 Thread Thai Vo
this might sound dumb, but try using 'display:block;'? On Fri, Oct 24, 2008 at 4:32 PM, Alexandre Plennevaux [EMAIL PROTECTED] wrote: Yup I second Mike's advise. Make sure first that CSS allows it in a static demo file, then when you get it to work, you'll know what to script exactly. Just