473,785 Members | 2,882 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Using Java Script to create DHTML Pages

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

<script>
function details()
{
document.getEle mentById('detai ls').style.visi bility='visible ';
document.getEle mentById('capab ilities').style .visibility='hi dden';
}
function capabilities()
{
document.getEle mentById('detai ls').style.visi bility='hidden' ;
document.getEle mentById('capab ilities').style .visibility='vi sible';
}
</script>

With the following HTML code..

<table id="Menu" border="1" width="100%">
<tr>
<td><a href="#" onclick="detail s()">Details</a></td>
<td><a href="#" onclick="capabi lities()">Capab ilities</a></td>
</tr>
</table>

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

<div id="capabilitie s" style="position :absolute; visibility:hidd en;">
<table border ="0"><caption>C APABILITIES</caption>
<tr><td>Java Script</td><tr>
<tr><td>Java Script</td><tr>
<tr><td>Langaug es</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?

Many Thanks

Dafydd
Jul 20 '05
14 1872
Silvio Bierman wrote:
If what you say is true these would be equivalent. Your browser will

nodoubt show you otherwise (or it is seriously flawed).


I see your point, but when `+1` does equal `1`, what's the use of appending
the plus sign or enabling it to be appended at all?
JW

Jul 20 '05 #11

"Janwillem Borleffs" <jw@jwscripts.c om> wrote in message
news:3f******** *************@n ews.wanadoo.nl. ..
Silvio Bierman wrote:
If what you say is true these would be equivalent. Your browser will nodoubt show you otherwise (or it is seriously flawed).


I see your point, but when `+1` does equal `1`, what's the use of

appending the plus sign or enabling it to be appended at all?
JW


The leading plus is simply a (superfluous) unary prefix operator with no
other use than being the opposite of unary -. So +3 is the same as 3
whatever the context.

Silvio Bierman
Jul 20 '05 #12
Silvio Bierman wrote:
The leading plus is simply a (superfluous) unary prefix operator with
no other use than being the opposite of unary -. So +3 is the same as
3 whatever the context.


Thanks for the explanation, it seems that I have always interpreted that one
incorrectly.
JW

Jul 20 '05 #13
"Janwillem Borleffs" <jw@jwscripts.c om> wrote in message news:<3f******* *************** *@news.wanadoo. nl>...
Janwillem Borleffs wrote:
I have tested it ant it worked like a charm...


In case you don't believe me:
http://www.jwscripts.com/playground/test.php
JW


I have used the z-index+1 and it has worked a treat. Thank you
everybody for your help.

Happy new Year

Dafydd
Jul 20 '05 #14
"Janwillem Borleffs" <jw@jwscripts.c om> wrote in message news:<3f******* *************** *@news.wanadoo. nl>...
Janwillem Borleffs wrote:
I have tested it ant it worked like a charm...


In case you don't believe me:
http://www.jwscripts.com/playground/test.php
JW


Oh no :-( the links in the other pages still don't work. The one thing
I have done is use the onLoad() in the body tag to load all the div
layers in one go. This solve the problem but could lead the user to
beleive they have visited all the pages as the links change color. The
other problem could be the download time could be increased? I have
broadband so I can't tell if it makes any difference

I know I can use CSS to set vlink to the same color as link but the
user can change the preferences to overide the CSS or so I am told.

Best Wishes Dafydd Eveleigh
Jul 20 '05 #15

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
11477
by: Rob Wahmann | last post by:
Hello - I'm using the following syntax: WHERE pages.ParentID=0 AND CONTAINS(pages.regionID,'#request.thisRegion#') ....and I get the folowing error: Execution of a full-text operation failed. A clause of the query contained only ignored words. I'm trying to see if a simple column which contains comma delimited numbers
11
3080
by: rajarao | last post by:
hi I want to remove the content embedded in <script> and </script> tags submitted via text box. My java script should remove the content embedded between <script> and </script> tag. my current code is function RemoveHTMLScript(strText) { var regEx = /<script\w*<\/script>/g
13
9651
by: Stumped and Confused | last post by:
Hello, I really, really, need some help here - I've spent hours trying to find a solution. In a nutshell, I'm trying to have a user input a value in form's textfield. The value should then be assigned to a variable and output using document.write. (Note, there is no submit button or other form elements. Basically
5
2595
by: Linda | last post by:
Greetings: I have found a random image script that I like. It is located here: http://www.javascriptcity.com/scripts/local/simage3.htm I'd like to edit this to have 4 different slots for images with a different set of 5 images for each slot, something like this page: http://www.uchsc.edu The script says /* no need to edit past this point (unless you want to
4
1124
by: Suhail A, Salman | last post by:
Hi, am not a ASP.NET programmer, and it seems that i have to learn web development, so i need help learning java script. any links to some good sites would be very helpfull. thanks
3
1404
by: IntraRELY | last post by:
Hello, I am having an issue with this java code for a pop-up. window.open('clientsCreate.aspx',null,','_blank,height=350,width=750,menubar =no,status=no,toolbar=no') I need the ability to open several of the same page. For example, when the link is clicked with this code the page opens fine, however, on subsequent pages it opens in the last new window, not a truely new one.
8
2669
by: Ed Jay | last post by:
I want to use history.go() to navigate between my previously loaded pages. I'm looking for a way to trigger a function call when a page is accessed using history.go(). Is there an event generated? Is there a method for detecting what page the user came from when a page is accessed using history.go()? -- Ed Jay (remove M to respond by email)
8
2391
by: dbaplusplus | last post by:
I worked on web development using java script many many years, so I am now a newbie to javascript. I have a single html page, which is generated dynamically using some programming language. Web page will be viewed using Microsoft's IE browser (version 6.x ....). Webapge is self-contained. i.e., it does not refer to any links outside the webpage, however, it uses bookmarks inside the same page. I have a long table to display, table has...
9
4136
by: ajos | last post by:
hi all, im getting some problems in my javascript validations..... my jsp code--> 8: <head> 9: <title>Budget Master Administration</title> 10: <meta name="GENERATOR" content="Microsoft FrontPage 3.0"> 11: <html:javascript src="bscript.js" method="everything(this)" staticJavascript="false"/> 12: <!-- <SCRIPT LANGUAGE="JavaScript" SRC="bscript.js"></SCRIPT> --> 13: <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
0
9645
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9480
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10327
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9950
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8973
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6740
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5381
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4053
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3647
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.