Grimmy's Forum Posts

  • 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.

  • Using AJAX I am trying to get some data from a site (a currency site).

    When the site initially loads it just contains the vanilla page source, but (I think) that after a second or so, all that seems to get processed and additional data is added (currency values etc).

    The problem is that when I use AJAX it only returns to data Ajax.Last data of the source code that was present on the initial request. So there are no values to extract, just a bunch of useless <spans> and <divs>.

    I want to extract data that I can see in the 'Inspect Element' window and not the 'View Source'.

    Is there any way to somehow do an Ajax request which delays its return values until the site has done some processing.

    Or some other idea?

    Tagged:

  • Im getting script validation problems in this version even though my project doesn't have any Javascript at all. Whats also wierd is this say Event sheet 1, number -1.

    Its happened twice today, I reverted all my work the first time then tried making some new edits and the error started happening again. Even if I undo everything to the state is was when I loaded it I still get the error.

    https://app.screencast.com/VchjdHhdHZRqr

    Tagged:

  • SOLVED.

    After lots of going round in circles the solution is very easy. The trick is to use:

    Set attribute "tabIndex" to "-1"

    and NOT:

    Set CSS style "tabIndex" to "-1"

    ..which is what I was doing initially. (oops)

    Thanks for all the help!

  • "On Enter Pressed" still works for me when cursor is in a text input.

    This is on PC yes? Apologies, for this I am talking specifically about Android (I stupidly forgot to mention). When I hit enter it just tabs between text input and no reading is given for lastKeyPressed.