sicoobcooplivre Posted December 22, 2023 Share Posted December 22, 2023 @Sherzod Good morning! Please, I need help, I couldn't find it on the forum: I loaded an external page on UniURLFrame, and I wanted to take the data from this page and put it in a memo, so that I can process it and insert it into my database. How do I do this? Thanks! Merry Christmas! Quote Link to comment Share on other sites More sharing options...
Sherzod Posted December 22, 2023 Share Posted December 22, 2023 Hello @sicoobcooplivre If the page is not on your domain, you will not be able to access the data... Quote Link to comment Share on other sites More sharing options...
sicoobcooplivre Posted December 22, 2023 Author Share Posted December 22, 2023 It is an open page, where there is public data. I can load it inside the UniURLFrame, but I don't know how to get the data. It's possible? Wouldn't you have some material for me to study? Thanks! Quote Link to comment Share on other sites More sharing options...
Sherzod Posted December 22, 2023 Share Posted December 22, 2023 6 minutes ago, sicoobcooplivre said: It is an open page, where there is public data. Okay, no problem. Once again, if the site is not in your domain, or this domain does not give you "permission", then you will not be able to. Quote Link to comment Share on other sites More sharing options...
sicoobcooplivre Posted December 22, 2023 Author Share Posted December 22, 2023 Right. The site is on my domain, is there any material for me to study and learn to read the content I uploaded to the uniurlframe, please? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted December 22, 2023 Share Posted December 22, 2023 4 minutes ago, sicoobcooplivre said: The site is on my domain Good. I'm sure you'll find examples on the forum. Quote Link to comment Share on other sites More sharing options...
sicoobcooplivre Posted December 22, 2023 Author Share Posted December 22, 2023 I searched but did not find. Could you help me, mention an example please, and I will study it. Thanks! Quote Link to comment Share on other sites More sharing options...
irigsoft Posted December 22, 2023 Share Posted December 22, 2023 3 minutes ago, sicoobcooplivre said: I searched but did not find. Could you help me, mention an example please, and I will study it. Thanks! hello, maybe this will help to You: how to get data from iframe using javascript https://www.google.com/search?q=how+to+get+data+from+iframe+using+javascript&sca_esv=593079107&ei=bIWFZYv1F7fWxc8P3NuKwAM&oq=parse+data+from+iframe&gs_lp=Egxnd3Mtd2l6LXNlcnAiFnBhcnNlIGRhdGEgZnJvbSBpZnJhbWUqAggAMgoQABhHGNYEGLADMgoQABhHGNYEGLADMgoQABhHGNYEGLADMgoQABhHGNYEGLADMgoQABhHGNYEGLADMgoQABhHGNYEGLADMgoQABhHGNYEGLADMgoQABhHGNYEGLADSLEZUNQEWPsNcAJ4AZABAJgBgwGgAYMBqgEDMC4xuAEDyAEA-AEBwgIFECEYoAHiAwQYACBBiAYBkAYI&sclient=gws-wiz-serp Quote Link to comment Share on other sites More sharing options...
Norm Posted December 22, 2023 Share Posted December 22, 2023 Please provide a simple example of how you loaded the data into the URLFrame and I’ll give you a solution. 1 Quote Link to comment Share on other sites More sharing options...
sicoobcooplivre Posted December 22, 2023 Author Share Posted December 22, 2023 Okay, I'll study. As I'm still learning JavaScript, could you help me with how I could send the content to ajaxevent? Is this the right way? Thanks! Quote Link to comment Share on other sites More sharing options...
Norm Posted December 22, 2023 Share Posted December 22, 2023 (edited) It depends on the type of data you are talking about. You can either use Ajax to send the data into your form or you can use Axios fetch to store the data into a local file that you can access with Delphi. Edited December 22, 2023 by Norm Typo Quote Link to comment Share on other sites More sharing options...
Norm Posted December 22, 2023 Share Posted December 22, 2023 I’ll send you an example of each. Quote Link to comment Share on other sites More sharing options...
sicoobcooplivre Posted December 22, 2023 Author Share Posted December 22, 2023 Thanks. I'm still developing, when I finish, I'll post my source here. It's just that I'm learning, and I want to study how to send via ajaxevent the content of a page for me to edit and play in a memo, and then play in my database. Quote Link to comment Share on other sites More sharing options...
sicoobcooplivre Posted December 26, 2023 Author Share Posted December 26, 2023 @Sherzod Good morning! Taking advantage of this post, how do I read a website that has an open API? Do you have any examples to study? Thank you very much! Happy Holidays. Quote Link to comment Share on other sites More sharing options...
irigsoft Posted December 26, 2023 Share Posted December 26, 2023 15 minutes ago, sicoobcooplivre said: @Sherzod Good morning! Taking advantage of this post, how do I read a website that has an open API? Do you have any examples to study? Thank you very much! Happy Holidays. Hello, maybe this will help you using of XMLHttpRequest or Quote Link to comment Share on other sites More sharing options...
Sherzod Posted December 26, 2023 Share Posted December 26, 2023 1 hour ago, sicoobcooplivre said: Do you have any examples to study? Hello, For example, there are examples of google authorization on the forum, you can also analyze these examples. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.