Welcome Guest, Not a member yet? Register   Sign In
URIs from Ajax
#2

No it wont.

You need to tell it were to go controller/method

Code:
// like this
url: "<?= base_url('controller/method');?>",

// or like this
// HTML HEAD
<head>
    <script type="text/javascript">
        //<![CDATA[
        baseUrl = '<?= base_url();?>';
        //]]>
    </script>

</head>

url: baseUrl+'controller/method',

SEECodeIgniter 4 Ajax Form Submit Validation Example
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Messages In This Thread
URIs from Ajax - by phaworth - 08-13-2020, 02:01 PM
RE: URIs from Ajax - by InsiteFX - 08-14-2020, 03:53 AM
RE: URIs from Ajax - by phaworth - 08-14-2020, 09:33 AM



Theme © iAndrew 2016 - Forum software by © MyBB