• Can not show collapsible in pop up

    I want to show json data in popup then it show collapsible. But It doesn't show, help me please. //Show Detail in java script $("#txtDetail").append("<div data-role='collapsible' data-inset='false'><h5>" + val.name + "(" + val.notable.name + ")</h5><p><table cellpadding='1' cellspacing='1' border='0' style='font-family:tahoma;font-size:8pt;'><tr><td><img src='https://usercontent.googleapis.com/freebase/v1/image" + val.mid + "' alt='' /></td><td><span width='80%'>" + DecArticle.property["/common/topic/article"].values[0].property["/common/document/text"].values[0].text
  • jQuery cross browser compatible?

    Hi I have to use the following to get highcharts library working.any ideas? <!--[if IE 8]> <require type='script' src='js/jquery-1.4.2.js' /> <![endif]--> <!--[if !IE]><!--> <require type='script' src='js/jquery-1.8.3.js' /> <!--<![endif]--> After doing the above, it worked in both the browsers.
  • [jQuery] tabs collapsed by default on open

    Hello everyone. Is there a way to have tabs created in jQuery that are collapsed when the page loads? I use this: $(document).ready(function(){ $("#tabs").tabs({ collapsible: true }); }); to allow the user to click on the tab to collapse it once the page loads. But how do I get the tab content to be hidden to begin with? Thanks very much, Robin HTML for TABS <div id="tabs"> <ul> <li><a href="#fragment-1"><span>One</span></a></li> <li><a href="#fragment-2"><span>Two</span></a></li> </ul> <div id="fragment-1">
  • navigation process in mobile web application with phonegap

    hi all, i am looking solution for navigation in mobile web application that are compatible to mobile gap. thanks
  • fixed distribution of radiobuttons across defferent smartphone screen resolutions

    I need an eight element radiobutton to always show as five buttons in one line and 3 in the next. When it is unregulated, all depends on screen resolution, so that you get in the first line as many as will fit there - even all eight. How to prevent this? The most barbarous, but effective way I can think of is table, but I would rather stay away. Grids seem too simplistic and would work with buttons rather than a set of radiobuttons. Is there a neater, more obvious solution?
  • script not working in 1.8, but same working in 1.7

    $('#a a') .css( {backgroundPosition: "-20px 35px"} ) .mouseover(function(){             $(this).stop().animate({backgroundPosition:"(-20px 94px)"}, {duration:500})         })         .mouseout(function(){             $(this).stop().animate({backgroundPosition:"(40px 35px)"}, {duration:200, complete:function(){                 $(this).css({backgroundPosition: "-20px 35px"})             }})         }) Anyone please tell why? Thanks
  • PC screen issues & different looks at iPad versions

    Have getting difficulty to fix large screen width of pc and also seems variant look on iPad versions.
  • There should be an event called htmlToggle.

    Hello, there should be an event called "htmlToggle" It should work like this: $(".arrow", this).htmlToggle("&darr;", "&larr;"); It just toggles the html text, from &darr; to &larr;... Just like toggle() but with the html text. Thanks, Zerak. GamingToplist Founder
  • How to grab css values from html code inside a string?

    Hi, I am using Ajax and PHP to send back an array of divs generated.  The divs  css height value is auto. So, what I wan to do is grab the height value and then adjust the top value. How can I do this? ajax will return a jason to javascript.  I know I can access them like an array. However, I can't figure out how to grab the css values?  Also how can I get the height if the css  height value is auto? Is there a way to figure out the height? I need to know the auto created height value the browser
  • Transition error in Android ??

    I have made an application by using PhoneGap + JqueryMobile but when testing it on a Samsung S3 with android 4.1.1 the transition is not smooth. I have configured the transition to be 'slide' but the app blink the white page one time before it slide . I don't know how to fix it. Please help me !!
  • javascript debugging file

    i am trying to implement the carousel of ibm can you guys tell me what js file they have used for carousel i tried debugging using firebug but could not find out http://www.ibm.com/us/en/ providing the script tags below <title>IBM - United States</title> <script src="//1.www.s81c.com/common/js/ipadpilot.js">//</script> <link href="//1.www.s81c.com/common/v17/css/www.css" rel="stylesheet" title="www" type="text/css"> <script src="//1.www.s81c.com/common/js/dojo/www.js" type="text/javascript">//</script><link
  • AppendTo and "refresh" advice

    Hi I am reading a csv file with php / ajax and creating a list from the file. That works fine. I am then using: AppendTo  to push the html I've built into the <content> At this point it breaks, as I now know due to the order in which JQM builds the page Is there some form of "refresh" I need to do to make JQM "see" the html and respond accordingly? In action >>>>  http://glengilchrist.co.uk/csv/table2.html Initally I thought I needed a  $('#buglist').listview('refresh'); << but a) I am not sure where
  • Noob question - read from csv into nested list (I think)

    Hi all I am trying to build a simple app to load csv data from my server into what I think is called a nested list.   I initially want to display data from only one field, which will slide across into the full record when selected. I can read the csv with some php and ajax to output a table:  http://www.glengilchrist.co.uk/csv/table.html   What I am looking to do is to convert this into something That looks: Screen 1 Staphylococcus aureus (MSSA) Staphylococcus aureus (MRSA) Streptoccous pneuoniaeA
  • [New] Can you explain how and where to edit this code?

    Looking to make a directory type site, and I've never worked with jquery before other basic languages yes. Example of the code: http://razorjack.net/quicksand/ What I want it to do is instead of the organizers "Applications" and "Utlities" i wanna change them to something else and add more. I also would like to add more and edit the things that go in each, and would like to make them clickable and change the icons. I am just not sure which parts of the code do which, and leads would be appreciated. 
  • Custom build of $.Deferred, $.Callback, $.ajax

    I'd really like to just have these from jQuery. No Sizzle, dimensions, etc. Anyone know how to do this? I haven't found an independent library or libraries that combine promises with ajax and treat deferred resolution as jQuery does (a non-promise value treated the same as a resolved promise). Anyone have ideas? Thank you!
  • Problem with data-iconpos="notext"

    I have a toolbar with some buttons in it. They are vertically centered when there is text next to them, but when I put in the attribute data-iconpos="notext" the button is no longer centered vertically. I know I can manually change the CSS, but before I did I wanted to check to see if this was intended or not. Here is a fiddle to show what I am seeing. http://jsfiddle.net/ryanmc/WpgCj/
  • How to prevent the anchor tag to go to its URL

    Hey guys i have an anchor tag in .html page <a id="add" onclick="javascript:openPage()">yes</a> this openPage function is on another .js file and i i also added a code for preventing the the anchor thag when cliked to go to the url but do its task, var openPage=function(){ location.href="http://localhost:8080/magento/index.php/checkout/cart/add?"+id+"&qty;=1"; } $('add').bind("click",function(event) { event.preventDefault(); /*var url = $(this).attr("href");*/ var url="http://localhost:8080/magento/index.php/checkout/cart/add?"+id+"&qty;=1";
  • I like to give two spaces between the options and the paragraph when shown in a mobile browser, please look at the code and help me. Thanks

    <div data-role="content" class="content"> <form id="myform" action="" method="post"> <div data-role="fieldcontain"> <fieldset data-role="controlgroup" data-type="horizontal"> <legend>Where do you live ?</legend> <input type="radio" name="radio-language" id="radio-french"> <label for="radio-french">French</label> <input type="radio" name="radio-language" id="radio-italian" checked="checked"> <label for="radio-italian">Italian</label> <input type="radio" name="radio-language" id="radio-greek"> <label
  • Problem with jQuery UI tabs and base tag

    Hey, I have a problem with the tabs widget from the newest jquery.UI (Version 1.9.2) when my document has a <base href=""> tag. With the previous versions (1.8.23) it worked well. I did a little research and the problem accours in the isLocal() function where the link href is compared with the location.href. The link href has the base tag followed by the tab's id which should be opened. When we set the complete link as href (http://myserver/mydirectory/myfile#tabs-1, etc) it works again, but when
  • refresh page accordion

    Hi every body  i have still a problem with my jquery accordion i would like to refresh my page each time that i click to open one div in my accordion. i texedt with this code , but don't work.  i don't know very well about jQuery ui. well i testied with some code to gave some body in this forum. $(function(){ $( ".accordion" ).accordion({ fillSpace: true }); $(".accordion").accordion({ header: "h3" , active: 4}); $('a[href*=#]').click(function() {     $( "body" ).accordion( "refresh" ); }); <body>
  • Jquery not worked at page load

    Hello friends,  I want to disable false my dropdown at page load i write it in jquery page load but not worked please suggest me where it is wrong my query mention below   $(document).ready(function () {   $('#<%=ddldropdown.ClientID%>').attr('disabled', false);  });
  • How can I change the data-icon depending of the network

    Dear All, In my Application, I am testing the network. If the GPS if active, I want to have the check icon and if not I want to have the delete icon. I craeted that function. I do not understand why the icon is not change depending of the connection. The text() works (see teh commented code) but the icon does not change. I tried with button('refrresh') and I also tried with trigger('create'). But in both case, the icon is not changed. What suggest you to me ? Cheers function network(status){    
  • Newbie seeking feedback

    I have just created my first jQuery / jQuery UI project, an animation showing two programs that share information via a common database. The animation works, but I would appreciate feedback on the way I've implemented it. Is there another approach that would be more elegant, more maintainable, etc? You can see the project here -- just click the play button: http://greendept.com/my_first_jquery/my_first_jquery.html Basically, in the html I just used a bunch of divs with ids. ("View source" to see
  • Swipe like summly ios application

    hi everyone, how can i create swipe effect for my app like summly application. as u see in this application user can swipe to up,down,left,right, cheers.
  • e.data syntax problem

    Hi, it’s always me with those e.data syntax problems :-) I am trying and searching in the web for weeks now, but I cannot find a solution which in my eyes got to be very very simple. I currently use e.data in situations where I bind it like:  $(window).on('resize', {zoom:2.4}, size_element); function size_element(e) { alert (e.data.zoom); } So far, so good. Always works fine. But what if I wished to pass e.data in a situation as: function example(){ ...    size_element(e); ... } or: $(document).ready({zoom:2.4},size_element);
  • PRBLEM IN JQUERY alert() AND OTHER STUFF

    Hey every one!! I have a html page having to anchor tags and a script which gets url variable and one of the anchor tag work with that variable and other anchor is just like a back button.the issue is the alert function in the script is not working i.e it does not alert any thing secondly the 1st anchor tag “yes” is not working the way it should work means I am unable click the “yes” tag and when I refresh the page the cancel button stops to work too.i can not figure out what I am doing wrong. The
  • Several versions of jQuery and jQuery UI on the same page

    Hi I have selected a number of plugins (jqGrid, jqPlot, ...) These plugins use different versions of jQuery and jQuery UI. On the same page included several of them. The problem is that not all of them work properly. How I can do? Kind regards Justo
  • how can I bind event on the element in iframe.html

    It is does work: parent.html $(document).bind('sap',function(){}); iframe.html parent.$('iframe').trigger("sap"); This is does not work: parent.html $(__iframe[0].contentWindow.document).bind('sap',function(){}); iframe.html $('button1').trigger("sap"); how can I bind event on the element in iframe.html,Tks
  • Help with Jquery updating labels after a title match

    Hi guys. I have some code below which works brilliant for title matching products from manual input: $(document).ready(function()  { $(".course").autocomplete("get_title_list.php",  { width: 260, matchContains: true, mustMatch: true, selectFirst: false }); $(".course").result(function(event, data, formatted) {  $(this).next(".course_val").val(data[1]); }); });And the update part : <input type="text" name="course"  value= "Find Title In DB" class = "course"/><input type = "text" class ="course_val"
  • Does $.post() NOT convert json string to json if the response Content-Type is "application/json"?

    I'm a long-time programmer with detailed knowledge of Javascript, but not a lot of practical experience with it.  I'm going through "Pro JQuery". One of the first Ajax exercises in the book doesn't work correctly, because the author assumes that "$.post(url, data, func)" is going to automatically convert the response to a Javascript object, under the implicit assumption that the response's Content-Type is "application/json". It seems logical to me that it would, but that's not happening.  It appears
  • What is wrong with this script?

      I am trying use a form validation script that seems to have a "small" problem that is taking taking big to solve.   When, I load the html page, i get a PAGE LOAD ERROR and the validation will not work on form submit. However, if I REFRESH the page, the form validation starts to work. This behaviour happens on chromo but the script does not work in explorer with or without refresh. Although, I do get the page load error as well.   I am guessing the problem is with main.js but I cannot seem to find
  • Portrait mode only

    Is there a way to let people only use portraitmode? When they are rotating their screens to landscape, the site/app should still be displayed in portraitmode instead of landscape.  Are there any possibilities to do this?
  • Issue with jquery.forms.js IE only works first time

    I am trying to upload a file and it works in chrome but only works first time in IE.   $(document).ready(function () {          $('form').ajaxForm({         url: 'TestEventHandler.ashx',         type: 'POST',         success: function () {         },         error: function (jqXHR, textStatus, errorThrow) {             debugger;         }     });    });        <form id="form1" action="TestEventHandler.ashx"  method="post" enctype="multipart/form-data" >         <input type="file" name="myfile"/>
  • embed jquery ui datepicker

    Is there away to make the datepicker embedded in the page rather than a popup? Thanks David
  • cant access video "duration" property

    Using the code below I am not able to access the "duration" video property . alert($("#videoScreen").attr("duration"));Im able to access all of the properties and methods of the video element. Please comment. Thanks
  • Picture hover linked to menu link hover in jQuery

    I have the following code on a site, but it doesn't work yet. I think I am close, but the classes of the <a>links are not getting the Active state when hover. It is the meaning that the hover over <picture> gives the corresponding hover over the name link and vice versa. Can anybody help me out, please? Thanks in advance! <script type="text/javascript" src="jquery-1.6.1.min.js"></script> <style> a.MedewerkerPicture Active   {     color: red; } a.MedewerkerName Active   {     color: red; } </style>
  • jquery dialog appears more than once in jquery tab

    I applied jquery.dialog in the content ascx pages and it works fine. But when I have mutiple content pages using jquery tab control, when the popup comes and dragged to left or right of the screen, it get doubled.I have unique id in each content pages for dialog box.Please let me know where my problem resides. Following is the code which I used in each content pages: $("divModelPopup").dialog({             width: 450,             height: 200,             modal: true,             title: 'title of
  • ReferenceError: function not defined... unable to fix.

    hey guys!!  i am having a ReferenceError:openPage() is not defined in my error console of the browser.i can not figure it out. help me please.the code is: <!DOCTYPE html> <html> <head>     <meta charset="utf-8" /> <link rel="stylesheet" href="./style.css" type="text/css"/> <script language="Javascript" type="text/javascript"> function getUrlVars() {     var vars = {};     var parts = window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi, function(m,key,value) {         vars[key] = value;     });
  • Adding alt tag to jCarousel images?

    I am using the jCarousel slider, and I need to make it so that the "alt" attribute is enabled.  What file do I go to, and what do I edit to make this happen?  I am very new to this, so please be as detailed as possible.  Thanks in advance!
  • css or javascript calculation

    Hi all, in our app, we were first used css media queries for different devices. we had numerous problems, when we fixed for a particular device, it upset the other 2 devices... then we decided to calculate dynamically the control sizes, this somehow fixes the problem, but what is the JQM recommended usage ? media query or javascript ? regards
  • Next Page

  • Announcements

  • The Basics of jQuery AJAX

    A step-by-step tutorial for those new to jQuery and wanting to use AJAX in their projects. Includes valuable information about troubleshooting using the console and understanding the request / response. http://jayblanchard.net/basics_of_jquery_ajax.html
  • jQuery Conference 2010: Boston Announcement

      The jQuery Project is very excited to announce the jQuery Conference 2010: Boston on October 16-17, 2010.  The conference will be held at the Hilton Boston Logan in Boston, Massachusetts.  The best part of this announcement is that Tickets are on sale now!  This venue is the largest that the project has worked with to date (Harvard Law School in ‘07, the MIT Stata Center in ‘08 and Microsoft New England Research Center in ‘09) and we expect to sell out very quickly. A brief synopsis of some of