Using curl() when Javascript is involved

JavaScript and client side scripting.

Moderator: General Moderators

Locked
clavigne
Forum Newbie
Posts: 7
Joined: Tue May 11, 2010 10:53 am

Using curl() when Javascript is involved

Post by clavigne »

Can I use curl() to grab the contents of another page if there is javascript running on the page?

I'm working with a client who has permission to use some of the contents of another website (he's a car salesman and the other site is his dealership's car listings). I've used curl() to grab the listings and preg_replace() to make some textual changes like altering the contact information to show his details. However, the other website uses a Javascript pager for its listings and when I output the altered code, the pager no longer works.

Here is how the site I'm 'curling' is set up:

It has this form element:
<form name="ctl00" method="post" action="http://originalsite" id="ctl00">
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Re: Using curl() when Javascript is involved

Post by John Cartwright »

Duplicate. Locked.
Locked