Advancedform & ModalBox

Third Party Plugins to CMSimple - how to install, use and create plugins

Moderator: Tata

Tata
Posts: 2690
Joined: Tue May 20, 2008 5:34 am
Location: Slovakia
Contact:

Advancedform & ModalBox

Post by Tata » Sat Jun 02, 2018 11:41 am

Both plugins are excellent. Testing various plugins combination, I came to a form (advancedform) placed in a modal box (by opensolutions).
Everything works fine except of date picker in the form. Until the page with the form is called directly, the date picker works fine. When the form is called in the modal box, the date picker is out of function; also the dp icon is gone.
In Modalbox: http://rancdubina.cmsimple.sk/?Kontakt - orange button
af-modalbox.png
Direct call: http://rancdubina.cmsimple.sk/?preorder
af-direct.png
You do not have the required permissions to view the files attached to this post.
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.

frase
Posts: 1885
Joined: Thu Apr 21, 2016 6:32 am
Location: Saxony
Contact:

Re: Advancedform & ModalBox

Post by frase » Sat Jun 02, 2018 11:50 am

Ich denke, ein Formular in der Modalbox ist sehr ungünstig.
Fehlermeldungen und auch der erfolgreiche Versand werden nicht direkt angezeigt.
Es findet nach dem Klick auf "Absenden" ein Seitenneuaufbau statt - und das Modal ist geschlossen.

frase
Posts: 1885
Joined: Thu Apr 21, 2016 6:32 am
Location: Saxony
Contact:

Re: Advancedform & ModalBox

Post by frase » Sat Jun 02, 2018 12:10 pm

Other Issue:
tata.png
You do not have the required permissions to view the files attached to this post.

cmb
Posts: 12597
Joined: Tue Jun 21, 2011 11:04 am
Location: Mü-Sa, RLP, DE
Contact:

Re: Advancedform & ModalBox

Post by cmb » Sat Jun 02, 2018 10:10 pm

frase wrote:
Sat Jun 02, 2018 12:10 pm
Other Issue:
That might be the reason why the date picker doesn't work.
Christoph M. Becker –Plugins for CMSimple_XH, but not for CMSimple 4+

Tata
Posts: 2690
Joined: Tue May 20, 2008 5:34 am
Location: Slovakia
Contact:

Re: Advancedform & ModalBox

Post by Tata » Sun Jun 03, 2018 4:41 am

I have the first occurrence of the script removed from the template - no change.
I changed the jQuerry configuration - no change.

Code: Select all

$plugin_cf['jquery']['version_core']="1.12.4";
$plugin_cf['jquery']['version_ui']="1.12.1";
$plugin_cf['jquery']['version_migrate']="jquery-migrate-1.4.1.min.js";
$plugin_cf['jquery']['load_migrate']="true";
$plugin_cf['jquery']['autoload']="true";
$plugin_cf['jquery']['autoload_libraries']="jQuery";
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.

frase
Posts: 1885
Joined: Thu Apr 21, 2016 6:32 am
Location: Saxony
Contact:

Re: Advancedform & ModalBox

Post by frase » Sun Jun 03, 2018 9:25 am

Too many errors for a quick analysis.
.
tata2.png
You do not have the required permissions to view the files attached to this post.

Tata
Posts: 2690
Joined: Tue May 20, 2008 5:34 am
Location: Slovakia
Contact:

Re: Advancedform & ModalBox

Post by Tata » Sun Jun 03, 2018 2:06 pm

Hm, I have made some changes in config, some scripts removed, but some errors are still there and I can't find where are they from.
IMMIGRATEJQMIGRATE: Migrate is installed, version 3.0.0 | jquery-migrate-3.0.0.min.js:2:440
TypeError: document.body is null[Learn More] | rancdubina.cmsimple.sk:562:9
TypeError: menu is null[Learn More] | onepage.js:27:46
TypeError: document.getElementById(...) is null[Learn More] | rancdubina.cmsimple.sk:132:4
SyntaxError: expected expression, got ')'[Learn More] | void();:1:5
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.

frase
Posts: 1885
Joined: Thu Apr 21, 2016 6:32 am
Location: Saxony
Contact:

Re: Advancedform & ModalBox

Post by frase » Sun Jun 03, 2018 2:34 pm

Tata wrote:
Sun Jun 03, 2018 2:06 pm
... and I can't find where are they from
First clear this:
(Firefox Sourcecode Screenshot)
<?php
.
tata-3.png
You do not have the required permissions to view the files attached to this post.
Last edited by frase on Sun Jun 03, 2018 2:35 pm, edited 1 time in total.

cmb
Posts: 12597
Joined: Tue Jun 21, 2011 11:04 am
Location: Mü-Sa, RLP, DE
Contact:

Re: Advancedform & ModalBox

Post by cmb » Sun Jun 03, 2018 2:35 pm

Tata wrote:
Sun Jun 03, 2018 2:06 pm
TypeError: menu is null[Learn More] | onepage.js:27:46
That's a bug in Onepage_XH. The plugin assumes that #onepage_menu exists, which is not necessarily the case. Quick-Fix: replace this line with:

Code: Select all

            if (!(menu = document.getElementById("onepage_menu"))) {return};
I'll try to have a closer look at the other issues a while later.
Christoph M. Becker –Plugins for CMSimple_XH, but not for CMSimple 4+

frase
Posts: 1885
Joined: Thu Apr 21, 2016 6:32 am
Location: Saxony
Contact:

Re: Advancedform & ModalBox

Post by frase » Sun Jun 03, 2018 2:40 pm

TypeError: document.getElementById(...) is null[Learn More] | rancdubina.cmsimple.sk:132:4
This is the newsletter-plugin.

Code: Select all

function getFocus() {
    document.getElementById("subscribermail").focus();
}
But, "subscribermail" not exist.

The same up to line 185 ff
function newsletter_ValidEmail(form){

Post Reply