SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    Jun 2007
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Let a client-browser download a page and send it to me - possible??

    Is it possible to let a user fetch a page from my server with javascript code embedded that downloads a page (I specified in the code, from another server) and then let the user's browser send the page's data back to me? Similar to having an iFrame and get that content...

    Or do browser security and/or cross-site scripting limits prevent this?

  2. #2
    CSS & JS/DOM Adept bronze trophy
    Join Date
    Mar 2005
    Location
    USA
    Posts
    5,482
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes, cross-domain security measures will block that.

    What are you trying to achieve? Perhaps we can suggest an alternative.
    We miss you, Dan Schulz.
    Learn CSS. | X/HTML Validator | CSS validator
    Dynamic Site Solutions
    Code for Firefox, Chrome, Safari, & Opera, then add fixes for IE, not vice versa.

  3. #3
    SitePoint Guru
    Join Date
    Apr 2006
    Posts
    802
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Is it possible to let a user fetch a page from my server with javascript code embedded that downloads a page (I specified in the code, from another server) and then let the user's browser send the page's data back to me?
    Sounds like a prostate exam, but you make the visitor perform the part of the proctologist.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •