0 Replies Latest reply on Nov 13, 2012 4:41 AM by myrkopp

    Referencing Symbol Instances

    myrkopp

      Hi there,

       

      I would like to assign different HTLM content by using iframe to each instance of a symbol. My question is how do refrence each instances (where do I get the instances number from or can I use an instance name?).

       

      What would the syntax look like for:

       

      If instance number = 1

       

      then

       

      $('<iframe id="myFrame"src="http://www.adobe.com" frameborder="0" scrolling="yes"></iframe>').appendTo(sym.$('text'));

      sym.$("#myFrame").css({"height":"100%","width":"100%","overflow-x": "hidden","margin-top":"0px"});

       

      else

       

      $('<iframe id="myFrame"src="http://www.microsoft.com" frameborder="0" scrolling="yes"></iframe>').appendTo(sym.$('text'));

      sym.$("#myFrame").css({"height":"100%","width":"100%","overflow-x": "hidden","margin-top":"0px"});

       

       

      Thanks

       

      Rainer