• Resolved AhmedBhula

    (@ahmedbhula)


    Hi,

    Firstly, great plugin!

    I have noticed an issue:

    We’re moving our order forms into site site using an iFrame so a user doesn’t go to a separate URL. The link for this works anywhere on the site except when within the wp-table-reloaded plugin.

    I have setup a test page here with the link outside and inside the table and it doesn’t work when inside the table.

    https://www.expressdoctor.co.uk/tami-flu/

    The test link works fine however the first link within the table uses the same code but unfortunately does not work.

    Would you have a solution for this?

    Please let me know if you would like any further info.

    Regards,
    Ahmed

    https://www.ads-software.com/extend/plugins/wp-table-reloaded/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    This seems to be caused by some custom JavaScript code that you have on your site. Near the bottom of the page, I found this, which manipulates all links a table:

    jQuery('body.page-template-default table.wp-table-reloaded').on('click', 'a', function(e) {
    			var $this = jQuery(this);
    			//console.log($this.prop('href'));
    			//console.log(jQuery(document)[0].referrer);
    			//console.log(getParameters(jQuery(document)[0].referrer));
    			console.log('2 session[ref]: ' + jQuery.session.get('ref'));
    			console.log('2 session[site]: ' + jQuery.session.get('site'));
    			console.log('old a href: ' + $this.prop('href'));
    			$this.prop('href', $this.prop('href') + '&ref=' + jQuery.session.get('ref') + '&site=' + jQuery.session.get('site'));
    			console.log('new a href: ' + $this.prop('href'));
    		});
    		// End Added by ByColor - 2012.10.11 - Add affiliate params

    Regards,
    Tobias

    Thread Starter AhmedBhula

    (@ahmedbhula)

    Thanks so much! The javaScript wasn’t being used for anything so removed it and that did the trick.

    Thanks again ??

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    awesome! Good to hear that this fixed it! ??

    By the way: WP-Table Reloaded has been replaced by TablePress, you might want to check it out: https://tobias.baethge.com/2013/01/tablepress-replaces-wp-table-reloaded/

    Best wishes,
    Tobias

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Link to page with iFrame error’ is closed to new replies.