473,414 Members | 1,720 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

fields with style display:none displayed in IE

Hi All,

I am facing a weired issue. I am having a search form with some of the fields on it and a button which submits these fields values.
Functionaly everything is working fine but sometimes when i try to submit my search form i can see the fields which are hidden using the style "display:none " visible for a moment just before my page is submitted. I am providing the html code behind those components as follows:

<div class="formline topalign" id="divdirectionTextBox" >
<input type="text" name="directionTextBox" size="45" value="" onkeypress="subEnterKeyPressHandler(event)" class="input marginright10" id="directionTextBox">
</div>
<div class="formline topalign" id="divisionDropdown1" style="display: none;">
<select name="divisionDropDown1" onchange="showFieldsDivisionDD(searchFormObject.di visionDropDown1);" class="select" id="divisionDropDown1Style"> <option value="1">1</option>
<option value="2">2</option>
</select>
</div>
<div class="formline topalign" id="divisionDropdown2" style="display: none;">
<select name="divisionDropDown2" class="select" id="divisionDropDown2Style">
<option value="a">a</option>
<option value="b">b</option>
</select>
</div>

here, initially only the div with the id "divdirectionTextBox" is visible, but when i try to submit the form the fields with the ids "divisionDropdown1" and "divisionDropdown2" gets visible while the field "divdirectionTextBox" hides.

If anyone has encountered such a problem then please share the solution with me.
Thanks
May 8 '08 #1
2 3410
Plater
7,872 Expert 4TB
What are your javascript functions doing?
Since there is no actual "form" there, the html side will not be doing any "submitting".
So whatever it's doing, it's doing in the javascript.
May 8 '08 #2
What are your javascript functions doing?
Since there is no actual "form" there, the html side will not be doing any "submitting".
So whatever it's doing, it's doing in the javascript.
Yup on the click of the button present on my search form im submitting the form using the javascript as follows:

function fnSubmitSearchForm(target,flag){
searchFormObject.dispatch.value=target;
searchFormObject.persistenceNeeded.value=flag;
searchFormObject.submit();
}

All these things are working finr in mozilla but display the hidden field in the IE browser.
May 9 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

13
by: Dan R Brown | last post by:
I have a large form that is generated dynamically in a jsp using xml / xslt. So, to break up this form into several "tabbed" sections, I break up the form using <div> tags. Each <div...
1
by: Laurel | last post by:
Hi, Do you know some browsers that would misbehave with these three lines of CSS code: table.liste tr {display:none;} table.liste tr.headers {display: block;} table.liste tr.headers...
3
by: Erwin Moller | last post by:
Hi all, Situation: A (rather long) page that contains a lot of divs. Some are visible (display:inline) at a certain time, other not. The javascript is responsible for divs to be visible or...
2
by: Erwin Moller | last post by:
Hi group, I have this obscure problem that really needs to be fixed, but I am out of ideas. Because the original script is very big, I'll try to summarize its functionality. Setup: - many...
2
by: Jake Barnes | last post by:
Imagine I've this block of HTML: <p>Alex Schein Mailing List <input type="checkbox" name="newslettersToUse" value="133156"> (<a href="mcControlPanel.php"...
6
chunk1978
by: chunk1978 | last post by:
hi there... i'm about to embark on my very first PHP code journey (i've been saying that for a while... so sometime soon i hope... anyway)... before i begin my exciting new journey into PHP...
4
by: gimme_this_gimme_that | last post by:
Hi, I have an onchange method for a select box that goes something like this (the select is in a form named aForm): function page_on_change() { pageElement = aForm.my_page_id;...
4
by: JonFSBrighton | last post by:
Hi there, I have recently joined this forum in the hope that someone could help me as I am going crazy! I have a form element within a hidden container, that uses the script.acluo.us SlideDown...
2
hsriat
by: hsriat | last post by:
Maximum how many elements can be made hidden by giving STYLE={DISPLAY:NONE} in a single HTML file. Any restriction?... If it is there.. any way out as I want to make 110 rows with DISPLAY:NONE...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.