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

[eluser]sansanwawa[/eluser]
[quote author="pandjie" date="1208170346"]I have added 'id' but it still can't work.[/quote]

Hi,Pandjie

have u tried

Code:
$name = 'txt_value'

as i said before

Code:
$objResponse->addAssign($an_Id_Of_YourElement_Not_a_value_Or_name_of_your_element,"value","test");
...Edit...

Here is from xajaxResponse.inc.php class,you can read for usage.

Code:
/**
     * Adds an assign command message to the XML response.
     *
     * <i>Usage:</i> <kbd>$objResponse->addAssign("contentDiv", "innerHTML", "Some Text");</kbd>
     *
     * @param string contains the id of an HTML element
     * @param string the part of the element you wish to modify ("innerHTML",
     *               "value", etc.)
     * @param string the data you want to set the attribute to
     */



Regards


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