Loading...
Copy code
Close
Permalink
Close
Please tell us why you want to mark the subject as inappropriate.
(Maximum 200 characters)
Report Inappropriate
Cancel
Private Message
From :
guest
To :
Subject :
Content :
Type the characters you see in the picture below.
Send
Cancel
From :
guest
To :
Subject :
Content :
Type the characters you see in the picture below.
Send
Update
Cancel
Feedback
Email ID
Subject :
Comments :
Send
Cancel
Private Message
Type the characters you see in the picture below.
Type the characters you see in the picture below.
Attach files
Desktop
Google Docs
Each Attachment size should not exceed 1.0 MB.
Max no of attachments : 3
Loading User Profile...
guest
Response title
This is preview!
Attachments
Publish
Back to edit
Cancel
(
)
Sign In
New to this Portal? Click here to
Sign up
You can also use the below options to login
Login with Facebook
Login with Google
Login with Yahoo
jQuery
Plugins
UI
Meetups
Forum
Blog
About
Donate
All Forums
Recent Posts
Log In
Search
jQuery
Search
jQuery Forum
Screen name:
darthspork
darthspork's Profile
1
Posts
1
Responses
0
Followers
Activity Trend
Last 30 days
Last 30 days
Date Interval
From Date :
To Date :
Go
Loading Chart...
Posts
Responses
PM
Show:
All
Discussions
Questions
Ideas
Problems
Expanded view
List view
Private Message
Coldfusion and Jquery return (WDDX)
[1Reply]
12-Jul-2012 12:23 AM
Forum:
Using jQuery
I am starting on a simple example of populating a list menu with a return from a coldfusion cfc ,
the code can be seen with firebug (chrome) at
http://ajax.nacnak.net
it loads the call fine, but won't allow me to parse the results.
I am pretty sure its something stupid but can't seem to find it .
any help would be appreciated
for those that don't want to go see the code here, here is the snippet that should populate the select list.
function loadareas()
{
$.ajax({
type: "POST",
url: "/com/coldfusion/comunity.cfc?method=getCommunity",
cache: true,
dataType: "xml",
success: function(xml)
{
$(xml).find('data').each(function(value)
{
$("#areas").append('<option value="' + $(this).find('ID').text() + '">' + $(this).find('NAME').text() + '</option>');
});
}
});
}
THE HTML ********************************************************
<form id="getCommunity" name="form1" method="post" action="">
<table width="370" border="0" cellspacing="1" cellpadding="1">
<tr>
<td width="22" align="left"> </td>
<td width="177" align="left"><select name="areas" class="formbasic" id="areas">
<option>Choose your area</option>
</select></td>
<td width="161" align="left">
<select name="communities" class="formbasic" id="communities">
<option>Choose an Area First</option>
</select> </td>
</tr>
</table>
</form>
-R
«Prev
Next »
Moderate user : darthspork
Forum