473,396 Members | 2,139 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,396 software developers and data experts.

Please help on IE problem

Here is my situation. I am coding in an AJAX framework for an intranet
application behind a vpn. Therefore, I can't give you a URL for the
actual app. I made a sample app for viewing and am looking for ideas.
The sample app is at www.sheldonlg.com/currentPeriod.htm. This sample
app does NOT exhibit the problem. I put it there so that I can talk to
the you about the problem.

In the actual app, initially a bunch of empty divs are written and the
attribute display:none is set for all of them. When the user selects a
fiscal period, and other options, and hits the "go" button, a large set
of data are written inside one of the hidden divs and its attribute is
set to display: inline. I have copied the html code for one of those
complete sets and pasted it into the sample app. (1-Nov-2006). At the
beginning of the first data line there is a "+". Hitting this "+"
causes it to change to a "-" and a subtable appears. That, too, has a
"+". Inside that one is another table with another "+" and, finally,
inside that one is another table that does not expand. All of this
works in the sample app.

In the actual app, this works for Firefox. In IE6, coded as it is in
the sample app, the first "+" expands, but the second "+" is ignored.
If, however, I remove the class="centerTable" surrounding <div>, then it
works in IE6 as well, but the entire table display is left adjusted
rather than center adjusted. If I remove that surrounding div, and put
the class="centerTable" into the actual div that surrounds the date (the
one that has id="div_01-Nov-2006") then I get the same behavior as with
a surrounding <div>. When I include the class attribute, it centers the
block of data.

So, right now I am left with either having it work and not being able to
center the block or centering the block and not having it work.

As I said, the sample app works and it was scarfed directly from the
html display tab in Firebug for the actual app.

Any ideas would be greatly appreciated.
Jun 27 '08 #1
12 1218
SAM
sheldonlg a écrit :
Here is my situation. I am coding in an AJAX framework for an intranet
application behind a vpn. Therefore, I can't give you a URL for the
actual app. I made a sample app for viewing and am looking for ideas.
The sample app is at www.sheldonlg.com/currentPeriod.htm. This sample
app does NOT exhibit the problem. I put it there so that I can talk to
the you about the problem.
Your class is placed in the wrong tag
you must use it in the TDs containing a table

the div with trouble is of no use

Your function is not correct

Use that one :

<script type="text/javascript">
function toggleSet(obj, elementId)
{
var block = document.getElementById(elementId);
if (block.style.display == '')
{
block.style.display = "none";
obj.src = 'plus.gif';

}
else
{
block.style.display = "";
obj.src = 'minus.gif';
}
}
</script>

