Results 1 to 22 of 22

Thread: Script Error and Facebook Game error For WebBrowser

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jul 2009
    Posts
    150

    Angry Script Error and Facebook Game error For WebBrowser

    Hi ive been teaching meself and a little bit of help from you guys :>
    But i seem to have a bit of problem keep Getting Script Error on facebook and some games load Straight Away (Picture below)



    say i go back to me profile on facebook then wanna go back to the game i was just playing it does this



    Says Its Loading Config But it doesnt

    Its like it Doesnt want to load it again And here is a pic of the scipt errors i keep getting below......Can Anyone Help Me With this Thanks




    Please Can SomeOne Help Me

  2. #2

    Re: Script Error and Facebook Game error For WebBrowser

    Update your version of IE.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jul 2009
    Posts
    150

    Re: Script Error and Facebook Game error For WebBrowser

    i Have the Updated Version Of IE i have IE8 but i dont think i used the IE WebBrowser Control to mine i Think i did it my self lol i think i did lol can anyone help me cause my IE8 is Fine :> So it Musnt be IE8 web broswer Control In My App Must be Me own Never Had IE6 IE7 Running Windows 7
    can Anyone Help Me???

  4. #4
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: Script Error and Facebook Game error For WebBrowser

    Post the code you are using.
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Jul 2009
    Posts
    150

    Re: Script Error and Facebook Game error For WebBrowser

    vb Code:
    1. Imports System.Deployment.Application
    2.  
    3. Public Class Form1
    4.     Private Sub AboutBoxHelpMenu_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles AboutBoxHelpMenu.Click
    5.         On Error Resume Next
    6.         AboutBox.ShowDialog()
    7.     End Sub
    8.     Function ActiveBrowser() As WebBrowser
    9.         On Error Resume Next
    10.         ActiveBrowser = Nothing
    11.  
    12.         For Each Control In TabControl.SelectedTab.Controls
    13.             If TypeOf Control Is WebBrowser Then
    14.                 Return CType(Control, WebBrowser)
    15.             End If
    16.         Next
    17.  
    18.     End Function
    19.     Private Sub AddTabFileMenu_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles AddTabFileMenu.Click
    20.         On Error Resume Next
    21.         Dim X As New TabPage
    22.         X.Text = " "
    23.         TabControl.TabPages.Add(X)
    24.         Dim Y As New WebBrowser
    25.         Y.Dock = DockStyle.Fill
    26.         X.Controls.Add(Y)
    27.         AddHandler Y.Navigated, AddressOf WebBrowser_Navigated
    28.         AddHandler Y.DocumentCompleted, AddressOf WebBrowser_DocumentCompleted
    29.         X.Controls.Add(Y)
    30.         Y.Navigate("http://www.warezxtreme.org")
    31.         Dim documentTitle As String = Me.ActiveBrowser.DocumentTitle
    32.  
    33.  
    34.  
    35.         If documentTitle = String.Empty Then
    36.             Me.Text = Application.ProductName
    37.         Else
    38.             'Display the current page title in the window's title bar.
    39.             Me.Text = String.Format("{0} - {1}", _
    40.                                     documentTitle, _
    41.                                     Application.ProductName)
    42.         End If
    43.  
    44.     End Sub
    45.     Private Sub AddTab_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles AddTab.Click
    46.         On Error Resume Next
    47.         Dim X As New TabPage
    48.         X.Text = " "
    49.         TabControl.TabPages.Add(X)
    50.         Dim Y As New WebBrowser
    51.         Y.Dock = DockStyle.Fill
    52.         X.Controls.Add(Y)
    53.         AddHandler Y.Navigated, AddressOf WebBrowser_Navigated
    54.         AddHandler Y.DocumentCompleted, AddressOf WebBrowser_DocumentCompleted
    55.         X.Controls.Add(Y)
    56.         Y.Navigate("http://www.warezxtreme.org")
    57.  
    58.  
    59.     End Sub
    60.     Private Sub Back_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Back.Click
    61.         On Error Resume Next
    62.         ActiveBrowser.GoBack()
    63.         StatusProgressBar.Increment(1)
    64.         If StartTimer.Enabled = True Then
    65.             StatusProgressBar.Value = 0
    66.         End If
    67.         If FinishTimer.Enabled = True Then
    68.             StatusProgressBar.Value = 100
    69.         End If
    70.     End Sub
    71.     Private Sub CancelStop_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CancelStop.Click
    72.         On Error Resume Next
    73.         ActiveBrowser.Stop()
    74.         If StartTimer.Enabled = True Then
    75.             StatusProgressBar.Value = 0
    76.         End If
    77.     End Sub
    78.     Private Sub CheckForUpdatesHelpMenu_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckForUpdatesHelpMenu.Click
    79.         On Error Resume Next
    80.         Dim ad As ApplicationDeployment
    81.         Dim info As UpdateCheckInfo
    82.  
    83.         ad = ApplicationDeployment.CurrentDeployment
    84.         info = ad.CheckForDetailedUpdate
    85.  
    86.         If Not info.UpdateAvailable Then
    87.             MsgBox("No Updates Available At This Time")
    88.             Return
    89.         End If
    90.  
    91.         Dim doUpdate As Boolean = True
    92.  
    93.         If info.IsUpdateRequired Then
    94.             MsgBox("There Is A Required Update Available. Downloading Now")
    95.         Else
    96.             If MsgBox("Update Available. Do You Want To Download Now?", MsgBoxStyle.YesNo) = MsgBoxResult.No Then
    97.                 doUpdate = False
    98.             End If
    99.         End If
    100.         If doUpdate Then
    101.             ad.Update()
    102.             MsgBox("Updates Have Been Installed . Restarting Application Now")
    103.             Application.Restart()
    104.  
    105.         End If
    106.     End Sub
    107.     Private Sub CheckWindowsVersionHelpMenu_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckWindowsVersionHelpMenu.Click
    108.         On Error Resume Next
    109.         Dim osVersion As String
    110.         osVersion = My.Computer.Info.OSVersion
    111.         Dim osPlatform As String
    112.         Dim osName As String
    113.         osName = My.Computer.Info.OSFullName
    114.         osPlatform = My.Computer.Info.OSPlatform
    115.  
    116.         MsgBox("Operating System:" & vbCr & osName & vbCr & vbCr & "Build Version:" & vbCr & osVersion & vbCr & vbCr & "OS Platform:" & vbCr & osPlatform)
    117.  
    118.     End Sub
    119.  
    120.     Private Sub ClockTimer_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ClockTimer.Tick
    121.         On Error Resume Next
    122.         Dim UpdateClock As String
    123.         UpdateClock = My.Computer.Clock.LocalTime
    124.         ClockLabel.Text = System.DateTime.Now
    125.     End Sub
    126.     Private Sub CloseTab_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CloseTab.Click
    127.         On Error Resume Next
    128.         TabControl.TabPages.Remove(TabControl.SelectedTab)
    129.  
    130.     End Sub
    131.     Private Sub CloseTabFileMenu_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CloseTabFileMenu.Click
    132.         On Error Resume Next
    133.         TabControl.TabPages.Remove(TabControl.SelectedTab)
    134.     End Sub
    135.     Private Sub DisplayPageTitle()
    136.         On Error Resume Next
    137.         Dim documentTitle As String = Me.ActiveBrowser.DocumentTitle
    138.  
    139.         If documentTitle = String.Empty Then
    140.             Me.Text = Application.ProductName
    141.         Else
    142.             'Display the current page title in the window's title bar.
    143.             Me.Text = String.Format("{0} - {1}", _
    144.                                     documentTitle, _
    145.                                     Application.ProductName)
    146.         End If
    147.     End Sub
    148.     Private Sub ExitFileMenu_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ExitFileMenu.Click
    149.         On Error Resume Next
    150.         Application.Exit()
    151.     End Sub
    152.     Private Sub Forward_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Forward.Click
    153.         On Error Resume Next
    154.         ActiveBrowser.GoForward()
    155.         StatusProgressBar.Increment(1)
    156.         If StartTimer.Enabled = True Then
    157.             StatusProgressBar.Value = 0
    158.         End If
    159.         If FinishTimer.Enabled = True Then
    160.             StatusProgressBar.Value = 100
    161.         End If
    162.     End Sub
    163.     Private Sub Go_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Go.Click
    164.         On Error Resume Next
    165.         For Each Target As Control In TabControl.Controls
    166.             If TypeOf (Target) Is WebBrowser Then
    167.                 CType(Target, WebBrowser).Navigate(URLComboBox.Text)
    168.                 CType(Target, WebBrowser).WebBrowserShortcutsEnabled = True
    169.                 Exit For
    170.             End If
    171.             ActiveBrowser.Navigate(URLComboBox.Text)
    172.  
    173.         Next
    174.         StatusProgressBar.Increment(1)
    175.         If StartTimer.Enabled = True Then
    176.             StatusProgressBar.Value = 0
    177.         End If
    178.         If FinishTimer.Enabled = True Then
    179.             StatusProgressBar.Value = 100
    180.         End If
    181.  
    182.     End Sub
    183.     Private Sub Home_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Home.Click
    184.         On Error Resume Next
    185.         ActiveBrowser.GoHome()
    186.         ActiveBrowser.Navigate("http://www.warezxtreme.org")
    187.         StatusProgressBar.Increment(1)
    188.         If StartTimer.Enabled = True Then
    189.             StatusProgressBar.Value = 0
    190.         End If
    191.         If FinishTimer.Enabled = True Then
    192.             StatusProgressBar.Value = 100
    193.         End If
    194.     End Sub
    195.     Private Function IsPopupWindow() As Boolean
    196.         On Error Resume Next
    197.         If ActiveBrowser.Document.ActiveElement.TagName = "BODY" Or WebBrowser.Document.ActiveElement.TagName = "IFRAME" Then
    198.             IsPopupWindow = True
    199.         Else
    200.             IsPopupWindow = False
    201.         End If
    202.     End Function
    203.     Private Sub Navigate(ByVal address As String)
    204.  
    205.         If String.IsNullOrEmpty(address) Then Return
    206.         If address.Equals("about:blank") Then Return
    207.         If Not address.StartsWith("http://") And _
    208.             Not address.StartsWith("https://") Then
    209.             address = "http://" & address
    210.         End If
    211.         Try
    212.             ActiveBrowser.Navigate(New Uri(address))
    213.         Catch ex As System.UriFormatException
    214.             Return
    215.         End Try
    216.  
    217.         StatusProgressBar.Increment(1)
    218.         If StartTimer.Enabled = True Then
    219.             StatusProgressBar.Value = 0
    220.         End If
    221.         If FinishTimer.Enabled = True Then
    222.             StatusProgressBar.Value = 100
    223.         End If
    224.  
    225.     End Sub
    226.     Private Sub RandomPasswordGeneratorToolMenu_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RandomPasswordGeneratorToolMenu.Click
    227.         WarezXtremE_Random_Password_Generator.ShowDialog()
    228.     End Sub
    229.     Private Sub Refresh_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RefreshButton.Click
    230.         On Error Resume Next
    231.         ActiveBrowser.Refresh()
    232.         StatusProgressBar.Increment(1)
    233.         If StartTimer.Enabled = True Then
    234.             StatusProgressBar.Value = 0
    235.         End If
    236.  
    237.     End Sub
    238.     Private Sub RestartFileMenu_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RestartFileMenu.Click
    239.         On Error Resume Next
    240.         Application.Restart()
    241.     End Sub

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    Jul 2009
    Posts
    150

    Re: Script Error and Facebook Game error For WebBrowser

    vb Code:
    1. Private Sub TabControl_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TabControl.SelectedIndexChanged
    2.         On Error Resume Next
    3.         TabPage1.Name = CType(TabControl.SelectedTab.Controls.Item(0), WebBrowser).Url.ToString()
    4.         Dim CurrentBrowser As WebBrowser
    5.         CurrentBrowser = CType(sender, TabControl).SelectedTab.Controls(0)
    6.         Me.DisplayPageTitle()
    7.  
    8.  
    9.         Dim url As Uri = Me.ActiveBrowser.Url
    10.  
    11.         If url Is Nothing Then
    12.             'There is no current address.
    13.             URLComboBox.Text = String.Empty
    14.  
    15.             'The user cannot refresh a page that doesn't exist.
    16.  
    17.             RefreshButton.Enabled = False
    18.         Else
    19.             'Display the current page address in the address bar.
    20.             URLComboBox.Text = url.ToString()
    21.  
    22.             'Allow the user to refresh the current page.
    23.  
    24.             RefreshButton.Enabled = True
    25.         End If
    26.  
    27.  
    28.     End Sub
    29.  
    30.     Private Sub URLComboBox_KeyDown_(ByVal sender As Object, ByVal e As KeyEventArgs) Handles URLComboBox.KeyDown
    31.         On Error Resume Next
    32.         If (e.KeyCode = Keys.Enter) Then
    33.             Navigate(URLComboBox.Text)
    34.  
    35.             StatusProgressBar.Increment(1)
    36.             If StartTimer.Enabled = True Then
    37.                 StatusProgressBar.Value = 0
    38.             End If
    39.             If FinishTimer.Enabled = True Then
    40.                 StatusProgressBar.Value = 100
    41.             End If
    42.  
    43.         End If
    44.     End Sub
    45.     Private Sub WebBrowser_DocumentCompleted(ByVal sender As System.Object, ByVal e As System.Windows.Forms.WebBrowserDocumentCompletedEventArgs) Handles WebBrowser.DocumentCompleted
    46.         On Error Resume Next
    47.         URLComboBox.Text = CType(TabControl.SelectedTab.Controls.Item(0), WebBrowser).Url.ToString
    48.         StatusProgressBar.Increment(1)
    49.         URLStatusLabel.Text = Me.ActiveBrowser.StatusText
    50.         URLStatusLabel.Text = ("Waiting for ") & Me.URLComboBox.Text
    51.         URLStatusLabel.Text = Me.URLComboBox.Text & (Me.ActiveBrowser.StatusText)
    52.         Dim documentTitle As String = Me.ActiveBrowser.DocumentTitle
    53.         If StartTimer.Enabled = True Then
    54.             StatusProgressBar.Value = 0
    55.         End If
    56.         If FinishTimer.Enabled = True Then
    57.             StatusProgressBar.Value = 100
    58.         End If
    59.         If StartTimer.Enabled = True Then
    60.             StatusProgressBar.Value = 0
    61.         End If
    62.  
    63.  
    64.         If documentTitle = String.Empty Then
    65.             Me.Text = Application.ProductName
    66.         Else
    67.             'Display the current page title in the window's title bar.
    68.             Me.Text = String.Format("{0} - {1}", _
    69.                                     documentTitle, _
    70.                                     Application.ProductName)
    71.         End If
    72.         ActiveBrowser.Url.ToString()
    73.     End Sub
    74.     Private Sub WebBrowser_Navigated(ByVal sender As Object, ByVal e As WebBrowserNavigatedEventArgs)
    75.         On Error Resume Next
    76.         URLComboBox.Text = ActiveBrowser.Url.ToString()
    77.         'ActiveBrowser.Navigate(URLComboBox1.Text)
    78.         'ActiveBrowser.WebBrowserShortcutsEnabled = True
    79.  
    80.         StatusProgressBar.Increment(1)
    81.         If StartTimer.Enabled = True Then
    82.             StatusProgressBar.Value = 0
    83.         End If
    84.         If FinishTimer.Enabled = True Then
    85.             StatusProgressBar.Value = 100
    86.         End If
    87.  
    88.  
    89.     End Sub
    90.     Private Sub WebBrowser_StatusTextChanged(ByVal sender As Object, _
    91.                                                      ByVal e As EventArgs) Handles WebBrowser.StatusTextChanged
    92.         On Error Resume Next
    93.         'Display the current page's status text in the status bar.
    94.         URLStatusLabel.Text = Me.ActiveBrowser.StatusText
    95.         URLStatusLabel.Text = ("Waiting for ") & Me.URLComboBox.Text
    96.         Dim documentTitle As String = Me.ActiveBrowser.DocumentTitle
    97.  
    98.         If documentTitle = String.Empty Then
    99.             Me.Text = Application.ProductName
    100.         Else
    101.             'Display the current page title in the window's title bar.
    102.             Me.Text = String.Format("{0} - {1}", _
    103.                                     documentTitle, _
    104.                                     Application.ProductName)
    105.         End If
    106.  
    107.  
    108.  
    109.     End Sub
    110.  
    111.  
    112.  
    113. End Class

  7. #7
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: Script Error and Facebook Game error For WebBrowser

    Have you checked to see whether it is not a problem with face book itself rather than your program? Check face book in a IE or Fire Fox to make sure its not just an error with face book.
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  8. #8

    Thread Starter
    Addicted Member
    Join Date
    Jul 2009
    Posts
    150

    Re: Script Error and Facebook Game error For WebBrowser

    I have done IE8 Perfect not a foot wrong

  9. #9

    Thread Starter
    Addicted Member
    Join Date
    Jul 2009
    Posts
    150

    Re: Script Error and Facebook Game error For WebBrowser

    i did check that before posting

  10. #10

    Thread Starter
    Addicted Member
    Join Date
    Jul 2009
    Posts
    150

    Re: Script Error and Facebook Game error For WebBrowser

    do you know how to get rid of that script error thing cause that could be the cause of it :>

  11. #11
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: Script Error and Facebook Game error For WebBrowser

    Have run your program in Visual Basic? Does it come back with a highlighted error?
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  12. #12

    Thread Starter
    Addicted Member
    Join Date
    Jul 2009
    Posts
    150

    Re: Script Error and Facebook Game error For WebBrowser

    yeap and it does not come back with a highlighted error

  13. #13
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: Script Error and Facebook Game error For WebBrowser

    That error message is saying that there is an error with the script on the page. This has nothing to do with your program but rather poor web coding.

    Edit:

    What is the url of that page that has the error?
    Last edited by Nightwalker83; Sep 18th, 2009 at 10:26 PM. Reason: Adding more!
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  14. #14

    Thread Starter
    Addicted Member
    Join Date
    Jul 2009
    Posts
    150

    Re: Script Error and Facebook Game error For WebBrowser

    facebook (Has VBScript i think )
    but doesnt have a problem with IE8

  15. #15
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: Script Error and Facebook Game error For WebBrowser

    Try commenting out each section one at a time then test the program to see if the problem occurs.
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  16. #16

    Thread Starter
    Addicted Member
    Join Date
    Jul 2009
    Posts
    150

    Re: Script Error and Facebook Game error For WebBrowser

    that could take hours i just tryed the first web browser i made which is well different that does the same

  17. #17
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: Script Error and Facebook Game error For WebBrowser

    Looking at your code I think there might need to be a stop procedure triggered after the back procedure. It seems like the browser is getting confused as to what is happening.
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  18. #18

    Thread Starter
    Addicted Member
    Join Date
    Jul 2009
    Posts
    150

    Re: Script Error and Facebook Game error For WebBrowser

    what you mean stop procedure after the back procedure tell me what add and do and ill add rep and resolve :P hehe :> thnks for helping me anyways

  19. #19
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: Script Error and Facebook Game error For WebBrowser

    Try putting:

    Code:
    On Error Resume Next
            ActiveBrowser.Stop()
            If StartTimer.Enabled = True Then
                StatusProgressBar.Value = 0
            End If
    In with browser back code and see if that helps!
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  20. #20

    Thread Starter
    Addicted Member
    Join Date
    Jul 2009
    Posts
    150

    Re: Script Error and Facebook Game error For WebBrowser

    nope didnt work gonna go bed now peace ill bump again tomoz

  21. #21

    Thread Starter
    Addicted Member
    Join Date
    Jul 2009
    Posts
    150

    Re: Script Error and Facebook Game error For WebBrowser

    bump

  22. #22
    Lively Member
    Join Date
    Dec 2009
    Posts
    78

    Re: Script Error and Facebook Game error For WebBrowser

    i got same error......

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