Question

Anchor tag within <li> tag problem in IE7

Asked by: flwiii

I am replacing HTML using JavaScript.  I have an ordered list that must be broken up into 2 pages.  I am using outerHTML in Explorer and innerHTML in FireFox.  The last list item in the ordered list is an anchor tag that execute my textreplacer function and replaces the the existing list with the contiuing page.  On the continuing page is an anchor tag that acts as the back button and rewrites the first page.  It works without a problem in Firefox and almost works in IE.  In IE7 it replaces the data but freezes the page.  You can't click on anything else.  To clear it I have to right click on the page, then left click somewhere else to cancel and then I can navigate to other pages.  Does anyone know why IE is freezing the page.

var CSpMa1 = "<ol class='midbox' id='p1' style='width:850px; font-size:14px;'><li><b>Take Charge America</b></li><li>Developed a new enterprise-wide .NET application for a customer service call center using code in Visual Basic .NET.</li><li><b>Televerde</b></li><li>Designed and developed an internet site which allows client customers to evaluate,</br>view and download marketing campaign information formatted to each client's specification.</li><li><b>US Airways</b></li><li>Reviewed, analyzed, and modified Airline Technical, Safety and Flight Operations .NET systems</li><li><b>Wells Fargo</b></li><li>Architected and developed an automated document processing system.  Programmed in .NET utilizing technologies</br>such as .NET Web Services, C#, Encryption, XML and Soap.</li></br><li><a href='#' onmousedown='pwrite(4);'>Back...</a></li></ol>";
 
case 5:
				if(browser!="Microsoft Internet Explorer") {
					if(count!=1) {
					var txtName = "CSp" + count;
					var newTxt = eval(txtName);
					document.getElementById(paragraph).innerHTML=newTxt;
					}
					else {
						var txtName = "CSpa" + count;
					var newTxt = eval(txtName);
					document.getElementById(paragraph).innerHTML=newTxt;
					}
				}
				else {
					if(count!=1) {
						var txtName = "CSp" + count;
						var newTxt = eval(txtName);
						document.getElementById(paragraph).innerHTML=newTxt;
					}
					else {
						var txtName = "CSpMa" + count;
						var newTxt = eval(txtName);
						document.getElementById(paragraph).outerHTML=newTxt;
					}
				}
				break;

                                  
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:

Select allOpen in new window

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2009-03-17 at 14:25:35ID24239579
Topics

Hypertext Markup Language (HTML)

,

Internet Explorer Web Browser

Participating Experts
1
Points
500
Comments
5

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. Problem anchor tag in firefox
    Hello, I have a page that refers to an anchor on another page. The hyperlink is: <a href="http://www.chestervalleydance.com/classes.htm#pilates">Adult Pilates</a> The anchor is: <b><a name="pilates">Pilates:</a></b>&...
  2. IE7 document.createElement bug
    I'm using javascript to create a new element to append to my document. This is the code: var newEle = document.createElement('div'); newEle.appendChild(document.createTextNode('New Div')); newEle.id = 'Div1'; document.getElementById('container').appendChild(newEle); T...
  3. anchor link works in IE6 and IE7, but not in Firefox
    Hi, I have an anchor link on a page which works in IE6 and IE7, but doesn't work in Firefox or Safari. Here's what my code looks like: <div class="tab_anchor"><a href="#uysr">Understanding Your Score Report</a></div> And, furt...
  4. How to make anchor tag open link in new tab inIE7
    Hi In IE7, target="_blank" in an anchor tag makes the page open in a new window. How do I make it open in a new tab? FF and Opera seem to do it by default. Thanks tr5
  5. Anchor links on same page in Firefox
    I cannot figure out how to make name anchor links on the same page compatible with firefox or netscape. It works in IE, but no other browsers?

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: x_comPosted on 2009-03-17 at 22:41:58ID: 23915775

