swatkins

Norman, OK

mesonet.org

Age: 40

Interactive Web Developer at Oklahoma Mesonet

Jul
28
answered Upload Images to the designated folders and subfolders created on run time
Jul
27
comment JQuery UI auto-complete is not filtering the response text returned by php file
just checked it - looks like it's working as expected.
Jul
25
comment jquery plugin - make ajax call chainable
@charlietfl - not here to get in a philosophical debate on the use of deprecated options. I agree with you that you should not block the UI. However, the op's decision to block the UI is his/her decision and he/she assumes those risks. Therefore, until jQuery removes async:false as an option, this would work for the op.
Jul
25
comment JQuery UI auto-complete is not filtering the response text returned by php file
lol -- ok, I'll update my answer. Are there any other projects I can do for you?
Jul
25
revised JQuery UI auto-complete is not filtering the response text returned by php file
added 605 characters in body
Jul
25
comment jquery plugin - make ajax call chainable
@charlietfl - I agree that async:false is not best practice. But the op is wanting to run an ajax request synchronously. This still stands as a viable option.
Jul
25
comment Positioning multiple images at the bottom and keep it responsive
screenshot please? the code snippet isn't running and I'm not sure what you mean.
Jul
25
comment jquery plugin - make ajax call chainable
have you not tried setting async: false on your ajax settings?
Jul
25
answered JQuery UI auto-complete is not filtering the response text returned by php file
Jul
25
answered How to convert manual XMLHttpRequest-Ajax into JQuery-UI-Autocomplete-Ajax?
Jul
25
answered How to pass array to ajax post?
Jul
25
comment How to import json file into AngularJs Application?
Now that's an answer! +1 and +1
Jul
25
comment Is there a way to convert an HTML response to JSONP object or another way to have the success event?
Maybe it should by synchronous? have a look at this answer: stackoverflow.com/a/5472371/844726
Jul
25
comment Is there a way to convert an HTML response to JSONP object or another way to have the success event?
What you see in the response tab should be available in jqXHR.responseText. You don't see that as an option?
Jul
25
comment How to import json file into AngularJs Application?
Fair enough. I'm not here to discourage you or any other new developers. But the sea of tools available is vast, and you can lead people down really long paths. I don't think recommending Node is a bad idea, but there will be a learning curve for that - as there will be for any local web server. Maybe providing links to simple tutorials would help.
Jul
25
revised merging two similiar functions with .preventDefault() - javascript
added 329 characters in body
Jul
25
comment merging two similiar functions with .preventDefault() - javascript
Well, this all has to do with passing a function by reference instead of calling a function -- which basically means you are giving the on method your function to call later. When jQuery calls that function, it passes the event object as an argument. jQuery's documentation is pretty substantial, but I'd recommend getting a good grasp of vanilla JavaScript before really diving into jQuery (not because jQuery is hard to learn, but because you'll then understand what jQuery is doing most of the time).
Jul
25
comment How to import json file into AngularJs Application?
sorry @Dude, I'm in a bad mood tonight. Your answer is correct, you just start in with setting up Node, then Express - now install Mongo, but you'll need a build system and maybe some continuous integration, but make sure you set up some unit testing and try a functional testing system, uh oh - now we want to virtualize it and contain it all - install vagrant and docker... etc, etc, etc. If you'll make an edit to your answer, I'll remove my downvote.
Jul
25
comment Is there a way to convert an HTML response to JSONP object or another way to have the success event?
It's just the way the API is returning. Could you do a console.log(jqXHR); in the complete callback? That will tell you what properties are available there and where those data are.
Jul
25
comment How to import json file into AngularJs Application?
So, you can copy/paste the json string into a js file that you include in your application. You just create a variable and set it to the json string: var myData = { "prop1": "val1", "prop2": "val2" }; -- be sure that there are no quotes surrounding the entire object.
1 2 3 4 5