Welcome Guest, Not a member yet? Register   Sign In
ajax request with jquery problem
#4

[eluser]InsiteFX[/eluser]
Replace $ with s in script tags.
Code:
<head>
<$cript type="text/javascript" charset="utf-8">
  //&lt;![CDATA[
   var base_url = "&lt;?php echo base_url(); ?&gt;";
   var site_url = "&lt;?php echo site_url(); ?&gt;";
  // ]]>
</$cript>
&lt;/head&gt;

Now you can use base_url and site_url in your jQuery.

Code:
$.post(base_url+"admin/process", {'item' : item}, function(Data){


Messages In This Thread
ajax request with jquery problem - by El Forum - 05-29-2012, 02:29 PM
ajax request with jquery problem - by El Forum - 05-29-2012, 03:07 PM
ajax request with jquery problem - by El Forum - 05-29-2012, 05:00 PM
ajax request with jquery problem - by El Forum - 05-29-2012, 07:13 PM



Theme © iAndrew 2016 - Forum software by © MyBB