- ## AJAX:
- text = $('#URL').val()
- $.ajax
- url: ($ this).data 'update-path'
- type: 'POST'
- data:
- url: text
- dataType: 'script'
- # Controller:
- @url = params[:url]
- STDERR.puts @url
- # Output of controller is:
- http://www.example.com/forum/viewtopic.php?f=23
- BUT I send this URL:
- http://www.example.com/forum/viewtopic.php?f=23&t=1330
- So URL gets cut by the & it seems.