JavaScript URI that rapidly refreshes dynamic contents from a server script

I hope questions from beginners are acceptable. I don't mind studying, but based on research so far, I'm not sure where to even begin........

I'm in need of a script that can fit into a small URI space (around 1,000 characters or less) that will rapidly update itself with information parsed by a server script (lsl/mono served by a meta-verse object over http).

The target browser is the built in media viewer of the Second Life viewer (Mozilla based). The parsed html will come from an LSL/mono script. I am attempting to display the resulting html on a primitive inside the Second Life meta-verse (which basically just turns the prim face into a kind of UV projected browser window) at an update resolution from 0.2 to 0.5 seconds.

I gather that I need something like ajax to constantly ping a serving object for the refreshed dynamic information and update a section in the initial URI? I'm at a loss as to how to set this up.

Already Tried: I've tried simply putting my small bit of html in the URI itself and having the meta-verse's mono/lsl script force a browser update, and this works to some degree, but forcing a media refresh via such a script is throttled to a reliable refresh resolution of around 2 seconds. I really need the refresh to be fully client side instead...at a resolution of more like 0.2 seconds, as the information is used to update a moving vehicle's digital dash instruments.

Already Tried: Just using a meta based refresh in the URI. Either I did it wrong, or it just doesn't work. Would such a method support a resolution of less than a second anyway?

Also attempted using script examples about ajax from this web site, and while they give good example code, they don't show how to set up the headers and such in the browser to use whatever libraries they're speaking of (it's assumed at the level of those threads the reader knows what libraries they're talking about and how to set them up)...so none of that works for me at this point.

The server script parses a simple bit of dynamically refreshed html formatted text. It could all be dumped into a single div area on each refresh pass.

Example of html that requires rapid parsing:

<body bgcolor="black">
<font size="7" color="cyan"><center>
Throttle: 50%<br>
Speed: 40<br>
Bearing: 100, 100, 1000<hr="red">
HP: 200 - Kills: 3<br>
Damage Dealt: 1000
</center></body>

Or if it's more efficient, it could be dumped as simple variable updates for a more advanced script that only change 'the numbers' in a table? But I have no idea how to do that either.

I think I have a pretty good understanding on how to get the server side scripts to parse the required html I wish to display. I'm just at a total loss on how to set up a URI that will ask for it every 0.2 seconds from the client-side...and avoid pulling that information from a 'cache' rather than the actual target url.

Answer:1

I have a javascript code like this and this always gives me a problem for(var i=1;i<9;i++){ document.getElementById('element'+i).onclick=function(){ theFunc(i) } ...

I have a javascript code like this and this always gives me a problem for(var i=1;i<9;i++){ document.getElementById('element'+i).onclick=function(){ theFunc(i) } ...

  1. writing javascript variable in html
  2. writing javascript in variable

I have a leaflet map and I want to assign colors to each "feature." The number of features can be different depending on changing geojson data. I am guessing there is some algorithm to do this. Here ...

I have a leaflet map and I want to assign colors to each "feature." The number of features can be different depending on changing geojson data. I am guessing there is some algorithm to do this. Here ...

  I need to color all the check boxes that are checked to green and unchecked one's to red. <style> input[type=checkbox]+span{ color:red; } input[type=checkbox][checked]+span{ ...

  I need to color all the check boxes that are checked to green and unchecked one's to red. <style> input[type=checkbox]+span{ color:red; } input[type=checkbox][checked]+span{ ...

Please let me know if this is a duplicate post, but I was not able to find a solution to my issue. Its gotta be something simple... I'm trying to use javascript to build a form. The html for the form ...

Please let me know if this is a duplicate post, but I was not able to find a solution to my issue. Its gotta be something simple... I'm trying to use javascript to build a form. The html for the form ...

  1. line breaks from textarea
  2. line breaks form
  3. line breaks from word
  4. line break form html
  5. line break contact form 7
  6. line break pdf form
  7. line break permit form
  8. remove line break form
  9. line break online form
  10. jotform line break
  11. line break poetic form