May 18, 2012, 09:39:35 pm
News: Welcome to NPL Community Forum.
Please let us know what you think, and let's get the other developers on here, so we can work together to move NPL to the next level.
Pages: [1]   Go Down
Print
Author Topic: read and post web pages  (Read 2779 times)
0 Members and 1 Guest are viewing this topic.
basic2c
Developers
****
Offline Offline

Posts: 35


bspeng
View Profile WWW Email
« on: October 10, 2007, 03:57:43 pm »

It sure would be nice to retrieve and post web pages from within NPL...
Logged
Mr. Niakwa
NPL
Administrator
*****
Offline Offline

Posts: 17


Beedy beedy beep.


View Profile WWW Email
« Reply #1 on: November 05, 2007, 05:24:14 pm »

Tell me more! 

How would this capability be used? 

Why would this be good?

Does anyone else think this is a good idea?
Logged

NPL Support                                      If a man speaks in the forest and there is no woman around to hear him....Is he still wrong?
basic2c
Developers
****
Offline Offline

Posts: 35


bspeng
View Profile WWW Email
« Reply #2 on: November 05, 2007, 06:07:50 pm »

I've been using a program name "URL2FILE".
you pass it an URL and it dumps the results to a text file... or html file, if you will.  I open the text file and parse the results. The NPL $shell thingy is a bit obnoxious to look at... and depending on the length of the URL, you have to create a .BAT file to do the job instead... on the screen it's just plain ugly.

Something closer to an javascript AJAX solution would be nice... even passing the results back in a text file would be okay...  I don't think there's any reason to limit the functionality to "XML only" type responses... parsing a file is okay for me.


Logged
Mr. Niakwa
NPL
Administrator
*****
Offline Offline

Posts: 17


Beedy beedy beep.


View Profile WWW Email
« Reply #3 on: November 06, 2007, 11:04:36 am »

Are you talking about retreiving a web page html content into a variable or array? 

Maybe,  dynamically building a web page within NPL and posting it?

Logged

NPL Support                                      If a man speaks in the forest and there is no woman around to hear him....Is he still wrong?
basic2c
Developers
****
Offline Offline

Posts: 35


bspeng
View Profile WWW Email
« Reply #4 on: November 06, 2007, 11:24:52 am »

Primarily, I'm after web page contents.  Sometimes just screen skimming, sometimes looking for the effects of a post.  Sometime, I use this as a work-around for  posting and/or retrieving information from an MySQL database.

Having NPL act as a scripting language, while interesting, probably isn't practical.

Logged
AlanWoods
Forum
Administrator
*****
Offline Offline

Posts: 24


Programming is a dangerous job!

a3w00ds
View Profile WWW Email
« Reply #5 on: November 08, 2007, 10:54:43 am »

While I am by no means a Javascript guru, I have used javascript on website designs, and I have always felt NPL is a much stronger language, and could be used as a scripting language like java......    does anybody agree?
Logged

"A" Cubed Woods
Computer Consulting & Web Designs
"Keyboard error .....  press any key to continue."
basic2c
Developers
****
Offline Offline

Posts: 35


bspeng
View Profile WWW Email
« Reply #6 on: November 08, 2007, 12:23:50 pm »

imho: while javascript can be irritating. it's universally accepted... mostly.  the constructs of NPL, while more clear to us, would be equally irritating when applied to the DOM.

I think it would be nice to have something "quickly" implemented that would allow NPL to access the "world"... i don't think it's necessary to try and save it (the world)...
Logged
Pages: [1]   Go Up
Print
Jump to: