Recent Posts

Pages: 1 2 [3] 4 5 ... 10
21
Beta / Re: version 2.4 feature request update - revamp
« Last post by bmartino1 on November 09, 2018, 11:23:15 PM »
Sorry, been out the past month or so with medical issues... i was going to post some things regardeing testing and other stuff. But for now, id like to add a potential change if applicable to the new beta.

The main idea is adding "a cookie-based login system", so modern mobile browsers could use a form based login system (and not rely on that old and obsolete login popup that most new browsers are now deprecating).

it would be nice to propose new additions (at server level).

I think it would be the perfect time to request having a "cookie-based login system" instead of (using a form based user/pass login).
--This way controls to login in and out can potential be code for a full login / logout function.

Delphi google searches for codes groups and info:

http://coding.derkeiler.com/Archive/Delphi/comp.lang.pascal.delphi.misc/2004-10/0357.html

http://groups.google.com.mx/group/borland.public.delphi.internet.winsock/browse_thread/thread/929c7359d8e321d7/e250f2e8f245ef0e?lnk=st&q=&rnum=1&hl=es#e250f2e8f245ef0e

http://codeverge.com/embarcadero.delphi.tools/how-to-use-indy-10-to-post-to-a-web/1066980

https://www.example-code.com/delphiDll/http_addCookies.asp

https://softwareengineering.stackexchange.com/questions/178105/understanding-http-cookies-in-indy-10-for-delphi-xe2

*essential adding more authentication (things i have seen at the windows server level):
https://www.example-code.com/delphiDll/http_authentication.asp
--(Delphi DLL) HTTP Authentication (Basic, NTLM, Digest, Negotiate/Kerberos)

**********************************
Although a "cookie-based login system" could be done at client level (only using JavaScript and Ajax)
https://www.codementor.io/mayowa.a/how-to-build-a-simple-session-based-authentication-system-with-nodejs-from-scratch-6vn67mcy3

https://stackoverflow.com/questions/42843030/javascript-login-using-cookies

https://www.htmlgoodies.com/beyond/javascript/article.php/3888551/JavaScript-Class-How-Can-I-Set-A-Cookie-Based-On-A-Users-Selection-On-A-Form.htm

https://developer.atlassian.com/cloud/jira/platform/jira-rest-api-cookie-based-authentication/

The main idea is adding "a cookie-based login system", so modern mobile browsers could use a form based login system (and not rely on that old and obsolete login popup that most new browsers are now deprecating).

22
Beta / Re: version 2.4
« Last post by MarkV on November 08, 2018, 10:37:16 PM »
Hi, just passing by, and I see you are all still busy. HFS has come a long way (I still remember the good old days when it started). No reason to stop it. :)
23
Beta / Re: version 2.4
« Last post by LeoNeeson on November 05, 2018, 07:06:45 AM »
ok, i see.
I don't see a good reason to support IE6 and FF3.
I understand your suggestion to use jquery 1.4 is also in favor of IE6 and FF3.
Yeah, it's OK. :) Who cares about IE6 and FF3 anyway? They are not relevant today (I don't use it at all, I just did some tests on it, only because the old template worked fine on it). But if some user needs support for those old browsers, could still use 'The really fast Throwback (retro) template' or the old legacy template that I'm sharing HERE. After all, this is a brand new version, so, it's OK to drop support for those 'truly very-old browsers'.

http://www.rejetto.com/hfsfiles/hfs24b6.exe

Now we have sorting, and much more translatable strings.
Cool! 8) I'll check it out and do some tests on the next few days...
24
HTML & templates / Old default template for new and legacy browsers
« Last post by LeoNeeson on November 05, 2018, 07:00:25 AM »
Since Rejetto has updated the default template of HFS v2.4 to a new responsive mobile-friendly version (and also have updated jQuery from v1.4.2 to v1.12.4), I decided it's time to release a specially modified version of the old default template you found on past HFS versions, up to v2.3m, supporting both new and legacy browsers. The only modification I did is embedding the old jQuery v1.4.2, and the rest of the code is untouched. This file was taken from the source code of v2.3m (default.tpl).

You can use this old default template (that's attached to this post) on HFS v2.4 and newer versions too, but keep in mind that Rejetto only gives support to browsers not older than JAN/2006 with some exceptions (as he stated here), so keep in mind that the use of this template is officially unsupported (and unless Rejetto says otherwise, I'm currently the only one who gives support for it, but rest assured this template is rock-solid stable).

In the case you use an old custom template (that makes use of old jQuery) on a legacy browser (older than 2016), you will need to make the following modification, simply replacing this text (marked in red):

Quote
<script type="text/javascript" src="/?mode=jquery">

...to the following text (marked on green color):

Quote
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js">



Or if you want to make it work offline (because you use HFS on a LAN, without internet access), the modification is more complex (and is exactly the same modification I did on the attached template), and you need to use this:

Quote
<script type="text/javascript" src="/?mode=section&id=jquery.js">

And also add the following text, before this section: [file=folder=link|private]

Quote
[jquery.js|no log|cache]
/* Copy and paste here the contents of the jQuery v1.4.2 file */



If you have any doubts, use as reference the template attached to this post, or feel free to ask me for help, by leaving a message here, in this post (the support I'm giving is limited only to make work the old jQuery v1.4.2 with your template, and nothing else). If your template doesn't use jQuery at all, you don't need to make any modification. An alternative to this template, is using 'The really fast Throwback (retro) template' made by danny.

Enjoy! :) ...and don't forget to leave a comment if you find this useful!
(and thanks to Rejetto for making it the default template for almost 8 years)

Code: [Select]
File: legacy-template.tpl
MD5: 048E8A2A4A4F6AA8D6B544A24CECE11F

Cheers,
Leo.-
25
HTML & templates / Re: Implementing Base64 encoding/decoding as a Macro function
« Last post by rejetto on November 04, 2018, 10:19:02 PM »
ok, i've found the sha1
Code: [Select]
    if name = 'sha1' then
        result:=SHA1toHex(sha1OfStr(p));

it's not included in beta6, anyway
26
HTML & templates / Re: Implementing Base64 encoding/decoding as a Macro function
« Last post by rejetto on November 04, 2018, 09:52:40 PM »
for my use I would just add aliases  ;D

encode64=base64|$1
decode64=base64decode|$1
encodemd5=md5|$1

I was based on these two macros, encodeuri and decodeuri,  which was in the sense of continuity
do not confuse the md5 and md5 file macros that have different uses

i see, but i don't like having just '64'  instead of 'base64', and the 'encodeuri' name was copied from javascript.
27
Beta / Re: version 2.4
« Last post by rejetto on November 04, 2018, 09:48:10 PM »
http://www.rejetto.com/hfsfiles/hfs24b6.exe

Now we have sorting, and much more translatable strings.
28
Beta / Re: version 2.4
« Last post by rejetto on November 04, 2018, 09:45:28 PM »
ok, i see.
I don't see a good reason to support IE6 and FF3.
I understand your suggestion to use jquery 1.4 is also in favor of IE6 and FF3.
29
Beta / Re: version 2.4
« Last post by LeoNeeson on November 04, 2018, 08:42:37 PM »
don't you remember if the problems were with the default template, or not?
may be wrong but it must be about the compatibility of old default template with the new version of jquery
Yes, the problem was about compatibility of old default template (of 2.3m) with the new version of jQuery v1.12.4.



The latest tests I did the other day, were only using the default template of 2.3m. Using Iron 31 worked fine (and anything more modern than that). When I said 'you won't like to hear this' it was because the compatibility problem was with 'really' old browsers, like Firefox 3.x and IE6 (and could be more old browsers).

I could report exactly what it fails (with screenshots), since I have access to those browsers (in case you care about). But those were 'action' buttons not showing up (in Firefox 3.x), and IE6 was working better (this surprised me), only having the file 'selection panel' doesn't showing up. It could be more missing, since I can't remember exactly all now.

I reported this is issue because the default template of v2.3m was working absolutely fine BEFORE with those old browsers (and because some users could be still using and depending on those old browsers), but like I've said on previous posts, this issue particularly doesn't affect me (one because I mostly use Iron 31 which works fine now, and second because I could patch the old template to use jQuery v1.4.2 in case I need). But that doesn't mean this issue still exists, and that it could affect other old custom templates too.



ANOTHER THING: I also discovered that the new template of v2.4 is not 100% compatible with the old jQuery v1.4.2. If my tests are not wrong (at least when using Iron 31), when using the new template with the old jQuery, you will find all the main buttons on the header missing, and the 'more options' menu not responding when clicking on it. So, I have my doubts now if this is worth all the hassle, just to keep jQuery v1.4.2. But if you fix the new template to be working with jQuery v1.4.2, then go ahead with jQuery v1.4.2 (this would be the best solution, if it's not too complicated for you to fix it).

That's why I leave this decision up to you. In my opinion, when you release v2.4 (if you want to keep jQuery v1.12.4), you should at least warn users that old templates could be broken when using a truly old browser. But the best solution (that's my suggestion only), would be fixing the new template of v2.4 to be working with jQuery v1.4.2 (so you could include jQuery v1.4.2 by default).

I'm attaching the new template of v2.4 with old jQuery v1.4.2 embedded on the same file, to make your tests easier (but don't rely on it, since I can't be sure if it's from Beta 4 or 5). You will find it doesn't work as expected...

I hope this helps... ;)
30
Beta / Re: version 2.4
« Last post by Mars on November 04, 2018, 07:38:34 PM »
 may be wrong but it must be about the compatibility of old default template with the new version of jquery
Pages: 1 2 [3] 4 5 ... 10