locked
Run script as tab is selected RRS feed

  • Question

  • Hi

    Long time ago I saw a script that shows how to first activate the content of an iframa as the tab the iframe is on is selected, but now I can't find that script again. Anyone know how to do that?

    I have 3 iframes on an form and I see no reason to load them all if the user does not select the tab they are on.

    Friday, August 20, 2010 7:07 AM

Answers

  • you can create a function on form onload and call it on tab click like as below

    this is the code if you want to run some script if tab 2 tab is select, tab index start with 0

    crmForm.all.tab1Tab.onClick=function()

    {

    //Code to load your iframe

    }


    Mahain : http://mahenderpal.wordpress.com
    Friday, August 20, 2010 7:10 AM
    Moderator

All replies

  • you can create a function on form onload and call it on tab click like as below

    this is the code if you want to run some script if tab 2 tab is select, tab index start with 0

    crmForm.all.tab1Tab.onClick=function()

    {

    //Code to load your iframe

    }


    Mahain : http://mahenderpal.wordpress.com
    Friday, August 20, 2010 7:10 AM
    Moderator
  • Thank you for your fast reply. Can't remember if that was the script i saw but I'm sure it will do the job. Thank you. :-)
    Friday, August 20, 2010 7:14 AM