Results 1 to 6 of 6

Hybrid View

  1. #1

    Default Re: A jQuery question

    I've read the jscript tutorial as you suggested Kobra but it doesn't really help with my problem.
    I have my javascript inserted in the right place and it's running correctly.
    What I would like to do is call one of the Zen Cart php functions from my php script that is located in htdocs/AJAX_servers

    For some reason I can't call any Zen Cart functions from my php script. I'm guessing it's because it's located outside of the includes folder.

    A better way to solve my problem would be to be able to call a php script that resides below the includes folder.
    Ive tried the following jQuery:

    jQuery.post("AJAX_ask_question_server.php"........
    This works if I have my AJAX_ask_question_server.php located in my root.

    If I try:
    jQuery.post("AJAX_servers/AJAX_ask_question_server.php".....
    This works too.

    If I try:
    jQuery.post("includes/AJAX_ask_question_server.php".....
    This fails even though I have uploaded my AJAX_ask_question_server.php script in to the includes folder.

    Do you know how I can call a php script that resides inside the includes folder?

  2. #2

    Default Re: A jQuery question

    Ok, I've found out why I can't access a php script from my jQuery javascript if it is insdide the includes folder....it's the .htaccess file that sits inside the includes folder.
    The .htaccess file is as follows:
    Code:
    # $Id: .htaccess 1105 2005-04-04 22:05:35Z birdbrain $
    #
    # This is used with Apache WebServers
    # The following blocks direct HTTP requests in this directory recursively
    #
    # For this to work, you must include the parameter 'Limit' to the AllowOverride configuration
    #
    # Example:
    #
    #<Directory "/usr/local/apache/htdocs">
    #  AllowOverride Limit
    #
    # 'All' with also work. (This configuration is in your apache/conf/httpd.conf file)
    #
    # This does not affect PHP include/require functions
    #
    # Example: http://server/catalog/includes/application_top.php will not work
    
    <Files *.php>
    Order Deny,Allow
    Deny from all
    </Files>
    So, as I'm useless on htaccess as well as jQuery, can anybody tell me a way I can stop this htaccess blocking jQuery requests for php scripts?

 

 

Similar Threads

  1. v139h Jquery
    By AmyS in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 23 Sep 2012, 09:21 PM
  2. JQuery Calculation
    By jazzman2 in forum General Questions
    Replies: 2
    Last Post: 9 Jan 2012, 01:52 AM
  3. Jquery?
    By cpdantha in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 16 Feb 2011, 04:04 PM
  4. CSS Border Question and Jquery Rotator
    By ctrujillo in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 18 Jan 2011, 11:33 PM
  5. a jquery question
    By g_force in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 5 Sep 2009, 11:59 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg