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 


Favorites question
Goto page Previous  1, 2, 3
 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
kOt
Contributor
Contributor


Joined: 19 Jan 2004
Posts: 89
Location: Fyffe, AL

PostPosted: Sat Apr 17, 2004 5:50 pm    Post subject: Reply with quote

You could save it in this format for just one file

fav1="VDSWORLD|www.vdsworld.com"
fav2="Visual Dialogscript Homepage|www.dialogscript.com"
fav3=
fav4=
fav5=

_________________
Visual Dialogscript 5
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
tim6389
Professional Member
Professional Member


Joined: 01 Aug 2002
Posts: 790

PostPosted: Sun Apr 18, 2004 3:22 am    Post subject: Reply with quote

right but how to have vds ( not using I.E read the title of the web page) and then save that title WITH the url to that page Smile
_________________
Have a nice day Smile
Back to top
View user's profile Send private message
kOt
Contributor
Contributor


Joined: 19 Jan 2004
Posts: 89
Location: Fyffe, AL

PostPosted: Sun Apr 18, 2004 7:52 am    Post subject: Reply with quote

You could keep a list of windows that have been active and pick the one right before your window. < still couldn't be for sure if it correct
_________________
Visual Dialogscript 5
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
vtol
Valued Contributor
Valued Contributor


Joined: 05 Feb 2004
Posts: 656
Location: Eastern Indiana

PostPosted: Mon Apr 19, 2004 4:58 pm    Post subject: Reply with quote

I think Tim needs something like my JavaScript does on my website, it has a button the user clicks and makes my website a favorite on thier IE, but he wants the power of VDS to do all that offline.

And to be able to read the propertys of URLs and have automatic full control of... Idea

Sounds like the job for DLL Smile
Back to top
View user's profile Send private message Visit poster's website
tim6389
Professional Member
Professional Member


Joined: 01 Aug 2002
Posts: 790

PostPosted: Mon Apr 19, 2004 5:42 pm    Post subject: Reply with quote

vtol wrote:
I think Tim needs something like my JavaScript does on my website, it has a button the user clicks and makes my website a favorite on thier IE, but he wants the power of VDS to do all that offline.

And to be able to read the propertys of URLs and have automatic full control of... Idea

Sounds like the job for DLL Smile



yea but on offline...online Smile a dll would be cool Smile

_________________
Have a nice day Smile
Back to top
View user's profile Send private message
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1567

PostPosted: Mon Apr 19, 2004 5:53 pm    Post subject: Reply with quote

Quote:
right but how to have vds ( not using I.E read the title of the web page) and then save that title WITH the url to that page


You will need to download the webpage, any number of dll's allow you to download pages using the HTTP protocol , vdsipp, vdstcpip, vdsdll and I think skit has a dsu which cna do http downloads too.

You need to download the page to disc, PARSE the html file and grab the information between <TITLE> and </TITLE> you now have the title of the webpage. You also already have the URL too.

It's now simply a matter of creating the file you need and saving those two pieces of information into the file.

If this isn't what you are looking for than you will need to be much more descriptive of what you are trying to achieve.
Back to top
View user's profile Send private message
tim6389
Professional Member
Professional Member


Joined: 01 Aug 2002
Posts: 790

PostPosted: Mon Apr 19, 2004 6:51 pm    Post subject: Reply with quote

i think i see what ya mean...hummmm but if the web page is big won't PARSEing take alot of time?

thanks

_________________
Have a nice day Smile
Back to top
View user's profile Send private message
Skit3000
Admin Team


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

PostPosted: Mon Apr 19, 2004 7:06 pm    Post subject: Reply with quote

This is the only line you'll need to parse the title out of a HTML file: Smile

Code:
%%title = @substr(%%html,@sum(@pos(<title>,%%html),7),@pred(@pos(</title>,%%html)))

_________________
[ 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
tim6389
Professional Member
Professional Member


Joined: 01 Aug 2002
Posts: 790

PostPosted: Mon Apr 19, 2004 8:30 pm    Post subject: Reply with quote

cool but if the web page is big won't it take a long time parse it?


also to Skit3000 what about parse code for | so i could have the favs be like this

fav1="VDSWORLD|www.vdsworld.com"
fav2="Visual Dialogscript Homepage|www.dialogscript.com"
fav3=
fav4=
fav5=

what i could do is have it parse for title then save it then have it save the url after it using the | then when you view your fav and click on the one you want it would find the url after the | ....i hope you follow what i mean

_________________
Have a nice day Smile
Back to top
View user's profile Send private message
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1567

PostPosted: Mon Apr 19, 2004 9:06 pm    Post subject: Reply with quote

Tim you really have to pop open that vds help file and start reading up on how to use some of these commands.

OPTION FIELDSEP,|
PARSE "%%title;%%url", %%data

where %%data is the TITLE|URL

You then have the two separate variables %%title and %%url which hold the correct information.
Back to top
View user's profile Send private message
tim6389
Professional Member
Professional Member


Joined: 01 Aug 2002
Posts: 790

PostPosted: Mon Apr 19, 2004 9:47 pm    Post subject: Reply with quote

yup that is what i'am going to do when i get home....i never even thought about this parse idea Sad
_________________
Have a nice day Smile
Back to top
View user's profile Send private message
vtol
Valued Contributor
Valued Contributor


Joined: 05 Feb 2004
Posts: 656
Location: Eastern Indiana

PostPosted: Wed Apr 21, 2004 11:04 pm    Post subject: Reply with quote

hi
I'd like to be able just to get the URL address from a webpage while online, but the earlier code posted on this post (I think it was CodeScript) had a IF line that contained 'ComboBoxEx32' I looked for this in VDS5 Help, and no luck... what is that? (he said that script was no use if use DLL - so I figure its VDS code ???)

Or is it an IE known maybe .. Rolling Eyes Smile
Looks like an awesome script, and where can I find instructions on how to use that vdsbrw50.dll that comes with VDS5 please? Thank you...
Back to top
View user's profile Send private message Visit poster's website
Dr. Dread
Professional Member
Professional Member


Joined: 03 Aug 2001
Posts: 1065
Location: Copenhagen, Denmark

PostPosted: Thu Apr 22, 2004 6:49 am    Post subject: Reply with quote

vtol wrote:
where can I find instructions on how to use that vdsbrw50.dll that comes with VDS5 please?


Unfortunately there's no reference included with this component so basically you can check out the
example script included in the package and this thread:
http://forum.vdsworld.com/viewtopic.php?t=2674

Greetz
Dr. Dread

_________________
~~ Alcohol and calculus don't mix... Don't drink and derive! ~~

String.DLL * advanced string processing
Back to top
View user's profile Send private message
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Thu Apr 22, 2004 1:07 pm    Post subject: Reply with quote

More specific to Dr. Dread's post, here's a link to the exact post:
http://forum.vdsworld.com/viewtopic.php?p=20095#20095

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
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 -> General Help All times are GMT
Goto page Previous  1, 2, 3
Page 3 of 3

 
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