EDIT:
This error happens because in IE6 and IE7 these attributes are required for a textarea element.
Code:
$(document).ready(function () {
var ASP_txtNotes = 'ctl00_cphBody_txtNotes';
$("#" + ASP_txtNotes).removeAttr("cols"); // <-- Error here
}
Error:
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; ...
Anybody know of snippet that will parse a CSS3 selector like this:
"form#network_template[method='put'][action='#form_{keyname}']"
to this:
{
tag: "form",
id: "network_template",
method: "put",
action: "#form_{keyname}"
}
or this:
<form id="network_template" method="put" action="#form_{keyname}">
...
I'm highlighting instances of a search string within a set of text. I want to preserve the case of the original text while replacing a case-insensitive match of the query. Here's what I started with:
text.replace(new RegExp('(' + query + ')', 'ig'), '<em>$1</em>');
In this case, I'd need to escape query to prevent parentheses from bre...
OK, so here was my original problem. You don't have to read it but in case it helps: http://stackoverflow.com/questions/4001246/firefox-thinks-fieldset-is-a-form-element-chrome-doesnt
Basically, Firefox and IE count the fieldset in my HTML as an element in my array, and that screws everything up. But Google Chrome does not count the fie...
I wonder if it's a good idea letting local applications (in the same server) communicate with each other entirely through Restful API?
I know this is not an uncommon thing, cause we already have applications like CouchDB that is using HTTP REST for communication, even with local applications.
But I want to take it to a higher level by ...
How can I say this Javascript in PHP:
var ts=Date.UTC(1985,1,22);
Thanks in advance.
...
I'm creating an HTML autorun. There is no restriction in using javascript as it will be run from XULRunner. I want a way to detect if internet connection exist or not. This doesn't work for me
$(document).ready(function() {
var online = navigator.onLine;
// a workaround for a flaw in the demo system (http://dev.jqueryui.com/ticket/...
I've been working on a PHP project of mine, and I am attempting to add a feature that tells the user whether or not the username they entered in a register form is already taken as they update the input. When starting this, I thought I knew how to code this- but I ran into some problems along the way.
When I post the data to my PHP scri...
I want to let the user select when the shift key is held.
$("#div").selectable({
start: function(st) {
$(window).keydown(function(e){
if(!e.shiftKey){
st.stopPropagation();
}
});
});
no?
...
Hi guys, I am using this code to generate the textbox dynamically by using the javascript.Its working fine .But my issue is all generated textbox have the same name .Is there is possible to prefix the textbox count with the textbox name So that it is easy to post the textbox values.
<html>
<head>
<script>//addElement('INP...
it is often done by code like this:
if ( window.parent.frames.length>0 ) {} // check how many frames, if none do nothing
else {
window.location="[new destination]"; // else change the current location
}
But I want to prevent iframe content from knowing that it is on the iframe.
I am writing a php proxy and content will be from t...
Hi all,
Sorry if it looks stupid question but is it possible to return the response from a JavaScript confirmbox or messagebox to a ruby program as a value?
I click on confirmbox's "yes" button, this response is stored in a variable, and then this variable is returned to ruby?
...
Hi! In jQuery, is there another way to write this?
Version 1
$("#date_filter-enable").click(function() {
$("#search_dates").removeClass("hidden");
});
$("#date_filter-disable").click(function() {
$("#search_dates").addClass("hidden");
});
Version 2
$("input[id^=date_filter-]").click(funct...
Possible Duplicate:
JavaScript foreach Vs for
What's the difference between a for loop and for...in? I mean, if there is a difference, it can't be much.
And, I see within validation scripts sometimes the function written like:
function check() {
with(something) {
if(){
// do something
}
}
...
I need to pass variables from Flex app, process its using the functions and return back to this application.
...
I had Ajax Calendar and I want to prevent user to choose date (Today or future date) I had java script code but It when I prevent me to select date earlier as (10-10-1990).Plaes any one help me.
Javascript
<script type="text/javascript">
function checkDate(sender,args)
{
if (sender._selectedDate < new Date())
{
...
Could anyone explain how to turn functions into methods and the variables into parameters of an object in jQuery/Javascript?
And even more interesting Why i should do that?
...
Hi Guys,
I am using gwt-visualisation chart
But is there any way to add click handler to x-label
Thanks
...
Hello,
just to know, is it possible to send password through an Ajax request safely?
I've a login box that calls an ajax request to try the login/pass and retrieve a JSON Object with errors (if any).
Should I use a form redirection instead?
[EDIT] Store the encrypted password in the database isn't the solution because the login and p...
Hi,
I want to use something like:
<body onLoad="init('A sentence with "quoted text" as parameter')">
Unfortunately, this does work, as the quotes in the parameter are not treated properly.
Escaping the quotes also does not work
<body onLoad="init('A sentence with \"quoted text\" as parameter')">
(Above also does not work).
How ...