Hi flwiii,
Ok, i've tested in i.e 7. It's working fine. I didn't see anything not right there. You can put try..catch() to check anything not right if required.
eg:
try{
....
var txtName = "CSpMa" + count;
var newTxt = eval(txtName);
document.getElementById(paragraph).outerHTML=newTxt;
}catch(e){
alert(e.description);
}

 

by: flwiiiPosted on 2009-03-18 at 08:12:53ID: 23919622

Hi x com:
Thanks for the try/catch snippet.  I ran it and it didn't catch any problems.  I am guessing that the code works fine in IE.  The problem must be a reaction of the Flash Navigation menu which doesn't react in Firefox.  I am really stumped now.  It must be just the Flash Navigation menu that freezes and not the whole page as I suspected.  As long as I don't click on the anchor tag all is fine.  Once I click and the new data appears, then I can't select any thing in the Flash Navigation Menu.  The built in rollovers won't even work until I right click, then left click.  Very strange.  Do you have any suggestions on this?  

 

by: x_comPosted on 2009-03-18 at 20:35:09ID: 23926117

Hi flwiii,
Perhaps you can post other involved code that mentioned for "Once I click and the new data appears, then I can't select any thing in the Flash Navigation Menu. "? Probably you can check again if anything not compatiable in flash navigation menu that build in i.e 7 too.

 

by: flwiiiPosted on 2009-03-19 at 10:41:50ID: 23932117

X_com:

I have included the complete JavaScript files that are used along with the page that has the problem in IE.  If you select "addition information" on the Navigation menu, then select "case studies" and then finally click on the anchor tag "continue" the IE hand mouse icon remains and doesn't return to the arrow.  Also, you can't select anything in the Navigation Menu.  If you do not go to "case studies" but do not click on the anchor tag "continue" then no problems will occur and you can select other Navigation options.  Once you have the freeze, right-click then left-click and all is good until you click on one of the anchor tags within "case studies".  If necessary, I have posted what I have of the website on my personal webserver if you wish to see what it does.  Let me know if this is something you would like to do and I'll give you the URL.  Code below:

Text Replacer JavaScript
//Firefox replacement data

// Hiring Manager Bubble data
//IT Project Managers page
var ITp0 = "The consulting practice of Tech One has become known for providing some of the best IT Project Managers.  We recommend a project management process consisting of several components:";
var ITp1 = "<ol style='list-style-type: decimal'><li>A structured methodology, to ensure the completeness and logical consistency of the system.</li><li>Modern system development techniques and advanced tools, to support the development<br/>techniques and methodology being used.</li><li>Sound management principles, supported by automated tools.</li><li>Quality Assurance, a defined program of independent review and activities, designed to build<br/>quality into the product throughout the project.  This activity augments and enhances any QA<br/>procedures typically utilized by our clients.</li><li>Experienced and qualified staff, accustomed to working with the client as members of a team.</li></ol>";
var ITp2 = "Techone implements this philosophy with a combination of automated management tools and Project Management Institute (PMI) principles used within a framework of well defined standards.";

//Business Analysts page
var BAp0 = "The consulting practice of Tech One has become known for providing some of the industries best talent as Project Managers, Project Leaders, Business Analysts, Quality Assurance consultants and Testers.";  
var BAp1 = "Our rapid expansion and evolution into these project services is largely due to the fact that companies still require domestic resources like Project Managers and Business Analysts to integrate offshore development with their core business operation.";
var BAp2 = " ";

//Professional Services page
var PSp0 = "Our professionals perform project services such as software development, software engineering, training and mentoring at our clients' site and offsite in our Tempe, Arizona development center.";
var PSp1 = "The portfolio of Tech One consists of successful IT consulting and contracting engagements in the following areas: .NET, SAP, Basis, Peoplesoft, Asset Management, Business Intelligence, Organizational Development, IT Governance, Product Data Management (PDM), IT Security and Audit, Systems Administration, Mainframe legacy, Informix, Oracle, Tivoli, Veritas, SANs, Java, Agile, Ajax, Flex and emerging technologies.";
var PSp2 = " ";

