Results 1 to 4 of 4

Thread: Why does my corrections/bugs page work in Firefox and not in IE6?? (asp.net/vb.net)

  1. #1

    Thread Starter
    New Member munchkin's Avatar
    Join Date
    Apr 2005
    Location
    England, UK
    Posts
    6

    Why does my corrections/bugs page work in Firefox and not in IE6?? (asp.net/vb.net)

    Im completly lost on this one...

    Ive created a popup window to that now allows me to do a little bug reporting, the problem is that the page works in ie - with all of its functions - popping up - grabbing the referer - saying thankyou etc.. But only in firefox.

    If you try the same thing in IE it comes up with a lovely error and i just cant see where the problem lies...

    The link: - The window pops up fine in ff & ie
    Code:
    <a href="javascript:correction();">report the problem</a>
    javascript code: - just a simple popup
    Code:
    function correction() {
    day = new Date();
    id = day.getTime();
    eval("page" + id + " = window.open('/tools/correction.aspx', '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=1,menubar=0,resizable=0,width=460,height=400');");
    }
    but once the window has popped up in firefox it loads the form - in ie it just shows a server error :S


    The popups Form:
    Code:
    <div id="correctionComplete" runat="server">
      <p>Thank you for reporting a problem with this page, we will make sure that someone takes a look at it as soon as posible. Please remember that we cannot reply to submissions form this form only heed their advice.</p>
      <p id="right"><input type="button" value="Close This Window" onClick="javascript:window.close();" /></p>
    	</div>
    	
    	<form id="correctionForm" runat="server">
    	<p>Your comments can help make our site better for everyone. If you've found something incorrect, broken, or frustrating on this page, let us know so that we can improve it. Please note that we are unable to respond directly to suggestions made via this form.</p>
    	
    	<p>If you are part of this business and need further help with updating or information, please <a href="####">contact customer support</a>.</p>
    	<h2>Please mark as many of the following boxes that apply:</h2>
      <table>
      	<tr>
        <td><asp:CheckBox id="suggestDetails" runat="server" /></td>
        <td>The page information is missing important details.</td>
      	</tr>
      	<tr>
        <td><asp:CheckBox id="suggestInformation" runat="server" /></td>
        <td>The information is incorrect and needs updating.</td>
      	</tr>
      	<tr>
        <td><asp:CheckBox id="suggestTypos" runat="server" /></td>
        <td>The page contains typographical errors. </td>
      	</tr>
      	<tr>
          	<td><asp:CheckBox id="suggestSpeed" runat="server" /></td>
          	<td>The page takes too long to load.</td>
      	</tr>
      	<tr>
        <td><asp:CheckBox id="suggestOther" runat="server" /></td>
        <td>Other problems with the page.</td>
      	</tr>
      </table>
      <p><strong>Comments or Examples:</strong><br/>
      	Examples: Link not working, link going to the wrong place.</p>
      <asp:TextBox TextMode="MultiLine" columns="60" rows="8"  id="suggestText" cssclass="suggestion-text" runat="server"></asp:TextBox>
      <p class="comment-submit"><asp:Button id="btnSubmit" runat="server" Text="Submit" /></p>
      <asp:TextBox id="refPage" runat="server" Visible="False" />
    	</form>
    and Finaly...

    The Code Behind (vb.net):
    VB Code:
    1. ublic Class correction
    2.     Inherits System.Web.UI.Page
    3.  
    4.     Protected WithEvents suggestDetails As System.Web.UI.WebControls.CheckBox
    5.     Protected WithEvents suggestInformation As System.Web.UI.WebControls.CheckBox
    6.     Protected WithEvents suggestTypos As System.Web.UI.WebControls.CheckBox
    7.     Protected WithEvents suggestSpeed As System.Web.UI.WebControls.CheckBox
    8.     Protected WithEvents suggestOther As System.Web.UI.WebControls.CheckBox
    9.     Protected WithEvents suggestText As System.Web.UI.WebControls.TextBox
    10.     Protected WithEvents refPage As System.Web.UI.WebControls.TextBox
    11.  
    12.     Protected WithEvents correctionForm As System.Web.UI.HtmlControls.HtmlForm
    13.     Protected WithEvents correctionComplete As System.Web.UI.HtmlControls.HtmlContainerControl
    14.  
    15.     Private Const emailTo = "[email protected]"    ' who do we want to send the email to?
    16.  
    17.     Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    18.         'Put user code to initialize the page here
    19.         correctionComplete.Visible = False
    20.  
    21.         If refPage.Text = "" Then
    22.             refPage.Text = Request.UrlReferrer.ToString()
    23.             If refPage.Text = "" Then
    24.                 refPage.Text = "not passing"
    25.             End If
    26.         Else
    27.             If Page.IsPostBack() Then
    28.                 Page.Validate()
    29.                 If Page.IsValid() Then
    30.                     ' hide the contact form and instructions
    31.                     correctionComplete.Visible = True
    32.                     correctionForm.Visible = False
    33.  
    34.                     ' display the complete label
    35.                     'lblComplete.Visible = True
    36.  
    37.  
    38.                     Dim mail As New MailMessage
    39.                     'referer = Request.Url.AbsoluteUri
    40.  
    41.  
    42.                     mail.From = "[email protected]"
    43.                     mail.To = emailTo
    44.  
    45.                     mail.Subject = "Someone wants you to check this page:"
    46.  
    47.                     'mail.Body = "Link: " & Request.UrlReferrer.ToString() & vbCrLf
    48.                     mail.Body = "Link: " & refPage.Text & vbCrLf
    49.                     mail.Body &= "Browser Version: " & Request.Browser.Browser & " " & Request.Browser.Version & " " & Request.Browser.Platform & vbCrLf
    50.                     mail.Body &= "User Agent:" & Request.UserAgent() & vbCrLf & vbCrLf
    51.                     mail.Body &= "Browser Javascript: " & Request.Browser.JavaScript & vbCrLf & vbCrLf
    52.                     mail.Body &= "Wrong or incorrect Information: " & suggestInformation.Checked & vbCrLf
    53.                     mail.Body &= "Typos: " & suggestTypos.Checked & vbCrLf
    54.                     mail.Body &= "Slow loading: " & suggestSpeed.Checked & vbCrLf
    55.                     mail.Body &= "Other Problems: " & suggestOther.Checked & vbCrLf & vbCrLf
    56.                     mail.Body &= "Message Text:" & vbCrLf & suggestText.Text & vbCrLf
    57.  
    58.                     mail.BodyFormat = MailFormat.Text
    59.                     SmtpMail.SmtpServer = ConfigurationSettings.AppSettings("smtpServer")
    60.                     SmtpMail.Send(mail)
    61.                 End If
    62.             End If
    63.         End If
    64.     End Sub
    65.  
    66. End Class

    This is Really confusing me - all i can think is that maybe ie isnt passing the referer through... but i simply dont understand how this can be if it is a standard header.....

    I would apriciate ANY help with this that people can give me.....
    Last edited by munchkin; Apr 28th, 2005 at 03:33 AM.

  2. #2
    I wonder how many charact
    Join Date
    Feb 2001
    Location
    Savage, MN, USA
    Posts
    3,704

    Re: How can my corrections/bugs page work in Firefox and not in IE6?? (asp.net/vb.net)

    Your post is kind of confusing... first you say it works in ie, then it doesn't work in IE, but works in Firefox, but your subject asks how to make it work in Firefox?

    So... you should first state which isn't working.

  3. #3

    Thread Starter
    New Member munchkin's Avatar
    Join Date
    Apr 2005
    Location
    England, UK
    Posts
    6

    Re: Why does my corrections/bugs page work in Firefox and not in IE6?? (asp.net/vb.net)

    Sorry about that - I have eddited the post accordingly so that it makes abit more sence....

    I need it to work in both ie and firefox and the form wont load up in ie (although the popup window shows up...)

    -------------------------------

    I have however found that it is definataly because the variable for the referer, it isnt being created/passed cause if i fill the variable myself - it works??

    doesnt ie pass the referer through popups????
    Last edited by munchkin; Apr 28th, 2005 at 03:37 AM. Reason: More information and didnt want to double post

  4. #4

    Thread Starter
    New Member munchkin's Avatar
    Join Date
    Apr 2005
    Location
    England, UK
    Posts
    6

    Re: Why does my corrections/bugs page work in Firefox and not in IE6?? (asp.net/vb.net)

    Right Ive done some searching around and Ive found out that it is an issue with IE6sp1+ and/or Firewalls.......

    but i still need to find a way around this, Is there any way that we can achieve this either through the .net session or as an address string variable?
    The power of 1000 red headed munchkins!

    http://www.munchkinworld.net/ - Fun
    http://www.infernonights.co.uk/ - Work

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width