Complex query of tables within tab set
Keeping this explanation short I have in my project a tab set that contains one table in each tab. What I want is to access the input field values of each table. The output should identify the table using its id and all using their id and value if the input has a value. Thanks for the help having trouble getting my head around jQuery on this. The output should be: " {'table_name', 'attribute_name', 'attribute_value'}, {'table_name', 'attribute_name', 'attribute_value'} " <div id="tab_sua_attrib_dlg"
hey
<!doctype html> <html> <head> <meta charset=utf-8/> <title>AJAX: load</title> </head> <body> <a href="about.html">Learn More About Me</a> <br> <a href="contact.html">Contact Me</a> <div class="wrap"></div> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script> <script> $('a').on('click',function( e ){ var href= $(this).attr('href'); /* its get the href to all links*/ $('div.wrap').load(href +'.container'); e.preventDefault(); }); </script> </body> </html> error:
using jquery whith the comment system
Hi, guys i have a problem in my Jquery 1.8 with my avatar picture when i include the jquery file into my page the profile picture dont upload and if i drop the link it upload and i need to user this jquery for the comment system heeeeeelp please
How do I parse images from an RSS feed into a jquery page
I have an rss feed- http://api.flickr.com/services/feeds/photos_public.gne I'm trying to display the images into tiled divs which link to other pages on my site, a bit like is done on netflix
Changing class has no effect on selectors...
I want to change the behavior of a button by changing the class. On the first click, I see the alert" Step1: Class starts as Step1" as expected. On the second click: "Step1: Class starts as Step2" The class changes, but the selector seems stuck. What am I missing here? Thank you! $(document).ready(function () { $("#GoToNextStep").addClass('Step1'); $(".Step1").click(function(e) { alert ('Step1: Class starts as ' + $(this).attr('class')); $(this).removeClass(); $(this).addClass('Step2');
Anyway to change settimeout to infinity or something akin
Hello, Im trying to change a jquery plugin that uses a settimeout. Is there anyway to change the settimeout time value thingy to ignore the value. If I try to take it out I basically have to re-write the whole plugin ...Trying VERY hard to avoid that ...<lazy></lazy>
radio button function using list
I'm using a list for selecting music genres. My function is this:- $(document).ready(function(e) { function checky() { $(this).children("span").children(".icon-checkmark").stop().show(); $(".genre").not(this).children("span").children(".icon-checkmark:visible").stop().hide(); $(".searchfield").val($(this).attr('class')).keyup(); } function checkn(){ $(this).children("span").children(".icon-checkmark").stop().hide(); $(".searchfield").val($(this).attr('class')).keyup(); } $(".genre").toggle(checky,
Alternate way to create drop down
I am making a we page in which I have to dynamically add text fields and drop downs using html5 and jQuery. In the drop down i need two options i.e text and again drop down which will be later shown as preview . I got the code for that but I am stuck with drop down because i need alternate keyword for drop down. Please help me if u can var fType = $("<select class=\"fieldtype\"><option value=\"checkbox\">Checked</option><option value=\"textbox\">Text</option><option value=\"textarea\">Paragraph</option><option
Migrate jquery 1.6.2 to jquery 2.0.3 for wolfcms
Hi all ! I want to migrate jquery 1.6.2 to 2.0.3 in wolfcms. Being a big newbie in jquery I solicits your help because the community does not want to migration wolfcms yet. http://www.wolfcms.org
How to optimize the code?
My code: <div class = "Dollarmax">$99,999,999</div> var dollar= $('.Dollarmax').html(); dollar=getdollar(dollar); function getdollar(value){ value = value.replace(/\$|\,/g, ''); value = value.replace('$',''); value = value.replace('"',''); return value; } How to optimize(dollar variable code) the above code in single line?
adding div after div
<div class = "inputText">Show details<input type = "text"/> How to include the following div after inputText(above) div? <div class = "Texts">Show yaer<input type = "text"/> We need to use class or Id for placing the div? Is it possible?
jQuery 1.9 attr() no longer returns current input value and instead returns old (default) input value
It appears that under jQuery 1.9, the .attr() method no longer returns the current input value and instead returns the old or default value no matter what changes have been made to the value of the input. Under jQuery 1.8, this code works as expected with the current value of input being returned by attr(). As a work-around, one can extract the current value of input directly from the DOM (see example for both methods). Am I doing something wrong, or is this the way jQuery 1.9 is supposed to work?
Trying to use ! (not) operator to determine if class has been added.
I'm trying to determine if a class is added or not. To determine if a class was added, I can do if ($('#31').hasClass('item31required')){ But what I'm having a hard time getting right is checking to see the the class is NOT there. would it be: if !($('#31').hasClass('item31required')){ or if (!$('#31').hasClass('item31required')){ Thanks
Version conflict
Hi, new to the forum. Am just making a few web dev tweaks for a client on their wordpress website. They have a nivo slider on their home page and want fancybox image pop-ups on their portfolio page. The nivo slider works fine but the fancybox functionality doesnt work with the version of jquery that wordpress loads by default. On putting a link to jquery-1.10.1.min.js above the fancybox javascript in the head, the fancybox now works but the nivo slider fails to function. Could anyone please advise?
Form conditional fields problem
Hello; I have a select box with option Newsletter unsubscription, if selected, then show the class unsuscribereason and hide classe message else then do the reverse. The code below works fine when i click on the option Newsletter unsubscription, the problem is that this condition didn't affect the form if : - I just visited the page where form is located; - When i reload the page. jQuery only apply the condition when i click an option and didn't set it as default for the form whatever situation.
Help to adapt functions to jquery version 1.10.1
Hello friends. I have compatibility problems with jquery functions version 1.6.1 to the current (1.10.1). Here is the code. Please help friends. $(document).ready(function() { $.getJSON("categories.php?callback=?", function(data) { $.each(data.Categories, function(i, category) { var subjsondata=''; $.each(category.sub_categories, function(i,
why jquery not working in IE8
Hi, I am in problem with my Jquery in IE 8. I have a script that constructs some UI dynamically with div on load. This works fine in chrome and firefox, but in IE it does not load. It does not log anything when it comes to second line below. AV.console.debug("start customer UI"); e = $("<div></div>").addClass("av-webassist-main").hide(); AV.console.debug("customerUI added main container"); It logs the first debug in console and nothing after that. The page stays blank. If I try to run
Add Button Dynamically
Hi All, I am new in Jquery.I have a button and when i press this button i send the request to facebook Login.and after facebook login i am showing the friend list for user.i want to add button when list is shown. $(document).ready(function(){ $('.load-button').click(function(){ getUser(); }); }); This getUser call all the Facebook API.now i want to add button when list is shown. Please Reply ASAP. Thanks & Regards, Sumit Gupta
animate callback function
sorry for re posting but i dont want people to tldr, the code has changed drastically anyways. i will include all necessarily information here as concisely as possible i believe we are very close to solving the problem i am trying to use the animate callback function to properly queue the opening of a new tab after the closing of another the error is denoted by //error here http://patrickallard.net63.net/ [CODE] <script> //page dimentions var tabWidth=300; var tabHeight=document.getElementById("experienceshadow").clientHeight;
How to set the selected option for particular condition in Select?
How to set the "selected" in Select option for particular condition? My code: <input id = "inputs" type = "text"/> <select name="valueA" id="sss"> <option value="$0" selected="selected">$0</option> <option value="$500K" selected ="{!IF($('#inputs').val()!= '','selected','')}">$500,000</option> <option value="$1M">$1,000,000</option> </select> Isn't working? How to check the if condition in inside of select option?
Page transitions
I have some pages, page1.htm. page2.htm ,and so on. I moving from 1 to 2, and 2 to 3 I looking for cool page transitions to make some nice effect when moving between the pages. Do you know of some jQuery effect for this?
about version jquery
Hello Every one.... I have a question, why them do release new version ex:jquery-1.10.1.min.js or jquery-2.0.2.min.js but remove some function in old version ... I'm realy not understand why ., i'm ever think about it, previous sometimes i can running a program use a jquery but that not work when use version else. You know , I think new version it's the best than previous versions but why like that ... can someone here explain to me about it thanks regards
Click of two url on a single click
I have two url like this.. http://abc.com?userid=abc&password=def&code=xyz http://abc.manip.com?country=India®ion=MP&city=India&factor=Fuel Normally when i click second URL it takes me to default login page of the manip app(for example purpose) when i click first link it takes me to a normal hope page and after that if i click onto second link it takes me to a desired page. I want to open only the desired page with single click. I tried passing userid,password and code through post method through
How do I get the first cell of a selected row in the checkbox?
<!DOCTYPE html> <html> <head> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"> </script> <script> $(document).ready(function(){ $("button").click(function(){ $("tr").each(function(){ $("input[type=checkbox]:checked").parents("tr td:first-child").css('background-color','red'); }); }); $("th").css("background-color","#cccccc"); }); </script> </head> <body> <h1>Welcome to My Web Page</h1> <table border="1"> <tr> <th>Company</th> <th>Country</th>
ShortCut Handler in asp.net textbox using jquery
hi, I have an asp.net text box with text mode is multiline and listbox. In that listbox shortcut with expansion of shortcut.. for e.g app-Apple,ba-Ball upto Z... when i enter the character in textbox that time select the listbox options based on the textbox letters and press the shift and ` symbol get the full expansion in listbox. The textbox is the multi line so whenever type the words and it should select the options in the listbox and press shift and ` symbol get the full expansion.
Hey i was just wondering that after hiding a div using the hide() property of jquery is it possible to make that dive fadeTo ?
Like i said i am just wondering if it is necessary to show a div using show() if it has beed hidden using hide() or can one also use fadeTo to achieve that.. also if someone could explain fadeTo that would be brilliant.. Thanks
How do I insert a text into textarea at cursor pos at leave here the cursor ?
I've a button. I need to provide this to my users: - User clicks it, I - my code add some text at cursor position into a textarea - then the cursor must be STILL HERE, before or after inserted text. How !? I googled and seen createTextRange, but FF and Opera have some difficult Is there a jQuery-way ?
Having trouble with a UL
Hello, I have a problem, I want my ul to display 5 results (hints), I managed to show all the hints that come from the database but I ain't sure how to limit it. The li's must display inside this ul: <ul id="hint"> </ul> Here's my Jquery (just the part that retrieves info from the DB and what it displays): if(input!='') { $.ajax({ url: "http://mysearch.mydomain.title?s=jsonp", dataType: "jsonp", data: { q: input }, success: function( data ) { var i = 0; $.map( data, function( value ) { $(".hint").append("<li><a
Mapping X-Y Coordinates from rails iteration
I've created a photo tagging system using jQuery, however once I refresh the page the tags do not show up. I created an erb iteration that goes through all the tags and finds the x-y coordinates but I'm stuck on how to display them. <% @image.each do |image| %> <%= image.connections.each do |conn| %> <span class="connection" data-pos-x="<%= conn.pos_x %>"></span> <span class="connection" data-pos-y="<%= conn.pos_y %>"></span> <% end %>Which returns something
navigation
Hi, i have the search results and would like to add the navigation for next and previous from the results but wonder if this is something i can do in jquery? i have looked for example code but got no luck. Can any one helps me with this? Thanks
Adjust Display elements position
How can I do that in my example (http://jsfiddle.net/samuvk/sMqKA/16/) that the position of the display can be adjusted. When the last item (unlimitedwonders) display, the two items display are two far on the left that they cannot be reach. Is there any way that the elements display are adjusted to the positions of the "father" element? Thanks
refrencing object
hi , i know how to define an jquery object and reference it to an id . take a look at below $("#element"); now i want to know what is the different between this $("#element") and this $var = $("#element"); do they have any different .
diffrenet between storing selection into variables
hi , i have stored a selection into a variable .take alook at this $("#container_show_subject #update"); var $var1 = $("#container_show_subject #update"); i can use attr('id') for the first one and return back the id but for the second one i can not use an id attr , i dont know why ? can you give me an example , of how doing it ?
Information Box Problems
Hello everyone and thanks for your help in advance. I developing an ASP.Net webform that has certain help items, that when clicked, use jQuery toggle to display the informational div. These links are placed within columns on the page. Currently, when the link is clicked and the div displayed, the columns are shifted down and to the right. I would like to have the div overlay the page content. Here is my CSS and page structure: <td class="menulist"> <span class="menuname">Insurance
window.close won't functioning?
Hello i'm new to jquery. I just want to ask a simple question about window.close function The scenario is I created a popup dialog that the user may enter or add another comments using jqueryui which contains a webpage that displays user comments. There are two textfields. One is Category Name and other is Description. Below is the OK submit button and CANCEL button. Before i used the function onclick="window.close();" function i embedded it in my <input type="button" /> but when i tried to run this
I replaced jquery files with more modern versions and broke my application...
I was given a website that used two outdated libraries: <script type="text/javascript" src="scripts/jquery-1.4.1.min.js"></script> <script type="text/javascript" src="scripts/jquery-ui-1.7.2.custom.min.js"></script> So I thought I'd improve things by using more modern versions. Instead, I broke the website. This is what I replaced them with: <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js" type="text/javascript"></script> <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.10.2/jquery-ui.min.js"
Asynchronous Constructor Instantiation and DOM Insertion Within Loop
Hey All, How can I best execute code with an async callback in a loop? At this point I'm using a callback from a setTimeout zero. Meh. For example, here I instantiate 1000 Button objects from the Button() constructor function, and insert them into the #pageContent div. // Happily adds buttons to page one at a time, as they are instantiated var $pageContent = $('div#pageContent'); for (var count = 0; count < 1000; count++) { setTimeout( function() { var myButton = new Button();
Key Value Pairs Conversion has me scratching my head
I have an object that looks like this: { "KeyValueOfstringstring": [ { "Key": "FET", "Value": "" }, { "Key": "FFS2", "Value": "Z" }, { "Key": "LoadIndex", "Value": "91" }, { "Key": "Ply", "Value": "" } ] } And would like to transform it to look like this: { "KeyValueOfstringstring": [ { "FET": 123 },
show hide on click using on
I am having problems with toggle() called inside on here is my script function tblBodyShowHide(){ $(document).on('click','a.showHideTblRows',function (event){ var tbody = $(this).closest('table').find("tbody"); var thead = $(this).closest('table').find("thead"); if(thead!=null){ thead.toggle(); } tbody.toggle(); //event.preventDefault(); return; }); } $(document).ready(function(){ tblBodyShowHide(); } is there anything wrong in the function? on debug I see table body is hidden and when
probelm with script inside ok function in a a dialog
I have a submit button with onclick script which works now I wanted to show jquery dialog and on click Ok execute the button script here is the button <input style="margin-top: 1em;" type="submit" value="ADL" class="submitbutton ui-button ui-widget ui-state-default ui-corner-all" wicket:id="adl" name="noFindingGroupsBtnsContainer:adl" id="adl2b3" onclick="var wcall=wicketSubmitFormById('reviewForm2b0', '?x=Dey9PT2gy1YuenfaMGBagUANwBRKlaVd5huPWU-oPNBYUDs*nz1v8hztWlx3FiLFwcq1iD0dcAtS0IBc-6h9fgMeoyFtWfNxH**95XJRikj9MY-Lk6b*ifDHBe9eO93BddF814Ut612AETOd4t7ing',
Next Page