TreeMenu - Complex Disappearing Problem

Jul 23, 2005

My web page has one unordered list that disappears in Firefox. The
unordered list in question has the class="dir". I double-checked the
source code and verified the markup's semantics. Everything looked
fine. So I placed the code in the W3C validator and it passed with no
errors. Then I placed a regular unordered list with no class before
the previous unordered list. Upon a reload, the new unordered list did
not render, yet the unordered list with the "dir" class appeared. The
whole situation was strange.

After reviewing web page with the DOM inspector, the disappearing list
had been assigned {display: none}. Apparently, my JavaScript for
TreeMenu functionality was the culprit. I attempted to debug the
JavaScript. Sadly, my JavaScript knowledge is elementary even though I
successfully implemented the approach from
http://www.bakketun.net/listmenu/. When my web page became more
convoluted, the JavaScript began faltering along its seams.

Here are my discoveries while debugging (using Venkman). The
elementHasClass() should match the "element.ClassName" with
"TreeMenu." If not, the function return false. Unfortunately, another
function passes the div element to the setMenu(); then the said
function assign the display attribute; block or none.

But I can not pinpoint where the code goes down the wrong path;
needless to say develop a solution.

Please review the site below and let me know if you have suggestions.
View source and search for class="dir"; the disappearing list has the
text "test." Problematic code JavaScript area may include the line
listed below. This posting was intended as a short description.
Further clarification will be gladly provided if someone shows
interest in a particular aspect. I have pages of notes on the
debugging process.....

View 1 Replies


ADVERTISEMENT

Modification Of TreeMenu Code

Jun 29, 2009

I am using the treemenu from here [url] It works great, but my clients wants to have the functionality that (if there was only two levels) that if you expand into one level and view all the sub items and then click on the another main node that it would contract all existing items and then display the new sub node?

View 2 Replies View Related

JQuery :: Changing "hitarea" On Treemenu?

Jun 24, 2010

get my menu to drop down when people click on the head-menu alternatives "text".

For an example

* Example 1
* Example 2
* Example 3

I dont want the dynamic drop down effect to activate when u click on the "*" <-- star sign, instead Id love to make the "Example 1" clickable as Hitarea for the dynamic drop down effect to apply...

I will send the code for both CSS in which the "hitarea" is explained as well as the HTML treemenu code :)

HTML Treemenu code:
<html>
<head><title></title>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.4.2.min.js"></script>

[Code].....

View 3 Replies View Related

Complex Script Creation.

Sep 12, 2007

I need help putting together a script that will take all standard text on a page and translate it to another language (spanish or german).

So if I post this script on my blog at any given time (in the comment section) it will change the language for all viewers. Where do I start? Will this work on both FF and IE6/7?

View 4 Replies View Related

Parsing Complex User Inputs

Jul 23, 2005

I have been handed the task of updating and maintaining a web
application, written in ASP and Javascript, that takes complex
user inputs in HTML form and submits them to server-side ASP
pages for processing. The problem is, the user inputs can
become very complex, and the way this application was developed,
the inputs are all concatenated into monstrously long strings
of text that are then submited as <hidden> inputs in HTML forms
and parsed by the server-side ASP. This results in hideous strings
that go on and on like
johnsmith~1232^01^Yes^no~~|43|april

etc. etc. This code is an incredible pain to maintain and update.
There has got to be a better way to do this. I am required to
use javascript and vbscript in ASP pages on the client side,
and ASP pages for processing data on the server side. I can't
switch to a different technology, or use .NET, or anything like
that. I have to use JS and VBScript to get intricate and lengthy
user inputs and submit them for processing. I would like to
store these inputs in objects somehow and then get the data
from those objects, if possible.

View 11 Replies View Related

Can't Move A Complex Object From One Frame To Another

Jul 20, 2005

I am trying to implement JavaScript that will remove a table row in frame [left],
and append it to a table in frame [right]. The browser is IE6.

I've played with several approaches for quite a bit of time, but none of them seem
to work. The removed row does not seem to be able to go across the frame boundaries.

Here is the code in the target frame [right] that is invoked by a button in
frame [left]: Code:

View 1 Replies View Related

JQuery :: Getting Td Value - In Complex Table Structure

Jan 3, 2012

I have a nested listview in my app which creates table inside table at runtimei need to get value of td from second tables tr where i have row number of first tables tr?

<listview1>

View 6 Replies View Related

Problem With SetTimeout And Complex Args

Apr 19, 2006

I'm trying to add a timeout to the mouseout behavior, to keep the menus open for a split second after the user mouses out. (IE 6 only for now).

I'm having trouble using the the setTimeout function with a complex statement. Here's the function:

function mouseOutActions(el) {
//el.className=el.className.replace(new RegExp(" sfhover"), "");
setTimeout(el+"'.className = '"+el+"'.className.replace(new RegExp(' hover\b',''),'');",2000);
}

View 2 Replies View Related

Using .append To Build A Complex Menu?

Sep 23, 2010

To build a menu block which should be switchable with hide/unhide of the menu items, I'm using .append html.

