wood burning stoves*
The moose likes HTML, CSS and JavaScript and the fly likes Cross domain ajax/jquery/javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Cross domain ajax/jquery/javascript" Watch "Cross domain ajax/jquery/javascript" New topic
Author

Cross domain ajax/jquery/javascript

Vincent Brulais
Greenhorn

Joined: Jun 07, 2012
Posts: 3
Hello,

i'm working on a portlet for my portal, and try to take a part of a page, and include it into my portlet

And, to do it, i make cross domain, that i found here



But, in loadIt, i have a "null" value.

How can i fix it?

thank you
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Did you download the plugin that makes it work like the page says it needs?

You should also read this to understand why it does not work: https://developer.mozilla.org/en/Same_origin_policy_for_JavaScript

Eric
Vincent Brulais
Greenhorn

Joined: Jun 07, 2012
Posts: 3
Seems like it works when i wrote all the js in my jsp, but not working when i'm trying to import.

Does exists something to know location and wrote it correctly?
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
It works when you write what all in your jsp? What do you mean by import.
Vincent Brulais
Greenhorn

Joined: Jun 07, 2012
Posts: 3
i talk about the js code you can find into the link i join in my first post wich use a js code;

But i fix the problem right now, thanks for your help.



for those who can demand later, i did an include of the file

 
wood burning stoves
 
subject: Cross domain ajax/jquery/javascript