|
Advertisement
|
|
Advertisement
No logs - Anonymous IP
|
 |
|

11-11-2009, 12:23 AM
|
|
Banned
|
|
Join Date: Jan 2009
Location: Totse Island
Thanks: 131
Thanked 177 Times in 140 Posts
|
|
Creating a web browser?
I'm wondering what languages I should use to create my very own web browser.
So far I've been with JavaScript.
Any ideas?
|

11-11-2009, 05:34 AM
|
|
Regular
|
|
Join Date: Oct 2009
Thanks: 1
Thanked 27 Times in 17 Posts
|
|
Re: Creating a web browser?
Do you mean you're going to write a UI and parsing engine for both HTML and Javascript? Big task.
Decide if you're interested in cross-platform or not. Once your platform scope is defined, you can choose a language that suits the the rest of your needs from various points like how familiar you are with a language and what kind of optimizations you want to get into vs. how much abstraction you want (of course, this is often times not necessarily dictated by the language despite any specific tendencies).
Also, consider how many existing frameworks you want to use. Are you going to write a parser for both HTML and Javascript from the ground up? That's a nutty task. Are you going to use an existing rendering framework like WebKit?
|

11-11-2009, 05:35 AM
|
|
Count
|
|
Join Date: Jan 2009
Location: Perth, Australia
Thanks: 507
Thanked 610 Times in 353 Posts
|
|
Re: Creating a web browser?
|

11-11-2009, 05:40 AM
|
|
Banned
|
|
Join Date: Jan 2009
Location: Totse Island
Thanks: 131
Thanked 177 Times in 140 Posts
|
|
Re: Creating a web browser?
Quote:
Originally Posted by cense
Do you mean you're going to write a UI and parsing engine for both HTML and Javascript? Big task.
Decide if you're interested in cross-platform or not. Once your platform scope is defined, you can choose a language that suits the the rest of your needs from various points like how familiar you are with a language and what kind of optimizations you want to get into vs. how much abstraction you want (of course, this is often times not necessarily dictated by the language despite any specific tendencies).
Also, consider how many existing frameworks you want to use. Are you going to write a parser for both HTML and Javascript from the ground up? That's a nutty task. Are you going to use an existing rendering framework like WebKit?
|
Hmm... I'm not too informed about the whole thing, but I still want to continue doing this with just JavaScript and HTML.. maybe others but I'm guessing I'll write a parser for both HTML and Javascript, and I have a friend who's also helping out so we'll get it done much quicker.
Since my friend is a machomo, I'm going to make it for windows and mac.
Do you have any recommendations to where I can be more informed about this subject?
Quote:
Originally Posted by Ed Lister
|
I'd like to try that out, but I want to be able to make my own web browser.
Thanks, but no thanks.
|

11-11-2009, 06:27 AM
|
|
Baron
|
|
Join Date: Jan 2009
Location: Sydney, Australia
Thanks: 9
Thanked 148 Times in 99 Posts
|
|
Re: Creating a web browser?
before you begin. consider: is it worth it?
you have KHTML, Webkit, gecko, trident as credible rendering engines.
https://wiki.mozilla.org/Prism
maybe prism is suitable to your needs.
|

11-11-2009, 07:32 AM
|
|
Member
|
|
Join Date: May 2009
Thanks: 0
Thanked 2 Times in 2 Posts
|
|
Re: Creating a web browser?
Wait on a second...
You want to write a web browsing program in HTML and Javascript?
|

11-11-2009, 05:51 PM
|
|
Banned
|
|
Join Date: Jan 2009
Location: Totse Island
Thanks: 131
Thanked 177 Times in 140 Posts
|
|
Re: Creating a web browser?
Quote:
Originally Posted by Aragami
Wait on a second...
You want to write a web browsing program in HTML and Javascript?
|
Yeah lol We know it might take a while but if there's a way we'll go for it.
|

