Welcome, Guest
  • Author Topic: R-Connector  (Read 1462 times)

    Andresss

    • Systems Administrator
    • *****
    • Posts: 738
    • check me out at www.asb-labs.com/blog
      • View Profile
      • asb-labs
      • Email
    R-Connector
    « on: 07/07/04, 16:13 »
    hi there, i wonder why when moving from the old remoting connector to the newest, only the reading side run with no problems and when inserting the data, it exists an error.
    i did it with the editing a table tutorial, and in the NetDebugger pannel tells me an existing error on line 31, and as i told when using the previous conn, there's no problem, what can it be then?? ???
    halemos de flash en espaņol!....wondering about crazy flash experiments?

    Jorge Solis

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 14616
      • View Profile
    Re:R-Connector
    « Reply #1 on: 07/08/04, 02:50 »
    What kind of error?

    Jorge

    Andresss

    • Systems Administrator
    • *****
    • Posts: 738
    • check me out at www.asb-labs.com/blog
      • View Profile
      • asb-labs
      • Email
    Re:R-Connector
    « Reply #2 on: 07/10/04, 04:25 »
    it only shows an error on line 31 just that, and doesnt insert
    halemos de flash en espaņol!....wondering about crazy flash experiments?

    Jorge Solis

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 14616
      • View Profile
    Re:R-Connector
    « Reply #3 on: 07/10/04, 04:44 »
    Which error?

    Jorge

    Andresss

    • Systems Administrator
    • *****
    • Posts: 738
    • check me out at www.asb-labs.com/blog
      • View Profile
      • asb-labs
      • Email
    Re:R-Connector
    « Reply #4 on: 07/16/04, 20:20 »
    hi, excuse me for the long time, i have not changed all my work to the new connector, and i have a question about the old one:
    i use several connectors to update an entry, but instead of the UPDATE i use the REPLACE, so my doudt is here, isnt there any problem if i use this REPLACE twice, this is my AS code
    update_btn.onPress=function(){
    con0_con.params[0]=levelat;
    con1_con.params[0]=levelat;
    con0_con.params[1]=data1_ds.items;
    con1_con.params[1]=data5_ds.items;
    con0_con.trigger();
    con1_con.trigger();
    }
    and this is the replace clause:
    function setpays($mytable, $nr){
    for($i=0; $i<sizeof($nr); $i++){
    $result=mysql_query("replace into $mytable values ('".$nr[$i]['ID']."'......"')");

    and again the code above

    some times the data of one conn inserts and some times the other conn, what can it be?
    halemos de flash en espaņol!....wondering about crazy flash experiments?

    Jorge Solis

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 14616
      • View Profile
    Re:R-Connector
    « Reply #5 on: 07/18/04, 12:21 »
    Using amfphp, one call will overwrite the other. Use the onResult handler to make the chain between one call and the other, i.e:

    con0_con.onResult = function(){
      con1_con.params[1]=data5_ds.items;
      con1_con.trigger();
    }

    Jorge

    Andresss

    • Systems Administrator
    • *****
    • Posts: 738
    • check me out at www.asb-labs.com/blog
      • View Profile
      • asb-labs
      • Email
    Re:R-Connector
    « Reply #6 on: 07/18/04, 18:33 »
    yes it overwrote the previous call,
    but of course, thanx, u know i had solved this problem by the next way, as i have two dtgrids, and a conn for each one, i came to the conclusion of putting two buttons, one for each conn, but ur way is better, thanx  ;D
    « Last Edit: 07/18/04, 18:35 by Andres »
    halemos de flash en espaņol!....wondering about crazy flash experiments?

    Andresss

    • Systems Administrator
    • *****
    • Posts: 738
    • check me out at www.asb-labs.com/blog
      • View Profile
      • asb-labs
      • Email
    Re:R-Connector
    « Reply #7 on: 07/24/04, 09:00 »
    why when i change the projector settings, to an older(6 or 6r65 with AS 2.0) it doesnt run spesific components like the remoting component by Justin Watkings ???
    halemos de flash en espaņol!....wondering about crazy flash experiments?

    Andresss

    • Systems Administrator
    • *****
    • Posts: 738
    • check me out at www.asb-labs.com/blog
      • View Profile
      • asb-labs
      • Email
    Re:R-Connector
    « Reply #8 on: 07/24/04, 09:09 »
    excuse me for not to tell u my previous problem, but i move some folders, (coz im using the flash spanish version) and after that, the NetDebug, doesnt not run anymore, also it cant find the NetDebug.as, i reinstal it again, but without changes, really excuse me :-[
    halemos de flash en espaņol!....wondering about crazy flash experiments?