[jQuery] How can I make sure one AJAX call returns before another?

2008-09-22 Thread Namlet
I have several AJAX calls. Most of them retrieve values for drop-down lists and one fills in the data. Of course, unless the drop down lists are fully loaded, the data filler doesn't select them properly. Is there anyway to trigger the data filler after they are complete with more

[jQuery] Ajax not sending data correctly when it's a variable, but perfect when it the value is typed in instead.

2008-09-19 Thread Namlet
I have a simple AJAX call: $.ajax({ url: setBMBJSONString.php, data: stringJSON.toString(), success: function(rdata) { //var resp = eval('(' + rdata + ')');

[jQuery] Re: Ajax not sending data correctly when it's a variable, but perfect when it the value is typed in instead.

2008-09-19 Thread Namlet
Yes, same result. I added the toString() just in case. I've discovered more. Here is the code right before it that makes the variable: var OBJ = {}; $(:input).each( function () { OBJ[$(this).attr(name)] = $(this).val(); });

[jQuery] Re: Ajax not sending data correctly when it's a variable, but perfect when it the value is typed in instead.

2008-09-19 Thread Namlet
for others to dissect? On Sep 19, 1:04 pm, Namlet [EMAIL PROTECTED] wrote: Yes, same result.  I added the toString() just in case.  I've discovered more.  Here is the code right before it that makes the variable: var OBJ = {};                 $(:input).each( function

[jQuery] Simple question about Radio Buttons

2008-09-19 Thread Namlet
Why does this line of code not work for the radio button? if ($(this).attr(type) == radio) alert($(this).checked); I get 6 alert boxes (I have 6 Radio Buttons) and the alert says undefined every time. But half of them should be true and half should be false. Am I doing something wrong? here

[jQuery] Re: Simple question about Radio Buttons

2008-09-19 Thread Namlet
Well I fixed it, I had to use: $(this).attr(checked) to get the value. Should I have known this? On Sep 19, 2:48 pm, Namlet [EMAIL PROTECTED] wrote: Why does this line of code not work for the radio button? if ($(this).attr(type) == radio) alert($(this).checked); I get 6 alert boxes (I

[jQuery] Re: Simple question about Radio Buttons

2008-09-19 Thread Namlet
performant, since you are not executing the jQuery function in that case. -- Josh - Original Message - From: Namlet [EMAIL PROTECTED] To: jQuery (English) jquery-en@googlegroups.com Sent: Friday, September 19, 2008 1:11 PM Subject: [jQuery] Re: Simple question about Radio Buttons Well I

[jQuery] Re: borders work fine with all browsers except IE7

2008-09-17 Thread Namlet
? On Sep 16, 1:53 pm, ricardobeat [EMAIL PROTECTED] wrote: Impossible to help without seeing some code. I don't see any magical jQuery gurus around. On Sep 16, 12:01 pm, Namlet [EMAIL PROTECTED] wrote: I have a site with several borders that are part of jQuery commands. One has rounded

[jQuery] Re: How to serialize an Object to JSON String without making it POST like?

2008-09-17 Thread Namlet
So I need to write my own JSON serializer or is there something already available? If I do need to write my own, how can I contribute it back to the community? Thanks! On Sep 16, 4:28 pm, Mike Alsup [EMAIL PROTECTED] wrote: When I use this function to create a JSON object: var formObject

[jQuery] borders work fine with all browsers except IE7

2008-09-16 Thread Namlet
I have a site with several borders that are part of jQuery commands. One has rounded corners, others don't. IE7 doesn't render ANY of these borders. There are two divs that are not touched by jQuery, and their borders work fine. Everything that has a jQuery click event, or rounded corners has

[jQuery] Trying to use serializeArray to send JSON to a .NET 2.0 Web Service

2008-09-16 Thread Namlet
I am using serializeArray to send a form as a JSON object to a .NET 2.0 Web Service in C#. I am getting this error, prefix is the first field: responseText: {Message:Invalid JSON primitive: prefix.,StackTrace: at

[jQuery] How to serialize an Object to JSON String without making it POST like?

2008-09-16 Thread Namlet
When I use this function to create a JSON object: var formObject = $(:input).serialize(); and I print it, I get name=valuename=value... This isn't proper JSON string and the .NET webservice I'm sending it to barfs. How can I make it stay in the proper format, i.e. {'fname':'dave',

[jQuery] Re: $.ajax isn't parsing JSON object properly

2008-09-12 Thread Namlet
Says undefined, so it's not accessing the properties properly with an rdata.guid for instance. Turns out, I need to eval the string which I couldn't get right at first. I tried eval(rdata); but it failed. However, when I tried eval('(' + rdata + ')') it worked fine! So why is this how I have

[jQuery] .unbind hover doesn't work

2008-09-05 Thread Namlet
To unbind the above example use: $(#nav1).unbind('mouseenter mouseleave'); This is what the documentation says, but it doesn't remove the hover event. Do I have to do something else? Thanks.