Function question
I have the following code which works fine: var blackshFunction= function() { var j=0; for(var i=2;i<9;i++) { $("#altviews a").eq(j).attr("href","/v/vspfiles/photos/SMART-HOLSTER-" + i + ".jpg"); $("#altviews a img").eq(j).attr("src","/v/vspfiles/photos/SMART-HOLSTER-" + i + "S.jpg"); j=parseInt(j)+1; } $("#altviews a").eq(6).show(); $("#altviews a img").eq(6).show(); } var brownshFunction= function() { var j=0; for(var i=9;i<15;i++)
designing Questionnaire UI
Hi All, I having set of questions stored in db,i am displaying Questions to user using jquery and get response from users, on save saving responses to db. I want to display questions in attractive manner, please help me in achieving it,i am new to jQuery. Thank you, Kavitha
Php echo command does not work in Highslide "html content" Can you help please?
<?php include ("css/servis.php");?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" href="highslide/highslide.css" /> <script type="text/javascript" src="highslide/highslide-full.js"></script> <script type="text/javascript" src="highslide/highslide.config.js" charset="utf-8"></script>
jQuery Supersized Slider Plugin - How to resize slider images by click on a DOM element
Hi, I need help referring to jQuery Supersized Slider Plugin, the problem is the following: I'm building a static website that uses a left side scrolling menu. What i want to reach is: if the menu is visible the image on the slider will have a different width instead of when the menu is "hidden". The process is the following: 1) Menu visible, #supersized li img width is 60% 2) Click on the object, menu is animated to be hidden except for the button, #supersixed li img width is 100% And so on. Now,
scripts does not work two together
<link href="css/custom-theme/jquery-ui-1.10.2.custom.css" rel="stylesheet"> <script src="js/jquery-1.9.1.js"></script> <script src="js/jquery-ui-1.10.2.custom.js"></script> <script> $(function() { $( "#accordion" ).accordion({heightStyle:"content"}); $( "#accordion" ).accordion({collapsible: true}); $( "#accordion" ).accordion({active: false}); $( "#button" ).button(); $( "#radioset" ).buttonset(); }); </script> // together two scripts
How can I set the conditions on parsing this data I want?
I'm parsing some jsonp from an external database which I'm able to pull in fine. However I need the data to full fill certain conditions. The data I'm pulling in is located here: http://stuartwestgate.co.uk/final_project/index.php and I've got the JavaScript pulling the data in: function datahandler(info) { var dataReturn = document.getElementById("dataReturn"); var propertySelector = new Array("uniqueIdentifier", "cameraPicture", "photoAlbum", "videoData", "audioData",
How can this work as it does
This code works as it should but there is one thing that I don't fully understand. In the html markup at the end I have this div <div id="dlgInsertLots" title="Insert Lots" style="width:500px; display:none"> ... which is not displayed because we have said display:none Now to my question when I click on button with id= InsertLots this function Click_InsertLots is called. function Click_InsertLots() { //Create and display dialog dlgInsertLots $("#dlgInsertLots").dialog({ width:700
jQuery Mobile dynamic page event
Hi, I am created a dynamic page using jquery mobile, how to get an event after create this page and i need an alert from this button this is my code: $("#test").on('click',function(){ var newPage = $("<div data-role=page data-url=testpage><div data-role=header><h1>TEST</h1></div><div data-role=content> <input type='button' value='clic kMe' id='click_me'> </div></div>"); newPage.appendTo( $.mobile.pageContainer ); $.mobile.changePage( newPage ); });
How do i use Jquery Autocomplete in an Iframe?
I am using a Jquery Autocomplete in an Iframe,I cant able to load the data in this frame.How can i load the data in an Iframe?
How to prevent jquery.mobile-1.3.1.js autoscroll the whole page with 4 lines
I am experiencing auto scroll behaviour after page load when i am using jquery.mobile-1.3.1.js. If I remove the script this does not happens. What to do? Environment= ie 10 and in a aspx page. Uses the flip toggle switch,http://api.jquerymobile.com/slider/
How to learn Javascript and jquery very quickly?
How to learn Javascript and jquery very quickly?Is any famous book is available for that?Its urgent
How to autohiding the header and footer bars in jquery mobile?
can anyone tell me how to autohiding the header and footer bars for the large content in jquery mobile? And also another one how to disable the vertical scroll in iphone mobile using jquery mobile?
Jquery problem on Internet explorer
Hello please I have a big issue with my site, currently have tested it on all browser, it seems to do fine on opera, safari, google, and mozilla, but it doesn't work well on internet explorer, this is giving me concern because visitors to my site from explorer is 4th on the list, please you can visit the site on an explorer to get what am saying....don't know what to do? should I redesign another site and transfer the content of this one on to it, because it seems to be having design problems, and
form submit on iPhone 3G won't work
Hello all, i am really getting frustrated. The following HTML- form submit code won't work on iPhone 3G (iOS 4.2.1). For now I have no idias why. Tried also some suggestions fount with google, but it just won't work. fyi: - The same code work fine on iOS6, Android, and desktop browsers - js alert does work on iPhone 3G (iOS 4.2.1) (tested it with simple a href) What I already tried: - update to newest jquery-mobile - get form by submit - get form by name Do anyone of you have any idea what
problem in carousel
Hi I have a dynamic carousel. in which item varies from 2 to 14. Now if i have 2 items, then i want to show as soon as i load the carousel the right arrow disabled. How wud i show it on loading the carousel itself. Below is the code to handle the carousel arrows. function filterArrowButtonWasClicked(event) { var content = $('carousel_content'); var offset = parseInt(content.readAttribute('data-offset'), 10); var no_of_products = parseInt(ACProductBrowser.products.products.length, 10); var remainingProducts
jQuery and jQueryUI documentation is not loading on my IP
Hi all I am wondering, If I try to see documentation of jQuery or jQueryUI in my office (offcource through brouser ) It shows message If i ping jquery.com through consol it shows unknown host http://jquery.com/ but if I connect through my mobile or I use documentation trough cyber-cafe it works fine, How it is?
jquery-1.9.1.min.js is not working with
I have a snippet <script type="text/javascript"> $(function(){ $("#selectall").click(function(){ $('.mycheckbox').attr('checked',this.checked); }); }); </script> <ul> <li><label><input type="checkbox" id="selectall" /> Select All</label></li> <li><label><input type="checkbox" name="1" class="mycheckbox" /> 1</label></li> <li><label><input type="checkbox" name="2" class="mycheckbox" /> 2</label></li> <li><label><input type="checkbox"
Theme Problem?
How to Fix this? my data theme is gray but it has white. How to fix in css???
JvectorMap Region Selection
e I am trying to reuse the region selection feature of JVectorMap. I am using a custom map (js) file. I have tested it in and it works fine for region selection. Now I need to pass the regions which are selected by the user to the back end vb code. In this case maps.getSelectedRegions() gives an array of the user selected regions. I am not clear on how to pass a javascript array to back end vb code. The window.localstorage as how it is given in the example don't seem to work out here. Can somebody
I need a simple example of how to use an <a> link to dis play a modal dialog box
I have googled and googled but I can't find a simple answer to this question. The example shown on this site show how to display a dialog upon page loading but this is of no use to me. dialogs usually are used to respond to an onClick event. I have seen some that display when a button is clicked but I can't seem to modify that to clicking on a link. This is what I have: <!Doctype html> <html> <head> <title></title> <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.2/themes/smoothness/jquery-ui.css"
Problem on mouseenter
Hi all, I have an image with caption text on my website. The caption is hidden by default and only shown when the mouse enters the image. When the mouse leaves the image, the caption fades out. This all works great except for 2 (little) problems: 1. When a user hovers the caption text (which is overlapping the image), it sees a mouseleave so the caption disappears.. 2. The fadein and fadeout are queued so when I quickly move the mouse, it keeps fading in and out. I used clearQueue but it
Focusout not working in Safari/Chrome
I have tried focusout into input field.It was worked fine in all browsers.But normal button focusout event not worked in safari/chrome.Please help me.
First Time Using Dialog and it won't show up
I have been using JQuery for some time but have just started trying to use the dialog widget recently. I must be missing some fundamentals because I can't even get the dialog box to show up. I have this HTML: <div id="dialog" title="Add New Need"> This is the dialog box from which new Needs will be added </div> Then I have this JQuery code: $("#dialog").dialog("open") Is there some type of initialization that needs to be done first?? Can someone
Making the SE handle for the UI resizable module lock in the aspect ratio
The standard resize module with jQuery-UI has a SE grip area for dragging east and south simultaneously, but it allows you to also just drag east or just drag south. So if your user doesn't pay attention to keep dragging at a 45 degree angle, they can easily drag east or south accidentally and destroy the aspect ratio of their object. I'd like to make the SE handle always lock in the aspectRatio so this doesn't happen. I put together a jsfiddle at http://jsfiddle.net/f9Vwp/2/ that I thought should
How to test inner functon in qunit
I just started with Qunit, and don't know much about it. The problem I'm having is that I have written this function in my code and want to test this using Qunit. <script> function calc(firstno, secnum) { return firstno + secnum; } function main(firstno, secnum) { return calc(firstno, secnum); } </script> So, how should I test the calc function when I write a test case for the main function.
Problem with Jquery and JqueryUI
before everything, sorry for my english, i searched for brazilian forum, but i didn´t found anything. PS: I already searched trough the forum for my answer. I have a webpage in my localhost and it works very well, but taking it online, it´s does not work. See http://dhost.info/radicalmakers/Sistema/ the start page, works very well, but after logging (root and 123456) the counter does not work and the home page generate a error when accesing direct after logging (http://dhost.info/radicalmakers/Sistema/home.php).
How to float a Div outside an iframe
Hello guys, okay? I wonder how I do to show a floater that within a inframe on my site but that floater appear on any website and not only within the iframe? I am sending a sample in fiddle floater (code). Remember that this code will stay within a ifram within my site, and when the person clicks on the link on the floater appear throughout the site and not only within the iframe. Is it possible? If so, how? Thank you all! Exempla floater fiddle (is not in iframe on the exemple): http://jsfiddle.net/mG9vf/1/
Get the ID of all child nodes from multiple treeview (skip parent node id). How?
I have used a treeview in a user control which is used multiple times in a single page showing different data. There would be only three levels of nodes (Parent - Child - Sub Child) By default the parent node will be selected. when user click button, is it possible to get all the id of nodes (only child nodes and sub child nodes) which are selected in checkbox and validate for at least one child node to be selected from any treeview on the page ? Note: Have to skip the ID of Parent node of all the
DOM Exception with JQuery Disables Debugging
I created the world's simplest HTML file (and yes, the jquery JS is there locally): <html> <head> <script type="text/javascript" src="jquery-2.0.0.min.js"/> <script type="text/javascript"> function boing() { alert("Boing!"); } </script> </head> <body> <button onclick="boing()">Boing!</button> </body> </html> If the third line (script including JQuery.js) is removed or commented out, the file behaves as expected. With the script included there is a DOM exception and the button doesn't work.
How i can use swipeleft and swiperight in JQM 1.3.1?
Hi, i have some problems with the use of swipe in my app . I have a div : <div class='box'>Content</div> I would create some actions when a user swipe left on the element, so i create this simple script: $( document ).on( "pageinit", function() { $( document ).on( "swipeleft", ".box", function( ) { alert($(this).html()); }); }); This is the onlyone script that work for me but when i swipeleft on the element the alert appeare three times? Why? Thanks for help !
jQuery and iframes
I am using a menu system that slides down from a button below the logo. Once the button is clicked, the iframe that contains the menu slides down and displays all the links. The iframe is coming from a file that is within my root folder. All the links within the iframe menu system, open in a new tab. My question. I want the original start page to close the iframe window after any of the links inside the iframe window are clicked. I can get this to work, if the menu system is within the start
DOM elements don't get refreshed in pageinit/pageshow event after navigating using $.mobile.changePage with reloadPage=true
I have got two html pages each containing JQM page. If I move from Page1 to Page2 (by clicking the button in the example using $.mobile.changePage with reloadPage=true) and then move back to Page1 then assigning any value to txt1 textbox (inside the pageshow event) doesn't work - textbox remains BLANK. However in the second trip (i.e. Page1->Page2->Page1 using button click) it works. Code example is here: Page1.htm <!DOCTYPE>
<html>
<head>
<title>Page-1</title>
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.3.1/jquery.mobile-1.3.1.min.css" />
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
<script src="http://code.jquery.com/mobile/1.3.1/jquery.mobile-1.3.1.min.js"></script>
Draggable position: Fixed
I'm trying to build an app with the function to annotate documents. I want to use draggable as marking points. So the user drags from the toolbar onto a document, new draggable is then created and so on. The problem is that when a document is being scrolled down the draggable elements always stay on the top (they should go down with the page). I've tried to remove fixed position on the 'drop' event but still not there Please look at my fiddle http://jsfiddle.net/sUPsk/3/ Thanks
error with my jquery file...
i am new to jquery and i download the jquery 2.0 for my personal development but when i called the src file....and input a jquery function it won't work please i need help.. this is the script code..... <html> <head> <title> testing jquery... </title> </head> <body> <script type="text/javascript" src="/var/www/jquery.js"></script> <script type="text/javascript"> //alert ('akosua'); //alert($('#happy').html()); $("#blink").hide(); alert($(:input).val()); </script> <div id="happy"> <p>haha</p> <p>hahaha</p>
jquery autocomplete with checkboxes removing as search
On a page I have a search (input) box and below a few checkboxes with labels. The idea is as people type the variable projects are searched and the results in the list are replaced with the result. this would probably mean losing the whole list and re-writing it here is the js i am using var projects = [{ value: "open", label: "Open", },{ value: "inprogress", label: "In Progress", },{ value: "reopened", label: "Reopened", },{ value: "closed", label: "Closed", },{ value: "another", label: "Another
Jquery Mobile and jquery ui datepicker
Hello, I am using jQuery Mobile 1.3.1 with jquery 1.9.1 and jquery ui 1.10.3. I am using a multi-page template for the application. On the index page I am loading the required JQM css and script files. Infact all my html pages have the same script and css files loaded. On a certain page I want to display a datepicker, so, on that page I load the jquery ui css and script files along with the JQM files. The datepicker shows up only when I give data-ajax="false" on the anchor tag the loades this page.
Current Market Share Numbers of jQuery Mobile
Good day! Currently, I am writing on a paper for my university and I am looking for current market share numbers of jQuery Mobile. Unfortunately, the only source I found on the internet is from 2011[1]. Does anybody have current numbers? Thanks! Greetings [1] http://trends.builtwith.com/Reports/Mobile-Web-Technology-2011/Mobile-Web-Technology-2011.html
can anyone tell me how to slide a login panel on page load.?....I m using jquery and i dont want any click
$(document).ready(function() { // Expand Panel $("#open").click(function(){ $('div#panel').slideDown("fast"); }); // Collapse Panel $("#close").click(function(){ $("div#panel").slideUp("fast"); }); // Switch buttons from "Log In | Register" to "Close Panel" on click $("#toggle a").click(function () { $("#toggle a").toggle(); }); }); I m using <script src="js/jquery-1.3.2.min.js" type="text/javascript"></script>
http://www.eljamesauthor.com/landing/
Hello, I'm working on a school project, and saw this landing page. Its perfect for my school project. I've downloaded the website, but it didnt work on my local disk(Probably because of php scripts). Is there any way to reconstruct this landing page in Jquery? Sorry for the bad English http://www.eljamesauthor.com/landing/
How to export data table in predefined formated excel ?
can anybody tell me how do i export my data table in to predefined formatted excel ?
Next Page