Hi all. and thanks MP for a great module
Im having an issue with modal frames API + automodal + Webform
the problem is that I did a webform to show in a modal with automodal and on my localhost it works great. I also made a module to include a couple of functions in my processing. Now, when I put it online, the modal child window shows "loading..." on the title and although shows field well, when I submit the form it reloads de webform again in the modal but also with the menus, footer, header, etc, as a normal full page. I was hopping it to reload the form just like the first time.
Could someone please give me a clue on why this is happening?
the modal examples works all like a sharm. I supose it is an ajax related issue but I have desabled many modules to see if it works with no luck.
Hope someone could help me because I´ve looked arround the whole drupal.org with no related results
Thanks in advance
serguitus

Comments

serguitus’s picture

Aditionally, I created a new webform with only one text field to see if the issue was with the old webform but the new one has the same problem
also, I´m not using Secure Pages so the solution in http://drupal.org/node/513336#comment-1816626 does not apply (I think)
Aditionally, I created a page with an anchor link to my webform and it displays ok (title displays ok but still loads menus on reload after submit)

serguitus’s picture

Component: Javascript » User interface

I realised its not a matter of js as examples works ok. the problem here seems to be related to webform submit procedure. when I send the form without filling some mandatory field, the modal reloads ok (using modalframe-page.tpl.php) but when I submit the form correctly, then I get the problem, complete webform with thanks message and every region loads on the modal (bypassing modalframe-page.tpl.php).
Should I try to close the modal or do I search to change submit actions with hooks? I think that closing the modal as an inconvenience: user is not informed that he did the submit correctly.
What do You people think?
Ideas on any of the alternatives will save my week :)

thanks in advance

serguitus’s picture

Ok, I keep working on this :D
A few days ago I solved the issue with the webforms by including a new module and including on a custom hook_form_alter() a call to modalframe's function to include child jscript.
Now Im still having and interesting issue with this. I created a custom content type and on a node of that content type, the modal doesn't work fine. it loads the webform but the title keeps with "loading..." and then, the modal doesn't work as espected. but When I create a node of History content type and use on that node the modal link, then I get a correctly loaded modal window.
Will I get some day some help line from anyone else? :(

thanks again

serguitus’s picture

Ok, I went a little deeper:
Im still having this problem on some pages (specifically on node pages of 1 content type)
the error that firebug gives me is:
Permission denied to access property 'Drupal'
on line 21 of child.js
if (!self.isObject(parent.Drupal) || !self.isObject(parent.Drupal.modalFrame))

I saw other posts with this happening because of a problem related with secure pages but Im not using them.
Could someone pleace give me a sign of life :(
Im freaking out
:D

serguitus’s picture

Component: User interface » Code
Category: bug » support
serguitus’s picture

I discovered something else: the origin of the problem seems to be a conflict with subdomain module wich I'm using. It seems that rewrite function of subdomain makes some changes on the url so parent and child doesn't understand each other.
I will try to fix this
Ideas are welcome. markus: I would apreciate your suggestions :)
I will write here any progress

jgrossman’s picture

I am getting this issue when I have a form that is pulled in on a page that is using ssl. It is very consistant. I am using the automodal module to call a webform and when that webform is called from a page that is using ssl. the modal window shows loading forever and the form that is in the modal window will not submit? Does anyone have any suggestions on this?

saru1683’s picture

Version: 6.x-1.7 » 7.x-1.x-dev

I am getting same Issue on 7.x-1.x-dev.

Edit: Issue fixed by enable jQuery Update module.

Thank you.

dsnopek’s picture

Issue summary: View changes
Status: Active » Fixed

The poster looks to have solved his own issue! Closing.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.