Cannot edit Stories (dialog grayed out)

Jan 26, 2009 at 1:35 AM
Hi all,

thanks for sharing such a great piece of code. There are many lessons to be learned by looking at it. :-)

After some rough start I managed to get the project up and running.

I have still some minor issues. The most disturbing being that I am unable to edit a story once it is created.
If I click on edit on a story, I do get the editor window on the screen, but the window is sort of grayed out, like an inactive window.
I cannot click anything, not even the close icon on the dialog. The only chance to continue is to click the browser back-button.

Any help is very welcome.

   Andreas Kroll
Jan 26, 2009 at 1:57 AM
I just started playing with the code this weekend and noted the same thing.  To edit I use FireFox.

Feb 4, 2009 at 2:50 AM
Yes I also found it, It only happens in IE. I will add it in the Issue Tracker.
Feb 7, 2009 at 12:45 PM
I'm testing with the RC1 release and change set 18277 and I can't get the edit dialog to work in either Firefox or IE.  I have a the beta build working with Firefox but not IE as stated above.

Feb 8, 2009 at 3:56 PM
It looks like it is related to the RoutUrl changes made with RC1.  Is there a newer build like what is running on that isn't checked into CodePlex?

Feb 8, 2009 at 6:57 PM

DotNetShoutout is running with latest check-in and as mentioned we are only facing this issue in IE. I recommend to clear your cache and cookie in your browser and retry.
Feb 9, 2009 at 2:56 AM
The function editStory: function(B) in Moderation.min.js does not return a value for Moderation._getStoryUrl.  If I change RouteUrl to Action for the line 'scriptManager.RegisterOnReady("Moderation.set_getStoryUrl('{0}');".FormatWith(Url.RouteUrl("GetStory")));' in SiteTemplate.Master the div appears and the value for Moderation._getStoryUrl is GetStory.  Also,  the footer links in SiteTemplate.Master don't work for About or Contact unless the links are changed to use Action instead of RouteUrl.   I'm running the built in web server with Visual studio for testing so maybe it is related to that.

In the comments of this blog post some people mention issues with RouteUrl
Feb 9, 2009 at 4:01 AM
@activekix : Are you running ASP.NET RC1 _Refresh_?
Feb 10, 2009 at 10:02 PM
Sorry about that - my fault on not installing the refresh.  The dialog opens for Firefox but not IE and I wasn't able to save if there was html in the description due to the form post validation which was throwing the following error.

A potentially dangerous Request.Form value was detected from the client

Adding ValidateInput(false) to the Update ActionResult seems to take care of that error.

Feb 10, 2009 at 11:13 PM
Edited Feb 10, 2009 at 11:25 PM
Sure no problem, I think the Comment Controller Submit should also have this attribute though I am not sure whether I have checked in with/without that attribute.