Grimmy's Recent Forum Activity

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

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • HI, sorry for bothering but is this how the code and the input communicate with each other? I tried the following but the console log doesn't print anything when I press a key when the text input is focussed. Maybe Im doing it completely wrong?

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

    To stop the Tab key to move focus to another text input you can try this code, but it only works with Worker disabled:

    Hi, for this code how exactly do I go about assigning/using the textInputID. I'm not sure how it works. Do I simply put a string "textInputID" into the ID parameter of each textinput object?

    Thanks

  • CHeers. Does On Enter pressed work though if you have multiple input boxes? For me it triggers only after it tabs out of the final input box.

  • I don't want that to happen. Is there a way to stop it?

    I tried adding: Set CSS Style "tabindex" to "-1" but that didn't have any effect

    I notice also that keyboard events aren't registered while a text input is focussed, so there seems to be no way I can do On Enter- un focus all text inputs..it just always automatically tabs to the next one when Enter or Tab is pressed.

    Thanks

  • When I print a keycode using on anykey pressed event and the event being setText to Keyboard.LastKeycode it works great for PC..

    However this displays nothing when I try to use the same command using an Android virtual keyboard.

    Basically I'm just trying to close the keyboard when the user hits Enter on the virtual keyboard by unfocussing the text inputs but instead the Enter key seems to just tab through my text inputs on Android.

    You can see a live example of my current project in the Playstore with this issue here: https://play.google.com/store/apps/details?id=com.ruleoffun.ebd&hl=en_US&gl=US

    Just download and try inputting some numbers and then hitting enter.

    Any ideas?

    Thanks

  • Hi, I put our new teaser trailer on YouTube here:

    Subscribe to Construct videos now

    Please like, subscribe etc. As you all know, it all helps.

    Thank You so much

    Simon

    ruleoffun.com

    Twitter: atruleoffun

  • I'm happy if just every child object just follows the exact parent objects opacity level. What is says on the tin. :)

Grimmy's avatar

Grimmy

Member since 20 Nov, 2012

Twitter
Grimmy has 2 followers

Trophy Case

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

17/44
How to earn trophies