navigat += '<h3 class="infoH3"> <a id="' + menuID +'"'
+ ' href="javascript:slideMenu('' + menuSlider + '');">'
+ menuName + '</a></h3>';

[code]....

At the moment I build those html elements line by line. Also OK .. as far as the resulting string has the opening and closing tag, eg.

"<li>aMenu2</li>".

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 '.How to change it -- NOT to have that "</div" added to it?

View 15 Replies View Related

Referencing Complex Table Cell Contents

Aug 1, 2005

How can I access a DIV item in a given row/column, which itself is a cell of
another table of some other given row/column??? I.e. an element of a table
in a table! I have been trying to use GetElementByID, by Name, etc.. but not having much
success.

View 3 Replies View Related

Complex (?) Q: Run Asp Script / Reload Form List?

Oct 6, 2005

What I'm currently doing is returning a list of images in a directory via a form list. I'm an asp guy so vbscript is the way I'm doing this:

<select name="image" size="10" onChange="generateimage(this.options[this.selectedIndex].value)" align=left>
<%
Dim FSO
Dim Files
Dim File
Dim Count
Set FSO = Server.CreateObject("Scripting.FileSystemObject")
Set Files = FSO.GetFolder(Server.MapPath("./moms_images/")).Files
Set FSO = Nothing
Count = 0
For Each File In Files
Select Case LCase(Right(File.Name, 3))
Case "jpg", "gif", "bmp", "png"

Response.Write "<option value='" & File.Name & "'>" & File.Name & "</option>"

End Select
Next
Set File = Nothing
Set Files = Nothing
%>
</select>

What I *hope* to be able to do is allow a file upload (also vbscript) from a pop-up window and, when the upload is complete, refresh the list (above) without reloading the page (AJAX fever, methinks)

The only thing that would make it even cooler would be to auto-select / display the newest upload otf (I use dhtml to display the images on-select ala dynamicdrives example).

I realize this is a fairly tall order, but would be greatful for any pointers or weblinks for this js-challenged soul to use to get started.

View 2 Replies View Related

IE 5+ Bug? How To Store Complex Objects Whilst Changing Pages

Jul 20, 2005

Does anybody know why IE5+ does *not* honour array objects (like a table)
across a session?

Example:
Frame A contains a var tableVar which is set via form Frame B (on init)
using top.A.tableVar = document.getElementById("someTable");

As long as Frame B is *not* 'refreshed/ reloaded' witk another page the
variable in Frame A is ok.

However, when the page is changed it just 'kills' the rows in tableVar.rows
(the lenght just turns to 0).

When tested with something simple like a String (instead of a table) the
above mechanism works as expected.

After two full days of mucking about this is strting to smell funny.
Does anybody have any idea/ suggestion as to the what and/ or why of this
behaviour.

View 9 Replies View Related

JQuery :: Getting Selected Option From A Complex Drop Down List?

Oct 20, 2011

I am having trouble getting the selected option in a list of more than 20 items in sharepoint, The code below works for lists of 20 or less but not for lists of greater than 20. If any one has a snipet of code that will enable me to set a variable with the selected value from a complex dropdown it

[Code]...

View 1 Replies View Related

Adding Google Maps With Custom XML To This Complex Site?

Jul 23, 2009

Enter a search term and:1) Google Blog Results show up2) Twitter Search Results show up3) Google Maps with custom xml data shows upI have accomplished the first 2 parts - http://www.justincener.com/xmlI now want to add in Google Maps. The idea is to type in a athlete's name and have results come back from Google Blog Search (done), Twitter (done), and Google Maps. I only need to show 2-3 choices, so I want to create a custom Google Maps XML doc that corresponds to a few search terms. For example, when someone types in "Tom Brady", I want a Google Map to also come up along with the Google Blog and Twitter Results.

On the map, I want to plot 4 points showing his 4 next games. I think I know how to create the custom XML for GMaps, but I don't know how to implement it so that when someone enters input, the GMaps will show up. Can anyone get me started in the right direction please?Here is the JS so far that handles Google Blog Results and Twitter Results:

var errorCount=0;
var twitter_link;
function searchGoogle(query)

[code]....

View 16 Replies View Related

JQuery :: Complex Form Hiding Input Depending On A Tick Box

Aug 5, 2009

I am writing an accounting sofware, and I have difficulties with the form used to enter the debit and credit for a given transaction. I have used the Jquery validation plugin demo, but I don't know how to hide a specific input cell and replace it by blanks. In accounting, you have either a credit or a debit. So I have an indicator tick box at the beginning of each line which defines whether the line is a debit or credit, and if so it hides the credit cell or debit cell.

</head>
<body>
<h1 id="banner"><a href="http://bassistance.de/jquery-plugins/jquery-
plugin-validation/">jQuery Validation Plugin</a> Demo</h1>
<div id="main">

[Code].....

View 1 Replies View Related

JQuery :: Moderately Complex Function - Apply The Href Attribute

Feb 1, 2011

