This is a migrated thread and some comments may be shown as answers.

Setting inputs of type hidden

1 Answer 85 Views
This is a migrated thread and some comments may be shown as answers.
Roger Withnell
Top achievements
Rank 1
Roger Withnell asked on 25 Jun 2010, 02:47 PM

On saving the contents of the editor to a database, I run a javascript function to make some changes to the Html in the editor content area.

I add inputs of type hidden using the code:


var jHidden = jDocument.createElement(



jHidden.type =

'hidden'; =

'PagePart'; =



jHidden.value = pPagePartId;


In Internet Explorer 8, the Html created is:

<input type="hidden" id="label3" submitname="label3" value="Email:" />

In Firefox, it is:

<input type="hidden" id="label3" name="label3" value="Email:" />

Why does Internet Explorer insert the attribute submitname="label3" which does not appear in the Request.Form when the page is refreshed on Submit?

Your help would be much appreciated.

Thanking you in anticipation.


1 Answer, 1 is accepted

Sort by
Telerik team
answered on 30 Jun 2010, 04:29 PM
Hi Roger,

This problem is not directly related to RadEditor but is seems like a bug of the browser. You can reproduce this by appending a programmatically  created <input> to the main page. In Internet Explorer instead of name the element will appear with submitName property and under Internet Explorer 8 it will be propdescname property.

At present, as a workaround to this problem I suggest you to implement a custom content filter to replace the incorrect attribute with the proper one.

More information on how to create a custom content filter is available in this Live Demo.

Sincerely yours,
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Asked by
Roger Withnell
Top achievements
Rank 1
Answers by
Telerik team
Share this question