how to pop up a Modeless Dialog only when some conditions are reached?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • ywchan

    how to pop up a Modeless Dialog only when some conditions are reached?

    I have implemnt a onBlur event of a text input.

    In the event, a window with all records which related to the text
    input will be shown.
    However, I don't want to pop up the window in case there is no records
    that matching the text input.

    Any idea ?
    Thanks
  • HikksNotAtHome

    #2
    Re: how to pop up a Modeless Dialog only when some conditions are reached?

    In article <491b9cce.03080 30227.4da7973@p osting.google.c om>, ywchan@hkem.com
    (ywchan) writes:
    [color=blue]
    >I have implemnt a onBlur event of a text input.[/color]

    Use the onchange instead. If I go to the field, change it, leave, see the popup
    and then go back to it (either intentionally or by mistake) and don't change
    anything, when I leave, I will get the popup again. Onchange only fires when
    its actually changed.
    [color=blue]
    >In the event, a window with all records which related to the text
    >input will be shown.
    >However, I don't want to pop up the window in case there is no records
    >that matching the text input.[/color]

    Where are you having to check for "records"? In a js array, or on the server?
    [color=blue]
    >Any idea ?[/color]

    Yeah, lots of ideas.
    [color=blue]
    >Thanks[/color]

    Welcome.
    --
    Randy
    All code posted is dependent upon the viewing browser
    supporting the methods called, and Javascript being enabled.

    Comment

    • ywchan

      #3
      Re: how to pop up a Modeless Dialog only when some conditions are reached?

      hikksnotathome@ aol.com (HikksNotAtHome ) wrote in message news:<200308031 84651.25815.000 01918@mb-m07.aol.com>...[color=blue]
      > In article <491b9cce.03080 30227.4da7973@p osting.google.c om>, ywchan@hkem.com
      > (ywchan) writes:
      >[color=green]
      > >I have implemnt a onBlur event of a text input.[/color]
      >
      > Use the onchange instead. If I go to the field, change it, leave, see the popup
      > and then go back to it (either intentionally or by mistake) and don't change
      > anything, when I leave, I will get the popup again. Onchange only fires when
      > its actually changed.
      >[color=green]
      > >In the event, a window with all records which related to the text
      > >input will be shown.
      > >However, I don't want to pop up the window in case there is no records
      > >that matching the text input.[/color]
      >
      > Where are you having to check for "records"? In a js array, or on the server?
      >[color=green]
      > >Any idea ?[/color]
      >
      > Yeah, lots of ideas.
      >[color=green]
      > >Thanks[/color]
      >
      > Welcome.[/color]

      Actually, I will use the value input by user and check whether there
      are records exist in database(using vb script).
      I would like to know how to pop up a window only when certain
      conditions are satisified.
      Can I get the value input by user and immediately use in vb script for
      checking?
      Thanks

      Comment

      Working...