By hakob-7 on
Hi,
How can I show drupal form (return value of drupal_get_form) in iframe?
When I use iframe tag and give form link as source, it show all the screen in iframe.
I want to show just form in iframe.
Regards,
Hakob
Hi,
How can I show drupal form (return value of drupal_get_form) in iframe?
When I use iframe tag and give form link as source, it show all the screen in iframe.
I want to show just form in iframe.
Regards,
Hakob
Comments
Create a page that only has
Create a page that only has that form and nothing else. Show it in the iframe.
Contact me to contract me for D7 -> D10/11 migrations.
I create page with form and
I create page with form and return
drupal_render(drupal_get_form('some_form')), but in iframe I get all page, not only form.
Try this (no guarantees it
Try this (no guarantees the will work since it won't be rendered in a valid HTML page):
Contact me to contract me for D7 -> D10/11 migrations.
Thanks, it take an effect,
Thanks, it take an effect, but in form I have table and I get table without drupal standart themes and without jQuery.
That's because you are
That's because you are rendering it without a theme by using die().
You've now seen your two options (fully themed page, or no theme at all), so you'll have to pick one.
Contact me to contract me for D7 -> D10/11 migrations.
I need jQuery and standart
I need jQuery and standart css's there to get sortable table with page navigation and check-all class
Then you're going to have to
Then you're going to have to go with your original code which showed the form in the themed page.
Contact me to contract me for D7 -> D10/11 migrations.
Is there a way to add jQuery,
Is there a way to add jQuery, CSS which are needed for correct work drupal themed table?
Yes - you render the table in
Yes - you render the table in the theme.
Contact me to contract me for D7 -> D10/11 migrations.
How can I do that?:)
How can I do that?:)
You were already doing it
You were already doing it here:
Contact me to contract me for D7 -> D10/11 migrations.
thanks
thanks