Link to home
Start Free TrialLog in
Avatar of ITsolutionWizard
ITsolutionWizardFlag for United States of America

asked on

Jquery URL

I have URL with jquery and I don't want anyone to xml on the web. What is my option?
Avatar of Leonidas Dosas
Leonidas Dosas
Flag of Greece image

What do you mean?Could you post an example?
Avatar of ITsolutionWizard

ASKER

function fnGetBondNameList(bondState) {
        $.ajax({
            url: "http://localhost:5489/BondList.xml",
            success: function (xml) {
                parseSelectXML(xml,"bondName","Bond",bondState)
            },
            error: function (xhr, ajaxOptions, thrownError) {
                alert("Status: " + xhr.status);
                alert("Error: " + thrownError);
            }
        });
    }
ASKER CERTIFIED SOLUTION
Avatar of Chris Stanyon
Chris Stanyon
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Just show me in codes and maybe i can understand more what you mean. Thanks
//getScript.php
<?php
include('path/to/your/file.xml')

Open in new window

And then in your Ajax call:

url: 'getScript.php',

As I said, this won't stop people from being to load your XML file - that's not going to be possible because your page needs to be able to read it, so any user can also read it - that's just the way it works!!