Created By
DMG Development
As Seen On

Main Page  |  Forums  |  Register  |  Active Topics  |  Members  |  Search

 
Username:
Password:
DMG Forums >> DMG Forums Discussion >> General Discussion >> Custom DMG pages Crash in ie browsers
Custom DMG pages Crash in ie browsers
Author Topic
mnewman949


Beginner

Join Date: 12/18/2008
Posts: 13

Posted: 6/10/2009 3:03:31 PM

Have a look at this url in IE. and then in Mozilla.

http://www.jg-27.com/jg27/forum/page.aspx?ID=3

I have traced it down to the way your are calling the IFRAME for the form pages. IE simply cannot parse the way you are calling this VAR.

FormText = "<iframe id=DMGForm src=htmlform.aspx?TEXT=<form target=_top method=POST action=htmlformresults.aspx</form> frameborder=0 scrolling=no allowtransparency=true></iframe>"

GRIM can you help me with this? This is definitely a bug you guys will want to correct since the Market share of IE users is higher than 75%.

Thanks!

Mike

grimmeissen


Administrator


Join Date: 8/30/2005
Posts: 656
Location: Cincinnati, Ohio

Posted: 6/11/2009 8:21:34 AM

I think I noticed this before when the text that is being passed into the iframe is too long for the IE query string. That is a fairly big form, so maybe this is what is happening.

The form process is definitely something to be reviewed. The iframe was a quick fix to get them in there, but it is actually not a trivial thing to do with ASP.NET. Because .NET contains everything in a form element, you can't place generic client-side form elements within the aspx pages unless you put them outside of the server-side <form> tags.

One thing you can do to get a quick fix is to create a custom .aspx page that looks something like this.

Code:
<%@ Page language="VB" %>

<%@ Register TagPrefix="DMG" TagName="Settings" Src="inc_settings.ascx" %>
<%@ Register TagPrefix="DMG" TagName="Header" Src="inc_header.ascx" %>
<%@ Register TagPrefix="DMG" TagName="Footer" Src="inc_footer.ascx" %>
<%@ Register TagPrefix="DMG" TagName="Login" Src="inc_login.ascx" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<HTML>
<HEAD>
<DMG:Settings runat="server" />
</HEAD>
<BODY>
<form runat="server">
<DMG:Header id="DMGHeader" runat="server" />
<DMG:Login id="DMGLogin" ShowLogin="1" runat="server" />
</form>

<form target="_top" method="POST" action="htmlformresults.aspx">
PLACE YOUR FORM CODE HERE
</form>

</BODY>
</HTML>


This will allow you to stick the form directly in the HTML of the aspx page (outside of the <form runat="server"> tag).

But it still gives you the ability to send the form data to htmlformresults.aspx so it can be captured in the database.
mnewman949


Beginner

Join Date: 12/18/2008
Posts: 13

Posted: 6/11/2009 11:43:50 AM

Fantastic, this was a great work around.

Thank you!

Mike


  Copyright DMG Development DMG Forums 3.2