Page 1 of 1

NWE and AJAX

Posted: Sun Sep 07, 2014 1:40 am
by KyleMassacre
I was going to PM Alain this question but maybe there are other people like me here that may have the same question. Basically is there a special trick to do some database interaction with the built in AJAX inside NWE?

I tried doing something's like in the AJAX tuts inside the engine modules and on the wiki but with a database insert command. The div will update but the database command doesn't execute.

Re: NWE and AJAX

Posted: Sun Sep 07, 2014 1:54 pm
by hallsofvallhalla
can you show the code. It should be fairly straight forward. All the code in the function should run as all the ajax is doing is calling the page again and running that function. Anything inside that function should be called.

Be sure your update code is reachable and that there are no errors.

Re: NWE and AJAX

Posted: Sun Sep 07, 2014 2:13 pm
by KyleMassacre
Ugh, again what a knob I am.

I deleted what I currently had because I couldnt get it working at the time so I just edited one of the Ajax demos and created a makeshift table and it worked. I don't know what my issue is these days, maybe I am burnt on on school and stuff too.

Re: NWE and AJAX

Posted: Mon Sep 08, 2014 2:40 pm
by hallsofvallhalla
I definitely know the feeling!