Solved

Extra fields in HTML?

Posted on 2011-09-19
9
259 Views
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.

Examples:

<iframe name="DPWFRMMST" id="DPWFRMMST" src="" width="100%" height="10"  frameborder="0" xxLayer="MasterPanel" xxTab="TABMASTER"></iframe>
and
<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?

Thanks..
0
Comment
Question by:DazednConfuzed
  • 5
  • 4
9 Comments
 
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.
0
 

Author Comment

by:DazednConfuzed
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.  
0
 
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?
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:DazednConfuzed
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="http://www.w3.org/1999/xhtml">
<head>
<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">
0
 
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 http://chrispederick.com/work/web-developer/ .  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.
0
 

Author Comment

by:DazednConfuzed
ID: 36569475
adding

 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

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

Author Comment

by:DazednConfuzed
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.  
0
 
LVL 83

Accepted Solution

by:
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.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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.
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…

756 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