Chris,
Thanks again for your help. Your suggestion did work and the ajax
code picked up the value for locationID. But now my return function
won't work. I'm guessing it is the same sort of deal needing the #
sign. Can you help me out here?
function showPlayers(getResult)
{
$('#layerSpan').innerHTML = getResult;
}
I did take a look at your tutorials last night and it appears the
game has changed!! I can't believe how different it appears to be.
Is there a new way I shoudl be calling my return function above?
Also can you point me in a good spot to learn about snippets? You
mentioned it on your blog but I've never used them and I do use
CFEclipse.
Ryan
--- In ajaxcfc@yahoogroups.com, Chris Jordan <cjordan@...> wrote:
>
> Ryan,
>
> The first thing that jumps out at me is that in your line of jQuery
there, you're getting an id, but you're missing the pound sign that
goes along with doing that. In other words, that line should read:
>
> locationId = $('#locationId').value;
>
> The other thing is that the '.value' part should be '.val()'. So,
>
> locationId = $('#locationId').val()
>
>
> See if any of that helps. Also, have you checked out the tutorials
on my blog? (http://cjordan.us/index.cfm/AjaxCFC)
>
> Hope this helps,
> Chris
>
> ----- Original Message -----
> From: "Ryan" <ksu_stud@...>
> To: ajaxcfc@yahoogroups.com
> Sent: Tuesday, April 8, 2008 4:47:58 PM (GMT-0600) America/Chicago
> Subject: [ajaxcfc] ajaxCFC w/ jquery
>
>
>
>
>
>
>
> Hey Guys,
> It's been a while but I'm back writing code. I downloaded the
latest
> version of ajaxCFC which has jQuery included. The ajaxCFC code
seems
> to be working fine until I try to include the jquery.js file like
so
>
> <script src="../ajaxcfc/branches/jquery/core/js/jquery.js"
> type="text/javascript"></script>
>
> Once I inlcude the file I start getting undefined errors when
making
> simple calls like...
>
> locationID = $('locationID').value;
>
> Any ideas? I think jquery uses the $ function, is that the issue?
>
> Thanks,
> Ryan
>