[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 wrote: > Hi, > > I create

[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

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 > Well, Ive tested in Firefox and IE8 and it works. >

[jQuery] How to change a form action?

2009-12-30 Thread Thai Dang Vu
I have a form like this ... 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: jQuery suggestion

2009-12-29 Thread Thai Dang Vu
ith a tool like Idea). On Mon, Dec 28, 2009 at 3:26 PM, Scott Sauyet wrote: > On Dec 28, 2:55 pm, Thai Dang Vu wrote: > > I'm using IntelliJ Idea 9.0 which supports code completion/suggestion for > > javascript. It doesn't work with the innerHeight/Width because of th

[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('' + your_json_object[key] + ''); } On Wed, Nov 4, 2009 at 4:06 AM, Tan wrote: > Hi, all. > I have two listbox: >

[jQuery] jQuery UI draggable

2009-10-26 Thread Thai Dang Vu
Suppose that I have this div x zzz 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 want to drag the 'draggable' div only when I press the mouse on t

[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
e key ie 'title' > // obj[a] would get the value ie 'mytitle' > } > I think that will work I havent tried it myself though. > > > On Oct 9, 5:38 am, Thai Dang Vu wrote: > > Let me rephrase my problem. > > > > $.post('a.htm', $('#

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

2009-10-08 Thread Thai Dang Vu
t; 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 wrote: > >> 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] 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.