javascript

Can I make the browser follow a link after a certain amount of time with jQuery?

I want make a hyperlink turn active and go to that page after a certain amount of time or on pageload. Is this possible with jQuery? ...

popluating multiple id tags

How can i populate multiple id tags simultaneously. On my page i have id tags starting with "total_" phrase, like total_1, total_2 etc., is there a way by which i can populate each of them on a single click in javascript. Should i use regex or parser. Any help will be highly appreciated. Thank you. ...

Will this jscript run inside a .ASCX page?!

Will this run inside an ASCX file in my ASP.Net project? I can't seem to get it to work, just wondered if there was some particular thing missing? Do i need to include "runat="server""? <!--[if lte IE 6]> <script type="text/javascript"> window.onload = function() { var images = document.getElementById("GetQuote").getAttrib...

Asp.Net - Redirect if Javacript is not enabled

I got this code in my Master page : <script type="text/javascript"> $("#<%=hfJavaScriptDetected.ClientID %>").val('yes'); </script> <asp:HiddenField ID="hfJavaScriptDetected" runat="server" Value="no" /> So if Javascript is enabled the value of my hidden field should have be changed. Now, what I would like to do is check this v...

Dynamic object parameter names in Prototype's ajax.updater

Uaing the Prototype JavaScript library, I have this var panelItemId = 12345; var param1 = 'expandPanel'; var updater = new Ajax.Updater('myTarget','myUrl',{ method: 'get', parameters: { expandPanel: panelItemId } } ); I want to replace expandPanel in the parameters object with the var...

Javascript - change image source to gif ?! asp.net

I have the below code in a .ascx file as part of an asp.net project. How can I write the javascript to change the image source to a gif? <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Steps123.ascx.cs" Inherits="SwintonTaxiWeb.UserControls.Steps123" %> <div id="slickShow"> <div class="<%=stepOneDivClass %>"> ...

Javascript problem in Firefox

Hi all, I know it's a long shot with so little details I can provide, but here's the problem: I have an asp.net (3.5) application, which I'm trying to run on IE,Firefox and Chrome. On IE and Chrome EVERYTHING works just fine, but Firefox causes trouble: On Firefox, when clicking SOME of the link buttons I have,the status bar shows the...

Google Maps API v3: InfoWindow not sizing correctly

Hi all It appears my InfoWindow, when you click on the home icon on my Google Maps v3, is not properly auto-sizing to the content of the InfoWindow. It gives scrollbars when it should not. The InfoWindow should be properly auto-sizing. Any ideas on why? Link below to live size. http://tinyurl.com/ygktsj Per request, the relevant Ja...

How to use the livevalidation javascript library custom.validate function ?

Heya Folks, I am very new to all of this so please bear with me! I have mangaged to create a form with livevalidation checking of fields, and also with an ajax/json check to see if a usename is valid. I seem to get along fine with standard live validation. Here is a demo of what I have at the moment: link text The method to give a r...

jQuery kills Lightbox

I just moved my javascript over to jQuery for the simple AJAX functions. However I'm trying to use a lightbox plugin with jQuery since I want to keep the same functionality but don't want to include 10 different libraries. If i remove the jquery include and keep lightbox, it works great if i put it back it breaks, it just brings up the f...

How do I trigger a PostBack with arguments from Javascript?

This is what I'm doing: Using jquery, I'm popping up a "form" over the page that lets the user search for branches of the company and select the one they want. When the form pops up, they can type in a textbox, and it will do AJAX requests back to the server to return the top n results for what they've entered, and those results will be ...

Overlib popup doesn't align under the mouse

Hi, I'm using the overlib library and it works fine in one part of the website but not in the other. This is the parameters set for overlib. <script type="text/javascript" language="javascript"> overlib_pagedefaults(LEFT, WIDTH, 450, CELLPAD, 10, FGCOLOR, '#f0f0f2', BGCOLOR, '#7d7d7d', VAUTO); </script> What i don't understand is ...

How do I use the livevalidation javascript library custom.validation function ?

(note: my original question was not linked to my openid - I am reposting here to be able to edit/update/respond accordingly - if anyone with access could remove the original question: /questions/1554916/how-to-use-the-livevalidation-javascript-library-custom-validate-function that woudl be great !!) Heya Folks, I am very new to all of ...

multiple scripts in javascript

i have this code for a datetime picker <link type="text/css" href="css/ui-lightness/jquery-ui-1.7.2.custom.css" rel="stylesheet" /> <script type="text/javascript" src="js/jquery-1.3.2.min.js"></script> <script type="text/javascript" src="js/jquery-ui-1.7.2.custom.min.js"></script> <script type="text/javascript" src="js/timepicker.js"></...

How to make and autocomplete address field with google maps api?

Using Google Maps API and JQuery I would like to have an Address field that when typing it will autocomplete the address entered there. How this could be achieved? ...

Adding external JavaScript file into DOM via JavaScript

I need to load an external JavaScript file that is generated by a PHP script, I also want to pass any query string parameters to the script as well, I came up with the following solution: <script>var url = 'http://example.com/scripts/js.php?foo=bar';url += location.search.replace(’?',’&’);var s = document.createElement(’script’);s.se...

setTimeout not working,am I missing something here?

I know its pretty basic but I just can't get it to work. it keeps throwing "Object Expected" error... $(document).ready(function(){ setTimeout('showMessage()', 1000); function showMessage() { alert('abc'); } }); ...

show last four digits of SSN

I want to only show the last four digits of a Social security number after they leave the textbox. Does AJax have a tool for this that I am not aware of? How can i do this? I want to replace the digits with '*'. I'm working in .NET. Ajax is also accessible. ...

JavaScript RemoveChild logic/question

I'm using Dojo Drag and Drop. When a user adds an item to a container (div dojoType='dojo.dnd.Source') then I need to get that data into a form so I can later process it on a server when the user submits the whole page. That part is working. Then to remove an item, I allow them to drag/drop an item to a "trash" container. I'm having...

JavaScript: Overwrite array

How do I overwrite (or unset and then set) an array? Seems like "array = new_array" doesn't work. Thank you in advance. ...