WordPress.org

Support

Support » Plugins and Hacks » WP-Table Reloaded » [Resolved] Link to page with iFrame error

[Resolved] Link to page with iFrame error

  • 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.

    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

    http://wordpress.org/extend/plugins/wp-table-reloaded/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author TobiasBg

    @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

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

    Thanks again 🙂

    Plugin Author TobiasBg

    @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: http://tobias.baethge.com/2013/01/tablepress-replaces-wp-table-reloaded/

    Best wishes,
    Tobias

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