Sending data from one page to another server. Language agnostic

I will try to keep it short and simple. I haven't started coding for this project yet, but I am currently trying to develop pre-coding logic.

What I want to do is create a method to send data from one / any site to another remote server that will generate a response for the user requesting to send data.

Specifically, a web designer needs to be able to use a piece of code that would be available on my website, implement it in their own pages, and when the user views their pages, my service will be available.

Concrete example, a web designer with a website ( helloworld.com

) can implement my code in their page ( helloworld.com/index.html

). When the user views the page ( /index.html

), the user hovers the mouse over the text word (lemonade) for a couple of seconds, a small dialog box appears next to it, presenting the user with some text-specific options (an example option would be "Define lemonade" on Dictionary.com " ) which, if selected, will be processed and a response returned from my remote server ( myremoteserver.com

)

Obviously, I need code that designers will use as lightweight and self-contained as possible. Any ideas as to how I might accomplish this? Resources I should learn and methods I might implement?

0


source to share


3 answers


Please do not create another of these services that annoyingly duplicates words in website content and then displays an ugly slow-loading ad across the content if I accidentally overlap a word. Because it sounds like you do.



If you do this anyway, what the "remote server" will probably actually be a little client-side JavaScript, in which case JSON is probably your best bet. XML can work as well, but even when JavaScript is not on the other side, I rather like JSON as serialization due to its compactness and readability.

+3


source


I think you are talking about a hyperlink.

The part you got confused is the level of interactivity you want on the client site. Whichever clean frontend you want to wrap around a link will probably be done in javascript and should be provided to this site. The core of what you ask

text ... which, if selected, will be processed on and a response will be returned from my remote server (myremoteserver.com)



is just a hyperlink.

There's probably more to it than that. Explain and we will try to help.

0


source


I'll clarify, and furthermore, explain that I'm not doing one of these "annoying" web services that turn resourceful information into a clumsy billboard. I intend to make a low-level (16x16 icons in most menu options) resource binding tool that can be used to connect resources on the local server to other resources, whether local or remote.

This data can be accessed by sending a request to my web server and returning a response in a popup (this response will be based on the request, of course). The answer will be displayed in a short menu of options, such as Wikipedia entries, links to torrent searches for popular engines, etc.

It won't interfere with selection, scrolling, clicking on predefined hyperlinks, or anything else, as you will need to hover the text for a few seconds.

I'm just looking for resources that would be helpful in developing such a service.

0


source







All Articles