Javascript 未使用AJAX加载php页面选项卡

Javascript 未使用AJAX加载php页面选项卡,javascript,php,jquery,ajax,Javascript,Php,Jquery,Ajax,我正在使用从codecanyon获得的tabs类。。。 基本上,我有几个选项卡,我想显示,但所有的信息都是php文件(不是很大或资源消耗) 我使用下面的代码加载页面。在初始加载时,第一个页面会加载(加载时必须访问数据库等),然后我可以浏览到第二个页面(此时只有html)。但只要我想回到php页面,它就一直在加载 我不能在库中使用get或post方法,因为我已经在使用get方法传递变量,而post会丢弃get方法值 有什么方法可以解释当php代码进入时页面为什么不加载 当我在chrome中检查控制

我正在使用从codecanyon获得的tabs类。。。 基本上,我有几个选项卡,我想显示,但所有的信息都是php文件(不是很大或资源消耗)

我使用下面的代码加载页面。在初始加载时,第一个页面会加载(加载时必须访问数据库等),然后我可以浏览到第二个页面(此时只有html)。但只要我想回到php页面,它就一直在加载

我不能在库中使用get或post方法,因为我已经在使用get方法传递变量,而post会丢弃get方法值

有什么方法可以解释当php代码进入时页面为什么不加载

当我在chrome中检查控制台时,我确实注意到了这一点(页面加载后会显示:

http://website/includes/tabs/inc/getcontent.php?filename=%2Fuser_management%2Fuser_profile.php&password=apphptabs 

Failed to load resource: the server responded with a status of 500 (Internal Server Error)`
但我不是100%确定是什么原因造成的。因为它最初加载得非常完美

## *** include tabs class
   define ("TABS_DIR", "includes/tabs/");
    require_once(TABS_DIR."tabs.class.php");

    ## *** create tabs object
    $tabs = new Tabs();

    ## *** set form submission type: "get", "post" or "ajax"
    $tabs->SetSubmissionType("ajax");

    ## *** set CSS style
    $tabs->SetStyle("grey");

    ## *** set Tabs caption
    //$tabs->SetCaption("ApPHP Tabs v".$tabs->Version());
    ## *** show debug info - false|true
    $tabs->Debug(false);

    ## *** set mode of displaying child tabs
    $tabs->SetChildTabsType("dropdown");

    ## *** allow refreshing selected tabs
    $tabs->AllowRefreshSelectedTabs(false);

    ## *** add tabs
    ## Example 1: $tabs->AddTab("Title");
    ## Example 2: $tabs->AddTab("Title", "text.txt");
    ## Example 3: $tabs->AddTab("Title", "text.txt", "icon.gif");#1");
    $user_profile=$tabs->AddTab("Personal Information", "user_management/user_profile.php");
    $permissions=$tabs->AddTab("Permissions", "user_management/permissions.php");

    ## *** set container's width
    $tabs->SetWidth("690px");
    $tabs->SetHeight("300px");
    //$tabs->SetWidth("100%");
    //$tabs->SetWidth("auto");

    ## *** choose a default tab
    $tabs->SetDefaultTab($user_profile);

    ## *** display tabs
    $tabs->Display();

我找到了解决方案

在ajax中加载php文件时会出现问题,我使用的相对路径不起作用

我刚刚将
include('../../functions.php');
更改为
require_once(uu DIR_u.../../functions.php');
问题立即自行解决