1. #1
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,567
    Vote Rating
    55
    Animal will become famous soon enough Animal will become famous soon enough

      0  

    Default YAHOO.ext.UpdateManager

    Needs this code:

    Code:
    	YAHOO.util.Connect.asyncRequest(method, url, callback, params);
    Changing to:

    Code:
    	YAHOO.util.Connect.setForm();
    	YAHOO.util.Connect.asyncRequest(method, url, callback, params);
    Otherwise, because it's "static", any form data from a previous setForm() call will be in there, and appended to the URL.

    I use YAHOO.util.Connect.setForm() to create a parameter string in uurlencoded format to pass as a DWR argument.

  2. #2
    Sencha User jack.slocum's Avatar
    Join Date
    Mar 2007
    Location
    New York, NY
    Posts
    6,956
    Vote Rating
    18
    jack.slocum will become famous soon enough jack.slocum will become famous soon enough

      0  

    Default

    asyncRequest automatically clears the form. UpdateManager doesn't need to clear it.

    I understand what you are doing though. You are calling setForm from your code and using it's logic to create your form urlencoded and then not using asyncRequest so it is never cleared. Wouldn't the best solution then be for your code which is calling setForm() to clear the form after it is done?

Similar Threads

  1. YAHOO.extend() versus YAHOO.extendX()
    By griffiti93 in forum Community Discussion
    Replies: 2
    Last Post: 2 Feb 2007, 3:55 PM
  2. YAHOO.ext.BorderLayout && YAHOO.ext.ContentPanel
    By wos in forum Ext 1.x: Help & Discussion
    Replies: 2
    Last Post: 13 Dec 2006, 6:14 AM
  3. UpdateManager
    By techno_adi in forum Ext 1.x: Bugs
    Replies: 4
    Last Post: 15 Nov 2006, 6:54 AM
  4. YAHOO.ext.UpdateManager setting Content-Type for ISO-8859
    By young_matthewd in forum Ext 1.x: Help & Discussion
    Replies: 3
    Last Post: 14 Nov 2006, 11:32 AM
  5. Basic usage of YAHOO.ext.UpdateManager
    By angusf in forum Ext 1.x: Help & Discussion
    Replies: 7
    Last Post: 12 Oct 2006, 8:19 PM

Thread Participants: 1

Tags for this Thread