Thread View: borland.public.intrabuilder.forms
4 messages
4 total messages
Started by Christian Samtleben
Mon, 27 Jul 1998 00:00
How to cheat IB?
Author: Christian Samtleben
Date: Mon, 27 Jul 1998 00:00
Date: Mon, 27 Jul 1998 00:00
70 lines
2303 bytes
2303 bytes
Hi,
is there any way to make IB recognize MS IE 4 as Netscape 4?
Reason: AFAIK does IB generate different Code for the different browsers.
The code for MS IE 4 is IMO sometimes wrong.
Example:I have two listboxes on the form. Every time when I click on
listbox1, I want to react and set listbox2 to an appropriate value:
function listbox1_onChange()
{
document.forms[0].listbox2.selectedIndex =
document.forms[0].listbox1.selectedIndex;
}
Now IB generates something like:
[...]
<td rowspan=11 valign=top width=208 height=216 colspan=2><select
name="listbox1" size= 16>
<optionOption 1
<option>Option 2
<option>Option 3
</select></td>
[...]
<script language="JavaScript" in="IntraBuilder" for="listbox1"
event="onChange">
<!--
{
document.forms[0].listbox2.selectedIndex =
document.forms[0].listbox1.selectedIndex;
}
//-->
</script>
[...]
This does not work.
With Netscape the code looks like:
[...]
<body bgcolor="ffffff" background="/ibapps/shdbpio/SHDBPIO_BACK.GIF">
<script language = "JavaScript">
<!--
function listbox1_onChange()
{
document.forms[0].listbox2.selectedIndex =
document.forms[0].listbox1.selectedIndex;
}
//-->
[...]
</td>
<td rowspan=11 valign=top width=208 height=216 colspan=2><select
name="listbox1" size= 12 onChange="this.listbox1_onChange()">
<optionOption 1
<option>Option 2
<option>Option 3
</select> <script = javascript>
document.forms[0].cmbDataE.cmbDataE_onChange=cmbDataE_onChange
</script></td>
[...]
The Netscape code does work with Netscape AND MS IE 4.
Any help appreciated
THX
Christian Samtleben
Re: How to cheat IB?
Author: Boris van Woerkom
Date: Tue, 28 Jul 1998 00:00
Date: Tue, 28 Jul 1998 00:00
4 lines
817 bytes
817 bytes
I have the same problem IE4 not recognising client-side JavaScript and I noticed the different HTML as well. I am eager to know the solution. , Boris
Re: How to cheat IB?
Author: KJS
Date: Thu, 30 Jul 1998 00:00
Date: Thu, 30 Jul 1998 00:00
7 lines
829 bytes
829 bytes
I, too, am having this difficulty. We are currently trying to migrate our systems to IE4.0 and would be very appreciative for the solution to this puzzle... Ken Siemek
Re: How to cheat IB?
Author: gzira
Date: Tue, 18 Aug 1998 00:00
Date: Tue, 18 Aug 1998 00:00
88 lines
2681 bytes
2681 bytes
with (this.form)
{
target="_self"; // Output to current frame
............
// some actions
............
elements[1].value = "-1"; // Force Agent to accept reposted form
submit(); // Post the form
}
This works
Gzira
Christian Samtleben wrote in message <6pi562$9456@forums.borland.com>...
>Hi,
>
>is there any way to make IB recognize MS IE 4 as Netscape 4?
>
>Reason: AFAIK does IB generate different Code for the different browsers.
>The code for MS IE 4 is IMO sometimes wrong.
>Example:I have two listboxes on the form. Every time when I click on
>listbox1, I want to react and set listbox2 to an appropriate value:
>
> function listbox1_onChange()
> {
> document.forms[0].listbox2.selectedIndex =
>document.forms[0].listbox1.selectedIndex;
> }
>
>Now IB generates something like:
>[...]
> <td rowspan=11 valign=top width=208 height=216 colspan=2><select
>name="listbox1" size= 16>
><optionOption 1
><option>Option 2
><option>Option 3
></select></td>
>[...]
><script language="JavaScript" in="IntraBuilder" for="listbox1"
>event="onChange">
><!--
> {
> document.forms[0].listbox2.selectedIndex =
>document.forms[0].listbox1.selectedIndex;
> }
>
>//-->
></script>
>[...]
>
>This does not work.
>With Netscape the code looks like:
>[...]
><body bgcolor="ffffff" background="/ibapps/shdbpio/SHDBPIO_BACK.GIF">
><script language = "JavaScript">
>
><!--
> function listbox1_onChange()
> {
> document.forms[0].listbox2.selectedIndex =
>document.forms[0].listbox1.selectedIndex;
> }
>//-->
>[...]
></td>
> <td rowspan=11 valign=top width=208 height=216 colspan=2><select
>name="listbox1" size= 12 onChange="this.listbox1_onChange()">
><optionOption 1
><option>Option 2
><option>Option 3
></select> <script = javascript>
>
> document.forms[0].cmbDataE.cmbDataE_onChange=cmbDataE_onChange
>
></script></td>
>[...]
>
>The Netscape code does work with Netscape AND MS IE 4.
>
>Any help appreciated
>
>THX
>
>Christian Samtleben
>
>
>
>
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads