I'm trying to extend the functionality so that when a user clicks a button the formula will look up the values of the next column. These are then passed into the google charts api. So affectively they will see a new graph based on the next columns values. This is working fine
$('#WebPartWPQ11 .ms-vb2:nth-child(2)').each(function(i){
var points = $(this).text();
coord[i] = points;
});
So I thought if i declare a variable with the same default value, and pass that into the nth-child function it should return the values in the column. Once up and running by clicking the next button, the column would be incremented by 1, thus the formula would return the values in the next column
I am trying to pass a variable (which is a number) to the :gt(index) pseudo-selector.var thisParentIndex = $(this).parent().index(); //get the index of parent
I am trying to get the index of a li with a specific class. I know I'm selecting the right object because I can apply a CSS class to it (eg change border colour) but when I try to get the index it returns -1. But I know the object exists as I can alter it. :-s
jQuery(document).ready(function() { var active = $("#tertiarynavigation .bordered").get(0); var num = $("#tertiarynavigation li").index(active); alert("Index: " + num);
i want already select .postlike in $(this) now i want to select the tagh1 who is in .commentboxelements.i want to change the h1's inside text 1 to 2 so i write the code
$(this).closest('.posts').children('.commentboxelements center h1').html('1');
i try this but it's not worked anyway how i can do this.
2. Select multiple checkbox and submit array which send back to parent window and value store in a hidden variable.
i manage to do pop up child window, pass textfield value to parent window. But it cant send php array to parent window. Please help. I'm not good in js. code...
so i wrote this slider with some help from an admin, everything works as I would like it to but I'm trying to make it a plugin so i need to tighten up a certain part of the code:
(function( $ ){ $.fn.jmSlider = function() { // get total width of all li elements in the slider var wrapWidth = 0;
[code]....
what i would like to do is instead of using "li:first" and "li:last", i would like to use first-child and last-child so the element doesn't need to be a li, in can be anything that is the direct child of the parent container.
I have parent page http://localhost/pc/rep/pc.php after the user enter the customer data, the user will press button to print it
then, call child page via window.open jar:http://localhost/pc/rep/my-ca/script.jar!/test.html
as you can see, they are belong to the same domain.
The user will select the lables that the program will printed, and the numbers of each one.
I don't know, how can I pass the data from child to parents.
parent.opener.document.forms.item(4).txtClaimTicket.value = 1; [permission denied for <http://localhost> to get property window.document from <http://localhost>
I have the below array called "results". When I loop through all document elements I would like to check "field_name" against the "results" array and see if it exists and what index number it is at??
// Split the comma delimited response into an array results = result.split("~"); //Loop through array and populate fields[code].....
I have a difficult work around Jquery. I want to remove all li items from the ul except first li and last three li how to remove the li elements from these list.
I have created parent child checkboxes. When one child is selected, then parent of that child, other child of same name and parent of that same name's child will be selected... Now I want if I unchecked any child, then only same name of child and parents should be unchecked or if I unchecked Parent Child, then same name of parent and child will be unchecked.
I have a problem with layers. In my example there's a link inside div#msg with 'z-index:1' and a overlay with 'z-index:2'. Now when "mousedown" fires, will change the div#msg z-index value from 1 to 3 to be on Top, so the link become a clickable link.
The question is, it is possible to make the link on top and open it with just one click?
This pops up a new window with every call. In the child window I call a parent function onbeforeunload, appClose() :
function appClose(){
if (window.opener && !window.opener.closed){ window.opener.CloseChild(getQueryString("application")); }}
This is in my frameset tag of the child code :
<frameset ... onbeforeUnload='appClose()'>
The window.opener.CloseChild() function is called perfectly when I have one child window open, but as soon as I create another child window both of the open child windows don't ever call it. They do both go into the onbeforeunload appClose() function, but do not call the window.opener.CloseChild() function inside of this routine.
Anyone have any ideas why when I have two child windows open I can't access the window.opener functions?
I have tried taking each new window out of the array and used the following code in CloseChild() :
I'm having problems with finding the index of a row based on a onclick of an image within a row. I have no row id and all my rows have the exact same name.
http:[url]....When Someone click on two button sin center it loads the side pages.I want to add more pages. I know very little about JavaScript. But I learn this one and able to add more pages. But when clicking on other pages it will take ne page but under already excisting page.I want to add functionality so that when for example click on a link, one page slide to the left. Then I will click another page slide on th left.So here it either slides down above of the page or first that previous page slides back.
I'm trying to get the index of a div when its the same mark up for each set. I want to return index of '1' when a second "yo" is clicked in any "a" and '0' if the first "yo" is clicked in any "a". If i clicked the "yo" which has the color #330000, then i should get 1 not 5. This seems like a simple task but i cannot get it to work.
In this code snip I want to be able to click an item i list-handbag and I then get the index li and with that index I want to animate the same index value in slideshow. How do I set that? Ex.:slideshow[index[list-handbag]].animate (.....what syntax can I use to do something on the slideshow img's?
I would like to add a z-index of 999 to each of the divs; .thumbs, .thumbs2 and .thumbs3 as and when they are selected by the javascript below. I would like the z-index to return to 0 when they are no longer selected.
I have the following code and I need toreference the z-index value (something like if z-index:contains '2') but I have not been successfull. Anyone have a clue on how I can do this? <a href="javascript:RatingClicked('rate_value_vote_data_Herbieann','rate_display_vote_data_Herbie Mann', 5, 10)" style="width:50px;z-index:2">5</a>
I have a calendar in which each day is a separate div, and all these are within a container div #cal. When a user mouses over one of the days, I want to figure out the index number of that day's div within #cal. Simplified example:
I can easily get the index of #nov2 from Firebug if I do this in the console: $('#cal div').index($('#nov2')
But, I can't figure out how to write a function so that I don't need to assign an id to each day div. I'd like to be able to just take "this" from the moused-over div, and pass that to a function that can turn it into the needed index.
I have a bunch of elements with multiple classes like this:
<div class="foo bar"> <div class="foo bar snafu"> <div class="foo bar">
I can get all these elements in an array like this:
$ (".foo,.bar")
My question is - is there an elegant way of getting the index (in this array) of the element that has the "snafu" class? Or should I just iterate through the array until I find the wanted element and then remember its index?
I'm having a problem on: [URL] I've got a menu on z-index:0; and a footer on z-index:1; if you're doing a mouse over, the menu pops up under the footer. But the menu is longer than the footer (it's a png image) so you see the menu stock under it what isn't exactly the meaning. if there was a overflow-bottom:hidden; it's was solved but now i don't know what to do!
I am just wondering if jQuery has to be included within every .html file (considering the page does not use any CMS). Is it possible to include jQuery in index.html only but have it accessible in any other page?