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
Win a copy of
Spring Boot in Practice
this week in the
Spring
forum!
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
Tim Cooke
Ron McLeod
Jeanne Boyarsky
Paul Clapham
Sheriffs:
Liutauras Vilda
Henry Wong
Devaka Cooray
Saloon Keepers:
Tim Moores
Stephan van Hulst
Tim Holloway
Al Hobbs
Carey Brown
Bartenders:
Piet Souris
Mikalai Zaikin
Himai Minh
Forum:
HTML Pages with CSS and JavaScript
Cross domain ajax/jquery/javascript
Vincent Brulais
Greenhorn
Posts: 3
posted 10 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 10 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 10 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 10 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 10 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 %>
Don't get me started about those stupid
light bulbs
.
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...