/[webpac2]/trunk/web/iwf/iwfajax.js
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/web/iwf/iwfajax.js

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 55 by dpavlin, Tue Nov 15 14:29:45 2005 UTC revision 56 by dpavlin, Tue Nov 15 14:29:59 2005 UTC
# Line 276  function _iwfGetFormData(form, url, ctl) Line 276  function _iwfGetFormData(form, url, ctl)
276                                          switch(iwfAttribute(el, 'type')){                                          switch(iwfAttribute(el, 'type')){
277                                                  case 'checkbox':                                                  case 'checkbox':
278                                                  case 'radio':                                                  case 'radio':
279                                                          if (iwfAttribute(el, 'checked')){                                                          if (iwfAttribute(el, 'checked') || el.checked){
280                                                                  val = iwfAttribute(el, 'value');                                                                  val = iwfAttribute(el, 'value') || el.value;
281                                                          }                                                          }
282                                                          break;                                                          break;
283                                                  case 'button':                                                  case 'button':
# Line 311  function _iwfGetFormData(form, url, ctl) Line 311  function _iwfGetFormData(form, url, ctl)
311                                          }                                          }
312                                          break;                                          break;
313                                  case 'textarea':                                  case 'textarea':
314                                          val = iwfAttribute(el, 'innerText');                                          val = iwfAttribute(el, 'innerText') || el.value;
315                                          break;                                          break;
316                                  case 'button':                                  case 'button':
317                                          if (el == ctl){                                          if (el == ctl){
318                                                  val = iwfAttribute(el, 'innerText');                                                  val = iwfAttribute(el, 'innerText') || el.value;
319                                          }                                          }
320                                          break;                                          break;
321                                  case 'select':                                  case 'select':
# Line 520  function _iwfInsertHtml(html, parentNode Line 520  function _iwfInsertHtml(html, parentNode
520                                  iwfAppendChild('body', elScript);                                  iwfAppendChild('body', elScript);
521    
522                          } catch(e){                          } catch(e){
523  iwfLog("IE Hack for injecting script tag...", true);  //iwfLog("IE Hack for injecting script tag...", true);
524                                  //! IE hack                                  //! IE hack
525                                  // IE needs a visible tag within a non-script element to have scripting apply... Don't ask me why, ask the IE team why.                                  // IE needs a visible tag within a non-script element to have scripting apply... Don't ask me why, ask the IE team why.
526                                  // My guess is the visible element causes the page to at least partially re-render, which in turn kicks off any script parsing                                  // My guess is the visible element causes the page to at least partially re-render, which in turn kicks off any script parsing
# Line 694  function _iwfOnRequestEnd(){ Line 694  function _iwfOnRequestEnd(){
694                                  }                                  }
695                          } else {                          } else {
696                                  // use default busy implementation...                                  // use default busy implementation...
697                                  window.status = 'Remaining: ' + _iwfRequestsPending;                                  window.status = 'Remaining: ' + _iwfPendingRequests;
698                          }                          }
699                  } else {                  } else {
700                          // they didn't define an end function,                          // they didn't define an end function,

Legend:
Removed from v.55  
changed lines
  Added in v.56

  ViewVC Help
Powered by ViewVC 1.1.26