1. #1
    Sencha User
    Join Date
    Nov 2009
    Location
    Readin, UK
    Posts
    138
    Vote Rating
    5
    intro is on a distinguished road

      0  

    Cool slowing sending data

    slowing sending data


    Hi

    is it possible to slow post sending data with ajax..I am having a scipt for sending e-mail in php and server will be slow if i send data to fast and mabe i get black list...

    My situation,

    Ajax send post data for each very fast, but i want ajax to wait a little bit, and send next, but timeout is not working.....

    Thanks in advance...

    Code:
     Ext.each(selections, function (selection) {
                            Ext.Ajax.request({
                                             method: "POST", timeout: 100000,
                                url: 'NewsletterHTMLDB.php',
                                params: {
                                    id: selection.get('ID'),Newlsetterid: record.get('ID'),
                                  
                                }
                            });
                           
    
                        });

  2. #2
    Sencha User darthwes's Avatar
    Join Date
    Mar 2010
    Posts
    633
    Vote Rating
    -11
    darthwes can only hope to improve

      0  

    Default


    Then build an array up like [{id, Newsletterid}, {id, Newsletterid}, {id, Newsletterid}].

    Now write a function that sends off a request and recalls itself on teh success callback? You can then wrap the recurrant calls inside of setTimeout() if you're really wanting to introduce a delay ON PURPOSE...
    Wes

  3. #3
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,498
    Vote Rating
    46
    Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    Why loop?

    Build up one message and send ONE request.

  4. #4
    Sencha User
    Join Date
    Nov 2009
    Location
    Readin, UK
    Posts
    138
    Vote Rating
    5
    intro is on a distinguished road

      0  

    Default


    Hi i made array and now i have post
    Code:
    Newlsetterid 59
    id 4
    id 3
    id 2
    id 1
    Ok how can i now get data (id) with php?

    Thanks in advance

Similar Threads

  1. Sending data from textfield
    By MalcolmHaslam in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 2 Jul 2009, 8:09 AM
  2. Sending data
    By oasisjoel in forum Ext 2.x: Help & Discussion
    Replies: 13
    Last Post: 3 May 2009, 6:08 PM
  3. Issue with sending data
    By border9 in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 30 Oct 2008, 8:50 AM
  4. Sending data with AJAX
    By Zolcsi in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 25 Dec 2007, 4:48 AM
  5. Combo Box Slowing down screen load
    By nrajesh in forum Ext 1.x: Help & Discussion
    Replies: 1
    Last Post: 6 Nov 2007, 10:14 AM

Thread Participants: 2

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..."