Results 1 to 3 of 3

Thread: Trustpilot content in tab doesn't load unless page is refreshed

  1. #1
    Join Date
    Oct 2013
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Trustpilot content in tab doesn't load unless page is refreshed

    1) Script Title: Tab Content Script (v 2.2)

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...tabcontent.htm

    3) Describe problem: The tabs, scripts and styling are working fine. However, I'm trying to display a Trustpilot customer reviews widget in the 'Reviews' tab on this page http://www.castleberg.greenjerseyweb...Jacket-13.html. The reviews don't display unless I refresh the page (I've just discovered the same problem on another customer site). I can use 'onClick="location.reload()"' for this particular tab, which does display the content after a page reload, but it reloads the entire page and I'd prefer just to reload the content in the tab if possible. Can anyone help?

    Thanks

    Anthony

  2. #2
    Join Date
    Mar 2010
    Location
    Florida
    Posts
    381
    Thanks
    6
    Thanked 35 Times in 33 Posts

    Default

    First if you are using the script from Dynamic Drive you need to include this:

    Code:
    /***********************************************
    * Tab Content script v2.2-  Dynamic Drive DHTML code library (www.dynamicdrive.com)
    * This notice MUST stay intact for legal use
    * Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
    ***********************************************/
    Second, which web browser are you viewing this from?
    -DW [Deadweight]
    Resolving your thread: First Post: => EDIT => Lower right: => GO ADVANCED => Top Advance Editor drop down: => PREFIX:Resolved

  3. #3
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    29,135
    Thanks
    44
    Thanked 3,231 Times in 3,192 Posts
    Blog Entries
    12

    Default

    .

    Your page is in violation of Dynamic Drive's usage terms, which, among other things, state that the script credit must appear in the source code of the page(s) using the script. Please reinstate the notice first.


    That said, the widget probably cannot initialize properly when it's display none, which is what the unseen tabs are in this script. When I have more time I will see if I can modify the script to use a combination of absolute positioning and visibility to hide the unseen tabs instead of the display property. That's usually what must be done to fix this sort of thing.

    Edit: I Got the time:


    First backup the .js and .css files you're using now, just in case. Use the updated .js and .css files in the attached archive (right click and 'Save As'):

    tab-content.zip
    Last edited by jscheuer1; 10-14-2013 at 09:49 PM.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Similar Threads

  1. Dynamic Ajax Content doesn't load Flashpreoloader? (swf)
    By miow in forum Dynamic Drive scripts help
    Replies: 7
    Last Post: 08-27-2010, 04:48 PM
  2. Looking for Lightbox like script which doesn't wait while all page elements load
    By viens in forum Looking for such a script or service
    Replies: 0
    Last Post: 05-03-2010, 03:54 PM
  3. Replies: 1
    Last Post: 04-01-2008, 12:52 PM
  4. Switch menu doesn't collapse on page load..
    By triplwammy in forum Dynamic Drive scripts help
    Replies: 6
    Last Post: 12-02-2005, 06:16 PM
  5. Switch menu doesn't collapse on page load..
    By triplwammy in forum JavaScript
    Replies: 0
    Last Post: 11-17-2005, 08:47 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •