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

haroon373’s picture

Title: Documentation problem with module_load_include » Problem with module_load_include while using with thickbox...
Component: documentation » node system

Sorry, Its not the documentation problem.

haroon373’s picture

I 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.?

Status: Active » Closed (outdated)

Automatically closed because Drupal 6 is no longer supported. If the issue verifiably applies to later versions, please reopen with details and update the version.