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

[eluser]ahmed hamza[/eluser]
first make a hidden tag in ur view file 'html' like that

<input type='hidden' id='mybase' value='<?php echo $base; ?>' />

second in ur js file u can get the value using the following

var base=document.getElementById('mybase').value;

now u get the CI base config value in ur js file ,
enjoy ur self


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