I am trying to develop a system where if a user hovers over a particular link, a little tool-tip box (just a div) will show up, show a 'thinking' graphic if need be, and grab a specific chunk of text from our wiki. I've got the text in the wiki in a unique wrapper, I just don't know how to execute the actual grabbing process. Is this possible with j/s? What else should I look into from here?
Since Wiki is an external website and JavaScript is very limited, requesting a page from wikipedia.org would cause a cross-domain permission denied security error within your own personal domain. Ajax is supposed to only be used for requesting pages within the same domain. Read up on the work arounds available for cross-domain http requests: http://www.xml.com/pub/a/2005/11/09/...d-harmful.html
I’d personally use PHP or an Apache Proxy (page 2 in the above link).
Nope, I'm not sure if he is talking about wikipedia.org or not. Now that you bring it to my attention, I admit I'm probably wrong in regard to that. However I do know he's working with an external domain as it is mentioned in the thread title so therefore the rest of my post should still be of some additional guidance on top of your initial post.
Two subdomains would encounter a permission denied security error. "Two sites" is a better way to word it. Should I call it a cross-site permission denied security error in the future? It sounds funny but defiantly more accurate
For the record, this would be happening within the same domain. I want my site at xyz.com to pull info from wiki.xyz.com.
In my own research, i found that wiki's do not identify paragraphs or sections in any particular way, so i think i'd also have to wrap the text i want to grab in an id'd div.
Bookmarks