ReferenceError: Can’t find variable: jQuery with Poltergeist/Capybara

If jQuery is on the page you most likely have to use an evaluate function to enter the context of the page. CasperJS has this diagram http://docs.casperjs.org/en/latest/_images/evaluate-diagram.png http://phantomjs.org/api/webpage/method/evaluate.html The execution is sandboxed, the web page has no access to the phantom object and it can’t probe its own setting.

jquery-steps missing CSS file

As the user adeneo said in 2013, the Git Repo contains a demo CSS file if you wish to use it – Demo CSS Additionally, in the Git Repo under Getting Started, Step 2 shows jquery.steps.css included in the HTML. Here is the HTML referenced in the repo: <!DOCTYPE html> <html> <head> <title>Demo</title> <meta charset=”utf-8″> … Read more

Bootstrap formvalidation.io trying to require one field or the other

You can disable the second validation and make it enabled only when the first is wrong : take a look at this link <form id=”profileForm” method=”post”> <p>Please provide one of these information:</p> <div class=”form-group”> <label class=”control-label”>Social Security Number</label> <input type=”text” class=”form-control” name=”ssn” /> </div> <div class=”form-group text-center”>&mdash; Or &mdash;</div> <div class=”form-group”> <label class=”control-label”>Driver’s License Number</label> … Read more

managing document.ready event(s) on a large-scale website

This is what i have done in my rails mvc project with heavy javascript, i have created a separate namespace for the controllers in js which resembles the rails controller class BusinessController def new end def index end end and Var Business = { init : function(action) { //code common to the Business module //even … Read more

rails best practices where to place unobtrusive javascript

I do not think there is one best practice, but I’ll let you know what I do. I have a series of js files each for with their own purpose in the public/javascripts/ directory. Some examples could be utility.js chat.js shopping_basket.js and so on. I use asset packager and define one big fat collection for … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)