16,004,574 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Caleb McElrath (Top 9 by date)
Caleb McElrath
13-Nov-12 9:34am
View
I should note, I got this from: http://stackoverflow.com/questions/6570352/how-to-clear-textbox-in-javascript-that-contains-value-of-gridview-row-editing
Caleb McElrath
17-Aug-12 10:40am
View
Just a note: There is something to be said for politeness.
Caleb McElrath
17-Aug-12 10:38am
View
my vote of 4: very true! but would be better suited as a comment as this isn't the solution to the OP's question.
Caleb McElrath
6-Aug-12 9:14am
View
Thats interesting, the jsfiddle link I sent you works just fine for me. Like I said before, the uniqueness of a row is obscured when you alter the rowspan of the name (patient) column so you will have to account for that. Also look at the jsfiddle link at the end of the solution. This link works in IE and Chrome.
Caleb McElrath
9-Mar-12 17:26pm
View
Yes, there are things commonly done that seem like they should not be. Do you have an example of the scenario you provided regarding users leaving a company?
Caleb McElrath
9-Mar-12 17:25pm
View
Deleted
Yes, there are things commonly done that seem like they should not be. Do you have an example of the scenario you provided regarding users leaving a company?
Caleb McElrath
8-Mar-12 12:29pm
View
I now saw the update. Is there a good reason not to bind to the Header table instead of the Status table? Bind to the Header table and then bind the selected value as you are currently. Then there is no need to update the combo box if the record contains a status item not in the Status table.
Caleb McElrath
8-Mar-12 12:22pm
View
Just to be clear: You want the combobox to include status items from a status table AND the status item from the corresponding record (only if the record contains a status item not in the status table). Seems like this shouldn't happen. The status column of the record should be associated with the status table. Then, if there needs to be another status, the table will be updated and along with it (since it is data-bound) the combobox will be updated. If this is not the case:
The record's status item will need to be added to the combo box after the combo box contains its items from the status table. So, once the combo box is updated with the items from the status table, add the extra item from the record. You can do this in various ways. Some logic must be in place before adding the extra item to the combobox: make sure the record's status item is not already in the combobox (or in the status table).
Caleb McElrath
8-Mar-12 0:40am
View
I suggest passing a variable to the function like: function (e) { ...event code... } then you can add this: e = e || window.event; It almost guarantees a workable event object. That said, this only works with browsers other than IE: examine the event object to obtain "event.srcElement.activeElement". there you can get the element type such as a link (which would indicate it is a page). Knowing this, you will then be able to cancel the onbeforeunload event.
Show More