forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Help with Lua Web Browser

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Lua Player Development
View previous topic :: View next topic  
Author Message
be2003



Joined: 20 Apr 2006
Posts: 144

PostPosted: Thu Apr 20, 2006 4:30 pm    Post subject: Help with Lua Web Browser Reply with quote

I have been making a lua web browser based off the wlan test. I have gotten far, i just need help making an html parse function. Don't know where to start. I was thinking along the lines of using the string.gsub for most of the parsing. My goal is a browser like lynx for *nix. Simple and fast.
_________________
- be2003
blog
Back to top
View user's profile Send private message
TeamOverload



Joined: 20 Apr 2006
Posts: 41
Location: CT

PostPosted: Thu Apr 20, 2006 11:26 pm    Post subject: Reply with quote

Sounds good, but I don't know if Lua can handle a very full featured web browser. It will be interesting to see, and I dont want to discourage you, so I wish you luck
_________________
[img]http://img115.imageshack.us/img115/1130/teamoverloadanimationsig7wp.gif[img]
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
be2003



Joined: 20 Apr 2006
Posts: 144

PostPosted: Fri Apr 21, 2006 1:52 am    Post subject: Reply with quote

well so far i have simple url input and page history. I have already viewed www.psp3d.com with it, text only and with no links :(

thinking of writing a lua or lrx library, because it has like 300 lines, most for functions.
I have planned a rewrite of my code for easy implementing of my functions. eg.
Code:
 gotoURL(url as a string)

returns the source as a string... wow lots of work todo.
_________________
- be2003
blog
Back to top
View user's profile Send private message
TeamOverload



Joined: 20 Apr 2006
Posts: 41
Location: CT

PostPosted: Fri Apr 21, 2006 2:31 am    Post subject: Reply with quote

Well i certianly will be interested in this. If you need any help or tester send me a PM, or message me on AIM, or send me an email or something
_________________
[img]http://img115.imageshack.us/img115/1130/teamoverloadanimationsig7wp.gif[img]
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
be2003



Joined: 20 Apr 2006
Posts: 144

PostPosted: Fri Apr 21, 2006 2:56 am    Post subject: Reply with quote

i will post a screenshot soon.

trying to get the rewrite done first
_________________
- be2003
blog
Back to top
View user's profile Send private message
glynnder



Joined: 04 Sep 2005
Posts: 35

PostPosted: Fri Apr 21, 2006 6:37 pm    Post subject: Reply with quote

be 2003, i am interested in this and have been looking at making a web browser in lua for a while, i have made a few propgrams in a few languages, and i would like to work with you on this.
Interested?
Back to top
View user's profile Send private message
be2003



Joined: 20 Apr 2006
Posts: 144

PostPosted: Sat Apr 22, 2006 1:30 am    Post subject: Reply with quote

i might need help eventually.
these are a screenshot and the source as html

just right click on the link and save as index.lua. it is my first attempt. i am working on the rewrite now.



sorry about the crude html renaming, i need better hosting
_________________
- be2003
blog
Back to top
View user's profile Send private message
be2003



Joined: 20 Apr 2006
Posts: 144

PostPosted: Sat Apr 22, 2006 1:44 am    Post subject: Reply with quote

oh ya try to stick with just www.something.com
not
something.com/someelse/index.php

controls:
when it chooses a connection and displays "Done!" hit square to load google (its only 2 lines, the browser print letter by letter, be patient, it is more like a news reader right now)
when google is done hit triangle just like the 2.0 browser
the url on the bottom is the current location, the one on the top is the input
hit circle to clear it and use up/down to change letters, x to input square to load
_________________
- be2003
blog
Back to top
View user's profile Send private message
TeamOverload



Joined: 20 Apr 2006
Posts: 41
Location: CT

PostPosted: Sat Apr 22, 2006 2:13 am    Post subject: Reply with quote

what version luaplayer is it for? I tried it on 0.16 on my 2.60 and i got the no script file found error
_________________
[img]http://img115.imageshack.us/img115/1130/teamoverloadanimationsig7wp.gif[img]
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
glynnder



Joined: 04 Sep 2005
Posts: 35

PostPosted: Sat Apr 22, 2006 2:27 am    Post subject: Reply with quote

ARGH - my f=ing PC

~Do you mind if i develop this by myself then?

I'll say based on excellent work by be2003?

this needs a lot of work
Back to top
View user's profile Send private message
be2003



Joined: 20 Apr 2006
Posts: 144

PostPosted: Sat Apr 22, 2006 2:29 am    Post subject: Reply with quote

the error you got means that your player cannot interpret a command used, do 2.6s support wifi?
i will do research on the issue
_________________
- be2003
blog
Back to top
View user's profile Send private message
be2003



Joined: 20 Apr 2006
Posts: 144

PostPosted: Sat Apr 22, 2006 2:51 am    Post subject: Reply with quote

does your luaplayer support font functions and does the lua wlan test work?
_________________
- be2003
blog
Back to top
View user's profile Send private message
be2003



Joined: 20 Apr 2006
Posts: 144

PostPosted: Sat Apr 22, 2006 2:57 am    Post subject: Reply with quote

go ahead and work off of it, but let me remind you, the rewrite will contain a much better parsing function, and who knows how to compile .lrx's?
_________________
- be2003
blog
Back to top
View user's profile Send private message
TeamOverload



Joined: 20 Apr 2006
Posts: 41
Location: CT

PostPosted: Sat Apr 22, 2006 3:15 am    Post subject: Reply with quote

glynnder wrote:
ARGH - my f=ing PC

~Do you mind if i develop this by myself then?

I'll say based on excellent work by be2003?

this needs a lot of work

Lol I just started my own browser(not really based off this, but I may use some parts of the code, if thats alright and the author gives consent), however I am making two versions Basic(in Lua) and Ultimate(Using PSPSDK)
_________________
[img]http://img115.imageshack.us/img115/1130/teamoverloadanimationsig7wp.gif[img]
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
glynnder



Joined: 04 Sep 2005
Posts: 35

PostPosted: Sat Apr 22, 2006 8:36 pm    Post subject: Reply with quote

cool, good luck.
i will wait till the rwrite cos i am working on luaMainframe ATM
which is basically lowser with some addons, e.g 'R' loads your fave homebrew!
Back to top
View user's profile Send private message
be2003



Joined: 20 Apr 2006
Posts: 144

PostPosted: Mon Apr 24, 2006 2:21 pm    Post subject: Reply with quote

i took a break, gsub was getting to my head. harvest moon summer harvest test for lua almost done.
_________________
- be2003
blog
Back to top
View user's profile Send private message
Arwin



Joined: 12 Jul 2005
Posts: 426

PostPosted: Tue May 02, 2006 11:43 pm    Post subject: Reply with quote

I wouldn't give up on this project per se, but must point out that the links2 port in pspradio is awesome. :)
Back to top
View user's profile Send private message
Danny769



Joined: 01 Feb 2006
Posts: 55

PostPosted: Wed May 03, 2006 12:30 am    Post subject: Reply with quote

If you can get the lua one going using th memstick as ram you will supass links2.

Keep it up.

But links2 may be able to have flask if the flash program can be ported.
In my real oppion PSP~Radio is cripling Link2 and visversa
Back to top
View user's profile Send private message
Arwin



Joined: 12 Jul 2005
Posts: 426

PostPosted: Wed May 03, 2006 1:43 am    Post subject: Reply with quote

Danny769 wrote:
If you can get the lua one going using th memstick as ram you will supass links2.

Keep it up.

But links2 may be able to have flask if the flash program can be ported.
In my real oppion PSP~Radio is cripling Link2 and visversa


Yeah, but there'll be a standalone links2 soon enough, obviously.
Back to top
View user's profile Send private message
Danny769



Joined: 01 Feb 2006
Posts: 55

PostPosted: Wed May 03, 2006 2:17 am    Post subject: Reply with quote

Raf wont give me the sorce.
adio is killing the thing
Back to top
View user's profile Send private message
Arwin



Joined: 12 Jul 2005
Posts: 426

PostPosted: Wed May 03, 2006 2:40 am    Post subject: Reply with quote

Danny769 wrote:
Raf wont give me the sorce.
adio is killing the thing


Well, first of all you don't have to turn the radio on while browsing, and second of all the source is publicly available.

If you can't discover where, you're probably not smart enough for working on it anyway. :p
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Lua Player Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group