![]() |
Home Community Mys-Script Creative Off-Topic |
|
|
Thread Tools | Display Modes |
#6
|
||||
|
||||
![]()
I didn't use $.ajax because $.post did the same in one line (I believe it's ajax too?), first is the url of the file, second is the data and third is the function that works the results. At least that's what I understood xD
Aah thanks for sharing! I will try to use all the .focus and .change functions to see if it corrects the spazzing that happens sometimes There's a few issues with mysidia's pages, so I kinda went around the problems lol For example the php spits out errors in the result of the ajax request if the document isn't created and doesn't have a title, so you have to create it as a page. Because my function turns into a page itself, that means users can access it, so I made it throw exceptions if the the value recieved is null. Then if the function is fine, the result spits out the full page's html xD I went around this by accessing the characters of the result (since it ends up being a string). So if the php echos 0 as result, the result will be a string with 0 followed by the predefined html of the page. So result[0] is the first element of that string and the result I actually want (that's why I compare result[0] and not result) It's a very... sloppy way of going around it. And maybe it's what causes the spazzing by making it slow down, no idea xD I will try again with other ways soon enough x.x Anyway, I added this function to register.php page: (hopefully it's useful) PHP Code:
Quote:
---- OOOH I was checking the focus thing after a key press, I think that's why it spazzed! The code is now (I made it a function since I will use it for email as well): PHP Code:
__________________
![]() ![]() ![]() asp.net stole my soul. Last edited by IntoRain; 02-04-2014 at 06:25 PM. |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
jQuery - Spiffing up your page where you can't edit the HTML! | Kyttias | Tutorials and Tips | 3 | 01-29-2014 06:09 PM |
Jquery one weekend? | Tony | Other Chat | 0 | 07-30-2011 06:34 PM |
Javascript/Jquery not being run. [Answered] | exactly33 | Questions and Supports | 5 | 12-23-2009 11:39 AM |
What's New? |
What's Hot? |
What's Popular? |