On 11/15/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Hi
>
> I am dynamically creating a form using Mochikit. It is working fine in
> Firefox. But nothing happens when run on IE (not even an error
> message.). It will be a great help if some one can tell me what is
> wrong with my code.
> /*
> var rows = [
> ["Name", INPUT({'type': 'text', 'value': 'some value'})],
> ["Comment", INPUT({'type': 'text', 'value': 'some value'})],
> ["Type", SPAN({},INPUT({'name':'type','type': 'radio', 'checked':
> true}),"MailDir", INPUT({'name':'type','type': 'radio', 'checked':
> false}),"MBox",INPUT({'name':'type','type': 'radio', 'checked':
> false}),"Directory")],
> ["Zip/Compress", INPUT({'type': 'checkbox', 'checked': true})],
> ["Access",
> SPAN({},
> INPUT({'name':'access','type': 'radio', 'checked':
> true}),"Public",
> INPUT({'name':'access','type': 'radio', 'checked':
> false}),"Creator",
> INPUT({'name':'access','type': 'radio', 'checked':
> false}),"Users"),
> SELECT({},map(OPTION, ['All','User1','User3','User2']))],
> ["Expires ", SPAN({},INPUT({'type': 'text', 'value': 'todays
> date','size':10}),"+3 days")],
> ["Alert User ", INPUT({'type': 'checkbox', 'checked': true})],
> [ INPUT({'type': 'submit', 'style': 'float: right','value':
> 'Save'}) ,
> INPUT({'type': 'button', 'style': 'float:
> right','onclick':'cancelme()','value': 'Cancel'})]
> ];
>
>
> row_display = function (row) {
> return TR(null, map(partial(TD, null), row));
> }
>
>
> var newTable = DIV({'id':'action-place'},FORM({},TABLE({'class':
> 'small-font','style':'margin-left:14em'},
> TBODY(null,
> map(row_display, rows)))));
>
> swapDOM("action-place", newTable);
>
> */
When debugging these sorts of issues it's essential to have a fully
reproducible example, which includes the HTML.
-bob
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"MochiKit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/mochikit?hl=en
-~----------~----~----~----~------~----~------~--~---