NWE and AJAX

General Chat, Comments
Post Reply
User avatar
KyleMassacre
Posts: 573
Joined: Wed Nov 27, 2013 12:42 pm

NWE and AJAX

Post 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.
User avatar
hallsofvallhalla
Site Admin
Posts: 12023
Joined: Wed Apr 22, 2009 11:29 pm

Re: NWE and AJAX

Post 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.
User avatar
KyleMassacre
Posts: 573
Joined: Wed Nov 27, 2013 12:42 pm

Re: NWE and AJAX

Post 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.
User avatar
hallsofvallhalla
Site Admin
Posts: 12023
Joined: Wed Apr 22, 2009 11:29 pm

Re: NWE and AJAX

Post by hallsofvallhalla »

I definitely know the feeling!
Post Reply

Return to “General”