radio button selection not changing
I have the following script; <script> $(document).ready(function () { $('#radiobtnPanel input[type="radio"]').each(function () { if ($(this).is(':checked')) { $('#radiobtnPanel label').css('color', '#008000'); } else { $('#radiobtnPanel label').css('color', '#000'); } }); }); </script> Here is the markup from my aspx page; <fieldset class="registerradio">
Problem with jquery cycle.
I am having a big problem with a jquery plugin. I did one and it worked perfectly but when I did the same script in other html document it doesn't work like the other. I'm gonna put here the script for you. <link rel="stylesheet" type="text/css" href="index.css"> <link rel="stylesheet" type="text/css" href="style/estilos1.css"> <script type="text/javascript" src="style/jquery.min.js" ></script> <script type="text/javascript" src="style/jquery.cycle.all.js" ></script> <script type="text/javascript">
Urgent: Need a jQuery scroller for images that are hoverable
Hey all, I basically need to mimic this the scroller at the bottom of this site: http://hobsonvillepoint.universal.co.nz/ I'm using wordpress. I've looked on CodeCanyon and WP plugins but can't find anything like it. If anyone knows where I could get something like that, or would like to make one to get some cash - I'd be very greatful. Cheers
.ajaxForm VS .ajaxForm(.....).submit()
Hi all, I'm attempting to debug the .ajaxForm. I have the library jquery.form.js installed with jquery-1.7.1.js and jquery-ui-1.8.17.custom.js. When I use.ajaxForm(....).submit(), the form gets submitted, but .ajaxForm(.....) without submit the form doesn't submit. What's yet even more frustrating, is that even with .submit() in place, I can Not get execution happen inside .ajaxForm(....), regardless what I do.It appears to be I don't understand this well. I looked on line, the API description and
this line fails in internet explorer, but not firefox or chrome
The following line fails in iexplorer, but not other browsers: $(xmldoc).find("idea:not(idea idea)").each( function(index) { call stack is: dirNodeCheck Sizzle PSEUDO filter Sizzle find > processXML The error is: SCRIPT438: Object doesn't support this property or method jquery-1.7.2.js, line 5276 character 6
Open href on the same page
I'm creating pages dynamically through jQuery in listview from xml. Some page have links of a docs or images in it , when I click on the link it opens up in separate window. But I want to open it with the same page so I can go back main page or stay in that page. Any suggestions. Thank you in advance............
I'm trying to use a .get and it won't work right?
I am relatively new to jQuery but have used it a bit and trying something new but I must be missing some very basic point of it. .get() My html Code (Pretty simple, just a div) <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>jQuery 2</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <script src="http://code.jquery.com/jquery-1.8.0.min.js" type="text/javascript"></script> <script src="scripts/op2.js"
Having troubles having an animation change on click
Hey, still fairly new to jquery (and javascript in general), and I could use some advice on a (presumably) basic function I've been trying to write. The page runs a basic slideUp / fadeOut > slideUp / fadeIn animation on a delay, but I want the user to be able to skip all of that by clicking on the image (or pretty much wherever, I'm not picky at this point). The code I have so far is: $(document).ready(function(){ $('#wrapper').click(function(){ $('#wrapper').data('clicked', true); alert('this is
call secure web service
Hi, I am trying to call secure web service which require window intergrated authentication. if i disable windows authentication then it works fine. Once I enable windows integrated authentication and try to access using proxy I am getting "NetworkError: 500 ProtocolError". Any suggestion? Here is code $.ajax({ url: 'http://localhost/gis/resources/proxy.ashx?http://10.10.85.77/UserInfo/api/products/1', dataType: 'json', success: function(data) { console.log("Success
jQuery Cycle – Horizontal Slider – Animate all images and make them all visible
Hi all, can someone help me with the following? I want to create a slider as you see it on the mock-ups in the appendix. My problem is to make all the images visible and to center the first image on initialize. That's how it looks until now: http://jsfiddle.net/rayphi/rYS6t/ sorry for my english, I'm working on it
How do I modify a widget's options to display additional information?
I'd like to write a function to modify the jQuery UI MultiSelect Widget options so that the option selectedList displays the object's ID before the information it is programmed to display. SelectedList displays which items have been checked, and it's parameter is a boolean/numeric value denoting how many checked items to display. The widget also has a selectedText option, which is programmed to receive 3 arguments: the # of checkboxes checked, total # of checkboxes, and an array of the checkboxes
how to get the text from a autosuggestion box to the search box?
i have created a search box and added autosuggestion functionality using jquery and on click of the autosuggestion content it is redirecting to the respective link. But I need that on click of the autosuggestion content the text should go to the search box and on click of the search button it should redirect to the respective link as in google search box.If any suggestion please help.... I am pasting my code here.Can anybody go throug it and tell me the modifications as per my requirement. <script
how to insert data into Mysql database using jquery code.
hi friends, i have this table jQtable=$('#SaleTable'); jQtable.each(function() { var LastRow="<TR><TD align=center><INPUT TYPE='text' name='Slno' id='Slno' size=1></TD><TD align=center><INPUT type='checkbox' name='in_travel' ID='in_travel' value='in_terval' size=10></TD><TD align=center><INPUT type='text' name='date' ID='date' size=10></TD><TD align=center><textArea name='cities_visit' ID='cities_visit' cols=10></textArea></TD><td align=center><select id='reimbursement' name='reimbursement'><option
post php mysql utf-8 and russian
I have problem with Russian after jquery post using so here we go: 3 files INDEX.PHP <?php header("Content-Type: text/html; charset=utf-8"); include_once 'CDDB.php'; include_once 'db.php'; ?> <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>DEFAULT 112</title> <!-- jquery --> <link href="jquery/css/overcast/jquery-ui-1.8.22.custom.css" type="text/css" rel="stylesheet" /> <script src="jquery/js/jquery-1.7.2.min.js" type="text/javascript"></script>
How use jQuery with scriptmanager and updatae panel?
I have a form that contains a GridView and a DetailsView and nested update panels. I am going to manipulate some controls in DetailsView after postback but it seems that "$(document),ready" does not work in this situation and I cant handle elements that are present after "ajax" postback. I need that jQuery waits like what happens in "$(document),ready". Does anybody know any solution for this situation? I would be grateful to know.
Get data using attribute
Hello, I am new to jquery. I am using jquery to get data in sharepoint I am referencing the jquery-1.3.2.min.js in my code I have declared var colN = ""Project Title""; (----- error here) I am using $(this).attr(colN); On the above line I am getting error error: the server name cannot contain the ' ' characters Project --> <-- Title I think space cannot be used like in my case its Project Title. If so how can I replace that Please help me how to resolve this Thanks
bind() and on()
Hello! This is my first post. I'm new to jQuery and I'm learning from thenewboston tutorials made by Alex. I'm little bit confused with bind() event What is it used for? To "bind" two (or more) different events and create same operation or something else? I check documentation about it but don't really get it however I found that we should use on() instead of bind() because it connect different events together like bind and live. Also can you guys give me a good tutorials about jQuery and maybe a
focus and focusin
What is a difference between those two (focus() and focusin()) Please give me a easy example Thank you
Auto Complete
I need a plugin that load from a xml file some info like: <title></title> <image></image> <link></link> And use in a auto complete search box. When the user select one we will be redirect to www.exemple.com\link and if not exits the page will go to other page. Can anyone help me with this?
Problem using jqGrid with ASP.NET form application
I am wondering if anyone here has successfully used jqGrid in asp.net form application. I am following the example here: http://praveen1305.blogspot.com/2009/05/jqgrid-with-asp-net-web-forms.html I have a button on the web form. Upon clicking, I try to load data into the jqGrid. I have my web method in Default.aspx.cs (NOT in a web service): [WebMethod] public static MainGrid GetDataForJqGrid(string sidx, string sord, int page, int rows) { // Contruct my MainGrid object and return it.
IE9 - Background White on Transparent PNG's - JQuery Cycle
I am using the JQuery Cycle Plugin, but I am experiencing a problem in IE9. Everything seems to be working until the page is refreshed or a link on the page is clicked, at which point the transparent PNG image is replaced by a white rectangular box (the exact dimensions of the PNG image). Strangely, this only happens if the refresh conincides with an image cycle transition. If the refresh takes place whilst the image is still (not scrolling to the next image in the sequence), then everything
image z-index at hover on a link
Hi, I have the below code, I want to have some images that each image is on the other image whan hover on a link it's specific image zoom in and it's z-index becom the higher one. and the opacity of other images becom lower. I don't know how should i set z-index at js. my code is below: <script type="text/javascript"> $(function () { $('#left a').hover(function () { var indeX = $('#left a').index(this); $('#right img').eq(indeX).stop(true, false)
Apply events to many jQuery objects
Hy all, here is my question. I've declared three jQuery objects: var a=$('.first_selector'), b=$('#theID'), c=$('<htmltag/>');I often set the same css for each one, so i wonder if there is a way to select all of these and do a single call like $(a,b,c).css({ rule: value});Unfortunately the example above apply the rule on the first element only. Any ideas?
FULL SITE LINK OPTION FOR MOBILE USERS
Hi, I created a site with the responsive design to automatically adapt to mobile devices using the @media screen and (max-width: 480px) {} element. The problem with responsive web design is the link to the Full Site for mobile users. To try to solve it with Jquery, I created a trigger button (id="fullsitetrigger"). The button will will reload the site, toggle or hide the @media screen and (max-width: 480px) {} element in my CSS file and save a sort of cookie so users are not redirected to the mobile
Jquerymobile Wordpress Theme - Paid Work
Hey, I saw a jquerymobile splitview plugin: http://asyraf9.github.com/jquery-mobile/#aboutus I really like how the navigation is on the left and content on the right. I want to implement this into a wordpress framework/theme. Let me know if this is possible and how much? payment will be paid via paypal. thanks,
Facebook Like and Tweet Buttons
What's the best way to add Facebook like button, Facebook comments and Tweet button to a jQuery mobile site? I tried many different options but in all of them, plugins work perfectly when you access page directly, but they are broken if the page is called from another one by ajax. I tried recreating them after pageinit or after pageshow, but it didn't work.
get children issue with ie 8
Hello, here is sample code, $(response).find('result').each(function(){ $(this.children).each(function(index) { showServiceRequests(this.children[9].innerHTML, this.children[7].innerHTML, this.children[16].innerHTML); }); }); red line work in firefox and chrome but its return 0 in internet explore(this.children). Any workaround? Thanks, VJ
Grab id from url
I was seeing if someone could help me... I would like to grab an id from an <a> anchor tag and post the data to another file and populate a div area with the data requested. Initially I have a while loop in php that prints line items... I have an anchor that will print for each item. When the user clicks on the link, I have it opening a modal popup window to show the data grabbed from the other file. How do I grab data from the anchor tag?? I tried using the value attribute in the <a>
jQuery.AJAX is sending POST as GET
I have a number of helper functions on my website to process forms and submit to a web service running on another system. Despite changing method types, I can't get the requests to go through as POST, or PUT. I'm sure I've set the option correct, but nothing has changed. function sendRequest(path, requestMethod, parameters, callback) { var requestURL = serverBaseURL + path; console.log("Sending request to "+requestURL); console.log(parameters); var requestSettings = { type: requestMethod, data: parameters,
pop up
hello all listen i make pop up using jquery but now i want this pop up close window that open again affter 10 sec any one can guide me for do that صور افلام اجنبى افلام عربى اغاني شعبي
Need Jquery Mobile pro - Pay job
I need to hire someone for a quick job. Doesn't involve any server side coding. I just need to get this template done asap. Includes: Google map Streeet view some html5 audio Image gallery iphone detection which produces different function You must own an iphone and android device for testing. Thank you, Please leave me a private message.
data-autodividers help
I'm using 1.2.0 and am not able to get the autodividers to group my data correctly. Instead of alpha dividers for all A, B, C, etc., each item in my listview has a divider. My code for displaying dynamic data in last name, first name order: <tr id="row<%=(i+1)%>" > <ul data-role="listview" data-inset="true" data-autodividers="true"> <li><a href="/members/mobile-member.asp?member=<%=aMembers(0,i)%>"><%=aMembers(2,i)%>, <%=aMembers(1,i)%></a></li><!-- last name, fist name -->
can't set a radio button with a variable that changes
I have a Dialog box were a user can make choices. With each change in choice, I fire a function to initialize several variables. Most work, but I can't set the radio button via the initialize function. What do I need to change? Edit - I also tried .prop('checked', true); with no result. Simplified, the code is: var countrySelected = "US"; // a global variable that changes function initialize() { $('input[type=radio][name=country][id=countrySelected]').attr('checked', true); //did not work
Footer "data-id" issue (Fixed & Persistent footers)
Footer "data-id" issue (Fixed & Persistent footers) Hi, i just ran into something strange!? Making the footer persistent between transitions works great, except that every time i switch back and forth between pages i get a "0" zero written to the page content. Here is the code... page 1 (zzz1.html) <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0" name="viewport" /> <title>Mobile index</title> <link href="jquery.mobile.theme-1.1.1.min.css"
preventing multiple events with .off().on() vs .one
Since jQuery mobile keeps pages in the dom and I have found that my click events were getting attached multiple times. So I started putting .off before each .on so that I would make sure that each was only called once. However I wonder if using .one is better? For example which is better? $(document).off('click', '#barcodescanner').on('click', '#barcodescanner', function() { or $(document).one('click', '#barcodescanner', function() { I personally like .one because it looks cleaner. Any thoughts?
How to handle nested each with input type in Jquery
I tried to look after a similar problem but couldn't find any here. So here is my problem. I have a structure with multiple div. Each div have a class name 'testClass'. I need to fetch the attributes of all input types, button. Here is my code, <body> <div class="testClass"> /* Few Code */ <input type="text" id="txt1" /> <br/> <input type="text" id="txt21" /> /* Few Code */ <button id="btn1">Button1</button> </div> <div class="testClass"> /* Few Code */ <input type="text" id="txt2" /> <br/> <input
slider rel value
Hi, a have problem to load 'data-rel' value from every slide of image. In this code rel value is loaded only from first image. <script type="text/javascript"> //<![CDATA[ ; $(function(){ $('#slides').slides({ preload: true, preloadImage: 'img/loading.gif', play: $('.slide').data("rel"), delay: 500, hoverPause: true, animationStart: function(current){ $('.caption').animate({
IE7 throwing "stop slow script running" error with all versions of JQM
We stripped out all functions running on mobleInit and page init, removed all extensions, so we only had jQuery and JQM loaded. When transitioning from one page to another on form post, we see the "stop slow script running" JavaScript alert thrown by IE7 on desktop. On a device (Windows phone with IE7, iPhone 3G Safari, ) the page hangs and doesn't transition. The ui-loader is displayed, (but the animated GIF is stopped) I see that the results page is passed to the browser (via Fiddler) but not displayed.
Setting the theme of a checkbox on page load?
Looking at the documentation it states that you can set the theme of a checkbox using; $("input[type='checkbox']").checkboxradio({ theme: "a" }); However when I try and run this code inside the document.ready function it doesn't set the theme? I can set a buttons theme using; $('a').buttonMarkup({ theme: "a" }); Does anyone have any idea what I'm doing wrong? Thanks. P.S. I've tried adding thsi as well which didn't help $("input[type='checkbox']").checkboxradio('refresh');
Disable all jQuery Mobile except for specific events
I'm developing a WP Touch theme and need to add some specific touch events which are not available. I've used jQM in the past for this same event but the site was pure jQM so there were no conflicting scripts. In this instance, when I enable jQM all kinds of conflicts are created, like this error when I click the home link in my header: Uncaught SyntaxError: Unexpected end of input. So I'm wondering if there is away to enable jQM only for this specific touch event? Or is there is any best practices
Next Page