This isn't working. I'm using the code below to try to apply the href attribute of the first td in a row with class DataFormListTDDataGridItem and apply it to all td elements in that row (effectively want to make entire row clickable and direct it to the href specified by the href attribute in the first td of the row) -

Table looks like this -

View 9 Replies View Related

Iframe Disappearing / Why Is So?

Mar 2, 2009

I am designing a page that contains a dropdown menu with a list of options, once one of those options have been clicked, a certain page should be displayed in the iframe.

This works fine. However, for some reason, when i move my mouse off the iframe, back on to it then off again the iframe disappears.

View 4 Replies View Related

Disappearing Content In IE7?

Jun 7, 2010

In IE7 only, I have an issue with disappearing elements/styling. First, my h3 header disappears. The space that it occupies is partially there, but not text is visible, nor is the background or the bottom-border assigned to it. In addition, other divs below the h3 are missing their bottom-border. However, spans nested inside of divs missing their bottom border show the border. Lastly all but one the activity divs is missing its background and the one that does show it, the 4th one, only shows it below the "date" span. Here is the HTML:

[Code]...

View 3 Replies View Related

Disappearing Div IE7 / Resolve This?

Jun 19, 2010

Code...

In IE7/Windows the left vertical navbar disappears. I have used every hasLayout trick I know. Can anyone put a finger on it? I'm working with legacy code to complicate matters. code...

View 1 Replies View Related

Disappearing List Bug / Fix It?

Mar 24, 2009

Firstly I am using Scriptaculous to implement the sortable list but have looked there and not been able to find any reason for this to be occurring.

I have a list of sortable items, there are 2 droppables enabled with
the list, 1 to delete it and the other to place a "linked" item in
another sortable list utilising a relational database.

This all works fine except for this bug:

When I add an item to the second list it goes there no problem and I
can sort that list, but as soon as i try to do anything with the first
list all the items in the list disappear. If I manually refresh the
page then they all appear again as normal.

Im using AJAX with my site as well and have a separate method and php
call to insert from 1 list to another.

Im not sure where I this bug might be, there is a lot of relevant code
so I figured id ask before posting it incase someone can assist where
the error might be or perhaps a bit more specific in terms of which
code I need to post.

View 4 Replies View Related

Disappearing Image Using Png Fix?

Oct 5, 2009

I'm implementing the png fix for ie6 using the following code:

Code:
var arVersion = navigator.appVersion.split("MSIE")
var version = parseFloat(arVersion[1])
if ((version >= 5.5) && (document.body.filters))

[Code]....

Really not sure whats wrong with this code. how I can fix this cause it reads the the code but it makes my images dissapear.

If there is a better method for PNG fix

View 1 Replies View Related

Disappearing Date Bar

Feb 25, 2004

I have a date bar inserted in my header. The date bar shows up when I use dreamweaver testing. but if I link to another page during testing the date bar is gone. Online I cant get it to show up at all. Code:

View 2 Replies View Related

Disappearing Output / What To Fix It?

Jul 23, 2011

I have a html form that is submitted with a submit button code...

if I display the output using the alert methods(now commented out) they work fine. I was hoping to display my messages in the div with id of output.
When that didn't work I tried to see if I could send anything to the div.
When I click the submit button the message "WTF" appears for at most half a second. I'm hoping to get it to stick around. I'm sure it has something to do with how form submission works. Maybe I need to submit to the same page? can I do that with JS?

View 1 Replies View Related

Opera Bug? -- Disappearing <form> ?!

Jul 23, 2005

In Opera 8.01 (Linux; Build 1204) and in Opera 7.54 (Windows XP; Build 3865),
my form disappears from the HTML markup (below). To summarize:

1) In a <script> block in the <head> I create a form element (part of
object/feature/bug detection).
2) There's a <form> element defined in the <body>, with the id 'theForm'.
3) The onload function tries to access that form, and also counts the
total number of forms in the document. It fails to get a reference
to the form; the count is 0. Code:

View 4 Replies View Related

JQuery :: Disappearing Box On Hover?

Mar 7, 2011

This code attempts to have a blue box appear when red senses the mouse hovering. I can get the blue box to be visible, but when the mouse leaves to hover over the blue box, it disappears! Not good. How do I make it stay?

I want to put a form in the blue box, but at this test, the blue box disappears when the mouse leaves the red bar. I put in code to keep the blue box visible on mouse over, but it conflicts whit the second "red.hide" function, animating open and closed. I've tried to put an "if statement" in the second "red.hide" function, but results were inconclusive.

How do I keep the blue box open?

[code]
<script type=text/javascript>
$(document).ready(function(){
$(".blue").hide(0,".blue");

[Code]....

View 2 Replies View Related

Div Content Disappearing On Refresh In IE7?

Jan 28, 2009

When I refresh the page in IE7 this div content is disappearing:

for(cnc=0; cnc<common_name.length; cnc++)
{
var comname = document.createTextNode(common_name[cnc].childNodes[0].nodeValue);
if(common_name.length>1 && cnc<common_name.length-1)
{
comname.appendData(', ');

[Code]...

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved