Welcome Guest, Not a member yet? Register   Sign In
Integrating jQuery & CI
#11

[eluser]KevinSPerrine[/eluser]
It is working if I use what is below, but it will not work if I have the href tag in. I just find it odd that it won't even work with href="#" as you suggested.

Code:
//leftnav
//onclick change to get it to show up properly.
<li><a -onclick-="loadhome('&lt;?=base_url()?&gt;index.php')">Home</a></li
<li><a -onclick-="loadsorghum('&lt;?=base_url()?&gt;index.php')">Sorghum &amp; Corn</a></li>

//arvt.js
function loadhome(base_url){
    var loc = base_url + "/crop/home";
    $("#content").load(loc);
}

function loadsorghum(base_url){
    var loc = base_url + "/crop/sorghumcorn";
    $("#content").load(loc);
}
#12

[eluser]jdfwarrior[/eluser]
That is pretty weird. Are you satisfied with that though or would you like me to help you find another solution?
#13

[eluser]KevinSPerrine[/eluser]
I'm happy with that result. Thank you for help!




Theme © iAndrew 2016 - Forum software by © MyBB