Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - Anonchair
1
Off-topic / Re: jQuery(document).ready function issue
« on May 18th, 2013, 11:09 AM »
Again I'm not particularly great with FancyBox, I don't know the library well enough to be considered a valuable source of help. There's always StackOverflow. I generally get some useful responses on my own questions there, but the best place to look is the community surrounding the plugin.
2
Quote from Norodo on May 18th, 2013, 10:01 AM
I don't find it likely that someone with a big board will want to run unfinished software as production. But it could lead to some fun, indeed.
There's a certain level of influence an administrator of a big board harnesses... The kind of influence where he/she could convince a generous handful of his/her members to use a specific piece of software for a certain amount of time... No one said it had to be used in production. ;)
3
Could always have a multiple choice test the potential testers have to answer and flag some answers as an automatic "no". Think of it as a filtering system. There's nothing wrong with a thread and a posting guideline, but if you're really thinking of locking the topic then that certainly shows it does bother you having to monitor and reply constantly. Would make life easier for you for a while. At least until an even better method comes up.

I'm interested though - if you want to test Wedge, and I mean really test it - give a copy to someone with a big board. (hilarity might also ensue)
4
Off-topic / Re: Oh, I meant to share this a while ago
« on May 18th, 2013, 01:14 AM »
vBulletin has my congratulations for being the first digital technology that smells.
5
Off-topic / Re: jQuery(document).ready function issue
« on May 14th, 2013, 07:14 AM »
Just out of interest, have you tried removing the $(document).ready? I ask this because if you've followed the convention of loading in your scripts at the bottom of the page (before the closing <body> tag), then there's no *absolute* need for $(document).ready. However if this is a misleading title and the problem lies in either JQuery or FancyBox - then that sure is a misleading title. ;)

Tried solving this puzzle myself but this is the first time I've been exposed to FancyBox (and I don't have access to all your code)... Did the obvious checking for any syntax errors, found none so you're good there... One thing to note though is that JQuery does have it's own quirks - some of it's methods do modify the state of the object so there could be some conflict.

Also, it might be worth having a look at the scope of "this" to see if it's actually pointing to what you want it to using Chrome Devtools or Firebug. If it isn't, you can pass the outer scope of "this" using either .call() or .apply() methods on a function. So, if for example I had an object:

Code: [Select]
var myObject = {
  aMethod: function() {
    return console.log(this);
  }
};

And I called myObject.myMethod() - I'd get a representation of myObject. However, if I wanted "this" inside aMethod to be the scope of this OUTSIDE of the object, I'd do this:

Code: [Select]
myObject.myMethod.call(this); // pass the scope of this as it is outside the object - in this case the global object

myObject.myMethod() // "this" refers to the myObject

Also, it must be a pain having to type jQuery all the time. If you're doing this because you're using another library that uses the "$" object/variable, then there's still a way to use the $ when working with jQuery by passing the jQuery object as a parameter to a self-executing anonymous function that takes a parameter of $:

Code: [Select]
(function($) {
  $(function() {}); // <-- and even use the shorthand version of $(document).ready()
})(jQuery);

6
Off-topic / Re: Handy JS plugin
« on June 24th, 2012, 08:33 PM »
I was reading about this the other day after seeing it trending on Github and thought about sending it to you to cheer you up - I see you found it before I could ^.^