AJAX

Moderators: None (Apply to moderate this forum)
Number of threads: 60
Number of posts: 100

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
[SOLVED] Fetching data from remote server Posted by fisknils on 1 Apr 2012 at 10:10 AM
I'm not even sure what I'm trying to create, but what I'm trying to achieve is to fetch data from a remote server in a greasemonkey script using jQuery.
Gosh, I'm really not good at explaining, am I?

Say for instance that the greasemonkey script runs at http://google.com/
I have no problems fetching http://google.com/services/ using jQuery.get(), but trying to fetch http://example.com/about/ returns nothing.

My question is; am I doing something wrong, or is this just not meant to work?
And if it's not meant to work, is there any other way of achieving this?
Report
Re: Fetching data from remote server Posted by fisknils on 5 Apr 2012 at 5:37 AM
Must have been doing something wrong, because when I tried http://wiki.greasespot.net/GM_xmlhttpRequest I got it to work straight away.

That's what I get for not doing my research properly, I guess.



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.