jquery-plugins

DataTables width problem

时光怂恿深爱的人放手 提交于 2020-01-06 04:07:08
问题 I am using the DataTables plugin with jQuery and I've already looked around StackOverflow and found this other question with almost the same problem (except I have no tabs) and I tried what it said there but can't make it work. I have this dropdown in the table to show only 50 records (iDisplayLenth in the code underneath) and when you select 100 or over the table completely resizes itself and I have no idea why. Any help or suggestion will be appreciated. Here's my HTML for creating the

jquery: iphone like animation?

折月煮酒 提交于 2020-01-06 04:04:39
问题 I have a front page that consists of a lot of small images like the iphone desktop, I want to animate like iphone(fly from the edge of page into the center of page). Is there any existing plugins? 回答1: Are you finding this: A Beautiful Apple-style Slideshow Gallery With CSS & jQuery Demo There are many image gallery related jQuery plugins: Awesome jQuery Sliders and Galleries 来源: https://stackoverflow.com/questions/4529710/jquery-iphone-like-animation

Chain dynamically created dropdowns with JQuery

荒凉一梦 提交于 2020-01-06 03:38:45
问题 I'm building some kind of indefinite filters for an app, and I'm havin this problem when I clone some selects. The things is this selects are chained between them, trough the Chained Selects jQuery plugin. The problem is that every time I clone the selects, the chaining stops working, and I've tryed everything, such as .live() to make it work, but it seems I'm out of luck :D Here you have a sample of what I'm talking about, http://jsfiddle.net/7K2Eu/63/ At first, the selects chain normally,

Multiple HTML lines with jquery tooltip plugin

Deadly 提交于 2020-01-06 03:26:15
问题 I'm using the plugin http://bassistance.de/jquery-plugins/jquery-plugin-tooltip/ to create tooltips with JQuery but I can't created tooltips containing 3 (or more) lines of HTML code. I need to render as tooltip the content shown below (obviously the content is generated dynamically an this it only a proof of concept) <p>Line1</p> <p>Line2 <span style="...">blah blah</span></p> <p>Line3</p> The showBody property seems applicable only to title attributes. Found the problem Apparently jquery

Remove a script with jQuery

匆匆过客 提交于 2020-01-05 12:42:09
问题 I have a problem with my jQuery. So, I want to remove a script who is inside a <div> . My html is : <div id="right-bloc"> <div class="right-bloc-pub-1"> <script type="text/javascript" src="http://firstScript.com"></script> </div> <div class="right-bloc-pub-2"> <script type="text/javascript" src="http://secondScript.com"></script> </div> </div> My jQuery : var stringOfHtml = '<script type="text/javascript" src="http://firstScript.com"></script>'; var html = $(stringOfHtml); html.find('script')

Remove a script with jQuery

房东的猫 提交于 2020-01-05 12:42:07
问题 I have a problem with my jQuery. So, I want to remove a script who is inside a <div> . My html is : <div id="right-bloc"> <div class="right-bloc-pub-1"> <script type="text/javascript" src="http://firstScript.com"></script> </div> <div class="right-bloc-pub-2"> <script type="text/javascript" src="http://secondScript.com"></script> </div> </div> My jQuery : var stringOfHtml = '<script type="text/javascript" src="http://firstScript.com"></script>'; var html = $(stringOfHtml); html.find('script')

I need help sending jQuizzy results Via email

孤人 提交于 2020-01-05 12:27:24
问题 I am looking to send the results from the jQuery quiz "jQuizzy," via email. This is the code that is sending the POST to file named send.php if (config.sendResultsURL !== null) { console.log("OH HAI"); var collate =[]; for (r=0;r<userAnswers.length;r++) { collate.push('{questionNumber:"'+parseInt(r+1)+'", UserAnswer:"'+userAnswers[r]+'"}'); } $.ajax({ type: 'POST', url: "send.php", data: '[' + collate.join(",") + ']', complete: function () {console.log("OH HAI");} }); } and here is the simple

dataTables fixed columns plugin NOT working

你。 提交于 2020-01-05 08:27:30
问题 To share the files I have created a project on github repo link: https://github.com/shantanookirtane/dataTablesFixedColumns.git This repository has index.html where the table gets loaded under the DOM structure similar to what is getting created when I run my application. The repo has all necessary css and js files. I have add the exact issue description in README.md file on github for this project, pasting the same here again. Datatable version : 1.9.1 Datatable Fixed column version: 3.0.2

multiselect.js refresh after change

天大地大妈咪最大 提交于 2020-01-05 07:48:54
问题 Just trying to use multiselect.js for multiple type select input's Here is what select looks like <select multiple="multiple" id="my-select" name="my-select[]"> <option value='elem_1'>elem 1</option> </select> Using multiselect like this - var s = $('#my-select'); s.multiSelect({ selectableHeader: "<div class='custom-header'>Options</div>", selectionHeader: "<div class='custom-header'>Selected</div>" }); Here is what it looks like --> http://jsfiddle.net/6k8gW/5/ This work's fine until i try

mouseover function losing scope when called from anonymous function

喜你入骨 提交于 2020-01-05 07:28:12
问题 I'm looking into the code of the jQuery ToolTip plugin(hereinafter Tooltip), and have a noticed a behaviour I don't fully understand. Tooltip binds a mouseover function like so: .mouseover(save) When called in this way, this variable is HtmlDivElement . I tried changing the mouseover to this: .mouseover(function(e){save(event)}) Since I'm looking for the MouseEvent. However, now this variable is Window . I found a way to baypass this and get the HtmlDivElement by using this line of code: