I'm trying to use the getElementsByTagName("a") method to get all the elements under a specific tag.
However, I don't want every anchor tag. How would I narrow it so I only select all the anchor tags under the the ul tag for "someListClass" name?
<ul class="someListClass"> <li><a href... /></li>... </ul>
I know in jQuery you can just ...
Hi,
I would like recommendations for upload scripts/components. My criteria:
No flash
Plain Javascript ok, jquery ok
Must provide progress bar (updated from for instance ajax call).
Probably isn't relevant, but I use ASP.NET MVC on server side.
Thanks
UPDATE
Yes, I know there will need to be a server side component to this, but I...
Just to be sure it can be safely used with JQuery scripting.
...
Hi there,
I'm developing a page that will present the user with a content slider, so that the user can click 'next' to browse through the slides.
However, I also want to hide any 'previous' buttons/links and additionally, when the user reaches the last slide in the list the 'next' button needs to be replaced with a different button and...
I’m building a J2EE web application which uses Oracle SSO with an OID back-end as the means for authenticating users.
If a user wants to use the application, first he must provide a valid login/password at SSO's login page.
When the user is done using the application, he may click on the logout button; behind the scenes, the action ass...
Hello,
I am using selenium RC with Junit framework and Eclipse. In whole test script, I am just opening one form and update some values in grid table. Some ending lines of code..
selenium.type(prop.gridtxtboxACTL, "test123");
selenium.click("link=Update");
selenium.waitForPageToLoad("30000");
}
public void teardown() throws Exception...
I'm looking to develop a custom hierarchy control. I'm having a hard time wrapping my brain around the concept. My question is this. Whether to derive from a Gridview or to derive from a Treeview control. If anyone has any thoughts or links on the overall implementation of either that would be great. Thanks in advanced.
My Data is ...
I have a form that I pre-populate with test data though jQuery.
$('INPUT[name=subscription.FirstName]').val('Jef');
but I only want to do this before submit. What is the best way to test this?
...
What's the difference between clicking on:
<a href />
vs.
calling window.location.href = ...
?
...
I'm trying to write a web app which replaces the context menu (right-click menu) with my own customized ones. I want it so that when the user clicks on a table row, they get one certain context menu and when they click on the background of the page, they get a different one.
I have already written the menus and gotten them working. ...
Hi,
I'm trying to get an autocomplete form working, and I can't seem to figure out why I keep getting an this.element is null error.
Here is the js:
//autocomplete
function AutoComp() {
new Ajax.Autocompleter("autocomplete", "autocomplete_choices", "fin/autocomplete", {});
}
document.onLoad = AutoComp();
HTML:
<input type...
I have some jQuery/JS below. The first thing to run is the alert box at the end.
$(document).ready(function() {
$("#id1 img , .msg").stop().animate(
{ width: '300px', height: '300px'},
{ duration: 'slow', easing: 'easeInSine' }).pause(3000);
$(".msg").animate(
{ width: '50px', height: '50px' },
...
I'm looking at the code from this: http://www.javascriptkit.com/script/script2/jkmegamenu.shtml
I would like to modify the code to make the menu drop up instead of drop down. Can anyone help me with this? Thanks!
...
I am using this javascript menu which i bought on the net called SmoothMenu and it works fine in a standalone page..but when incorporated with a master page that is using other javascript files as well it does not load the javascript which applies the css properties.
I am using mootools javascript file "mootools-1.2.1-core-nc.js" and th...
Hello,
is there a way with javascript/jquery to prevent images from loading? I am building a slideshow from a html list with images. So I would like to collect all the src data and then prevent the images from loading. So later when the user really needs the image I would load it then.
I found some lazy loading script on google but coul...
Imagine there are two labels on a webpage both displaying a date. How would you find out which is the greater date taking into account what the users locale is.
Say Label 1 : 04/11/2009 Label 2: 09/10/2009
If it were in the US Label 2 > Label 1
If it were the UK Label 1 > Label 2
The date constructor ignores locale information so var...
I'm addressing a problem with an ASP .NET web application where I want to avoid using query strings to uniquely identify dynamic content. I want to index the content relative to the opened tab/window that is displaying it. Is this programmatically possible? If so, what is the compatibility of the approach across multiple browsers? Th...
I have some javascript:
eval('var incomingJSON =' + ajaxObj.responseText);
for (p in incomingJSON.common) {
document.getElementById(p).value = incomingJSON.common.p;
}
where ajaxObject.responseText is:
{
"common": {
"item1": "1",
"item2": "2",
"item3": "3",
"item4": "4",
"item5": "5"
...
I have a fairly simple menu structure, one level deep, made using UL/LI's as below...
Menu Item 1
Menu Item 2
Menu Item 3
Sub Item 1
Sub Item 2
Sub Item 3
Menu Item 4
The menus are displayed in a vertical fashion with a roll-out on hover, in exactly the same basic format as the vertical suckerfish demos shown h...
How do I:
detect if an HTML checkbox has be clicked/selected?
retrieve which checkbox(es) have been selected?
Example code:
<FORM ACTION="...">
<INPUT TYPE=CHECKBOX VALUE="1">1 bedroom<BR>
<INPUT TYPE=CHECKBOX VALUE="2">2 bedrooms<BR>
<INPUT TYPE=CHECKBOX VALUE="3">3 bedrooms<BR>
<INPUT TYPE=CHECKBOX VALUE="4+">4+ bedrooms<P>
</FORM...