Welcome Guest, Not a member yet? Register   Sign In
using xajax in button and textfield
#5

[eluser]pandjie[/eluser]
do you mean something like this ?

Code:
function process_form($form_data){
            $objResponse = new xajaxResponse();
            $name = 'txt_value';
            $objResponse->addAssign($name, "value", "test");
            return $objResponse;
        }

and

Code:
<form name="ajaxform" id="ajaxform" onsubmit="return false;">
          This is your name :
          <input type="text" id="txt_value" name="txt_value" size="20"/>
          <input type="submit" value="submit" onclick="xajax_process_form(xajax.getFormValues('ajaxform'));"/>
  </form>

It still doesn't work. I'm confusing. Is that about xajax version ?
I use xajax0.5 beta 4b.


Messages In This Thread
using xajax in button and textfield - by El Forum - 04-13-2008, 08:28 PM
using xajax in button and textfield - by El Forum - 04-13-2008, 11:38 PM
using xajax in button and textfield - by El Forum - 04-13-2008, 11:52 PM
using xajax in button and textfield - by El Forum - 04-14-2008, 12:09 AM
using xajax in button and textfield - by El Forum - 04-14-2008, 12:36 AM
using xajax in button and textfield - by El Forum - 04-14-2008, 01:35 AM
using xajax in button and textfield - by El Forum - 04-14-2008, 02:05 AM



Theme © iAndrew 2016 - Forum software by © MyBB