[ home / board list / faq / random / create / bans / search / manage / irc ] [ ]

/prog/ - Programming

Programming board

Catalog

8chan Bitcoin address: 1NpQaXqmCBji6gfX8UgaQEmEstvVY7U32C
The next generation of Infinity is here (discussion) (contribute)
A message from @CodeMonkeyZ, 2ch lead developer: "How Hiroyuki Nishimura will sell 4chan data"
Name
Email
Subject
Comment *
File
* = required field[▶ Show post options & limits]
Confused? See the FAQ.
Embed
(replaces files and can be used instead)
Options
Password (For file and post deletion.)

Allowed file types:jpg, jpeg, gif, png, webm, mp4, pdf
Max filesize is 8 MB.
Max image dimensions are 10000 x 10000.
You may upload 1 per post.


File: 1427124754374.png (42.25 KB, 300x246, 50:41, Javascript.png)

2f819e No.1793

Web programming total noob here

I need to write some javascript that monitors a chat page. Any time there is new text that contains a certain word, it alerts the user. How is this done?

f035ae No.1794

1: Don't use JS
2: Make a desktop app
3: Stop shoving everything in the web

For an actual answer, be more specific. What is the chat? Is it some ad-hoc AJAX crap? Is it just IRC? What do you mean by alert? There are too many questions that you don't answer OP.

670aef No.1838

Sounds like you could make a greasemonkey script that scans a certain tab on an interval and ping when it comes across something new.

*shrugs* I dunno though. What chat service is it?

90e960 No.1840

One way to do this would be if the server/site that hosts the chatpage provides an API.

Otherwise plug a standard IO to your port 80.
Since a webpage is HTML with maybe JSON (i.e. plain text) you can now unleash the whole power of pattern recognition on that character stream.

c9ffbe No.1844

>>1793
Stop asking people to do your work for you. Either learn what you're doing or hire a contractor who knows what he's doing.

1f6a96 No.1865

write a pidgin plugin, use irc. javascript web chat is for morons.
if you need to make a website, use frames and meta refresh and search text on the server.

5c280f No.1892

>>1794
Never take advice from neckbeards



[Return][Go to top][Catalog][Post a Reply]
Delete Post [ ]
[]
[ home / board list / faq / random / create / bans / search / manage / irc ] [ ]