jquery - Ajax from subfolder -


i try make ajax call within subdirectory, 404 error.

structure of files:

public_html   - m     - index.php    - includes     - s       - c         - index.php         -script.php 

index.php

in m/index.php use require_once load includes/s/c/index.php

in includes/s/c/index.php have

$.get('/includes/s/c/script.php', {i:"2"},     function(response){              alert('working')         }     );     }); 

this works index.php, not m/index.php. 404 code given. how can adjust path script.php callable m/index.php

edit: discovered can due cross-site scripting. actually, m folder version of mobile site. so, call script.php belongs mysite.com m.mysite.com should resolve problem?


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -