Hi,
I've been working on and off on a horizontal accordion. It's not working perfectly at the moment but i've just got to change a few bits. The code is very rough and I intend to make it a bit more graceful once it works.
It functions perfectly in every browser apart from ie6..initially when it loads in the page all you can see is the...
If I know the DisplayIndex of the ListView item I want to find, how can I find it in javascript?
As a reference, here is how I can do it if I know the index of the item in a GridView:
// get the gridview element
var gridView = $get('<%= this.GridView1.ClientID %>');
//Get the selected row
var curSelRow = gridView.rows[parseInt(rowIdx)...
I am trying to detect when a user has finished scrolling a web page using javascript on Android. The script I have is working on iPhone and seems correct to me that it should work on Android. Anyway, a snippet:
previous = pageYOffset;
interval = setInterval(function() {
//Has scrolling stopped?
if(previous == pageYOffset) {
...
Hi guys,
I am trying to make a javascript banner. I have 3 images inside a div with ids #img1, #img2 n #img3.
<script src="scripts/jquery-latest.min.js" type="text/javascript"></script>
<script>
var AnimState = true;
var AnimTime = 2000;
var AnimDelay = 3000;
$(document).ready( function()
{
$('#image img')...
Anyone knows a better way to storage data in IE6/7 using HTML DOM Storage? I found the ExDomStorage
But it limits data to 64Kb.
...
I'm using the date.js library.
Previous code:
alert(incidentDate);
var deadlineDate = incidentDate;
deadlineDate.add(2).years();
alert(incidentDate);
return;
Adding to the deadlineDate caused the incidentDate to change too. A bit of reading revealed that this was because objects in javascript are always assigned by reference. I've fo...
You can see what I am trying to do below. Two ways I have tried to do the same thing, but neither of these work. What is the fundamental here that I don't get?
<asp:HyperLink ID="HyperLink1" runat="server"
NavigateUrl="javascript:$('#<%= fileInput1.ClientID%>').uploadifyUpload()">
</asp:HyperLink>
OR
<asp:HyperLin...
What ways can I test how my webpages run? How do I know what levels of usage (cpu and memory are what matters, I'm guessing) are acceptable?
Any advice to get me started?
...
As many of you know, most jQuery (or javascript, for that matter) plugins you find these days can be downloaded as either regularly formatted code, minified version, or both. For development purposes, I like to use the non-minified versions of the plugins, in case I need to set a Firebug breakpoint or look through it for any reason.
Now...
As a web programmer do I need to learn any more languages to enhance my career? I work in a .NET environment and am good at C#, but have zero skill in VB. For client side scripting I use javascript, jQuery and PrototypeJS.
Should I learn any more languages or do you think that what I know is enough for web programming?
...
Environment:
Windows 7,
Internet Explorer 8,
Flash ActiveX 10.1.53.64,
wmode=transparent
Just wrote a small test page that you can load in IE and Firefox or any other Browser.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/...
Real newbie stuff this, but how do you get the currently selected <option> of a <select> element via JavaScript?
...
which one is friendly to develop an webpage application, javascript or php.i want to know which will take less memory and provide more security.
...
In most cases you can replace a broken image with some code that looks like this:
<img src="image.jpg" onerror="this.onerror=null;this.src='default.jpg'">
However, it doesn't seem to work with broken twitter profile images like this:
http://a1.twimg.com/profile_images/52087244/Photo_26.jpg
Is this because it is returning 403 instead...
I'm hoping you can help me narrow my research on how to "modernize" my use of SQL XML...
I recently "dusted off" a bit of something I cobbled together several years ago. It utilizes something called SQLXML 3.0 and IIS Virtual Directory Management for SQLXML 3.0 resulting in an XML template that contains a SQL EXECUTE of a stored procedu...
I know this probably staring me in the face but:
I have a basic for with a for header of:
<form onSubmit="return validateClinicalReports();" name="clinicalreport" method="post" action="process.php" enctype="multipart/form-data">
the js looks at each input using: document.getElementById("name"). If it sees that the input is blank it c...
can get both working individually, but am unable to get them working together. this is for use in a windows sidebar gadget.
form:
<form name="llPeople" action="URL" method="get" target="newwindow">
<input id="phonebook" class="blur" type="text" name="peo_name" size="15" value="Search Phonebook.."
onFocus="document.getElementById('...
I'm at a loss right now. I'm using a simple variable, whose value is assigned during a loop. After exiting the loop, the value of the variable is still undefined, unless I alert it's value first. Then everything works fine. What's going on here?
$(myarray).each(function(idx, item)
{
fetchSomethingRemotely( success: function(data) {...
I want to re size the text from the captcha to be easier to see, with Greasemonkey.
How can I do it?
For example, I have this captcha:
<div id="recaptcha_image" style="width: 300px; height: 57px; ">
<img style="display:block;" height="57" width="300" src="http://www.google.com/recaptcha/api/image?c=03AHJ_VuuqeICMpU36GlHCSchBzERwiDzT...
Hi, is it possible to get the addresses of web pages being opened in web browser using javascript?
Lets say that before performing some operation i need to check whether specific page is opened in the browser. Javascript's window.open() seems wrong to me, as it opens the window even if page was loaded before.
EDIT:
i need to check if s...