Can available json response be reused in tritium to paint new mobile home page?

StackOverflow https://stackoverflow.com/questions/18886705

  •  29-06-2022
  •  | 
  •  

Вопрос

I am trying to use moovweb to transform existing desktop site to mobile version. I already have so many ajax response available in the desktop version. We also have a new wire frame for the mobile version.Is there any way to reuse the ajax response and dynamically paint the page as per the new wireframe [by making use of tritium]?

Это было полезно?

Решение

Tritium runs during the resource request/response scope, not on the javascript run time.

If you just want the exact same javascript behavior you currently have on desktop running on the mobile site, you already have that without doing anything - it will be "inherited".

However, if you want to change the behavior of the ajax callback, you will have to prevent the desktop script from running and recreate it with the different behavior on your mobile (moovweb) site.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top