Please allow to post data in url as url parameters.
Please allow to post custom user defined data in query string, for example something like this http://example.com/index.php?a1=0&a2=0&a3=1&a4=2&a5=3&a6=4
where a1,a2 are user defined custom parameters which will used in php page to create chart and then Phantomjscloud api will create image of final chart.
This is already support in our new version: http://stage2.phantomjscloud.com please give that a try.
using Stage2, you should choose the option of base64 encoding your request. this allows you to post data in the url as requested.
-
Nidhi Verma commented
Hi Jason,
Thanks for helping me. Now I am getting perfect image.
-
as per my email, the problem was you need to increase the waitInterval to 1000 (1 second) for your loading animation to finish.
On the next update of stage2, I'll change the default waitInterval to 1000 (currently is 200)
-
Nidhi Verma commented
Hi Jason
Thanks for your reply.
I have sent url.in email.
Regards
Nidhi -
Hi Nidhi, please email (jasons at phantomjscloud dot com) me the URL you are trying to access. I tried accessing http://sitename.com/index.php?a1=0&a2=0&a3=1&a4=2&a5=3&a6=4&a7=5&a8=6&a9=6&a10=3&a11=3&a12=4',renderType:'jpg',clipRectangle:{top: '10', left: '10', width: '300', height: '675'}} but I get a page not found error.
Then maybe I can help figure out your issue!
-
Nidhi Verma commented
Hi Jason
Thanks for your reply.
I am using Stage2 - echo base64_encode("{url:'http://sitename.com/index.php?a1=0&a2=0&a3=1&a4=2&a5=3&a6=4&a7=5&a8=6&a9=6&a10=3&a11=3&a12=4',renderType:'jpg',clipRectangle:{top: '10', left: '10', width: '300', height: '675'}}");
I am getting image as http://postimg.org/image/eue6u763v/
But I want image like this - http://postimg.org/image/bkgxwh363/
Please tell me, what I am missing in my base64_encode string?
Tanks for your help.