Why is it that my Javascript widget does not work properly on IE but fine on Firefox? Moreover, Firebug doesn't produce any errors. What can I do to make sure my Javascript widget is operational in IE? Are there any tools to help me?
...
I've tried all of the classic ie tricks to get my webpage to rerender the changes that have been made in the dom but nothing has worked. I've already tried
element.className = element.className;
as well as accessing some part of the dom I changed but that doesn't work either.
Here's my code. Onload the body calls queryDB and in the ...
If I had a normal website this would be a simple enough fix... but I've built my site on tumblr so I need a workaround. Every page runs off of the same code, so any solution script is going to run on every page.. can't quite figure this one out (did I mention I'm a total n00b?). There are lots of answers to questions LIKE this one, but...
I have an array with each entry containing a minimum and a maximum value for a bunch of sets such as the one below:
Array
(
[0] => Array
(
[0] => 1200
[1] => 2400
)
[1] => Array
(
[0] => 1400
[1] => 3800
)
[2] => Array
(
[0...
I wrote my first Greasemonkey user script to find logo requests on the college-football subreddit.
One wrinkle is having to search for the appropriate stylesheet, and then once found, I look through the selectorText attributes of documents.styleSheets[i].cssRules for known usernames.
At first, I used the following code to search for us...
I'm trying to get a javascript script (running in a Safari extension, to be exact) to send a number of strings to a PHP script on my server. I got it working by constructing a URL with the variables in it, but I'd like to do it using POST to be more secure and incase one of the variables being passed through has an '&' in it.
Is there a...
How can I change a video's source using JS?
<video id="myVideoTag" width="670" height="377" autoplay="true" controls="controls">
<source src="http://www.test.com/test.mp4" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"'>
</video>
...
Hi all,
Just wondering: what is the current king of the hill for rich text textarea editors?
Last time i checked (years ago) it was TinyMCE, is there a better option now?
Thanks a lot
...
I'm doing an ajax work where web service will return data and on client side and I am creating html table with data.
I am using var (to hold string of generated html code), do string concatenations to generate table, tr and td tags and put data in it. Then I put this html table with data into a div using innerHTML. Please note I am apply...
I'm trying to add _1, _2 etc to the end of my input elements in a dynamic form. The user can add as many as they want I wrote this method but it seems to throw errors saying the "dName is undefined"
$j("#addBranch").click(
function()
{
//see withDataAndEvents, copie...
I have the following check box list inside table. I want to hilight the <td> when a checkbox is checked and unhilight when checkbox is unchecked. I know that I need to add class to <td> when checkbox is checked and remove class when unchecked.
<table id="cbDepartment">
<tbody><tr>
<td><input type="checkbox" name="cbDepartme...
Using Datagrid I am trying Web Form on click datagrid row, Any body suggest how I do this.
...
Does anyone know how can I create a prompt input dialog with dropdown box in javascript?
Example:
...
I've been reading about the module pattern, but everything I read assumes that the entire contents of the module will be in a single file. I want to have one file per class.
I've resorted to doing this at the top of every file:
if(window.ModuleName === undefined) { window.ModuleName = {}; }
ModuleName.ClassName = function () { ... }
...
I am not very good in regex so I'm looking for help. I need to fetch content between . and {.
Example:
.aaa { }
.bbb {}
ccc {}
ddd {}
eee {}
I.e. aaa and bbb in a string. This data can change so I want to use a regex for this. Thanks.
Spaces are allowed and new lines are allowed. This is a simple text file.
...
I thought I understood JQuery, evidently not. Why, in this example, does the first textbox register clicks but not the second?
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4
/strict.dtd">
<html>
<head>
<script type="text/javascript" src="jquery-1.4.2.min"/>
<script type="text/javascript">
captureKeys...
Hey,
This is a common problem but I'm not sure how to solve it. The code below works fine.
var mind = time % (60 * 60);
var minutes = Math.floor(mind / 60);
var secd = mind % 60;
var seconds = Math.ceil(secd);
However, when I get to 1 hour or 3600 seconds it returns 0 minutes and 0 seconds. How can I avoid this so it returns all the...
In css, i set the overlow property of the div to scroll and it works well. But the scrolls are visible but not active with a greyed color even they are not needed.
So how can i make the scrolls invisible when they are not needed ?
...
The javascript does not get value from the web method.
It says undefined for the value of s located in CallMe()..
My aim is get an object from the web method.... to use the data in js..
What am I missing_?
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
us...
I downloaded the official facebook Javascript SDK from http://github.com/facebook/connect-js and it seems that, for some reason, it outputs the above error.
The strange thing is that it worked 2 days ago. Now I'm quite stuck. I tried with different API_KEYs and still got nothing. I'm running the examples inside my Apache Server.
Do yo...