Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / JScript / June 2005

Tip: Looking for answers? Try searching our database.

javascript events

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
e_yossi - 07 Jun 2005 16:03 GMT
can i cause an event to raise from the code (without doing anything) ?
say something like:

<script language="javascript">

function foo()
{
    if(...)
        raise an event.

}

</script>

thanks.
Bruce Barker - 07 Jun 2005 17:34 GMT
event to who? the browser, javascript, the server?

> can i cause an event to raise from the code (without doing anything) ?
> say something like:
[quoted text clipped - 11 lines]
>
> thanks.
e_yossi - 08 Jun 2005 06:50 GMT
lets say i have:
<input type="button" onClick="javascript:func()">

and now i wont to activate that button event in the if statement of the
function foo that i previously wrote.
I'm think it can't be done in javascript.... but i wont to be sure.

thanks again.

> event to who? the browser, javascript, the server?
>
[quoted text clipped - 13 lines]
> >
> > thanks.
Bruce Barker - 08 Jun 2005 17:01 GMT
<input type="button" id="myButton" onClick="javascript:func()">

<script>
document.getElementById("myButton").onclick();    // fire onclick event
</script>

-- bruce (sqlwork.com)

> lets say i have:
> <input type="button" onClick="javascript:func()">
[quoted text clipped - 22 lines]
>> >
>> > thanks.
e_yossi - 09 Jun 2005 07:41 GMT
first, thank you very much Bruce Barker whoever you are you realy helped me.
but, i have another quastion...
what if it is an alert?
assume i wrote alert("blablabla"); and now i wont to simulate a keboard ENTER
to eliminate this alert (without the intervention of the user) is there a
mechanism
in javascript that enable that?

thanks.

> <input type="button" id="myButton" onClick="javascript:func()">
>
[quoted text clipped - 30 lines]
> >> >
> >> > thanks.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.