droptank21's Forum Posts

  • Just as Ashley described above. Set the text to Ajax.LastData and do not use quotes.

  • I'll work on it. In theory it should show the error message. Strange...

  • Post your capx and xml file please.

  • I believe the term is onion-skinning. And for now, you would have to code it using animation frames and arrays I suspect.

  • Do a search on MD5, SHA-1 or SHA-256

  • Copy the url of your Ajax Request into the browser bar and click go. If it returns your xml data then the issue is not your Ajax request but how the Ajax.LastData is being handled client side.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Your issue was that you were trying to run two AJAX requests at the same time, login and login_info. So, essentially, the Ajax.LastData returned was the data run by the last completed Ajax Request - the user's level - and the username was never returned back to the client side.

    The easy fix was to run the login Ajax request and then when Ajax(login) is completed run the login_info Ajax request. The system gets one and sets the username then gets their level (admin or student) and sets that data to the user_Type variable.

    Here is the corrected capx Here

    All in all, you are definitely going in the right direction. You have done a very good job expanding upon the login system and even put my php skills to shame.

    Imagine trying to code all of this in actionscript... <img src="smileys/smiley5.gif" border="0" align="middle"> Thank goodness for C2.

  • Works fine. Use the following files. Here

    Create a new database in phpmyadmin named "test". Then import the database.sql file to that database.

  • SQL file?

  • Post all of your files please. I'll have a look and see what is going on.

  • Did you make sure to modify the sql info to match your database?

  • george

    Here is the fix.

    Step 1. Modify your login event sheet to look like this:

    <img src="https://dl.dropbox.com/u/44787590/logineventfix.jpg" border="0">

    login event fix

    Step 2: Replace login.php with this version: login.php

    Should work like a charm. <img src="smileys/smiley2.gif" border="0" align="middle">

  • shoesims

    You have the same issue on the register event. Remove the ajax request under on ajax completed.

  • shoesims

    Your login event is duplicating the ajax login call.

    Basically you have the system making an ajax request each time the ajax request is completed causing it to endlessly loop.

    (ie) Run ajax request -> on completed -> run ajax request -> on completed...

    and on and on until infinity.

    Remove the second Ajax request under the event On Login Completed. ( Ajax -> http://localhost/avibppt/test/login.php?username="& UsernameTxt2.Text & "&password=" & PasswordTxt2.Text)

  • george

    I see what you mean. I have the same error on my end. I think I have a way of fixing it by assigning the error given by the php else statement. Will post when I have it done.