• ian.t.price

    (@iantpricegmailcom)


    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’ field

    the 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="http://www.websitename.com/wordpress35/wp-content/uploads/2013/05/info_icon.jpg" />
    in the ‘Popup Link Text/Label/Image’ field

    the popup button is non-responsive. The code is:
    <a ref='javascript:AnythingPopup_OpenForm(" AnythingPopup_BoxContainer8","AnythingPopup_BoxContainerBody8","AnythingPopup_BoxContainerFooter8","333","333");'><img src="http://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="http://" /> in the Link field and that works (no space at least) but <img src="http://w" /> fails.

    (2) This does NOT ALWAYS fail when inserting an image into the body of the popup

    http://wordpress.org/extend/plugins/anything-popup/

Viewing 1 replies (of 1 total)
  • Hi!

    I’ve the same problem

    if popup content has an:

    <img src="http://a" />
    <a>text</a>

    popup link will not work and when mouse cursor is over the link the Firefox show only

    javascript:AnythingPopup_OpenForm(

    without any additional parameters.
    if you delete top or bottom line of the popup content all be ok.
    ……………………………………………………
    WordPress Version 3.6
    Anything Popup Version 5.0

Viewing 1 replies (of 1 total)
  • The topic ‘FQDN breaks the code’ is closed to new replies.