0 Replies Latest reply on Jun 18, 2008 10:49 AM by GeorgeWS

    Collecting then Sending to URL

    GeorgeWS Level 1
      I have a datagrid that has check boxs; some check boxs get checked and send is pushed. This code is run:

      private function collectForInclude():Array{
      var includes:Array = new Array();
      var obj:Object = new Object();
      for (var i:Number=0 ;i < myDataGrid.dataProvider.length;i ++){
      obj = myDataGrid.dataProvider ;
      if (obj.Include)
      {
      includes.push(obj.PWPNUM);
      gotoURL()

      }
      }
      return includes;
      }

      It collects the id(PWPNUM) values. and then I want to send those values on the end of a URL string:

      private function gotoURL() : void {
      var url:String = (" http://www.youngsmarket.com/youngsmarket/programs/prestool/winetool/list.cfm?ItemID="+Item ID);
      var variables:URLVariables = new URLVariables();
      variables.ItemID = includes;
      var request:URLRequest = new URLRequest(url);
      request.data = variables;
      }

      But it is always null

      Can anyone help me?

      Thanks

      George