Computer Science Canada

Is It Possible to make a Web Browser with Turing?

Author:  ScaryRat [ Sun Apr 18, 2010 5:36 pm ]
Post subject:  Is It Possible to make a Web Browser with Turing?

Is It Possible to make a Web Browser with Turing?

Author:  SNIPERDUDE [ Sun Apr 18, 2010 5:44 pm ]
Post subject:  RE:Is It Possible to make a Web Browser with Turing?

Possible? Yes.
Practical? Not likely.

If you search the forums someone did start/attempt (not sure how far he got) one - called Ocean.
It was a part of the Turing Initiative.

Author:  ProgrammingFun [ Sun Apr 18, 2010 5:46 pm ]
Post subject:  RE:Is It Possible to make a Web Browser with Turing?

In theory, it could be done but it depends largely on which functions you want to incorporate.

What do you want to make a web browser for?

If you just need to open a specific webpage, you can use the Sys.Exec command found in the Turing Walkthrough.

EDIT: SNIPERDUDE, you beat me to it!

Author:  SNIPERDUDE [ Sun Apr 18, 2010 5:51 pm ]
Post subject:  RE:Is It Possible to make a Web Browser with Turing?

Haha, victorious!

Yes, like PragrammingFun said, it is possible to load a web page in Turing, I believe they also have an example of that somewhere in the Turing Help documents (Press F10 in Turing).

Author:  ProgrammingFun [ Sun Apr 18, 2010 6:02 pm ]
Post subject:  Re: RE:Is It Possible to make a Web Browser with Turing?

SNIPERDUDE @ Sun Apr 18, 2010 5:51 pm wrote:
Haha, victorious!

Yes, like PragrammingFun said,


ProgrammingFun to be exact Mr. Green

SNIPERDUDE @ Sun Apr 18, 2010 5:51 pm wrote:
it is possible to load a web page in Turing, I believe they also have an example of that somewhere in the Turing Help documents (Press F10 in Turing).


Or if you are using Turing 4.1.1, you can find the Help Documents here.

Author:  ScaryRat [ Sun Apr 18, 2010 7:06 pm ]
Post subject:  RE:Is It Possible to make a Web Browser with Turing?

Um it is for a project.

It has to be a legitimate browser, with "back", "forward", and a URL input.

Author:  USEC_OFFICER [ Sun Apr 18, 2010 7:17 pm ]
Post subject:  RE:Is It Possible to make a Web Browser with Turing?

It displays web pages and everything inside the program?

Author:  ScaryRat [ Sun Apr 18, 2010 7:22 pm ]
Post subject:  RE:Is It Possible to make a Web Browser with Turing?

yes it displays web pages.

Author:  ProgrammingFun [ Sun Apr 18, 2010 7:34 pm ]
Post subject:  Re: RE:Is It Possible to make a Web Browser with Turing?

ScaryRat @ Sun Apr 18, 2010 7:06 pm wrote:
Um it is for a project.

It has to be a legitimate browser, with "back", "forward", and a URL input.


If this is a project where you were specifically asked to make a browser...good luck!

If however, this is a project where you are choosing to make a web browser, I would highly recommend choosing something else to create unless you only plan on having the very basic features such as an address bar, forward, and back.

Author:  ScaryRat [ Sun Apr 18, 2010 7:42 pm ]
Post subject:  Re: RE:Is It Possible to make a Web Browser with Turing?

ProgrammingFun @ Sun Apr 18, 2010 7:34 pm wrote:
ScaryRat @ Sun Apr 18, 2010 7:06 pm wrote:
Um it is for a project.

It has to be a legitimate browser, with "back", "forward", and a URL input.


If this is a project where you were specifically asked to make a browser...good luck!

If however, this is a project where you are choosing to make a web browser, I would highly recommend choosing something else to create unless you only plan on having the very basic features such as an address bar, forward, and back.


Yes it is my own choice, and also yes I only plan to create basic features.

Can you please tell me how to use turing to view webpages, then I'll do the rest. Thank you

Author:  USEC_OFFICER [ Sun Apr 18, 2010 7:49 pm ]
Post subject:  RE:Is It Possible to make a Web Browser with Turing?

I don't think it is possible to view web pages in Turing. Unless perhaps you created a HTTP formater thingy or what ever it is called. But trust me, you are way over your head.

Author:  ProgrammingFun [ Sun Apr 18, 2010 8:34 pm ]
Post subject:  Re: RE:Is It Possible to make a Web Browser with Turing?

USEC_OFFICER @ Sun Apr 18, 2010 7:49 pm wrote:
I don't think it is possible to view web pages in Turing. Unless perhaps you created a HTTP formater thingy or what ever it is called. But trust me, you are way over your head.


Well this program download and shows pictures from the internet...maybe it could help you if you decide to go on with the browser idea.

Author:  USEC_OFFICER [ Sun Apr 18, 2010 8:37 pm ]
Post subject:  RE:Is It Possible to make a Web Browser with Turing?

