Know your ISP.

User #187430   137 posts
Forum Regular

I have Visual Basic 2008 Express Edition, and I want to insert a piece of javascript in my program so when the control WebBrowser1 is loaded, text and images do not load, only Java. Is there any possible way to do that in the case I do not own the webpage?

P.S: Is there a code that can turn the current webbrowser control into a fullscreen window instead of F11?

This way, I am trying to make fullscreen Java.

posted 2008-Nov-5, 5pm AEST
User #22869   829 posts
Whirlpool Enthusiast

When you say Java, are you referring to a Java applet? Not entirely sure what you are trying to do but I guess you can read the source, find the line of code that specifies the java applet and just display that in the browser.

posted 2008-Nov-5, 6pm AEST
User #187430   137 posts
Forum Regular

Logistics writes...

When you say Java, are you referring to a Java applet? Not entirely sure what you are trying to do but I guess you can read the source, find the line of code that specifies the java applet and just display that in the browser.

Yes, it is a game, and there is no source.

posted 2008-Nov-5, 6pm AEST
User #44690   11385 posts
Whirlpool Forums Addict

Wouldn't it be simpler just writing a whole new HTML page containing just the <APPLET> tag?

Is there a way to embed a Java applet container directly into a VB program? It seems like a lot of overhead to include a whole web browser control.

posted 2008-Nov-5, 6pm AEST
edited 2008-Nov-5, 6pm AEST
User #187430   137 posts
Forum Regular

Foonly writes...

Wouldn't it be simpler just writing a whole new HTML page containing just the <APPLET> tag?

No because there will be no java applet when I copy the code to another site.

posted 2008-Nov-5, 6pm AEST
User #44690   11385 posts
Whirlpool Forums Addict

sinc writes...

No because there will be no java applet when I copy the code to another site.

I have no idea what that means.

Also, your thread title says "Javascript". Are you asking a question about JavaScript, Java applets, something else, all of the above...?

posted 2008-Nov-5, 6pm AEST
edited 2008-Nov-5, 6pm AEST
User #22869   829 posts
Whirlpool Enthusiast

@OP you are not being very clear. You say one thing to me but then the opposite to someone else.

If in fact you are using java applets like you said then you obviously need to include it in your html code through the tag <APPLET></APPLET>.

This means you can do what others and I suggested.

1. Retrieve the html source from what ever page. You do not need a WebBrowser control for this.

2. Using available string functions extract/copy text from <APPLET> to </APPLET>

3. Now that you have that, you can insert it into your WebBrowser.

posted 2008-Nov-6, 9am AEST
User #18536   4346 posts
Whirlpool Forums Addict

sinc writes...

text and images do not load

Is the correct html page (if any) being loaded?
Are all images/text pointing to the correct path?
Is it java or javascript? (they are 2 different things)
Is a particular page auto-loaded or do you have an address bar for users to use?

posted 2008-Nov-6, 9am AEST
User #44690   11385 posts
Whirlpool Forums Addict

Logistics writes...

If in fact you are using java applets like you said then you obviously need to include it in your html code through the tag <APPLET></APPLET>.

Or simply embed an applet viewer control into the application. I'm sure one must exist, somewhere.

posted 2008-Nov-6, 12pm AEST
edited 2008-Nov-6, 12pm AEST
Hosted by
Bulletproof Networks
Big numbers
999,303 threads
17,639,642 posts
2,048,393 whims sent
3,150 wiki topics
228 ISPs listed
8,104 broadband plans
831 modems & routers
41,174 features filled