Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Extra fields in HTML?

Posted on 2011-09-19
9
Medium Priority
?
265 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

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

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!

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.
A while back, I ran into a situation where I was trying to use the calculated columns feature in SharePoint 2013 to do some simple math using values in two lists. Between certain data types not being accessible, and also with trying to make a one to…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

604 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