A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: sendAndLoad

  1. #1
    anyone else hear that? flashpipe1's Avatar
    Join Date
    Jan 2003
    Location
    Upstate NY
    Posts
    1,929

    sendAndLoad

    I'm using sendAndLoad to submit some data to an asp page (which works standalone when I submit from another form page), but when I use the flash form, nothing seems to be getting passed. Does the following code look right, or am I missing something??

    Code:
    var my_lv:LoadVars = new LoadVars();
    var result_lv:LoadVars = new LoadVars();
    result_lv.onLoad = function(success:Boolean) {
    	if (success) {
    		input_1.text = "success!";
    	} else {
    		input_1.text = "Error connecting to server.";
    	}
    };
    my_lv.MM_insert = "form1";
    my_lv.user_PostDate = "09/16/07";
    my_lv.user_ID = "3054";
    my_lv.user_FName = "testFN";
    my_lv.user_LName = "testLN";
    my_lv.user_CNum = "1";
    my_lv.user_CData = "AAB";
    my_lv.user_CData2 = "test CData 2";
    my_lv.user_CData3 = "test CData 3";
    my_lv.user_CData4 = "";
    my_lv.user_CData5 = "";
    results1 = my_lv.sendAndLoad("http://www.testingaddress.com/postdata.asp", result_lv, "POST");

    Thanks!!
    Love like you've never been hurt, live like there's no tomorrow and dance like nobody's watching.

  2. #2
    anyone else hear that? flashpipe1's Avatar
    Join Date
    Jan 2003
    Location
    Upstate NY
    Posts
    1,929
    Ah, got it figured out...problem on the variable names...

    Thanks!
    Love like you've never been hurt, live like there's no tomorrow and dance like nobody's watching.

  3. #3
    Senior Member
    Join Date
    Aug 2007
    Posts
    141
    I think it looks fine. BTW why do you need to store the sendAndLoad in "results1"?

  4. #4
    anyone else hear that? flashpipe1's Avatar
    Join Date
    Jan 2003
    Location
    Upstate NY
    Posts
    1,929
    was just doing that for testing...all set now...

    Thanks!
    Love like you've never been hurt, live like there's no tomorrow and dance like nobody's watching.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center