forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Javascript VDS interpreter
Goto page Previous  1, 2, 3, 4, 5  Next
 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Other Product Support/Announcements
View previous topic :: View next topic  
Author Message
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Mon Nov 06, 2006 6:44 pm    Post subject: Reply with quote

Garrett, you are right your example doesn't work, it is because you used uppercased if-else-end commands. I already made sure all "normal" commands could be both upper and lowercase, but forgot the conditional and loop commands Embarassed When renaming If to if, Else to else and End to end it does work. It will be fixed with new versions of the interpreter Smile

Code:
REM    _____________________________________________________
REM   |\___________________________________________________/|
REM   | |                                                 | |
REM   | | SOURCE TITLE:    GT-HtmlStrip                   | |
REM   | | ------------                                    | |
REM   | | SOURCE AUTHOR:   Garrett R. Hylltun             | |
REM   | | -------------                                   | |
REM   | | DATE:            20 April, 2001                 | |
REM   | | ----                                            | |
REM   | | REQUIREMENTS:    VDS 2.x, 3.x, 4.x, 5.x         | |
REM   | | ------------                                    | |
REM   | | SOURCE STATUS:   Public Domain                  | |
REM   | | -------------                                   | |
REM   | | SOURCE DESCRIPTION:                             | |
REM   | | ------------------                              | |
REM   | |   This is an example which shows you how to     | |
REM   | | strip html tags from a single line.             | |
REM   | |_________________________________________________| |
REM   |/___________________________________________________\|

REM   --- |-------------------------------------------------| ---
REM   --- |   %A is the variable holding the string input.  | ---
REM   --- |-------------------------------------------------| ---

  %A = <FONT face=Verdana>If <B>you</B> see any html <I>tags</I> in this message <U>then</U> this example obviously has failed you.</font>

  repeat
    if @greater(@pos(<,%A),0)
      %B = @pos(<,%A)
      %C = @pos(>,%A)
        If @equal(%B,1)
          %D =
        Else
          %D = @substr(%A,1,@fsub(%B,1))
        End
      %E = @substr(%A,@sum(%C,1),@len(%A))
      %A = %D%E
    end
  until @not(@greater(@pos(<,%A),0))

  INFO %A


k0t, I think this might be the problem with your scripts too. Try this example:

Code:
info "@len example:" @len(This string is 28 characters)
info The middle three numbers: @substr(123456789,4,6)


Another thing might be that your scripts use long-variables. In difference to VDS, this interpreter only needs one leading %-sign to work Smile

Garrett, I am trying to find out how I can let styles work. I can say for sure most "dialog create" styles will not be able to work, since there is no equivalent for them in javascript. Dialog element styles don't have this limitation. The only thing about those is that almost all browsers use different functions to dynamically create CSS stylesheets which are needed to append styles to elements.

Connecting to a MySQL (or any other database) will become possible. I only do not know what is wise to do yet. I can convert my interpreter to let is also run server side, but then your host will need to let you use server side jscript (and I don't think many hosters will allow this). Another problem is that every platform has its own method of letting javascript communicate with external objects like databases, which I have to implement ALL.

Another solution for me is to create a small ASP and PHP front end to a database which can be called from the VDS interpreter after which your scripts can query the database directly by the use of the ASP or PHP script and the use of AJAX. The downside of this method is that you still have to do a little of ASP or PHP coding, to prevent users from running SQL code by hand (by simply editing your VDS scripts' source code). Or I can let it work with SQLite and IP/computer-based sessions so that every user has it's own database so they can only demolish their own and not the ones of all other people which use your scripts Smile

The third solution which came to my mind, is to use the normal VDS compiler together with database DLLs or DSUs and let it run on a Windows server through the CGI-interface.

But, before I really start working on the server side part of it, I first want to talk to some people to decide which way to go Smile

Edit: I couldn't stop myself and [ uploaded the fixed version ] for the problem Garrett encountered Smile

_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2147
Location: A House

PostPosted: Tue Nov 07, 2006 12:28 am    Post subject: Reply with quote

Hey Skit,

Thanks for the info. If you can't add styles, oh well. As for the other stuff,
I'd really rather not see this thing get too complicated.

-Garrett

_________________
'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.)
Necroprogramming FTW! - "Wait.. Is necroprogramming legal?"
http://www.freewarehome.com <-- Freeware listings since 1996
Back to top
View user's profile Send private message
vdsalchemist
Admin Team


Joined: 23 Oct 2001
Posts: 1448
Location: Florida, USA

PostPosted: Tue Nov 07, 2006 2:47 pm    Post subject: Reply with quote

Skit,
I must applaud your efforts on this project. It has come a very long way since you originally showed this to me. I am very impressed. Cool

_________________
Home of

Give VDS a new purpose!
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Tue Nov 07, 2006 5:06 pm    Post subject: Reply with quote

Thanks Very Happy

Hope I can say the same about GadgetX in a few days Wink Or well, from what I've heard about it I am happy already Wink

_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
arcray
Valued Contributor
Valued Contributor


Joined: 13 Jul 2001
Posts: 242
Location: Aude, France

PostPosted: Mon Dec 11, 2006 7:18 am    Post subject: Reply with quote

I noticed that this thread has been quiet for a while, so I thought I'd try and re-start it.

How difficult would it be to have COMBO dialogs, that I can assign LISTS to. Currently I just loadtext into it (in native VDS), or load a list from a file. Are COMBOs possible in java?

Also data storage is important as I'd have to save the data input, and ideally that should be in MySQL or something similar.

I agree with Julian through, I would pay at least 100 US for such a product!?

_________________
Andrew GRAY
If you don't know I am looking for work, I won't get the job.

andrewrcgray.com
Back to top
View user's profile Send private message Send e-mail
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Mon Dec 11, 2006 6:53 pm    Post subject: Reply with quote

Right now I am in contact with a company which might want to buy this project so I stop working on it for a little while until things are clear. If not, or not for a reasonable compensation, I will restart development and add lists/combo's and the ability to load and save files Smile
_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
arcray
Valued Contributor
Valued Contributor


Joined: 13 Jul 2001
Posts: 242
Location: Aude, France

PostPosted: Wed Feb 07, 2007 3:43 am    Post subject: Reply with quote

Hi Skit!

How did you get on with the other company!?

If positive, is there likely to be a release soon? If negative, I would be interested in funding development as well...

Regards

_________________
Andrew GRAY
If you don't know I am looking for work, I won't get the job.

andrewrcgray.com
Back to top
View user's profile Send private message Send e-mail
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Thu Feb 08, 2007 2:41 pm    Post subject: Reply with quote

Andy, I did not get any real response at all, so I am now thinking to let it be freeware. I still will add the things I mentioned, but not for the first couple of weeks since I'm real busy with some other things Smile
_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1711
Location: Space and Time

PostPosted: Thu Feb 08, 2007 5:58 pm    Post subject: Reply with quote

Sweet. I look forward to using it. I haven't tried anything too much yet because I was waiting. Thanks!
_________________
Chris
Http://vdsfreak.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Serge
Professional Member
Professional Member


Joined: 04 Mar 2002
Posts: 1480
Location: Australia

PostPosted: Fri Feb 09, 2007 12:57 am    Post subject: Reply with quote

me too Smile Smile Smile

i don't particularly want to learn javascript and this will be fantastic as i won't have too Smile Smile Smile

serge

_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
arcray
Valued Contributor
Valued Contributor


Joined: 13 Jul 2001
Posts: 242
Location: Aude, France

PostPosted: Fri Feb 09, 2007 1:09 am    Post subject: Reply with quote

Hi Serge, I am in your part of the world at the moment (Bali) and now understand how frustrating it is to be 8 hours ahead of everybody else!

However, back to Europe in a couple of weeks!

_________________
Andrew GRAY
If you don't know I am looking for work, I won't get the job.

andrewrcgray.com
Back to top
View user's profile Send private message Send e-mail
Serge
Professional Member
Professional Member


Joined: 04 Mar 2002
Posts: 1480
Location: Australia

PostPosted: Fri Feb 09, 2007 1:37 am    Post subject: Reply with quote

hi andy,

welcome to the southern hemisphere and my part of the world Very Happy

serge

_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Dave
Valued Contributor
Valued Contributor


Joined: 03 Sep 2005
Posts: 403
Location: Australia

PostPosted: Fri Feb 09, 2007 2:30 am    Post subject: Reply with quote

I keep forgetting that Serge is a fellow Aussie. There's 4 of us here, that I know of.

What part of Oz are in, Serge?

_________________
cheers

Dave
Back to top
View user's profile Send private message Visit poster's website
Serge
Professional Member
Professional Member


Joined: 04 Mar 2002
Posts: 1480
Location: Australia

PostPosted: Fri Feb 09, 2007 2:44 am    Post subject: Reply with quote

i am in melbourne, a city voted the best to live in a few times ... not that i noticed living here Smile

actually, i am a french man born and bred in morocco (casablanca) and now living in australia ... it's a looooooong story Smile

where are you dave?

serge

_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Dave
Valued Contributor
Valued Contributor


Joined: 03 Sep 2005
Posts: 403
Location: Australia

PostPosted: Fri Feb 09, 2007 2:49 am    Post subject: Reply with quote

Sydney... born and raised here.

The other 2 Aussies that I know here are from Brisbane.

_________________
cheers

Dave
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Other Product Support/Announcements All times are GMT
Goto page Previous  1, 2, 3, 4, 5  Next
Page 4 of 5

 
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
You can attach files in this forum
You can download files in this forum




Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group