473,396 Members | 1,865 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Dynamically updating a text-box

110 100+
I'm an experienced c++ programmer, but am learning php because I finally have some free time for it.

But my question is if there is a way to dynamically update a text box area so I can stream text from my home server to it without using a browser plug-in. I've seen it done in web based irc clones where it updates my screen automatically each time someone sends a message.

My goal with this is to watch a movie in text at work from my home server.

But I can't install plug-ins at work (virus reasons), and streaming movies as text lowers my bandwidth enough my system administrator doesn't mind me watching them.

Thanks for reading and hopefully responding, and I'm sure it's either easy to implement, or impossible without a plug-in...
May 8 '08 #1
2 1675
Atli
5,058 Expert 4TB
Hi.

If you want your client-side content to be updated once it has reached the client, your best option is AJAX.

Your PHP code is only executed once one the server when the HTTP request is made. It executes, creates and sends the output to the client and then it is done.

With AJAX, you can have your client-side script send HTTP requests to the server and return the server's response to your client-side code, where it can be displayed.

Check out this AJAX tutorial at w3schools.com to see how to use AJAX.

Also, I have to ask.
What do you mean when you say you want to watch movies in a text box?

P.S. I've edited your thread's title to make it a bit clearer.
May 8 '08 #2
TamusJRoyce
110 100+
Wow... That was exactly what I was wanting to know.

Well, as for updating a text box. The irc clone I saw had two text boxes (forms most likely) that where interactively updated while the page was running. I'm assuming AJAX is how they accomplished that.

My goal is to be able to watch movies as text through the library libcaca for c++. Mplayer, as an example, can play any movie through libcaca (into text playable in console). Instead I wanted this to play to my computer at work through my web browser.

Thanks atli... And thanks for changing the title of my question.
May 8 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

11
by: Jason | last post by:
Let's say I have an html form with 20 or 30 fields in it. The form submits the fields via POST to a php page which updates a table in a database with the $_POST vars. Which makes more sense? ...
2
by: Ceri | last post by:
I am running an ASP.Net project that runs 30 lengthy SQL Stored Procedures (each takes around 20 seconds to complete). As each Stored Procedure completes, I want to indicate in a table cell that it...
0
by: cwbp17 | last post by:
I'm having trouble updating individual datagrid cells. Have two tables car_master (columns include Car_ID, YEAR,VEHICLE) and car_detail (columns include Car_ID,PRICE,MILEAGE,and BODY);both tables...
14
by: el_sid | last post by:
Our developers have experienced a problem with updating Web References in Visual Studio.NET 2003. Normally, when a web service class (.asmx) is created, updating the Web Reference will...
3
by: keithb | last post by:
My code dynamically adds template fields to a GridView control. Everything seems to work OK, except when updating, because I haven't found a way to reference the dynamically added textboxes....
9
by: Suman | last post by:
Happy Friday everyone!!! I am working on a windows service and a C# application and needed some help with certain functionality. Please read through my issue below. Thanks! I have a windows...
0
by: =?Utf-8?B?YmFrZXJzaGFjaw==?= | last post by:
Unless my app is EXTREMELY simple, I get the cross-threading error message regularly when updating controls on a Windows form. My latest example involves a dll that runs a System.Threading.Timer,...
2
by: steven | last post by:
hi as many web developers do, i sniff the URL of my app and toggle things like the db connection string, default email recipients, etc dynamically based on what i find (ie. dev.mysite.com,...
3
by: ata | last post by:
Hi folks, Consider the following code: protected void gridView_RowDataBound(object sender, GridViewRowEventArgs e) { GridViewRow row = e.Row; if (row.RowType != DataControlRowType.DataRow)...
12
by: nsteiner | last post by:
Hi all I am using WScript.Shell in order to execute a batch file that runs a few commands with a large output that is redirected to a local text file. When execution is finished, I read the text...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.