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
I have a simple AJAX call:
$.ajax({
url: setBMBJSONString.php,
data: stringJSON.toString(),
success: function(rdata) {
//var resp = eval('(' + rdata + ')');
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();
});
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
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
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
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
?
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
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
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
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
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',
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
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.
14 matches
Mail list logo