TheStranger
30 Oct 2007, 4:49 AM
Hi,
i build an cms and would like to upgrade some things with ExtJS functions (MessageBoxes, Grid, Tabs, Forms). Now i have an problem with the forms. Why does the ExtJS not allow HTML or PHP in a string value?
My TextArea:
new Ext.form.TextArea({
fieldLabel: '<?=$loadlang->msg('settings_maps_route');?>',
name: 'map_route',
width:175,
allowBlank:true,
value: '<?=$result_einst->f("map_route");?>'
})
In $result_einst->f("map_route") is HTML and PHP Code look like this:
print '<TR><TD class="form1" align="left"><strong>'.$loadlang->msg(pictyp).'</strong>:</TD></TR>';
I get an "unterminated string literal" error in firebug.
What can i do, so that the string from database is shown in the textarea correctly?
i build an cms and would like to upgrade some things with ExtJS functions (MessageBoxes, Grid, Tabs, Forms). Now i have an problem with the forms. Why does the ExtJS not allow HTML or PHP in a string value?
My TextArea:
new Ext.form.TextArea({
fieldLabel: '<?=$loadlang->msg('settings_maps_route');?>',
name: 'map_route',
width:175,
allowBlank:true,
value: '<?=$result_einst->f("map_route");?>'
})
In $result_einst->f("map_route") is HTML and PHP Code look like this:
print '<TR><TD class="form1" align="left"><strong>'.$loadlang->msg(pictyp).'</strong>:</TD></TR>';
I get an "unterminated string literal" error in firebug.
What can i do, so that the string from database is shown in the textarea correctly?