When using the following code to load a form with data it works just fine:
$('#'+formType+'dlg').dialog('open').dialog('setTitle','Update'); $('#'+formType+'fm').form('load',{CONTROL_ID:522,CONTROL_NAME:'Test'}); $('#'+formType+'fm').form('validate');
When I code the following to use a URL to load the form, the URL which returns the exact same string, the form fails to load with data:
$('#'+formType+'dlg').dialog('open').dialog('setTitle','Update'); $('#'+formType+'fm').form('load','Control_SelectDirect.php'); $('#'+formType+'fm').form('validate');
Here is the contents of the URL file 'Control_SelectDirect.php'
<?php print "{CONTROL_ID:522,CONTROL_NAME:'Test'}"; ?>
The way I read the documentation I should be able to use a URL to load a form, correct? What am I doing wrong?
|