javascript - php file_get_contents working but need to set URL paths to CSS and JS -
i have following:
if (isset($_get['orderid'])){ echo file_get_contents("http://www.tuffnells.co.uk/podlookupresults.aspx?__eventtarget=&__eventargument=&__viewstateguid=7ca82b1d-b722-4cdc-b74a-b338d8577ffa&__viewstate=&__eventvalidation=%2fwedaaevvxd1oyelevemr0vhcmypaome%2fdwqd43eodzej3p%2fm4u4pgxq6tlupsjfqzqbazffj%2f1lmlglyhfagz1yhzm8bjowvgaj8c3e%2b2bvmpt91kjxchjnasonqdi2zfsuasuvzpithildcdtilhcjncqg4cxrbv5vpfqbeogs2x52ad%2feb%2byr%2bej68pan2ciykze%3d&ctl00%24ctl16%24tbheadersearch=search..&ctl00%24maincontent%24tbaccountref=01484267&ctl00%24maincontent%24tbconsignmentref=".$_get['orderid']."&ctl00%24maincontent%24tbdestpostcode=".$_get['postcode']."&ctl00%24maincontent%24btndopodlookup=search+again"); }
which once have working use ajax pull here testing it, think need set paths js , css files pulls through /scripts/ /css/ etc... there way apply in front of them tuffnells.co.uk/ don't think page working js not loading up.
the page looks default form , not passing , showing tracking data when use url
http://www.tuffnells.co.uk/podlookupresults.aspx?__eventtarget=&__eventargument=&__viewstateguid=7ca82b1d-b722-4cdc-b74a-b338d8577ffa&__viewstate=&__eventvalidation=%2fwedaaevvxd1oyelevemr0vhcmypaome%2fdwqd43eodzej3p%2fm4u4pgxq6tlupsjfqzqbazffj%2f1lmlglyhfagz1yhzm8bjowvgaj8c3e%2b2bvmpt91kjxchjnasonqdi2zfsuasuvzpithildcdtilhcjncqg4cxrbv5vpfqbeogs2x52ad%2feb%2byr%2bej68pan2ciykze%3d&ctl00%24ctl16%24tbheadersearch=search..&ctl00%24maincontent%24tbaccountref=01484267&ctl00%24maincontent%24tbconsignmentref=2837&ctl00%24maincontent%24tbdestpostcode=al15by&ctl00%24maincontent%24btndopodlookup=search+again
which url im using file_get_contents... ideas?
the js far want use this, right well?
<div id="tracking"></div> <script type="text/javascript"> var orderid = "2837"; var postcode = "al15by"; $.ajax({ url: 'http://www.ambientlounge.com/external/uktracking.php', type: 'post', data: { orderid: orderid, postcode: postcode }, success: function(data) { $('#tracking').html($(data).find('#ctl00_maincontent_pnlpodrecords').html()); } }); </script>
i'm wanting page data, return ajax ideally display on 1 of our pages, #ctl00_maincontent_pnlpodrecords
div , contents.
Comments
Post a Comment