Firefox not displaying popup correctly

Firefox not displaying popup correctly

am 08.04.2008 04:22:42 von joe

Hi All!

I'm using a script to show a popup.
http://www.openwebware.com/products/openpopups/

This displays fine in IE but it does not work right in Firefox. In Firefox
it displays the table but that's it. If I move the call to createWindow
outside of a form tag then I get a small window with a title bar but no
body.
Now if I change the DOCTYPE to HTML instead of XHTML then it display
correctly but the entire page isn't right. Text is too large and bold.

In addition I'm displaying this by clicking an ImageButton. I'm calling it
in the OnClientClick something like this:
onclick="createWindow(.....);return false;"
yet I still get a post back unless I use the HTML instead of the XHTML.

Is there something else that could be done to get this to work right? IE
doesn't like the HTML otherwise I would just use that.

Thanks,
Joe

RE: Firefox not displaying popup correctly

am 08.04.2008 11:20:47 von stcheng

Hi Joe,

As for the popup window, it seems use script to create div or table and
display it. Ithink the first problem you mentioned maybe related how the
popup component retrieve certain information in the xhtml page (through
javascript DOM ).

As for ImageButton postback issue, is it also related to the "CreateWindow"
function? I've tried the following simple script handler which will not
generate postback when I click the ImageButton.

=============
..............
onclick="ImageButton1_Click" OnClientClick="alert('hello');return
false;" />

=================

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/de fault.aspx#notif
ications.

This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
>From: "Joe"
>Subject: Firefox not displaying popup correctly
>Date: Mon, 7 Apr 2008 22:22:42 -0400

>
>Hi All!
>
>I'm using a script to show a popup.
>http://www.openwebware.com/products/openpopups/
>
>This displays fine in IE but it does not work right in Firefox. In Firefox
>it displays the table but that's it. If I move the call to createWindow
>outside of a form tag then I get a small window with a title bar but no
>body.
>Now if I change the DOCTYPE to HTML instead of XHTML then it display
>correctly but the entire page isn't right. Text is too large and bold.
>
>In addition I'm displaying this by clicking an ImageButton. I'm calling it
>in the OnClientClick something like this:
>onclick="createWindow(.....);return false;"
>yet I still get a post back unless I use the HTML instead of the XHTML.
>
>Is there something else that could be done to get this to work right? IE
>doesn't like the HTML otherwise I would just use that.
>
>Thanks,
>Joe
>
>
>

Re: Firefox not displaying popup correctly

am 08.04.2008 17:06:28 von joe

Hi Steven,

Thanks for the reply. Do you have any idea what could cause the problem in
Firefox and not in IE? The problem doesn't show up when changing the DOCTYPE
as I mentioned.

-Joe

"Steven Cheng [MSFT]" wrote in message
news:3gh8enVmIHA.4932@TK2MSFTNGHUB02.phx.gbl...
> Hi Joe,
>
> As for the popup window, it seems use script to create div or table and
> display it. Ithink the first problem you mentioned maybe related how the
> popup component retrieve certain information in the xhtml page (through
> javascript DOM ).
>
> As for ImageButton postback issue, is it also related to the
> "CreateWindow"
> function? I've tried the following simple script handler which will not
> generate postback when I click the ImageButton.
>
> =============
> > ..............
> onclick="ImageButton1_Click" OnClientClick="alert('hello');return
> false;" />
>
> =================
>
> Sincerely,
>
> Steven Cheng
>
> Microsoft MSDN Online Support Lead
>
>
> Delighting our customers is our #1 priority. We welcome your comments and
> suggestions about how we can improve the support we provide to you. Please
> feel free to let my manager know what you think of the level of service
> provided. You can send feedback directly to my manager at:
> msdnmg@microsoft.com.
>
> ==================================================
> Get notification to my posts through email? Please refer to
> http://msdn.microsoft.com/subscriptions/managednewsgroups/de fault.aspx#notif
> ications.
>
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
> --------------------
>>From: "Joe"
>>Subject: Firefox not displaying popup correctly
>>Date: Mon, 7 Apr 2008 22:22:42 -0400
>
>>
>>Hi All!
>>
>>I'm using a script to show a popup.
>>http://www.openwebware.com/products/openpopups/
>>
>>This displays fine in IE but it does not work right in Firefox. In Firefox
>>it displays the table but that's it. If I move the call to createWindow
>>outside of a form tag then I get a small window with a title bar but no
>>body.
>>Now if I change the DOCTYPE to HTML instead of XHTML then it display
>>correctly but the entire page isn't right. Text is too large and bold.
>>
>>In addition I'm displaying this by clicking an ImageButton. I'm calling it
>>in the OnClientClick something like this:
>>onclick="createWindow(.....);return false;"
>>yet I still get a post back unless I use the HTML instead of the XHTML.
>>
>>Is there something else that could be done to get this to work right? IE
>>doesn't like the HTML otherwise I would just use that.
>>
>>Thanks,
>>Joe
>>
>>
>>
>

