Search the web
Sign In
New User? Sign Up
ajaxcfc · ajaxCFC Group
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
ajaxcfc and passing form variables using jquery form plug-in   Message List  
Reply | Forward Message #1564 of 1584 |
I'm using the form plug-in for validation but I'm having a tough time
trying pass the form variables to AjaxCFC. I'm using formSerialize()
which returns "name1=value1&name2=value2" but I don't know how to pass
that format or convert for data: {} since it's looking for
{"name1":"value1",..}

Below is part of my code after validation:

var formitems = $("#myForm").formSerialize();

$.AjaxCFC({
url: 'sgcfc/projects.cfc',
method: 'insertProjTime',
data: formitem,
unnamedargs: false,
serialization: 'json',
success: function(r){
// some code
}
})

Any suggestion?




Wed May 21, 2008 3:56 am

josegura93
Offline Offline
Send Email Send Email

Forward
Message #1564 of 1584 |
Expand Messages Author Sort by Date

I'm using the form plug-in for validation but I'm having a tough time trying pass the form variables to AjaxCFC. I'm using formSerialize() which returns...
josegura93
Offline Send Email
May 21, 2008
3:57 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help