11-11-2009, 05:52 PM
|
|
Count
|
|
Join Date: Apr 2009
Thanks: 3
Thanked 136 Times in 103 Posts
|
|
Re: Creating a web browser?
Quote:
Originally Posted by Treefingers.s
Yeah lol We know it might take a while but if there's a way we'll go for it.
|
That comment went right over your head.
|

11-11-2009, 06:09 PM
|
|
Count
|
|
Join Date: Jan 2009
Thanks: 184
Thanked 358 Times in 243 Posts
|
|
Re: Creating a web browser?
Quote:
Originally Posted by Treefingers.s
Yeah lol We know it might take a while but if there's a way we'll go for it.
|
Learn C++... you can program ANYTHING in it.
|

11-11-2009, 06:15 PM
|
|
Baron
|
|
Join Date: Jan 2009
Location: Chicago, IL
Thanks: 44
Thanked 117 Times in 81 Posts
|
|
Re: Creating a web browser?
Qt4 has a WebKit widget. Use some language with Qt4 bindings.
|

11-11-2009, 06:39 PM
|
|
Banned
|
|
Join Date: Jan 2009
Location: Totse Island
Thanks: 131
Thanked 177 Times in 140 Posts
|
|
Re: Creating a web browser?
Quote:
Originally Posted by Bong McPuffin
Learn C++... you can program ANYTHING in it.
|
I was going to learn it, but Idk. I have an ebook to teach me but I don't really know how long it will take me to get to the part (not in the book) that will make me understand how to make one.
Quote:
Originally Posted by Animal Farm Pig
Qt4 has a WebKit widget. Use some language with Qt4 bindings.
|
Idk I'm not too knowledgeable about all of this.
|

11-11-2009, 08:15 PM
|
|
Count
|
|
Join Date: Apr 2009
Thanks: 3
Thanked 136 Times in 103 Posts
|
|
Re: Creating a web browser?
Visual basic is very simple. And I could teach you how to make a web browser in less then an hour.
|

11-11-2009, 08:34 PM
|
|
Banned
|
|
Join Date: Jan 2009
Location: Totse Island
Thanks: 131
Thanked 177 Times in 140 Posts
|
|
Re: Creating a web browser?
Quote:
Originally Posted by Raziel
Visual basic is very simple. And I could teach you how to make a web browser in less then an hour.
|
Teach me? I need some experience.
|

11-11-2009, 09:15 PM
|
|
Count
|
|
Join Date: Jan 2009
Thanks: 184
Thanked 358 Times in 243 Posts
|
|
Re: Creating a web browser?
Quote:
Originally Posted by Treefingers.s
I was going to learn it, but Idk. I have an ebook to teach me but I don't really know how long it will take me to get to the part (not in the book) that will make me understand how to make one.
Idk I'm not too knowledgeable about all of this.
|
Programming isn't something you can just pick up and learn in 3 days and start making kick-ass applications. Infact, I doubt you could even make a text adventure in under a week (with no prior experience, real programmers don't count)
|

11-11-2009, 09:19 PM
|
|
Banned
|
|
Join Date: Jan 2009
Location: Totse Island
Thanks: 131
Thanked 177 Times in 140 Posts
|
|
Re: Creating a web browser?
Quote:
Originally Posted by Bong McPuffin
Programming isn't something you can just pick up and learn in 3 days and start making kick-ass applications. Infact, I doubt you could even make a text adventure in under a week (with no prior experience, real programmers don't count)
|
Umm, I actually know some other programming languages, dude.
JavaScript is pretty easy, I'm just kind've lazy to keep learning it.
The things I'm not knowledgeable about are the steps to making a web browser and what you need.
|

11-11-2009, 09:21 PM
|
|
Distant Traveler
|
|
Join Date: Jan 2009
Location: Chicago/San Francisco
Thanks: 6
Thanked 49 Times in 27 Posts
|
|
Re: Creating a web browser?
WebBrowser1.GoBack
WebBrowser1.GoForward
WebBrowser1.Refresh
WebBrowser1.Navigate Text1.Text
There ya go, you have a fully functional web browser.
|

