ProjectID - JobID Row Remains Visible
Nov 26, 2009
I have a page that contains PHP and Javascript. I have a table of results, with two grouping stages:
- Month, Year1
- ProjectID1
- Job ID1
- Job ID2
- ProjectID2
- Job ID1
- Month, Year2
- ProjectID3
- Job ID1
- ProjectID4
- Job ID1
The problem is that when the ProjectID row is opened to display the JobID row, then close the Month, Year row, the JobID row remains visible.
Here is the code:
//JAVASCRIPT
Code:
function toggle2(id, obj) {
var matchingElements = new Array();
if (document.getElementsByClassName) {
matchingElements = document.getElementsByClassName(id);
} else { .....
View 3 Replies
ADVERTISEMENT
Jul 13, 2009
In the below code, the ajax-loader disappears before the html returned by .load is actually visible in the browser. How can I correct it?
[Code]...
View 1 Replies
View Related
Feb 9, 2009
I'm not sure if JS or regular HTML is best for this, but i'm wanting accomplish the same effect as the color box rollover on the site below. I can figure out the rollover but i can't get it to stay. Example, rollover the red box and the headband changes from black to red, roll off and it remains red. [url]
View 4 Replies
View Related
Jul 22, 2011
We are currently re-working a client's website and as I am not a javascript programmer I am having trouble understanding some of the code, and need help understanding why a certain variable in the code remains undefined.
What is happening is that the user is filling in 24 lines of 4 select boxes, in which there must be 1 and only one "m" and 1 and only 1 "l". The code changes the value of the box back to blank if the user has tried to enter >1 of either. The code then should check the line number and count the number of lines, but on debugging I see that the value of variables el and LineNo are undefined. I can't understand why when the function is called, the value "this" is used. i.e CheckLine(this) - this appears to have no value in the html code as far as I can see!
View 3 Replies
View Related
Oct 19, 2011
I am using Java(Structs framework) for developing my application.
User enter the values in text box in bottom of the screen.
Then the page is refresh that is Request will send to Application after that the Screen goes to Top. But I want the page where I send the Request...
View 1 Replies
View Related
Aug 2, 2007
I have a table with images in the cells. I'm using JSFX_ImageZoom.js to zoom, that works fine. The problem is if I don't define absolute positions for my images then when zoomed the rest of the page gets garbled. If I do define absolute positions then the zoomed image is "under" the surrounding images. Code:
View 5 Replies
View Related
Jun 23, 2010
I have the following code that don't work like i want it.
Code:
function hideDisplaySingleSuite(textstring) {
var myclass1 = new RegExp('\b'+textstring+'\b');
//Populate the array with all the page tags[code]....
For example.It show objects if I remove the if statement that checks if the class is visible.for example this shows a class and works.
Code:
function hideDisplaySingleSuite(textstring) {
var myclass1 = new RegExp('\b'+textstring+'\b');
//Populate the array with all the page tags[code]....
So my question is why don't this work on a class, it works on an "id"?
Code:
if (allPageTags[i].style.display ==''){
allPageTags[i].style.display = 'none';
}[code]....
I want to show the class if its not visible or hide it if it is visible.How can this be done?
View 4 Replies
View Related
Mar 8, 2010
I created an accordian menu which includes categories, sub categories and sub sub categories. Once you hover(css) on one of the menu options there is a hovering effect. What i would like to achieve now is that once a menu option is chosen that option remains highlighted (:active) until another menu option is chosen.
View 3 Replies
View Related
Apr 15, 2009
I'm receiving the following error: Error: uncaught exception: Syntax error, unrecognized expression: # However all the functionality of the script continues to work, I need to get rid of the error as it looks pretty bad on client's sites and want to make sure the script isnt doing anything funny. The basic set up is a number of Select boxes, When selecting an option in the select boxes, I loop through a JSON stock array to see if the item is in stock and to then enable / disable the relevant options in the other selects based on the stock record. The error (as far as I can see) appears on this line: $("#option" + nextid + " option").filter(function(){
[Code]....
View 1 Replies
View Related
Jul 20, 2005
I have a HTML content with some pages defined as <div>...</div>. One of them is visible while the rest is hidden (the visibility can be changed on client side). The problem: standard window scroller counts whole content (visible and hidden) so empty space is also scrolled. I'd like
it to behave as only visible content is to be scrolled (not empty space). The same applies to print (window.print). It prints not only what is visible, but also empty pages for these div's which are not visible.
How to set scroller (and print method) to take only visible content of page?
View 1 Replies
View Related
Aug 15, 2010
How can I keep the flyout visible, that's triggered with the "By Neighborhood"
hover?
My script:
<!--Sunday 100815-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
[Code]....
View 1 Replies
View Related
Oct 12, 2001
Is there a way to show something to visitors *only* if they have css turned off?
How many people do turn style sheets off, or have browsers that don't support it?
I have a great layout design idea, but without css on, it'll look awful. Most of the stuff I can get around, but not one item that'll make one area of the page almost unreadable . Unfortunatly, that one area is the site navigation ...
View 1 Replies
View Related
Apr 8, 2011
How can I tell if an element is visible or not when the elements parent is the one being set to visible or hidden? So what command would tell me if the hithere id was hidden?
HTML Code:
<div style:"display:none;">
<input id='hithere'></input>
</div>
View 2 Replies
View Related
Jul 23, 2005
Is there anyway to determine if a DIV with its overflow style set to
auto has the scrollbars visible? I have a dynamically built table inside
my DIV. If the table is over a certain height and the scrollbars appear,
I want to shrink the width of my table. If the table's height doesn't
exceed the div's height, I want the table to be the same width as the
div. Any ideas?
View 2 Replies
View Related
Jul 23, 2005
Is there anyway to detect if scrollbars were made visible in a
textarea? I'm not talking about initial setting of the scrolling
attribute, but rather whether scrollbars have been added either
horizontally or vertically based on the users text input?
View 2 Replies
View Related
Aug 10, 2011
After much searching and head-scratching (JS is not my forte!), I adapted some code to do what I want - well, almost! So here I am back again. I need to have three divs on a page, with each separate div changing onClick. Below is the code so far.
Two problems:
1) when I open it in a browser window both divs show, then the one disappears when I click on the second div leaving only the numbers. How can I change it so that both divs remain open?
2) Instead of the numbers [1], [2], etc. to change the divs, I'd like to have to just click on one single 'click here for more' to display the next div then return to the first after the last one. Can this be integrated or is it too late?
View 3 Replies
View Related
Nov 29, 2011
The site is [url]. A doctype is set.
The CSS for the navmenu is:
Works fine in all other browsers and versions. Affects about 5% of visitors, but one is my client :)
View 2 Replies
View Related
Oct 2, 2009
I have a mootools accordion in the website I'm building that uses two classes: "toggler" for the titles and "element" for the content.
I'm in the need of adding an input field at the bottom of the "element" DIV that the user has opened.
Problem is, every content of every different toggle has the same id="element".
The only difference is that the one opened has the visibility set to "visible".
Is there a way so I can write in that visible DIV from Javascript?
View 9 Replies
View Related
Oct 30, 2010
I understand how to make a div (table) invisible and then visible on a timer.. What I want to do is add a counter to my code and make the table flash 3 times and then stop with the table visible. all my code does right now is make the table flash on and off every 1 second. This is what I have right now:
<script language="javascript" type="text/javascript">
function magic() {
var d = document.getElementById('MagicTable');
if (d.style.display == "none")
d.style.display = "block";
[Code]...
View 2 Replies
View Related
Dec 8, 2010
Is there a way to trigger an event when an object (div or img) became visible in the user brower? (ie: the user needs to scroll down to see the div in his browser, then making it visible trigger an event that load the picture inside)
View 2 Replies
View Related
Apr 23, 2011
Basically i have a function that depending on which picture you click (one for "yes" and other for "no") it will make visible a textarea .
However right now if i click in "yes" it will display me the textarea for yes, and afterwards if i click "no" it will display both textareas, for yes and no. I want everytime i click on yes it will hide the "no" textarea and the same for when i click the "no" textarea, it will hide the "yes" textarea.
Code:
<!- * * * * * * * * * * * * O.S. Question * * * * * * * * * * * * * * * -->
Original Operating System ?</strong></span><div id="container">
<div id="left">
<img src="yes.png" onclick="document.getElementById('moreinfo22').style.display =
[Code].....
View 4 Replies
View Related
Aug 23, 2010
I have a code below my concern being tht when the first text box "Name" conatins a value of "TPU" then the sexong text box "Ref Number" should be visible else should not be visible.
I mean the Whole <tr> shall be visible only if "Name = TPU"
Code:
View 1 Replies
View Related
Jul 23, 2005
is it possible to make an select visible or invisible by selecting a checkbox.
View 1 Replies
View Related
Aug 11, 2005
I have a div that has an overflow set to auto. I would like to know if
the scrollbars are visible in javascript.
View 3 Replies
View Related
Jul 27, 2006
I have written a function to make visible elements with a certain id. however i intended it to be used to make visible multiple elements but it only appears to switch on the first element it comes to with that id. after that it appears to stop. i was wondering how i can adapt this function to make visible multiple elements, will i need a different way of referencing or can it be done through id?
function toggleLayer( layerID ) {
var style2 = document.getElementById( layerID );
if (style2.style.display == "block") {
style2.style.display = "none";
}
else {
style2.style.display = "block";
}
}
View 2 Replies
View Related
Jul 20, 2005
I have a javascript function that loops throught all text boxes inside
a form:
var elems = document.formName.elements;
for(i = 0; i < elems.length; i++) {
if(elems[i].type && elems[i].type.toLowerCase()=="text")
do something
}
This way it goes through every single text box in the form.
But in my form structure, some form elements (text boxes included)
are inside invisible divs.
And what I actually want to do, is to check only the text boxes
that are not inside invisible divs.
Is there a way to say in javascript something like:
choose only textbox that is not inside element (div) whose
className='invisible'?
Or maybe I should try a different approach, instead looping through
all form elements?
View 1 Replies
View Related