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