Gridview onblur event

Hi,
I am having Two gridview ..Parent and child grid.
In Parent gridview, there is a link button called click here  when user clicks on it another gridview opens up.In child gridview there is  footer with textboxes.
So i want to catch if user have written one textbox data they will click on outside the child grid.I want message to display "you are leaving page do u want to continue or not".i know in textbox there is onblur event.but if i tab for another textbox
 first textbox onblur event message will pop up.So i need to catch on mouse over or child gridviewrow i need to raise some event.
Please suggest.
priyanka

Maybe, you should be posting to the ASP.NET forum that deals with Gridview's Onblur().
http://forums.asp.net/

Similar Messages

  • Onblur event issue

    Hi, I'm trying to get this to work in both IE & Firefox.
    The code for the script and body tags are attached below. Inside
    the swf there is an onEnterFrame that monitors the variable
    pauseFlash that will pause the movie when the html page sets this
    to true. This works fine. The wmode property is set to opaque
    because I have my flash pieces encompassed in draggable divs,
    leaving the wmode property out causes the divs to appear behind any
    other flash piece with this proptery left out.
    The problem is with the onblur event. It is not functioning
    as I'd expect or like it to. What I want is for the flash movie to
    play regardless of anywhere you click on the page, including if you
    click on other flash pieces on the page. When you click on a
    different window then I want the flash movie to become paused.
    Likewise, if you first click on a flash piece, then click on a
    different window, I also want the flash movie to become paused, not
    only just when you click on the page and then click on a different
    window.
    I have been struggling with this for quite some time and have
    not been able to come up with a workable solution that fits my
    needs. Any help would be greatly appreciated

    Actually this is a Javascript question, not JSP/JSTL, and you should post it to an appropriate forum.
    But anyway, besides that there's a upper/lower case mistake, it could be probably the fact that the js file has some errors in it and the function isn't defined because of this.

  • How to fire an onblur event for htmlb:inputfield ?

    Hi All,
    I have a problem in creating in ONBLUR..for input field.
    What i want is when i give input to the input it goes to DB and retriving some data  and visible to next Dropdown.
    For this if i give input to input field and press any key then it will goes to db and getting data.
    I am stricking over here .
    Please guide me for this.
    Thanks
    Nageswara.

    so what you need is a javscript function to get triggered onblur event and it should generate server event.
    check out the following code sample.
    <htmlb:inputField id         = "test"
                            alignment  = "LEFT"
                            size       = "10"
                            type       = "STRING" />
          <bsp:htmlbEvent id      = "myid"
                          onClick = "myonclick"
                          name    = "ValueChanged" />
            <script for="test" event=onblur type="text/javascript">
          ValueChanged();
          </SCRIPT>
    Regards
    Raja

  • Lanch a process from  an onblur event

    Hello ;
    how can i lanch a process that init my form items by the result of a query
    this process should be lanched by an Javscript event on a textbox Item (onblur for example)
    Thankyou

    Alos my Javascript function is
    function GetUserData(pValue){
    var get = new htmldb_Get(null,html_GetElement('pFlowId').value,'APPLICATION_PROCESS=datauser',1);
    if(pValue)
    get.add('P1_MATRICULE',pValue)
    else
    get.add('P1_MATRICULE',html_GetElement('P1_MATRICULE').value)
    gReturn = get.get('XML');
    if(gReturn){
    var l_Count = gReturn.getElementsByTagName("item").length;
    for(var i = 0;i<l_Count;i++){
    var l_Opt_Xml = gReturn.getElementsByTagName("item");
    var l_ID = l_Opt_Xml.getAttribute('id');
    var l_El = html_GetElement(l_ID);     
    if(l_Opt_Xml.firstChild){
    var l_Value = l_Opt_Xml.firstChild.nodeValue;
    }else{
    var l_Value = '';
    if(l_El){
    if(l_El.tagName == 'INPUT'){
    l_El.value = l_Value;
    }else if(l_El.tagName == 'SPAN' && l_El.className == 'grabber'){
    l_El.parentNode.innerHTML = l_Value;
    l_El.parentNode.id = l_ID;
    }else{
    l_El.innerHTML = l_Value;
    get = null;

  • How to return a specific date/time range and last event details, when checking the event log via command prompt

    I am new to scripting (literally started reading/learning scripting a few hours ago), and I am stuck in trying to get my current script/command to filter a specific date range.
    * Note: I am working with Server 2003 and 2008; because of the environment I am in, a lot of scripts (such as Powershell and VBScript) don't work; trying to stick with command line, as it appears to be the only thing that functions correctly in my environment
    I am trying to search the System log in event viewer, for the most recent server reboot. Here is the command that I am currently running:
    ===========================================================
    C:\Windows\System32\cscript C:\Windows\System32\eventquery.vbs /L System /FI "id eq 1074"
    ===========================================================
    When run, the output looks like this:
    ===========================================================
    Microsoft (R) Windows Script Host Version 5.6
    Copyright (C) Microsoft Corporation 1996-2001. All rights reserved
    Listing the events in 'system' log of host 'xxxxxxxxxxxxxxx'
    Type Event
    Date Time    Source
    Information 1074
    12/18/2013 2:48:06 AM    USER32
    Information 1074
    11/20/2013 3:25:04 AM    USER32
    Information 1074
    10/23/2013 2:06:09 AM    USER32
    ===========================================================
    What I would like it to do is only show events that have happened in the last seven days, as well as show the event details if it does find an event that matches the criteria.
    Any help would be greatly appreciated. Thanks!
    Nick

    I would prefer using Powershell , you can use below code 
    function Get-EventViewer
    param(
    [string[]]$ComputerName = $ENV:COMPUTERNAME,[string]$LogName,[int]$eventid
    $Object =@()
    foreach ($Computer in $ComputerName)
    $ApplicationEvents = get-eventlog -logname $LogName -cn $computer -after (Get-Date).AddDays(-7) | ?{$_.eventid -eq "$eventid" }
    foreach ($event in $ApplicationEvents) {
    $Object += New-Object -Type PSObject -Property @{
    ComputerName = $Computer.ToUpper();
    TimeGenerated = $event.TimeGenerated;
    EntryType = $event.EntryType;
    Source = $event.Source;
    Message = $event.Message;
    $column1 = @{expression="ComputerName"; width=12; label="ComputerName"; alignment="left"}
    $column2 = @{expression="TimeGenerated"; width=22; label="TimeGenerated"; alignment="left"}
    $column3 = @{expression="EntryType"; width=10; label="EntryType"; alignment="left"}
    $column4 = @{expression="Source"; width=15; label="Source"; alignment="left"}
    $column5 = @{expression="Message"; width=100; label="Message"; alignment="left"}
    $Object|format-table $column1, $column2, $column3 ,$column4 ,$column5
    $Object.GetEnumerator() | Out-GridView -Title "Event Viewer"
    You can do a function call like
    Get-EventViewer -LogName system -ComputerName "computername" -eventid "2017"

  • Real focusOut event of the extension?

    Hi,
    Application: InDesign CC 2014 10.1.0.70 x64
    I ran into another problem. A main part of my Flex-Extension was the onFocusOut-Event, which I used to save the data the user entered.
    I want to receive an event when the user leaves the extension by clicking back to his opened document.
    Previously (in flex) I could use the com.adobe.csxs.events.StateChangeEvent.WINDOW_LOSE_FOCUS but it seems there is no event that mimics the old one I used.
    In my HTML file I have:
    <body onblur="onFocusOut()" onfocusout="onFocusOut()">
    In my JS file:
    function onFocusOut()
      alert("Focus out!");
    onfocusout is never fired and blur gets fired way too often for my usecase. It gets fired when I click around in the extension panel background, etc.
    Am I missing something?
    Thanks!

    Hi lesavage,
    as described above, the onBlur event is probably not the right event for me, as it:
    does get fired when I click somewhere in the background of my extension window
    does get fired when I click on a button in my extension window
    does get fired when I try to select text within my extension window
    does get fired when the extension is minimized
    does not get fired when I have been clicking around in my extension window and then click back into the actual document (this is what I need)
    Please note that I set up the onblur event on my <body> html element.
    Any suggestions?
    Thanks!

  • Spry validation onblur

    Hello, is it possible to use onblur in a spry validation text field? I want to use spry to validate text field input to be required and 4 to 32 chars long but i want on blur to make ajax request to check if the username is available (this is for registration form). However if i use onblur="check_username(this.value)" it does not trigger the onblur event at all.

    Strange this does not work correct. I even tried with the click event to be sure. Below is my code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title></title>
    <link rel="stylesheet" type="text/css" href="style.css" />
    </head><script src="../SpryAssets/SpryValidationTextField.js" type="text/javascript"></script>
    <link href="../SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css">
    <body>
    <form method="post">
         <table border="0" cellpadding="0" cellspacing="0" width="100%" class="cool-table">
              <tr>
                   <td>Username:</td>
                   <td><span id="sprytextfield1">
                   <input type="text" name="username" id="username" />
                   <br><span class="textfieldRequiredMsg">A value is required.</span><span class="textfieldMinCharsMsg">4 characters minimum.</span><span class="textfieldMaxCharsMsg">32 characters maximum.</span></span></td>
              </tr>
              <tr>
                   <td colspan="2" align="center"><input type="submit" value="Login" /></td>
              </tr>
         </table>
    </form>
    <script type="text/javascript">
    <!--
    function check_username() {
         alert(document.getElementById('username').value);
    var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1", "none", {minChars:4, maxChars:32});
    Spry.Widget.Utils.addEventListener("username", "click", check_username(), false);
    //-->
    </script>
    </body>
    </html>
    When i load the page in browser with this code it displays alert box with empty message (because username value is empty) immediately after page load, and never displays a thing when i click the text field.
    If i use
    Spry.Widget.Utils.addEventListener("username", "click", check_username, false);
    without parentheses after the handler function name it does absolutely nothing on click too. Any idea?
    I even noticed error in Adobe documnet located at http://labs.adobe.com/technologies/spry/articles/data_api/apis/utils.html#addeventlistener
    In the example it says
    <script type="text/javascript>
    But must be
    <script type="text/javascript">

  • Showing/Hiding annotation with onFocus/onBlur

    Hi-
    I'm having trouble using the onBlur and onFocus events in the same form field.
    I have an annotation that has these props when the document loads: What hidden=true and popupOpen=false
    On a form field, I've attached the following script to the onFocus event:
    var annot = this.getAnnot(0,'phoneTip');
    annot.setProps({
        hidden:false,
        popupOpen:true
    This works fine when I don't have an onBlur event. (The annotation shows up when cursor enters field)...
    BUT, when I add the following script to the onBlur event, the annotation disappears and doesn't come back onFocus:
    var annot = this.getAnnot(0,'phoneTip');
    annot.setProps({
        hidden:true,
        popupOpen:false
    What seems to be happening is the OnBlur event is firing right after the onFocus. When I dump the annot props above the set method in onBlur, I do see the correct values (hidden=false, popupOpen=true).. Maybe when I show the annotation, the annotation itself gets focus, and therefore the field loses focus and the onBlur event fires?)
    Does anyone know a workaround for this? Maybe a way to maintain focus on the form field?
    Thanks

    Hi-
    @GK - Thanks for the reply. Not sure I understand what you mean tho.
    Fwiw, this doesn't seem to be a propblem if you don't use an annotation with a popup window (which steals the focus from the form field, causing the field.onBlur event to fire). So, if anyone else runs into this issue, try using 'FreeText' type...

  • Does mm:treecontrol tag support focus event in Dreamweaver CS4

    Hi
    The mm:treecontrol tag support onfocus and onblur events well in Dreamweaver CS3. But it doesn't work in Dreamweaver CS4.
    Does CS4 support it?
    Thanks
    Simon

    Hi PZ,
    Thank you for your useful solution.
    I want to respond some keyboard events(Delete, Enter) for the tree in my floater panel. But some keys have been used by Dreamweaver.
    If I write my shortcuts into Menus.xml, it will override Dreamweaver's responses.
    Do you have any suggestions for this conflict?
    Best Regards
    Simon

  • Safari OnBlur issue

    Hi, I have a web application which has 2 input fields and a button. I'm doing the validation on the Onblur event and if the validation fails set the focus to the same field. If the user enters some invalid data and click the button the validation message triggers and the focus is also set to the field, but also the button click event also triggers. I don't want the button click to be triggered if the validation fails. Please help me to resolve the issue. I'm using MAC 10.6 and Safari 4.0. Below is the code which I'm using.
    <script type="text/javascript" language="JavaScript">
    function ButtonClick()
    alert("Hello from button");
    function function1()
    objDate = document.getElementById("txt1");
    if (objDate.value != '')
    if (objDate.value != 'Hai')
    alert("Please enter 'Hai' in txt1" );
    txt1.focus();
    return false;
    return true;
    </script>
    <form><input name="txt1" type="text" id="txt1" style="width:195px; size:11px; font:Tahoma, Arial, Helvetica, Verdana, Sans-Serif; ">
    <input name="txt2" type="text" id="txt2" style="width:195px; size=11px; font:Tahoma, Arial, Helvetica, Verdana, Sans-Serif; ">
    <input name="btn1" type="button" id="btn1" value="Button1">
    </form>

    The JavaScript attached has some code missing. Corrected the code... Please help me to resolve this issue. <script type="text/javascript" language="JavaScript">
    function ButtonClick()
    alert("Hello from button");
    function function1()
    objDate = document.getElementById("txt1");
    if (objDate.value != '')
    if (objDate.value != 'Hai')
    alert("Please enter 'Hai' in txt1" );
    txt1.focus();
    return false;
    return true;
    </script>
    <form><input name="txt1" type="text" id="txt1">
    <input name="txt2" type="text" id="txt2">
    <input name="btn1" type="button" id="btn1" value="Button1">
    </form>

  • OnBlur and cancel

    Hi,
    I have a form that uses calls an onBlur function to validate a text box.
    If the user enters invalid data in the text box and then presses Cancel, the onBlur function is still called and the user is required to enter valid data before choosing cancel.
    Is there a way around this, am I missing something basic?
    Thanks in advance,
    VB

    Theres no way to by pass an onblur event in a text box in HTML. the onBlur event fires when you leave the control(text box). and when you hit the cancel button you leave the focus of the textbox, what you can do is put your validation control in the onSubmit envent of the form, that will be fired when the form submits.
    Hope it helps
    Julian
    Hi,
    I have a form that uses calls an onBlur function to
    validate a text box.
    If the user enters invalid data in the text box and
    then presses Cancel, the onBlur function is still
    called and the user is required to enter valid data
    before choosing cancel.
    Is there a way around this, am I missing something
    basic?
    Thanks in advance,
    VB

  • Onblur action

    Hi folks,
      Is there any event except onEnter for TextView UI? I am interested in onblur event. Is there any way to use JavaScript in WD? Thanks in advance.
       Alex

    Hi Sridhar,
       Thanks, yes, I thought that it doesn't exist I just wanted to check out with someone more experienced than me.
      Regards,
    Aleksandar

  • Onblur Code validation with DataBase

    i have a one text field for UserName.
    when a user enter the name, OnBlur i am checking with the DataBase the Name Already existing or Not......
    i Think this is Not a Good way to do This......
    Plz give Some other idea......

    hi, if i get you right, you want to do this control in same page without any redirect.
    my idea : put a iframe in html and onblur event will trigger iframe page which checks username with db. then you can alert that your message.

  • How to pause stage/swf with audio when a new tab is opened/ out of focus in browser

    I have created a container in Flash Professional CS5 for my project’s CBT.  I’ve been able to script many of the features we require using AS3, but there are a couple of things I’m still trying to work out.
    I would like the swf presently playing in one tab to pause and go silent when another swf is opened in a new tab (the sound is inside this externally loaded swf which is loaded inside a movie clip from buttons nested a movie clip down).  I’ve tried :
    var originalFrameRate:uint = stage.frameRate;
    var standbyFrameRate:uint = 0;
    addEventListener(Event.ACTIVATE, onActivate);
    addEventListener(Event.DEACTIVATE, onDeactivate);
    function onActivate(e:Event):void
           stage.frameRate = originalFrameRate;
           trace("in focus");
    function onDeactivate(e:Event):void
           stage.frameRate = standbyFrameRate;
           SoundMixer.stopAll();
           trace("out of focus");
    And
          I’ve looked into the HTML tag “has Priority”
    and coded buttons to:
    function fl_ClickToGoToWebPage(event:MouseEvent):void
           navigateToURL(new URLRequest("http://www.ansaldo-sts.com/AnsaldoSTS/EN/index.sdo"), "_blank");
           MovieClip(this.stage).stop();
    With variations of:
    MovieClip(this.parent.parent)stop();
    MovieClip(this.parent.parent.parent.parent)stop(); because the button is 3 movie clips deep.
    MovieClip(this.root)stop();      MovieClip(root)stop();MovieClip(this.currentTarget.root)stop();
    Could someone please provide me with the code?
    This function is present when I publish the CBT with Captivate, so obviously there must be code available. You can set the Captivate button to open url in new window and pause movie.
    Is there something I can add to the html file that is similar to the “has Priority” for mobile devices or is there javascript that can be added to the flash itself?

    You would send a command to Flash from JavaScript when window.onblur event occurs.

  • Multiple Users sharing one Table

    Hi Folks,
    I'm a newbie with Apex so please treat gently ;-)
    Simple "order entry" application: a table for Orders and another table for Order Items. All pretty run of the mill so far,
    but instead of one end user (say the vendor company's telephone operator) typing in orders over the telephone for
    several customers, consider opening the application to the several customers so that they can type their own orders
    themselves.
    The collection of Customers isn't that large (say about 12 or so), hence I'm thinking of just giving them distinct Apex logins
    to the application.
    I can pickup the login name from APP_USER, but how to copy this in behind the scenes to "customerID" in the Orders
    table - the "customerID" field does represent a column in a database table, but I want to force it to the Apex login name
    for whatever customer that is attempting to insert a new order.
    All the Apex demo stuff shows simple order-items solutions; I'm trying to have a single Orders table with a column in it that tells
    me which customer sent in this order, and for the customers using this table to only see their own orders from the same table.
    If I was implementing this on the database I would use some sort of View such as "select * from orders where customer = user",
    therefore every user would only see their bit of the orders table.
    But how to implement this in Apex?
    Suggestions and comments gratefully welcomed,
    Thanks in advance
    Mungo Henning

    user515989 wrote:
    I'm a Forms developer, and Apex looks intriguing yet formidably intractable. Where are the triggers for
    pushbuttons - I can easily create a button but there's no obvious "create trigger" bit to accompany it.
    I guess I'm lacking understanding the gut essence of Apex; I've had a look at a few tutorial and the stuff
    I've read so far falls far short of acceptability - the manuals have one or two sentences of "aims" at
    the start of a section followed by fifty-point lists of "do this, do that" instructions then they round it
    off with an audaciously arrogant section at the end along the lines of "Now you know how to do XYZ".
    What this lacks is the "essence" of the task - I have to reverse engineer each blooming step to try and
    understand what it is meant to achieve.
    Have I missed any damn good tutorials out there - there must be some (except those boring Youtube
    videos where we watch someone perform the fifty-step routines again without explaining the essence).
    Can you tell that I'm frustrated by a lack of documentation; I risk losing your kind support in my early
    foray into Apex (help a drowning man please :-)
    Thanks again in advance
    Mungo :-)Its important to remember that Apex is nothing other than a framework for creating HTML and running web pages. So what used to be triggers are now standard javascript events. Although you will find help on the forum for javascript and maybe some in the documentation, javascript events are standard and not proprietary like Forms triggers were. Its frustrating, but there are a TON of resources (google) on the basics of javascript. For instance instead of when-validate-trigger, you'll probably look at the onblur event to trigger a piece of javascript code to run your validation. You can use onfocus which would be sort of like when-new-item-instance in Forms-speak.

Maybe you are looking for