Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within HTML Pages with CSS and JavaScript
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
HTML Pages with CSS and JavaScript
Cross domain ajax/jquery/javascript
Vincent Brulais
Greenhorn
Posts: 3
posted 11 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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
$.ajax({ url: 'url', type: 'GET', success: function(res) { var loadIt = $(res.responseText).find('#mydiv').html(); $('#newdiv').text(loadIt); alert(loadIt); } });
But, in loadIt, i have a "null" value.
How can i fix it?
thank you
Eric Pascarello
author
Posts: 15385
6
posted 11 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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
posted 11 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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
Posts: 15385
6
posted 11 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
It works when you write what all in your jsp? What do you mean by import.
Vincent Brulais
Greenhorn
Posts: 3
posted 11 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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
<%@ include file %>
I have gone to look for myself. If I should return before I get back, keep me here with this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Div tag - changing main content page
How to make synchronous ajax call in cross site domain
Return ONLY the contnet of a portlet
JavaScript ActiveX problem Through Server
Resfresh page and getting values when option is selected
More...