Skip navigation
Currently Being Moderated

.loadOnly

Sep 11, 2012 9:53 PM

I want to be able to ONLY trigger a php file. I'm using the code below.

When i use this, it actually opens the php (patentsList3.php) file in the browser window replacing my webpage? I only want to trigger the php - I don't want anything else hapening. How do I achieve this?

 

I tried removing "_self", but no success.

var SendLoad:LoadVars = new LoadVars();

SendLoad.load("/patentsList3.php","_self", "POST");

 
Replies
  • kglad
    63,043 posts
    Jul 21, 2002
    Currently Being Moderated
    Sep 11, 2012 10:13 PM   in reply to Ron Colmen

    use:

     

     

    var sendLV:LoadVars = new LoadVars();

    var receiveLV:LoadVars = new LoadVars();

    // add an onData method if you want to receive data from your php

    sendLV.sendAndLoad("/patentsList3.php",receiveLV, "POST");

     
    |
    Mark as:
  • kglad
    63,043 posts
    Jul 21, 2002
    Currently Being Moderated
    Sep 12, 2012 8:00 AM   in reply to Ron Colmen

    what if-statement?

     

    and what's your php code?

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points