Guest User

Untitled

a guest
Nov 16th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. <aura:component controller="NavigationController" access="GLOBAL">
  2. <ltng:require scripts="{!$Resource.Jquery224}" afterScriptsLoaded="{!c.scriptsLoaded}" /> ==> Tried latest version and also the old versions. but no luck
  3. <!-- NavigateAndFocusDetails -->
  4. <aura:handler name="init" value="{!this}" action="{!c.onCompLoad}"/>
  5. <aura:attribute name="Contacts" type="Object[]"/>
  6. <div class="divCls">
  7. <aura:iteration items="{!v.Contacts}" var="con">
  8. <div id="{!con.Id}" tabindex='1' >
  9. <span>{!con.FirstName}&nbsp;{!con.LastName}</span><br/>
  10. <span>{!con.Account.Name }</span><br/>
  11. </div>
  12. </aura:iteration>
  13. </div>
  14.  
  15. ({
  16. onCompLoad : function(component, event, helper) {
  17. //get all contacts from apex.
  18. },
  19.  
  20. scriptsLoaded : function(comp,eve,help){
  21. var divId ='#0036F00002mvuebQAA';
  22. $(divId).addClass("highlight");
  23. alert($(divId).length); ==> On f5, this comes as 0 and when cntrl+f5, the value returns 1.
  24. }
  25. })
Add Comment
Please, Sign In to add comment