Extra fields in HTML?

Posted on 2011-09-19
Last Modified: 2013-11-11
I was given HTML code with lots of javascript to try to make more cross browser compatable and I have run into code I am not even sure what it is.


<iframe name="DPWFRMMST" id="DPWFRMMST" src="" width="100%" height="10"  frameborder="0" xxLayer="MasterPanel" xxTab="TABMASTER"></iframe>
<select name="DocumentTypes" size=10 xxIndex="DDL">

I understand how it is used in Internet Explorer. Its used to get extra values to pass around in javascript with code simular to "var index=object.xxIndex;"

This is used in the vast major of the webpages thousands of times.  Is this just a Internet Explorer thing?   Other browsers just seem to ignore those extra "things" in the form elements.
What is this exactly and is there some way to make this work cross browser?

Question by:DazednConfuzed
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
LVL 83

Expert Comment

by:Dave Baldwin
ID: 36562744
Look at the "View Source" and see if it is still there in the browser.  Google isn't showing any reference to these attributes.

Author Comment

ID: 36562854
The attributes are there as a purposeful  part of the code.  I am working directly from the original source code.  Yes before I turned here I spent weeks hunting the internet for any refference to anyone else using such a thing.  I can say these are attributes that the orginal programmer created to pass extra values around.  As I said there are thousands of these type of things.  
LVL 83

Expert Comment

by:Dave Baldwin
ID: 36563052
I understood that to begin with.  Facebook uses a lot of their own attributes and apparently they work cross browser.  What I don't know about yours is if they get stripped out by some process on the server.  Or whether they are left in for javascript in the browser to deal with.  Is Internet Explorer actually doing something with them?  Do you have an 'xml' declaration at the top of the page?
Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users


Author Comment

ID: 36563123
Not exactly sure how to answer if Internet Explorer is doing anything.  If the page is loaded into internet explorer the javascript code knows what the values are by refferencing the object.xxIndex;  But loading it in firefox the values are blank.  

top of page.  

<html xmlns="">
<meta http-equiv="Expires" content="-1">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
LVL 83

Expert Comment

by:Dave Baldwin
ID: 36563168
There should be an XHTML DOCTYPE statement above that.  

In Firefox, I use the Web Developer plugin from Chris Pederick .  One of the features is the 'generated source code' which can show you what the javascript creates after the page is loaded.  Firebug is good also and is available for Chrome and Opera too.

Author Comment

ID: 36569475

 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"  "">

makes other parts if the page in Firefox quit working.   Specifically some java script and also does not make those values accessible.  At this point I am going to have to guess this is going to be an internet explorer only page.  
LVL 83

Expert Comment

by:Dave Baldwin
ID: 36569688
If it's an internal page, that can work.  If it's on the public internet, that will be a problem.

Author Comment

ID: 36569781
They want it cross browser compatable but want it "fixed"  but not rewritten.  Its a real crazy mess with all those extra attributes, tons of javascript, frames within frames values being passed in all sorts of crazy ways.   Some of the frames are pre-created blank with no src and populated later.  The average source per webpage is 2500 lines..  Almost 2000 if which comes before the <body> all javascript.  Don't know who created this in the first place but its mind blowing.  
LVL 83

Accepted Solution

Dave Baldwin earned 500 total points
ID: 36570113
If it is using things that only work in IE, then that goal is not achievable.  Without appropriate DOCTYPEs, some thing don't work in IE either.  From your description, it could easily take longer (Much Longer) to try to fix it than to re-write it to work correctly.  You probably don't have any decent description of how it's supposed to work either.

Featured Post

Don't Cry: How Liquid Web is Ensuring Security

WannaCry is just the start. Read how Liquid Web is protecting itself and its customers against new threats.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question