Hello,
I am trying to load the profile type node form in panel page with custom code. But I am having an issue while opening the thickbox popup. The Error I got in firebug (firefox extension) is:
uncaught exception: Syntax error, unrecognized expression: [@Name='og_selective']
For reference; my code that I wrote in panel page custom code is:
module_load_include('inc', 'node', 'node.pages');
$node_type = 'profile';
$form_id = $node_type . '_node_form';
global $user;
$nid = db_result(db_query("SELECT nid FROM node WHERE type='profile' AND uid = {$user->uid}"));
$node = node_load($nid);
node_object_prepare($node);
$form = drupal_get_form($form_id, $node);
print $form;
whenever I comment the first line, then I won't got the form but thickbox open well....
What could be the the reason and how to solve it?
Please help!
Thanks and Regards...
Comments
Comment #1
haroon373 commentedSorry, Its not the documentation problem.
Comment #2
haroon373 commentedI have a thought in my mind while doing work on this. That is, Is it possible to load a form in thickbox while we opened a form already in page from where we calling jQuery thickbox.?