I have a registration form which I need to validate before submit. The form has the following fields:name,email, and password. I need the name to have a value, the email to have the correct format, and the password to be at least 6 characters.
What is the best way to do all this validation and hightlight incorrect fields live before sub...
I have a method inside of a MooTools class that I want to access after uploading a file with AJAX (iFrame). The Javascript that the iFrame page runs when it loads should call the method of the Class, but I am unable to access it using anything like:
Class name: Main
var class was initialized in: myMain
parent.window.myMain.myMethod
par...
You know what I mean?
Like let's say we have:
<div style="width:100px;font-size:10px">Some Text</div>
But then we could also possibly have a much longer text string in that div, in that case I would want that div to have font-size:7px or whatever, so that the whole string fits without overflowing.
I'm sure there's already something l...
looking for a javascript class like swfobject to embed java and have a simple fallback if the user doesn't have java or refuses the security prompt.
thanks,
Josh
...
Hello everyone,
I am trying to get the infoWindow to display in just the right place on a Google Maps integration I'm working on (just above the top right/top left corner of an image). Whenever I try to adjust the "infoWindowAnchor" it doesn't seem to be working? However, the "iconAnchor" seems to be working as expected. I am wondering ...
In Google Analytics there is one option to know the connection information about the client access. I think everyone knows about this, but my question is how the Javascript knows these details?
Am not talking about the IP or http/https
suppose am using TATA Indicom, or cable connection for the use of Internet.
how google know about thi...
I have recently made the switch from HTML to XHTML... don't get me started on the "why" - let's just say it wasn't an option. Anyhoo...
This function worked fine in IE and FF when I was HTML, but now with XHTML I get the following error in FF:
heightElement is undefined
now here is the statement where I define heightElement
functio...
Does anyone know how to make a method within jQuery Validation Tool to require an exact text string? (upper/lowercase doesn't matter)
Also where does the method actually get placed?
-Brad
...
I'm working on a plugin that, when TinyMCE is in use as the Visual editor, uses TinyMCE commands to insert text into body content editing area. Currently, it works by just running the command. If it works, then TinyMCE is active and if not, then I have custom JS for working with the HTML editor.
My question, however: is there any way to...
I'm working with an old intranet site written in classic ASP. I'm trying to retrieve their username they logged into their machine with. Each user is logged into AD, but I can't retrieve it from the server since the intranet site does not use AD.
I was told I could use ActiveX in order to retrieve it. I did some research and I found ...
In JavaScript/JQuery I want to get all the text that is seen between some other text. For example, if the HTML document had:
<b class="blah">Blah: Some Text 1</b>
<div id="foo"><b class="blah">Blah: Some Text 2</b>
I'd like to get an array that has 'Some Text 1' and 'Some Text 2' since they are both in between '<b class="blah">Blah: ...
I'm generating a table of content in an ASP.NET page and I want to add client side OnClick actions to each cell (the action should be to set the value of a named TextBox control to the text in the clicked cell). If I could directly add stuff to the HTML output, I think I could do this with a single line of JavaScript in each cell.
Given...
Beside the official JQuery web site, what are some of the best online directories (listings) for JQuery plugins? There are some plugins I never knew existed so I wanted some resources, hopefully with RSS feeds, which notify me of new cool JQuery plugins.
...
I am having quite a hard time trying to find some answers with this particular dialog box action. The problem is when the user presses the "enter" (keyCode = 13) button, the dialog closes...as if the 'esc' key was pressed. I want to keep the dialog box open even when "enter" is pressed.
Fairly simple code, simple dialog box from jque...
Can anyone verify this for me? JavaScript does not have a version of strcmp(), so you have to write out something like:
( str1 < str2 ) ?
-1 :
( str1 > str2 ? 1 : 0 );
As this question is really just me complaining, I wouldn't normally waste your time with it, but I wasted 30 minutes looking for such a func...
I have 3 textboxes to do a check on the entered date. The code I originally had was for one textbox. Is there a way to pass an ID name to the onChange event
<asp:TextBox ID="txtDate" runat="server" Width="110px" onChange="checkEnteredDate('txtDate')"></asp:TextBox>
function checkEnteredDate(var textBox = new String();) {
...
Hi,
how is that possible that call to the alert function changes behavior of a js script? Something like that:
function add_token (item) {
var li_data = $.data(item.get(0), "tokeninput");
works but this:
function add_token (item) {
alert('a');
var li_data = $.data(item.get(0), "tokeninput");
doesn't - I get following e...
I'm a person that learns best from example. Currently, I'm diving into the field of Web Development after fifteen years of developing desktop apps. I'm still getting used to all the web technologies used for developing modern web sites and everywhere I look, I see cool little UI elements and have no idea how they're implemented. So I tho...
I'm working with an API which needs extra security information sent along with an HTTP request as meta-information in headers. Is it possible to set those in an XMLHttpRequest?
...
I'm using what seems to be a common trick for creating a join view:
// a Customer has many Orders; show them together in one view:
function(doc) {
if (doc.Type == "customer") {
emit([doc._id, 0], doc);
} else if (doc.Type == "order") {
emit([doc.customer_id, 1], doc);
}
}
I know I can use the following query to get a sin...