Welcome Guest, Not a member yet? Register   Sign In
How to Pass Config Information to JS?
#6

[eluser]slowgary[/eluser]
I wouldn't recommend storing server side variables in <input> tags, just for retrieval via Javascript. There's extra overhead involved on the client to retrieve that value from the DOM. It's better to just assign a Javascript variable at the top of your document.


Messages In This Thread
How to Pass Config Information to JS? - by El Forum - 09-08-2010, 03:31 PM
How to Pass Config Information to JS? - by El Forum - 09-08-2010, 05:38 PM
How to Pass Config Information to JS? - by El Forum - 09-08-2010, 06:30 PM
How to Pass Config Information to JS? - by El Forum - 09-08-2010, 06:51 PM
How to Pass Config Information to JS? - by El Forum - 09-09-2010, 08:16 AM
How to Pass Config Information to JS? - by El Forum - 09-09-2010, 11:37 AM
How to Pass Config Information to JS? - by El Forum - 09-09-2010, 04:29 PM
How to Pass Config Information to JS? - by El Forum - 09-09-2010, 05:09 PM
How to Pass Config Information to JS? - by El Forum - 09-09-2010, 05:53 PM



Theme © iAndrew 2016 - Forum software by © MyBB