jquery-plugins

jQuery Plugin Error with .wrap() and .wrapAll()

隐身守侯 提交于 2019-12-23 03:41:09
问题 Note: I've solved major issues with this question however I still do not have working code, since what I am doing now is a completely different issue I will open a new question solve it there and then post the answer to this question. I'll also add the link to the question. You can see my current progress here: http://jsbin.com/upatus/2/edit I'm writing two basic jQuery plugins, $.fn.query and $.fn.build , that sort an array, and create html code to insert into a document, respectively. I'm

Issues with Jquery Placeholder Plugin

倾然丶 夕夏残阳落幕 提交于 2019-12-23 03:40:19
问题 I've tried using two different jquery plugins to get placeholders to work in ie9, Andrew Jones one and Mathias Bynens one. Unfortunately, both of them are giving me the same set of issues, that for the life of me I cannot figure out. The first issue is, every now and then in the JS console I get the following error : SCRIPT438: Object doesn't support property or method 'placeholder' ...which is as if the script didn't load, even though it has. Its usually the 50/50 chance of that error

Removing specific carousel panes in the jQuery Scrollable plugin

99封情书 提交于 2019-12-23 03:34:14
问题 I am using this Scrollable plugin, and am looking at how to remove a carousel pane from the carousel group. As an example, if I have 5 carousel windows - how can I programmatically remove the carousel window 2? 回答1: Check this To remove a particular tab use this function (slightly modified method from the example above): function removeItem(i) { // get handle to scrollable api var api = $("div.scrollable").scrollable(); // remove last item by using jQuery's remove() method api.getItems().eq(i

How to display progress bar until whole aspx page is load?

核能气质少年 提交于 2019-12-23 03:32:33
问题 I have a master page Root.master and a page default.aspx . I want to display progress bar until whole default.aspx page is loaded . I tried following code:- <html> <head><title>xx</title> </head> <body style="visibility:hidden;" onload="function(){document.body.visibility='visible'}"> <img src="xxxx.gif" style="visibility:visible !important"> </body> </html> But problem is that I do not have body on default.aspx , it is on root.master , if we put it on root.master, it apply all pages which

Changing Jquery FlexGrid's data

给你一囗甜甜゛ 提交于 2019-12-23 03:25:15
问题 I am having a flex grid. I need to change the data which is showing in that. In $(document).ready() I am calling a function and I am getting the result.Now what i want is to get data from db using another query.So I just made a function, in that i am adding the needed values to fetch the data in the url.This function is calling when I click a button .But the request is not going .So that is not changing.Please Help me. Thanks $(document).ready(function() { getAllData(); //first call $("

How to make facebox popup remain open and the content inside the facebox changes after the submit

馋奶兔 提交于 2019-12-23 03:17:49
问题 I'm a jQuery total n00b . In my rails app this what happen: I'm on the homepage, I click this link: <a href='/betas/new' rel='facebox'>Sign up</a> A beautiful facebox popup shows up and render this views and the containing form: # /app/views/invites/new <% form_tag({ :controller => 'registration_code', :action => 'create' }, :id => 'codeForm') do %> <%= text_field_tag :code %> <br /> <%= submit_tag 'Confirm' %> <% end %> I clink on submit and if the code is valid the user is taken on another

jquery @mention making the output a link

大兔子大兔子 提交于 2019-12-23 03:17:05
问题 Hey guys i'm using this plugin from Hawkee. Its like twitter where you can @mention someone. I'm having trouble with the output. This method: updateHidden: function() { var trigger = this.options.trigger; var contents = this.element.val(); for(var key in this.id_map) { var regex = trigger+key; regex = regex.replace(/[!@#\$%\^&\*\(\)\+=-\[\]\\';,\.\/\{\}\|":<>\?~_]/g, '\\$&'); regex = new RegExp(regex, "g"); //contents = contents.replace(regex, trigger+'['+this.id_map[key]+']'); //I changed

why does click without body not work

吃可爱长大的小学妹 提交于 2019-12-23 03:05:21
问题 I have multiple myclass class on the page and I append some more of those using ajax if I do this $('.myclass').click(function(){ alert(1); }); it works for all non-ajax appended requests but not for the classes that get appended by ajax. for those this works $(body).on('click','myclass',function(){ alert(1); }); my question, why is that?? 回答1: A brief explanation can be When you use a normal event registration model, it will register the handlers directly to the targeted which are present in

How to validate the date time in datepicker?

谁说我不能喝 提交于 2019-12-23 03:01:46
问题 I have two datetimepickers in a form to enter the start time and end time. The ID of the start time is "startTime" and that of end time is "endTime". var startTime = document.getElementById("startTime"); var endTime = document.getElementById("endTime"); if (new Date(startTime.value).getTime() > new Date(endTime.value).getTime()) { alert("End Time should be greater than Start Time"); return false; } I tried to compare the start time and end time and validated that the start time should not be

How to validate the date time in datepicker?

泪湿孤枕 提交于 2019-12-23 03:01:30
问题 I have two datetimepickers in a form to enter the start time and end time. The ID of the start time is "startTime" and that of end time is "endTime". var startTime = document.getElementById("startTime"); var endTime = document.getElementById("endTime"); if (new Date(startTime.value).getTime() > new Date(endTime.value).getTime()) { alert("End Time should be greater than Start Time"); return false; } I tried to compare the start time and end time and validated that the start time should not be