//Staff Augmentation page
var SAp0 = "Tech One provide our clients with the opportunity to expand or cut back IT resources in order to mitigate the risks of rapidly changing technologies in our unpredictable economy.";
var SAp1 = "Tech One emphasizes the use of a proven structured methodology in the development of systems.  We often adopt a client-specific methodology in support of a particular project.";
var SAp2 = "Tech One utilizes project scheduling tools such as MS Project and Project Workbench as a key component of our methodology.  In all projects, the tracking of schedules and milestones and the identification of potential project slippages is crucial.";

//Case Studies page
var CSp0 = "The following illustrates some of our extensive .NET and IT project capabilities.";
var CSp1 = "<ol style='list-style-type:none; width:750px; font-size:14px;'><li><b>Arizona Department of Economic Security (DES)</b><br/>Designed and developed an ASP.NET-based content management system for internal and external websites.</li><li><br/><b>Arizona Department of Transportation (ADOT)</b><br/>Designed and developed .NET web, desktop, and mobile applications in Visual Basic and C#.  Developed procedures for standardizing usage of Visual SourceSafe across programming teams.</li><li><br/><b>Arizona Public Service Company (APS)</b><br/>Led design and analysis for a credit reporting application for commodity floor trading of electricity.  Provided systems support for variety of trading applications.</li><li><br/><b>Business Integration Group (BIG), Subsidiary of Chubb/Ellis</b><br/>Provided a team to analyze, develop, and mentor software engineers on a VB.NET building maintenance scheduling application, with import export and reporting interface.</li><li><br/><b>Palo Verde Nuclear Generating Station</b><br/>Enhanced and modified ASP/ASP.NET/ADO.NET windows apps, web applications, and web services on both Oracle 9i/10g and SQL Server 2000-2005 databases.</li><br/><a href='#' onmousedown='pwrite(5);'>Continue...</a>";
var CSp2 = " ";
var CSpa1 = "<ol style='list-style-type:none; width:750px; font-size:14px;'><li><b>Take Charge America</b><br/>Developed a new enterprise-wide .NET application for a customer service call center using code in Visual Basic .NET.</li><li><br/><b>Televerde</b><br/>Designed and developed an internet site which allows client customers to evaluate, view and download marketing campaign information formatted to each client's specification.</li><li><br/><b>US Airways</b><br/>Reviewed, analyzed, and modified Airline Technical, Safety and Flight Operations .NET systems</li><li><br/><b>Wells Fargo</b><br/>Architected and developed an automated document processing system.  Programmed in .NET utilizing technologies such as .NET Web Services, C#, Encryption, XML and Soap.</li><br/><a href='#' onmousedown='pwrite(4);'>Back...</a>";

//Testimonial page
var TSp0 = "Tech One has a long track record of excellent customer satisfaction and service.  Ninety percent of our business is repeat business.";
var TSp1 = "The bottom line is that Tech One brings experienced people to each project.  Our consultants understand your industry and know how to get the job done right.";
var TSp2 = "Ask us about our recent successes at the State of Arizona, US Airways and Wells Fargo.";

//Professional Bubble data
//Careers page
var Cp0 = "We will present you with opportunities to hone your skills and gain exposure to new and advanced technologies.  With your help we'll match you with the most appropriate and challenging assignments to have a positive impact at the client and in your career.";
var Cp1 = "Call Tech One today and see how we can help you reach the next level.";
var Cp2 = " ";

//Job Openings page
var Jp0 = "We have many job opportunities that require the skills of talented IT professionals including project managers, business analysts and programmers.  Some of our recent categories include:";
var Jp1 = "<ol style='list-style-type:circle; width:375px; font-size:14px;'><li><b>.NET Programmer</b></li><li><b>Architect</b></li><li><b>Business Analyst</b></li><li><b>DBA Developer</b></li><li><b>Developer</b></li><li><b>ERP Analyst</b></li><li><b>ERP Manager</b></li><li><b>NW Administrator</b></li><li><b>NW Engineer</b></li><li><b>Project Manager</b></li><li><b>QA Lead</b></li><li><b>QA Tester</b></li><li><b>Systems Administrator</b></li>";
var Jp2 = "We welcome you to view the openings <a href='http://www.maxhire.net/clients/MH605/jobsearch_results.asp'>here...</a>";

