JQuery :: Create 2 Loops, The Inner One I Had Working As Below, Until Tried To Add The Outer Loop Which Iterates Through The Tables?
Apr 8, 2011
Having a tough time integrating the 2. Trying to create 2 loops, the inner one I had working as below, until I tried to add the outer loop which iterates through the tables
<script type="text/javascript">
// <![CDATA[
var i=0;
[code]....
View 7 Replies
ADVERTISEMENT
Oct 4, 2010
I want to avoid the inner DIV to expand the outer DIV when I hover over the outer DIV and fadeIn the inner DIV. How can I hover over the outer DIV and show the inner DIV without the height of the outer DIV expanding?
View 1 Replies
View Related
Nov 27, 2010
How would I make this into one Loop using all same variables? Right now I can only get his program to work with separate loops
Here is the Coding
script type="text/javascript">
for (var i=0; i<date.length; i++){
document.write("<td>"+date[i]+"</td>");}
</script>
[Code]...
View 5 Replies
View Related
Feb 27, 2010
I have to create a pyramid with nested for loops in javascript. This wasn't a problem until my professor asked us to mirror the pyramid. this is the code i have so far:
<script>
This part of the program works. What I'm having trouble with, is placing spaces and x's on the left side so that the triangle appears like:
I saw a few thread that had the right half of this triangle upside down, but I couldn't figure out how to flip it and fill in the other side. I'll attach the .html file so people can run what I have so far.
View 1 Replies
View Related
Nov 21, 2009
I really can't figure out why it's not working in IE. The only problem I can think of would be using nested loops. Here's the part of the code that isn't working. It's not generating an error, it's just not returning anything. I know you guys hate when I post entire code, so I trimmed it down as much as I can. It's referring to an already stated xml document with xmlDoc. And it's goal is to return a table of rows that meet certain criteria. If you can see any syntax errors that explorer would not like, that's really what I'm asking for.
[Code]...
View 6 Replies
View Related
Feb 23, 2011
i have images of business cards and i want to create a table to populate for each card. i created an array for the business cards to switch out of a table when i click on a radio button. can i just create a function table() then write ocument.getElementById("cardTable').style.?("<table border = '1' />") and so on to make a table.
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
[code]....
View 8 Replies
View Related
Jul 10, 2009
Wonder if there is a way to have my Drop-Down box selections create individule single row/dual colume tables for each item that was selected from the drop-down box. An example would be:
1: I selected 3 items from my drop-down box at one time (my drop-down box allows multiple selections).
2: I click a button call "Create Template" and three new single row/dual colume tables are created with the names if the items.
Here is what I have so far, but need a little help. Notice I have added the three tables in to show how it should look but this is for information only as these should be created automaticaly.
[Code]...
View 1 Replies
View Related
Jul 14, 2011
I am having a problem of getting mouseover event work on a webpage which is pre-populated by a third party tool twiki. The html code is something like this:
HTML Code:
<table cellspacing="0" id="table1" cellpadding="0" class="twikiTable" rules="rows" border="1">
<tr class="twikiTableOdd twikiTableRowdataBgSorted0 twikiTableRowdataBg0">
On the condition of knowing what the table name (always going to be table1) will be, can I write some javascripts to make the mouse hover effect work.
Here is the code I use but I can't get it work somehow.
CSS
HTML Code:
<!-- highlight --> <style type="text/css">
tr:hover, tr.highlight { background-color: #aaa; }
[Code].....
View 1 Replies
View Related
Nov 24, 2011
Not really sure why this isn't working. I've mirrored this webpage from a friend's page - everything is literally identical, save for the references to the databases. His works, and mine doesn't. Here's an example of one of the tables I'm trying to sort:
[Code]....
View 12 Replies
View Related
Oct 26, 2010
How can you create a multidimensional array with an each() loop?
The each function has to loop trough the .ui-selected object, and put all id's and the offset in an array ...
This is the code I was playing with .
Code:
function sendAjax() {
var files = new Array();
$('.ui-selected').each(function(index) {
[Code]....
View 4 Replies
View Related
Nov 4, 2010
I am not sure if this is possible, but I want to create a multiple vars dynamically, for instance, these are the vars I create manually,
Code JavaScript:
var left_1 = $('.column-global.left .item-global').eq(0);
var left_2 = $('.column-global.left .item-global').eq(1);
var left_3 = $('.column-global.left .item-global').eq(2);
but the problem is I only need two or one vars above sometimes. but three is the max.
so I am thinking of passing a parameter into the function to tell the code to create either 2 or 3 vars,
Code JavaScript:
// I declare empty vars first
var left_1;
var left_2;
[Code].....
View 2 Replies
View Related
Nov 3, 2010
I am trying to make some changes in Prestashop, an ecomerce platform that make use of jQuery library.
I just found out the way they do the onmouse over efect for the different pictures of a particular product.[code]...
View 4 Replies
View Related
Dec 7, 2011
[URL] this works in firefox but in ie I get an error Webpage error details
[Code]...
View 5 Replies
View Related
Jul 21, 2010
I have while loop, where something is defined via ID, I called it pin_click.
So of course there are a few entries.
And I have the following Code:
Somehow, this Code only works for the first element, I get out of the while loop. The other elements of the while loop ( which have the same Button ) are just doing nothing, even no action in Firebug.
View 6 Replies
View Related
May 5, 2010
I'm trying my first bit of jQuery code but am familiar with Java programming. I'm trying to create a function that loads a div with an image in it, which will fade in and then after 4 seconds move onto the next image. I want it to create an infinite loop but it doesn't work.
<script type="text/javascript">
$(document).ready(function ()
{
[code]...
View 4 Replies
View Related
Jul 23, 2009
</div><div>I've got a problem with IE6 and I need to basically find the width of the "header" DIV and make the "secondLevel" DIV match it. So, I guess I need to target IE6 specifically in the code. Here's what I have:
</div>
<div>
</div><div><div><div id="header"></div><div><span class="Apple-tab-span" style="white-
[code]....
View 4 Replies
View Related
Jun 26, 2009
I cant control the function between the outer and inner fuction. as I use a top.out1() in the children object. I cannot call the function run
within the $(document).ready(function() { function inner1(){alert("alertinner")}}
the question is:
1.How can I call the function inner() directly by the object children svg page?
2.How can I call the function inner() by the function outer1()?
3.How can I call the function outer2() by the function inner()?
<script type="text/javascript">
function outer1(){
alert("outer1alert");
}
[Code]....
View 4 Replies
View Related
Dec 11, 2005
What about if I had something like this where a for loop creates all the variables for you...rather than having to write them out on individual lines like so:
for(i = 0; i < myForm.elements.length; i++) {
tempControl = myForm[i];
var e = tempControl.name;
var [e] = document.myForm[e].value;
}
As oppose too:
bodyChooseColour = document.myForm.bodyChooseColour.value;
bodyChooseFont = document.myForm.bodyChooseFont.value;
bodyChooseFontSize = document.myForm.bodyChooseFontSize.value;
bodyChooseFontColour = document.myForm.bodyChooseFontColour.value;
etc...
However, the for loop does not work...Firefox JavaScript console reports 'Missing variable name' pointing to the 'e'.
View 2 Replies
View Related
Oct 14, 2010
I try to use some of the OOP.
function Tag(name, value, x, y){
this.name = name;
this.value = value;
this.x = x;
[Code]....
View 12 Replies
View Related
May 9, 2009
I'm trying to add <option> elements to a <select> list. It isn't going too well! The option elements are years from 2004-2013. My code below successfully increments my year variable, but I'm obviously going awry with how I'm writing to the document. At the moment I get 10 separate select boxes instead of the single select list containing the 10 options for each year.
View 2 Replies
View Related
Feb 11, 2010
I am working on a project where I need to redo the same thing with new variable names
Code JavaScript:
var paper1 = new Raphael('img1', 500, 500);
c1 = paper1.rect(0, 0, 50, 20, 5);
var paper2 = new Raphael('img2', 500, 500);
c2 = paper2.rect(0, 0, 50, 20, 5);
I would like to be able to do this with a for loop. So in the above example I would want paper+i, img+i, and c+i was trying eval("paper"+i) but didn't work.
View 1 Replies
View Related
Jan 18, 2011
How do i make it so that when there is an event insidean iframe on the page, it affects and can call a function from the outerpage? (that houses the iframe
View 1 Replies
View Related
Jan 12, 2011
<html>
<body>
<script language="JavaScript1.2">
//change 1 to another value to alter the scroll speed. Greater is faster
[Code]....
View 1 Replies
View Related
Oct 22, 2011
Is it possible to create a loop using code to play a song on a webpage? Or does the while statement have to produce numbers like 1, 2, 3? I don't really understand what types of things I am allowed to use when creating a loop.
View 2 Replies
View Related
Jan 27, 2009
I'm trying to create an associative array in javascript from within the loop that sets up my html table. I can't get my head around assigning the associative key-value pair (probably not the best way of putting it). I've written the below in php. What's the equivalent in javascript? The => is the part that's baffling me.
PHP Code:
$test_array[] = array ([INDENT]'seller_id'=>$seller_details[$column]['seller_id'],
'products_id' => $item_details[$idval]['products_id'],
'shipping_price' =>$item_details[$idval]['shipping_price'])[/INDENT]
View 3 Replies
View Related
Oct 13, 2009
I am trying to create a button that when clviked on it will pop up 9 error boxes at random and the user clicks onthem as fast as he/ she can and when the error oxes are done there is a message that asks if you want more here is my code:
View 1 Replies
View Related