Cycle Plugin - 2 different Slideshows in one Container
Hello forum, I'm stuck on, I guess a simple thing - to explain my problem on an example, see exactly what I want to do: http://www.infinum.co/ I want to solve two different slider-effects, hopefully in one container - a background-image fade and a front image scrollLeft, both accessable by the same pager-navigation. I'm quite a newbie so this is hard for me. Status quo: I slide the whole full-width-container (background-image) to achieve the background-fade. The front-image scrollLeft is another
Jquery Ajax to pop3
Hello, Has anyone ever done any work with ajax to a pop3 server? I cant find anything related. Im hoping to develop a helpdesk ticket system. Im looking to download header info and create a screen with email info ... Thanx,
ajuda.............
Olá, gostaria de um código que a cada 1 minuto acontecesse isso: $.get('/profile?mode=editprofile&page_profil=notifications', function(datag){ var numero = $('.main-content:contains("Notificações") tr[class*="row"]', datag).size(); var topic1 = $('.main-content:contains("Notificações") .frm-form', datag).html(); var checa = $('.main-content:contains("Notificações") .frm-form .postdetails', datag); if(checa.length){$('#locv').html('<center><div>'+topic1+'</div><div onclick="window.open(\'/profile?mode=editprofile&page_profil=notifications\',\'_self\')"
layout broken when refreshing
Hello guys, I tried to load the news feeds from Reuter website to my jquery mobile application. Everything works fine except that when I pressed refresh button- F5 many times, the css layout of my page got broken. You can see the link to understand really what happened https://dl.dropbox.com/u/48168281/forum.png https://dl.dropbox.com/u/48168281/forum1.png Thanks for your consideration, Best Regards,
How to make a textbox accept only "c" and "d" letters?
I want the textbox to accept only either a "d" or a "c" nothing else. If a user enters an "a" or "b" it must be wiped. Also, is it possible to limit the textbox to English language only? I don't want the user to enter an alphabet in another language by mistake. I want it to stick to "c" or "d" and nothing else.
stopping the url bar from dropping down - i discovered a workaround
if you remove the "href="#" or href="myurl" from the HTML or dynamically generated listItems and instead deal with it in a click listener calling mobile.changePage, the url bar does not drop down. this is annoying to have to do this in code, but the dropdown is more annoying and ruins the feeling of an app. examples of workaround $(btnExercise).click(function() { $.mobile.changePage("#exercisePage", defaultTransition, false, true); }); when dynamically generating a list, if i use <a href="#"...>
Switch between tables hide/show
I am currently doing the below and it works...although I have two buttons.... I want to have ONE button that changes between tables and when it does changes the name on the button Is this possible? How do I combine into one button and then changes the text of the button? Thanks hope you can help.... <script type="text/javascript"> $(function() { $("#TableButton").click(function(){ $('.listRow1').show(3000); $('.listRow2').show(3000); $('.iconRow').hide(); }); $("#IconButton").click(function()
Selectors API Level 1
Hi, everybody. This is a site from Terra Informatica: http://www.terrainformatica.com/ W3C: “Selectors API Level 1″ is out but …Can somebody confirm if is useful for JQuery? Thanks.
Plugins stops working wehn upgrading from JQuery 1.8.3 to JQuery 1.9.1. Could someone, please, help me out?
Hello, Some time ago I created a Balloon plugin using JQuery 1.8.3. When I updated from JQuery 1.8.3 to JQuery 1.9.1 my plugin stoped working. The balloons do not show anymore. I went back to 1.8.3 and it works. I tried to understand what might be wrong but I can't find it. Could someone, please, help me out? This is my code: (function ($) { $.fn.Balloon = function (options) { var defaults = { balloon: "", class: "Balloon", click: false, id: "Balloon",
Autocomplete. Why wont you work?
I have this script $(document).ready(function() { $("#Search").autocomplete('loadxml.asp', { minChars: 2 , matchSubset: false , matchContains: true , width: 290 , max: 10 , scrollHeight: 600 , dataType: 'json' , parse: newParser , cacheLength: 10 , selectFirst: false , formatItem: function(row) { return row['value'] } }).result(function(event, data) { window.location.href = data.url; }); function newParser(raw) { var array = new Array(); var prodCount = 0; for (var i = 0; i < raw.length; i++) { if
ajax xml not loading initially online
Hello. I'm attempting to load data from an external xml file. This is my code that runs at the beginning. ///////////////////////////////// ////Retrieve level information/// ///////////////////////////////// $.get('scripts/level.data.xml', function (d) { $(d).find('Level').each(function () { var $level = $(this); if ($level.attr("Level_Number") == level) { var count = 1; //Cycle through die contents of level $level.find('Die').each(function
Why jQuery removes Margin when showing/hiding the element?
I have an element that has margin-top and border. When I call $(element).show() it doesn't use the element's margin and the it doesn't look good (in original fiddle If you click on the div that is after the input text the slide animate starts from top of the text input and you see a black line passing it and it's not beautiful! I want the animate start form the bottom of the text input.) This is my beta in jsFiddle. but The orginal is diffrent (I remove an element because the wanted element cannot
Can't bind in my own themes since yesterday
Hi all, i have made my own theme with the themeroller and bind it into my source successfully.: <link rel="stylesheet" href="/themes/MY_OWN_theme.min.css" /> <link rel="stylesheet" href="http://code.jquery.com/mobile/1.2.0/jquery.mobile.structure-1.2.0.min.css" /> This works fine in the past. Since yesterday it does not work without changing the code. The buttons, slider, ... are no longer displayed. Only if I ignore my own theme: <link rel="stylesheet" href="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.css"
Form submit empties DOM when using AJAX
Hi! I have an issue when using ajax on a self-submitting form. If I turn off AJAX, everything works fine. I can see the response is returning the HTML fine, but the DOM is emptied instead of inserting returning HTML. Anyone had similar issues? You can see it live here http://tinyurl.com/ak7kxx2 P.S: AJAX is turned off, so you need to use your firebug/dom-inspector to change the data-ajax attribute on the form from "false" to "true" before submitting.
Can a split listview be split multiple times?
Hello, I'm using jQuery Mobile 1.3.0 RC1. I see that a listview can be split according to these docs: http://jquerymobile.com/demos/1.3.0/docs/widgets/listviews/ under the Split Buttons heading. That example shows the list items split into two buttons. My question: Can the list items be split into multiple items of more than two? I want to have the "text part" as shown in that example, and then three buttons after it, instead of the one button shown in the example. Along with that, can I mix
$(#).css not working
It appears that the script code does not fire for some reason. Any ideas? css .isvisible{ visibility:visible } .notvisible{ visibility:hidden } Html (works) <div id="SectionLink" class=" notvisible"> @Html.Partial("Partial/_SectionDisplay", Model) </div> <script> $(document).ready(function () { $('#P1').change(function () { $("#SectionLink").css("isvisible"); (Does not work) }); }); </script>
Handling custom errors with $.ajax method that are passed back from server?
Hi, I want to pass back and handle a custom error message using the $.ajax method. I think I'm close but I'm stuck on parsing the error. My questions: ------------- 1.) How do I parse the [Exception] section below?. Shows it being returned to client but I was hoping it could be pulled out with a method on the XHR? 2.) Is there a way to set the "textStatus" or "errorThrown" with the custom error and use those on the client? Or are these read-only? On the server (Using ASP.NET) //Test to force
how to set active link highligh in jquery
hi , every one this vamsi i have problem in my project that is i want to highlite the active link ....so please help me as well as posible.. thanks, vamsikrishna
Problem with Tabs and SelectBox
Hi, i have following problem i think its only on Internet Explorer 9. Theres a jquery UI tab on my website with a form and drop down menus in it there will only show three letters of four letters. Example: <option value="herr">herr</option> <option value="frau">frau</option> Website will only show "her" and "fra" but only with Tabs. Example on web: http://citybreaker.square7.ch/1/
GET vs POST
I always believed that the difference between using GET and POST to submit data was that POST sent it as like an attachment to the HTTP header (like a file attached to an email) and GET put it on the end of the URL and used command characters so separate it from the rest of the URL and to separate key > value pairs. this meant that with GET the data could not contain characters used as command characters such as ? = and & also GET had a data limit. this means that GET can be used to attach data to
.js include
I am super newby in JS, and have a problem. I want to write a script in a separate file and link it to html, but it`s doesnt working. here is code <!DOCTYPE html> <html> <head> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> <script type="text/javascript" src="js/zenit.js"></script> <style type="text/css"> @import url("styles.css"); </style> </head> <body> ... </body> </html> its work well here - http://jsfiddle.net/corpz/q4RTT/36/
JQM 1.3.0. Panel
$('#panel').live('pagecreate', function() { $('#defaultpanel').panel("open"); .... } caused this: Uncaught Error: cannot call methods on panel prior to initialization; attempted to call method 'open' at http://code.jquery.com/jquery-1.8.2.min.js:2 Any suggestions? Thanks in advance
jquery hide and show problem
i am working on a project.In which I am displaying the transaction list.and if admin click on any of the row then the row will disappear and a new row with form to update that row will open with cancel button.Here admin can update or cancel .if he can cancel then orginal row will appear and form row will disappear.if i dont click on cancel and click on another row then update form row related to that row will appear and original will disappear.at the same time we can open the form of all form rows
timepicker problem
Hi, I've rolled my own theme, I've made a custom jQuery UI pack (date picker and time picker) and installed it all. I've made also 2 script, 1 for my date picker and 1 for my time picker. I disable all Mondays en Sundays and what specific dates, this part of the code is still working: $(document).ready(function() { var disabledDays = ["3-31-2013", "4-1-2013", "5-1-2013", "5-9-2013", "5-19-2013", "5-20-2013", "7-11-2013", "7-21-2013", "8-15-2013", "9-27-2013", "11-1-2013", "11-2-2013", "11-11-2013",
Object dispatcher
Hi there. How can I concat string and create an object??? Like we do in PHP. function createObj($id){ $str = 'controllers_config_' + $id; return new $str(); } $obj = createObj('structures'); How can I do this in Jquery or Javascript ???? I hope I've explained. Thanks
Width of text input in JQM 1.3.0 and android
With JQM 1.3.0 the text inputs are displayed different than in 1.2.0. This happens only on on Android (SGS2, Android 4.0.4), but not on my IPad oder Desktop Browser. In JQM 1.3.0 the input box is larger than the actual box you type in (for a better understanding see my screenshots). This is the HTML Code for the input: <tr><td> <label for="mph_father"><span lang="en">Height father (cm)</span></label> </td><td> <input type="number" onKeyUp="mph_calc()" maxlength="3" style="width:100px"
[solved] No icons on smartphones since 1.3.0.
Hello Community. Since the update on 1.3.0, there are no icons on the Smartphones. Tested with iPhone and Android, on the PC it works. It seems that the icons are not at the right positions...see it at the Attachements. With the older Version of jquerymobile it worked. What can be the Problem? Thank you so much...
clicking on image should take me to the previous div using query- help needed
Hi, my scenario is like, there is an image in a div: <div class="leftSelect" > <img class="pushToLeft" src="./images/arrow-sched-left-none.png" alt="arrow-sched-left-none.png"/> </div>this image is present in different parent divs with different ids. now i have below scenario: <div1> <div class="leftSelect" > <img class="pushToLeft" src="./images/arrow-sched-left-none.png"alt="arrow-sched-left-none.png"/> </div> </div1>similarly another div: <div2> <div class="leftSelect" > <img class="pushToLeft" src="./images/arrow-sched-left-none.png"alt="arrow-sched-left-none.png"/>
trigger("create"); works in jqm 1.2 but not in 1.3
I have got a dynamic injected form element and initialized by calling trigger("create"), the following code works in jqm 1.2 $("#rightpane").append("...form element code...").trigger( "create" ); alert("initialization completed"); but in jqm 1.3 it just hanged on that trigger("create") line and the alert code never executed nor the form element "JQMed". is this trigger("create") still supported in jqm1.3? or I have done anything wrong?
does work with jq and jq ui, doesn't with jq mobile
http://jsfiddle.net/tearex/JjRLf/2/ are these two frameworks that different? how to adapt the code to jqm?
Duplicate the functionality of AIOSearch.com a Multi-Tabbed Federated Search Engine using JQuery
Hi, I have a possible consulting project for someone who could duplicate the functionality of a site located at http://www.AIOSearch.com using JQuery and JSON. Some experts have told me that this can not be done using JSON and JQuery to access data using AJAX or JSON and JQuery. Here is a sample JSON query we would like to return into either the 2nd or 3rd Tab of a Multi-Tab Browser emulator like AIOSearch.com {"nodes":{"oemstrade":{"requests":[{"id":"B7AA61AB-A48A-45CD-8E99-EA646571CC7C", "name":"GRM155R61A105KE15D
Jquery value to java
HI Please somebody help with this :) I need get count all " texetarea" with attr "wicket:id" to some "var d;" and this "d" pass to java ????
Binding a treeview inside a context menu
function initTrees() { $("#mixed").treeview({ url: "source.php", }); } $(document).ready( function() { initTrees(); $("#myList UL LI").contextMenu({ menu: 'myMenu' }, function(asd,asd ,asd ) { }); }); <body> <div id="myList"> <ul> <li>Item 1</li> <li>Item 2</li> </ul> </div> <ul id="myMenu" class="contextMenu"> <ul id="mixed"> <li><span>Event 1</span> <ul> <li><span>Event 1.1</span> <ul> <li><span>Event 1.1.1</span></li> </ul> </li> <li><span>Event 1.2</span></li> </ul> </li> <li id="36" class="hasChildren">
datepicker focus steal (for lack of better word)
Hi I have an external js library that I use to create tooltips. That's all the library does. I generate tooltip content dynamically depending on items the mouse hovers on. On this tooltip I use an input field to allow the user to choose a date. For date selection I use datepicker. The problem: The tooltip works in such a way that if the mouse goes out of the tooltip area, it will disappear. So when the mouse is moved to the datepicker, the tooltip is gone and only the date picker remains. What I
Jquery lightbox with comment box
I got an light box coding in jquery it will show an image . now i need to alter the Jquery to add some comment box with the image . i tried to do that but comment box keeps on increasing i dont know where to insert the code any anyone help me with this (function(){ /* Private variables */ var overlay = $('<div id="galleryOverlay">'), slider = $('<div id="gallerySlider">'), comment= $('<div class="fb-comments" data-href="http://www.bluetopten.com" data-width="350" data-num-posts="10">'), prevArrow
jqm 1.3.0 slider refresh not working
hello everyone, yesterday i update jqm to 1.3.0, but I found that slider refresh does not work, my code: the js excuted but ui not refreshed <button id="change-button" data-icon="add" data-theme="d"></button> <select name="weather-option" id="weather-switch" data-role="slider" data-mini="true"> <option value="off" selected="selected">关闭</option> <option value="on">打开</option> </select> <script type="text/javascript"> $("#change-button").on("click", function(event)
how to bind focus and blur to a new element?
Hi, I am having trouble binding focus and blur to new elements. I have the following HTML code: <div class="ticket"> <input class="firstname" name="firstname[]" title="First Name(s)" value="" /> <input class="lastname" name="lastname[]" title="Last Name" value="" /> <a href="#"><img src="/images/admin/DeleteRed.png" /></a> OR <a href="#" class="add">Add more</a> </div> I then have the following jquery code attached to 'Add more' hyperlink: $("body").on("click",
can rows be labeled or titled with jqgrid?
Hi. I'm using jqgrid and want to make labels for the rows as well as the columns. In the options there is colNames but nothing like rowNames in the docs. Can the rows be labeled/titled also? Right now I see numbers for the row labels. I'd like to remove those and replace them with title words. Dan
How to save state of the page same on next run with movable and sortable items?
I have a page created with div.columns and div.items. All the items can move from one column to another and also you can sort the order of the items inside the columns (something like the portlets sample on jQuery demos). Is there a way so save the current state of the page layout so I can see the same layout when I (or someone else) opens the page next time?? If possible what solution you propose and how to do it? Some demo or sample link?
jQuery .match multiple words
Hello, I have a variable .match and it is working fine when I am looking for one word or two words next to each other. example one word: var car = !! entry.content.$t.match(/car/i); "This is a blue car" --> true "This is a red car" --> true etc... and "add" the color to my car: var car = !! entry.content.$t.match(/ blue car/i); "This is a blue car" --> true "This is a red car" --> false etc... But what I need the match of two separate words in a sentence like: "This car has the color blue" -->
Next Page