Ajax Server Side ve Client Side karışıklık açıklama belirtilmeli

0 Cevap php

Adlı bir veritabanından verileri kapmak otomatik tamamlama Widget senaryo düşünelim.

Kullanıcının biz olduğunu varsayalım:

  1. Grab the contents from DB1 to be displayed once the user clicks the input field. Then, After the user makes it's choice, we need to:

  2. Query the database DB1 for additional data concerning that selection made by the user.

  3. Veri başka bir sistem WEBSERVICE1 sorgulamak ve daha fazla veri içeren bir yanıt almak için kullanarak.

  4. Son olarak, onlarla çalışmak, böylece bu giriş kutularına veri döndü display.

Bu şey sayar Eğer .. bu bir sunucu tarafı işlevi olan bir soru değil fark edebilirsiniz, ancak vb diğer dosyaları ile çeşitli bağlı o yüzden bu tarif ediyorum.

Süreci tanımlamak için Benim try:

Açıklama A)

We need to, at some javascript event, call a php script. Process some stuff, and return back the results to be displayed.

I'm under a mvc "sort of" pattern but my controller isn't able to decide which views will be displayed. Instead, is the view that calls the controller method that she needs. Knowing this:

Can anyone, be kind enough to draw a skeleton or fill the blanks (that are A LOT I realize that and I'm sorry) on Description A above?

: S

Lost, Márcio

0 Cevap