
-----------------------------------
ScaryRat
Sun Apr 18, 2010 5:36 pm

Is It Possible to make a Web Browser with Turing?
-----------------------------------
Is It Possible to make a Web Browser with Turing?

-----------------------------------
SNIPERDUDE
Sun Apr 18, 2010 5:44 pm

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.

-----------------------------------
ProgrammingFun
Sun Apr 18, 2010 5:46 pm

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!

-----------------------------------
SNIPERDUDE
Sun Apr 18, 2010 5:51 pm

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).

-----------------------------------
ProgrammingFun
Sun Apr 18, 2010 6:02 pm

Re: RE:Is It Possible to make a Web Browser with Turing?
-----------------------------------
Haha, victorious!

Yes, like PragrammingFun said, 

ProgrammingFun to be exact  :mrgreen: 

 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 [url=http://compsci.ca/v3/viewtopic.php?t=20357]Help Documents here.

-----------------------------------
ScaryRat
Sun Apr 18, 2010 7:06 pm

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.

-----------------------------------
USEC_OFFICER
Sun Apr 18, 2010 7:17 pm

RE:Is It Possible to make a Web Browser with Turing?
-----------------------------------
It displays web pages and everything inside the program?

-----------------------------------
ScaryRat
Sun Apr 18, 2010 7:22 pm

RE:Is It Possible to make a Web Browser with Turing?
-----------------------------------
yes it displays web pages.

-----------------------------------
ProgrammingFun
Sun Apr 18, 2010 7:34 pm

Re: 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.

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.

-----------------------------------
ScaryRat
Sun Apr 18, 2010 7:42 pm

Re: 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.

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

-----------------------------------
USEC_OFFICER
Sun Apr 18, 2010 7:49 pm

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.

-----------------------------------
ProgrammingFun
Sun Apr 18, 2010 8:34 pm

Re: 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.

Well [url=http://compsci.ca/v3/viewtopic.php?t=18041&highlight=web+browser] this  program download and shows pictures from the internet...maybe it could help you if you decide to go on with the browser idea.

-----------------------------------
USEC_OFFICER
Sun Apr 18, 2010 8:37 pm

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.

-----------------------------------
ProgrammingFun
Sun Apr 18, 2010 8:39 pm

Re: 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.

Agreed...I was just showing that as a starting type of point or a point of reference.  :oops: 
I do think that the program linked would be easier and more practical to make than a web browser.  :wink:

-----------------------------------
USEC_OFFICER
Mon Apr 19, 2010 11:41 am

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.)

-----------------------------------
octopi
Mon Apr 19, 2010 12:30 pm

Re: RE:Is It Possible to make a Web Browser with Turing?
-----------------------------------

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.

-----------------------------------
SNIPERDUDE
Mon Apr 19, 2010 1:08 pm

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.

-----------------------------------
USEC_OFFICER
Mon Apr 19, 2010 3:00 pm

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.)

-----------------------------------
DtY
Mon Apr 19, 2010 5:00 pm

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.

-----------------------------------
ProgrammingFun
Mon Apr 19, 2010 5:10 pm

Re: Is It Possible to make a Web Browser with Turing?
-----------------------------------
WinID can be determined in this way:


var winID : int
winID := Window.Open ("position:center;center")


-----------------------------------
DtY
Mon Apr 19, 2010 5:12 pm

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?

-----------------------------------
TheGuardian001
Mon Apr 19, 2010 5:20 pm

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.

-----------------------------------
andrew.
Mon Apr 19, 2010 7:43 pm

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.

-----------------------------------
ProgrammingFun
Mon Apr 19, 2010 7:59 pm

Re: 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.

Would you mind posting the program and/or the source code?
I'm just interested  :o ...

Nothing urgent tho...

-----------------------------------
andrew.
Mon Apr 19, 2010 9:05 pm

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.

-----------------------------------
SNIPERDUDE
Tue Apr 20, 2010 12:10 am

RE:Is It Possible to make a Web Browser with Turing?
-----------------------------------
That does sound intriguing.

-----------------------------------
USEC_OFFICER
Tue Apr 20, 2010 1:44 pm

RE:Is It Possible to make a Web Browser with Turing?
-----------------------------------
How hard was it to create it?

-----------------------------------
andrew.
Tue Apr 20, 2010 4:59 pm

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 :(. It must've got deleted when I got my new computer.
