Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unresponsive script #8

Open
lyx opened this issue Jul 11, 2012 · 1 comment
Open

Unresponsive script #8

lyx opened this issue Jul 11, 2012 · 1 comment

Comments

@lyx
Copy link

lyx commented Jul 11, 2012

Hi, I have been looking for a way to test my jquery sortable functionality, and the consensus is that your solution is the best way to go. I have had success with this up to the point where the browser attempts to move one of the objects, but never completes it due to an unresponsive script. I attempted this line (below) in firebug console, only to hit a dialog box stating there is an unresponsive script.

 $("tr td").simulateDragSortable({ move: 1});

My step definition utilizes the example you have on here. Below is what I have for the step definition:

When /^I drag "([^"]*)" (up|down) (\d+) positions?$/ do |pledge_item_title, direction, distance|
pledgeitem = PledgeItem.find_by_name(pledge_item_title)
distance = distance.to_i * -1 if direction == "up"
page.execute_script %{
$("tr td").simulateDragSortable({ move: #{distance.to_i}});
}
sleep 5
end

Thanks for providing this solution, any assistance would be greatly appreciated!

@mattheworiordan
Copy link
Owner

Unfortunately I have no idea why that wouldn't work. If you provide me with the raw HTML and some Javascript (perhaps in a http://codepen.io/) I can see what I can do, although can't promise anything as I'm pretty busy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants