WordPress.org

Ready to get started?Download WordPress

Forums

WP-Table Reloaded
[resolved] Link to page with iFrame error (4 posts)

  1. AhmedBhula
    Member
    Posted 1 year ago #

    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.

    http://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

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

  2. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    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

  3. AhmedBhula
    Member
    Posted 1 year ago #

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

    Thanks again :)

  4. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic