Jump to content

kaleshwarchand

New Members
  • Posts

    3
  • Joined

  • Last visited

kaleshwarchand's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. How about combining php and js? use php for the logic and put in js code if its the page you want it on. <?php if($need_analytics_on_page==true)//use your logic here { ?> <script type=“text/javascript”> <!-- Google Analytics Content Experiment code --> <script>function utmx_section(){}function utmx(){}(function(){var k='63538864-5',d=document,l=d.location,c=d.cookie; if(l.search.indexOf('utm_expid='+k)>0)return; function f(n){if(c){var i=c.indexOf(n+'=');if(i>-1){var j=c. indexOf(';',i);return escape(c.substring(i+n.length+1,j<0?c. length:j))}}}var x=f('__utmx'),xx=f('__utmxx'),h=l.hash;d.write( '<sc'+'ript src="'+'http'+(l.protocol=='https:'?'s://ssl': '://www')+'.google-analytics.com/ga_exp.js?'+'utmxkey='+k+ '&utmx='+(x?x:'')+'&utmxx='+(xx?xx:'')+'&utmxtime='+new Date(). valueOf()+(h?'&utmxhash='+escape(h.substr(1)):'')+ '" type="text/javascript" charset="utf-8"><\/sc'+'ript>')})(); </script><script>utmx('url','A/B');</script> <!-- End of Google Analytics Content Experiment code --> </script> <?php } //endif ?>
  2. in short you need to post to the login page https://auth.marktplaats.nl/accounts/authentication/login with username and password (field for username bieng j_username, and password bieng password) you will need cookies set: curl_setopt($ch,CURLOPT_COOKIEJAR,$cookieFile); curl_setopt($ch,CURLOPT_COOKIEFILE,$cookieFile); verify cookieFile exists and is writeable. you may need to disable https verification (or enable it properly) curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); you may also need to set browser type (if the site uses it for sending diffirent content or something) that should get you logged in, then just check the urls, forms that you want to use and send the same data you would manually.
  3. you can't seem to confirm xmlhttp.open is taking place because it is not taking place the three lines from newurl to xmlhttp.send is inside xmlhttp.onreadystatechange function so never gets triggered. function amend_book(bookid) { alert(bookid); var xmlhttp = new XMLHttpRequest(); xmlhttp.onreadystatechange = function() { if (xmlhttp.readyState == 4 && xmlhttp.status == 200) { var result = xmlhttp.responseText; var resbits = result.split("|"); document.getElementById("seltog").value = resbits[0]; document.getElementById("bookdate").value = resbits[1]; document.getElementById("booktime").value = resbits[2]; } }//add here var newurl = "get_booking.php?bookid=" + bookid; xmlhttp.open("GET", newurl , true); xmlhttp.send(); // } remove this line }
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.