- Screen name: assimilater
- About Me: I started picking up HTML, PHP, and JS in August 2010. Previously I spent many years programming windows forms apps in C# which I self-taught. Thus my experience caters to the user.
assimilater's Profile
11 Posts
17 Responses
0
Followers
Show:
- Expanded view
- List view
Private Message
- This is also kind of a discussion and I fully expect that there will need to be some corrections to this idea, and also I started trying to tinker with accordion to create this feature but I figured it would be best to get input from those who know UI best as far as what kinds of changes would need to take place.
The main idea with autoCollapse is a flag for whether or not already active panels are collapsed upon the activation of a new one. In the old docs for 1.8 it was reported that implementing multiple panels being open at once would be too complicated: http://docs.jquery.com/UI/API/1.8/Accordion but in my searching on google it seems like a good number of people have tried to create this functionality, because the panel layout accordion uses is a good fit for such collapsible functionality (I understand there's a collapsible widget for jquery mobile but it doesn't look as nice imo). I made a *hackish* workaround for my site that I'm happy with if no one else thinks this should be implemented: http://jsfiddle.net/Assimilater/TDAY7/13/
I realize I'm not a guru and haven't been around very long but I *think* this could be done if we define some reasonable output. My thoughts on the matter thus far:
newHeader and newPanel would be defined the same. oldHeader and oldPanel would be as is if autoCollapse is true, but if autoCollapse is false (the default would be true to match the current functionality) they would be an empty $() array, and elements would be collapsed based on the user clicking them thus they would be in newHeader and newPanel.
I'm not sure what other points would need to be defined. But what does everyone think with the advancements UI has made since that doc was written? What other things would we need to define to make this work?
---------
When in doubt, follow the most efficient pattern: the pattern nature created.
Life's greatest problems are often solved by small and simple means.- 20-Apr-2013 08:19 AM
- Forum: Developing jQuery UI
So I was fiddling with accordion (I'm getting ready to suggest a feature, but would like to try and make it myself so it's easier to see the suggestion) and I noticed that in the _eventHandler method and the eventData property has an unused value 'newHeader' that doesn't appear anywhere else in jquery.ui.accordion.js so I tried deleting that line and the accordion still appears to function all the same. I ran a unit test, however and it produces some errors.
· accordion: events: beforeActivate (2, 3, 5)
- okay
- okay
- okay
- Died on test #4 @http://localhost/jquery-ui/tests/unit/accordion/accordion_events.js:47 @http://localhost/jquery-ui/tests/unit/accordion/accordion_events.js:164 : ui.newHeader is undefined
- Expected 38 assertions, but 4 were run
Source:
@http://localhost/jquery-ui/tests/unit/accordion/accordion_events.js:47
@http://localhost/jquery-ui/tests/unit/accordion/accordion_events.js:164
- okay
- okay
- Died on test #3 @http://localhost/jquery-ui/tests/unit/accordion/accordion_events.js:112 @http://localhost/jquery-ui/tests/unit/accordion/accordion_events.js:164 : ui.newHeader is undefined
- Expected 21 assertions, but 3 were run
Source:
@http://localhost/jquery-ui/tests/unit/accordion/accordion_events.js:112
@http://localhost/jquery-ui/tests/unit/accordion/accordion_events.js:164
So are these test just looking for that value or is it actually used somehow I haven't noticed?- I don't know if anyone else is having this issue but the datepicker doesn't appear to hide properly when the page loads with m5 (not until you click the trigger anyways). http://callserver.dyndns.biz:89/index.php?action=Successes
This page has had all other javascript stripped on it, so i don't know what else the problem could be other than a bug in m5.
I am using m5 primarily because of the need for the new menu item, I'm not sure if i could somehow grab the old code for the datepicker and update m5 to use that code, but i could really use a solution to make it no longer have this issue until whatever kink it may be gets worked out (if it is a kink, if it's a problem on my end then i can fix it if i know about it)
When in doubt, follow the most efficient pattern: the pattern nature created.
Life's greatest problems are often solved by small and simple means.- 18-Jul-2011 01:12 AM
- Forum: Developing jQuery UI
Here's my fiddle: http://jsfiddle.net/Assimilater/sv7Rb/17/
The problem being when you click "Hi" the styling for the menu is all weird, and there are button classes thrown in there. And when you click them my selected method is not being executed. Before they were not links, I tried making them links to solve the problem and while they're now clickable they have button stylings added for some weird reason and they don't trigger the select method I defined. (I'd prefer not using links).
Using this page (straight from the development bundle from the blog with exceptions to be noted later) http://callserver.dyndns.biz:81/jquery-ui-1.9m5/demos/menu/contextmenu.html I have been able to determine that the problem is NOT using JQuery 6, but when i comment out the component js files and uncomment that jquery-ui.js line (the hopefully all-encompassing one) when you click the menu items the log does not get anything appended to it.
I'm not quite sure what to make of this, if it's a problem on my end or it's somewhere in that compiled js file; though i've never been able to reproduce the results of my fiddle on that development bundle demo.
Any and all help appreciated.
When in doubt, follow the most efficient pattern: the pattern nature created.
Life's greatest problems are often solved by small and simple means.- Disclaimer: I placed this topic as best i could, it's kind of a question / problem for using ui and idea for developing it so I stuck it here
I started out with the goal of making a nice interface for the user to determine sorting order in a page i was developing, but ran into problems making buttons sortable: http://jsfiddle.net/Assimilater/vXHbc/3/
Problem: It turns out that, i guess, there are some complications with events of form elements (like input of type button and button).
Question: After some time in the IRC channel today the best solution I came up with was this: http://jsfiddle.net/Assimilater/vXHbc/12/. However the spacing gets a bit funky and the highlighting is far from ideal (secondary problem).
Idea: realizing that I have little concept for what difficulty there is in making sortables work for buttons, I would like to suggest it as a bug fix if all goes well here. I'm not confident enough with the ticket system yet to feel like submitting it myself (lot of fields and i haven't read very many yet and if you're sick of that lame excuse It's late and i'm going to bed now that it's done)
When in doubt, follow the most efficient pattern: the pattern nature created.
Life's greatest problems are often solved by small and simple means.- Any reason something like this hasn't been implemented in jQuery core?
- $.fn.hasAttr = function(name) {
return this.attr(name) !== undefined;
};
When in doubt, follow the most efficient pattern: the pattern nature created.
Life's greatest problems are often solved by small and simple means.- c'mon guys, datepicker image alt and title is ...? how about something like pick date?
When in doubt, follow the most efficient pattern: the pattern nature created.
Life's greatest problems are often solved by small and simple means.- May or may not be a "bloaty" helper but I thought i'd throw the idea out and see what you guys think.
Two text inputs, two calendars side by side in the same ui-datepicker-div which update both inputs for entering date ranges (also consider adding time to the range).
When in doubt, follow the most efficient pattern: the pattern nature created.
Life's greatest problems are often solved by small and simple means.- I think it would be kind of cool if as a parameter of the .load function you could have html for the object while ajax is loading, so if the user downloaded something like this: http://ajaxload.info/ they could pass in something like:
- $("#iHours").load("/Sources/iHours.php?Date=" + (new Date($("#enddate").val()).getTime() / 1000), '<img src="/Styles/images/ajax-loader.gif" alt="loading..." title="loading..." />', function() { updateCap(); });
- $("#iHours").html('<img src="/Styles/images/ajax-loader.gif" alt="loading..." title="loading..." />');
$("#iHours").load("/Sources/iHours.php?Date=" + (new Date($("#enddate").val()).getTime() / 1000), function() { updateCap(); });
When in doubt, follow the most efficient pattern: the pattern nature created.
Life's greatest problems are often solved by small and simple means.- Pretty simple, I wish to propose that new methods be added to the JQuery core: .enable() to replace .removeAttr('disabled') and .disable() to replace .attr('disabled', 'disabled')
When in doubt, follow the most efficient pattern: the pattern nature created.
Life's greatest problems are often solved by small and simple means.- First off I'm a bit new to JQuery but picking it up and loving it.
I'm aware of a few plugins people have built for managing time but none of them appear to suit what I consider a common need. First off, spin boxes are more intuitive then scroll bars or a box to select from in incremental hours/ minutes (a couple I found) but the main problem being that they set a minTime and maxTime, where I see a more common need being able to set a minUTC and maxUTC (date and time together).
I first became aware of this when making a web site related to time and effort reporting for a university department. In this web site I want to restrict the time range a user can submit to their last submission up to the time of the page loading. minTime is meaningless unless tied to a date, because this range could potentially be a week+ for the user.
Furthermore I would like to see this incorporated into JQuery UI instead of an external plugin if possible. For now I'll do what I can and worry about the potential for submissions of the same stamp occurring when it becomes an issue.
What are all y'alls' thoughts?- «Prev
- Next »
- $("#iHours").load("/Sources/iHours.php?Date=" + (new Date($("#enddate").val()).getTime() / 1000), '<img src="/Styles/images/ajax-loader.gif" alt="loading..." title="loading..." />', function() { updateCap(); });
- $.fn.hasAttr = function(name) {
Moderate user : assimilater
© 2013 jQuery Foundation
Sponsored by and others.

