Hi I've got a DIV section that has only its title visible initially. What I would like to achieve is that when the visitor clicks anywhere on the area of toggle_section the toggle_stuff div toggles between visible/hidden.
<div id="toggle_section"
onclick="javascript: new Effect.toggle('toggle_stuff', 'slide');">
<div id="toggl...
I am looking to extend jQuery so I can easily retrieve the tagName of the first element in a jQuery object. This is what I have come up with, but it doesn't seem to work:
$.fn.tagName = function() {
return this.each(function() {
return this.tagName;
});
}
alert($('#testElement').tagName());
Any ideas what's wrong?
BTW...
I'm trying to solve the problem of passing a 2-dimensional table into JavaScript AJAX application through SOAP web services. I'm trying to pass data into JavaScript web page through ASP.NET web service declared with following attributes:
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[System.Web.Script.Services.ScriptServ...
Is there a good way, in a javascript onfocus() handler, to trampoline the focus to the next item in the tab order, without having to manually enter the ID of the item that should be next?
I built an HTML date picker in Django/jQuery. It's a line edit followed by a calendar icon that pops up a calendar. I want to be able to tab from th...
Hi,
I am including Javascript code that is used to pop up a calendar. The problem with the code is that I want a '0' to be inserted in front of the month or day if the month lies between 1--9 and days between 1--9 in the calendar.
The following is the script. Can anybody guide me to the modifications?
<!DOCTYPE HTML PUBLIC "-//W3C//...
The problem with the below code is that Select All options works very well in Mozilla and not in Internet Explorer.
<!--
Document : DG
Created on : Sep 11, 2008, 12:48:37 PM
Author : padmaja
-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<script type="text/javascript">
<!--
var months = new...
Hi,
function toggle(source) {
checkboxes = document.getElementsByName('DG1');
for each(var checkbox in checkboxes)
checkbox.checked = source.checked;
checkboxes = document.getElementsByName('DG2');
for each(var checkbox in checkboxes)
checkbox.checked = source.checked;
checkboxes = document.getElementsByName('DG3');
...
i want to display whatever the response of flickr.test.echo was on the page using rest (jquery ajax - because thats what im using)
i need to supply an api_key
The REST Endpoint URL is http://api.flickr.com/services/rest/
To request the flickr.test.echo service, invoke like this:
http://api.flickr.com/services/rest/?method=flickr.te...
Hi Guys,
I have a textbox for 'Area '.I need a regularexpression to validate textbox such that it should allow decimals to enter but no characters.Anyone can help me
...
Hi, unfortunately despite having tried to learn regex at least one time a year for as many years as I can remember, I always forget as I use them so infrequently.This year my new years resolution is to not try and learn regex again - So this year to save me from tears I'll give it to stackoverflow. (Last Christmas remix).
So basically I...
While the lightbox example page works fine for me in IE7, I seem to have broken it in my implementation.
I've written a Lightbox plugin for Mango Blog and everything works fine in Firefox. However, in IE7 the "close" button doesn't work. If I'm fast enough to get my cursor into the position that the close button will be placed before it...
I have a webpage that implements a set of tabs each showing different content. The tab clicks do not refresh the page but hide/unhide contents at the client side. Now there is a requirement to change the page title according to the tab selected on the page ( for SEO reasons ). Is this possible? Can someone suggest a solution to dynamical...
There is a particular website I must use for work which is absolutely heinous and despised by all who must use it. In particular, the site's Javascript is fundamentally broken and works only in IE, which pretty much makes it the only site I must use outside my preferred browsers.
So, to the question. If I could 'patch' the javascript ...
I'm working on a Silverlight control that will allow multi-file downloading. At the moment I'm trying to get my mind around the permission model of the browser.
Let's say, on a web page, a user enters a local folder (c:\temp) in a text box. The user then clicks a button.
Is it possible in JavaScript or Silverlight, to write a collectio...
Hello,
I was taking a look at http://www.zenfolio.com/zf/features.aspx and I can't figure out how they are doing the accordion style expand and collapse when you click on the orange links. I have been using the Web Developer Toolbar add-on for firefox, but I have not been able to find anything in the source of the page like JavaScript ...
Perhaps I am missing something, but I am just learning javascript.
My understanding of Single Origin Policy is that Google Analytics should not be able to send data back to Google.
How is it able to transmit send data to Google without violating the policy?
...
I'm building a site that's sort of a cross between StackOverflow and Digg (only a different genre). Typically in the past I would have just built it using ASP.Net web forms. However I want to use this project as a way to learn new technologies. I'm using ASP.Net Mvc which is really great, but I need to learn/use some kind of javascript l...
I'm looking at using the Dojo Objective Harness (DOH) for testing some custom JavaScript code. To that end I've read the following article:
http://www.ibm.com/developerworks/web/library/wa-aj-doh/index.html
and I have a question about the test case structure. The example shows that your test case modules in the same parent directory ...
Hello, I am having some difficulty accessing the value of the selected radio button in a radiogroup. I've attempted a number of different approaches based upon discussion in other posts on the forum and around the web. Unfortunately haven't been lucky (or skilled) enough to get it working. Based on the following FormPanel config I was ho...
Duplicate of: Are there any good Javascript code coverage tools?
Can I find out how often the available JavaScript functions are executed on a page? I have a quite big file with a lot of JS functions and I am not sure if every one of them is really needed. That's what I'd like to find out.
...