javascript - Send user to a new page via JS -


we submitting data , showing result in a alert box, want send user page(response.php?r=result) instead of showing alert.

the code using below

function (result) {                      settimeout(function() {                         alert("we got barcode\n" +                               "result: " + result.text + "\n" +                               "format: " + result.format + "\n" +                               "cancelled: " + result.cancelled);                                                 }, 0);                 },   

many in advanced help

how that

location.href = 'response.php?r=' + json.stringify(result); 

?


Comments

Popular posts from this blog

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

html - Outlook 2010 Anchor (url/address/link) -

android - How to create dynamically Fragment pager adapter -