e111982 Posted December 10, 2009 Share Posted December 10, 2009 Hi . I am an english teacher. I want to write a Sentence Re-ordering exercise script like in the web site below(in exercises tab). How can I get the full ajax code and run the application in my server? When I download the page the first page runs. However when I click Submit Answers It doesnt. Thanks for help. http://englishpod.com/tour/demo-lesson Quote Link to comment Share on other sites More sharing options...
trq Posted December 10, 2009 Share Posted December 10, 2009 Having no idea what script or page your talking about exactly I will say this. Javascript is in plain view for anyone to get at. Just look at the source. Quote Link to comment Share on other sites More sharing options...
e111982 Posted December 10, 2009 Author Share Posted December 10, 2009 The address is http://englishpod.com/tour/demo-lesson . In this page if you click on exercises tab, there is an exercies called re-arrange dialogue. I want to run the same application on my local but when I download the full page and click submit answers, no replies. Quote Link to comment Share on other sites More sharing options...
trq Posted December 10, 2009 Share Posted December 10, 2009 I'm not going to go and get it for you. Right click, view source, you'll need to download all the included javascript. ps: I'm really not comfortable pointing out how to steal other peoples hard work. Quote Link to comment Share on other sites More sharing options...
BenInBlack Posted December 10, 2009 Share Posted December 10, 2009 you can implement this by using the JQuery UI plugin for sortable without having to take someones code http://jqueryui.com/demos/sortable/ Quote Link to comment Share on other sites More sharing options...
e111982 Posted December 11, 2009 Author Share Posted December 11, 2009 Thanks Ben. How can I check whether the sorted items in the right order or not? Quote Link to comment Share on other sites More sharing options...
BenInBlack Posted December 11, 2009 Share Posted December 11, 2009 the sortable I do use the the ul tag with li tag, you can iterate thru them. <ul id="searchItems2"> <li id="item-3">item 3</li> <li id="item-1">item 1</li> <li id="item-2">item 2</li> </ul> $('#searchItems2 li').each(function(iter){ ...your code here... }); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.