Troubleshooting DHTML And Javascript

Oct 20, 2006

I am testing in IE7.

I display one of several spans when the user mouses over some code.
Inside the span are several tabs. Clicking on the tab triggers a JS
function that hides the "current" text for the span, then shows the
"new Current" box. It's a constantly revolving door- turn off old,
turn on new. Switch from one span to another and reset the fields.

When I switch between different "spans" then switch back, there are
ghost form elements on the screen (a text area, a blank button) that
appear near where they should be. The section that I was last on does
not display. This occurs when switching between different spans.
HOWEVER, when I set a javascript alert to display what the old visible
and new visible divs are within each span, none of these problems
occur- everything displays correctly. It's as if the alerts "reset"
the javascript display in some fashion. The errors only happen when
the alerts are not on.

Does anyone know why this might happen or if it's a common occurence
that these problems disappear when an alert is used? If I don't use an
alert, how do you display JS variables during testing. Here are some
of my JS functions. Code:

View 2 Replies


ADVERTISEMENT

Troubleshooting Javascript In IE?

Jun 19, 2007

I'm having a problem with some javascript code in IE. In IE 7, it only happens when I refresh the page. It happens on page load in IE 6. Looks fine in FF and Safari. How do I figure out why this is happening?

View 4 Replies View Related

DHTML / Javascript

Apr 20, 2004

I have a form that will display either text boxes to edit a start and end date or just display nothing depending on the selection from a <select>. I am using JavaScript and DHTML to accomplish this and the code below works fine. When the page loads my <select> will have a value already.

My question is how do I get the correct block of code to show up when the page loads depending on what is already selected? I can't use an onLoad in the body tag because I am unable to edit the body tag. Code:

View 2 Replies View Related

DHTML, JAVA, JAVASCRIPT?

Apr 19, 2001

Is DHTML a language? or is it a composition of JavaScript and css? Does Java(not javascript) has something to do in it?

What is actually the best to create client-side dynamic pages?
I know JAVA is used to create applets but I am not sure of wich is the most powerful....

Also, wich are the newer versions of all the above languages?

View 15 Replies View Related

Changing Text With Javascript/DHTML?

Jul 23, 2005

Is there a way to change the displayed text on a web page using some
combination of Javascript and DHTML? NOT in a text box. As far as I
know (with my limited knowledge) the only way you can do this is with
a textbox or images, which is not what I'd like to do. There's gotta
be a way to do this, right?

View 3 Replies View Related

Javascript, DHTML. Scrolling Bug In Firefox.

Jul 21, 2007

When I trying to do:
this.ctrl.style.display = 'block'

Firefox scroll area to the top, but IE not. I think that's bug. Maybe
anyone knows how I can fix that?

View 4 Replies View Related

TextDecorationLineThrough Style Property (DHTML) In Javascript

Jul 20, 2005

I have a word bank for a javascript crossword puzzle I'm working on. What I
want to do is when a user clicks on a word in the word bank, it crosses
itself out. I have tried:

<a href="javascript:this.style.textDecorationLineThrough">text here</a>

to no avail. does anyone have an idea on how to do this?

View 6 Replies View Related

Javascript Anthology Book DHTML Menu IE7 Problem

Dec 13, 2006

Anyone trying out the javascript drop down menus from the Sitepoint Javascript Anthology book might have noticed that in IE7 the sub menus are misaligned, they are offset to far to the right.

Has anyone else come across this problem and does anyone know how to fix it? It has unfortunately broken several of my menus, though if you just try the demo menus from the book in IE7 they also suffer the same problem.

View 3 Replies View Related

Recommend An Easy-to-use Spell Checker (either AJAX, DHTML Or Javascript)

May 3, 2006

I am looking to use a spell checker in my multi-field forms and am trying to
find something open source and easy to install and use.

It could be either AJAX, DHTML or Javascript.

View 3 Replies View Related

Troubleshooting Google Map Code?

Nov 20, 2011

Google maps to a web page. Below are the javascripts and further below is the div tag to display the map.

<html>
<head>
<title>Broken Map</title>

[code]....

View 5 Replies View Related

Troubleshooting Auto-Sum Provide To Get Some Assistance?

Jun 16, 2011

[URL]...heckboxes.html as directed and I can't get it to work. What do I need to provide to get some assistance?

View 14 Replies View Related

JQuery :: Troubleshooting XML Error Returned To Client Browser?

Apr 22, 2010

I'm new to Ajax. I'm getting a parse error in $.ajax. The xml file I am feeding it is dead simple, and validates just fine elsewhere. What else can I do to see what is wrong with the xml file?[code]...

How can I get more information about why $.ajax thinks that [Object XMLHttpRequest] is not an object?

View 3 Replies View Related

JS V DHTML

Oct 22, 2001

here's a question. Can anybody outline the primary advantages and disadvantages and differences between javascript and DHTML.

View 3 Replies View Related

DHTML: Div Animation

Nov 24, 2006

All I want to do is to have a div slide down from underneath a button I have. When i search online, I find a zillion slide down menu scripts, but they don't work for just
sliding a div.

View 4 Replies View Related

DHTML Problem

Jul 20, 2005

I've copied some code from a book which will enable me to make a layer
around a page, my aim is to do something a little more complex but this I
thought would get me started.

Anyway, I've run into a problem before I even start! The script works OK, it
runs the image in from the left hand side quite nicely, great. Problem I
have it always scrolls up to the top of the page, when the link I click
maybe 2 or 3 screens below (does that make sence?). I thought if I was to
add a name attribute to the link I could get the co-ordinates of this and
the screen will not reposition. Code:

