1

I have the generated link to the ISSUU's PDF:

http://issuu.com/press/docs/2008-12?mode=window&printButtonEnabled=false&shareButtonEnabled=false&searchButtonEnabled=false&backgroundColor=%23222222

then, I want to load that URL content into a DIV:

$("#inner").load('http://issuu.com/press/docs/2008-12?mode=window&printButtonEnabled=false&shareButtonEnabled=false&searchButtonEnabled=false&backgroundColor=%23222222');

the server returns 200 status (OK) but, the FireBug marks that request red:

enter image description here

and nothing shows inside that DIV. Why ?

Edit

It also fails if I change the request to Post:

$.post('http://issuu.com/press/docs/2008-12?mode=window&printButtonEnabled=false&shareButtonEnabled=false&searchButtonEnabled=false&backgroundColor=%23222222',{},
                function(res){ $("#inner").html(res);});
1

2 Answers 2

3

Browsers won't allow cross-domain AJAX calls.

You could use an iframe?

Sign up to request clarification or add additional context in comments.

Comments

1

To circumvent the same origin policy you could you use a proxy script on the same domain to fetch the remote page.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.