The UpdateData(string fieldName, string fieldValue) Handler inside the Controller updates the data fieldName properly. But the fieldValue (the text from the editor box) always comes back blank.
PipeSize is the ID given to your div so you'll have two with the same ID. Give the ID of the div a different value. When de-bugging javascript issues always look at the source of the page as that is what the js is running from, not your cshtml file. These
problems can often be quickly identified just by looking at the source.
I'm afraid I no longer use this forum due to the new point allocation system.
Member
2 Points
10 Posts
Editor box text is always blank
Feb 28, 2014 09:56 AM|Donald H.|LINK
I'm trying to retrieve a value from an editor box when the focus changes using ajax. I want to pull that text and send it as POST data to my handler.
The UpdateData(string fieldName, string fieldValue) Handler inside the Controller updates the data fieldName properly. But the fieldValue (the text from the editor box) always comes back blank.
All-Star
37441 Points
9076 Posts
Re: Editor box text is always blank
Feb 28, 2014 10:01 AM|AidyF|LINK
PipeSize is the ID given to your div so you'll have two with the same ID. Give the ID of the div a different value. When de-bugging javascript issues always look at the source of the page as that is what the js is running from, not your cshtml file. These problems can often be quickly identified just by looking at the source.
Member
2 Points
10 Posts
Re: Editor box text is always blank
Feb 28, 2014 02:11 PM|Donald H.|LINK
That was my great big "Duuuurrrrr" moment of the day. Thanks Aidy.