Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Cross domain ajax/jquery/javascript

 
Vincent Brulais
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It works when you write what all in your jsp? What do you mean by import.
 
Vincent Brulais
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic