【问题标题】:ajax not working in breezing forms component of joomla [closed]ajax 在 joomla 的微风表单组件中不起作用 [关闭]
【发布时间】:2012-01-31 09:04:30
【问题描述】:
function ff_chk_username_unique(element, action)
{
alert(element.value);
alert(action);
var actiona="http://localhost/myproject/check/check_username.php";
var form_data = {
            username: element.value,
        };
alert(actiona);

    $.ajax({
            type: "GET",
            url: actiona,
            data: form_data,
                        success: function(response)
            {
                           alert(response)

            }
        });

} // ff_chk_username_unique

我的 ajax 文件的代码...

在 ajax 中不调用文件,

ajax 定义正确吗?请帮我解决它....

【问题讨论】:

    标签: joomla1.6 breezingforms


    【解决方案1】:

    它在 breezingforms 中工作,但您需要在使用 ajax 时添加 jquery 文件...

    【讨论】:

    • 你能解释一下你的答案吗?谢谢
    • 是的,你想在哪里使用 jquery ajax。使用 joomla 的 addscript() 类函数在该文件中添加 jquery 文件
    猜你喜欢
    • 2013-03-19
    • 2016-06-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-10-29
    • 2016-08-28
    • 2016-04-18
    • 1970-01-01
    相关资源
    最近更新 更多