[jQuery] Re: Autocomplete - Problem accessing php file

2009-05-14 Thread spstieng
Alright! After about 20 hours of research, I found the answer in a blog by Ryan Pharis (link above). As I was suspecting, it was an easy solution. Wordpress is using "user friendly URLS". Therefore my path ended up like this: http://www.mysite.com/includes/autosuggest.php?json=true&; The REAL pa

[jQuery] Re: Autocomplete - Problem accessing php file

2009-05-14 Thread spstieng
It's so fun answering my own posts :) Well, I have dug out this: http://ryanpharis.com/2008/10/ajax-for-wordpress-plugins-using-jquery/ http://amiworks.co.in/talk/simplified-ajax-for-wordpress-plugin-developers-using-jquery/ I will give this a go and see how I progress.

[jQuery] Re: Autocomplete - Problem accessing php file

2009-05-13 Thread spstieng
Progress! The main script (autosuggest) is triggering now in Wordpress. But now I'm having problems getting the script to locate the "get_labels.php" script. I'm using "user friendly" urls. My permalink is set up to http://www.mysite.com/ %category%/%postname %. So if I'm reading a post called H

[jQuery] Re: Autocomplete - Problem accessing php file

2009-05-13 Thread spstieng
Alright. I found the problem. In my get_labels.php, I was . This ahad to change to ../afile.php So now "includes/get_labels.php?json=true&" is working. Now comes the real problem. I need this to work in a template I'm making in Wordpress. So far, it looks lke the main script isn't triggering. I