Printer Friendly Version Print this thread
Email this thread to a friend eMail this thread to a friend
Featured Web Site Template

Hundreds More at Free Site Templates.com!

Web Site Partners
Sponsored Links
Jet City Software
 
Whos Here ?
There are 0 guests and 1 members in the forums right now.
Reflects user activity within the last 5 minutes
Moderator(s): g1smd
Member Message

Curt
Joined: Eons Ago
# Posts: 3736

View the profile for Curt Send Curt a private message

Posted: 2008-Jan-13 10:20
Edit Message Delete Message Reply to this message

For simplification's sake, I will post the rudimentary outline of what I'm trying to do. Here's the code:


Code: [copy]




The above code works fine in Firefox, but does NOT operate correctly in MSIE7. When the second link is clicked, the whole button scheme disappears making the page useless.

Hopefully I've kept this simple enough for the other code masters to easily identify the flaw or to identify where something is missing. I'm just not seeing why it's not working. Insights anyone?



Curt
Joined: Eons Ago
# Posts: 3736

View the profile for Curt Send Curt a private message

Posted: 2008-Jan-14 06:06
Edit Message Delete Message Reply to this message

Here's the code again displayed in full view:

————————————————————————————————————
<html>
<head></head>
<body>

<div id="FirstToSecond">
<table cellpadding="4" cellspacing="5" border="0"><tr>
<td bgcolor="#aaaaaa"><a href="#" onClick="SwitchTable();return true" class="SwitchTxt">First to Second</a></td>
<td bgcolor="#ffcccc"><a href="#" onClick="SwitchTable2();return true" class="SwitchTxt">Second to First</a></td>
</tr></table>
</div>

<div id="SecondToFirst">
<table cellpadding="4" cellspacing="5" border="0"><tr>
<td bgcolor="#ffcccc"><a href="#" onClick="SwitchTable();return true" class="SwitchTxt">First to Second</a></td>
<td bgcolor="#aaaaaa"><a href="#" onClick="SwitchTable2();return true" class="SwitchTxt">Second to First</a></td>
</tr></table>
</div>

<script type="text/JavaScript"><!--

box = document.getElementById("SecondToFirst" ); box.style.visibility = "hidden"; box.style.position = "absolute"

function SwitchTable() {
box = document.getElementById("FirstToSecond" ); box.style.visibility = "visible"; box.style.position = "relative"
box = document.getElementById("SecondToFirst" ); box.style.visibility = "hidden"; box.style.position = "absolute"
}

function SwitchTable2() {
box = document.getElementById("SecondToFirst" ); box.style.visibility = "visible"; box.style.position = "relative"
box = document.getElementById("FirstToSecond" ); box.style.visibility = "hidden"; box.style.position = "absolute"
}

// --></script>


</body></html>
————————————————————————————————————

Hopefully that makes it a little bit more plain and won't scare away all you techies.



beth_lk
Staff
Joined: Jun 23, 2004
# Posts: 1253

View the profile for beth_lk Send beth_lk a private message

Posted: 2008-Jan-14 07:46
Edit Message Delete Message Reply to this message

All your T's are crossed and I's are dotted ( as the old saying goes ) from what I can see - hope someone here can help you smile





g1smd
Staff
Joined: Jul 28, 2002
# Posts: 10444

View the profile for g1smd Send g1smd a private message

Posted: 2008-Jan-15 00:51
Edit Message Delete Message Reply to this message

I do almost zero javaScript stuff... so I have no idea what that is all about. Sorry!



Curt
Joined: Eons Ago
# Posts: 3736

View the profile for Curt Send Curt a private message

Posted: 2008-Jan-15 02:59
Edit Message Delete Message Reply to this message

Yep, it should work, but does not for MSIE. I hate MSIE. I've run into this crap over and over repeatedly with ole bill gates' microcrap. Works well with firefox, but not in MSIE.

In fact, nearly all my Javascripting, DHTML and CSS problems originate with Microcrap Internet Destroyer. MCID stinks.

MCID = MSIE



g1smd
Staff
Joined: Jul 28, 2002
# Posts: 10444

View the profile for g1smd Send g1smd a private message

Posted: 2008-Jan-15 19:56
Edit Message Delete Message Reply to this message

Have you run JSLint or whatever it is called over the JS files to see incompatibilities and problems listed?

I have seen it but never used it.



Curt
Joined: Eons Ago
# Posts: 3736

View the profile for Curt Send Curt a private message

Posted: 2008-Jan-18 00:34
Edit Message Delete Message Reply to this message

[old statement no longer relevant]



Curt
Joined: Eons Ago
# Posts: 3736

View the profile for Curt Send Curt a private message

Posted: 2008-Jan-18 00:43
Edit Message Delete Message Reply to this message

OK, I found the web site (www.jslint.com). However, the errors I'm seeing don't make sense to me. The code is simple (in the above example) and should run without a hitch. Perhaps I'm missing something that needs to be added. At my wits end.

Dang, really hate microcrap.



Curt
Joined: Eons Ago
# Posts: 3736

View the profile for Curt Send Curt a private message

Posted: 2008-Jan-25 00:25
Edit Message Delete Message Reply to this message

Where are the JavaScript supermen when you need them? smile


You are not permitted to post messages in this forum or topic, because of one or more of the following reasons:
  1. You have not yet logged in, or registered properly as a member
  2. You are a member, but no longer have posting rights.
  3. This is a private forum, for which you do not have permissions.

If you are a recent member, it's possible that you simply have not yet confirmed your account. Please check your email for a message entitled 'JimWorld Forums: Confirm Your Account' and follow the instructions contained within.

If you cannot find this message, click here to Re-Send it.

If you are still experiencing problem, please read the Login Assistance Article for some advice on what may be causing your login not to work properly.

Switch to Advanced Editor and ... Create a New Topic or Reply to this Thread

New posts Forum is locked
© 1995  ·  iWeb, Inc  ·  DBA JimWorld Productions