SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Thread: Reading URL

  1. #1
    SitePoint Enthusiast
    Join Date
    May 2006
    Posts
    96
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Reading URL

    Hello I am having a big problem ... with AJAX & JavaScript










    I can easy open a file like


    ajax_loadContent('gsite1','proxy1.php);
    or like :
    ajax_loadContent('gsite1','proxy1.php?go=http://servers.softgroups.com/g1/gomania/g1.php&parola=future&site=tabu.com');



    But i can't open external files like :


    jax_loadContent('ysite1','http://www.ilovefinder.com/proxy/proxy3.php?go=http://servers.softgroups.com/y1/future/y1.php&parola=future&site=tabu.com');
    or even like:
    jax_loadContent('ysite1','http://softgroups.com');


    what I am doing wrong?!




  2. #2
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    17,143
    Mentioned
    190 Post(s)
    Tagged
    2 Thread(s)

    ajax security

    AJAX has a built in security feature. It can only get info from files in the same domain as the file calling the info - not external files.

  3. #3
    SitePoint Enthusiast
    Join Date
    May 2006
    Posts
    96
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Can't I do anything to over-ride that secuirty future?!

  4. #4
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    17,143
    Mentioned
    190 Post(s)
    Tagged
    2 Thread(s)

    security

    Not with javascript. You can call another file in the same domain that gets the info another way. eg. PHP file uses cURL to get data from remote service. Page uses AJAX to get info from PHP file.


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
  •