View 3 Replies View Related

DHTML Is Not Working In IE

Jul 26, 2011

My pages all have the same blank at start then the images slide up trick. I have an old workaround for IE that stopped working, and I don't know what to do. In IE now nothing shows up.

View 1 Replies View Related

Difference Between DOM And DHTML?

Aug 23, 2009

What is the difference between DOM, Javascript and DHTML?

Alert() and document.write() is a DOM method or Javascript method?

View 6 Replies View Related

GET Variables In Dhtml

Aug 31, 2003

So I need to use variables passed in the url for dhtml calculations.

View 3 Replies View Related

Looking For A Particular Scroller (DHTML)

Jan 2, 2004

Here goes:

I'm looking for a particular dhtml content scroller that is will slide to different sections of the content when a link is clicked.

Imagine a long table with all the pages of content on it side by side and a layer is placed over that table so that when a link is clicked the desired content will slide into view.

Its a very common effect used in flash sites but im wondering if anyone knew how to do it using dhtml.

View 2 Replies View Related

Dhtml Slideshow

Jan 13, 2005

I've got a good cross browser dhtml fade in script that shows random images from an array when the window loads. It works perfectly for that.

I'd like to alter the code to show when the window loads the 'entire slideshow' over and over in a loop. I'm very new to JavaScript and could use a bit of help or advice on how to implement this. My coding knowledge is very basic. Code:

View 8 Replies View Related

Dhtml Scrollers

Mar 25, 2006

Anyone know a scroller script that only scrolls through text once? not loop forever?

View 1 Replies View Related

DHTML Menus And Video

Aug 31, 2005

I'm having a hard time with the use of my DHTML menu and video on my
site. The video is served using Windows Media Player. Short of hiding
it, I can't seem to get my DHTML menu to appear above the video.
Unfortunately, I have noticed that hiding the video caused the browser
to flash several times. Does anyone know of anything I can implement
that would minimize the client side impact and also allow my menu to
appear on top of the video?

View 5 Replies View Related

Wrapping Element With DIV Using DHTML?

May 15, 2009

how to wrap an element with a div (or other element) using DHTML.

For instance lets say l have this in my HTML:

<a href="#" id="btn">test</a>
if l use the following script:
obj = document.getElementById('btn').innerHTML;
obj = '<div>' + obj + '</div>';

[Code]....

View 5 Replies View Related

Hangman (DHTML/ActiveX)

Jan 3, 2003

I thought I'd post this and see what you guys think (go easy on me :)). Anyway, my teacher gave the class a project to see if we could make a hangman game with an ActiveX object's draw methods and some good ole' DHTML. I've always wondered why javascript doesn't have any draw methods or graphics objects like Java has.

I suppose SVG will take the place of activeX and Flash... hopefully. Once we had the right object id it was a piece of cake (I found it by the way). Anyway, here's my program. I would've put the code in this post but I have a few includes and graphics that go with it. Best viewed in 1024 x 768 resolution, and IE only (of course).

View 2 Replies View Related

DHTML Slider Widget

Aug 5, 2002

Using ViewLink behaviors (IE5.5+) and XBL bindings (Gecko-only - NS6+, Mozilla, etc), I basically created an encapsuled widget. That means you can infinitely reuse it with no conflicts.

To implement on a page, you'll need to add this attribute to the <html> tag to make IE happy:

xmlns:rdhtml="http://rdhtml.resource-locator.com/xmlns"

As well as add another thing to keep IE happy - a proprietary import processing instruction, before the <head> tag:

<?import namespace="rdhtml" implementation="slider.htc"?>

And define this style somewhere and apply it to the page:

rdhtml:slider {
-moz-binding: url(slider.xml#slider);
-moz-user-focus: normal;
-moz-user-input: enabled;
display: block;
padding: 0;
margin: 0;
position: relative;
}

After all of that, to add as many as you want to a page:

<rdhtml:slider width="width in pixels - defaults to 150 if not present" onvaluechange="event to fire when the gripper is moved"></rdhtml:slider>

If I feel the need, I will also implement a "value" attribute which sets the default value of the slider.

Speaking of which, the value property of the element is 0 - 100, reflecting the percentage of the slid amount. And is read/write. :)

(In Mozilla, I implemented a read/write width property as well, and intend to eventually add that in the IE implementation)

You can manipulate the value and position of the gripper by dragging the gripper, clicking on the track (really an hr), or focusing it, and using arrow keys, page up/down, or home/end.

To customize the look, slider.css is applied to every slider.

Required files are:
slider.css (styles the sliders)
slider.xml (XBL binding for Gecko)
slider.htc (ViewLink behavior for IE5.5+)

I've only had it tested in Win2k, XP Home, XP Pro in IE6, and in Win2k and WinXP Pro in a 1.1 trunk Mozilla.

I've been told that it is "sluggish" in IE6, but on my pc it is very smooth. Is it just me where it performs satisfactorily in IE6?

And I'm aware of a weird bug in my implemention of it in Mozilla where clicking on a slider bar sometimes moves the last focused slider instead...

If an IE5 user could confirm that it doesn't work for them, that would be great, and I still need someone in IE5.5 to tell me it works....
Someone with a 1.0 trunk of Mozilla would be much appreciated too. :)

Any ideas for additions would be cool too, though I'm not sure what other attributes I could add that would be useful?

View 6 Replies View Related

DHTML Drop Down Menu?

Feb 22, 2010

Ok guys l generated some dhtml drop down menu using Sotthink DHTML menu 8.Now l am editing it in my Netbeans but cant change the height of the seperator .

View 1 Replies View Related







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