Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

javascript methods flow of execution

 
praneeth ram
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

Is anybody know the exact flow of javascript functions excution. I have Three methods as below.
loadFormData();
displayHeight();
displayTextContent();

in any javascript the above functions will execute without order. now i want to make the above functions execution in a sequence. if any one knows please reply.

Thanks,
Praneeth.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65223
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
They will execute in the sequence in which you call them.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
praneeth ram wrote:
in any javascript the above functions will execute without order


Um, they execute in the order you call them. Now if the metods fire off asynchronous processes, than it may seem random.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic