javascript

why does this script not work in IE6???

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...

Finding ListView item from row index in Javascript

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)...

Detect if currently scrolling a web page on Android

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) { ...

How to add Delay before calling next call back function in jquery

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')...

HTML 5 DOM Storage in IE6/7

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. ...

How do you stop javascript assigning objects by reference?

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...

Simple ASP.Net Question <%# and <%= not working!

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...

How do I know if I'm using too much javascript/jquery?

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? ...

Should I use minified or regular versions of jQuery plugins during development and deployment?

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...

Do I need to learn any more programming language?

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? ...

Event not bubbling in some Browsers when clicked on Flash

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"&gt; <html xmlns="http://www.w3.org/1999/...

How do you get the currently selected <option> in a <select> via JavaScript?

Real newbie stuff this, but how do you get the currently selected <option> of a <select> element via JavaScript? ...

javascript -web development

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. ...

Replace broken twitter images with javascript?

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...

Advice on how to modernize SQLXML 3.0 application

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...

Why is returning false with onSubmit reloading?

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...

use css attributes "filter: alpha(opacity=70);" and "background-image: url(image.png);" on input box

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('...

Javascript Value Assignment Delay?

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) {...

How can I resize the recaptcha in Greasemonkey?

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...

Check what web addresses are opened in browser

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...