Welcome Guest, Not a member yet? Register   Sign In
best way to handle several body onload
#1

[eluser]zenon[/eluser]
Hi, I'm using jquery routine to init all elements where body document is laoded.

Code:
$(document).ready(function(){

});

How could I handle this routine for each page?

One solution may be to build a first common header part and another specified on each controller, but another solution I heard could be to inject a javascript source still from controller.
Have you ever hear about this?
However, which approach do you use?

Thank you Smile


Messages In This Thread
best way to handle several body onload - by El Forum - 03-09-2011, 11:58 AM
best way to handle several body onload - by El Forum - 03-09-2011, 12:51 PM
best way to handle several body onload - by El Forum - 03-09-2011, 01:05 PM
best way to handle several body onload - by El Forum - 03-09-2011, 02:25 PM
best way to handle several body onload - by El Forum - 03-09-2011, 02:42 PM
best way to handle several body onload - by El Forum - 03-09-2011, 02:54 PM
best way to handle several body onload - by El Forum - 03-09-2011, 03:00 PM



Theme © iAndrew 2016 - Forum software by © MyBB