hey all,
i have the following client-side functions:
<script language=javascript>
function test(){
window.setInterval("sndmsg",10000)
}
function sndmsg(){
alert("HelloWorld!!")
}
</script>
Here's my server-side script:
Private Sub Page_Load(...)
Me.Button1.Attributes.Add("onclick", "javascript:test();")
End Sub
What i thought is should do is send an alert every 10 seconds. Please advise.
thanks,
rodchar 8 977
So, what does it do at the moment?
the test function runs (i tested with alert message) however in debug it does
execute the window.setInterval but after that nothing happens (no alerts), it
just sits there.
"Remy" wrote: So, what does it do at the moment?
try like this:
window.setInterval("sndmsg()",10000)
daniel
"rodchar" <ro*****@discussions.microsoft.com> 写入消息新闻:49**********************************@ microsoft.com... hey all,
i have the following client-side functions: <script language=javascript> function test(){ window.setInterval("sndmsg",10000) } function sndmsg(){ alert("HelloWorld!!") } </script>
Here's my server-side script: Private Sub Page_Load(...) Me.Button1.Attributes.Add("onclick", "javascript:test();") End Sub
What i thought is should do is send an alert every 10 seconds. Please advise.
thanks, rodchar
thanks, i'll give it a try and report back asap.
"rodchar" wrote: hey all,
i have the following client-side functions: <script language=javascript> function test(){ window.setInterval("sndmsg",10000) } function sndmsg(){ alert("HelloWorld!!") } </script>
Here's my server-side script: Private Sub Page_Load(...) Me.Button1.Attributes.Add("onclick", "javascript:test();") End Sub
What i thought is should do is send an alert every 10 seconds. Please advise.
thanks, rodchar
that didn't work. it's not even going to the sndmsg() function. am i using
the setInterval wrong or something?
thanks,
rodchar
"Daniel Chen" wrote: try like this:
window.setInterval("sndmsg()",10000)
daniel
"rodchar" <ro*****@discussions.microsoft.com> 脨麓脠毛脧没脧垄脨脗脦脜:49*********************** ***********@microsoft.com... hey all,
i have the following client-side functions: <script language=javascript> function test(){ window.setInterval("sndmsg",10000) } function sndmsg(){ alert("HelloWorld!!") } </script>
Here's my server-side script: Private Sub Page_Load(...) Me.Button1.Attributes.Add("onclick", "javascript:test();") End Sub
What i thought is should do is send an alert every 10 seconds. Please advise.
thanks, rodchar
You need to specifiy the function correctly. See http://msdn.microsoft.com/library/de...etinterval.asp
--
Regards,
Alvin Bruney [MVP ASP.NET]
[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ www.lulu.com/owc
Forth-coming VSTO.NET - Wrox/Wiley 2006
-------------------------------------------------------
"rodchar" <ro*****@discussions.microsoft.com> wrote in message
news:5C**********************************@microsof t.com... that didn't work. it's not even going to the sndmsg() function. am i using the setInterval wrong or something?
thanks, rodchar
"Daniel Chen" wrote:
try like this:
window.setInterval("sndmsg()",10000)
daniel
"rodchar" <ro*****@discussions.microsoft.com>
写入消息新闻:49**********************************@ microsoft.com... hey all,
i have the following client-side functions: <script language=javascript> function test(){ window.setInterval("sndmsg",10000) } function sndmsg(){ alert("HelloWorld!!") } </script>
Here's my server-side script: Private Sub Page_Load(...) Me.Button1.Attributes.Add("onclick", "javascript:test();") End Sub
What i thought is should do is send an alert every 10 seconds. Please advise.
thanks, rodchar
great i see the error of my ways but shouldn't the alert popup every 10
seconds? it pops up when i first push the button but none after that?
thanks,
rodchar
"Alvin Bruney - ASP.NET MVP" wrote: You need to specifiy the function correctly. See http://msdn.microsoft.com/library/de...etinterval.asp
-- Regards, Alvin Bruney [MVP ASP.NET]
[Shameless Author plug] The Microsoft Office Web Components Black Book with .NET Now Available @ www.lulu.com/owc Forth-coming VSTO.NET - Wrox/Wiley 2006 ------------------------------------------------------- "rodchar" <ro*****@discussions.microsoft.com> wrote in message news:5C**********************************@microsof t.com... that didn't work. it's not even going to the sndmsg() function. am i using the setInterval wrong or something?
thanks, rodchar
"Daniel Chen" wrote:
try like this:
window.setInterval("sndmsg()",10000)
daniel
"rodchar" <ro*****@discussions.microsoft.com> 脨麓脠毛脧没脧垄脨脗脦脜:49*********************** ***********@microsoft.com... > hey all, > > i have the following client-side functions: > <script language=javascript> > function test(){ > window.setInterval("sndmsg",10000) > } > function sndmsg(){ > alert("HelloWorld!!") > } > </script> > > Here's my server-side script: > Private Sub Page_Load(...) > Me.Button1.Attributes.Add("onclick", "javascript:test();") > End Sub > > What i thought is should do is send an alert every 10 seconds. Please > advise. > > thanks, > rodchar >
First off, it's type="text/javascript", that language="" stuff is
deprecated and doesn't belong on the web.
Secondly, it's onclick="test();". Having the javascript : prefix(which
is taboo at best) is redundant.
<head>
<title></title>
<script type="text/javascript">
function sndmsg(){
alert("HelloWorld!!")
}
function test( ) {
window.setInterval("sndmsg()", 1000);
}
</script>
</head>
<body>
<input type="button" id="btnTest" value="Click me!"
onclick="test();">
</body>
David Betz http://www.davidbetz.net/dynamicbliss/ http://www.davidbetz.net/winfx/ This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Sarah Tanembaum |
last post by:
Beside its an opensource and supported by community, what's the fundamental
differences between PostgreSQL and those high-price commercial database (and
some are bloated such as Oracle) from...
|
by: typingcat |
last post by:
First of all, I'm an Asian and I need to input Japanese, Korean and so
on. I've tried many PHP IDEs today, but almost non of them supported
Unicode (UTF-8) file.
I've found that the only Unicode...
|
by: Alfonso Morra |
last post by:
Hi,
I am at the end of my tether now - after spending several days trying to
figure how to do this. I have finally written a simple "proof of
concept" program to test serializing a structure...
|
by: Keith K |
last post by:
Having developed with VB since 1992, I am now VERY
interested in C#. I've written several applications with
C# and I do enjoy the language.
What C# Needs:
There are a few things that I do...
|
by: Jason Huang |
last post by:
Hi,
Would someone explain the following coding more detail for me? What's the
( ) for?
CurrentText = (TextBox)e.Item.Cells.Controls;
Thanks.
Jason
|
by: Aaron Ackerman |
last post by:
I cannot a row to this bound DataGrid to SAVE MY LIFE! I have tried
everything and I am at a loss. The using goes into add mode with the add
button adds his data then updates with the update...
|
by: Ajay |
last post by:
Hi all,
i want to know when i create a class.what all it contains.I
know the following things are there by default if i do not declare them
by myself.Please tell the other things that are left.
...
|
by: watkinsdev |
last post by:
Hi,
I have created a mesh class in visual studio 6.0 c++.
I can create a device, render objects and can edit the objects by for
instancnce selecting a cluster of vertices and processing the...
|
by: shapper |
last post by:
Hello,
I am creating a class with a control. I compiled the class and used it
on an Asp.Net 2.0 web site page.
I can see the begin and end tags of my control (<oland </ol>) but
somehow the...
|
by: DavidSeck.com |
last post by:
Hi,
I am working with the Facebook API right now, an I have kind of a
problem, but I don't know what I am doing wrong.
So I have a few arrays, f.ex.:
User albums:
array(2) {
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
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...
|
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...
|
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梡lanning, coding, testing,...
| |