$('#jform_selectAlias2').chosen();
$('#jform_selectAlias2').change();
public static function operations()
{
if(isset($_GET['alias']))
{
// Load Library
JFormHelper::addFieldPath(JPATH_ADMINISTRATOR.'/components/com_jsn/models/fields');
// Load Field Params
$db=JFactory::getDbo();
$query = $db->getQuery(true);
$query->select('a.*')->from('#__jsn_fields AS a')->where("a.alias = '".$_GET['alias']."'");
$db->setQuery( $query );
$field = $db->loadObject();
$registry = new JRegistry;
$registry->loadString($field->params);
$field->params = $registry;
// Create a form Object with field XML
$form=new JForm('jform',array('control' => 'jform'));
$xml='<form>'."\n";
$xml.=JsnSelectlistFieldHelper::getXml($field);
$xml.="\n".'</form>';
$xml=new SimpleXMLElement($xml);
$form->load($xml);
// Set Where From HTTP
$form->setFieldAttribute($_GET['alias'], 'dboptwhere','state=1 AND catid='.$_GET['catid']); // replace 'state=1 AND catid='.$_GET['catid'] with your query
// Get Input
echo($form->getField($_GET['alias'])->input);
}
}
$('#jform_selectAlias1').change(function(){
$.ajax({
url : "index.php?option=com_jsn&view=opField&type=selectlist&alias=selectAlias2&format=raw&catid="+$(this).val(),
success : function (data,state) {
var val=$('#jform_selectAlias2').attr('data-val');
$('#jform_selectAlias2').parent().html(data);
$('#jform_selectAlias2').val(val).attr('data-val',val);
$('#jform_selectAlias2').chosen();
}
})
});
$('#jform_selectAlias1').change();
public static function operations()
{
if(isset($_GET['alias']))
{
// Load Field Params
$db=JFactory::getDbo();
$query = $db->getQuery(true);
$query->select('a.*')->from('#__jsn_fields AS a')->where("a.alias = '".$_GET['alias']."'");
$db->setQuery( $query );
$field = $db->loadObject();
$registry = new JRegistry;
$registry->loadString($field->params);
$field->params = $registry;
// Create a form Object with field XML
$form=new JForm('jform');
$xml='<form>'."\n";
$xml.=JsnSelectlistFieldHelper::getXml($field);
$xml.="\n".'</form>';
$xml=new SimpleXMLElement($xml);
$form->load($xml);
// Get Input
echo($form->getField($_GET['alias'])->input);
}
}
Working days: Monday to Friday. The support staff is not available on weekends; in the most of cases tickets will not be answered during that time.
Reply time: Depending on the complexity of your support issue it's usually between a few minutes and 24 hours for paid members and about one week for free members. When we expect longer delays we will notify you.
Before you post: read the documentation and search the forums for an answer to your question.
When you post: include Site Details if you request a support (you can use the form below the reply in Site Details tab).
Auto Solved Question: If after a week the author of the post does not reply to a request by moderator, the question will be marked as resolved.
Language: only English
Easy Profile® is not affiliated with or endorsed by Open Source Matters or the Joomla Project. Joomla is Free Software released under the GNU/GPL License.
Our site uses non fat, delicious cookies which help us improve your user experience. You can read more about it in our Legal page.