Grimmy's Recent Forum Activity

  • Thanks, the iFrame is working correctly so its an issue when clicking the button within the iFrame. I tried those suggestions but I'm still way off getting it working. (For a start a cant even access the iframe buttons via script..when I use getElementsByClassName on my iFrame I just get a returned array of length:0)

    As for changing the link, the problem is the link is something like "https://wa.me/1234567890" and its embedded into a google sheet. If I edit that link to something like:

    wa.me/1234567890 (with ?target=_blank appended)

    The link still takes me to the "Looks like you dont have Whats App installed" page on a built APK.

    I also tried ?target=_self but it has the same result.

  • Thanks, unfortunately I still can't seem to get an array of elements using the following:

    let elements=iframe_main.getElementsByClassName('sv-tile__btn sv-link-reset is-primary') ;

    It just returns a collection of length 0 even though I know there are about 20 elements of this class on the iFrame page.

  • Specifically, when a button is clicked in the iframe I want Construct 3 to perform a task. I know the class of the iframe button and the data in its href.

    I looked at a few iframe tutorials but they seem to be sending messages from construct to the iframe and not vice versa.

    Any ideas?

    Tagged:

  • I made some changes to my original post so I hope you don't mind me bumping this. I have a clear disparity between remote preview with iframe links and a debug apk.

    I'm sure it must be some kind of iframe parameter I need but I have no idea. Can anyone help?

    Thanks

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • It worked again the following day once, but now its dead again. Seems to be 'sporadic' at the moment.(24/12/2022)

  • Building a debug APK has always worked for me (for years) but in the past hour Ive been getting the error

    :Build Connection Failed

    and :Websocket is not closed.

    My network connection is fine.

    Ive restarted my PC but I still get the same error. ANy ideas?

    Cheers

  • Hi, when I access an iFrames textbox on mobile the whole iframe (or viewport) moves up and in my case the text box is moved out of view making it impossible to see what you are writing.

    How do I prevent the page moving up when the keyboard is opened? How can my code know if the hardware keyboard is opened or not?

    Thanks

    Tagged:

  • Hi, I have an iFrame that displays a web page which contain Whats App links.

    When I open the page normally on mobile (without construct 3) the WHats App link works perfectly and sends me straight to the WhatsApp app.

    EDIT: This also works perfectly well from Construct 3 IF using the remote preview.

    However, when I click the same link within a built APK it says that I haven't got whats app installed and it takes me to a page to download it and login to Google Play etc.

    How can I make this as seamless as it is when using the remote preview?

    Something to do with security or something? I tried allow * in my iFrame Allow permissions but it didn't help. I also tried allowing external write access when creating the build but that didn't help either.

    Thanks

    Tagged:

  • Hi, I want to access an iFrame and get the data from a class therein and then put this into one of my variables? How would I do that. I tried something like this as a random stab in the dark but it didn't work..

    RATE_myGlobalVar = iframe_id.getElement("fee font-body-sm font-weight-regular");

    All help greatly appreciated.

    Thanks

    Tagged:

  • I found the location but it seems its protected by an Authentication Token. I guess that might be generated off limits. :(

  • I will dig through thanks.

    I had an idea of loading the page into an iframe and then maybe accessing the data within the iframe after s few seconds. Is that even possible?

  • It sounds like yes, thats what Im trying to do. If I can find out where they get the data from themselves I may be able to get it from the source instead.

Grimmy's avatar

Grimmy

Member since 20 Nov, 2012

Twitter
Grimmy has 2 followers

Trophy Case

  • 11-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

16/44
How to earn trophies