Java Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesJava Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 13th, 2003, 11:24 AM
Hadji_13 Hadji_13 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Location: UK
Posts: 45 Hadji_13 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Angry Notice another Post

Hi,

I post on other forums, and I get annoyed when I try to reply to someones message, and when I submit it, I find someone else has submited something before me.

I'm making a message board and things myself in PHP using a MySQL database.
Is there any way to notify the user that someone else has just posted a message. I want something to happen whilst the user is typing the message and someone else replied, not on a page refresh.

Cheers

Reply With Quote
  #2  
Old June 13th, 2003, 02:16 PM
Nemi Nemi is offline
Clueless llama
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Feb 2001
Location: Lincoln, NE. USA
Posts: 2,353 Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 2 Days 12 h 35 m 19 sec
Reputation Power: 111
I hope you don't take this wrong, but for someone that is making a message board from scratch, you seem to know very little about the request/response process of a web transaction. You may want to slow down on the coding and do some more reading first.

A server cannot "push" information to a web client. Each request for a web page is a complete transaction and the server no longer has a connection to the client after it serves up the requested web page.

I suggest finding an article on the http protocol and understand exactly what is happeneing when you click on a link for a web page.

Here is some light reading
http://www.dslab.tuwien.ac.at/Task_...ption/http.html

Reply With Quote
  #3  
Old June 14th, 2003, 11:42 AM
Hadji_13 Hadji_13 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Location: UK
Posts: 45 Hadji_13 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
I do know how to code and am sure a can create a primative message board from scratch.
I program with PHP a lot, and some VB, VB as simple exe's, PHP as you know is serverside, I'm not that good with java, I've only done a few scripts, but I know that it is client side, and was wondering if it coulld connect to a database or anything and ask the server every 10 secs or something, I don't know what java can and can't do.

So I don't want the server to push something onto the client, I want the client to request it or something, but not with a page refresh.

I was just getting annoyed with that kinda thing, and was hoping for a solution of some kind.

My only other alternative is to have a tiny frame that keeps refrashing with php. But that's a naff and nasty way of doing it.

Reply With Quote
  #4  
Old June 14th, 2003, 03:11 PM
Nemi Nemi is offline
Clueless llama
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Feb 2001
Location: Lincoln, NE. USA
Posts: 2,353 Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 2 Days 12 h 35 m 19 sec
Reputation Power: 111
Since java, like php, runs server side, then it has all the strengths and weaknesses php does in this respect. It cannot make the clients page do anything different than what php can. Perhaps you were thinking of Javascript? This is a different language entirely. You may want to post in the html/javascript forum.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesJava Help > Notice another Post


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT