mousemove event inside mousedown
A little question about events. I have this code to scroll a div with self made scrollbars when the user selects text and gets out of the div. scrollPane.mousedown(function(){ scrollPane.off('mousemove').mousemove(scrollOnMove); }); scrollPane.mouseup(function(){ scrollPane.off('mousemove'); }); The code works fine. I'm just not sure if it's good to handle the events like this. Is the mousedown evenet fired only once? If yes it should be no problem. But if the event is fired constantly
How to make an RSS driven news content slider?
Hi guys! I was wondering how could I make this featured content slider http://webdeveloperplus.com/jquery/featured-content-slider-using-jquery-ui/ work with RSS, so it would show the latest 4 news from my RSS feed, with an image, title and description. I looked for a solution everywhere, but I can't seem to find anything. Can you guys please help me? Thank you
Can Ajax keep reloading/executing for multiple days without true refresh?
Ok, here's the scenario. I'm wanting to have a page open on a client for a long, long time. Say... one week or one month even. I've got Ajax sending requests continuously, sending a new request whenever data is received or whenever the initial request times out. Code essentially is: function doTempPoll() { $.get("api/feel/ac/currentTemp.php", function(data){ apartmentTemp.refresh(data); doTempPoll(); }); } doTempPoll();and on the server side, the server only sends data when something changes (in
How to use jQuery without a browser?
I've been using jQuery for several years now. I am now working on a project where I need to modernize a system of data records. In the current system I'm working on, there is a file for each record. The file contains the HTML of the form submitted by the user. I think that jQuery would be a great tool to parse these files. I've written some Javascript code that runs in CScript that enumerates and gets the text of each file. I would like to write something like this: name = $(htmlFragment).find('#txtName');
Build a "copy" button to copy and paste text into a different program...
I have been building a program which generates text based on specific options and displays it in a pop up dialog box. I would like to have a button which, on click, will copy all the text that is displayed, so I can take it and paste it somewhere else without having to highlight all of it, right-click, and copy. Is there a way to do that?
1 Ajax request performing 2 GET requests and not supposed to.
Strange behavior when performing a ajax request. from this function: function ajaxDialog(AjaxUrl, type, targetDom, dialogedDom, tabs, tabIndex) { $.ajax({ url: AjaxUrl, type: type, DataType: "html" }); } I can see two GET requests bein perform. There is no way I could be happening But it is. Could someone gimme some help? Thanks Guilherme Longo
Scrolling breaks animations - Safari Mobile
Hi! I'm using jQuery 1.8 on my mobile website. I see that on Safari Mobile (iOS 6, iPhone) my animations (.animate, fadeIn, etc) breaks when I start scrolling the page during animate! "Scrolling" - I mean default browser scrolling - nothing special. Any ideas ..? :) M.
Set Focus if Email id Exists
Dear All Writing a program for membership registration. If a member is already registered , i want JQUERY to display 'Member already exists <tr class="text12bgf3"> <td height="26" class="text12bgf3" align="left"><span class="textblue">Email</span></td> <td class="text12black"><span class="textblue">:</span></td> <td align="left" class="text12"><span class="textblue"> </span> <table width="100%" border="0" cellspacing="1"
Auto load more after reaching to the bottom of the page
Hello, does anyone know what jQuery script is similar to facebook or 9gag when you scroll to the bottom of the page and it auto load more results? Thank you so much
How to add new input field dynamically
Hi, i am new to jquery. in my application (billing application in php) i want to add dynamically some input fields like product name, quantity, price and amount fields. how to add n numbers of input fields (as an array) and read the field in next page using post method. Thanks in advance
how to block click one more time if it is dblclicked before
hi how to block click one more time if it is dblclicked before. below code's output is 1 but if you click fastly, you will see alert "1" twice. I want one time! var divclick=0; $('div').on("dblclick",function(){ divclick++; alert(divclick); }); many thanks
Increasing height and length of autocomplete box
Hi all I want to change the size of the autocomplete box, the box where we type in the words. Can somebody please help me with this. Thanks hafiz
Making a timer start on click on textbox and then dissapear to be locked?
I'm new with jQuery and I haven't been able to find a way to make it so that as soon as I've clicked a textbox/field a timer will start, visible on screen and after 2 minutes, the textbox will dissapear and it won't come back even if you reload the page. Someone please help?
Combining jquery show/hide scripts
I have 2 scripts that I am using and I haven't been able to figure out how to basically merge them into 1. any help would be much appreciated since I've come to a brick wall: The first script is a show/hide when pressing a Expand all and collapse all button: $(".hide").click(function(){ $(".screentitle").hide(); }); $(".show").click(function(){ $(".screentitle").show(); }); The second code I use is the image swap for slideToggle: $(".chaptertitle").live("click", function(){ $(".screentitle", this).slideToggle("fast");
Page stay loading and disabled
I have not used Jquery until now y i like to know if some one can help with some issue: The point is that i like to refresh the full page content when the value of a list changes. The code was embeded insise a codeigniter app: The list box is as follow: <div id="id_municipio"> <select name="co_municipio" id="ix_municipio"> <option value="">Seleccione un municipio</option> </select> </div> The event used to control id_municipio changes is: <script type="text/javascript"> $(document).ready(function
jquery drag and drop
hey all, is it possible to use the tableDND and link rows together? I have used a repeater instead of a gridview since each database record spans over 2 rows. I would like to use the tableDND plugin on this repeater but i would need to be able to link 2 rows together so that if you drag and drop either of these rows, they will stay together on their new location. Does anyone know of a posibility to do this?
Hide content below h2 tag and make it toggle by clicking the h2
Anyone having a good idea? I would like to hide all content below h2 tags and bind a function to each h2 that toggle that hidden content below the H2. The content below h2 could be div, ul/li, a, table and so on. It could also be plain text without a tag. Example: <h1>Title</h1> Intro text <div> <h2>header 1</h2> Some text 1 <ul><li>Some text 2</li><ul> <p>Some text 3</p> <h2>header 2</h2> Some text 4 </div> Some text 5 I would like it to render like this Title Introtext
Webpage redirection time
Hi all, I want to calculate time consumed in redirecting from 1 webpage to another webpage. For Example: 1) I am using Facebook in Google Chrome browser. I have shared 1 link on my Facebook profile like below: http://www.webdeveloper.com/ (It's not only Facebook. It can be any domain having link to another domain). 2) When I click on this link from my Facebook profile, then this website will open in new tab. 3) I want to calculate time difference in miliseconds or microseconds between below two events:
MULTIPLE forms validation with single function
Hi there This is my validation function , it works fine when there is one form and when there are more than one form in single page its not working . <script> $(function() { $("form").validity(function() { $("#name").require(); }); }); </script> My forms are like <form action="#" method="post" id="first form"> <input type="text" id="name"> </form> <form action="#" method="post" id="second form"> <input type="text" id="name_othername"> </form> can anyone give me suggestions, how to call the first
bind images to Datalist from folder using Json and Jquery
I want bind images to Datalist from folder using Json or Jquery in asp.net
HTML checkboxes in Tab cause JaveScript runtime error with unhandled exception
This tab is one of 6, living inside a dialog. Selecting any of these checkboxes causes : unhandled exception at line 4679, column 2 in jquery-1.8.2.js0x800a139e - JavaScript runtime error: Syntax error, unrecognized expression: Trip: Note that the unrecognized expression is the name of the check box, in this case "Trip". Can someone point me towards a solution? Robert TIA <div id="tabs-6"> <h3>Purchase</h3> <p></p> <form method="post"
either return variable to global or if/else statement
I have searched everywhere for a simple solutions to my problem, but can't seem to find it. I have a form with a drop down box and then multiple text options after that. The drop down box take the value and runs through a switch statement assigning values that are then plugged into the rest of the text boxes. The problem I am having is being able to change the value of each of those text boxes, independent of the drop down values. $(function() { $("#soiltype").change(function(){ var
Calling Jquery Functions based on media Queries and Viewport Size
I have a jquery function which is running perfectly on my website and it hides and shows a hidden dive which contains an inline-block list. <script type="text/javascript"> jQuery(document).ready(function(){ jQuery.noConflict(); jQuery('#mdiv').click(function(){jQuery('#subNav').slideToggle(1000)}); jQuery("#subNav").mouseleave(function () {jQuery('#subNav').slideToggle(1000)}); }); </script>Now I am trying to create a responsive web page and responsive CSS navigation for smart phones using media
id iteration through Numbered div's
Hi All... So this is one of the code provided by api of jquery http://api.jquery.com/id-selector/ This is the code Example: Finds the element with the id "myID.entry[1]". See how certain characters must be escaped with backslashes. <!DOCTYPE html> <html> <head> <style> div { width: 300px; float:left; padding: 2px; margin: 3px; background-color: #EEEEEE; } </style> <script src="http://code.jquery.com/jquery-latest.js"></script> </head> <body> <div id="myID.entry[0]">id="myID.entry[0]"</div>
Help completing this small piece of code for a slide effect
The following code allows a user to click an anchor tag and the next slide box appeares and so on.. but I need it so that when a user clicks the same link more than once the box shouldn move twice. I hope this makes sense. How do you do the stop event for that. Any suggestions? Thank you $(function () { var current = null; $("#aOne").click(function () { newSlide($("#div1")); }); $("#aTwo").click(function () { newSlide($("#div2")); }); $("#aThree").click(function
Help Needed to Solve "slideshow" Issue with hyperlinks
I am designing a website using jQuery slideshow. All categories on the menu have sometimes four or five "pages" ( <div> ) that are controled by buttons to create the filling of navigating. However, by clicking within any part of the text can also move the user to the next "page". Some of those"pages" have hyperlinks that by clicking will redirect users to go to a new browser window. The issue I have is when user clicks on those hyperlinks the immediate action is to take them to the next "page".
unbinding buttons then binding with settimeout
I am trying to disable my buttons after clicking, which slide div's in to view, Then activating them after a second or two. I have given all my buttons the class all_buttons. I thought this would work. $(".all_buttons").unbind('click',function() { setTimeout(function(){ $(".all_buttons").bind('click'); },3000); }); Would be great full for any suggestions.
checkbox label style updating then reverting
I have a script which is supposed to be adding a class when a checkbox in a checkboxlist is checked and removing it when the checkbox is not selected. When I click a checkbox the style IS added BUT it immediately changes right back. Here is the script. $(document).ready(function () { $("#cbxarea input[type=checkbox]").click(function () { if ($(this).is(":checked")) { $(this).siblings("label").addClass("checkboxselected");
IE7 radio button issue when created dynamically
I have an issue in IE7 when I am creating clones of radio buttons. I am dynamically updating the name and ID attributes, however, I still have the issue that a radio button being checked resets any of the others which have been created dynamically. Any idea how this can fixed? Here is a fiddle of the issue This is the JS code which manipulates the form fields: // Dropdown select $('#quantity').live("change", function(){ $('.questions_clonable:not(.questions_clonable:first)').remove(); // Get value
Modal screen not overlaying flash ...
Hello, In using google chrome and IE. The modal screen is not overlaying flash. And if any animation is occurring underneath the modal, the animation overlays the modal screen ... Any thoughts (besides, moving to Alaska and working on a fishing boat).
I have been posting for months and never did I get help!!!!
This forum is ridiculous I have asked for help so many time for months and never get replies am I invisible. This forum is just awful and Im deleting my account.It wont surprise me if I actually get a reply to this but never to anything relevant.
Please help with this slider code
I need to create a stop function. Can anyone help please? $(function () { var current = null; $("#aOne").click(function () { trade($("#div1")); }); $("#aTwo").click(function () { trade($("#div2")); }); $("#aThree").click(function () { trade($("#div3")); });
toggleClass() isn't working properly when I combine it with hide() in this function.
I'm trying to combine these toggleClass() and hide() functions, but when they are combined the toggle function only works properly with slideDown() and isn't toggling back as it should with slideUp() I'm trying to combine this toggleClass() function: $("#fauxAccordion").click(function () { $(this).toggleClass("accordion_arrow_south"); });With this hide() function: $(function () { $(".accordionInner").hide(); $(".accordionTrigger").hoverIntent(function
function doesn't fire on click
This function is not firing or giving me an error when I click the anchor. There is a css button for the clear-completed id but the function should fire on the click in the anchor anyway. I want to collect all the ids on the table rows then send an AJAX. $("a #clear-completed").click(function(){ console.log("hello"); $('#tbody tr').each(function(){ if ($('table input:checkbox').is(':checked')) { var ids =new Array; ids += $(this).parent().find(data('itemid',item.id));
Jquery dialog box not workin in Internet explorer.
Hi, i have created a dialog box which shows success msg to user.I am calling the dialog box through this function call:- setDialogbox('saveMultiChoiceQ','newDialogMessage', 'success', 'newDialogMessage1',succ_create_question,'','600','250',txt_success,'','',' '); and setdialog.js file consits the function. please tell me what is the error.?
Validating SharePoint 2010 DateTimePicker Control
I'm trying to use jQuery required validation with a SharePoint 2010 DateTimeControl, but I'm not seeing any type of response when I click submit and leave my control blank. Can you use jQuery validation with this control? If so, can someone tell me what I am doing wrong? <div id="preopForm"> <fieldset class="form"> ... <div class="row"> <label class="label">Presentation Date</label> <SharePoint:DateTimeControl ID="preopDate" runat="server" DateOnly="true" /> </div> ... $("#preopForm").validate({
Question about display blocks in any place of the page
Are there any plugins for jquery or how to implement functionality so that you can display in a random accident on the page blocks of a given length and height, they do not overlap?
how to Using ajax query database,returns more data?
i using java ,please help me
How to obtain div properties from window.open window
Hello, Is there a way to obtain div properties from window.open window.
How to use sortable plugin to manualy sort results coming from database?
Hi Guys I have a results that is read from the database using PHP. Now, I want to make somehow a way to sort the results so i can display them to the public in a way i sort them not based on the item id! So I created a new field with sorting order value. But how to I do change the sort orders using "sortable" plugin? Thanks
Next Page