X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=www%2Fiphone%2Fexample_client.js;h=a131b8ab55b3b5c32dad4fb86e7836eb8fe92631;hb=838ce61b876f3a575182ab6048a8e2686f093738;hp=221620ae4680969ca650df6b73eab811ab6efac1;hpb=c1d26c17ab4de16d5cf9ab7bc65b98356dc5a648;p=pazpar2-moved-to-github.git diff --git a/www/iphone/example_client.js b/www/iphone/example_client.js index 221620a..a131b8a 100644 --- a/www/iphone/example_client.js +++ b/www/iphone/example_client.js @@ -9,10 +9,10 @@ var pazpar2path = '/pazpar2/search.pz2'; var showResponseType = ''; var querys = {'su': '', 'au': '', 'xt': ''}; -if (document.location.hash == '#useproxy') { +if (document.location.hash == '#useproxy' || document.location.search.match("useproxy=true")) { usesessions = false; pazpar2path = '/service-proxy/'; - showResponseType = 'json'; + showResponseType = 'xml'; } my_paz = new pz2( { "onshow": my_onshow, @@ -282,6 +282,8 @@ function domReady () document.select.perpage.onchange = onSelectDdChange; if (document.location.search.match("inApp=true")) applicationMode(true); + else + applicationMode(false); } function applicationMode(newmode) @@ -303,6 +305,7 @@ function applicationMode(newmode) function onFormSubmitEventHandler() { resetPage(); + document.getElementById("logo").style.display = 'none'; loadSelect(); triggerSearch(); submitted = true;