473,320 Members | 1,861 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,320 software developers and data experts.

FOR attribute and EVENT attribuite for the SCRIPT tag

I am looking through MSDN's website on how to stream media and I ran
accross this example where they had a FOR attribute and an EVENT
attribute to the SCRIPT tag. Example:

<script for="Player" event="buffering(start)">
//...CODE GOES HERE....
</script>

I was wondering if that was a Jscript only thing or not. If JavaScript
can use it then that means I could set a global variable and then have
my other JavaScript code read that global variable and perform actions
based on that.

Also...just a side thought...when you use a piece of code like that
above does that act as a function so if i declared a variable would be
in scope with the function or be global?

Dec 14 '06 #1
4 3203
Tony wrote:
I am looking through MSDN's website on how to stream media and I ran
accross this example where they had a FOR attribute and an EVENT
attribute to the SCRIPT tag. Example:

<script for="Player" event="buffering(start)">
//...CODE GOES HERE....
</script>

I was wondering if that was a Jscript only thing or not.
script for event is a Microsoft thing. It is not portable, so avoid it.

http://javascript.crockford.com/
Dec 14 '06 #2
That's what I thought. Well I wonder if jscript and JavaScript can
share variables?

Dec 14 '06 #3
Tony said the following on 12/14/2006 4:51 PM:
That's what I thought.
What is what you thought? Please quote what you are replying to. You had
to trim it all to start with, save yourself the trouble.
Well I wonder if jscript and JavaScript can share variables?
The technical answer is no in the client. And, I will say it before
someone else does - jscript on the server can "share" variables with
javascript in the client.

Your question seems to imply that you think both JScript and Javascript
run in the browser at the same time and they don't.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Dec 14 '06 #4
What I meant by that's what I thought was that the for and event
attribute was only a JScript thing. I was also thinking that I could
have a <scriptblock that was javascript and another <scriptblock
that was jscript.

What I'm wanting to do is read the buffering state off of a windows
media player file and then enable features based on if the file is
finishe buffering as is ready to play.
Randy Webb wrote:
Tony said the following on 12/14/2006 4:51 PM:
That's what I thought.

What is what you thought? Please quote what you are replying to. You had
to trim it all to start with, save yourself the trouble.
Well I wonder if jscript and JavaScript can share variables?

The technical answer is no in the client. And, I will say it before
someone else does - jscript on the server can "share" variables with
javascript in the client.

Your question seems to imply that you think both JScript and Javascript
run in the browser at the same time and they don't.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Dec 14 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: SeanT | last post by:
I can't seem to get the value associated with an attribute I created on a table row called "BackColor". I can get the length without issue, but whenever I try the value I get nothing. Thanks in...
3
by: pantagruel | last post by:
The following does not work in firefox: <script defer="defer"> var x=document.getElementsByName("repositoryNamespace") alert(x.length + " elements!")
1
by: ofirpicazo | last post by:
Hi, my problem is that IE doesn't seem to do what it's supposed to, so I hope u guys can give me a hand. The code below is supposed to make text editable whenever it's clicked, and it works, the...
5
by: Neil Norfolk | last post by:
I am using C# in Visual Studio 2003. I would like to serialize a class that contains, amongst other things, public delegate void DocumentsPreferencesChange(object env, Documents e); public event...
7
by: Oisin Grehan | last post by:
Hi, I have a UserControl derived class: <ns:votingbutton runat="server" id="btn1" onclick="votingbuttonclick" /> My question is, what code do I need in place in the codebehind for this to...
7
by: Giacomo | last post by:
I work on a page structured like: <h2> ... </h2> <div ="div1" class="show"> ... </div> <h2> ... </h2> <div id="div2" class="show"> ... </div> <h2> ... </h2> <div id="div3" class="show">...
2
by: pedestrian via DotNetMonster.com | last post by:
I'm having an issue with the button click event handler. I follow this book example using the single-file method. It is a very simple page with a Button and a label: <script runat="server">...
0
by: Tom Chi | last post by:
Hi, I am porting an ASP.NET Javascript/C# application from .NET framework 1.x (everything works there) to 2.0 on Windows Server 2003 SP1, and experieced problem (null reference) while trying to...
5
by: =?Utf-8?B?bXBhaW5l?= | last post by:
So this one is confusing as everything works but I want this warning to go away. This is what I have (within a .NET 2.0 Web Application, using VS.NET 2008 SP1): default.aspx: <%@ Page...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.