processing is great for many tasks like capturing key board input,mouse input etc,but what about web browsing?is it possible to create a pretty web browser?how would i do it?any other alternatives?suggestions please!
java native interface (JNI) allows you to call C++ functions from java (and hence processing). so you could use a fast C++ based web browser engine (eg. webkit) and present the results in processing. of course you'd have to compile this separately for each platform.
is it possible to make everything from scratch,i mean,without using any "pre-formed" thing?i want it to be completely original.if i do so,will i have to take care of all the html processing?plz help.by the way, @dr.mo you are great!
To make a browser from scratch, you would have to "decode" that HTML yourself, and turn it into a visual representation of the webpage. That's basically what a browser does! Good luck writing your own one!
Some hints if you're really serious:
- Ignore things inside HTML comment tags ( <!-- --> ).
- Determining what is inside HTML tags ( < > ), and what is not. You can actually make a text-only webpage quite easily if you filter out the content from the style information.
- Start with the basic style tags, such as links, font colors, background colors, tables, lists, paragraphs... The list goes on and on...
- Work out how to do images.
- Work out how to deal with more complex tags, such as div's, classes, spans, etc...
yes, of course you can make your own from scratch. but i think this is a rather big endeavour to say the least. it will probably take you many years. and why would you want to do that? it's likely never going to be as good as an existing one.
"why would you want to do that?" For the challenge, the fun, the learning acquired in the process... But indeed, the result will never be at the level of current browsers. Support of HTML 2 or 3 with CSS1 would be already quite a challenge...
hmm........it will indeed be difficult..what do browsers use now,i mean,what languages like html,css etc.?actually what i want to create is a COMPLETELY DIFFERENT kind of browser,so the present browsers wont work.still,i will try for it and thanks again
even if you want to change significant parts of how the information is displayed, the part that parses and understands the HTML and CSS and so forth will still be needed and you might as well use those. life is too short to reinvent the wheel!
Leave a comment on utkarsh_proto's reply
Change topic type
Link this topic
Provide the permalink of a topic that is related to this topic