Recently Browsing 0 members
No registered users viewing this page.
I have need to dynamically set InputFieldMultiSelect to selected on page load based on the status of some items within a database table.
However I keep running into issues when trying to do this via InputfieldSelect::setOptionAttributes()
Going by the above it sounds like it should be pretty straight forward, and for certain values it seems to work but not when I wanted to set it to 'selected'.
$f->setOptionAttributes(1030,['foo' => 'test']); The above works as I would have wanted, in that it updates the option with the value 1030, to include the attribute foo="test"
But the same code above edited to the following:
$f->setOptionAttributes(1030,['selected' => 'selected']); Doesn't seem to do anything?
I assume I'm missing something or trying to implement the 'selected' wrongly but I'm not sure how else I should approach this, any advice would be much appreciated.
Since I nearly always needed a Slider for my websites, I've searched for a Slider which I could use for every Project or better said for different scenarios. So It had to be a rich-feature, responsive and customizable Slider which could be adapted/changed hassle-free to different needs of customers. In the end I found this nice jQuery Slider Plugin called "Slider Pro" (don't worry, it is MIT licensed ) which I think fulfills all expectations above and it also works very well for me. Perhaps it is also useful for you.
Github Link: https://github.com/bqworks/slider-pro/
PS: What kind of Sliders are you using for your projects? Do you build your Sliders from scratch?
I've implemented Slick sliders on WordPress sites many times, but I've never had this error before.
The site is here.
The template code I'm using is:
TypeError: $.proxy is not a function. (In '$.proxy(_.autoPlay, _)', '$.proxy' is undefined)
As you can see, I tried wrapping the JS call in noconflict, but that doesn't help.
What am I missing?
By Raymond Geerts
I was wondering how to achieve the following.
A total of 100 pages which are listed with a limit of 10 items per page, resulting in 10 pages of 10 items.
Instead i desire the following (below), and wondering how to setup the code / selector(s).
The first page should show a list of 8 items. After that all following pages should have a limit of 10 items.
page 1 -> items 1 - 8 -> (limit 8) page 2 -> items 9 - 18 -> (limit 10) page 3 -> items 19 - 28 -> (limit 10) ... page 9 -> items 79 - 88 -> (limit 10) page 10 -> items 89 - 98 -> (limit 10) page 11 -> items 98 - 100 -> (limit 10) The ideal situation would be to have an extra page selector property aside of 'limit', something named 'limit_first' or alike.