//Ab
out Us Data
//Company page
var Comp0 = "Tech One is an IT services and solutions firm based in Phoenix, Arizona.  We are <b>The Southwest's Premier Provider of IT Talent.</b>";
var Comp1 = "Our Founder and President Leanne Kinnard has spent 25 years in IT in the Southwestern US.  We are certified by the City of Phoenix as a Woman Owned and Operated Business Enterprise (WBE) and a Small Business Enterprise (SBE).";
var Comp2 = " ";

//Capabilities page
var Cap0 = "Our mission is to provide clients with better and more efficient methods of delivering technology and people to their IT organizations.  Our values are centered on providing outstanding service that exceeds expectations while working in partnership with our clients toward delivering expected results.  We aim to be a valued team member and advisor while providing access to the best IT talent, techniques and development tools.";
var Cap1 = " ";
var Cap2 = " ";

//Tech One Team page
var Tot0 = "We're led by Leanne Kinnard, Founder and President of Tech One.  Leanne has 25 years of experience in information technology and has assembled a team that lives and breathes IT in the Southwestern US.  For more information you may contact Leanne <a href='mailto:lkinnard@techoneit.com'>here...</a>";
var Tot1 = "Other team members <a href='#' onmousedown='pwrite(12)'>here...</a>";
var Tot2 = " ";

//Tech One Team Members
var TechTeam0 = "<table id='midbox' style='font-size:14px; color:#000000; width:95%'><th colspan='2' align='left'>Account Management</th><th><img src='Images1024/transparentsml.gif'></th><th colspan='2' align='left'>Consultant Allocation</th><tr><td><b>Keith Volk</b><br/>Account Manager</td><td width='20%'><b>Greg Bovee</b><br/>Account Manager</td><td><img src='Images1024/transparentsml.gif'></td><td width='20%'><b>Stacy Neasham</b><br/>Recruiting Director</td><td width='20%'><b>Gary Graham</b><br/>Allocation Specialist</td></tr><tr><td><b>Pete Zolkiewski</b><br/>Account Manager</td><td><b>Jim Maser</b><br/>Account Manager</td><td colspan = '1'><img src='Images1024/transparentsml.gif'></td><td><b>Shannon Volpe</b><br/>Allocation Specialist</td><td><b>Richard Krakora</b><br/>Allocation Specialist</td></tr><tr><td><img src='Images1024/transparentsml.gif'></tr><tr><td><a href='#' onmousedown='pwrite(11)'>back...</a></td></tr></table>";
var TechTeam1 = " ";
var TechTeam2 = " ";

//Contact Us Data
var CUp0 = "Please contact our office to talk about how we can help you today.  Our information is shown below.  We're waiting for your call.";
var CUp1 = "Tech One<br/>1705 W. University Drive, Suite 104<br/>Tempe, Arizona 85281<br/><br/>Office: 480-449-3333<br/>Fax: 480-449-3339<br/><br/><a href='mailto:contactus@techoneit.com'>ContactUs@TechOneIT.com</a>";
var CUp2 = "";
//Microsft Special Treatments due to improper handling of ordered lists
//Hiring Manager Bubble data
var ITpM1 = "<ol class='midbox' id='p1'><li>A structured methodology, to ensure the completeness and logical consistency of the system.</li><li>Modern system development techniques and advanced tools, to support the development</br>techniques and methodology being used.</li><li>Sound management principles, supported by automated tools.</li><li>Quality Assurance, a defined program of independent review and activities, designed to build</br>quality into the product throughout the project.  This activity augments and enhances any QA</br>procedures typically utilized by our clients.</li><li>Experienced and qualified staff, accustomed to working with the client as members of a team.</li></ol>";
var BApM1 = "<p class='midbox' id='p1' style='font-size:22px;'>Our rapid expansion and evolution into these project services is largely due to the fact that companies still require domestic resources like Project Managers and Business Analysts to integrate offshore development with their core business operation.</p>";
var PSpM1 = "<p class='midbox' id='p1' style='font-size:22px;'>The portfolio of Tech One consists of successful IT consulting and contracting engagements in the following areas: .NET, SAP, Basis, Peoplesoft, Asset Management, Business Intelligence, Organizational Development, IT Governance, Product Data Management (PDM), IT Security and Audit, Systems Administration, Mainframe legacy, Informix, Oracle, Tivoli, Veritas, SANs, Java, Agile, Ajax, Flex and emerging technologies.</p>";
var SApM1 = "<p class='midbox' id='p1' style='font-size:22px;'>Tech One emphasizes the use of a proven structured methodology in the development of systems.  We often adopt a client-specific methodology in support of a particular project.</p>";
var CSpM1 = "<ol class='midbox' id='p1' style='width:850px; font-size:14px;'><li><b>Arizona Department of Economic Security (DES)</b></li><li>Designed and developed an ASP.NET-based content management system for internal and external websites.</li><li><li></li><b>Arizona Department of Transportation (ADOT)</b></li><li>Designed and developed. NET web, desktop, and mobile applications in Visual Basic and C#.  Developed</br>procedures for standardizing usage of Visual SourceSafe across programming teams.</li><li></li><li><b>Arizona Public Service Company (APS)</b></li><li>Led design and analysis for a credit reporting application for commodity floor trading of electricity.  Provided</br>systems support for variety of trading applications</li><li></li><li><b>Business Integration Group (BIG), Subsidiary of Chubb/Ellis</b></li><li>Provided a team to analyze, develop, and mentor software engineers on a VB.NET building maintenance</br>scheduling application, with import export and reporting interface.</li><li></li><li><b>Palo Verde Nuclear Generating Station</b></li><li>Enhanced and modified ASP/ASP.NET/ADO.NET windows apps, web applications, and web services on both</br>Oracle 9i/10g and SQL Server 2000-2005 databases.</li></br><li><a href='#' onmousedown='pwrite(5);'>Continue...</a></li></ol>";
var CSpMa1 = "<ol class='midbox' id='p1' style='width:850px; font-size:14px;'><li><b>Take Charge America</b></li><li>Developed a new enterprise-wide .NET application for a customer service call center using code in Visual Basic .NET.</li><li><b>Televerde</b></li><li>Designed and developed an internet site which allows client customers to evaluate,</br>view and download marketing campaign information formatted to each client's specification.</li><li><b>US Airways</b></li><li>Reviewed, analyzed, and modified Airline Technical, Safety and Flight Operations .NET systems</li><li><b>Wells Fargo</b></li><li>Architected and developed an automated document processing system.  Programmed in .NET utilizing technologies</br>such as .NET Web Services, C#, Encryption, XML and Soap.</li></br><li><a href='#' onmousedown='pwrite(4);'>Back...</a></li></ol>";
var TSpM1 = "<p class='midbox' id='p1' style='font-size:22px;'>The bottom line is that Tech One brings experienced people to each project.  Our consultants understand your industry and know how to get the job done right.</p>";

//Professional Bubble data
var CpM1 = "<p class='midbox' id='p1' style='font-size:18px;'>Call Tech One today and see how we can help you reach the next level.</p>";
var JpM1 = "<ol class='midbox' style='list-style-type:circle; font-size:14px;'><b>.NET Programmer</b><br/><b>Architect</b><br/><b>Business Analyst</b><br/><b>DBA Developer</b><br/><b>Developer</b><br/><b>ERP Analyst</b><br/><b>ERP Manager</b><br/><b>NW Administrator</b><br/><b>NW Engineer</b><br/><b>Project Manager</b><br/><b>QA Lead</b><br/><b>QA Tester</b><br/><b>Systems Administrator</b></ol>";
//AboutUs page data
var CompM1 = "<p class='midbox' id='p1' style='font-size:18px;'>Our Founder and President Leanne Kinnard has spent 25 years in IT in the Southwestern US.  We are certified by the City of Phoenix as a Woman Owned and Operated Business Enterprise (WBE) and a Small Business Enterprise (SBE).</p>";
var TotM1 = "<p class='midbox' id='p1' style='font-size:18px;'>Other team members <a href='#' onmousedown='pwrite(12)'>here...</a></p>";

//Paragraph Text node replacer function

function pwrite(component) {
      clearChild();
      var browser = navigator.appName;
      for(count=0; count<3; count++) {
      var paragraph ="p" + count;
      switch(component) {
        case 0:
          if(browser!="Microsoft Internet Explorer") {
          var txtName = "ITp" + count;
          var newTxt = eval(txtName);
          document.getElementById(paragraph).innerHTML=newTxt;
          }
          else {
          if(count!=1) {
            var txtName = "ITp" + count;
            var newTxt = eval(txtName);
            document.getElementById(paragraph).innerHTML=newTxt;
          }
      else {
      var txtName = "ITpM" + count;
      var newTxt = eval(txtName);
      document.getElementById(paragraph).outerHTML=newTxt;
      }
                     }
                        break;
                  case 1:
                        if(browser!="Microsoft Internet Explorer") {
                              var txtName = "BAp" + count;
                              var newTxt = eval(txtName);
                              document.getElementById(paragraph).innerHTML=newTxt;
                        }
                        else {
                              if(count!=1) {
                                    var txtName = "BAp" + count;
                                    var newTxt = eval(txtName);
                                    document.getElementById(paragraph).innerHTML=newTxt;
                              }
                              else {
                                    var txtName = "BApM" + count;
                                    var newTxt = eval(txtName);
                                    document.getElementById(paragraph).outerHTML=newTxt;
                              }
                        }
                        break;
                  case 2:
                        if(browser!="Microsoft Internet Explorer") {
                              var txtName = "PSp" + count;
                              var newTxt = eval(txtName);
                              document.getElementById(paragraph).innerHTML=newTxt;
                        }
                        else {
                              if(count!=1) {
                                    var txtName = "PSp" + count;
                                    var newTxt = eval(txtName);
                                    document.getElementById(paragraph).innerHTML=newTxt;
                              }
                              else {
                                    var txtName = "PSpM" + count;
                                    var newTxt = eval(txtName);
                                    document.getElementById(paragraph).outerHTML=newTxt;
                              }
                        }
                        break;
                  case 3:
                        if(browser!="Microsoft Internet Explorer") {
                              var txtName = "SAp" + count;
                              var newTxt = eval(txtName);
                              document.getElementById(paragraph).innerHTML=newTxt;
                        }
                        else {
                              if(count!=1) {
                                    var txtName = "SAp" + count;
                                    var newTxt = eval(txtName);
                                    document.getElementById(paragraph).innerHTML=newTxt;
                              }
                              else {
                                    var txtName = "SApM" + count;
                                    var newTxt = eval(txtName);
                                    document.getElementById(paragraph).outerHTML=newTxt;
                              }
                        }
                        break;
                  case 4:
                        if(browser!="Microsoft Internet Explorer") {
                              var txtName = "CSp" + count;
                              var newTxt = eval(txtName);
                              document.getElementById(paragraph).innerHTML=newTxt;
                        }
                        else {
                              if(count!=1) {
                                    var txtName = "CSp" + count;
                                    var newTxt = eval(txtName);
                                    document.getElementById(paragraph).innerHTML=newTxt;
                              }
                              else {
                                    try{
                                    var txtName = "CSpM" + count;
                                    var newTxt = eval(txtName);
                                    document.getElementById(paragraph).outerHTML=newTxt;
                                    }catch(e){
                                          alert(e.description);
                                    }
                              }
                        }
                        break;
                  case 5:
                        if(browser!="Microsoft Internet Explorer") {
                              if(count!=1) {
                              var txtName = "CSp" + count;
                              var newTxt = eval(txtName);
                              document.getElementById(paragraph).innerHTML=newTxt;
                              }
                              else {
                                    var txtName = "CSpa" + count;
                              var newTxt = eval(txtName);
                              document.getElementById(paragraph).innerHTML=newTxt;
                              }
                        }
                        else {
                              if(count!=1) {
                                    var txtName = "CSp" + count;
                                    var newTxt = eval(txtName);
                                    document.getElementById(paragraph).innerHTML=newTxt;
                              }
                              else {
                                    try{
                                    var txtName = "CSpMa" + count;
                                    var newTxt = eval(txtName);
                                    document.getElementById(paragraph).outerHTML=newTxt;
                                    }catch(e){
                                          alert(e.description);
                                    }
                              }
                        }
                        break;
                  case 6:
                        if(browser!="Microsoft Internet Explorer") {
                              var txtName = "TSp" + count;
                              var newTxt = eval(txtName);
                              document.getElementById(paragraph).innerHTML=newTxt;
                        }
                        else {
                              if(count!=1) {
                                    var txtName = "TSp" + count;
                                    var newTxt = eval(txtName);
                                    document.getElementById(paragraph).innerHTML=newTxt;
                              }
                              else {
                                    var txtName = "TSpM" + count;
                                    var newTxt = eval(txtName);
                                    document.getElementById(paragraph).outerHTML=newTxt;
                              }
                        }
                        break;
                  case 7:
                        if(browser!="Microsoft Internet Explorer") {
                              var txtName = "Cp" + count;
                              var newTxt = eval(txtName);
                              document.getElementById(paragraph).innerHTML=newTxt;
                        }
                        else {
                              if(count!=1) {
                                    var txtName = "Cp" + count;
                                    var newTxt = eval(txtName);
                                    document.getElementById(paragraph).innerHTML=newTxt;
                              }
                              else {
                                    var txtName = "CpM" + count;
                                    var newTxt = eval(txtName);
                                    document.getElementById(paragraph).outerHTML=newTxt;
                              }
                        }
                        break;
                  case 8:
                        if(browser!="Microsoft Internet Explorer") {
                              if(count!=1) {
                              var txtName = "Jp" + count;
                              var newTxt = eval(txtName);
                              document.getElementById(paragraph).innerHTML=newTxt;
                              }
                              else {
                                    var txtName = "Jp" + count;
                              var newTxt = eval(txtName);
                              document.getElementById(paragraph).innerHTML=newTxt;
                              }
                        }
                        else {
                              if(count!=1) {
                                    var txtName = "Jp" + count;
                                    var newTxt = eval(txtName);
                                    document.getElementById(paragraph).innerHTML=newTxt;
                              }
                              else {
                                    var txtName = "JpM" + count;
                                    var newTxt = eval(txtName);
                                    document.getElementById(paragraph).outerHTML=newTxt;
                              }
                        }
                        break;
                  case 9:
                        if(browser!="Microsoft Internet Explorer") {
                              var txtName = "Comp" + count;
                              var newTxt = eval(txtName);
                              document.getElementById(paragraph).innerHTML=newTxt;
                        }
                        else {
                              if(count!=1) {
                                    var txtName = "Comp" + count;
                                    var newTxt = eval(txtName);
                                    document.getElementById(paragraph).innerHTML=newTxt;
                              }
                              else {
                                    var txtName = "CompM" + count;
                                    var newTxt = eval(txtName);
                                    document.getElementById(paragraph).outerHTML=newTxt;
                              }
                        }                        
                        break;
                  case 10:
                        if(browser!="Microsoft Internet Explorer") {
                              var txtName = "Cap" + count;
                              var newTxt = eval(txtName);
                              document.getElementById(paragraph).innerHTML=newTxt;
                        }
                        else {
                              if(count!=1) {
                                    var txtName = "Cap" + count;
                                    var newTxt = eval(txtName);
                                    document.getElementById(paragraph).innerHTML=newTxt;
                              }
                              else {
                                    var txtName = "CapM" + count;
                                    var newTxt = eval(txtName);
                                    document.getElementById(paragraph).outerHTML=newTxt;
                              }
                        }                                          
                        break;
                  case 11:
                        if(browser!="Microsoft Internet Explorer") {
                              var txtName = "Tot" + count;
                              var newTxt = eval(txtName);
                              document.getElementById(paragraph).innerHTML=newTxt;
                        }
                        else {
                              if(count!=1) {
                                    var txtName = "Tot" + count;
                                    var newTxt = eval(txtName);
                                    document.getElementById(paragraph).innerHTML=newTxt;
                              }
                              else {
                                    var txtName = "TotM" + count;
                                    var newTxt = eval(txtName);
                                    document.getElementById(paragraph).outerHTML=newTxt;
                              }
                        }                                                                  
                        break;
                  case 12:
                        if(browser!="Microsoft Internet Explorer") {
                              var txtName = "TechTeam" + count;
                              var newTxt = eval(txtName);
                              document.getElementById(paragraph).innerHTML=newTxt;
                        }
                        else {
                              if(count!=1) {
                                    var txtName = "TechTeam" + count;
                                    var newTxt = eval(txtName);
                                    document.getElementById(paragraph).innerHTML=newTxt;
                              }
                              else {
                                    var txtName = "TechTeamM" + count;
                                    var newTxt = eval(txtName);
                                    document.getElementById(paragraph).outerHTML=newTxt;
                              }
                        }                                                                  
                        break;
            }
                                    
      }
return;            
}