11-11-2009, 09:23 PM
|
|
Banned
|
|
Join Date: Jan 2009
Location: Totse Island
Thanks: 131
Thanked 177 Times in 140 Posts
|
|
Re: Creating a web browser?
Quote:
Originally Posted by Hobo
WebBrowser1.GoBack
WebBrowser1.GoForward
WebBrowser1.Refresh
WebBrowser1.Navigate Text1.Text
There ya go, you have a fully functional web browser.
|
Oh yes, like I'm just gonna write 4 lines of gibberish.
I'm not fucking stupid, retard. You're a moderator right? Could you get your shit straight or get the fuck out of here? Fucking pansy.
|

11-11-2009, 09:27 PM
|
|
Distant Traveler
|
|
Join Date: Jan 2009
Location: Chicago/San Francisco
Thanks: 6
Thanked 49 Times in 27 Posts
|
|
Re: Creating a web browser?
Quote:
Originally Posted by Treefingers.s
Oh yes, like I'm just gonna write 4 lines of gibberish.
I'm not fucking stupid, retard. You're a moderator right? Could you get your shit straight or get the fuck out of here? Fucking pansy.
|
Clearly you're not very smart. I just gave you 4 lines of code for a working web browser in VB.
Get the sand out of your vagina before replying like a whiny little bitch.
|

11-11-2009, 09:30 PM
|
|
Distant Traveler
|
|
Join Date: Jan 2009
Location: Chicago/San Francisco
Thanks: 6
Thanked 49 Times in 27 Posts
|
|
Re: Creating a web browser?
PS: Good luck writing that web browser in HTML/JS.
|

11-11-2009, 09:31 PM
|
|
Banned
|
|
Join Date: Jan 2009
Location: Totse Island
Thanks: 131
Thanked 177 Times in 140 Posts
|
|
Re: Creating a web browser?
Quote:
Originally Posted by Hobo
Clearly you're not very smart. I just gave you 4 lines of code for a working web browser in VB.
Get the sand out of your vagina before replying like a whiny little bitch.
|
I'm saying I don't want anything small. I'm thinking about making one at most equal to opera.
I don't know how I'm going to do that with 4 lines of text. I don't even... Fuck. Can we keep this JavaScript? My friend will probably quit if he has ot learn something else. I don't feel like doing it all by myself.
|

11-11-2009, 09:33 PM
|
|
Banned
|
|
Join Date: Jan 2009
Location: Totse Island
Thanks: 131
Thanked 177 Times in 140 Posts
|
|
Re: Creating a web browser?
Quote:
Originally Posted by Hobo
PS: Good luck writing that web browser in HTML/JS. 
|
Ok, thanks. I'm pretty sure I didn't know what the fuck to do in the first place. I just threw the idea out of no where to my friend and he wanted to do it.
I don't see why not, right?
PS: When I make it (I fucking will), you'll stfu.
PSS: I hope you don't wear those kinds of shoes for show.
|

11-11-2009, 09:37 PM
|
|
Distant Traveler
|
|
Join Date: Jan 2009
Location: Chicago/San Francisco
Thanks: 6
Thanked 49 Times in 27 Posts
|
|
Re: Creating a web browser?
Quote:
Originally Posted by Treefingers.s
Ok, thanks. I'm pretty sure I didn't know what the fuck to do in the first place. I just threw the idea out of no where to my friend and he wanted to do it.
I don't see why not, right?
PS: When I make it (I fucking will), you'll stfu.
PSS: I hope you don't wear those kinds of shoes for show.
|
You do not make a web browser in HTML/JS, plain and simple, dumbass.
As Raziel previously stated, yet you ignored, you can make a web browser in visual basic very easily. I PROVIDED YOU WITH THE CODING TO MAKE A VERY MINIMAL WEB BROWSER IN VISUAL BASIC. You did not listen, because you my friend are a fucking idiot.
|

11-11-2009, 09:39 PM
|
|
Banned
|
|
Join Date: Jan 2009
Location: Totse Island
Thanks: 131
Thanked 177 Times in 140 Posts
|
|
Re: Creating a web browser?
Quote:
Originally Posted by Hobo
You do not make a web browser in HTML/JS, plain and simple, dumbass.
As Raziel previously stated, yet you ignored, you can make a web browser in visual basic very easily. I PROVIDED YOU WITH THE CODING TO MAKE A VERY MINIMAL WEB BROWSER IN VISUAL BASIC. You did not listen, because you my friend are a fucking idiot.
|
I don't care if I do not make a web browser in HTML/JS, I'm going to fucking do it.
Did you see my fucking reply to his post?
|

11-11-2009, 09:41 PM
|
|
Distant Traveler
|
|
Join Date: Jan 2009
Location: Chicago/San Francisco
Thanks: 6
Thanked 49 Times in 27 Posts
|
|
Re: Creating a web browser?
Quote:
Originally Posted by Treefingers.s
I don't care if I do not make a web browser in HTML/JS, I'm going to fucking do it.
Did you see my fucking reply to his post?
|
You really just don't get it...please kill yourself
|

11-11-2009, 09:44 PM
|
|
Baron
|
|
Join Date: Jul 2009
Thanks: 390
Thanked 134 Times in 83 Posts
|
|
Re: Creating a web browser?
You don't "code" a web browser in JavaScript, smart guy. JavaScript is akin to HTML in that it is what displays what you see on the screen - i.e. it is the code that is on the website itself, not the code that runs the browser.
To program a web browser, you will need to learn C++ (or C, or Visual C#), Python, Visual BASIC, or some other programming language.
You will also need to do some studying on the subject on your own time, no one here is going to walk you step by step from "Hello, World!" to creating a fully functional web browser. Learning to code something that complex from scratch is something that takes many months, if not years, of studying computer languages. Hell, I've been studying C++ for well over 3 years now and I doubt I could pull it off.
|

11-11-2009, 09:47 PM
|
|
Banned
|
|
Join Date: Jan 2009
Location: Totse Island
Thanks: 131
Thanked 177 Times in 140 Posts
|
|
Re: Creating a web browser?
Quote:
Originally Posted by Hobo
You really just don't get it...please kill yourself 
|
Oh, sorry if I don't get it. I'm obviously oblivious to what you mean
|

11-11-2009, 09:47 PM
|
|
Baron
|
|
Join Date: Jan 2009
Location: Chicago, IL
Thanks: 44
Thanked 117 Times in 81 Posts
|
|
Re: Creating a web browser?
Quote:
Originally Posted by Treefingers.s
I don't care if I do not make a web browser in HTML/JS, I'm going to fucking do it.
|
|

11-11-2009, 09:48 PM
|
|
Banned
|
|
Join Date: Jan 2009
Location: Totse Island
Thanks: 131
Thanked 177 Times in 140 Posts
|
|
Re: Creating a web browser?
Quote:
Originally Posted by tim
You don't "code" a web browser in JavaScript, smart guy. JavaScript is akin to HTML in that it is what displays what you see on the screen - i.e. it is the code that is on the website itself, not the code that runs the browser.
To program a web browser, you will need to learn C++ (or C, or Visual C#), Python, Visual BASIC, or some other programming language.
You will also need to do some studying on the subject on your own time, no one here is going to walk you step by step from "Hello, World!" to creating a fully functional web browser. Learning to code something that complex from scratch is something that takes many months, if not years, of studying computer languages. Hell, I've been studying C++ for well over 3 years now and I doubt I could pull it off.
|
I already know C, so I guess I should start from there. Thanks for letting me know, I guess where ever I started learning JS/HTML isn't a really in depth explainer to what "Browser Script" is.
|

11-11-2009, 09:51 PM
|
|
Banned
|
|
Join Date: Jan 2009
Location: Totse Island
Thanks: 131
Thanked 177 Times in 140 Posts
|
|
Re: Creating a web browser?
Quote:
Originally Posted by Animal Farm Pig
|
I didn't have a reason to quit because I didn't know why I was supposed to. I'm not going to quit anything else.
Well, I'll get ready and etc.
|

11-11-2009, 09:56 PM
|
|
Baron
|
|
Join Date: Jan 2009
Location: Chicago, IL
Thanks: 44
Thanked 117 Times in 81 Posts
|
|
Re: Creating a web browser?
Quote:
Originally Posted by Treefingers.s
I didn't have a reason to quit because I didn't know why I was supposed to. I'm not going to quit anything else.
Well, I'll get ready and etc.
|
Comment
^
|
|
|
|
|
|
Your head
|

11-11-2009, 10:01 PM
|
|
Banned
|
|
Join Date: Jan 2009
Location: Totse Island
Thanks: 131
Thanked 177 Times in 140 Posts
|
|
Re: Creating a web browser?
Quote:
Originally Posted by Animal Farm Pig
Comment
^
|
|
|
|
|
|
Your head
|
Dude, you gotta know when to quit.
|

11-11-2009, 10:02 PM
|
|
Baron
|
|
Join Date: Jul 2009
Thanks: 390
Thanked 134 Times in 83 Posts
|
|
Re: Creating a web browser?
Quote:
Originally Posted by Treefingers.s
I already know C, so I guess I should start from there. Thanks for letting me know, I guess where ever I started learning JS/HTML isn't a really in depth explainer to what "Browser Script" is.
|
No problem dude.
Try http://www.w3schools.com/ for tutorials on JavaScript and HTML. As for coding the framework for a browser, I can't help you. People on the ##C++ and ##C (I think) channels on Freenode (irc://irc.freenode.org:6667) should be able to help you with some of the more advanced stuff.
I'd try to help but my brain might explode.
|

11-11-2009, 10:05 PM
|
|
Banned
|
|
Join Date: Jan 2009
Location: Totse Island
Thanks: 131
Thanked 177 Times in 140 Posts
|
|
Re: Creating a web browser?
Quote:
Originally Posted by tim
No problem dude.
Try http://www.w3schools.com/ for tutorials on JavaScript and HTML. As for coding the framework for a browser, good luck on that. If I tried to do that my brain might explode. 
|
I am actually learning from w3schools right now, dude. Seems as though you are the only person to atleast provide details and help in your posts.
Gosh, I feel horrible since I've never really tried or stayed with something longer than 2 seconds.
Can I ask you for one more favor? Can you tell me what exactly I need and a web page that shows the structure/etc?
That's all I need and then I'll pwn you motherfuckers.
|

11-12-2009, 12:23 AM
|
|
Duke
|
|
Join Date: May 2008
Thanks: 21
Thanked 53 Times in 42 Posts
|
|
Re: Creating a web browser?
You can make a web browser in JS.
In theory:
1) Run your "Browser JS" from the command line.
2) First you have to send the URL to a local file.
3) The local file (HTML Frameset, or perl, php whatever if you know it) acts as a proxy to retrieve the remote file by passing the XSS restriction on javascript.
4) Write your module to parse the response code, removing tags etc.
5) Print the text back to console.
At this stage it would be a text browser like the old school unix browsers:
6) Write the logic to "click on links". There's going to be numerous problems to solve throughout the project but between your OS and javascript you should be able to find a solution.
This is where I'd stop but since you want to pwn us motherfuckers.
7) Then begin your code on rendering the file as an image instead of text. You can save the image as a file and have console open it up. But then you're going to need some further hacks it hook the mouse clicks on links etc. It's a big job, but not impossible...
Quote:
Originally Posted by Treefingers.s
Can you tell me what exactly I need and a web page that shows the structure/etc?
That's all I need and then I'll pwn you motherfuckers.
|
Honestly, I'm doubtful you have the patience for this project...
Some Resources:
http://www.thefrontside.net/blog/lea...e_command_line
http://stackoverflow.com/questions/3...within-js-file
http://www.devarticles.com/c/a/JavaS...-the-Server/1/
|

