How can I check the SQL syntax in a .sql file?
How can I check the SQL syntax in a .sql file? ...
How can I check the SQL syntax in a .sql file? ...
How can I do form validation with jQuery to allow a green check mark if a field passes a regex and a red x if it fails? Can anyone point me to an example of some jQuery that shows one icon immediately if a field validates and a different one if it fails? ...
Usually validation message appears right to input field: http://aralbalkan.com/wp-content/uploads/2008/01/better-flex-validation-errors.gif But if there is not enough space to right, the message appears above. How to make it always appear above? (regardless of free space etc.) UPDATE It would be great if I could leverage Flex built-i...
I've got a routine that converts a file into a different format and saves it. The original datafiles were numbered, but my routine gives the output a filename based on an internal name found in the original. I tried to batch-run it on a whole directory, and it worked fine until I hit one file whose internal name had a slash in it. Oop...
Hi everyone! I have to parse a XML configuration file. I decided to do the basic validation with XMLSchema to avoid massive amounts of boilerplate code for validation. Since the parsing class should work for itself i was wondering: "How can i validate the incoming XML file with XMLSchema without having the XMLSchema stored on disc where...
First Item I Want to validate a field to make sure it is unique (in the last 6 months) before saving it to the database. I am thinking I should use validates_uniqueness_of :field, case_sensitive => false, Scope => ... For my application it only has to be unique if, it was used <6 months ago. Thinking to compare it to created_at, but d...
The Windows Hosts file allows you to associate an IP to a host name that has far greater freedom than a normal Internet domain name. I'd like to create a function that determines if a given name would be a valid "host" file domain name. Based on this answer and experimentation of what works and doesn't, I came up with this function: pr...
On an ASP.NET MVC View, I have a couple of checkboxes, one for email address and one for phone. I want to make sure that at least one is checked (both can be checked, so a radio button is not ideal) and if neither are, highlight the row with a red border just like a textbox is with the validation functionality... I have other fields th...
problem i have is that, the validation summary message(alert) is displayed twice. I cannot figure out the reason. Please help. Here is the code function validate() //javascript function { if (typeof(Page_ClientValidate) == 'function') { var isPageValid = Page_ClientValidate(); if(isPageValid) { ...
Is it possible to turn off the Request.Form validation on a per control basis? The problem is that IE 6 and IE 7 puts the content of the <button> tag into the name attribute, thus resulting in html code in the attribute which makes asp.net server shout out loud. Notice, this only happens in IE 6 and 7 because of their erroneous interpre...
I've created a method for jquery's validator plugin, that works like the remote rule. The difference is that I'd like to display a dynamic error message (based on the ajax response). jQuery.validator.addMethod("duplicate", function(value, element, params) { var object_settings = this.settings; params.data[$(element).attr("name...
I'm just getting started with jQuery, and one of the things I want to do is build a slicker ValidationSummary for WebForms. I envision something like StackOverflow's notification system, where when you log in after awhile an area at the top of the screen animates down and maybe lets you know that you've got a new badge. If you click the...
I have an AJAX Application that I have been working on. At this point in the development - I have a modalpopupextender with a warning message and an OK and Cancel button. I have just been tasked with changing this to be three checkboxes and having the OK button disabled until all three boxes have been checked. I'm having a difficult t...
Hi I'm validating allot of fields now in PHP, and I have to preform basic (string length ect.) and more complex (strip <> tags, for example) Can anyone recommend a class that does this, or maybe a framework, or maybe some functions that do these things? ...
I have a mostly desktop programming background. In my spare time I dabble in web development, page faulting my way from problem to solution with some success. I have reached the point were I need to allow site logins and collect some data from a community of users (that is the plan anyway). So, I realize there is a whole world of nefa...
I've read a number of articles now in regard to validation and asp.net mvc and the majority tend to point to validation in the model. The problem I see with all of them is that they don't handle different scenarios, or at least, they don't show how they would be achieved e.g. When creating or updating a user account the email address mu...
Hi, i continue with a MVC Web App, and now im between the concepts of DRY (dont repeat yourself) and decoupling (be independent), the question is i divided my big Web Site in diferent projects within a Solution, and as you may already now in MVC the Validations are done in the Model or Service Layer, that in my case its in a diferent pr...
Is it possible to validate iFrames in xhtml 1.0 strict? Preferably without any use of javascript to inject the iframe into the page. I know there is no point in validating just for the sake of validation, but lets just say that I like the green validation message on w3c ;) (I am forced by factors beyond my control to use iframes) Or ma...
I'm looking into ways of formally specifying format for various binary streams and using a tool to check streams for compliance with specification. Something like XSD+any of validation tools for XML. Or like extremely complicate grep expression working on a binary level (preferably not - that would really be hard to read). Does anybody ...
I'm using ASP.NET CompareValidator controls to do data type checks. Should I trust these controls enough to directly parse their values or should I use TryParse? Example: <asp:TextBox ID="uxVolume" runat="server" /> <asp:CompareValidator ID="uxVolumeDataTypeValidator" runat="server" ControlToValidate="uxVolume" ErrorMessage="Volum...