Using Java Script To Create DHTML Pages

Jul 20, 2005

I have the following Script in my web page reduce to two pages.

<script>
function details()
{
document.getElementById('details').style.visibilit y='visible'
document.getElementById('capabilities').style.visi bility='hidden'
}
function capabilities()
{
document.getElementById('details').style.visibilit y='hidden'
document.getElementById('capabilities').style.visi bility='visible'
}
</script>

With the following HTML code..

<table id="Menu" border="1" width="100%">
<tr>
<td><a href="#" onclick="details()">Details</a></td>
<td><a href="#" onclick="capabilities()">Capabilities</a></td>
</tr>
</table>

<div id="details" style="position:absolute; visibility:visible;">
<table border="0"><caption>DETAILS</caption>
<tr><td>Name:</td><td>Enter name</td></tr>
<tr><td>Email:</td><td><a
href="mailto:anyname@anydomain.com">EmailName</a></td></tr>
<tr><td>D.O.B:</td><td>Date of Birth</td></tr>
</table>
</div>

<div id="capabilities" style="position:absolute; visibility:hidden;">
<table border ="0"><caption>CAPABILITIES</caption>
<tr><td>Java Script</td><tr>
<tr><td>Java Script</td><tr>
<tr><td>Langauges</td><tr>
</table>
</div>

What I am trying to do is create a CV where you turn the pages without
reloading the web page. I have successfully done this using the code
above but the links don't work in Internet Explorer until I have gone
through all the pages. Netscape and Opera Works Fine!

The above consists of two pages for convience but my final site will
be approx 6 to 7 pages long.

Can anybody help get the links working on loading up 1st time without
having to go through all the pages or is there a bug with IE?

View 14 Replies


ADVERTISEMENT

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

Use IFrame To Create Back Button Affect For DHTML

Dec 23, 2007

I am trying to put together a proof of concept. What I am trying to prove is that a back button affect can be accomplished using DHTML and an IFrame. Here is the concept, as the user changes data, that data can be written to an IFrame. Then, when the user hits the back button, contents can be taken from the IFrame using history.back() since the IFrame should remember the content written to it just like a page would.

Here is my problem. The below code writes the content entered into the text box into the IFrame. But when I click the button to execute the history.back(), the value returned is undefined.

I think my problem might be that the code which writes the contents of the text box to the IFrame is doing that dynamically, so the page is not caching it. If this is correct, how can I write the dynamically entered content from the text box to the IFrame so it can be cached by the IFrame window? Code:

View 2 Replies View Related

JAVA :: Create Feedback Form?

Mar 19, 2010

i want to create a feedback form for my website [url snipped]. as i m using free host it doesnt allow PHP so i want to create it using JAVA. please help me create a feedback form which when submitted automatically send an email to my ID.

View 3 Replies View Related

Create A Timer For Php Pages ?

Mar 14, 2011

I want to create a timer for my php page i created the page that only 20 second i want that the time should be as 00:00:20 (hh:mm:ss). My scipt are:

View 6 Replies View Related

Create Different Pages With Dynamic Tab Titles?

May 1, 2011

I would like to create different pages with dynamic tab titles. I would also like to have multiple level of tab. Currenlty I tried the kooltabs but I have problem for instance my last tab is having the final submit button and when my first tab is having the error I can show the contents of the first tab but the tab is not highlighted to reflect its content. Is there any other relevant tabs.

View 9 Replies View Related

Create Dynamic Pages And Buttons On The New Page?

Dec 8, 2009

i have a developed some static pages (around 140) of them which basically is used like a quesstionare or a workflow. If the user answers yes or no then another page opens up bases on the input given by the user.

Now my people want just a single page instead of all the 140 since it takes a lot of space on the server. presently this is still not hosted on the server. Is it possible to embed all of them into one page by writing different functions? i did try and it gives me the next questions by creating a dynamic page but when the yes and no button do not populate. is it possible?

View 8 Replies View Related

JQuery :: Create Little Windows That Aren't Entire New Pop Up Pages?

Jul 6, 2011

I've recently begun this week going through tutorials to learn some jQuery. My whole motivation was to create little windows that aren't entire new pop up pages. Think of being on facebook, going through some pictures and clicking the "Share" button. It's a new window that pops up but not an entirely new page if that makes sense.Unfortunately the w3schools tutorial didn't really point me in a direction to be able to do this. Any ideas on where to learn it?My real intentions are to learn how to do something like the pop up that you see when you first load this page:

View 1 Replies View Related

JQuery :: Adding Basic Animation - Allows To Create Pages And Navigate Between Them

Mar 26, 2010

I have been playing with a bit of code I found of the web and it works well, it basicly allows me to create pages and navigate between them all done via JQuery. The one question I have is, how hard is it to add some simple animation to it, such as fadein which if I have read correctly is built into JQuery?

code below:

View 3 Replies View Related

Create A Single Report From Multiple Forms On Separate Pages

May 18, 2011

I have made a site with 5 pages, each page contains a form. Each form is a checklist with a dropdown to choose an answer for each individual item.

Here is a same of the form code:

I am trying to write a script that will be called with onclick event from the "Next" button. This script will collect all the "notOK" option value/names and send them to a document, concatenating the info from the next forms until a single report is created with a list of all the "notOK" values. One the user gets to the end of the last form, there will be a submit button which sends the entire report to a specific email address.

Here is the script I have so far, which pulls the "notOK" values for each page:

This piece of code works great for an individual page, but I need to expand it to send the data to a report instead of window.alert, and I need to add some way of concatenating the data from each form to a single page, doc, etc.

View 4 Replies View Related

Create A Small DHTML Code That Created A Unordered List Of Input Forms Dependent On The Number Selected From The Select Dropdown Menu

Oct 21, 2011

I wanted to create a small DHTML code that created a unordered list of input forms dependent on the number selected from the select dropdown menu. Problem is that it doesn't seem to want to generate the list. I think the variables are within the scope of the function too, and I didn't get an errors from the javascript console when using firebug. The script itself runs, I tested it when I used the old standby alert(); to see if the script was active. Here's the code:

[Code]...

View 14 Replies View Related

Code Won't Run On Certain Pages/areas On Pages?

Sep 27, 2009

I coded the following JavaScript:

var el = document.createElement("iframe");
el.setAttribute('id', 'ifrm');
document.body.appendChild(el);
el.setAttribute('height', 250);

[Code].....

And am putting it between <script type="text/javascript"> and </script> tags in the <body> section of my site. But, it only works in certain areas of the page.

View 6 Replies View Related

Linking Html Pages - Link Two Html Pages?

Jul 19, 2011

How to link two html pages? If we use <a> then what do wr give value to href?

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 / 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 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

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 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







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