Deceptive website idea (not your average idea, not "do you ask me this request?")

Try again: this is not a request to program anything for me. I am looking for more experienced web developers to tell me if my idea is really feasible as it touches on some fairly complex issues (at least I think so). Please, if this message should be closed, could I at least get a little advice on where I should publish first?

Imagine: you are visiting a site (say malonssite.com). You come in, you get a double glass window. The left side is a chat list (see FB's Friends List). The right side is the “browser”.

The chat list is filled out by other people who have signed a contract on malonssite.com and visit the same page as you using the "built-in" browser.

Each user has the ability to "allow followers", and at what point on any site they visit, all of their followers "follow".

Thumbnail image:
sketch

My abilities: PHP MySQL Javascript (node.js included, but this is more server side, I think)

I did a long survey and ajax, but this gets complicated. I think something like this is best done in a flash? Or maybe a school Java applet? I'm just not sure.

I'm sure I can do it myself, I just don’t know what technology to use. I usually click stumbling blocks in each area, usually along the lines of the same origin policy . I know that JSONP can get around SOP, however is it capable enough to do what I want? I am not familiar enough with this.

Sockets in general (websockets, flash sockets, etc.) and node.js are quite new to me, and I think they somehow hold the answer, I'm just looking for confirmation.

Thanks!

+4
source share
4 answers

As I can see, you just need an iframe with JScript with an src request and sending it to the server. Thus, basically the user will remain in your own domain, browsing other websites in the iframe, and you will not have problems with cross-querying.

You can use the monkey engine for the server side, which is exactly designed for this kind of thing.

+2
source

It is very possible.

Plain? not. But probably.

HTML / CSS / JS will easily take care of the front end layout, which should be elementary.

Node.js is a good option and is best suited if you know that traffic will be heavy.

If the traffic is not heavy, I think php is fine.

And you will also need a backend database ... again, it depends on how many users you think you will have. nosql will work well, although the oracle simply claimed that they "exponentially" improved mySQL performance.

But think carefully about this idea. The concept of giving users the opportunity to communicate if they are on the same page is neat, but they will need to browse the site on your site ... in addition, you need to consider when the user clicks the Next / Back button in the browser.

maybe you could make a firefox plug and implement this as software

+1
source

Did you mean something like talkita or any other google search “ chat with others on the same page ” solution? some of them also allow subscribers (subscribers), etc. take a look, maybe you get an idea.

+1
source

forget about flash and java applets ...
I think this is a great idea, and I hope you can make it work.
I would really use NodeJS + ( Socket.IO | SockJS ) for server-side communication and in real time, all your problems with SOP will disappear.
As for the client side, just take care to cross-examine javascript and css
To save data, some nosql implementation is used: mongoDB or couchDB , for example

0
source

Source: https://habr.com/ru/post/1399227/


All Articles