English 中文(简体)
JQuery Smart Wizard: 动态ajax 内容
原标题:JQuery SmartWizard: Dynamic ajax content

我使用"http://techlaboratrial.net/ products.php? product=smartwizard&action=2" rel="nofollow" >JQuery SmartWizard ,它有能力使用Ajax装载内容,但我不知道如何将任何参数传递到服务器上。我是不是漏掉了什么?

使用 Ajax 的目的似乎是将参数发送到服务器, 并根据输入参数获取不同的内容, 对吧? 我只看到一个步数参数, 但我不知道它是如何或是否可以被改变, 因为有固定的步数。 谢谢 。

最佳回答

you pass variables to the server using the url. file.php?do=nothing&name=john&relaxmode=on

function getdata(url,id,lastseen)
    {
    $.ajax(url+’?userid=’+id+’&lastvisit=’+lastseen).done(function(data)
        {
        if(data.indexOf(’alive’)!=-1)alert(’he is alive’)
        })
   }
问题回答

You can make change to ajaxurl in function leaveAStepCallback. you can place one hiddenfield and can assign modified ajaxurl in this hidden field. in wizard js file we should modify that url call to get value from hidden field value of ajaxurl.

e. 在ajax呼叫前

if ($("#ajaxUrl").val() != "") {
                               ajaxurl = $("#ajaxUrl").val()
                           }




相关问题
ajax login using httpRequest?

I am trying to develop my login script to give feedback to the user if the login is valid or not. Basically if it isn t correct a div box will show saying its wrong, if its correct it will show its ...

Virtual Tour using sketch up, ajax, flash technologies

I want to know if there are existing technology that make your 3d models in sketch into virtual tours, using either Ajax or Flash for web presentation. If there s none, which will be a good approach ...

How can i update div continuously

I have asp.net application where i have a div which showing the value from other site. The value of that site is changing continuously. I want that my div will automatically update in some interval ...

热门标签