Click here to Skip to main content
15,905,912 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello, I have used an iframe in windows form application. When I execute this form, it showing an error box is as below :

1. An error has accoutred in the script on this page.
2. Line: 0
3. Character: 0
4. Error: Script Error
5. Code: 0
6. Url: href="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"


and the code is :
C#
private void Form1_Load(object sender, EventArgs e)
        {
             string _embeddedpage = @"
             <html>
                 <body>
                     <iframe width='100%' height='385'
                         src='http://dev.livestuff.com/BrowserAddon?previewmode=Y' frameborder='0'>
                     </iframe>
                 </body>
             <html>";
             webBrowser1.DocumentText = _embeddedpage;
}


Please give any suggestion to solve this problem.
Thanks.
Posted
Updated 8-Apr-14 3:15am
v3
Comments
[no name] 8-Apr-14 9:15am    
Should your last html tag be "</html>"?
Priyanka Bhawsar 8-Apr-14 9:18am    
Yes, sorry to write this wrong but its not the issue.
ZurdoDev 8-Apr-14 11:33am    
It's an error from dev.livestuff.com.
Priyanka Bhawsar 9-Apr-14 1:05am    
Yes you are right, so how to solve it ?
ZurdoDev 9-Apr-14 7:04am    
Contact them.

1 solution

It works for me at the moment. There is no any scripts in your code. The only problem may appear when you navigate on the iframe page, but this page is not part of your code, so anything can happen inside this frame. At this moment, I did not face any problem, but it could change anytime. It could be a problem of the site your referenced, not yours.

—SA
 
Share this answer
 
Comments
Priyanka Bhawsar 9-Apr-14 1:13am    
Yes, all things are inside the iframe not in my code. SO there is any other way to solve this problem ? Please give me any suggestion to solve this problem.
Sergey Alexandrovich Kryukov 9-Apr-14 1:20am    
What solution?! Well, address to the developers of this site. I told you, I didn't even face the problem. This question in your comment just goes out of scope. Some other's site is the thing-in-itself, the noumenon, do you understand that?

Case closed.

—SA
Priyanka Bhawsar 9-Apr-14 2:03am    
Actually, dev.livestuff.com is my website so I can edit script in the iframe but this iframe is also used in chorme extention and firefox extention and works properly, its getting problem when I create IE addon through windows form. So what and how edit this script ?
Sergey Alexandrovich Kryukov 9-Apr-14 3:10am    
Nothing seems to make sense here. What Windows Forms? How is it related to IE, Web and your question?
—SA
Priyanka Bhawsar 10-Apr-14 2:02am    
It is related to IE addon and also not working in simple windows setup.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900