clearChild JavaScript
// JavaScript Document
function clearChild(){
//Remove all children except text node of paragraph tag
      for(count = 0; count < 3; count ++) {
            var paragraph = 'p' + count;
            var node=document.getElementById(paragraph);
            if(node.hasChildNodes()){
                  while(node.childNodes.length>=1){
                        node.removeChild(node.lastChild);
                  }
            }
      }
}


WebPage
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>How We Help Clients</title>
<link rel="stylesheet" type="text/css" href="CSS/divtagHMgrPg.css" />
<link rel="stylesheet" type="text/css" href="CSS/atag.css" />
<link rel="stylesheet" type="text/css" href="CSS/ptag.css" />
</head>

<body>
<div class="imagesublayer">
      <img src="Images1024/sunset1024.jpg" />
      <div class="logo">
            <img src="Images1024/TechOneLogo1024.png" />
      </div>
      <div class="plogo">
            <img src="Images1024/SouthwestPremier.png" />
      </div>
      <div class="menu">
              <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="725" height="70">
                  <param name="movie" value="NavigationHMgr.swf" />
                  <param name="quality" value="high" />
                  <embed src="NavigationHMgr.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="725" height="70"></embed>
              </object>
      </div>
      <div class="photo">
            <img src="Images1024/RedPicBkgrnd&OfficePic220X218.png" />
      </div>
      <div class="textbox">
            <p class="midbox" id="p0">
                  Tech One provides clients with better and more efficient methods of  delivering technology and people to their IT organizations.
            </p>
            <p class="midbox" id="p1">
                  Our values are centered on providing outstanding service while working in partnership with them in delivering results that
                  meet and exceed their expectations.
            </p>
            <p class="midbox" id="p2">
                  Tech One aims to be a valued team member and advisor while providing access to the best IT talent, techniques and development
                  tools.  We're flexible, mobile and responsive to your needs.
            </p>
      </div>
</div>
<script type="text/javascript" src="Scripts/JavaScripts/clearChild.js"></script>
<script type="text/javascript" src="Scripts/JavaScripts/textreplacerRev3.js"></script>
</body>
</html>

 

by: flwiiiPosted on 2009-04-07 at 17:29:14ID: 24093149

To all:
Thanks for the assistance.  I am not sure of the problem, but I removed the call to the "clearChild" function and the strange problem in IE7 went away.  Must be something in the way IE's Hiearchy functions.
Thanks again    

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...