In Intranet web application and in windows authentication.I have implemented Session Time Out warning using javascript and cookies which wil prompt the user if they want to extend their session or logout and it is working fine for few pages but the problem occurs when I open a window(childWindow) by cliking on a tab in browserwindow(pa...
I suppose this isn't a huge deal, since there are other way around this issue, but I'm really curious as to the answer, since I thought this was possible to do.
I have a public property that returns a boolean in my code behind. I'd like to access this server variable in my javascript validation function, but so far, not quite getting it...
I have an array of objects. Each object has, among others, an ID attribute. I want to find the index in the array of the object with a specific ID. Is there any elegant and simple way to do this in jQuery?
...
I want to write an extension for Google chrome that detects snippets of source code on web pages and automatically copies them to the clipboard.
I'm new to javascript and jquery, so for the first step, I wanted to try a very simple case.
Using this site as an example:
http://www.swharden.com/blog/2010-03-05-realtime-fft-graph-of-audio-...
I have some text below called (16 Courses). I need to hide only this text, but I can't seem to hide it no matter what I try using jquery. Is there any help someone could provide so I can hide on this text?
<div id="programAttributes">
<div class="left" id="credits">
<h3>Credits</h3>
<h3 class="cost">48</h3>
(16 ...
i finished it
<script>
Number.prototype.pad = function(n) {
for(var r = this.toString(); r.length < n; r = 0 + r);
return r;
};
function getThirdMondayInJanuary(year) {
var d = new Date();
if (year) d.setFullYear(year);
d.setMonth(0,15,0,0,0,0); // 15th of Jan
d.setDate(d.getDate()+([1,0,6,5,4,3,2][d.getDay()])); //get nex...
I have a table whose border is set as 1px solid silver from an external style sheet(some .css file). I have no control over this file.
This is the css:
my_table tbody td {
font: 8.5pt verdana, sans-serif;
border-top: solid 1px silver;
border-bottom: solid 1px silver;
overflow: hidden;
padding: 0px 3px 0px 2px;
}
Now I want to change ...
I have the following script from http://javascript.about.com/library/bljver.htm
<script type="text/javascript">
var jsver = 1.0;
</script>
<script language="Javascript1.1">
jsver = 1.1;
</script>
<script language="Javascript1.2">
jsver = 1.2;
</script>
<script language="Javascript1.3">
jsver = 1.3;
</script>
<script language="Javascript...
SO, I'm trying to create a javascript object, and use the setInterval method.
This doesn't seem to be working. If I remove the quotes, then the method runs once. Any ideas why? Also, I'm using Jquery.
<script>
$(function(){
var kP = new Kompost();
setInterval('kP.play()', kP.interval);
});
var Kompost = function()
{
this.inte...
Hello, I'm using the following 2 lines of JS to create a UID:
var UID = dateobj.getTime();
UID = String(UID).substr(4);
It appears that sometimes it generates a number like:
564929300
other times like:
56492930
Problem is the length isn't consistent which is messing things up. Any ideas how that's possible and if there is a way to ...
Hi all,
I need to fire some custom javascript validation and then submit my ASP.Net using javascript.
How do I submit the form using javascript? Thanks!
...
Does anyone know if jQuery can handle an animation like:
rgba(0,0,0,0.2) -----> rgba(0,255,0,0.4)
I know there is a plugin to handle color animations, but this might be too modern?
...
All i need to get is the jpg file "url" value in the results chunk. JSON is quite new to me...
{
"ok":"ASSEMBLY_COMPLETED",
"message":"The assembly was successfully completed.",
"assembly_id":"99b0303243fd4a2f5da38111677aca71",
"assembly_url":"http://api2.vivian.transloadit.com/assemblies/99b0303243fd4a2f5da38111677aca71",
...
Hi,
I'm creating a plugin for jQuery. I wont attempt to explain the plugin here, so lets say for simplicity that my plugin opens an alert when you click on the targeted element. Here is a simple version of my plugin.
(function($) {
// Options
var defaults = {
message: 'Default message'
};
var options = $....
I never thought I'd ever say this but I'd like to have something like the report generator in Microsoft Access. Very simple, just list data from a SQL query.
I don't really care what language is used as long as I can get it done fast.
C#,C++,Python,Javascript...
I want to know the quickest (development sense) way to display data from ...
Possible Duplicate:
How do I stop the Back and Refresh buttons from resubmitting my form?
I have a form that like most forms submits every time the user refreshes the page. Is there any way to prevent this so the form submits ONLY when the submit button is clicked and at no other times?
...
Since it seems like the first thing people do is convert arguments into a real array, I'm interested in why the Javascript language authors and implementers decided, and continue to think, that arguments should not be a real Array. I don't mean this as flamebait, I'm sincerely interested in the thinking behind it. Since the function is n...
I have my tablesorter with zebra up and running just fine but I can't seem to install the pager properly.
When I include the pager.js file like you see below, it breaks my sorting all together. The sorting works fine when this file is not loaded but I get no pager.
Someone, what am I doing wrong?
<script type="text/javascript" src="/s...
Hi Everyone,
here is my code - I've tried using the google maps api and other tutorials, but I can't seem to get the code right. It either displays the default icon or no icon at all.
Here is the unaltered code -
<script type="text/javascript">
//<![CDATA[
<?php if ($er...
An external javascript can be used by many Web pages. How to know which web page is using an external js script? For example, I've got a javascript script s.js. Is it possible that a function of s.js can check which page is using s.js?
...