Javascript alert message problem

Ask a Question related to ASP.NET Building Controls, Design and Development.

  1. #1

    Default Javascript alert message problem

    Hello.

    I'm developing and testing a web application using VS.NET 2003, VB, .NET
    Framework 1.1.4322, ASP.NET 1.1.4322 and IIS5.1 on a WIN XP Pro, SP2
    computer. I'm using a web form.

    Using this line of code works great. It displays a little message box with
    the alert message in it.

    Me.btnGetArchivedTrips.Attributes.Add("onMouseOver ", "alert('mouse over')")

    But how do i get it to display the alert message without doing a mouse over,
    just trying to put it into an if statement ?

    If Calendar1.SelectedDate > Me.Calendar2.SelectedDate) Then
    alert('mouse over')")
    End If

    Thanks,
    Tony


    Tony Girgenti Guest

  2. Similar Questions and Discussions

    1. How To Supress Acrobat Error Message And Alert Message
      Is there any way to supress those pop up message? If can't, is there any way to catch it?
    2. warning message (alert)
      Hi, I want to create the alert message ' You are about to over writte the acct, do you wish to continue?'). I need two buttons here, YES/ NO. If...
    3. Regarding to alert message
      Hi If our text contains only characters but wrongly we add the number so alert message will come. In that we want only to remove the number not...
    4. Javascript alert
      Hi, I have a Javascript alert as below. alert('Please enter Todays Date'); This works fine. But I want an apostrophy after the y in...
    5. alert or message box?
      I am not clear ... whether to use alert of JavaScript or messagebox of VBScript in ASP. But what I want is that when a user has some error I want...
  3. #2

    Default Re: Javascript alert message problem

    "Tony Girgenti" <tony(nospam)@lakesideos.com> wrote in message
    news:uky2U0$5GHA.2464@TK2MSFTNGP06.phx.gbl...
    > Using this line of code works great. It displays a little message box
    > with the alert message in it.
    >
    > Me.btnGetArchivedTrips.Attributes.Add("onMouseOver ", "alert('mouse
    > over')")
    >
    > But how do i get it to display the alert message without doing a mouse
    > over, just trying to put it into an if statement ?
    >
    > If Calendar1.SelectedDate > Me.Calendar2.SelectedDate) Then
    > alert('mouse over')")
    > End If
    Er...have you tried

    If Calendar1.SelectedDate > Me.Calendar2.SelectedDate) Then
    Me.btnGetArchivedTrips.Attributes.Add("onMouseOver ", "alert('mouse
    over')")
    End If


    Mark Rae Guest

  4. #3

    Default Re: Javascript alert message problem

    Hello Mark.

    I guess i didn't explain my problem correctly. Within the if statement, i
    just want the alert part. In other words if the startdate/enddate compare
    is true, i want a little message to pop up that indicates the problem. Like
    "Dates are incorrect".

    Thanks for your reply.

    Tony

    "Mark Rae" <mark@markNOSPAMrae.com> wrote in message
    news:e6Esw9$5GHA.3732@TK2MSFTNGP05.phx.gbl...
    > "Tony Girgenti" <tony(nospam)@lakesideos.com> wrote in message
    > news:uky2U0$5GHA.2464@TK2MSFTNGP06.phx.gbl...
    >
    >> Using this line of code works great. It displays a little message box
    >> with the alert message in it.
    >>
    >> Me.btnGetArchivedTrips.Attributes.Add("onMouseOver ", "alert('mouse
    >> over')")
    >>
    >> But how do i get it to display the alert message without doing a mouse
    >> over, just trying to put it into an if statement ?
    >>
    >> If Calendar1.SelectedDate > Me.Calendar2.SelectedDate) Then
    >> alert('mouse over')")
    >> End If
    >
    > Er...have you tried
    >
    > If Calendar1.SelectedDate > Me.Calendar2.SelectedDate) Then
    > Me.btnGetArchivedTrips.Attributes.Add("onMouseOver ", "alert('mouse
    > over')")
    > End If
    >
    >

    Tony Girgenti Guest

  5. #4

    Default Re: Javascript alert message problem

    if i know vb well enough:

    If Calendar1.SelectedDate > Me.Calendar2.SelectedDate) Then
    Page.ClientScript.RegisterClientScriptBlock(me.Get Type(),"alert","alert('mouse
    over');",true)
    End If

    -- bruce (sqlwork.com)

    "Tony Girgenti" <tony(nospam)@lakesideos.com> wrote in message
    news:uky2U0$5GHA.2464@TK2MSFTNGP06.phx.gbl...
    > Hello.
    >
    > I'm developing and testing a web application using VS.NET 2003, VB, .NET
    > Framework 1.1.4322, ASP.NET 1.1.4322 and IIS5.1 on a WIN XP Pro, SP2
    > computer. I'm using a web form.
    >
    > Using this line of code works great. It displays a little message box
    > with the alert message in it.
    >
    > Me.btnGetArchivedTrips.Attributes.Add("onMouseOver ", "alert('mouse
    > over')")
    >
    > But how do i get it to display the alert message without doing a mouse
    > over, just trying to put it into an if statement ?
    >
    > If Calendar1.SelectedDate > Me.Calendar2.SelectedDate) Then
    > alert('mouse over')")
    > End If
    >
    > Thanks,
    > Tony
    >

    bruce barker \(sqlwork.com\) Guest

  6. #5

    Default Re: Javascript alert message problem

    Hello Bruce.

    This is not working because the IDE is saying "ClientScript is not a member
    of System.Web.UI.Page". I can't figure out how to code it so that it is
    accepted by the coding syntax.

    Thanks,
    Tony

    "bruce barker (sqlwork.com)" <b_r_u_c_e_removeunderscores@sqlwork.com> wrote
    in message news:udtCPqA6GHA.3808@TK2MSFTNGP06.phx.gbl...
    > if i know vb well enough:
    >
    > If Calendar1.SelectedDate > Me.Calendar2.SelectedDate) Then
    >
    > Page.ClientScript.RegisterClientScriptBlock(me.Get Type(),"alert","alert('mouse
    > over');",true)
    > End If
    >
    > -- bruce (sqlwork.com)
    >
    > "Tony Girgenti" <tony(nospam)@lakesideos.com> wrote in message
    > news:uky2U0$5GHA.2464@TK2MSFTNGP06.phx.gbl...
    >> Hello.
    >>
    >> I'm developing and testing a web application using VS.NET 2003, VB, .NET
    >> Framework 1.1.4322, ASP.NET 1.1.4322 and IIS5.1 on a WIN XP Pro, SP2
    >> computer. I'm using a web form.
    >>
    >> Using this line of code works great. It displays a little message box
    >> with the alert message in it.
    >>
    >> Me.btnGetArchivedTrips.Attributes.Add("onMouseOver ", "alert('mouse
    >> over')")
    >>
    >> But how do i get it to display the alert message without doing a mouse
    >> over, just trying to put it into an if statement ?
    >>
    >> If Calendar1.SelectedDate > Me.Calendar2.SelectedDate) Then
    >> alert('mouse over')")
    >> End If
    >>
    >> Thanks,
    >> Tony
    >>
    >
    >

    Tony Girgenti Guest

  7. #6

    Default Re: Javascript alert message problem

    > Hello Bruce.
    >
    > This is not working because the IDE is saying "ClientScript is not a
    > member of System.Web.UI.Page". I can't figure out how to code it so that
    > it is accepted by the coding syntax.
    I think you are using ASP.Net 1.1

    Coming to your original problem:
    > If Calendar1.SelectedDate > Me.Calendar2.SelectedDate) Then
    > alert('mouse over')")
    > End If
    Solution suggested by Mark is correct way to go about it...

    What you are expecting above is:

    1. Manipulation of the Data on the server side
    2. Alert on the client side

    => Two things happening together is not possible.


    --
    Happy Hacking,
    Gaurav Vaish | [url]www.mastergaurav.com[/url]
    [url]www.edujinionline.com[/url]
    [url]http://articles.edujinionline.com/webservices[/url]
    -----------------------------------------


    Gaurav Vaish \(www.EdujiniOnline.com\) Guest

  8. #7

    Default Re: Javascript alert message problem

    Hello Gaurav.

    I think i understand what you are saying. Correct me if i am wrong. Are
    you saying that this part of the statement "If Calendar1.SelectedDate >
    Me.Calendar2.SelectedDate Then"
    is occurring on the server side, but this part "alert('mouse over')")" is
    happening on the client side ?

    If that's the case, then how do i go about doing this ? I tried putting it
    into the HTML, but i can't get it to execute the function.

    Thanks,
    Tony

    "Gaurav Vaish (www.EdujiniOnline.com)"
    <gaurav.vaish.nospam@nospam.gmail.com> wrote in message
    news:uTrGXkC6GHA.2044@TK2MSFTNGP02.phx.gbl...
    >> Hello Bruce.
    >>
    >> This is not working because the IDE is saying "ClientScript is not a
    >> member of System.Web.UI.Page". I can't figure out how to code it so that
    >> it is accepted by the coding syntax.
    >
    > I think you are using ASP.Net 1.1
    >
    > Coming to your original problem:
    >
    >> If Calendar1.SelectedDate > Me.Calendar2.SelectedDate) Then
    >> alert('mouse over')")
    >> End If
    >
    > Solution suggested by Mark is correct way to go about it...
    >
    > What you are expecting above is:
    >
    > 1. Manipulation of the Data on the server side
    > 2. Alert on the client side
    >
    > => Two things happening together is not possible.
    >
    >
    > --
    > Happy Hacking,
    > Gaurav Vaish | [url]www.mastergaurav.com[/url]
    > [url]www.edujinionline.com[/url]
    > [url]http://articles.edujinionline.com/webservices[/url]
    > -----------------------------------------
    >
    >

    Tony Girgenti Guest

  9. #8

    Default Re: Javascript alert message problem

    Tony Girgenti (nospam) wrote:
    > Hello Bruce.
    >
    > This is not working because the IDE is saying "ClientScript is not a member
    > of System.Web.UI.Page". I can't figure out how to code it so that it is
    > accepted by the coding syntax.
    >
    > Thanks,
    > Tony
    >
    In 1.1, it would be


    Me.RegisterClientScriptBlock("warning","<script>al ert('hello');</script>")

    Damien

    Damien Guest

  10. #9

    Default Re: Javascript alert message problem

    > I think i understand what you are saying. Correct me if i am wrong. Are
    > you saying that this part of the statement "If Calendar1.SelectedDate >
    > Me.Calendar2.SelectedDate Then"
    > is occurring on the server side, but this part "alert('mouse over')")" is
    > happening on the client side ?
    >
    > If that's the case, then how do i go about doing this ? I tried putting
    > it into the HTML, but i can't get it to execute the function.
    Bingo!
    You got it right...

    You need to do something like this:

    if Calendar1.SelectedDate > Me.Calendar2.SelectedDate Then
    Me.Page.RegisterClientScriptBlock("Unique_Name_Lik e_Calendar1_Error",_
    "<script type='text/javascript'
    language='javascript'>alert('Error in selected date');</script>")
    End if

    What this will do is emit this script just before the end of "form"
    element... ie, near the end of the page. And will give an alert almost
    immediately as the page gets completely loaded.


    --
    Happy Hacking,
    Gaurav Vaish | [url]www.mastergaurav.com[/url]
    [url]www.edujinionline.com[/url]
    [url]http://articles.edujinionline.com/webservices[/url]
    -----------------------------------------


    Gaurav Vaish \(www.EdujiniOnline.com\) Guest

  11. #10

    Default Re: Javascript alert message problem

    Wow. That's great. Thanks to you and Damien for your code.

    I need to learn more about scripting, but i'm confused about all the
    scripting terminology. When i do searches for javascript, i always seem to
    get returns that involve VBscript, Jscript, javascript, client-side scripts,
    HTML etc.

    What is it that i should be looking for ? and should i be looking for a
    particular version ? Is what you did for me called "javascript" ?

    Also, the second line of the HTML code for my web page is "<!DOCTYPE HTML
    PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">". Does that mean the HTML
    version is 4.0 ?

    Any help would be gratefully appreciated.

    Thanks again,
    Tony

    "Gaurav Vaish (www.EdujiniOnline.com)"
    <gaurav.vaish.nospam@nospam.gmail.com> wrote in message
    news:e1x5tih6GHA.4116@TK2MSFTNGP03.phx.gbl...
    >> I think i understand what you are saying. Correct me if i am wrong. Are
    >> you saying that this part of the statement "If Calendar1.SelectedDate >
    >> Me.Calendar2.SelectedDate Then"
    >> is occurring on the server side, but this part "alert('mouse over')")" is
    >> happening on the client side ?
    >>
    >> If that's the case, then how do i go about doing this ? I tried putting
    >> it into the HTML, but i can't get it to execute the function.
    >
    > Bingo!
    > You got it right...
    >
    > You need to do something like this:
    >
    > if Calendar1.SelectedDate > Me.Calendar2.SelectedDate Then
    > Me.Page.RegisterClientScriptBlock("Unique_Name_Lik e_Calendar1_Error",_
    > "<script type='text/javascript'
    > language='javascript'>alert('Error in selected date');</script>")
    > End if
    >
    > What this will do is emit this script just before the end of "form"
    > element... ie, near the end of the page. And will give an alert almost
    > immediately as the page gets completely loaded.
    >
    >
    > --
    > Happy Hacking,
    > Gaurav Vaish | [url]www.mastergaurav.com[/url]
    > [url]www.edujinionline.com[/url]
    > [url]http://articles.edujinionline.com/webservices[/url]
    > -----------------------------------------
    >
    >

    Tony Girgenti Guest

  12. #11

    Default Re: Javascript alert message problem

    Hi Tony,
    > I need to learn more about scripting, but i'm confused about all the
    > scripting terminology. When i do searches for javascript, i always seem
    > to get returns that involve VBscript, Jscript, javascript, client-side
    > scripts, HTML etc.
    Forget all about VBScript, JScript... if you are looking to work with
    them on client side -- you are tied to IE. Firefox is the recipe-of-the-day.
    > What is it that i should be looking for ? and should i be looking for a
    > particular version ? Is what you did for me called "javascript" ?
    If I recall correctly, Javascript 1.6 is the latest... albeit 1.2+
    should be good enough for quite a few practical purposes.
    > Also, the second line of the HTML code for my web page is "<!DOCTYPE HTML
    > PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">". Does that mean the HTML
    > version is 4.0 ?
    HTML 4.0 "Transitional" meaning that somethings like "<br>", "<img>" etc
    will go without warnings where in XHTML mode it has to be "<br />", "<img
    .... />".

    I would suggest you to have a look into the topic of "XML", "DTD" and
    "XSD" and then also look into "HTML" and "its DTD".

    For advanced processing on client-side, additional topics would be
    Javascript, DOM Level 3 API.

    All of this is available on [url]www.w3.org[/url]. This spectrum will give you a
    complete understanding of the "web applications", how they function, what
    all things you should take care of / note of etc when designing the "server
    side" and the "client side" of your application.
    > Any help would be gratefully appreciated.
    Hope that helps!
    > Thanks again,
    Most welcome!


    --
    Happy Hacking,
    Gaurav Vaish | [url]www.mastergaurav.com[/url]
    [url]www.edujinionline.com[/url]
    [url]http://eduzine.edujinionline.com[/url]
    -----------------------------------------


    Gaurav Vaish \(www.EdujiniOnline.com\) Guest

  13. #12

    Default Re: Javascript alert message problem

    Hi,

    Gaurav Vaish ([url]www.EdujiniOnline.com[/url]) wrote:
    > Hi Tony,
    > Forget all about VBScript, JScript... if you are looking to work with
    > them on client side -- you are tied to IE. Firefox is the recipe-of-the-day.
    Firefox still represents a minority of the browsers, and with the
    release of IE7, I think it will worsen Firefox's ratings. I personally
    like Firefox (mostly for tabbed browsing), but that will be available in
    IE too.

    Anyway, I will always recommend writing standard JavaScript, so that it
    works reasonably in all newer browsers. This is possible without major
    efforts, once you mastered the learning curve. JavaScript and the DOM
    are now standard enough that this shouldn't cause big problems. In that
    sense, I find reasonable to recommend JavaScript (i.e. Netscape's
    implementation) and JScript (i.e Microsoft's implementation), which are
    anyway almost the same.

    Also, using feature detection instead of browser detection is alwaysa
    good idea to increase compatibility, and degrade gracefully when a
    feature is not available.

    if ( document.getElementById )
    {
    document.getElementById( "myId" ).value = "...";
    }
    else
    {
    // Inform user or use another way.
    }

    HTH,
    Laurent
    --
    Laurent Bugnion, GalaSoft
    Software engineering: [url]http://www.galasoft-LB.ch[/url]
    PhotoAlbum: [url]http://www.galasoft-LB.ch/pictures[/url]
    Support children in Calcutta: [url]http://www.calcutta-espoir.ch[/url]
    Laurent Bugnion Guest

  14. #13

    Default Re: Javascript alert message problem

    Thanks to Gaurav and Laurent for their replies. I have a lot of learning to
    do.

    Tony

    "Laurent Bugnion" <galasoft-lb@bluewin.ch> wrote in message
    news:u%23o8goI7GHA.4348@TK2MSFTNGP03.phx.gbl...
    > Hi,
    >
    > Gaurav Vaish ([url]www.EdujiniOnline.com[/url]) wrote:
    >> Hi Tony,
    >
    >> Forget all about VBScript, JScript... if you are looking to work with
    >> them on client side -- you are tied to IE. Firefox is the
    >> recipe-of-the-day.
    >
    > Firefox still represents a minority of the browsers, and with the release
    > of IE7, I think it will worsen Firefox's ratings. I personally like
    > Firefox (mostly for tabbed browsing), but that will be available in IE
    > too.
    >
    > Anyway, I will always recommend writing standard JavaScript, so that it
    > works reasonably in all newer browsers. This is possible without major
    > efforts, once you mastered the learning curve. JavaScript and the DOM are
    > now standard enough that this shouldn't cause big problems. In that sense,
    > I find reasonable to recommend JavaScript (i.e. Netscape's implementation)
    > and JScript (i.e Microsoft's implementation), which are anyway almost the
    > same.
    >
    > Also, using feature detection instead of browser detection is alwaysa good
    > idea to increase compatibility, and degrade gracefully when a feature is
    > not available.
    >
    > if ( document.getElementById )
    > {
    > document.getElementById( "myId" ).value = "...";
    > }
    > else
    > {
    > // Inform user or use another way.
    > }
    >
    > HTH,
    > Laurent
    > --
    > Laurent Bugnion, GalaSoft
    > Software engineering: [url]http://www.galasoft-LB.ch[/url]
    > PhotoAlbum: [url]http://www.galasoft-LB.ch/pictures[/url]
    > Support children in Calcutta: [url]http://www.calcutta-espoir.ch[/url]

    Tony Girgenti Guest

  15. #14

    Default Re: Javascript alert message problem

    Gaurav.

    One thing i don't understand is "Forget all about VBScript, JScript". If
    JScript is Microsoft's implementation of JavaScript and i am using VS.NET
    2003, then why not use JScript ?

    I'm sure you have a good reason, but i am puzzled by that.

    Thanks,
    Tony

    "Gaurav Vaish (www.EdujiniOnline.com)"
    <gaurav.vaish.nospam@nospam.gmail.com> wrote in message
    news:OTfeyYH7GHA.3836@TK2MSFTNGP02.phx.gbl...
    > Hi Tony,
    >
    >> I need to learn more about scripting, but i'm confused about all the
    >> scripting terminology. When i do searches for javascript, i always seem
    >> to get returns that involve VBscript, Jscript, javascript, client-side
    >> scripts, HTML etc.
    >
    > Forget all about VBScript, JScript... if you are looking to work with
    > them on client side -- you are tied to IE. Firefox is the
    > recipe-of-the-day.
    >
    >> What is it that i should be looking for ? and should i be looking for a
    >> particular version ? Is what you did for me called "javascript" ?
    >
    > If I recall correctly, Javascript 1.6 is the latest... albeit 1.2+
    > should be good enough for quite a few practical purposes.
    >
    >> Also, the second line of the HTML code for my web page is "<!DOCTYPE HTML
    >> PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">". Does that mean the
    >> HTML version is 4.0 ?
    >
    > HTML 4.0 "Transitional" meaning that somethings like "<br>", "<img>"
    > etc will go without warnings where in XHTML mode it has to be "<br />",
    > "<img ... />".
    >
    > I would suggest you to have a look into the topic of "XML", "DTD" and
    > "XSD" and then also look into "HTML" and "its DTD".
    >
    > For advanced processing on client-side, additional topics would be
    > Javascript, DOM Level 3 API.
    >
    > All of this is available on [url]www.w3.org[/url]. This spectrum will give you a
    > complete understanding of the "web applications", how they function, what
    > all things you should take care of / note of etc when designing the
    > "server side" and the "client side" of your application.
    >
    >> Any help would be gratefully appreciated.
    >
    > Hope that helps!
    >
    >> Thanks again,
    >
    > Most welcome!
    >
    >
    > --
    > Happy Hacking,
    > Gaurav Vaish | [url]www.mastergaurav.com[/url]
    > [url]www.edujinionline.com[/url]
    > [url]http://eduzine.edujinionline.com[/url]
    > -----------------------------------------
    >
    >

    Tony Girgenti Guest

  16. #15

    Default Re: Javascript alert message problem

    Hi,

    Tony Girgenti wrote:
    > Gaurav.
    >
    > One thing i don't understand is "Forget all about VBScript, JScript". If
    > JScript is Microsoft's implementation of JavaScript and i am using VS.NET
    > 2003, then why not use JScript ?
    >
    > I'm sure you have a good reason, but i am puzzled by that.
    >
    > Thanks,
    > Tony
    I agree. See my post in the same thread. Better learn and program
    against standards, instead of concentrating on one browser only,
    whichever that is.

    HTH,
    Laurent
    --
    Laurent Bugnion, GalaSoft
    Software engineering: [url]http://www.galasoft-LB.ch[/url]
    PhotoAlbum: [url]http://www.galasoft-LB.ch/pictures[/url]
    Support children in Calcutta: [url]http://www.calcutta-espoir.ch[/url]
    Laurent Bugnion Guest

  17. #16

    Default Re: Javascript alert message problem

    > I agree. See my post in the same thread. Better learn and program against
    > standards, instead of concentrating on one browser only, whichever that
    > is.
    Laurent said it all... reach out to as many people as you can.
    "Why not bother" about millions of users that work with Firefox, or Safari
    (kinda defacto on Mac from Tiger onwards). Note that MSIE does not work
    identically on Windows and Mac.



    --
    Happy Hacking,
    Gaurav Vaish | [url]www.mastergaurav.com[/url]
    [url]www.edujinionline.com[/url]
    [url]http://eduzine.edujinionline.com[/url]
    -----------------------------------------


    Gaurav Vaish \(www.EdujiniOnline.com\) Guest

  18. #17

    Default Re: Javascript alert message problem

    > Firefox still represents a minority of the browsers, and with the release
    > of IE7, I think it will worsen Firefox's ratings. I personally like
    > Firefox (mostly for tabbed browsing), but that will be available in IE
    > too.
    Two things:
    1. I still won't leave that "millions of users" audience
    2. Firefox is anyway more secure as compared to IE. Well, at least I have
    more faith in it :-)


    --
    Happy Hacking,
    Gaurav Vaish | [url]www.mastergaurav.com[/url]
    [url]www.edujinionline.com[/url]
    [url]http://eduzine.edujinionline.com[/url]
    -----------------------------------------


    Gaurav Vaish \(www.EdujiniOnline.com\) Guest

  19. #18

    Default Re: Javascript alert message problem

    Hi,

    Gaurav Vaish ([url]www.EdujiniOnline.com[/url]) wrote:
    >> Firefox still represents a minority of the browsers, and with the release
    >> of IE7, I think it will worsen Firefox's ratings. I personally like
    >> Firefox (mostly for tabbed browsing), but that will be available in IE
    >> too.
    >
    > Two things:
    > 1. I still won't leave that "millions of users" audience
    I am not sure if you're stubborn on purpose, or if you really don't
    understand what I say.

    You advised the OP to abandon JScript and learn only JavaScript. In
    other words, you recommended to stop developing for IE and develop only
    for Mozilla-based browsers.

    My recommendation is to not develop for one browser in particular, but
    to use standard constructs and feature detection to make code compatible
    with all major browsers.

    Noone asks you to leave any audience. By using standards you can win
    both worlds easily. Why would you want to do anything else?
    > 2. Firefox is anyway more secure as compared to IE. Well, at least I have
    > more faith in it :-)
    Once again, noone asked you to leave anything aside. Besides, your
    personal preference is totally irrelevant, as you don't develop websites
    for yourself but for users, who may have other preferences.

    If you were a cook and only baked chocolate pies because that's what you
    prefer, you wouldn't have many customers.

    HTH,
    Laurent
    --
    Laurent Bugnion, GalaSoft
    Software engineering: [url]http://www.galasoft-LB.ch[/url]
    PhotoAlbum: [url]http://www.galasoft-LB.ch/pictures[/url]
    Support children in Calcutta: [url]http://www.calcutta-espoir.ch[/url]
    Laurent Bugnion Guest

  20. #19

    Default Re: Javascript alert message problem

    > I am not sure if you're stubborn on purpose, or if you really don't
    > understand what I say.
    Should be the second part. :-)

    btw, still wondering why go for JScript when JavaScript should be just
    enough... Or again, I'm really not understanding something :D


    --
    Happy Hacking,
    Gaurav Vaish | [url]www.mastergaurav.com[/url]
    [url]www.edujinionline.com[/url]
    [url]http://eduzine.edujinionline.com[/url]
    -----------------------------------------


    Gaurav Vaish \(www.EdujiniOnline.com\) Guest

  21. #20

    Default Re: Javascript alert message problem

    Hi,

    Gaurav Vaish ([url]www.EdujiniOnline.com[/url]) wrote:
    >> I am not sure if you're stubborn on purpose, or if you really don't
    >> understand what I say.
    >
    > Should be the second part. :-)
    That's my guess too ;-)

    > btw, still wondering why go for JScript when JavaScript should be just
    > enough... Or again, I'm really not understanding something :D
    JScript is Microsoft's implementation of ECMAScript. You use JScript
    when you program a script which runs in Internet Explorer.

    JavaScript is Microsoft's implementation of ECMAScript. You use
    JavaScript when you program a script which runs in Mozilla-based
    browsers (Firefox, Netscape, Mozilla...).

    If you program only JavaScript, but no JScript, it's the same as saying
    that you want to program only in Mozilla-based browsers, and
    deliberately ignore IE.

    What I am saying is that it's easy enough to have good script working in
    both browsers. So I don't see the need to ignore IE.

    HTH,
    Laurent
    --
    Laurent Bugnion, GalaSoft
    Software engineering: [url]http://www.galasoft-LB.ch[/url]
    PhotoAlbum: [url]http://www.galasoft-LB.ch/pictures[/url]
    Support children in Calcutta: [url]http://www.calcutta-espoir.ch[/url]
    Laurent Bugnion Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139