Note that there are some explanatory texts on larger screens.

plurals
  1. USMatthew Ruddy
    primarykey
    data
    text
    plurals
    1. COIt's not really possible to give any specific examples. Other than jQuery being loaded more than once, other kinds of errors would be scripts referring to a function that doesn't exist. Like if a script did `jQuery('.element').myCustomFunction();` only 'myCustomFunction()' does not really exist. Often users would install other jQuery based plugins and make reference to their functions externally, but fail to remove them when they decide to get rid of the plugin, and hence we are left with references to undefined functions.
      singulars
    2. COIntending this to be a plugin, so I've done it as follows: $('.slider').premiumSlider(); and $('.slider-2').premiumSlider();.. $(this). refers to the selector infront of .premiumSlider(), so I thought hiding it would hide that selector, but its hiding both. This is just a simplified version of a more serious problem I've been having. In simple terms, the plugin isn't working with multiple instances on one page. Trying to figure out how to get it too..
      singulars
    3. COThe array being saved is constructed from an empty array. As above, the foreach loop goes through each option ID and sees if it has been posted (using $_POST), then adds it to the array to be saved. Option ID's with square brackets won't work correctly with $_POST, hence why I have to use a function to check for the [], extract the key, and use something like $_POST[ $id_without_brackets ][ $key ]. I'm not really sure how json_encode could be used, but that's because my PHP knowledge doesn't stretch that far.
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload