Okay Thx dude:-D i@@
i
Posts
-
saving data -
saving dataWhy i keep saving a blank data to the database... but my textbox actually contains something i@@
-
questions time in javascript...var aryTimeAS = new Array(); var aryTimeAE = new Array(); var strTimeAS = new String(""); var strTimeAE = new String(""); var intASHours = new Number(0); var intASMinutes = new Number(0); var intAEHours = new Number(0); var intAEMinutes = new Number(0); var i = new Number(0); var dtmAE; var dtmAS; var intNumOfSeconds = new Number(0); var intNumberOfHours = new Number(0); var intSeconds = new Number(0); strTimeAS = ChangeManagement.txtActStartTime.value; strTimeAE = ChangeManagement.txtActEndTime.value; aryTimeAS = strTimeAS.split(":"); aryTimeAE = strTimeAE.split(":"); intASHours = aryTimeAS[0]; intASMinutes = aryTimeAS[1]; intAEHours = aryTimeAE[0]; intAEMinutes = aryTimeAE[1]; dtmAS = new Date(); dtmAS.setHours(intASHours); dtmAS.setMinutes(intASMinutes); dtmAE = new Date(); dtmAE.setHours(intAEHours); dtmAE.setMinutes(intAEMinutes); intNumSeconds = dtmAE.getTime() - dtmAS.getTime(); intSeconds = 60 * 60 * 1000; i=Math.floor((intNumSeconds / intSeconds)*100); intNumOfHours = i/100; window.alert(intNumOfHours); ChangeManagement.txtActHr.value = intNumOfHours; window.event.returnValue = false; dude i have recoded but it still wont works... do u have any other way of achieving the same thing... thanks for your time... i@@
-
questions time in javascript...i have a bug and i dont know where it is... it is like i click on the button den the javascript is not responding to the button... And i am not sure is my code working a not... all i want to do is to count the different between 2 time; like end time is 03:00 start time is 02:00 so the different is 1hr... And thats what i wanna achieve... so can any kind souls help me debug pls... var aryTimeAs = new Array(); var aryTimeAE = new Array(); var strTimeAS = new String(""); var strTimeAE = new String(""); var intASHours = new Number(0); var intASMinutes = new Number(0); var intASSeconds = new Number(0); var intAEHours = new Number(0); var intAEMinutes = new Number(0); var intAESeconds = new Number(0); var i = new Number(0); var dtmAE; var dtmAS; var intNumOfSeconds = new Number(0); var intNumberOfHours = new Number(0); var intSeconds = new Number(0); strTimeAS = ChangeManagement.txtActStartTime.value; strTimeAE = ChangeManagement.txtActEndTime.value; aryTimeAS = strTimeAS.split(":"); aryTimeAE = strTimeAE.split(":"); intASHours = aryTimeAS[0]; intASHours = aryTimeAS[1]; intAEHours = aryTimeAE[0]; intAEHours = aryTimeAE[1]; dtmAS = new Date(); dtmAS.setHours(intASHours); dtmAS.setMinutes(intASMinutes); dtmAS.setSeconds(intASSeconds); dtmAE = new Date(); dtmAE.setHours(intAEHours); dtmAE.setMinutes(intAEMinutes); dtmAE.setSeconds(intAESeconds); intNumSeconds = dtmAE.getTime() - dtmAS.getTime(); intSeconds = 60 * 60 * 1000; i=Math.floor((intNumSeconds / intSeconds)*100); intNumOfHours = i/100; windows.alert(intNumOfHours); ChangeManagement.txtActHr.value = intNumOfHours; windows.event.returnValue = false; Thanks for helping and viewing i@@
-
posting to webhw can i post my asp website onto the net... i diuj have any idea i@@
-
uploading n downloading filesCan I upload n download files into database using asp? can anyone post the smaple code here... thanks alot... i@@
-
uploading n downloading filesCan I upload n download files into database using asp? can anyone post the smaple code here... thanks alot...
-
Problem with populating datagridthx dude thx for ur help... u save me...:cool::cool::cool:
-
highlight on link when move overI think they use a web developer program(like marcomedia dreamweaver or microsoft frontpage) to achieve the effects and is easier to achieve with it...:):):) i@@
-
Problem with populating datagridi dont know why tis application wont works... it keep giving me the first records in the database and populate it twice, when i wanted both 2 different records to appear... if possible help me debug this or give me some comments... thanks in advance... Dim aryTest(2) as integer arytest(0) = 1 arytest(1) = 2 Dim objAdapter As New SqlDataAdapter Dim objDs As New DataSet Dim ojDataRow As DataRow Dim objArrayList As New ArrayList objCMDB = New cCMDB Dim i As Integer For i = 0 To 1 mobjcmd.CommandText = "SELECT Contract_Ref,Equipment_Status, " & _ "Technology_Refresh_Eligibility, Configuration_Item_Description, " & _ "Configuration_Type, Maintenance_Contract, Procurement_Vendor, " & _ "Warrenty_Ends, Warrenty_Period FROM tblCMDB WHERE" & _ "Configuration_Item_ID = "& aryTest(i) & "" mobjcmd.SelectCommand = mobjcmd objAdaptor.Fill(objDs, "tblcCMDBRecords") objDataRow = objDs.Tables("tblcCMDBRecords").Rows(0) objcCMDB.ContractReference = objDataRow.Item("Contract_Ref") objcCMDB.EquipmentStatus = objDataRow.Item("Equipment_Status") objcCMDB.TechnologyRefreshEligibility = objDataRow.Item ("Technology_Refresh_Eligibility") objcCMDB.ConfigurationItemDescription = objDataRow.Item ("Configuration_Item_Description") objcCMDB.ConfigurationType = objDataRow.Item("Configuration_Type") objcCMDB.MaintenanceContract = objDataRow.Item("Maintenance_Contract") objcCMDB.ProcurementVendor = objDataRow.Item("Procurement_Vendor") objcCMDB.WarrentyEnds = objDataRow.Item("Warrenty_Ends") objcCMDB.WarrentyPeriod = objDataRow.Item("Warrenty_Period") objArrayList.Add(objcCMDB) Next MobjCn.Close() Return objArrayList i@@
-
Problem with populating datagridi dont know why tis application wont works... it keep giving me the first records in the database and populate it twice, when i wanted both 2 different records to appear... if possible help me debug this or give me some comments... thanks in advance... Dim aryTest(2) as integer arytest(0) = 1 arytest(1) = 2 Dim objAdapter As New SqlDataAdapter Dim objDs As New DataSet Dim ojDataRow As DataRow Dim objArrayList As New ArrayList objCMDB = New cCMDB Dim i As Integer For i = 0 To 1 mobjcmd.CommandText = "SELECT Contract_Ref,Equipment_Status, " & _ "Technology_Refresh_Eligibility, Configuration_Item_Description, " & _ "Configuration_Type, Maintenance_Contract, Procurement_Vendor, " & _ "Warrenty_Ends, Warrenty_Period FROM tblCMDB WHERE" & _ "Configuration_Item_ID = "& aryTest(i) & "" mobjcmd.SelectCommand = mobjcmd objAdaptor.Fill(objDs, "tblcCMDBRecords") objDataRow = objDs.Tables("tblcCMDBRecords").Rows(0) objcCMDB.ContractReference = objDataRow.Item("Contract_Ref") objcCMDB.EquipmentStatus = objDataRow.Item("Equipment_Status") objcCMDB.TechnologyRefreshEligibility = objDataRow.Item ("Technology_Refresh_Eligibility") objcCMDB.ConfigurationItemDescription = objDataRow.Item ("Configuration_Item_Description") objcCMDB.ConfigurationType = objDataRow.Item("Configuration_Type") objcCMDB.MaintenanceContract = objDataRow.Item("Maintenance_Contract") objcCMDB.ProcurementVendor = objDataRow.Item("Procurement_Vendor") objcCMDB.WarrentyEnds = objDataRow.Item("Warrenty_Ends") objcCMDB.WarrentyPeriod = objDataRow.Item("Warrenty_Period") objArrayList.Add(objcCMDB) Next MobjCn.Close() Return objArrayList i@@