Welcome Guest, Not a member yet? Register   Sign In
Jquery and CI, URL problems
#5

[eluser]jdfwarrior[/eluser]
If this code:

Code:
function BuyRecord(id)
{
    $(”#cart”).load(”<?php echo $base;?>ajax/ajax_cart.php”, { ‘recordid’:[id] });
}

Is in an external js file, then its not executing the php. So your are literally trying to load the string you have there.. not the value of $base.


Messages In This Thread
Jquery and CI, URL problems - by El Forum - 08-18-2009, 05:11 AM
Jquery and CI, URL problems - by El Forum - 08-18-2009, 05:34 AM
Jquery and CI, URL problems - by El Forum - 08-18-2009, 06:49 AM
Jquery and CI, URL problems - by El Forum - 08-18-2009, 06:51 AM
Jquery and CI, URL problems - by El Forum - 08-18-2009, 06:58 AM
Jquery and CI, URL problems - by El Forum - 08-18-2009, 07:53 AM
Jquery and CI, URL problems - by El Forum - 08-18-2009, 07:56 AM
Jquery and CI, URL problems - by El Forum - 08-18-2009, 08:01 AM
Jquery and CI, URL problems - by El Forum - 08-18-2009, 08:12 AM
Jquery and CI, URL problems - by El Forum - 08-18-2009, 08:21 AM



Theme © iAndrew 2016 - Forum software by © MyBB