But you still need an HTML formater/interpeter to actually view actual web pages, unless you create your own.

Author:  ProgrammingFun [ Sun Apr 18, 2010 8:39 pm ]
Post subject:  Re: RE:Is It Possible to make a Web Browser with Turing?

USEC_OFFICER @ Sun Apr 18, 2010 8:37 pm wrote:
But you still need an HTML formater/interpeter to actually view actual web pages, unless you create your own.


Agreed...I was just showing that as a starting type of point or a point of reference. Embarassed
I do think that the program linked would be easier and more practical to make than a web browser. Wink

Author:  USEC_OFFICER [ Mon Apr 19, 2010 11:41 am ]
Post subject:  RE:Is It Possible to make a Web Browser with Turing?

What link? Am I missing something? As another idea, look at object-oriented programming with Turing. (Yes, it's in there.)

Author:  octopi [ Mon Apr 19, 2010 12:30 pm ]
Post subject:  Re: RE:Is It Possible to make a Web Browser with Turing?

ScaryRat @ Sun Apr 18, 2010 7:42 pm wrote:

Yes it is my own choice, and also yes I only plan to create basic features.
Can you please tell me how to use turing to view webpages, then I'll do the rest. Thank you


This project is way over your head, don't attempt to do this for a final project....you'll regret it.
If you want to learn/explore do that for fun in your free time, not when you have an important deadline.

Author:  SNIPERDUDE [ Mon Apr 19, 2010 1:08 pm ]
Post subject:  RE:Is It Possible to make a Web Browser with Turing?

This thread has a great list of project ideas you can use for your final that would be a lot less aggravating to attempt.

Author:  USEC_OFFICER [ Mon Apr 19, 2010 3:00 pm ]
Post subject:  RE:Is It Possible to make a Web Browser with Turing?

All of those ideas are good for a final project, and more importantly, you can actually do them in your life-time. (The reason we can't show you how to view web pages is that we don't know. You have to build it from scratch. Which will be hard.)

Author:  DtY [ Mon Apr 19, 2010 5:00 pm ]
Post subject:  RE:Is It Possible to make a Web Browser with Turing?

You could probably get a DLL that would embed a Trident frame (IE) into a window, that you could tell to load pages. Wouldn't make too much of a project though, unless you did some more complicated stuff, maybe multiple windows and bookmarks.

I know there was one written for GameMaker (at least, there was when I last used GameMaker), the same DLL should work, but you might need to figure out the proper calls, and you would need to get the window ID (or whatever they have to identify windows on windows), which Turing might not reveal.

Author:  ProgrammingFun [ Mon Apr 19, 2010 5:10 pm ]
Post subject:  Re: Is It Possible to make a Web Browser with Turing?

WinID can be determined in this way:

Turing:

var winID : int
winID := Window.Open ("position:center;center")

Author:  DtY [ Mon Apr 19, 2010 5:12 pm ]
Post subject:  RE:Is It Possible to make a Web Browser with Turing?

Does that give you a proper window ID though, or just something Turing uses internally to keep track of its own windows?

Author:  TheGuardian001 [ Mon Apr 19, 2010 5:20 pm ]
Post subject:  Re: Is It Possible to make a Web Browser with Turing?

Internal only.

Turing can't, as far as I know, access dll files anyway... So simply embedding an IE frame isn't really an option.

Author:  andrew. [ Mon Apr 19, 2010 7:43 pm ]
Post subject:  RE:Is It Possible to make a Web Browser with Turing?

I remember a while ago, I made a program which got the html files from a website, and then parsed it based on the tags. It was a very, very basic web browser that only did text.

Author:  ProgrammingFun [ Mon Apr 19, 2010 7:59 pm ]
Post subject:  Re: RE:Is It Possible to make a Web Browser with Turing?

andrew. @ Mon Apr 19, 2010 7:43 pm wrote:
I remember a while ago, I made a program which got the html files from a website, and then parsed it based on the tags. It was a very, very basic web browser that only did text.


Would you mind posting the program and/or the source code?
I'm just interested Surprised ...

Nothing urgent tho...

Author:  andrew. [ Mon Apr 19, 2010 9:05 pm ]
Post subject:  RE:Is It Possible to make a Web Browser with Turing?

I have to see if I can find it. It's been a really really long time.

Author:  SNIPERDUDE [ Tue Apr 20, 2010 12:10 am ]
Post subject:  RE:Is It Possible to make a Web Browser with Turing?

That does sound intriguing.

Author:  USEC_OFFICER [ Tue Apr 20, 2010 1:44 pm ]
Post subject:  RE:Is It Possible to make a Web Browser with Turing?

How hard was it to create it?

Author:  andrew. [ Tue Apr 20, 2010 4:59 pm ]
Post subject:  RE:Is It Possible to make a Web Browser with Turing?

It wasn't that hard. But it really only got the HTML files. I would post it, but I can't find it on my computer Sad. It must've got deleted when I got my new computer.


: