I have a view in my monorail project that has this element:
<img id="tab-direction" alt="tab direction toggle" src=""/>
This is being observed by jQuery to toggle the image and do some client-side script along the way. Note that the src attribute is empty. What I didn't realize is that the default behaviour for this will be to call the request again to the only url it knows; the address in the address bar...meaning my action is now being called TWICE which can really be a problem .
The fix was to simply put some dummy value in there and let the script replace it as intended, but man that took WAAAAY too long to figure out.
Part of the problem was because I am using an uncommitted patch to have my dynamic action providers resolved through Windsor and I was paranoid that I had done it wrong....
But thankfully my paranoia was unfounded...I think...I mean, it probably is ...I hope so... :)
01-18-2008 1:58 PM