Hello all,
I'm trying to replace an element's inline style tag value. The current element looks like this:
`<tr class="row-even" style="background: red none repeat scroll 0% 0%; position: relative; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;" id="0000ph2009-0...
I have a check box with text next to it. I want to toggle the text 'YES' or 'NO' when the checkbox is selected and deselected. I am having a hard time with this, does anyone have an example of this? I can't get Jquery to respond to the state of the checkbox.
Thanks
...
I'm trying to semi-recreate Mozilla's demo usage of JavaScript + <video> + <canvas> with files that aren't hosted on a server.
Loading my document causes the error console to report this error:
Error: uncaught exception: [Exception... "Security error" code: "1000" nsresult: "0x805303e8 (NS_ERROR_DOM_SECURITY_ERR)" location: "file:...
Can someone please explain this JavaScript regular expression for me?
new RegExp("(^|\\s+)" + className + "(\\s+|$)"), ' ')
...
Has anyone used SIFR or Facelift (FLIR) with ASP.net? I noticed that all the scripts included with FLIR are all PHP pages. I looked around but it looks like there isn't a good solution for image replacement for ASP.net.
...
I'm am extracting (using php) some text entries from an Oracle 10g DataBase. The problem is that I also need to add a comment form to every text entry so that users can respond to the original text ( it's like stackoverflow really: the original texts are the questions and attached to every questions there's a form for answering ). When I...
I am working on a ASP.NET MVC web site that has multiple submit buttons. i.e.
<input type="submit" name="SubmitButton" value="Reset" />
<input type="submit" name="SubmitButton" value="OK" />
<input type="submit" name="SubmitButton" value="Back" />
I need to allow users to quickly submitting the form by pressing the 'Enter'...
I have a javascript setInterval that checks an external page every 5 seconds for mail, I am finding sometimes that if I login or click a form submit at the same time as the request goes out, I sometimes find myself looking at a Y or a N (what my JS was to intercept) instead of the real link I wanted to go to.
How does one debug this? I...
How to use javascript or jQuery to read the color of a pixel of an image when user click on it? (of course we have the (x,y) value of this pixel by subscribing to the click event).
Thanks!
...
We all know how web browsers (such as Firefox) are certain to fill up memory consumption because we continuously execute JavaScript code (from websites) that is prone to memory leakage.
I am debating in developing a Desktop app, and given my experience with Javascript/Css/HTML, I thought I would give AIR a try, this way I don't have to...
Hi,
I'm using MVC with the grid helper seen around. I'm trying to extend a column header since I have to put up and down arrows for a certain column. For example I call my header column sh and have the following using css to try to increase it but to no avail. I'm wondering if anyone has a better idea. I have heard of using javascri...
Can't figure this out for the life of me. Google is no help either. I'm sure its super easy.
...
Hi,
Very confused here, trying out the yuicompressor on a simple javascript file.
My js file looks like:
function splitText(text)
{
return text.split('-')[1];
}
The error is:
[INFO] Using charset Cp1252
[Error] 1:20:illegal character
[Error] 1:20:syntax error
[Error] 1:40:illegal character
[Error] 1:49:missing ; before stateme...
I have a form that does 2 things:
Pass a first name and email address to PHP.
Dynamically add a new set of name/email fields on a click, in case the user wants to submit more than one or two sets of data.
Since I don't know exactly how many sets every user may choose to submit, I pass the data to PHP in an array (using a name followe...
I have some user controls that I want to add some client side functionality to.
Let say 1 control has a hidden field and a bunch of checkboxes. When a checkbox is checked, it sets the hidden field to 'YES'. How could I $get that control in the hosting control or page, and call some function on it that would return the value of that hi...
After reading a bit on Javascript's prototypical inheritance model, I change my style of constructing a class from
var Some_Class = function() {
this.public_method = function() {
};
(function() {
// constructor
}).call(this)
}
to
var Some_Class = function() {
(function() {
// constructor
}).c...
I have this code snippet:
<div id="div1">
</div>
<div id="div2">
<h3>This is the content</h3>
<script type="text/javascript">
alert('This is the content');
</script>
</div>
<script type="text/javascript">
jQuery('div#div2').appendTo('div#div1');
</script>
Using this code, alert message will be displ...
Hello:
I am automating a document with html and javascript through MS Notepad. So far, I have lots of text, a few textboxes, and a button, which will execute a javascript function after a number is entered into one of the textboxes. This document is only partially completed; however, I noticed that after I add entries into my textbox...
My goal is to be able to call functions that are inside my JQuery plugin.
What is the correct syntax?
For example, this does not work:
<a href="#" id="click_me">Click Me</a>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script>
(function($) {
$.fn.foo = function(options) {
...
Hello,
I followed this guide to create a new a js to flash communication:
http://www.actionscript.org/resources/articles/638/1/Basics-of-using-the-ExternalInterface/Page1.html
So my code looks like:
function getID( swfID ){
if(navigator.appName.indexOf("Microsoft") != -1){
me = window[swfID];
}else{
me = ...