javascript - html5 communication with server side -


in traditional web application write jsp renders html code browser , communicate server using form submit or through java script. involves page transition 1 using browser refresh many times.

now improved html5 still can use same approach want achieve more of desktop application , feel means no browser refresh. confused how can achieved.

  1. do need write big single html5 file contains web application code , show or hide divisions using java script need show @ point of time. communicate server using java script.

  2. or, have minimal first html5 page user lands first time. later on create html5 content dynamically using java script , communicate server using java script. looks more difficult.

  3. or, there way can move 1 page other without effect of page loading/refresh etc.

in general using html5 should approch?

for example of shopping cart, first view user list of items purchase. user moves next view such details of item. next view can payment.

if have resource or example explain it, great.


Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

.htaccess - Matching full URL in RewriteCond -