Problem using Google "ProgressiveImageSequence.class.js"
Hi guys: I want: to do a video with image sequence, and there is a class "ProgressiveImageSequence.class.js" can do this. I did: I linked beloved jquery lib and this class file to my html. then instanced an object of this class and use it's method to get a image. the code: var imageSeqLoader = new ProgressiveImageSequence( "../images/vid-{index}.png" , 15, { indexSize: 1, initialStep: 1, onProgress: handleLoadProgress, onComplete: handleLoadComplete, stopAt: 3 }); var index=1; var img = imageSeqLoader.getNearest(
How to display the particular tag in a file like description in the listview dynamically using jquery?
I'm trying to get the some data from file like some.txt. I want to display some data in that file like description under the each list in the listview. $(xml).find('section[order="' + order + '"] content').each(function () { var content = $(this).text(); var seq = order + '' + $(this).attr('order'); var file = $(this).attr('file'); $("#content").append('<li><a href="#" data-sequence="s' + seq + '" file="' + file + '">' + content + ' </a> </li> '); }); $("#content").listview('refresh'); });
How to maintain popup window after submit action form?
Hello, I have page which created by struts2 and in that page have link to open popup window which created using jquery UI dialog model form. i have created the another form in same jsp page and have action button to do connect the database.Now while return back, i need to maintain the same popup window in the page. How to maintain the same popup window ? Example : page A (parent jsp page) has form with action and buttons). Now i have created another form for popup window in same jsp page with another
Returning AJAX Data from Function?
I have the following function function getAllUsers() { // make ajax request $.ajax({ url: url, type: "GET" }); return data; // <---- i want to return data from ajax call } How in the world can i have my function return data from an ajax call asynchronously so that the above function can be used by a client/caller like so. var userArray = getAllUsers();
problem using jscrollpane and jquery tinymce
Just wondering if anyone else has come across this and managed to find a way around it... I'm trying to create a form, which contains rich text editors, inside a scrollpane. The problem I'm having is that regardless of whether I place the jscrollpane code before or after the tinymce code, the RTEs are initialising after the scrollbars, and the extra length (top and bottom of the textareas) is pushing the bottom of the form off the bottom of the div, and not allowing me to scroll all the way down.
Validate combobox with jquery easyui
In my page, has two plugins: jquery validate and jquery easyui .. I use jQuery Validate to validate the datas inputs in a form.. And I use jQuery EasyUI to customize a combobox, allowing to search datas in combobox. So, I put the Validate plugin: $("#form1").validate({ rules:{ filename:{ required: true, minlength: 3 }, leia:{ required: true } } }); That's ok! Is's work! But when I put the easyUI plugin, and set class in combobox 'leia' the validation of 'leia' didn't work more. <form id="form1" action=""
Getting data-prefetch to work like a multipage html does
I am taking the advice of the experts here and dividing my multipage html file into separate single page html files but......... I cannot get data-dom-cache and data-prefetch to work as a multipage does. For instance, one of my pages, the location page, has several input boxes that when clicked open a dialog box for the user to input data. In the multipage html this works perfectly, but after splitting the pages into single html's and pre-fetching the location page (and supposedly caching the DOM),
How to display a modal when the user will close the page?
Hello... I wonder how do I load a modal window (with info within it), when the user is closing the page (go with the mouse pointer to the close button of the browser)? Here is an example of this: https://shop.ashampoo.com/10/purl-onlineshop?scope=checkout&cart=111972&cookie=false&usepricescale=false&x-source=web&x-mid=web The above example loads a modal window when the user goes with the mouse to close the window. How to do it? Can someone show? Thank you all!
filter a json
i couldn't find a good easy to understand example allowing me to filter a json generated table: URL
Putting data from a database into highcharts with $.getJSON
I'm having some problems with $.getJSON, I really need some help because I don't know how to solve the problem and I've been stuck here for days. This is the js file that should generate highcharts when selecting a select option in HTML: $(document).ready(function() { $("#paese").change(function(){ var seriesOptions = []; $.getJSON("prova.php", function(data) { seriesOptions = data; }); var chart1 = new Highcharts.Chart({ chart: { renderTo: 'container', type: 'column', spacingLeft: 20, borderWidth:
How to reset select box after "selected" has been assign
Hello, Im trying to reset("selectedItem",0) on a dropbox that has had a "selected" attribute assigned to it.When I try to do the "selectedItem,0" property it does not reset the box. How do I do this? $("#s1tpid").prop('selectedIndex',0); $("#s1elem").prop('selectedIndex',0);
Easier way to get proper JQM styling and functionality to dynamically generated listview ( ul / li ) ? (Source : JS/JQuery)
Greetings.. and thank you for using your time reading my post... Setting up a listview in the markup is easy, and looks like it should when applying the correct data-roles and styles to it... But.. populating (databinding) a listview from javascript/jquery was more brutal than i thought it should have been... I wonder... am i doing something terribly wrong, when ending up with the code you can see below to create the jqm listview or is this the way to do it ? I hope.. the first :) var listString
Collapsible top margin - how to remove?
Hi, With the html below, I get a space between the page footer and the collapsible, about half a height of one collapsible item, how can I get rid of that space? If I replace collapsible with listview it start right after page footer and there's no space. Thanks! <div data-role="content"> <div data-role="collapsible-set" data-inset="false"> <div data-role="collapsible"> <h3>1</h3> </div> <div data-role="collapsible">
How to get jquery autocomplete values to search?
The autocomplete part works, but clicking on the values in the drop down just puts them into the search box, and then I have to hit enter to perform the search. How do I get the values to search? <script> $(function () { var availableTags = ["SEO", "Responsive Design", "Google Local", "Twitter", "Social Media", "Web Design", "What is Google Authorship", "NFL", "Fantasy Football Rankings", "Kevin Sullivan", "Fantasy Football RB Rankings 2013", "Fantasy Football", "How to Buy Twitter Followers", "Advanced
Responsive search box in the header
Hello! Just started to use jQuery mobile to build a new mobile app. I saw the jQuery mobile demo (http://view.jquerymobile.com/1.3.1/dist/demos/) and really loved the search box in the header. Especially when you watch it on a mobile screen. Then the input form change to a search icon, and the search form will open/hiden below the header. Does anyone now how to build this? Can't find the code in the demo. Thanks for the support!
Enabling a checkbox when text inputs are not empty
I have some text inputs and one checkbox: <input type="text"> <input type="text"> <input type="text"> <input type="checkbox"> I want to disable the checkbox and enable it when all text inputs will be not empty. I have this code, but it doesn't work: $(document).ready(function () { var empty; $('input[type="checkbox"]').prop({ disabled: true }); $('input[type="text"]').keyup(function(){ $('input[type="text"]').each(function(){ if($(this).val().length
ColorBox plugin
Does anyone have any ideas how to open the coorbox window and then upon clicking on the image it passes the id through into the form on the page and change the image when closed? or any other ideas?
What happened to api.jquery.com/jsonp ?
I'm trying to search jQuery's documentation from a different domain with JSONP. api.jquery.com/jsonp/ used to be the page to do it but it's been removed. Please can someone tell me the new URL or has the service been removed? Thanks in advance.
ListNav
Does anyone know if the iHwy jQuery ListNav Plugin works on jQuery 1.4? I'm trying to implement it on my current site, but its not doing anything. It isn't generating any errors, but isn't working either. I've double checked the code, though to have more eyes, here is the code: -- On the page itself <div id="myList-Nav" class="listNav"></div> <ul id="myList"> <li><a href="major1">major1</li> <li><a href="major1">major1</li> <li><a
Changing font family and size
New to jQuery but understand CSS. Need to change the font-family and font-size on the menu widget but on no other widgets, such as datepicker. What has to be overridden in the css? Is there documentation that describes this in general? Thanks John
jQuery load external files into popup dynamically
Hi everyone, i've got a problem by loading an external html code from a file by load(...) or $.ajax(...) or XMLHttpRequest(...). The loading of the files works exactly 2 times and then it aborts by 404. So i tried the xhr.abort() command but unsuccessfully too. If i use a full URL like www.domain.tld/abc.html it works great. But i need this for a WebApp in Apache Cordova. Here comes my Test-Code: HTML: <script src="jquery-1.9.1.js"></script> <script src="jquery.mobile-1.3.1.js"></script>
creating data
i have data like blow var data=[{"name":"NICCA","data":1},{"name":"TCS","data":2},{"name":"SafeScrypt","data":0},{"name":"GNFC","data":0},{"name":"eMudra","data":0},{"name":"MTNL","data":0},{"name":"IDRBT","data":0}]) but i need to construct like blow data: [ ['NICCA', 2], ['TCS', 1], ['MTNL', 0], ['IDBRT', 0], ['eMudra', 0], ['GNFC', 1] ] how to do it . please help me out... Regards
Accessing newly added html elements as soon as they are created
Hello, Lets say I have this code: var x = "<div id='div1' />"; $("#main").html(x); then I presume that the following line risks failure because the browser might not have updated the dom just yet $("#div1").html("Hello World"); So - is the above line going to work in all browsers ? (like I said I suspect not) And if not, what event fires that I could pick up on to make the above line work ? I tried this $("#main").html(x).ready(function (h) {$("#div1").html("Hello World");}; BUT
header image button with jQueryMobile
As would have to do to create a button in the header with an image only, because if I put an icon without text looks pequello. Help please
Problem with trigger() in a loop
Hi all, I don't know if this question has been asked before. I have a loop and inside that loop I have a trigger and an event handler for the triggered event. <Code Snippet> $.each(loopvalue, function(k,v){ var element = $("#divid").find(k); element.trigger('dblclick'); element.dblclick(function(event){ //do something }); }); </Code Snippet> If loopvalue has one element, everything works fine perfectly. If loopvalue has more that one element then the first cycle
How to check select event
I have two options select, if I want to change option 1 to option 2, I want to show confirm message let user check, if no then keep on 1, if yes then change to 2, how to do that?
JQuery security
Hello, I have just started using JQuery, I found that it is basically a Client side JavaScript , accessible from any webpage and can be tampered using intercepting proxy (like burp proxy). I want to know, if there are any details of security implementation on JQuery (Server Side validation). If SSL can stop tampering and manipulation. Thanks Regards Anoop
JQuery Date-Time Picker
Hello everyone, Have any body used Jquery Date-Time picker? We have JQuery Date picker but we need Time picker also. If anybody have used it, plz help. Thanks in advance.
select menu
Hi All, I have this code (below) that works well but i am having some issues with a select menu. When you select an item from the list, it adds some text to the search bar and filters the results of my listview. That works well. but when you select an option, the highlighted state doesnt change, it keeps the first option that you choose, and will never change, however, it does know what you have selected as the filtering still works, but gives the user no visual appearance to what they have choose.
How to make jquery function run only 1 time?
I have the code below: jQuery('.teste').hover(function() { jQuery('.modalcart').trigger('click'); } ); How do I get the declared function is executed only once?
$.mobile.changePage("#pageId") taking longer time to load.
Hi, I have a link with the event "touchstart", which functionality is to move to another page, as below code: $.mobile.changePage("#pageId"); I understand loading page takes time if data is high. But, I wish to navigate on next page as soon as the "touchstart" event is fired. Currently, when we touch the link it waits for few seconds and internally loading the page then navigates to next page, which leads user to confuse whether the button has been clicked or not. so, basically my requirement is
touchstart responds after a few seconds delay
Hi All, We are developing an application for iPad which uses phonegap and jquery mobile. Everything is running fine. But, I have a link which loads the internal page on "touchstart". Whenever I touch it fires the event after few seconds of delay say like 3-4 seconds. This happens only first time. Once page is loaded and again I navigate back and click that link ("touchstart") it fires quickly. can anyone suggest!!!
Multiple-page html versus several single page html files
I have an application that uses four different pages. On one is a map on which the user can add markers when these markers are added the coordinates are written to a second page. The user can add other parameters to a third page and the results of calculations using the coordinates and parameters are displayed on a fourth page. Using a multiple page layout makes this simple as all of the input boxes, selection boxes etc are available in the DOM. I have read that using single page html files for
SlideToggle
Hello, i am newbie to j Query and i have problem regarding my project. I have li elements created by php and with each li element i get div layout showing some data. I would like to be able to click to title located in li and be able to show div layout and hide everything else but when i click again on title it hides layout div and show all of list again. Here is structure: <ul> <li><a href="#" class="click">Title dynamically 1</a></li> <div class="layout">Data dynamically 1</div> <li><a href="#"
Building a browser extension for work .
Hi all, I'm working at a company as an intern and I'm hoping to put together a web application that would make life a bit easier for my team. Jquery seems like a way of doing this. I need to build an app that does the following steps on the company platform: 1. Look up a particular set of numbers. 2. Add those numbers together. 3. Look up a separate number 4. Divide the sum of the first set by the send number 5. Multiply the answer by 100. We currently have to do this manually across multiple
close datepicker if done
Hi, I would like the datePicker to close only when the done button is clicked... i don't want it to be closed when i select a day... how do i do this?
Jquery Menu not collasping on mouseleave
Hi, i'm pretty new to Jquery and Javascript, and have recently started dwelling into jquery. Well the problem that i have, is that with .menu() function, i want the submenu to collapse when i exit the submenu, but instead it waits there till i click something. I have tried to checked the jquery code to find anything, and found the function, which is for closing submenu on click outside the menu. i tried different methods to achieve this, such as mouseleave() hover. But everything failed. Now im here,
checkboxradio is not a function
I am using jquery 1.9.1, jquery mobile 1.3.1 (js & css) in my web app. When i call checkboxradio to uncheck all the check boxes, its throwing the exception "checkboxradio is not a function" $("input[type='checkbox']").attr("checked",false).checkboxradio("refresh"); When i try the same as a sample app, it works. The problem is : the function inside jquery mobile 1.3.1.js file is not getting called. I do see the jquery mobile 1.3.1.js in the scripts loaded in firebug. Please advise on how to find
SharePoint PeoplePicker getting hidden(without sharepoint ribbon) with datepicker in IE7
I am using jQuery UI 1.10.3, and jQuery 1.9.0 version. I have both jQuery datepicker and sharepoint people picker in a page. when i click the datepicker icon, the sharepoint 2010 people picker gets hidden. Try without sharepoint 2010 ribbon. This is happening only in IE7, It works fine in IE8. About people picker rendering: Not able to find how datepicker affects div in people picker. In People picker, the div which is showing the value gets hidden. The div is contained in a table. The div will
Hidding a div if certain conditions
I don't know if this is possible In most cases, my html would look like this: <div class="1"></div> <p class="1"></p> <p class="2"></p> <div class="2"></div> <p class="1"></p> <p class="2"></p> <div class="3"></div> <p class="1"></p> <p class="2"></p> But, if I had a scenario (depending on the data output) and my html looked like this: <div class="1"></div> <p class="1"></p> <p class="2"></p> <div class="2"></div> <div class="3"></div> <p class="1"></p> <p class="2"></p>how would I hide div class
Next Page