[jQuery] Re: How to get an html page not knowing its address

2007-11-09 Thread wick
Sounds like you're talking about "cross-domain scripting" which as Richard mentioned, isn't possible with AJAX requests - the jquery .load() command uses AJAX, so what Richard is saying is it's simply not possible to use jQuery's .load() to access an html file on a different domain. With AJAX, th

[jQuery] Re: How to get an html page not knowing its address

2007-11-08 Thread caruso_g
Ciao Richard, thanks a lot, really. It, clearly, works. But, if I may ask you more, if I would to pass an address with the same problem to a jQuery selector, what should I write? Would it enough to create a variable and insert its name into the selector? Below it is an example: var my_varia

[jQuery] Re: How to get an html page not knowing its address

2007-11-08 Thread Richard D. Worth
No need to provide the full URL, including the domain/server name. In fact, there's a security restriction on Ajax that prevents fetching an html page from a domain other than the current one, so you only need to specify a relative url to load: jQuery('#footer-navbar').load("/clients/clickadvisor-

[jQuery] Re: How to get an html page not knowing its address

2007-11-08 Thread caruso_g
I should have made progresses, I hope. I saw that it would be better to use .load method to get some simple pre-formatted html bunch of code. But the problem is still there, I don't know how to pass as arguments a domain address I am not able to know in advance. So I tried with the code below, b