Saving Form on a Timer
Hi Using Classic ASP how do I set a timer which calls a function that saves the form contents to the database but still stays on the form. I know it uses setInterval but after that I'm not sure. Thanks
Uncaught TypeError:Object#<HTML.InutElement> has no method 'datepicker'
I am getting this error in crome while trying to add the datepicker in a dynamically created textbox plz help me My code is : <xsl:if test="@type='datetime'"> <input type="text"> <xsl:attribute name="name"><xsl:value-of select="@table" />[<xsl:value-of select="@column" />]</xsl:attribute> <xsl:attribute name="value"><xsl:value-of select="@DefaultValue" /></xsl:attribute> <xsl:attribute name="id">question_<xsl:value-of
JQuery: global vars don't work
Good morning, i'm learning JavaScript and JQuery and i have a problem in defining vars. In this code, on page load i load an external file using JQuery's Ajax methods, therefore i'd like to assign its value to a var to use later. Unfortunately the syntax i'm using seems not work so i cannot, obviously, understand why. Here the code: $(window).load(function() { $.get('http://localhost/_SandBox/JavaScript/Learn-JQuery/_SourceCodeFromPackt/Chapter%206/exercises-content.html', function(data) {
Tablesorter + filter + addRow + update => filter not applied
I recently started using Tablesorter to sort and filter a table -- awesome functionality! My next step is to add rows to my table dynamically. When I do this (simple JavaScript for now), the filtering is not re-applied (that is, I would expect the new row to only be visible if the filtering rule allows it). I have to remove the filter text from the filter box, let it "unfilter" then type the filter text again. Am I missing something? Here's my function: function addRow() { var row="<tr><td>new
Jquery ui -dialog box automatically close after first ajax call.
I have jquery ui dialog box. I want to do some ajax operation while dialog is open. I am using response of first ajax in to second ajax call. while I am doing this my dialog box is closed after first ajax responses successfully. so I want to open dialog until I complete both ajax successfully. Please help with this.. Thanks,
Help with interactive slideshow
Hi, i made an interactive slideshow with the help of other users here that allows you to slide the current image and another user on their own end can see the changes in real time. The page kinda works its just that it gets stuck after a while. I use jquery to have the page continuously read a value stored in an external txt file which contains the ID of the current image so it can detect when it changes and slide to that image. However seems like this method overloads the page and thats what makes
how to add mouse event to div
Here I am able to see the thumbnails but mouseEvent not working, I need when user clicks on thumbnail it shows output a jpg name which is dynamically passed to div. $(document).ready(function(){ for(i=1;i<19;i++){ $("#scroller").append("<div class='childDiv' div='child'"+i+"><img src='thumb/"+i+".jpg'></div>"); $mydiv=$('#child'+i); $mydiv.myimage='images/'+i+'.jpg'; $mydiv.click(function(){ alert('clicked on thumbmail >>'+this.myimage); });
How to get a single value of div class in jquery
Hi, iam having online shopping site.i want to show image with price in quick view.the issue is if i use $('.product-item').find('.prices').text(); it show all products prices like this $24 $34 $45.Because the div class product-item is getting looped.i want to show clicked image price only.How do i do this. $(".dialogify").bind("click", function(e) { e.preventDefault(); var productprice= $('.product-item').find('.prices').text(); }); <div class="product-item" data-productid="@Model.Id"
Problem calling .menu() on injected (dynamically created) HTML
Hi, I have dynamically created HTML like this: var str = '<ul id="menu1"> str += '<li><a href="#">Item1</a></li>'; str += '<li><a href="#">Item2</a></li>'; str += '</ul>'; $('#div1').html( str ); // Insert jQueryUI $('#menu1').menu(); The problem is, this doesn't work. If I make the <ul></ul> in static HTML, then it works. Can someone point me in the right direction? Thanks !!
Class toggle with click
I have some html code that I want to toggle a class when the div is clicked. Can anyone help me with this? I want to add a on/off to my class when the div is clicked. <div class="cat-toggle"> <div class="toggle-inner"></div> </div> I need to add the on or off class to the cat-toggle based on the current state when the user clicks on it.
An accordian with complications
I'll try to lay this out as thoroughly as possible: I'm working on behavior for an SP2013 app that displays employee profiles on team sites. The app displays employee profile "bubbles" 5 at a time, with scroll arrows to advance or go back at the bottom. Clicking on the profile "bubble" takes you to the employee's complete bio. You can preview the bio from the existing list by clicking the preview button in the bubble, this is where the accordian-like action comes in. I have come up with plenty of
Question about the design choices in "Grouping and dividing content"
This is a more "why did you do it that way" question versus "how do you do it." I was looking over the examples here (http://demos.jquerymobile.com/1.4.0/body-bar-classes/) and I was curious why "Heading attached to section - custom rounded corners" was built to require custom css? Is there any reason why this can't be supported in the default CSS? Since *anything* is possible with custom css, why is this included in the first place?
difference between ("#btn").click(); and ("#btn").button.click();
i am new to jquery can someone explain what is the difference between ("#btn").click(); and ("#btn").button.click();
Help on Accordian widget
Hi Everyone, I am using accordian widget to display the options in list wise. It is working fine but not fulfilled by requirement. My requirement is in the beginning of page load it's automatically focus on first list. When I was refresh the page (I was capturing list id) but it was going to first list by default so, how can we use that id to stay the current list. For example, we have 3 lists as below. First I am going to open first list then second list and then refresh the page, in this time I
How to load pages with slideDown
Hello, I'm trying to load pages with slideDown and here is the problem: <div class="back"> <a class="page2" href="#">Page2</a> </div> <div id="area"></div> <script src="js/jquery.js"></script> <script type="text/javascript"> $( '.page2').on("click", function() { $( "#area" ).load('page2.html').slideDown(1500); }); </script> Nothing happens, the page doesn't load, just # on URL Thank you
CSS overrides not working after upgrade to JQM 1.4
I just upgraded my project to JQM 1.4 and noticed that certain css overrides that previously worked in 1.3.2 no longer work as before. Specifically, I am overriding the background color and text color of buttons (<button> & <a>). This does not work if I use the css class but oddly enough works if I use the override on the specific element. This jsfiddle shows the problem. When I use the buttonYellow, buttonBlue, etc classes, nothing happens, but if I set the same values on a specific element (e.g. #button2)
how to have the like and unlike when clicked and show the clicked image when went back and returned again to that page.
<body> <script type="text/javascript"> $(document).ready(function() { $("#like1" ).click(function() { $("#like1").attr("src","images/like_on.png"); $("#unlike1").attr("src","images/unlike_off.png"); }); $("#unlike1").click(function() { $("#like1").attr("src","images/like_off.png"); $("#unlike1").attr("src","images/unlike_on.png"); }); $("#like2" ).click(function() {
How to slide from right to left?
Can some one please help me how to make this slide from right to left? This one currently slides from left to right. Thanks a lot. http://jsfiddle.net/Xaru9/
Issue with jQuery UI Sortable
Hey there I'm having a issue I've made this script for a "box switch" and the issue seems to be that when you pick up the box and move it there is a dupilicate box following it and also sometimes the CSS will mess up and connect the boxes together when there should be spaces for more details if you don't understand just ask I have it all in a js fiddle 100% working JS Fiddle Test
$(window).width() and chrome
with $(window).width(); I get chrome : 1746 firefox opera safari : 1920 why is Chrome totally wrong ? and how can I get the real page width on .ready and .resize ? thank you
Passing an Array as a Config Option in jQuery plugin
Hi, I have posted this question on stack overflow to help me understand how to pass an array of objects in my plugin config option, but I have had no reply in the last 3 days. Would it be possible to know how I can pass an array inside my default config settings to allow users to add as many images as they like depending on the type of "array or parameter" that is provided. The reason I am using arrays is depending on the type of array (desktop_xl[] , desktop_l[] , ipad_p[] , mobile_l[], mobile_p[]
how to pass product price,add to cart to jquery
Hi, I am having the following code.This code display image , short description ,title,add to cart button,and price of the product.But what my issue is the product description,price it shows are not for the clicked image.it shows the description,price about the last loaded image.add to cart button is not working.How do i pass the description,price for the currently clicked image.The problem is product description and price are in different div tags and the image is in another tag. $(function ()
jQuery vulnerabilities - Header Manipulation & Code Injection
Hi All, Recently while scanning the code with fortify code scanner I came across the two vulonerabilities reported by scanner: Header Manipulation and Code Injection in jquery related files. Following are my queries: Why the values reported by scanner are not validated. What is the significance/use of those values. For Code Injection: aCookies =document.cookie.split(';'); for ( var i=0, iLen=aCookies.length ; i<iLen ; i++ ) { if ( aCookies[i].indexOf( sBaseName ) != -1 ) { /* It's a DataTables
css properties at jquery selector do not work when Infinite Scroll load new elements
This is my code: $('.home_post_box').hover( function() { $( this).find('.home_post_text').css({ 'visibility':'visible', 'opacity':'0.9', 'transition':'visibility 0.5s ease,opacity 0.5s ease', '-o-transition': 'visibility 0.5s ease 0.5s,opacity 0.5s ease' }); }, function () { $(this).find('.home_post_text').css({ 'visibility' : 'hidden',
Progress Bar using jquery mobile
Hello Everyone, I want to add a progress bar using jq Mobile. I wanted to ask is can I use a jquery UI progressbar ? Is it compatible with it? If no then which would be the best to use?
how to pass clicked image id to jquery function?
Hi, i have to show image in the dialog box based on the user clicked image.So that i have to pass the clicked image id to function.(like passing parameter to javascript function).I dont know how to do this in jquery.Can anyone help me? $(function () { $("#dialog").dialog({ modal:true, autoOpen: false, resizable: false, width: "auto" }); //var id= $(this).attr('@Model.Id') $(".dialogify").on("click", function
Please provide versioned documentation
I hope this is the right place since I can't find anything else that seems like the right spot for an improvement request for the site. Please direct me to the proper place if there is one. Sometimes I need to use older versions of jQuery. It would be really nice if I could go to the documentation page and select the version to get that version's documentation. It's really hard to figure out how things have changed with the current method, which is to try to trace the history though whatever commentary
multiple forms per page & per site
Hello all, I am building a site that is primarily database driven and have multiple popups on several pages that have forms in the popups. I have found that as I am navigating through and using the site some times I have to click a submit button twice for it to submit or I have to manually refresh the page to get a popup to work. I believe I have gone through everything and made sure all of the ID's are unique throughout the whole site per one suggestion but it's still having this issue. Any ideas
Datepicker Output back to mySQL format?
Hi, probably a fairly simple answer to this as i'm certain lots of people have run into it, yet i can't find a solution by searching.... I have a mysql database. the default date format it uses is yyyy-mm-dd. My client is in England, and they are used to having mm-dd-yy. I have used the dateFormat property to successfully display the date the way i want when it's selected, and i've used strtotime in php to re-convert it back to the correct format when saving to the mysql database. One small problem
jquery ui - buttons
Oi, estou usando o jquery ui, o dialog do jquery ui, e preciso saber como usar os buttons do dialog, preciso marcar o button com uma class, alguem sabe me dizer como.... exemplo: ---- Hi, I'm using jquery ui, jquery ui dialog to, and need to know how to use the buttons of the dialog, I need to select a button with a class, someone can tell me how .... example: <script> $(function() { $( "#dialog-message" ).dialog({ height: 600, width: 720, resizable: false, modal: true, buttons: { BUTTON:
Help... How to get the variable from another function to other function by using parameters... thanks...
This is the code format_time = function(song_duration ){ var song_duration = ('0'+Math.floor(song.duration/60)%60).slice(-2)+':'+(Math.floor('0' + song.duration % 60)); } //Update time line update_timeline = function(song_duration ){ $timeline.html('00:00' + "-" + song_duration); } update_timeline(); the result undifined??? can anyone help on this... i have problems interms of parameters... thanks...
Help... problem with formating time into minutes and seconds...
I got this problem on formating the time This is the the function format_time = function(seconds,minutes){ var minutes = ('0'+Math.floor(minutes/60)%60).slice(-2); var seconds = (Math.floor('0' + seconds % 60)); return minutes + ":" + seconds; } format_time(song.duration) The problem is the minutes will display aN? but the seconds display the right result.. I just realize the problem is all about the value that been returning... how can both of them to be return???
JQM App Help & Advice.
Hi, can you tell me what happens during the following process. A user is using my App (that has an HTML5 Database) then opens another App thus placing mine in the background. When reverting back to mine will all the info still be in place? e.g, the page they left it on, data etc.. Also what would happen if they chose to delete the HTML5 Database during this process? Is there a function I could call when the App is re-opened where I could check that it is still in place? Thanks in advance, Lammie.
Button style inside collapsible
A button added programmatically inside a collapsible (which is, in turn, part of a collapsible set) doesn't style the way other buttons do. I've tried defining the button all 3 ways (as an html input type='button' tag, as an html button tag, and as an a tag). The same html code moved OUTSIDE the collapsible set looks the way I expect buttons to look. Inside the collapsible set, they retain the default underlined blue hyperlink for the text. (Please note that after I add the buttons programmatically,
dragging listbox items up and down
I want to drag up and down the items of listbox using jquery. Is it possible? Thanks in advance
Problem about keep current menu shows
This is my html menu code: <!--sidebar start--> <aside> <div id="sidebar" class="nav-collapse "> <!-- sidebar menu start--> <ul class="sidebar-menu" id="nav-accordion"> <li class="sub-menu"> <a class="active" href="#"> <i class="icon-user"></i> <span>Khách hàng</span> </a> <ul class="sub"> <li
how to append or replaced specfic value from the option tag using jquery
hi friends if 4 text box is created based on below code then while text box focus out then that text box value are append in dropdown list its working fine but while user can change the text box value i need to replace old textbox value to new value how can i do this please help me friends My text box Creation and dropdown creation <% for (int i = 0; i < Convert.ToInt16(Model.NumGroups); i++) { %> <tr> <td> <%: Html.Label("Group" + (i+1).ToString()) %><br /> <%: Html.TextBox("GroupName", null , new
how to cache page when going away from it and not cache when return from it
For now, I am using jQuery mobile version 1.3.2. According to the documentation, making a page data-dom-cache will make the dom bigger and bigger, so I am trying to avoid doing it as much as possible. But to me, it makes sense to cache a page if going to another page, but not cache it when returning to a previous page. For example, moving form page1 to page2 to page3. When a user moves from page2 to page3, i would like to cache page2 so when the user goes back to page2, he is at the same point when
Accordian / WordPress
Hello: I am trying to get the accordian to work properly in my WordPress site. The attached document shows some spacing issues that I'm not bale to figure out. Does anybody have any ideas how I might solve this problem. Thanks in advance for any suggestions.
How to change header of collapsible in 1.4.0
I need to change the header of a collapsible. This is my JSFiddle: http://jsfiddle.net/rCFzP/2/ Somehow the icon dissapears. How can I get the icon back? Thanks, H
Next Page