Read The Value Parameter "codice" And Show / Hide Items In Relation To That Value?
Nov 30, 2010
I used the onchange event in select:
Code:
<select name="menu"
onchange="window.location.href='?codice='+this.options[this.selectedIndex].value;">
[code]....
View 24 Replies
ADVERTISEMENT
Feb 13, 2010
I have a div that should be hidden on default, but when a certain URL parameter is present, then the div is visible.
[Code]...
View 3 Replies
View Related
Jul 20, 2005
I'm trying to get the following script to work, but I'm getting an error saying "rowID is undefined".
function showhide(rowId) {
var showRow = "Edit_" + rowID
var hideRow = "View_" + rowID
document.getElementById(showRow).style.display ="block";
document.getElementById(hideRow).style.display = "none";
}
I'm building the html using an xsl stylesheet, so I'm passing a
dynamic name attribute as the rowID parameter. When I look at the HTML
source, it looks fine. Please tell me where I'm going wrong...I'm sure
it's simple, just not to me! Thanks, Kathy
Here is a sample of the row source:
<tr id="View_Label" bgcolor="red" valign="middle"
style="display:block">
<td width="70%"><h3>1.*Label</h3></td>
<td width="30%">
<input type="button" name="Edit" value="Edit"
</tr>
....then another row with ="Edit_Label" is used for the input boxes,etc.
View 2 Replies
View Related
Dec 15, 2011
I have a UL group with multiple LI items, and each LI has a DL with a DT and DD inside. What I am trying to do is show EACH LI's DT, but not the DD. The DD will only show once the DT has been clicked (except for the first, which should be visible on page load.here is the structure code ... I am struggling to make this work using jQuery show/hide functionailty.
<!-- LIST -->
<ul class="examples">
<!-- ITEM #1 -->
[code]....
View 1 Replies
View Related
Jul 18, 2010
I have one long text field in HTML to feed text as input in my page. the entered text will be shown as output text after some operations.In this context, i need to display few text(say 200 chars) only and i need to provide READMORE link/button which would show me the complete content of that text field. I need to achieve this shortly!
View 2 Replies
View Related
Sep 12, 2011
I am trying to hide/show table when hide/show button is pressed
Problem: The code works fine when I remove 'slow' from line 10. But with 'slow' in line 10 content of toggleButton doesnt change from Hide to Show when pressed.
Code:
View 1 Replies
View Related
Jul 30, 2009
I have a select list that is populated from a mysql DB with 3 names in it. I've created buttons to allow my users to move the names up or down inside the select list.
I'd like to put a save button at the bottom of the form that when clicked, runs a jquery function to read each value of the list and put them into a hidden tag or something that gets submitted to my next form.
I've been trying different combo's of items I've found on the internet, but nothing seems to work for my application.
I have considered updating the table everytime an item is moved, but I just dont have the jquery/javascript experience to pull it off.
View 3 Replies
View Related
Jan 28, 2011
I have a php-loop to read an xml file (id and comment). Now to my question, must i write the Script into the loop or can i assign via a parameter (or whatever) in the header Script?
[Code]...
View 1 Replies
View Related
Oct 29, 2010
I have 3 menus. In the first menu I select an email adress. According to the email selected, in the second menu appears a problem list with an option called "Free Text"
I would like that, ONLY when a user choose email1 with the second option "Free Text", OR when a user choose email2 with the unique option of "Free Text", in the third menu appears the voice "Choose priority ..." with the other two options: urgent, normal ..
With this code, now the goal is ok only for email1, with email2 happens nothing ...
<head>
View 1 Replies
View Related
Apr 27, 2009
I want to modify the appearance of an unordered list by assigning a value to each list item and then setting the custom properties for each list item. At first I was thinking of assigning a number to each list item and then controlling it's properties via that number.But now I'm wondering if jQuery can do a search for the list items content.
View 4 Replies
View Related
Aug 18, 2010
I'm currently working on this page. The problem I have is when you hover over each image it fade's into color, I also want the text below to go from one color to another. Also, I want the image to fade in/out if you hover over the text below the image.
I used this tutorial and I'm using the two image technique which has the following jquery:
<!--
// wrap as a jQuery plugin and pass jQuery in to our anoymous function
(function ($) {
$.fn.cross = function (options) {
[Code].....
View 4 Replies
View Related
Apr 9, 2010
I wish to display some text dynamically below a series of images. I need to get the position of each image, and so I require some way of getting the position of an image in relation to the div holding the images.
I managed to get the position of the image in relation to the entire page, but this was no good for my purposes.
View 7 Replies
View Related
Apr 26, 2010
I have multiple ul with multiple actions on 'button' changes, i.e.:
<ul>
<li></li>
<li></li>
<li></li>
<li></li> <--this is to be hidden
</ul>
[Code]...
The UL's are to show top 3 items let's say, and hide the rest. When items are hidden on page load [top 3], the Show button is on. When that is clicked, it shows all LI's for that UL and button/link text changes to Hide, and hides all other items of all other items of other UL's apart from their top 3 items.
When the items show, and the text/image is changed to Hide, hide's on click should also hide that UL's items and only show three items for that UL. 3 items are always shown.
View 24 Replies
View Related
Aug 19, 2010
I am new to jQuery and I am having trouble with the syntax, selectors and refining when trying to create functions. What I am trying to achieve: I have a gallery consisting of a ul with images placed in vertically stacked list items. The ul is in a fixed size wrapper with overflow:hidden so only the first list item displays. The user clicks a button and the first li is hidden using hide(400). This makes the other list items flow up and reveals the second list item within the wrapper window.
When the last list item is visible, the click will show(400) all of the list items again, causing them to flow back into order and only the first item will be showing again. Further clicks will repeat this process from the beginning. I know what I would like to do in terms of code, but I am having trouble with the correct syntax, selectors and refining. I have included the html and description version of the code I was hoping to create. I know the code could be much more efficient by placing functions into variables and testing for true false, but I would like to see the steps with my longer code description for learning purposes. Perhaps afterwards someone can blast it off in two lines.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "[URL]">
<html xmlns="[URL]">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>list hiding test</title>
<style>
.listWrapper {
height:25px;
width:380px;
background-color:#d6d6d6; .....
View 2 Replies
View Related
Jul 9, 2008
I have found many nice filter plugins, that let you filter a table,and hide the rest of the items, and only show the item that matches
what was entered into an input dialog.What I would like to do, is use an unordered list instead. Is there any plugins that support this? I have not been able to find any..
View 1 Replies
View Related
Apr 19, 2011
I have a website at: [URL] The page works on Google Chrome, Mozilla Firefox, and IE-9. It sort-of works on IE-8, however, the problem is that on IE-8, there is about 2 seconds where everything is shown on top of everything else in a mess. This is bad.
The website is unusual in that it uses a menu to slide screens from right to left. This has implications. For instance, I need the menu to appear on all screens, so I use absolute positioning, and then use javascript to calculate the center position. The same goes for a logo image. And on top of that, some screens (which are really DIVs) have items positioned by absolute and relative positioning within them, and those positions are often calculated via javascript (and then set).
On IE-8, the result is not good. I think what is happening is that the browser first shows everything as it appears before javascript is run, and then slowly the javascript is run, which puts everything in the correct position. So initially, not only is everything in the wrong position, but different DIVs appear on top of each other.
View 1 Replies
View Related
Jan 22, 2009
I am having problems, basically I have a set of nested lists I need to show and hide
Code:
<ul id="smenu3"><ul id="smenu4">
<li>stuff here..</li>
<li>stuff here..</li>
<li>stuff here..</li>
</ul><ul id="smenu5">
[Code]...
I always want "smenu3" to show with "smenu4" and "smenu5" collapsed... When the user clicks the link, it calls a javascript function to show "smenu4" like so...
[Code]...
View 7 Replies
View Related
Jul 26, 2009
I'm trying to make a menu with jq and I create some function but not work as I want.
Js file:
function EBID(k) {
return(document.getElementById(k));
} function hideMailMenu(e) {
var mailMenu = EBID('mailMenu');
mailMenu.style.display = 'none';
} function showMailMenu(e) {
document.onmouseup = hideMailMenu;
var mailMenu = EBID('mailMenu');
mailMenu.style.left = e.clientX + 'px';
mailMenu.style.top = e.clientY + 'px';
mailMenu.style.display = '';
}
HTML:
<a href="#" onclick="showMailMenu(event);"> Menu option</a>
<div id="mailMenu" class="mailMenu" style="display:none;position:absolute;left:0px;top:0px;">
some items
</div>
This show where I click not aligned above the link. How I do to show it down the link and aligned?
View 1 Replies
View Related
Feb 17, 2010
So I am trying to make a form that will eventually take the user to a specified link. It is a form that uses drop down menus. I based this off of someone elses code (with permission :)), but it shows everything <= user input. I cannot for the life of me figure out how to make it only show only one of the next options.here is the JS code:
<script language="JavaScript">
function ShowMenu(num, menu, max)
{
[code]....
View 56 Replies
View Related
Oct 10, 2011
I'm using a bit of Javascript to display content based on the dropdown selection:http://jsfiddle.net/mcgarriers/wjLXk/However, I would like it when the user selects "show two" that it shows the 2 div elements rather than specifically div2.And for "show three" it would show all 3 divs.
View 2 Replies
View Related
Apr 26, 2010
To build a menu block which should be switchable with hide/unhide of the menu items, I'm using .append html. The code idea is this:
[Code]...
As can be seen from above posted code there is a line "<div id="' + menuSlider + '" style="display:none">". Appending that -- AFAIS -- the .append is automatically (????) adding "</div>" which closes the statement. That breaks my idea of the whole concept! The menu part isn't included in the 'menuSlider '. QQ: How to change it -- NOT to have that "</div" added to it??
View 2 Replies
View Related
Jun 22, 2009
It is possible to make a script that hides the element clicked and this way hide the items I want.
View 1 Replies
View Related
Aug 11, 2005
I am trying to hide some form elements in a form by default and show/hide
depending on which radio button is clicked. This is what I have but it is
not working: Code:
View 2 Replies
View Related
Sep 6, 2005
I'd like to have a show/hide widget on my web site, kind of like "show
details" / "hide details" in Google Groups. Is there a tutorial
explaining how to make them? Google's is a bit complex and it's easy to
get something wrong. If the browser does not support the required
features, I want it to generate a completely static page with the
"details" shown automatically.
View 3 Replies
View Related
Oct 26, 2009
Check this code:
<a>text</a>
<div id="pkg">pkg</div>
<div id="table_pkg">table_pkg</div>
I'd like to show table_pkg and hide pkg when I click on <a>text</a>. How can I do?
View 3 Replies
View Related
Apr 8, 2009
I am using some simple javascript to show and a hide a div
Code:
function showHide(d) {
if (document.getElementById(d).style.display == "none")
{
document.getElementById(d).style.display = "block";
[Code]...
View 5 Replies
View Related