Well, I see we have a new command today... and while this is of course a very nice addition, I have to ask : why a command ? Or, why not a function ??
As I said, with a function returning part of the URL (after the xys:: prefix or something to id the links) this could have been incredibly more powerful and opened up so many possibilities. For instance, instead of having to use text to show a list of projects' names and their IDs and then use input to ask/enter which one to process, it could have been an HTML page where each link goes xys::42 (42 being the ID quite obviously), that way it's much easier.
Even better, put into a form we would have been able to use checkboxes (multiple choice lists), and even textboxes and other stuff, thus creating full configuration screen/page for our scripts. That would be just fantastic, and even if IE was to auto-encode the strings-to-return (since it is supposed to be URLs after all), XY comes with an urldecode function so it wasn't a problem at all!
And since I'm pretty sure you can get what link is about to be opened (some BeforeNavigate event or something?) - since it's even used on "Tip of the Day" - I really have to ask: why did you not go all the way and make this a function ??
Let's be modest, here are some mind-blowing ideas!
-
jacky
- XYwiki Master
- Posts: 3106
- Joined: 23 Aug 2005 22:25
- Location: France
- Contact:
Re: Let's be modest, here are some mind-blowing ideas!
Proud XYplorer Fanatic
-
admin
- Site Admin
- Posts: 66323
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Let's be modest, here are some mind-blowing ideas!
jacky wrote:Well, I see we have a new command today... and while this is of course a very nice addition, I have to ask : why a command ? Or, why not a function ??
As I said, with a function returning part of the URL (after the xys:: prefix or something to id the links) this could have been incredibly more powerful and opened up so many possibilities. For instance, instead of having to use text to show a list of projects' names and their IDs and then use input to ask/enter which one to process, it could have been an HTML page where each link goes xys::42 (42 being the ID quite obviously), that way it's much easier.
Even better, put into a form we would have been able to use checkboxes (multiple choice lists), and even textboxes and other stuff, thus creating full configuration screen/page for our scripts. That would be just fantastic, and even if IE was to auto-encode the strings-to-return (since it is supposed to be URLs after all), XY comes with an urldecode function so it wasn't a problem at all!
And since I'm pretty sure you can get what link is about to be opened (some BeforeNavigate event or something?) - since it's even used on "Tip of the Day" - I really have to ask: why did you not go all the way and make this a function ??
So all you are asking for is to make it a function and have anchor tags with href="xys::blah" close the dialog and return "blah"? This was planned anyway.
FAQ | XY News RSS | XY X
-
jacky
- XYwiki Master
- Posts: 3106
- Joined: 23 Aug 2005 22:25
- Location: France
- Contact:
Re: Let's be modest, here are some mind-blowing ideas!
Alright, awesome newsadmin wrote:Because this was just the testbed for my little browser-on-demand research.
Meh, I can ask for more if you want, no problem!admin wrote:So all you are asking for is to make it a function and have anchor tags with href="xys::blah" close the dialog and return "blah"? This was planned anyway.
For example, one thing I would ask : if you could rename the button to "Close" so that when doing "interactions" with a script, we can have our own buttons Ok/Cancel, and then Close would not imply the same as Ok (like it's validating/saving settings) but more Cancel.
Also, right now it always sends IE cookies, and couldn't care less about the INTERNET_FLAG_NO_COOKIES flag -- if there's a way to change that, and make it follow the same as other Internet-related commands (download & readurl), then it would make sense I think.
Proud XYplorer Fanatic
-
admin
- Site Admin
- Posts: 66323
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Let's be modest, here are some mind-blowing ideas!
I don't know how I could control this. It is IE (embedded in XY), so it follows the IE settings.jacky wrote:Also, right now it always sends IE cookies, and couldn't care less about the INTERNET_FLAG_NO_COOKIES flag -- if there's a way to change that, and make it follow the same as other Internet-related commands (download & readurl), then it would make sense I think.
FAQ | XY News RSS | XY X
-
admin
- Site Admin
- Posts: 66323
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Let's be modest, here are some mind-blowing ideas!
No, it's always a good idea to wait a couple of days (LSD: let settle dustjacky wrote:Alright, awesome newsadmin wrote:Because this was just the testbed for my little browser-on-demand research.So will the command live on, or be depreciated/removed for the function then ? In other words, should I bother adding the command to the wiki, or wait for it to be in its final stage (function) ?
FAQ | XY News RSS | XY X
-
jacky
- XYwiki Master
- Posts: 3106
- Joined: 23 Aug 2005 22:25
- Location: France
- Contact:
Re: Let's be modest, here are some mind-blowing ideas!
Yeah, said like that it make sense... just thought it might have been another setting to be set differently or something. No big deal though I think, since this isn't like the other commands which might have a script to download files/pages to get information, etc -- you're actually browsing the site here, so cookies are used.admin wrote:I don't know how I could control this. It is IE (embedded in XY), so it follows the IE settings.jacky wrote:Also, right now it always sends IE cookies, and couldn't care less about the INTERNET_FLAG_NO_COOKIES flag -- if there's a way to change that, and make it follow the same as other Internet-related commands (download & readurl), then it would make sense I think.
Thinking about it, I think that's the case with all apps using such an embedded IE anyways...
Proud XYplorer Fanatic
-
jacky
- XYwiki Master
- Posts: 3106
- Joined: 23 Aug 2005 22:25
- Location: France
- Contact:
Re: Let's be modest, here are some mind-blowing ideas!
Code: Select all
v7.90.0029 - 2009-01-05 19:46
* SC html is now a function.This is awesome, I'm gonna have to play with this all night
Thanks a lot for this excellent addition!
Proud XYplorer Fanatic
-
Linkaday
- Posts: 392
- Joined: 06 Aug 2007 14:40
- Location: Hamburg, Germany - Win 11 Home v25H2 x64 1920x1080 (100%)
Re: Let's be modest, here are some mind-blowing ideas!
Oh, yeah! That opens up a cage of carrier pigeons (as opposed to a can of worms) 
-
serendipity
- Posts: 3360
- Joined: 07 May 2007 18:14
- Location: NJ/NY
Re: Let's be modest, here are some mind-blowing ideas!
Code: Select all
v7.90.0029 - 2009-01-05 19:46
* SC html is now a function.-
jacky
- XYwiki Master
- Posts: 3106
- Joined: 23 Aug 2005 22:25
- Location: France
- Contact:
Re: Let's be modest, here are some mind-blowing ideas!
grrr, but no, it's a function now, that's what's so great about it!!serendipity wrote:Wow!! Mind blowing command.Code: Select all
v7.90.0029 - 2009-01-05 19:46 * SC html is now a function.
(And yes, really awesome thing, I've been playing with it, slowly getting to what I want done, I really love it!
Proud XYplorer Fanatic
-
TheQwerty
- Posts: 4373
- Joined: 03 Aug 2007 22:30
Re: Let's be modest, here are some mind-blowing ideas!
My mind-blowing idea for the day... new function Tab()!
I think this is pretty self explanatory - otherwise ask.
Number = Tab([Type], [Location], [Name], [Iconize]);
Args:
Type: c|f|b = Current Tab, New Foreground Tab, or New Background Tab.
Location: If omitted, <curpath> is used.
Name: If omitted, tab is not renamed or name is removed.
Iconize: 0|1
Returns:
The tab's number by position for use by SelTab().
This same command can be used to just rename or iconize tabs by using the defaults, as a shortcut for #340;GoTo([Location]), or to just retrieve the number of the current tab.
For extra credit, we should probably accompany this with a means of getting the Name and Iconize state for a tab.
I'm dying for either a similar command or for the Catalog to remember more about tabs than just the locations. I'd even be satisfied with just a RenameTab([Name]) command so I could avoid using the clipboard and seeing the rename dialogs when I set up different environments via script.
I think this is pretty self explanatory - otherwise ask.
Number = Tab([Type], [Location], [Name], [Iconize]);
Args:
Type: c|f|b = Current Tab, New Foreground Tab, or New Background Tab.
Location: If omitted, <curpath> is used.
Name: If omitted, tab is not renamed or name is removed.
Iconize: 0|1
Returns:
The tab's number by position for use by SelTab().
This same command can be used to just rename or iconize tabs by using the defaults, as a shortcut for #340;GoTo([Location]), or to just retrieve the number of the current tab.
For extra credit, we should probably accompany this with a means of getting the Name and Iconize state for a tab.
I'm dying for either a similar command or for the Catalog to remember more about tabs than just the locations. I'd even be satisfied with just a RenameTab([Name]) command so I could avoid using the clipboard and seeing the rename dialogs when I set up different environments via script.
-
admin
- Site Admin
- Posts: 66323
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Let's be modest, here are some mind-blowing ideas!
Looks good!TheQwerty wrote:My mind-blowing idea for the day... new function Tab()!
I think this is pretty self explanatory - otherwise ask.
Number = Tab([Type], [Location], [Name], [Iconize]);
Args:
Type: c|f|b = Current Tab, New Foreground Tab, or New Background Tab.
Location: If omitted, <curpath> is used.
Name: If omitted, tab is not renamed or name is removed.
Iconize: 0|1
Returns:
The tab's number by position for use by SelTab().
FAQ | XY News RSS | XY X
XYplorer Beta Club