2 Replies Latest reply on Jul 18, 2008 5:53 AM by anirudhs

    A little clarification on URLVariables?

    4t5g4tr4y654bhrtgv
      I'm not entirely sure how to use it / what's the best approach here.

      I have a whole bunch of form fields that I need to send up to my online processing script - a couple of hundred or so.

      Am I right in thinking that the URLVariables constructor simply takes a querystring-style string (ie: name=value pairs, separated by ampersands)? So I could do something like:
      quote:


      var sURLVars = "action=update"
      for( var i = 0; i < CONST_NEWS_ITEM_COUNT; i++ ) {
      sElementId = "txtTitle"+i;
      sElementValue = document.getElementById(sElementId).value;
      sURLVariables += '&' + sElementId + '=' + sElementValue;
      }
      var oVariables = new air.URLVariables(sURLVariables);




      Cheers :)

      ps. Yes I've read the docs - http://help.adobe.com/en_US/AIR/1.1/jslr/index.html - it's still not clear to me what I can do with it...