11-12-2009, 12:28 AM
|
|
Slightly Grander Duke
|
|
Join Date: Jan 2009
Thanks: 440
Thanked 525 Times in 324 Posts
|
|
Re: Creating a web browser?
You can write a browser in html and javascript. Then you can use the new browser to run itself.
|

11-12-2009, 12:46 AM
|
|
Member
|
|
Join Date: Sep 2009
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: Creating a web browser?
Code:
public class Browser {
private int bWidth;
private int bHeight;
private String hPage;
public Browser() { bWidth = 400; bHeight = 500; hPage="http://java.com"}
public Browser(int width, int height, int homepage) {
this.bWidth = width;
this.bHeight = height;
this.hPage = homepage;
}
public void navWeb(int url) {
window.location= url;
}
public void back() {
window.location-1;
}
public void close() {
window.close=true;
}
}
Code:
public class Main {
public static void Main(String[] args) {
Browser myBrowser = new Browser(800, 800, "Http://google.com);
myBrowser.navWeb(//yourwebsitehere);
}
}
|

11-12-2009, 12:52 AM
|
|
Banned
|
|
Join Date: Jan 2009
Location: Totse Island
Thanks: 131
Thanked 177 Times in 140 Posts
|
|
Re: Creating a web browser?
So they finally come out of their caves, huh? Thanks guys. I'm gonna do this.
|

11-13-2009, 01:38 AM
|
|
Member
|
|
Join Date: May 2009
Thanks: 0
Thanked 2 Times in 2 Posts
|
|
Re: Creating a web browser?
Treefingers, you don't seem to realise that everyone in this thread was trying to help you, but you just want to flame them if they seem the least bit derogatory.
|

11-13-2009, 01:44 AM
|
|
Banned
|
|
Join Date: Jan 2009
Location: Totse Island
Thanks: 131
Thanked 177 Times in 140 Posts
|
|
Re: Creating a web browser?
Quote:
Originally Posted by Aragami
Treefingers, you don't seem to realise that everyone in this thread was trying to help you, but you just want to flame them if they seem the least bit derogatory.
|
You obviously didn't read most of my posts, and you obviously have no idea of what's going on.
|

11-13-2009, 01:59 AM
|
|
Member
|
|
Join Date: Mar 2009
Location: /dev/null
Thanks: 69
Thanked 59 Times in 44 Posts
|
|
Re: Creating a web browser?
this thread =
a webbrowser itself is pretty simple, you can make a very minimal UI pretty quickly (say, using webkit). Coding your own html/javascript parser, though, is a completely different animal. Writing a javascript intepreter in javascript is just dumb.
anyway if you're serious, here's a really basic browser that could get you started:
http://www.uzbl.org/
webkit is the shit anyway, I don't know why you wouldn't wanna use it.
@Axiom: people still use text browsers all the time, I use links every now and again to look up documentation and stuff occasionally
|
 |
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT. The time now is 07:04 PM.
|
|
Hot Topics |
| | | | | | | | | | | | | | |
On IRC |
Users: 4
Messages/minute: 0
Topic: "http://www.zoklet.net/..."
|
Users: 24
Messages/minute: 0
Topic: "ask ibm why atlantis is real"
|
Users: 11
Messages/minute: 0
Topic: "vaginaboob"
|
Advertisements |
|
Your ad could go right HERE! Contact us!
|
|