In your controller you could check for the # and strip it?

Alternatively, I believe you can have your onclick return false which
will avoid the #

On Sat, 2010-09-04 at 14:45 -0700, weheh wrote:
> I have a controller that takes an argument, which is the id of a row
> in mytable. If the arg is present, then the row is displayed at the
> top of the page and all the rows are displayed at the bottom of the
> page. Otherwise, the first item in mytable is displayed.
> 
> The rows at the bottom of the page have ajax links on them, which if
> clicked, will update only the one selected item at the top of the
> page.
> 
> So, http://127.0.0.1:8000/myapp/mycontroller/myfunc would select
> mytable.id==1 by default and
> http://127.0.0.1:8000/myapp/mycontroller/myfunc/21 would select
> mytable.id==21.
> 
> In the first case, when I browse the list of rows at the bottom of the
> page, I could click on the entry for mytable.id 5 and the URL that
> would be displayed would be http://127.0.0.1:8000/myapp/mycontroller/myfunc#
> and the selected item at the top of the page is properly updated to be
> mytable.id==5.
> 
> However, in the second case, when the url starts at
> http://127.0.0.1:8000/myapp/mycontroller/myfunc/21 and I click on the
> entry for mytable.id 5, I get an internal server error from
> jquery.min.js and the url now looks like 
> http://127.0.0.1:8000/myapp/mycontroller/myfunc/21#.
> 
> I don't know how to debug jquery.min.js and I'm not even sure it's the
> culprit. Anyone have any suggestions about how to approach this?
> 


Reply via email to