Welcome Guest, Not a member yet? Register   Sign In
Javascript rendered in view fragments?
#3

[eluser]marlar[/eluser]
I could certainly be a library or helper too. I think the actual implementation is not so important; it's more the idea that the code is put somewhere centrally so whenever I call "popup menu" I will get the right code based on whatever JS library I am going for.

When I think of it, a library (being a class) could actually be the most logical way. There could then be methods for initializing the menu, invoking it, changing the look and feel etc. By calling the menu object instead of the underlying JS library, I get exactly the desired effect: independence on the chosen library.


Messages In This Thread
Javascript rendered in view fragments? - by El Forum - 12-12-2007, 03:50 PM
Javascript rendered in view fragments? - by El Forum - 12-12-2007, 04:55 PM
Javascript rendered in view fragments? - by El Forum - 12-12-2007, 05:07 PM



Theme © iAndrew 2016 - Forum software by © MyBB