Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  1. #1
    Sencha User
    Join Date
    Jul 2012
    Posts
    29
    Vote Rating
    0
    v2108 is on a distinguished road

      0  

    Default Unanswered: Very simple Writer example?

    Unanswered: Very simple Writer example?


    Hey guys,

    I am looking for a very simple example for using a writer, to write data into a server-side file. Maybe, just one textbox, which text is loaded into the file. Does anyone know such a simple example? I just want to understand the function to write the data.

    All examples I found, including the Sencha example 'Writer', are very long.I am new to Extjs and this code very complicated.

    Please help me, if possible. I really need this code for an important project.

    Thanks, Victoria

  2. #2
    Sencha - Community Support Team friend's Avatar
    Join Date
    Apr 2011
    Posts
    895
    Answers
    106
    Vote Rating
    27
    friend has a spectacular aura about friend has a spectacular aura about

      0  

    Default


    ExtJs Writer classes don't actually 'write files' on the server-side, they just enforce that the submitted data is formatted in a particular manner. Your server-side code is responsible for writing the submitted data to a file on its local filesystem.

  3. #3
    Sencha User
    Join Date
    Jul 2012
    Posts
    29
    Vote Rating
    0
    v2108 is on a distinguished road

      0  

    Default


    I know that a server-side-code is needed to write the data to the file, but I does'nt understand how this all works together and with a large example it's really hard to find out how it works.

  4. #4
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    8,865
    Answers
    652
    Vote Rating
    438
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

    Default


    Here are few small CRUD examples:
    http://www.sencha.com/forum/showthread.php?229457

    Scott.

  5. #5
    Sencha User
    Join Date
    Jul 2012
    Posts
    29
    Vote Rating
    0
    v2108 is on a distinguished road

      0  

    Default


    Hey,

    the 2 examples are greate, but do I need a mysql database to test the examples?

  6. #6
    Sencha User
    Join Date
    Jul 2012
    Posts
    29
    Vote Rating
    0
    v2108 is on a distinguished road

      0  

    Default


    Your examples are great, thank you very much !!

    I fixed the problem with the database, but I still get this error:

    Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\example2\save_product.php on line 71
    {"success":true,"data":null}

    This is the code:
    PHP Code:
    while($rec mysql_fetch_array($result,MYSQL_ASSOC)){
            
    $arr[] = $rec;  }; 


    The data is loaded into the database, but the grid is not automatically actualized.

    Can you tell me, what is wrong?

  7. #7
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    8,865
    Answers
    652
    Vote Rating
    438
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

    Default


    but do I need a mysql database to test the examples
    These are based on mysql, but you can replace with any DB and change the syntax as needed.

    What is the value of $result. It should be a valid result from the above line.
    You may have to eval each var to see what is return. The result set $data should be populated.

    Scott.

Thread Participants: 2

Tags for this Thread