FQDN breaks the code
-
If you insert a fully qualified domain name (FQDN) in the ‘Popup Link Text/Label/Image’ or in the body of the of the popup then the javascript reference has a space inserted into it, hence breaking the code.
Working Example:
If I insert
<img src="wordpress35/wp-content/uploads/2013/05/info_icon.jpg" />
in the ‘Popup Link Text/Label/Image’ fieldthe popup button works. The code is:
<a ref='javascript:AnythingPopup_OpenForm("AnythingPopup_BoxContainer8","AnythingPopup_BoxContainerBody8","AnythingPopup_BoxContainerFooter8","333","333");'><img src="wordpress35/wp-content/uploads/2013/05/info_icon.jpg"></a>
The same applies to the body of the text. Using this type of link breaks the visual editor in WP and it is not possible to include external URLs in the popup.
Non-Working Example:
If I insert
<img src="https://www.websitename.com/wordpress35/wp-content/uploads/2013/05/info_icon.jpg" />
in the ‘Popup Link Text/Label/Image’ fieldthe popup button is non-responsive. The code is:
<a ref='javascript:AnythingPopup_OpenForm(" AnythingPopup_BoxContainer8","AnythingPopup_BoxContainerBody8","AnythingPopup_BoxContainerFooter8","333","333");'><img src="https://www.websitename.com/wordpress35/wp-content/uploads/2013/05/info_icon.jpg"></a>
Note the extra space in _OpenForm(” AnythingPopup_BoxContainer
^
A couple of notes:
(1) I tried<img src="https://" />
in the Link field and that works (no space at least) but<img src="https://w" />
fails.(2) This does NOT ALWAYS fail when inserting an image into the body of the popup
- The topic ‘FQDN breaks the code’ is closed to new replies.