Submit a form with ajax
This is a basic operation that you might have to do when upgrading an old web app. One solution is using jQuery .serialize() function Method #1: Sent using CGI params key=value pairs: var...
Just another Yipp.ca Blogs site
This is a basic operation that you might have to do when upgrading an old web app. One solution is using jQuery .serialize() function Method #1: Sent using CGI params key=value pairs: var...
Step 1 - Click the "gear" icon and then "Settings" Step 2 - Click "edit info" Step 3 - Uncheck "Leave a copy of retrieved ... "
if (document.readyState === "complete") { bindAdminUpload(); } else { addEvent(window, "load", function() { bindAdminUpload(); }); }
This is the routine I use when the framework at use doesn't provide dependency loading or if there is no framework var runWhenAvailable = function() { if (typeof jQuery === "undefined" || typeof jQuery.fn.hvTooltip ===...
I'm porting code written for Backbone 1.0.0 to a new app using Backbone 1.1.2 and I noticed that isNew() seems broken for objects using custom idAttributes. We are using model.save(settings, {wait:true}) and the Model is configured...
One solution relies on knowing the ID at the view's creation : new Presets.Views.Row({model: model, id: "preset-row-"+model.id}
It is sometime rather frustrating when working with Selenium and WebDriver that your element is found but the click() action doesn't fire the event behind it! Before you give up try seeing the suggestion...
Problem: Traceback (most recent call last): File "seleniumPhantomJS.py", line 153, in selenium_phantom_web_direct_rtp_create_test("10.65.11.145") File "seleniumPhantomJS.py", line 118, in selenium_phantom_web_direct_rtp_create_test isPresent = is_element_present(driver, By.CSS_SELECTOR, "article.notifier-log") NameError: global name 'By' is not defined [flemieux@atom makito]$ NameError: global...
To have nice and clean URLs in your app and hide the .php extension, you can enable Multiviews. If you use Virtualmin, see below how to achieve this. First you select your virtual server,...
This is what I use to backup the public_html of a site on Virtualmin: tar -czf site-backup-`date +%Y-%m-%d,%Hh%M`.tar.gz ./public_html/ --exclude "./public_html/stats" --exclude "./public_html/awstats*"
Recent Comments