jquery-plugins

Specify that src=“” in <audio> is a mp3 file without .mp3 extension?

♀尐吖头ヾ 提交于 2020-01-02 09:59:10
问题 I need a way to specify that something like <audio src="http://somesite.com/track/377374"></audio> Has a mp3 file as a source. I am unable to use .mp3 extension at the end of the url, so I need other way to achieve this. I'm using custom player jQuery plugin which falls back to old browser version if it can't determine what file format is specified in audio tag. I's there a way to achieve this? 回答1: There is a function that check the file extension and tries to match canPlayType = function(

jQuery tablesorter plugin does not work after AJAX call

☆樱花仙子☆ 提交于 2020-01-02 08:24:24
问题 I have used jQuery table sorter plugin in my code. It works fine as long as I don't make an ajax request to load the table data dynamically. I am using combo boxes to filter the contents of the table by ajax. I read few posts which says using $("table").trigger("update"); can solve my problem. I tried it with my code but the problem is still there. Is there any other way to solve this problem? Please help me figure out a solution. I am really stuck bad. Any help would be appreciated. Below is

Advantages and Disadvantages of JQuery UI over Plugins

时光总嘲笑我的痴心妄想 提交于 2020-01-02 08:22:22
问题 I have spent the last week or so updating my web application to a couple of plugins from JQuery UI, such as autocomplete and dialog. In the past, I have used separate plugins to achieve the same like autocomplete and jqModal. The thing is, the more I play with JQuery UI the more I find issues and complexities that didn't exist in other plugins. Yes, it's modular and allows one to build upon the core plugins and interactions, but it seems to lack features that were just built in to other

jqGrid Checkbox column

孤者浪人 提交于 2020-01-02 07:43:28
问题 I have a fairly complex grid with two columns formatted as a checkbox. Those columns are defined as follow: { name: 'Alert_A', index: 'Alert_A', width: 22, align: 'center', sortable: false, formatter: CheckBoxFormatter, editable: true, edittype: 'checkbox', editoptions: {value: "True:False"}, formatoptions: {disabled: false}, classes: "Alert_A" }, { name: 'Alert_B', index: 'Alert_B', width: 22, align: 'center', sortable: false, formatter: CheckBoxFormatter, editable: true, edittype: 'checkbox

fullpage.js how to create slide anchors and scroll to them?

亡梦爱人 提交于 2020-01-02 06:53:26
问题 Using fullpage.js, how can I create anchors for slides as oppose to section anchors that are defined in the options.anchors? The documentation says to use data-anchors but its not doing anything with the following setup. The <a> links just works normally by jumping to the <div> with the id and there is no scrolling. $(document).ready(function() { $('#fullpage').fullpage(); // initialization }); <div id="fullpage"> <div class="section"> <div id="slide1" class="slide" data-anchor="slide1"

jquery.tokeninput required

半腔热情 提交于 2020-01-02 05:42:27
问题 I have this fantastic little plugin working but I need to require that at least one name be selected. I normally use jquery.validate. However, the validation plugin does not appear to work on a field using the tokeninput. Does anyone have an answer? As always, thanks so much for your help. $("#NewMessage").validate({ rules: { name: { required: true } } }); $("#name").tokenInput("lookup.cfc?method=getNames&returnFormat=json", { hintText: "Type in the name of recipient(s)", noResultsText: "No

Is there plugins for mind mapping? [closed]

本小妞迷上赌 提交于 2020-01-02 05:36:08
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . Are there jQuery or JavaScript libraries or plugins for writing something like mind-mapping? 回答1: Try looking on this: http://www

Regex to search html return, but not actual html jQuery

梦想与她 提交于 2020-01-02 05:14:07
问题 I'm making a highlighting plugin for a client to find things in a page and I decided to test it with a help viewer im still building but I'm having an issue that'll (probably) require some regex. I do not want to parse HTML, and im totally open on how to do this differently, this just seems like the the best/right way. http://oscargodson.com/labs/help-viewer http://oscargodson.com/labs/help-viewer/js/jquery.jhighlight.js Type something in the search... ok, refresh the page, now type, like,

jquery nested li click event calls multiple times

↘锁芯ラ 提交于 2020-01-02 04:43:07
问题 I have the following structure. <ul id="browser" class="filetree"> <li><span class="folder">Folder 1</span> <ul> <li><span class="file">Item 1.1</span></li> </ul> </li> <li><span class="folder">Folder 2</span> <ul> <li><span class="folder">Subfolder 2.1</span> <ul id="folder21"> <li><span class="file">File 2.1.1</span></li> <li><span class="file">File 2.1.2</span></li> </ul> </li> <li><span class="file">File 2.2</span></li> </ul> </li> <li class="closed"><span class="folder">Folder 3 (closed

Static variables a jQuery Plugins; how to create?

房东的猫 提交于 2020-01-02 04:27:44
问题 What is the best way to create a static variables for jQuery plugins? I have 2 example use cases to illustrate my thinking so far; each with some ideas. Any other ideas welcomed of course... One example is for a static variable containing: animation settings, layout settings, product details, etc; the other for a static variable caching data. I hope 'static' is the correct terminolgy here... single globals. please correct if wrong. Case 1: for settings // defining globally var anObject = {