Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

What is the proper syntax in Flex for implementing <input type = "hidden" /> as a variable in the navigateToURL() function??

Posted on 2008-10-31
2
759 Views
Last Modified: 2012-08-14
Thanks to some Expert assistance I received earlier, I was able to make my reports work great.  Now, if possible, we'd like to be able to hide the variables being sent.  The problem is how to construct the syntax in Flex.

      private function callInventoryReportRequest(): void {
                  var url:String = "http://localhost/wmsrpts/rdPage.aspx";
                  var request:URLRequest = new URLRequest(url);
                  var variables:URLVariables = new URLVariables();
                  variables.input type='hidden';  //<<<< this will generate an error in Flex......
                  variables.rdReport="ItemMasterListing";
                  variables.coid=model.currentCompany;
                  variables.coname=model.companyName;  
                  request.data = variables;
                  navigateToURL(request);
            }

Thank You!!
0
Comment
Question by:CubicleGuy
2 Comments
 
LVL 19

Accepted Solution

by:
Gary Benade earned 400 total points
ID: 22902222
The default method for a URLRequest is GET which appends the variables to the url, if you change it to POST it should solve your problem - you will of course have to check your server side script and make sure you are referencing the urls in the correct context

   
  private function callInventoryReportRequest(): void {
                  var url:String = "http://localhost/wmsrpts/rdPage.aspx";
                  var request:URLRequest = new URLRequest(url);
                  var variables:URLVariables = new URLVariables();
                  variables.rdReport="ItemMasterListing";
                  variables.coid=model.currentCompany;
                  variables.coname=model.companyName;  
                  request.data = variables;
                  request.method = URLRequestMethod.POST;
                  navigateToURL(request);
            }

Open in new window

0
 
LVL 1

Author Comment

by:CubicleGuy
ID: 22922028
Clever.  I'll test this later today and let you know.
Thanks.
0

Featured Post

ScreenConnect 6.0 Free Trial

Discover new time-saving features in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

First things first - Preparation We need all the part for this install and it's much nicer to have them all on hand when you need them so here's what's required. Download Eclipse 3.5 32 bit (I like the Classic flavour) from here. (http://www.e…
There's a lot of hype surrounding blockchain technology. Here's how it works and some of the novel ways it' s now being used - including for data protection.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question