User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 15

Thread: Problems with Received$ from Get object

  1. #1
    Clicker Fusion 2.5HTML5 Export Module
    Allrounder's Avatar
    Join Date
    Jan 2014
    Posts
    57
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Problems with Received$ from Get object

    First of all: Thanks RickyRombo for your great Login / Registration tutorial!
    Maybe you or someone else can help?

    Most of it works fine. I can create new users, validate them with the automatic Email, change password, etc. as described.

    When trying to display the Echo-String from the php-script with Received$( "Get object" ), the Echo-String is displayed and some html or php-code:

    Fehler_Receive.JPG

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Popcorn's Avatar
    Join Date
    Jun 2006
    Location
    Norway, Bergen
    Posts
    2,366
    Mentioned
    13 Post(s)
    Tagged
    0 Thread(s)
    Make sure the page you are getting only contains the data you want to retrieve. If you are using a free host, there might be some data added by the server that you can't control. If that is the case, you will need to find a way to remove that part from the string. If the unwanted text is always the same, you can use String Parser to replace the text with an empty string.

  3. #3
    Clicker Fusion 2.5HTML5 Export Module
    Allrounder's Avatar
    Join Date
    Jan 2014
    Posts
    57
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Added data by the server could be the problem. The wanted text isn't always the same. Maybe I can always add a String like "EndOfText" in the php-file.
    Is there an easy way in MMF to "substring" the text before the "EndOfText"-String?

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Popcorn's Avatar
    Join Date
    Jun 2006
    Location
    Norway, Bergen
    Posts
    2,366
    Mentioned
    13 Post(s)
    Tagged
    0 Thread(s)
    Yes. You can run a fastloop for each character in the recieved string. On each loop, add the current letter to a new string. Also on each loop, check if the substring of the recieved text that starts on the current loopindex and is 9 letters long equals "EndOfText". If it is, stop the loop and the new string now contains the desired data.

    That beeing said, I really recommend getting a paid host. They most certainly wouldn't add any data.

  5. #5
    Clicker Fusion 2.5HTML5 Export Module
    Allrounder's Avatar
    Join Date
    Jan 2014
    Posts
    57
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'll try that. And you're right with a paid host. I am still learning Fusion, with a little Online-Multiplayer-Turnbased-Game. If I manage that, I'll switch to a paid host. Thanks for your help!

  6. #6
    Clicker Fusion 2.5HTML5 Export Module
    Allrounder's Avatar
    Join Date
    Jan 2014
    Posts
    57
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Looks like it's not the problem of using a free host. I tried the get object example with http://whatismyip.org and get the same problem:

    Fehler_Receive_2.JPG

    Loading the URL in the browser, the IP is displayed, with the receive of the get object not.

    Is there a problem with the get object and Fusion 2.5?

  7. #7
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Popcorn's Avatar
    Join Date
    Jun 2006
    Location
    Norway, Bergen
    Posts
    2,366
    Mentioned
    13 Post(s)
    Tagged
    0 Thread(s)
    That seems to work as normal. The GET object is supposed to get what's "behind" the webpage, so you'll get all html tags, scripts etc...
    You can see the same text by rightclicking the webpage in your browser and select "View source".

    That's why the page you are recieving should be completely blank besides the content you want to recieve.

  8. #8
    Clicker Fusion 2.5HTML5 Export Module
    Allrounder's Avatar
    Join Date
    Jan 2014
    Posts
    57
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Didn't know that. With this information I can continue. Thanks!

  9. #9
    Clicker Fusion 2.5HTML5 Export Module
    Allrounder's Avatar
    Join Date
    Jan 2014
    Posts
    57
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Scanning the received URL in a fast loop works. That's a good solution for single Strings.

    But what's the best way to receive rows or resultsets from a database table and put it in a list f.e.?

  10. #10
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Popcorn's Avatar
    Join Date
    Jun 2006
    Location
    Norway, Bergen
    Posts
    2,366
    Mentioned
    13 Post(s)
    Tagged
    0 Thread(s)
    The server could output a list like this:

    1,Harry,50;2,Garry,45;3,Parry,43;4,Larry,39;5,Mary ,35

    In Fusion you can use the String Tokenizer object to split the string using the symbols used as delimiters. In this example you could 2D split the string using ";" and ",". You can then fastloop through the tokenizer to read all the rows and items. If you want to recieve more data than the list in one go, you might need to split several times.

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Have you received a PM from Yves yet about the release of the Android runtime?
    By happygreenfrog in forum Android Export Module Version 2.0
    Replies: 4
    Last Post: 2nd April 2013, 03:10 PM
  2. Crash SET EDIT BOX to GET received
    By StingRay in forum iOS Export Module Version 2.0
    Replies: 1
    Last Post: 25th July 2012, 03:41 PM
  3. Beta 9: Program received signal: SIGABRT
    By Renatos in forum iOS Export Module Version 2.0
    Replies: 25
    Last Post: 22nd June 2012, 01:46 PM
  4. Received Binary
    By Corentin in forum Lacewing
    Replies: 3
    Last Post: 8th September 2009, 04:12 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •