Solved

Extra fields in HTML?

Posted on 2011-09-19
9
255 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 82

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 82

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
 

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
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 82

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 82

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 82

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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
This article discusses how to create an extensible mechanism for linked drop downs.
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

758 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now