Click function
Hi everybody, I am Mark and I am very very very new with jquery! I am developing my website with this tool and I was wondering if anyone could help me with this problem. I fill a select box with php and then dynamically add in formation in a second select box based on the input in the first select box. Now I would like that if I click a button these two values will get inserted into a table without reloading the page. I use codeigniter framework if anyone is wondering. Thanks in advance
Animation queue
Hello! What I'm trying to do is create a sequence of animations. It is easily possible when it is applied on one object. When not, the only possible way is using callback functions but it is quite dirty. You know if you have little bit more complicated sequence it looks like four functions inside which is strange. So my question is: Is there a way to do it another way .. for example put animations in queue but in one queue for let say four different objects? If not, let's this decide as an idea.
calling jquery file on anchor click
Hi, I have the following HTML anchor tag and I want it to call my JQuery script when it is clicked : <a class="screenshot-link" id="dv1" siteno="dv_1" href="#">1</a> However, it seems to call the script on page load, and not when it is clicked. Here is my JQuery : $(".screenshot-link").click(function () { var siteno = $(this).attr("siteno"); $.post( "/Development/Main/ShowImage", { siteno : siteno} ); }); Can anybody please help?
Security question about jquery
Thank you for a great product! We are using jquery and appreciate the good work you did putting it together and making it available. We are currently working on a project which required a full security assessment. When a scan was run on the project as a whole, a couple of issues were flagged in code that is part of your framework. We would really appreciate if you could take a look at the attached PDF that has the key info. regarding your particular code. I look forward to your comments on this
Sliding Navbar & wordpress
I saw this sliding navbar on http://www.flyfisherman.com/ and would like to add something like it to a WordPress site. I would like to know how it was done and if it is possible to add to WordPress? Thanks for the support, I hope this is the correct section to post this too. Kelley
repeated jquery show/hide
Hello, I'm trying to do what I think is a simple thing but I don't know what I'm doing wrong. Here's what I want to do: 1. Have a link (p.advert a.toggle) inside p.advert that tells p.hidden to show itself and at the same moment hides that link (p.advert a.toggle). 2. p.hidden must be closed by a link within himself. 3. When I close p.hidden, I need p.advert a.toggle to become visible so that the user can see p.hidden again by clicking on p.advert a.toggle. 4. The code must be reusable many times
Theme roller broken
When I click on download I'm getting the following error: Absolute File does not exist: /srv/jqueryui.com/htdocs/repository/cache/0037c1b6d8107c4a895e6b069896014d/jquery.ui.base.css Normal File does not exist: /srv/jqueryui.com/htdocs/repository/cache/0037c1b6d8107c4a895e6b069896014d/demos/index.html (/srv/jqueryui.com/htdocs/repository/cache/0037c1b6d8107c4a895e6b069896014d/demos/index.html) Absolute File does not exist: /srv/jqueryui.com/htdocs/repository/cache/0037c1b6d8107c4a895e6b069896014d/jquery.ui.base.css
Need to fire a function on tab out from a textbox.
I need to send the tab to a particular text box when it tabs out of another textbox. I need to handle a function in which I could set the focus into the desired textbox. But I am not able to get to my function when the tab out happens. How can this be done?
Send data from a form without redirect
hello A real beginner here. I have a simple form that asks one question with 3 radio button choices I just want to send the answer to my email but without leaving the webpage form is in html and css Can anyone help please? P
very jquery noob
I am very new to jquery (just a few days) so please be gentle. i have a series of hrefs that all have the id link i am trying to use jquery to load ajax views when each of the links are clicked. I would like to reuse the function of each href passing in the params I need for example: <a href="" id="link" l_view="view1.php" div_id="main_content">Click Here For View 1</a> <a href="" id="link" l_view="view2.php" div_id="main_content">Click Here For View 2</a>my jquery looks like this currently. $('#link').click(function(){
inserer données +java + jquery
Salut, SVP, j'ai un problème que j'ai pas su comment le résoudre. En fait je veux insérer des données à partir d'une méthode qui retourne un tableau ( en java) je veux insérer ce tableau dans un fichier js qui l'utilise avec jquery. J'ai pensé à faire comme ceci: $.ajax({ url: url, data: data, success: success, dataType: dataType }); mais je sais pas comment faire. En fait l'idée est de mettre au niveau d'url le nom de la classe java et au niveau du data la méthode qui retourne le tableau et dans
a syntax error,uncaught exception: Syntax error, unrecognized expression: [@href^="mailto:"]
hi, everyone i'm a newbie on jquery i'm studying it with the latest version, and following a book called "Learning Jquery" but i encountered a error, and i don't know what the problem is: i copied the code from the book like this: $('a[@href^="mailto:"]').addClass('mailto'); to try to change the links which start with "mailto" to the new class "mailto" but there's a error reported: uncaught exception: Syntax error, unrecognized expression: [@href^="mailto:"] anyone can tell me how to correct the
Create an "on page load" pop-up window?
Hello, Am very new to jquery but i have a little problem i want to do: I want to create a pop-up windows that display (when website has finished loading), while the main page blurs behind the pop-up windows. something similar to those amazing jquery gallery stuff, but i want the new window to display another image or page? any how? truely appreciate any input. Thanks.
ajaxForm result append
Hi.. How do I change that would result is not replaced by target and added to the end?
showing and hiding forms
Hi all, this is my question: i've a div that contains a form, each of these elements have their own id; the structure is something like this <div class="art-Block-body"> <div class="art-BlockHeader"> <div class="art-header-tag-icon"> <div id="register" class="t">Register</div> </div> </div> <div id="registerForm" class="art-BlockContent"> <div class="art-BlockContent-body"> <!----form elements--> <div
Textfield with custom buttons
How can I create a custom textfield with buttons? Can I use JQuery to do that? See my attached image for a explanation of what I need to do.
traversing a xml string
Hi Guys, I am trying to run a small example which travers the xml string , but could not able to run it. Please help. The JQuery script is as follows <script type="text/javascript" language="javascript" src="../../JS/jquery-1.4.2.js" > </script> <script type="text/javascript" language="javascript"> $(document).ready(function(){ alert('doc is ready'); var t = $('<foo><bar>something</bar></foo>'); t.find('bar').each(function () { alert($(this).text()); }); }) </script>
Script not working in IE7
New to jquery. Have this simple script working in every browser but IE. Checkbox that onchange toggles the enabled state of a form submit button. This is in head tag. <script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>this is in body <script type="text/javascript"> $("input[name*='submit']").attr('disabled', true); function toggleStatus() { if ($('#toggleElement').is(':checked')) { $("input[name*='submit']").removeAttr('disabled', false); } else
jquery API browser issue
i cant install it!!!!! i've downloaded the air application from adobe, installed it, but i cant install the air version of the browser! someone could please help me!? thanks a lot!
Fade out entire page, except one jquery created div
Hi, I am trying to work out how to fade out all of a page except for one div (that is dynamically created within the page). The problem I think is that the div that I want to remain highlighted is contained within the div that I want to fade. Here is some sample, simplified code to demonstrate what I want to do: <html> <head> <script type="text/javascript" src="js/jquery-1.4.2.min.js"></script> </head> <script type="text/javascript"> $(document).ready(function(){ $('a.fading').click(function()
Changing values on the fly
Hey All, Im trying to write a small calculator ... but to be honest i cant write jquery to save my life, so i need a bit of help .... basically i have 2 dropdown boxes and a total field, like so <select name="type"> <option value="">--- Select Style ---</option> <option value="">Full Colour - 1 Side</option> <option value="">Full Colour - 1 Side - Black Reverse</option> <option value="">Full Colour - 2 Side</option> </select> <select name="qty"> <option value="">250</option>
construction of valid URLs
hi. I'm new with this jquery thing, and i have a problem, hope someone can help me: I have to send the variable ii on the url so i can show a form on the thickbox: <a href="#?ii='.$resul[$i]['id_nota'].'&TB_inline&height=255&width=300&inlineId=hiddenContent" title="News" class="thickbox" > but the variable doesn't get here, and don't show the form, how can i send it?? echo '<div id="hiddenContent" style="display: none">'; if(isset($_REQUEST['ii'])) { $idnot=$_REQUEST['ii']; [...]
May i know the in-line glossary in this page how it works?
Hi all the expert, May i know the in-line glossary in this page how it works? http://www.nikonusa.com/Find-Your-Nikon/Product/Digital-Camera/26191/COOLPIX-S8000.html Any example to do the same function? Thanks AT
Set/reset drop down list item
I've created a drop down list as below: <select name="declinereasons" id="declinereasons" onchange="declinereasonsChanged();" > </select> And on some event I call the following function to fill my drop down function fillDeclineReasonList() { $.getJSON('<%= ResolveUrl("~/myurl/")%>', function (data) { ReasonCollections = data; var items = ""; items += "<option value=''>Select One</option>"; $.each(data, function (i, ReasonCollections)
PHP & jQuery
I hope the following makes sense. How would I take a value stored in a variable in PHP, do a post or get to another php file (the function that checks to see if the pc is alive), and have it display the results in some CSS box? If you can point me out to any examples that you know, or to the various functions in jQuery I will need. I looked at the jQuery.get page on this site, but it is not a thorough enough example for me. I don't even know if that is the right one to use. Thank You.
Drop Down Menu stop from expanding Div
Hi Everyone, I am trying to make a menubar which will sit at the top of a webpage. The menu bar needs to have one drop down menu, but will also contain several other elements such as small icons and other buttons. What I want to have have is when i click on the drop down menu it expands but does not cause the rest of this menu bar to expand. So essentially I want the menu items to float over the rest of the page. The code I have created so far will show what is currently happening and is below:
JavaScript Challenge Play--Random Color
JavaScript Challenge Play--Random Color (The English Version of JavaScript挑战赛--随机颜色) Title: Write a function to return a string that can represents a color. Requirements: 1. The color is random. The color string can be similar to "cf9c63", also similar to "rgb (211,100, 180)". 2. Code should be concise, clear, easy to read, good performance, and better than my solution. And go to http://blog.csdn.net/FuDesign2008/archive/2010/06/04/5646681.aspx to see more! Good Luck !
Function is not working
Hi, I try to write this function function grabber(inputGrabber) { if(inputGrabber.length == 0) { // Hide the suggestion box. $('#suggestions').hide(); } else if(inputGrabber.length > 2) { $.post(MELODYURL2+'/ajax_grabber.php', {queryString: ""+inputGrabber+""}, function(data){ if(data.length >0) { $('#suggestions').show(); $('#autoSuggestionsList').html(data); } }); } } // end ajax grabber and this
jQuery .click() event doesn't work in load()-ed document
hey everyone, first entry! weird title, i know but i didn't know any better. first of all, i'm new to jQuery and still have some problems, but so far i like it a lot. now to my problem: i have a basic 2 column page, on the left is the navigation, on the right the content. i'm loading in the content with the load() method - some php generated html code which looks like this e.g. <div id="container"> <div id="toggle">TOGGLE</div> <div id="showArticles"> <table id="bildertable"> //table content </table>
Quick one - [] selector on existing collection
Let's say $pages is a collection containing all div elements that have an id of page1 or page2 From this, I wish now to select now only the page div (i.e page1 or page2) that contains a descendant with a class of 'A' Tried lots of things, just can't get the format right. Any help appreciated.
animate and hover function
Hi, I'm new to jQuery and I was wondering if it's possible to put .animate and .hover on one element. Here's the script I have now: $(document).ready(function(){ $(".element-header").hover(function(){ $(".element").animate({ height: "100px" }); },function(){ $(".element").animate({ height: "0", }); What I wanted
Select class which is in the same class of class, on which I clicked
Hi. My code: http://pastebin.com/YS0dUdLm When I click on Upraviť in class edit, I need add some HTML code to begin and to end of class entry. How to I can select class entry in the same class post on which I clicked? Thank you. Sorry for my english.
Documentation has regressed to v1.3?!
When I go to the jQuery documentation - eg. http://docs.jquery.com/Core - the page title indicates API/1.3/Core and all the superb updated documentation for v1.4 has disappeared. For example, the documentation for index( subject ) does not have any of the v1.4 enhancements, and the same goes for all the other docs. Another poster has already commented on the fact that the 'All' option has disappeared from the side menu (used to appear - for v1.4 docs - when you had drilled down a level). What is
Basic support questions about JQuery
Which platforms and browsers are supported by Jquery? Is it fully supported by mobile devices like iPhone/iPad?
Wrong count value with mouseenter/mouseover event
Hello! I'm a newbie in JQuery, so my problem may be no big deal but anyway I'm stucked with this for a few days so I'm asking the help of any nice person who could solve it! Here is the thing: I'm working on a partners page where partners are categorized, each category contains a various number of partners's logos, so I had to define different min and max_height for each category, so that it can enlarge/reduce when mouse is over/out the div. The problem is that I use a for loop which increment $id_cat
scrollTo plugin and target focus
I'm using the following script to successfully scroll links, however, I am having trouble getting the page to focus on the hash target. Instead, the page focus stays with the link that initiates the function rather than the intended target: $(function(){ $('a[href*=#]').click(function(){ if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname){ var $target = $(this.hash); $target = $target.length &&
How to fire an event just once, when having multiple objects selected?
I have a problem and I've spent quite a lot of time trying to solve it, without any success. I have this code <script type="text/javascript"> jQuery(document).ready(function() { $("select").click(function() { alert($(this).attr('id')); }); }); </script> <FORM><select name="category" id="#link1"> <option value=1>1</option> <option value=2>2</option> </select></FORM> <FORM><select name="category" id="#link2"> <option value=1>1</option> <option value=2>2</option> </select></FORM>
loading xml string?
How do I get IXMLDomElement or IXMLDomDocument from a given xml string in Jquery, currently this I am getting by var xmlNode = ActiveXObject("Msxml2.DOMDocument.3.0"); xmlNode.loadXML(xmlStr); var ixmlDomElement = xmlNode.documentElement; I want to remove dependency on ActiveXObject by using Jquery so that it works uniformly on all browser.
Sbstitution of $ variable
Hi, I want to substitute the variable $ with notation jQuery. How can I do that? In which file I need to mention it?
Jflow & carousel problems in browsers...
I know I am definitely doing something VERY stupid here... but cannot figure it out.. I have this problem on two websites so far... jflow has always worked great for me... however as of recently I don't know why its not working in IE check it out here.. http://hometownmodulars.com/ on the bottom of the page i use jflow slider... in IE if i click next, it swings past all the slides and breaks.... WTF ? LOL Here is another example, more simple http://rooftopwizards.com/html/ on this site i used a modified
Next Page