New topic: Don't know if this is a Web Question.
<http://forums.realsoftware.com/viewtopic.php?t=45695> Page 1 of 1 [ 6 posts ] Previous topic | Next topic Author Message Jym Post subject: Don't know if this is a Web Question.Posted: Tue Oct 23, 2012 3:28 pm Joined: Sat Oct 01, 2005 5:19 pm Posts: 3163 Can I use a website to host data for my desktop application? In a nutshell, on Sat. 25 computers will be running the same program all across campus. It has to be a desktop application (not an option). One Professor will be putting text into a Text Area, and I'd like it to show on the computers. I'm thinking a Database file and a timer to check to see if the Prof has updated the Text Area, but the question then becomes can I connect to the online database file every 5 minutes and check for an update in the record? It would simply be 3 Columns 1 record with RTF information for the text area and 'editing rights' in the other 2 columns. OR can I have a text file that can be read every 5 minutes by the timer. I'd much prefer the RBSQLite method, so only the Professor will be allow to change it, but I'll do with what I have to. Not a clue how to connect to an online file via the net. If it has to be downloaded to check for an update that's ok too, but again no clue how to do that. TIA Top charonn0 Post subject: Re: Don't know if this is a Web Question.Posted: Tue Oct 23, 2012 4:27 pm Joined: Mon Apr 02, 2007 2:08 am Posts: 933 Location: San Francisco, CA, USA I don't think that a web app is the right tool here. You could do something like a simple desktop app with an HTMLViewer that connects to a webapp, but that seems kludgy to me _________________ Boredom Software Top npalardy Post subject: Re: Don't know if this is a Web Question.Posted: Tue Oct 23, 2012 4:33 pm Real Software Engineer Joined: Sat Dec 24, 2005 8:18 pm Posts: 7499 Location: Canada, Alberta, Near Red Deer Jym wrote:Can I use a website to host data for my desktop application? In a nutshell, on Sat. 25 computers will be running the same program all across campus. It has to be a desktop application (not an option). One Professor will be putting text into a Text Area, and I'd like it to show on the computers. I'm thinking a Database file and a timer to check to see if the Prof has updated the Text Area, but the question then becomes can I connect to the online database file every 5 minutes and check for an update in the record? It would simply be 3 Columns 1 record with RTF information for the text area and 'editing rights' in the other 2 columns. OR can I have a text file that can be read every 5 minutes by the timer. I'd much prefer the RBSQLite method, so only the Professor will be allow to change it, but I'll do with what I have to. Not a clue how to connect to an online file via the net. If it has to be downloaded to check for an update that's ok too, but again no clue how to do that. TIA One option Professors app is set as a "server" and has a ServerSocket that every other client can connect to Then when the prof types you could send it key stroke by keystroke to the other computers Second Client computers simply connect to a web site that has a page that is updated by the professors app Clients repeatedly poll to get the update reasonably soon (and cache the time they got the file so they only update when it has changed) And they dont have to go to a web page - it could be a file accessed via http _________________ My web site Great White Software RBLibrary.com REALbasic learning Top Jym Post subject: Re: Don't know if this is a Web Question.Posted: Tue Oct 23, 2012 5:06 pm Joined: Sat Oct 01, 2005 5:19 pm Posts: 3163 Option 1 sounds ok, option 2 doesn't sound like a desktop app. However I don't know that I'll have time to figure it out. With the OpenDialog if I put http://tedrogersschoolofmanagement.ca/crap/crap.txt into the field, I get the right file, there's no way to do that with GetFolderItem or something? Top timhare Post subject: Re: Don't know if this is a Web Question.Posted: Tue Oct 23, 2012 5:49 pm Joined: Fri Jan 06, 2006 3:21 pm Posts: 11742 Location: Portland, OR USA Use an HTTPSocket and Get the file. dim http as new HTTPSocket http.Get("http://tedrogersschoolofmanagement.ca/crap/crap.txt", 10) Top Thom McGrath Post subject: Re: Don't know if this is a Web Question.Posted: Tue Oct 23, 2012 8:04 pm Site Admin Joined: Tue May 06, 2008 1:07 pm Posts: 1222 Location: Greater Hartford Area, CT Use a PostgreSQL database - included with most hosting packages - and utilize the notification system. The master saves the content to the database then posts a notification that it has done so. When the slaves receive the notification, they can fetch the updated content. No need for polling. _________________ Thom McGrath - @tekcor Web Framework Architect, Real Software, Inc. Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 6 posts ] -- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml [email protected]
