¡@

Home 

javascript Programming Glossary: smells

Is echoing Javascript code condtionally based on server-side logic considered harmful?

http://stackoverflow.com/questions/11658596/is-echoing-javascript-code-condtionally-based-on-server-side-logic-considered-ha

JSON via AJAX HTML data attributes Something about it just smells bad bad bad. Thanks everyone. php javascript jquery html ..

Initialize AngularJS service with asynchronous data

http://stackoverflow.com/questions/16286605/initialize-angularjs-service-with-asynchronous-data

too but then I have a global javascript variable which smells bad. Are these my only options Are one of these options better..

Display a warning when leaving the site, not just the page

http://stackoverflow.com/questions/2365994/display-a-warning-when-leaving-the-site-not-just-the-page

me from leaving I wouldn't want to get back anymore. It smells of bad bad bad usability and gives a hint of adware site. Rather..

How to store arbitrary data for some HTML tags

http://stackoverflow.com/questions/432174/how-to-store-arbitrary-data-for-some-html-tags

here it's just an example Anyway this method works but it smells a bit and isn't extensible at all what happens if the click.. been because of my poorly chosen example but to me this smells even more. Yes it's technically valid but it's not a great solution...

Open the Keyboard of an iPad through JavaScript on a non-text field?

http://stackoverflow.com/questions/6738846/open-the-keyboard-of-an-ipad-through-javascript-on-a-non-text-field

acts as a textbox through some clever javascript. Yes that smells but it's vendor code I can't change On an iPad the Keyboard..

How should I include a js file from another js file?

http://stackoverflow.com/questions/842504/how-should-i-include-a-js-file-from-another-js-file

script DOM element and then append it to the page but that smells bad for me. Have you any tips about that javascript reference..