Hi. I have a log-in web page that uses JavaScript for name and password validation. It works fine in Mozilla Firefox, but IE8 allows logging in without entering name and or password. It posts a script-restriction warning which, when you click on it, you can chose to enable the JavaScript. That's fine except you can just bypass that step ...
We are using Java and Javascript to try to display a huge sheet with freeze panes, but it is being very difficult. Does someone know about a library, method, script or something, either free or commercial, to do this?
Thanks.
...
We want to add google analytics a fairly large .NET web site. The site uses several master pages (4 or 5) and so I was going to just paste the requisite javascript into each master page.
<script type="text/javascript">//<![CDATA[
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
...
Is there anyway to find out the ssid of the wifi access point you are connected to within the browser using javascript?
If there isn't my guess would you'd have to write a plugin for it. I bet ActiveX allows this.
...
How can I replace all occurrences of double quotes and single quotes with a space with javascript regex?
...
I'd like to surround all words in a haystack starting with @ with <b> tags with javascript regex. What pattern would I use?
...
I'm making an edit button which pops up a modal box with a form to edit it. jQuery then sends this form to my server and I get a JSON response back. However, due to my bubbling issue, if I click on, for example, all of the edit buttons and then click on the last one and change a field, it does it across all of them.
$('.edit').click(fun...
Are there any downsides to using a JavaScript "class" with this pattern?
var FooClass = function()
{
var private = "a private variable";
this.public = "a public variable";
var privatefn = function() { ... };
this.publicfn = function() { ... };
};
var foo = new FooClass();
foo.public = "bar";
foo.publicfn();
...
Just today learned that one of my websites, TwitPeek.net, is not rendering properly in IE8 outside of "Compatibility Mode". The site works fine in IE7.
Upon some investigation, it appears that IE8 is refusing to apply the page stylesheets to the anchor and img tags that the page's javascript generates. Because of this, none of the scr...
Related (but slightly different):
http://stackoverflow.com/questions/1216007/surrounding-all-instances-of-and-http-with-a
I would like to surround all instances of @_______, #________, and http://________ with anchor tags in one pass.
For example, consider this Twitter message:
The quick brown fox @Spreadthemovie jumps over t...
Hi,
Just as the title says, any ideas?
Malcolm
EDIT: Oh, can you you supply code to do it please?
...
The Twitter API returns time stamps of the form:
"Sat, 25 Jul 2009 04:54:42 +0000"
What's the best way to convert a time stamp of this form to "____ seconds/minutes/hours/months ago" depending on the time zone?
Thanks
...
I'm making an AIR application (so download time doesn't have a huge impact), does combining and minifing all the javascript files affect the performance? How would obfuscating affect the performance.
...
i need to determine if a value exists in an array using javascript.
I am using the following function:
Array.prototype.contains = function(obj) {
var i = this.length;
while (i--) {
if (this[i] == obj) {
return true;
}
}
return false;
}
The above function always returns false.
The array val...
Hi There,
I am after a definitive, cross-browser solution to set the cursor/caret position to the last known position when a contentEditable='on' <div> regains focus. It appears default functionality of a content editable div is to move the caret/cursor to the beginning of the text in the div each time you click on it, which is undesir...
I'm trying to develop a cross platform application, where the most obvious route would be a web site with JavaScript, but then I lose the cosy comforts I'm used to using in my C# desktop apps, like file system access etc. How do I go about accessing similar services from within the browser?
E.g. I don't need to access anything I don't ...
I'm trying to get a 100% width, height canvas element to draw on, but I'm hitting something of a catch 22 because both Chrome and Firefox create scrollbars. The scrollbars appear to be there because the other respective scrollbar makes the content wider/taller. That is, the vertical scrollbar is there because the bottom of the canvas is ...
Will
$(document).ready
in parent page wait for iframe content to be loaded completely?
I have a parent page in which there is a an iFrame. After the iFrame is completely loaded I need to invoke a function in the iFrame from the parent page.
...
I need to find out if an id occurs in my JSON object, for example:
{
"requested": "2009-07-25T14:12:25+01:00",
"channels": [
{"id": 1, "name": "General", "created": "2009-07-25 14:00:02"}
]
}
Specifically I need to check if my id (say, 2) occurs in channels.i.id. How can this be done?
...
I've been using the YUI Test framework to do TDD with JavaScript but the default TestLogger shows all sorts of messages, not just the FAIL ones. This makes scanning the log for failures an exercise in tedium, or you have to play whack-a-mole on the filter checkboxes. Is there any way to make the toggle switches on the logger window stay ...