Re: Firefox not displaying popup correctly

am 09.04.2008 01:52:28 von joe

The problem was being caused by a line in the js which read
document.all[...].
Firefox doesn't like the document.all so I replaced it with a
document.getElementById(....) and it worked. This also fixed the problem
with the post back for the image button.

"Joe" wrote in message
news:OzWd8%23RmIHA.5692@TK2MSFTNGP03.phx.gbl...
> Hi All!
>
> I'm using a script to show a popup.
> http://www.openwebware.com/products/openpopups/
>
> This displays fine in IE but it does not work right in Firefox. In Firefox
> it displays the table but that's it. If I move the call to createWindow
> outside of a form tag then I get a small window with a title bar but no
> body.
> Now if I change the DOCTYPE to HTML instead of XHTML then it display
> correctly but the entire page isn't right. Text is too large and bold.
>
> In addition I'm displaying this by clicking an ImageButton. I'm calling it
> in the OnClientClick something like this:
> onclick="createWindow(.....);return false;"
> yet I still get a post back unless I use the HTML instead of the XHTML.
>
> Is there something else that could be done to get this to work right? IE
> doesn't like the HTML otherwise I would just use that.
>
> Thanks,
> Joe
>

Re: Firefox not displaying popup correctly

am 09.04.2008 04:07:37 von stcheng

Hi Joe,

Thanks for your followup. I'm glad that you've figured out the issue.
Really a bit surprised that the control use "document.all" which is not the
good syntax for multi-browser target script.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/de fault.aspx#notif
ications.

This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
>From: "Joe"
>References:
>Subject: Re: Firefox not displaying popup correctly
>Date: Tue, 8 Apr 2008 19:52:28 -0400

>The problem was being caused by a line in the js which read
>document.all[...].
>Firefox doesn't like the document.all so I replaced it with a
>document.getElementById(....) and it worked. This also fixed the problem
>with the post back for the image button.
>
>"Joe" wrote in message
>news:OzWd8%23RmIHA.5692@TK2MSFTNGP03.phx.gbl...
>> Hi All!
>>
>> I'm using a script to show a popup.
>> http://www.openwebware.com/products/openpopups/
>>
>> This displays fine in IE but it does not work right in Firefox. In
Firefox
>> it displays the table but that's it. If I move the call to createWindow
>> outside of a form tag then I get a small window with a title bar but no
>> body.
>> Now if I change the DOCTYPE to HTML instead of XHTML then it display
>> correctly but the entire page isn't right. Text is too large and bold.
>>
>> In addition I'm displaying this by clicking an ImageButton. I'm calling
it
>> in the OnClientClick something like this:
>> onclick="createWindow(.....);return false;"
>> yet I still get a post back unless I use the HTML instead of the XHTML.
>>
>> Is there something else that could be done to get this to work right? IE
>> doesn't like the HTML otherwise I would just use that.
>>
>> Thanks,
>> Joe
>>
>
>
>