Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Javascript Error

Javascript Error

Scheduled Pinned Locked Moved ASP.NET
helpjavascriptsysadmintoolsquestion
2 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    danasegaranea
    wrote on last edited by
    #1

    Hi all, I am using this code to open a new window on the lostfocus of a text box

    <input class="SaveHistory" onkeypress="window.event.returnValue = BacoValidateDate(window.event.keycode)"
    id="txtStartdate" onkeydown="SelectStartDate_keydown" onBlur="SelectStartDate_Blur"
    title="F2 - Calendar" type="text" maxLength="10" onchange="window.InvalidFlag_StartDate.innerHTML=Empty"
    size="10" name="txtStartdate" runat="server"><font size="1"> (<%= strDateStringValue%>)</font>
    <script language="VBS">

    And

    <script language="VBS">
    Sub SelectStartDate_clicked
    Dim curDate, calurl, d, curDate2
    curDate = Baco.txtStartDate.Value
    calUrl = "..\..\Calendar.asp"
    If Len(curDate) > 0 Then calUrl = calUrl & "?Date=" & curDate
    d = window.showModalDialog(calUrl, ,"dialogHeight:320px;dialogwidth:315px")
    If Not IsEmpty(d) Then
    Baco.txtStartDate.Value = d
    InvalidFlag_StartDate.innerHTML = Empty
    End If
    End Sub
    Sub SelectStartDate_keydown
    If window.event.keycode=113 Then
    SelectStartDate_clicked
    window.event.returnValue = False
    End If
    End Sub
    Sub SelectStartDate_Blur
    If <%=Request.QueryString("Action")%> = 4 Then
    window.location="Mypage.aspx?Res_Id=<%=Request.QueryString("Res_Id")%>&Cycle=" & Baco.txtCycle.value & "&SchCode=<%=Request.QueryString("SchCode")%>&Action=4&StartDate=" & Baco.txtStartDate.Value & "&sCode=" & Baco.txtSchcode.value
    'Window.location="solWorkSchedule.aspx"
    'window.alert("hai")
    End If
    End Sub
    </script>

    But I getting the javascript error msg as "Object Doesnot support this method in the blur event". Can some one help Dana

    D 1 Reply Last reply
    0
    • D danasegaranea

      Hi all, I am using this code to open a new window on the lostfocus of a text box

      <input class="SaveHistory" onkeypress="window.event.returnValue = BacoValidateDate(window.event.keycode)"
      id="txtStartdate" onkeydown="SelectStartDate_keydown" onBlur="SelectStartDate_Blur"
      title="F2 - Calendar" type="text" maxLength="10" onchange="window.InvalidFlag_StartDate.innerHTML=Empty"
      size="10" name="txtStartdate" runat="server"><font size="1"> (<%= strDateStringValue%>)</font>
      <script language="VBS">

      And

      <script language="VBS">
      Sub SelectStartDate_clicked
      Dim curDate, calurl, d, curDate2
      curDate = Baco.txtStartDate.Value
      calUrl = "..\..\Calendar.asp"
      If Len(curDate) > 0 Then calUrl = calUrl & "?Date=" & curDate
      d = window.showModalDialog(calUrl, ,"dialogHeight:320px;dialogwidth:315px")
      If Not IsEmpty(d) Then
      Baco.txtStartDate.Value = d
      InvalidFlag_StartDate.innerHTML = Empty
      End If
      End Sub
      Sub SelectStartDate_keydown
      If window.event.keycode=113 Then
      SelectStartDate_clicked
      window.event.returnValue = False
      End If
      End Sub
      Sub SelectStartDate_Blur
      If <%=Request.QueryString("Action")%> = 4 Then
      window.location="Mypage.aspx?Res_Id=<%=Request.QueryString("Res_Id")%>&Cycle=" & Baco.txtCycle.value & "&SchCode=<%=Request.QueryString("SchCode")%>&Action=4&StartDate=" & Baco.txtStartDate.Value & "&sCode=" & Baco.txtSchcode.value
      'Window.location="solWorkSchedule.aspx"
      'window.alert("hai")
      End If
      End Sub
      </script>

      But I getting the javascript error msg as "Object Doesnot support this method in the blur event". Can some one help Dana

      D Offline
      D Offline
      danasegaranea
      wrote on last edited by
      #2

      No Problem I have solved it. I have placed some Javascript codings in the Head Part Of the HTML. I removed it to the Bottom of the page(though it should not be done) Dana

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups