Search found 30 matches

by pajito
Tue Nov 08, 2022 9:32 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: json authentication
Replies: 8
Views: 4687

Re: json authentication


Did they provide any instructions on what you're expected to do with the authentication key? Does it go in the headers? Does it become a URL parameter? Any instructions at all?



Also I was given the option of basic authentication as the administrator called it , which has a username and a ...
by pajito
Tue Nov 08, 2022 7:22 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: json authentication
Replies: 8
Views: 4687

Re: json authentication


Did they provide any instructions on what you're expected to do with the authentication key? Does it go in the headers? Does it become a URL parameter? Any instructions at all?


Hi, yes the authentication goes to the headers. Bellow you can find the code I used with batch file and managed to ...
by pajito
Tue Nov 08, 2022 12:50 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: json authentication
Replies: 8
Views: 4687

Re: json authentication

[/quote]
What are the instructions for using the authentication key?
[/quote]

hi, they just gave me a link which I can share

Code: Select all

https://www.myrace.gr/json/leaderboard?id=2146&m=5148
and an authentication key. There is a basic authentication mode but still doesn't seem to work

thanks
by pajito
Mon Nov 07, 2022 11:27 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: json authentication
Replies: 8
Views: 4687

Re: json authentication

Hi and thanks for the reply,

yes i tried this approach but it didn't return any results. propably I use it wrong or something
by pajito
Mon Nov 07, 2022 10:34 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: json authentication
Replies: 8
Views: 4687

json authentication

Hi there,

I am trying to populate a widget via an online json file. I managed to do so when I used an "open" online json file, the problem comes when the official data I have to use has an authentication key. There is also a basic authentication with username and password, which also I can not ...
by pajito
Fri Oct 30, 2020 8:25 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: DataGrid Search, Narrow search by Column
Replies: 2
Views: 3253

Re: DataGrid Search, Narrow search by Column

Hi Klaus,

as you said (Famous last words) , from a famous guy in helping everyone.
Of course it works now, I will doublecheck it and I will come back.

Thank you so much



Hola Pajito,

this should do the trick:
command searchMe tString
local tIndexList, tRecord, tHLIndexes
put the dgIndexes ...
by pajito
Fri Oct 30, 2020 7:02 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: DataGrid Search, Narrow search by Column
Replies: 2
Views: 3253

DataGrid Search, Narrow search by Column

Hi everybody ,

i am working on a project in which I want to include a search function. I found and used the following code in the forum

datagrid code
command searchMe tString
local tIndexList, tRecord, tHLIndexes
put the dgIndexes of me into tIndexList
repeat for each item tIndex in tIndexList ...
by pajito
Mon Nov 13, 2017 8:50 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: unicode (utf-8) over socket
Replies: 8
Views: 8571

Re: unicode (utf-8) over socket

Hi Klaus

sorry for the late response, there are no scripts writing to the fields, the data are coming straight from the cvs field "1" or "f1", the other way I use is by typing myself into the fields. If I got something wrong please let me know and I will send you what you need.

Best Regards
Ioannis
by pajito
Sun Nov 12, 2017 9:02 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: unicode (utf-8) over socket
Replies: 8
Views: 8571

Re: unicode (utf-8) over socket

Here you are Klaus,
please note that the one we care about is fld "p1a" , t1 is the dynamic field from Adobe Animate.
Thanks again

global casparServer
on mouseUp

write "CG 1-81 ADD 1" & quote & "superiera/SW1" & quote & "1" & quote & "<templateData><componentData id=\" & quote & "t1\"& quote ...
by pajito
Sun Nov 12, 2017 7:11 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: unicode (utf-8) over socket
Replies: 8
Views: 8571

Re: unicode (utf-8) over socket

Hi again

Unfortunately no, still question marks are coming out. I will give it a try again by changing or merging the scripts, hoping fot the best.

Thanks for your time Klaus
Ioannis
by pajito
Sun Nov 12, 2017 5:57 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: unicode (utf-8) over socket
Replies: 8
Views: 8571

Re: unicode (utf-8) over socket

Hi Klaus

first of all I need to apologize :oops: for the UTF-16 file and for forgetting to mention that my socket accepts only UTF-8 encoding. Your code of course works, I get the greek characters correct both in field"f1" and all fields in grp "pl", but when I send them over the socket again they ...
by pajito
Sun Nov 12, 2017 1:18 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: unicode (utf-8) over socket
Replies: 8
Views: 8571

unicode (utf-8) over socket

Hi everybody,
I am facing a problem with unicode - unidecode etc, I know it has been a classic problem but still it gives me a hard time. So as you can understand from the uploaded file in the end of this post, I load a csv with unicode(utf-8) greek characters, in fld"1" , at first I couldn't even ...
by pajito
Fri Oct 20, 2017 12:59 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Control a stack with multiple pages
Replies: 15
Views: 16742

Re: Control a stack with multiple pages

Hi Craig

Thanks a lot for the reply,it gave a lot to think about. I will give it a test tomorrow and I will let you know of the outcome.

Thanks Again
Ioannis
by pajito
Thu Oct 19, 2017 9:20 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Control a stack with multiple pages
Replies: 15
Views: 16742

Control a stack with multiple pages

Hi everybody

I made a code to control all fields in a card, then I made another card, and I changed my code to

put empty into field x
Repeat x = 1 to the number of fields in stack s1

The problem is that it clears all fields in card 1 and not card 2 as well. It seems really strange to me,any ...