PDA

View Full Version : Ajax Side Panel script feature



JerryOne4
01-13-2017, 12:14 AM
1) Script Title: Ajax Side Panel script

2) Script URL (on DD): http://dynamicdrive.com/dynamicindex17/ajaxsidepanel.htm

3) Describe problem: Not a problem, this is a very good script -- just a suggestion to enhance it. At the bottom of the javascript, ddajaxsidepanel.js, where you set the "openamount", it would be nice if it were responsive to the window width.
An example would be to be able to set the openamount to 100% for a window width less than 800px and to 50% for a window width more than 800px. Making the CSS responsive for the script is easy, but I couldn't do this with the javascript.
Thanks

ddadmin
01-14-2017, 12:24 AM
Thanks for the suggestion, I'll take that into consideration next time the script is updated. FYI there is the [icpde]openamount[/icode] option right now, which compares the value entered (ie: 500px) with the calculated width of the Ajax panel, and if the later is less than the former, simply open the link in the regular browser window. It's there to prevent mobile or small browser windows from launching the Ajax Panel.