We're a community of 1077K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,076,417 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

Ajax Callback return response?

Hi all, Im trying to get some data from an Ajax callback and use it in another function (from a php file).

I was just wondering if there was a way to pass data returned from the callback to another function.

I could just do the function at success but, this alternative option would open a lot of other doors for me.

2
Contributors
2
Replies
16 Hours
Discussion Span
3 Months Ago
Last Updated
3
Views
soapyillusion
Junior Poster in Training
88 posts since Dec 2009
Reputation Points: 10
Solved Threads: 6
Skill Endorsements: 0

Hi Soapuillusion,
I'm really puzzled by what you mean? Can you please elaborate, explain it further?

gon1387
Posting Whiz in Training
233 posts since Jan 2011
Reputation Points: 32
Solved Threads: 37
Skill Endorsements: 3

Ok so I decided against using an ajax callback of any kind. I decided im just going to return a php variable to my view, and it first seemed very promising. But I've hit another snag. Outputing only as many {index:val} with in an javascript array as there are indexes in a php variable. This length will be different each time the action is ran therefore the number of {index:value} outputed with in javascript object will also be different everytime.

Any ideas anyone?

P.S im outputting this javascript object within a JqGrid.

Thanks!

soapyillusion
Junior Poster in Training
88 posts since Dec 2009
Reputation Points: 10
Solved Threads: 6
Skill Endorsements: 0

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page rendered in 0.0625 seconds using 2.68MB