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