?
Solved

Extra fields in HTML?

Posted on 2011-09-19
9
Medium Priority
?
263 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
[X]
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
9 Comments
 
LVL 84

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 84

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
Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

 

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 84

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 84

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 84

Accepted Solution

by:
Dave Baldwin earned 2000 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

7 Extremely Useful Linux Commands for Beginners

Just getting started with Linux? Here's a quick start guide that has 7 commands that we believe will come in handy.

Question has a verified solution.

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

This article discusses how to create an extensible mechanism for linked drop downs.
Originally, this post was published on Monitis Blog, you can check it here . Websites are getting bigger and more complicated by the day. Video, images and custom fonts are all great for showcasing your product or service. But the price to pay in…
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 how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses

765 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