File working too with IE :
<http://cjoint.com/data/fotFf654dr_table_plus.htm>
(but doesn't work here without its images)

--
sm
Jun 27 '08 #2
SAM wrote:
sheldonlg a écrit :
>Here is my situation. I am coding in an AJAX framework for an
intranet application behind a vpn. Therefore, I can't give you a URL
for the actual app. I made a sample app for viewing and am looking
for ideas. The sample app is at www.sheldonlg.com/currentPeriod.htm.
This sample app does NOT exhibit the problem. I put it there so that
I can talk to the you about the problem.

Your class is placed in the wrong tag
you must use it in the TDs containing a table
I got this class from the URL
http://www.web-wise-wizard.com/css-s...fieldsets.html

In there is says:
then wrap your table in a DIV in the following manner ...

<div class="centerTable">
<table>
</table>
</div>

--- I just followed those directions. How am I to put that in a td when
the table has not yet been defined? Are you suggesting creating a dummy
table just so that I can get to set it in the td? In that case I
wouldn't even need the class. I could just use align="center" since
that is valid for "strict" while align is not valid for "strict". Also,
if I were to do that how do I ensure that the div will occupy the
complete page so that the centering of the div will center on the page?
Would a width of 100% do that?
>
the div with trouble is of no use

Your function is not correct

Use that one :

<script type="text/javascript">
function toggleSet(obj, elementId)
{
var block = document.getElementById(elementId);
if (block.style.display == '')
{
block.style.display = "none";
obj.src = 'plus.gif';

}
else
{
block.style.display = "";
obj.src = 'minus.gif';
}
}
</script>
The function worked for other screens and for the first one on this
screen. I changed it, though, and that also works.

>
File working too with IE :
<http://cjoint.com/data/fotFf654dr_table_plus.htm>
(but doesn't work here without its images)
Yes, I know. I can't reproduce it outside of the AJAX framework.
Jun 27 '08 #3
sheldonlg wrote:

Putting in a dummy table around the code and using the class or an
align="center" did nothing.
Jun 27 '08 #4
sheldonlg wrote:
sheldonlg wrote:

Putting in a dummy table around the code and using the class or an
align="center" did nothing.
I tried separating the pieces. I put the style="text-align: center" on
the div and style="margin-left:auto; margin-right:auto;" on the table.
That centered it, but it only expanded the first level. When I removed
the style="margin-left:auto; margin-right:auto;" then it expanded all
three levels but didn't center (all in the actual application).
Jun 27 '08 #5
SAM
sheldonlg a écrit :
SAM wrote:
>>
Your class is placed in the wrong tag
you must use it in the TDs containing a table

I got this class from the URL
http://www.web-wise-wizard.com/css-s...fieldsets.html
In there is says:
then wrap your table in a DIV in the following manner ...
Yes that right
But I think you did :

<div class="centerTable">
<div>
<table>

(and that also could work)
^^^^^
--- I just followed those directions. How am I to put that in a td when
the table has not yet been defined?
Do not understand what you say :
I see a table in a td at least 3 times.

Anyway, what importante if there is not yet a table in this TD which
will receive one table itself too ?
if I were to do that how do I ensure that the div will occupy the
complete page so that the centering of the div will center on the page?
I thought your problem was to center sub-tables in their containers ?
(the TD of mother table)

of which div are you telling ?

I see :

<div>
<div>
<div>
<div>
<table>

>Your function is not correct
because a table is not a block (display='block')
The function worked for other screens and for the first one on this
screen.
??? don't know what you call "screen"
but ... no, your function didn't work fine.
><http://cjoint.com/data/fotFf654dr_table_plus.htm>
(but doesn't work here without its images)

Yes, I know. I can't reproduce it outside of the AJAX framework.
I'd show you the html code with centered tables, to you to put this file
in correct environment to see the [+] and [-] and how it works.
--
sm
Jun 27 '08 #6
SAM
sheldonlg a écrit :
sheldonlg wrote:

Putting in a dummy table around the code and using the class or an
align="center" did nothing.
have a look to the file I'd upload on cjoint.

to see the TDs with class that do what you want.
(tested Fx on Mac and IE6 on Win XP)

--
sm
Jun 27 '08 #7
SAM wrote:
sheldonlg a écrit :
>SAM wrote:
>>>
Your class is placed in the wrong tag
you must use it in the TDs containing a table

I got this class from the URL
http://www.web-wise-wizard.com/css-s...fieldsets.html
In there is says:
then wrap your table in a DIV in the following manner ...

Yes that right
But I think you did :

<div class="centerTable">
<div>
<table>

(and that also could work)
^^^^^
>--- I just followed those directions. How am I to put that in a td
when the table has not yet been defined?

Do not understand what you say :
I see a table in a td at least 3 times.

Anyway, what importante if there is not yet a table in this TD which
will receive one table itself too ?
>if I were to do that how do I ensure that the div will occupy the
complete page so that the centering of the div will center on the page?

I thought your problem was to center sub-tables in their containers ?
(the TD of mother table)

of which div are you telling ?

I see :

<div>
<div>
<div>
<div>
<table>

>>Your function is not correct

because a table is not a block (display='block')
>The function worked for other screens and for the first one on this
screen.

??? don't know what you call "screen"
but ... no, your function didn't work fine.
>><http://cjoint.com/data/fotFf654dr_table_plus.htm>
(but doesn't work here without its images)

Yes, I know. I can't reproduce it outside of the AJAX framework.

I'd show you the html code with centered tables, to you to put this file
in correct environment to see the [+] and [-] and how it works.

I want to center the mother table. If you look at the page you will see
that there is a mother table, a child table, a grand-child table and a
great-grandchild table. That means there are +/- appearing at three
levels. For the mother table there is one <divand then there is
<table>.

I put the class in the <divand then there is a table (with
sub-tables). It centered, but I lost the ability to click on the plus
after the first level opened the first subtable. In other words, the +
on the child table does nothing. Only when I removed the class (or,
more accurately, the margin-left:auto; margin-right: auto) did the
ability to go down to grandchild and great-grandchild tabls reappear.
However, removing those attributes meant that the mother table was no
longer centered on the page.

By screens I mean pages from other menu items in the app that show other
data, also with nested tables opened and closed by the +/-. Those all
worked for many levels with this javascript (with display: block).

I changed the javascript in the actual app to what you had ('' instead
of block), and it made no difference.
Jun 27 '08 #8
SAM wrote:
sheldonlg a écrit :
>sheldonlg wrote:

Putting in a dummy table around the code and using the class or an
align="center" did nothing.

have a look to the file I'd upload on cjoint.

to see the TDs with class that do what you want.
(tested Fx on Mac and IE6 on Win XP)
Let me restate something that perhaps you missed in my original post.
These sample apps WORK. They work in IE6 and in FF. The problem I have
is that they are not workin in IE6 for my actual app -- which is behind
a firewall and accessible only over a VPN. That actual app is built on
an AJAX framework and the code for all of this is written dynamically at
at runtime and is fed back from php via AJAX which then modifies the
innerHTML of the div (which is, itself, written at runtime from a
exercising a menu item).

Summary:
1 - Bare app comes up with essentially empty screen and a menu.
2 - Clicking on a menu sends a request via AJAX to the server. The
server produces a string of html which, among other things, has all the
hidden <div>s -- one for each time period. This string is sent back via
AJAX and is written to the screen in the content area.
3 - Selecting a time period, and other things, and clicking the action
button sends another message to the server via AJAX. The server returns
another html string which is return to the content area and written in
the particular <divfor that period of time (01-Nov-2006). The
javascript that sent off the AJAX request to the server also changes the
visibility of the <divto inline. INSIDE of that <divis the mother
table that I want centered. It has three levels of nesting in that table.

The problem I have is that if I use mechanisms to center the <div>
according to "strict", then I can only reach the first level of nesting.
Omitting that centering allows me to traverse all the way to the
innermost table.

The problem is ONLY in the actual app. The sample app works just fine.
Jun 27 '08 #9
SAM
sheldonlg a écrit :
sheldonlg wrote:
>sheldonlg wrote:

Putting in a dummy table around the code and using the class or an
align="center" did nothing.

I tried separating the pieces. I put the style="text-align: center" on
the div and style="margin-left:auto; margin-right:auto;" on the table.
That centered it, but it only expanded the first level. When I removed
the style="margin-left:auto; margin-right:auto;" then it expanded all
three levels but didn't center (all in the actual application).
You can only expand one level after the other.
(all levels have not to expand in one time with the code I've seen)

Well ...

..centerTable { text-align: center }

will center all what it is in the element (tag) that has this class
.... except tables with Firefox probably (didn't try)

..centerTable table { margin: auto; }

the table *in* the element that has the class would have to be centered
*in this* element (for all other browser than IE)
<div class="centerTable">
<table>

It is like :

<div style="text-align:center">
<table style="margin:auto">

and further in your code you will also need :

<td style="text-align:center">
<table style="margin:auto">

or :

<td class="centerTable">
<table>
All that tested in IE6 !
(each level being expandable and all tables being centered)

--
sm
Jun 27 '08 #10
SAM wrote:
>
All that tested in IE6 !
(each level being expandable and all tables being centered)
Tested in the sample app that works with none of the modifications. Not
in the actual app. It won't work there.
Jun 27 '08 #11
SAM
sheldonlg a écrit :
>
Let me restate something that perhaps you missed in my original post.
These sample apps WORK. They work in IE6 and in FF.
I thought it was not working because sub-tables were not centered.
The problem I have
is that they are not workin in IE6 for my actual app -- which is behind
a firewall and accessible only over a VPN. That actual app is built on
an AJAX framework and the code for all of this is written dynamically at
at runtime and is fed back from php via AJAX which then modifies the
innerHTML of the div (which is, itself, written at runtime from a
exercising a menu item).
So there is something wrong with your Ajax.
What does FireBug shows to you once Ajax has downloaded all the necessary ?
The html code looks like your sample ?

Once all is on the page try to save it with Firefox
in "Complet web page" mode (or by that, my Fx is in French)
to get a new "sample" more realist.
The problem I have is that if I use mechanisms to center the <div>
according to "strict",
You mean : according to xhtml, no ?
The problem is ONLY in the actual app. The sample app works just fine.
so it's a problem of this actual app ...
Without getting final code read by the browser we can't investigate further.

--
sm
Jun 27 '08 #12
SAM wrote:
sheldonlg a écrit :
>>
Let me restate something that perhaps you missed in my original post.
These sample apps WORK. They work in IE6 and in FF.

I thought it was not working because sub-tables were not centered.
> The problem I have is that they are not workin in IE6 for my actual
app -- which is behind a firewall and accessible only over a VPN.
That actual app is built on an AJAX framework and the code for all of
this is written dynamically at at runtime and is fed back from php via
AJAX which then modifies the innerHTML of the div (which is, itself,
written at runtime from a exercising a menu item).

So there is something wrong with your Ajax.
What does FireBug shows to you once Ajax has downloaded all the necessary ?
The html code looks like your sample ?

Once all is on the page try to save it with Firefox
in "Complet web page" mode (or by that, my Fx is in French)
to get a new "sample" more realist.
>The problem I have is that if I use mechanisms to center the <div>
according to "strict",

You mean : according to xhtml, no ?
>The problem is ONLY in the actual app. The sample app works just fine.

so it's a problem of this actual app ...
Without getting final code read by the browser we can't investigate
further.

I learned how to generate the html code from IE. It is a
javascript:document.write of the body. I did that and the html code
that was generated also showed the behavior. (Fantastic :-) ). I am in
the process of paring down that code to where it has a minimum of
extraneous features and still breaks. When I finish that, I will post
the new sample app code that breaks so that we can talk about actual
code. I'll probably start a new topic once I get that done.
Jun 27 '08 #13

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

21
by: Applebrownbetty | last post by:
Hi, I've run into a problem with IE 6 vs. Mozilla when displaying a completely CSS positioned page, and was wondering if any resident CSS guru might quickly be able to find the problem(s). Thank...
0
by: Kurt Watson | last post by:
I’m having a different kind of problem with Hotmail when I sign in it says, "Web Browser Software Limitations Your Current Software Will Limit Your Ability to Use Hotmail You are using a web...
4
by: pshindle | last post by:
DB2 Team - I just downloaded and unzipped the new Fixpack 9 for DB2 ESE V8 for Windows (FP9_WR21350_ESE.exe). I then burned the unzipped Fixpack files to a CD. I proceded to install this...
23
by: Jason | last post by:
Hi, I was wondering if any could point me to an example or give me ideas on how to dynamically create a form based on a database table? So, I would have a table designed to tell my application...
2
by: Carlo, MCP | last post by:
Hi, Sorry for posting twice, but I hope in your comprehension. Please help me! I'm troubling from months with a serious serialization problem that I'm not able to solve. I try to describe as...
1
by: David Van D | last post by:
Hi there, A few weeks until I begin my journey towards a degree in Computer Science at Canterbury University in New Zealand, Anyway the course tutors are going to be teaching us JAVA wth bluej...
1
by: funfair | last post by:
HI,EVERY ONE first problem, i have create a database in access 2003 it worked fine untill i have format my laptop . now im working on office 2003 on windows xp and i have norton 2006 but im...
1
by: oldgent | last post by:
I am having a problem installing the starter kits. I have reinstalled VS 2005, think that might be the problem. I then installed both 'Personal Website" and the "Club Website" starter kits. I...
1
PEB
by: PEB | last post by:
POSTING GUIDELINES Please follow these guidelines when posting questions Post your question in a relevant forum Do NOT PM questions to individual experts - This is not fair on them and...
2
by: violeta123 | last post by:
I am stuck! Please help It might be difficult to explain the problem via email, but I will try. I have a Win 2003 Enterprise server running with the only purpose of a membership web site...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.