Is It Possible to Pass multiple Classes into "dialogClass:"?
I need to be able to put more than one class into dialogClass: . Is this possible? Thank you :)
Incredibly new to Javascript
Hello jQuery community! As the topic says, I am new at everything Java. Though I am in need of using Java, to make my costum made Website template to work as I want it to. Though I am unsure on how to activate jQuery on my www.one.com site. I know that I have to download the jQuery files, but where do I put them @ my filemanager? On sitepages or just at the root of my server? Also, there's a code component option when using something they call "Webdesigner" where I can type in Java/html codes, is
Parse XML via jquery on listview jquerymobile
hello i want load xml data into listview onmy jquery mobile using ajax but don't work here is html <div data-role="page" id="VHC"> <header data-role="header" id="head_home"> <div class="top_head_home"></div><br /> <div class="fot_head_home"></div> </header> <div data-role="navbar"> <ul> <li><a href="#home" data-icon="back">Retour</a></li> <li><a href="#home" data-icon="home">Accueil</a></li>
JQuery Mobile > Html to Html page change White flicker
In phonegap + JQM android application, if there is page change between html page , the second page appear after a white flicker. There is white screen before second page appears. data-transition="none" is used. Html page contains multiple divs having data-role="page" i.e. jQuery mobile multipage structure Is it a defualt behaviour in android webview or there is any solution which can be applied? Any help would be greatful .. Thank you.
javascript substract year from date
How to subtract 20 years from current date if i have date 17/04-2015 how to retrieve 17/04/1995
How to check if any child element of the parent element has a given attribute, say "xyz" in JQUERY?
How to check if any child element of the parent element has a given attribute, say "xyz" in JQUERY?
Hide and show textbox based on dropdown value
HI, I have a dropdownlist and a textbox (few other controls and button) in my aspx page. If the dropdownlist has value as "Other", then I want to show the textbox. On postbacks of other events, the textbox is getting shown. By default, on loading the textbox should be hidden and only when dropdown has value of "Other", then textbox should be shown. I have tried this code, but it does not work on postbacks: $(document).ready(function () { $(function () { $('#<%=txtEntityOther.ClientID%>').hide();
enter content to popup window
i seen this site. https://www.dataplus.co.il/home.asp. when i click on the middle image (with the arrow) on the page, there is a popup load with content. i need to add content (string) after the popup is loaded with insertBefore when i click on the image. how can i do this with jquery?
Works correctly in local environment, but not on server...
Ok, here's the issue. I have code that resembles this: $("a").click(function (event) { if (self.isLocked() == true) { event.stopImmediatePropagation(); alert("This record has been locked by another user."); } }); The code basically checks to see if a lock has been placed on the current page, and if it has, it basically makes the page read only, by disabling hyperlink clicks. Well, it works beautifully in Visual Studio when executed locally in Chrome. The problem comes when I pull up the page from
Jquery JSONP POST
I am a beginner in jquery and JSON below is the script I have which sends the JSONP request. It works fine but I am looking how to post the request so that the parameters are not shown in the browser's firebug. In firebug it shows POST as protocol and also the parameters $.post(postService,function(data){ // type: "POST"; var resText = trim(data.returnstr); if(resText.indexOf(':') > 0){
Pausing a function and then starting it again
Hi all I am running a function which is triggered by an audio track being played.(a rotating disc) I want to be able to pause it when the music is paused. The code is below $(document).foundation(); $('audio').on('playing', function() { rotateAnimation("img1", 10); });
How to get the state of a non-initalized accordion?
Hello, I have an issue with the Accordion jqueryUI widget. I'm appling several times over the same html element the accordion with different data loaded from Ajax data. The problem is that it only works the first time (when page loads). I need to apply the destroy() method to the accordion before reload it again to solve this, but the problem is that I before apply this method, $('#my-layer-id').accordion('destroy'); the accordion must be initialized, but the first time is not initialized. There's
Avoid conflict with JQuery UI and Bootstrap
In our project, we have been using jQuery UI components like calendar. recently we have implemented bootstrap in the project. So here comes the issue. Some of the components are conflicted by the two libraries. One of which is jquery calendar. bootstrap calendar & jquery ui Both are sharing the same object name. So there is a conflict. What could be the ideal solution to handle such scenario. I am looking for a solution which will provide developers to specify which component they are intent to
Dynamically build Accordion list with 1000's of values
Hi , I am exploring the option to build the list for accordian panel. From server side program, I intend to bring the data in the json and single key can have many values associated to it. {(A1:V1,A1:V2....A1:VN),(A2:V1,A2:V2...A2:VN).. For each unique Key, I need to find its value and take Key as Header and display it and then use values as list options and set a href to them. I will have pretty much around 60 unique keys and these 60 keys will have around 5000 values associated to them. Since this
Hide Div on main domain only
Hello, How do you hide a div using jquery on main domain (ex. www.domain.com) but show the div if it's on subpage (ex. www.domain.com/this-is-a-test.html)? Thanks
guys i have a string and i am unable to split it and display it indivisually so can you pls help out
var a_href=" "; $(document).ready(function() { var table = $('#contacttable').DataTable(); $('#contacttable tbody').on( 'click', 'tr', function () { if ( $(this).hasClass('selected') ) { } else { table .$('tr.selected').removeClass('selected'); $(this).addClass('selected'); a_href = $(table.row(this).data()); message(table.row(this).data()); } } ); } ); I want to break that a_href
Adding value to integer changes other variable
Hope I posted this to the right forum, as this is my first post here. I'm experiencing something weird with a piece of code I've written to enlarge a link as soon as the user scrolls past a div box. I'm using this code: http://pastebin.com/1rFCszi6 (Couldn't get the formatting to work here so it's posted to pastebin) This all worked until I added a feature on my website where the content can dynamically change depending on an option the user makes. It works like this: https://jsfiddle.net/1Lret7vk/4/.
Get external href attribute
When triggered, I wish to change the href attribute of a link in the current html file to be the same as the href of a link in another html file. So for example: Before trigger Some.html (current page) <a ID="something" href="somewhere.html"></a> SomeOther.html <a ID="somethingelse" href="somewhereelse.html></a> After trigger Some.html <a ID="something" href="somewhereelse.html"></a> SomeOther.html <a ID="somethingelse" href="somewhereelse.html></a> I've tried $('#something').attr('href', somewhereelse.html
Unable to set element offset positions
Hello, I am using the jQuery UI Draggable widget. Inside the 'create' event, i am setting the offsetTop and offsetLeft properties to some custom value, but these values are not being set and the element's position remains the same. Can someone suggest any way to do the same. I am posting my code: $(".myStyle").draggable({ grid: [198, 118], containment: "#containment-wrapper", cursor: "move", refreshPositions: true, create: elementCreated
Validate only if shown on screen
Hi all New to JQ as I normally use plain JS. But !!! am having a real pig of a job doing a validation on a web form, so wondered if someone could help. I have shown a simple example below. The problem I'm having is that JS does not change the display state in the html (checked by JS) so it fails to pick up on changes from style.block to style.none . Is there a way to do with JQ ??? Basically I only want to validate boxes in a div that is shown on the screen. Thanks is anyone can help. Here is an
The behavior of `$()` handling a jQuery object
I got a question here. (I've searched on StackOverflow, but found nothing helpful.) I noticed this paragraph in jQuery's API doc : Cloning jQuery Objects When a jQuery object is passed to the `$()` function, a clone of the object is created. This new jQuery object references the same DOM elements as the initial one. That means, if `$elem` is already a wrapped jQuery object, `$($elem)` will still unwrap-and-wrap the element(s) in `$elem` to create a new jQuery object, rather than returns `$elem` directly.
How to run function on load?
$('select[name="dropdown"]').on("change", function(){ if ( $(this).val() == "Hours" ) { $("#something").show(); } else { $("#something").hide(); } }); How can I start this function automatically, without having to change dropdown select? Thanks
How to round up decimal value
How to round up the given value. rate: 1.3599999999999999 should be the result: = 1.36 code var sales_interestrate = parseInt($('#sales_interestrate').val()); var sales_terms = $('#sales_terms').val(); $('#sales_interestrate').val((sales_terms * 0.02 )+1);
dropdown wont change the value
Hi, I have basic form which has computation, the problem my promissory note field wont change the value when I select a terms in my dropdown. please see fiddle http://jsfiddle.net/php988/h4Lezseb/ Help would be appreciated.
JQuery Selectable not selecting correctly with radio buttons
EDIT: Working sample code here. I have two selection modes which I can choose from using radio buttons: One that lets me select <td> elements colored green One that lets me select <td> elements colored blue Consider the scenario below to describe my problem. Click Check Out radio button. This means I can only select green colored elements. So far so good. Now I click Check In. This SHOULD mean I can only select blue colored elements. But I can still select the green colored elements (albeit only
Duplication Issues
Hi, I have very little JavaScript knowledge, I'm picking up a project where someone left off at...they used the draggable function to rearrange the table in a database. The issue is, the data is being duplicated in the database table on submit. JS: function submit(){ var orderID = []; var partID = []; var amtID = []; var carTypID = []; var cmpndID = []; var prodAmt = []; var prodDte = []; var seq = []; var perd = []; var strDate = document.getElementById('strDate').value;
Carousel plug-in?
Hi, I wonder if anybody has a recommendation for a good carousel plug-in specifically for jQuery mobile with possibly a working example? I have tried a couple but they don't seem to work very well. Thanks in advance and regards
Drop-down Menu and Slideshow don't like each other....
I've been teaching a web programming class and as an assignment had a drop-down menu coded and a slideshow below it. The drop-down menu seems to drop down behind the slideshow. I'm not sure about what it is I'm missing. Here is the code: http://liveweave.com/RxDrL1#&togetherjs=5HicrmHnJL
3D jquery libraries
Hi there, Are there any specific JQuery libraries that would help me create and manipulate simple 3D shapes (cube, cuboid, prism, cylinders, etc). No textures, just colours. The purpose is to present some maths concepts. It'd be good if it's possible to: - freely revolve such a shape (with a mouse or button) - create something like that http://www.webreference.com/3d/cararra/images/cararra_ch01_11.jpg and be able to move it. Is it at all possible in jquery? if not where do I need to look to start
Calling the destroy method does nothing for slider and control group
I'm following the example with the dynamically injected slider control posted here and I have the HTML code below. Now when I run $("#dynamic-slider-input).slider("destroy") I expect the control to be destroyed, but it's still there. The same happens for the control group control, but not for the flipswitch control. Am I doing something wrong? <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.css">
Generating jQuery mobile icon from an image
Hi, Is it possible to generate a jQuery mobile icon (normal as well as 2x) from an existing image? Or one must really need to build it using an image editor such Photoshop or any other. Thanks in advance and regards
How to put images in other place at canvas
In https://jsfiddle.net/alano/E8rrX/embedded/result/ is a example where i need to put (drag) the sun (for example) to any position over the map. How do this? Thanks for help.
Ajax response display
I am trying to style the response of my ajax call (xml) which is displayed in table. on applying switch statement to the table to change the style of some <td> which has the values; 'pass' ; 'fail'. I found out the last <td> of each result table is always not responsive to the the styling. switch (Valid) { case 'yes': $(".highlight").html('<img src="img/validgreen.png"/>'); break; case 'no':
Transform Board Game Pieces
Hello everyone, I'm trying to create a board game much like Monopoly using jquery ui drag drop. In my game a user can roll the dice and he can move his piece X number of spots from where he was. If his piece lands on any special spot which are squares with images of different items like jewels and gold coins as the background, his piece will have a different shape and color than it did when it starts out. At the moment I'm able to drag the pieces which are basically icons, from their starting positions
Jquery with NoScripts shows all pictures of the circle
Hello, I have jquery.js integrated into my website so that the header images of the website rotate as fade. This only works if the viewer's browser does not NoScript addon uses or scripts allowed. <script src="fileadmin/js/jquery.js" type="text/javascript"></script> <script src="fileadmin/js/jquery.cycle.all.min.js" type="text/javascript"></script> <script type="text/javascript"> $(function(){ $('#header').cycle({ // fx: 'turnDown' // fx: 'scrollDown'
Unable to refresh datatable
I have an html document using datatables and I have the following code: <div id="tablewrap" style="margin: 20px;"> <table id="mytable" class="cell-border" cellspacing="0" width="100%"> <thead> <tr> <th>Name</th> <th>Age</th> <th>Status</th> </tr> </thead> <tbody> </tbody> <tfoot></tfoot>
jQuery event listener-Continuous or Live
I have my input elements and their change events to handle some display. After loading page, When input values are changed through some other jquery functions...I do not have a way to know the values are changed. Please note that I can not change or do anything with that other jquery function which changes my input values. It is not in my control. Can we have something in jQuery API which continuously keep checking or listening any changes happened to the html elements through external/internal uncontrollable
smartboard plugin
question - is there a JQuery plugin that will allow the draggable clone to work on smartboards. My script sort of workings on smartboard but can be very glitchy Here's my script so far http://188.64.184.150/weatherMap/
Conflict between jquery and ajax (joomla
There is a website http://des-ign.ru/ The problem is in menu "Портфолио". My Isotop module is installed. jquery version is 1.8.3 (I tried to use 1.7, 1.7.1 and other version). By choosing any gallery the first time images are loading normally. But When I close the window of this gallery and open the other gallery, images do not load, (zoom). But when I refresh the page I still can open only one gallery. Can anyone help me in this?
Droppable must have one element to drop on, otherwise I cannot drop
Hi, I am using draggable and droppable in my application. Now I am using an UL for draggable and droppable. I have set some min height and min-width to both of them. Now in my droppable I have added a single line "Drop your records here" Now when I drag and drop an element I have to drop it exactly on the already written text. If i drop in the blank area below that the element does not gets added. How to do this? Please let me know if you did not get my question. Regards, Girish
Next Page