/    Sign up×
Community /Pin to ProfileBookmark

[RESOLVED] help with AJAX list and saving results

I have tried doing the tutorial from this link several times over the past year

[url]http://www.phpriot.com/d/articles/client-side/sortable-lists-with-php-and-ajax/index.html[/url]

I can get it to pull the data and drag the items in the list around. I cannot get it to save the order in the list back to the database.

My code is exactly like they have on their site from what I can tell except for the database connection settings(username, password, etc).

Here is a link to text versions of my files: [url]http://www.omega-tek.com/ajaxtest/text/[/url] and my test site [url]http://www.omega-tek.com/ajaxtest/[/url]

Is anyone else able to get this to work or do you know of another site that has similar functionality?

Thanks,
Travis

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@UltimaterJan 26.2007 — From what you can tell your script matches yet I think the code objects. ?

Parse error: syntax error, unexpected T_VAR in /home/omegatek/www/www/ajaxtest/processor.php on line 12
[/quote]

http://www.omega-tek.com/ajaxtest/processor.php
Copy linkTweet thisAlerts:
@travisbauthorJan 26.2007 — Thanks Ultimater!

I compared that file to what they had on their site and sure enough I messed up. But it was a little confusing reading that part of the tutorial.::rolleyes:

It is working fine now.

Thanks again.

Travis
Copy linkTweet thisAlerts:
@UltimaterJan 26.2007 — The way you implemented that script reminds me of 'em magnetic alphabet letters on my brother-in-law's fridge -- create a word on it and come back later only find the letters you used in a new word someone else made. ?

Thread Tools->Mark Resolved
×

Success!

Help @travisb spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...