Autocomplete Dropdown not setting default selected value
I have following select list with selected item but when i create jquery ui autocomplete combobox using ($("select").combobox()), it's failed to show selected value. show only empty textbox ratherthan showing 'Christchurch'. Can any one know why?????? <select name="City" id="City"><option value="1">Auckland City</option> <option value="30">Carterton</option> <option value="7" selected="selected">Christchurch</option> <option value="9">Dunedin</option><option
onchange html event redirect to change()
I'm dynamicaly create a object for my webpage it's base on <select> tag in my code, I need to redirect onchange script to the change() of my new object my tag is writen like this : <select id="mytemplate" onchange="$("#other").val($(this).val())" > .... I create my new object "newone" and I want to do that : $("#newone").change(<the event of my select>); but I don't understand how to set the change trigger with the script of my select onchange. I know how to set event with specific code when creating
Get id of button
Hello All, $('.btn_class').click(function () { }); If i have above code then how can i find out the id of tag who has classname is "btn_class".
Is there an way to cancel AJAX request?
Thanks in advance Ramesh
preventDefault stripping <button type="submit"> fields from submission?
Has anybody used <button type="submit" name="dil" value="bert">dilbert</button> and attempted to add submit validation through the submit handler and preventDefault() only to find out the element value is missing? I'm currently experiencing this problem and it's a real headache. Any feedback would be welcome. pd
Sortable inside Sortable ?
I am using jQuery draggable + sortable plugin. When I drop a draggable inside a sortable that is inside multiple sortables, it creates a copy (using the clone helper) of the LI in the target Sortable as well as the target sortable's parent sortables. Desired is that it should create only one clone where the element is dropped. Kindly help me.
Hide a number of pixels (height) of the content in an iframe using jquery?
Hi, Im making a website in which I want to "embed" another website (not mine) - simplesignup.se - through which i've created an event. The problem is that I want to hide the footer of that page, maybe the header to if its possible, but since the height of the other page varies throughout the steps in the "buying-process" I can't set a fixed height... Is it possible to fix this problem using jquery and how do I do that? So, something like this is what i want: autoheight - x pixels from the top - x
Problem with $.ajax() and IE !
Hello, I have a problem with a function using $.ajax() of jQuery and IE. So I've the below code : function readMessage(id) { //Get message content from database $.ajax ({ type: "GET", url: "inc/ajax/getmessage.php", data: "messageID="+id, success: function(data) { //If success if (data
how can the first level menu overlap the second level menu?
Hello, i have uploaded a ppt file and i have described what animation i would like my menu to have. I have two levels menu. Each level of my menus consists of two columns. When the user first loads the site, she always sees the first level menu. The first level a.has a list of links which point to the second level menu and b.consists of two columns always combined together(never separate) When the user clicks in one of the links the second level menu shall overlap the first level from right to left.
Can someone advise what Jquery is being used on this page?
Hi all, On this page http://piximory.com/templates/locus/dark/bg2.html if you click the portfolio link in main nav you are presented with the various thumbnail images for the projects, if you select a category the thumbnails organise themselves using jquery, does anyone know what type of jquery style this is? Thanks in advance! Kyle
jqgrid with jsp and servlet
please let me know how to implement jqgrid with jsp and servlet.
jQuery.post
Hello, I guess I figured out the problem, but I somehow can't solve it. I try to POST an base64_encoded image via ajax. As long as the image is small, it works perfectly, but as soon as the image gets bigger, it fails, though jQuery fires success and no error messages appear. I already watched my php.ini and the post_size_limit is set to 2GB. Does any one has an idea how to solve this? Thanks
Scrolling textarea dynamically using jquery
Hi, I am new to jquery I have a textarea which is filled with contents of large file at server The contents are obatained using ajax requests . I want user to show updated data to make it more readable. Any sample code will be helpful Thanks in adavance
How to make a canvas object
How can I make such an object which defined a viewable area, on which I can append many visual elements such as images and such. In other words, kinda close to the canvas class found in j2me or html 5. I'm doing a game project as you can guess. Any idea?
Browser closing event
I need to avoid the user closes the browser during an application or, bettere, I want to intercept the close action, do something and the close the browser. I didn't find the way. Unload event is fired every time a page si unloaded but I'm not able to see if the close button was pushed or the page changes for every other reason. Could someone suggest a solution Tks Tullio
IE, file input, and different behaviors of change event with .live() and .bind()
In IE, if I bind the "change" event with .live() or .delegate() on file input, it is not firing till I blur the input after file select (click outside the input). But with bind, it works just fine, which is weird. Here is the reconstruction: http://jsfiddle.net/Hp4RF/ Is it bug or something in jQuery that can be fixed (as with bind it works fine...), or unfixable IE issue?
Keydown event fire once without a flag
Hi, Let's say I have a page with a counter (with an initial value of zero) and nothing else. Here's what I want to do: 1) I press and HOLD a key down 2) The counter goes to one 3) I let go of the key 4) The counter still reads one 5) I press and HOLD another key down 6) The counter goes to two 7) I let go of the key 8) The counter still reads two Is this possible to do without a flag? I'm need another way because my key event triggers will be complex. For instance, I press and hold a key down. This
Adding a Short Delay before Triggering MouseOver Event
Dear All I've been using this little bit of code to show a div when the user rolls over a link: $('a#eventspopupbtn').mouseover(function() { $('#menu').hide('fast'); $('#eventspopup').show('fast'); return false; }); I have been trying to extend this bit of code so that there is a short delay built in so that if the user rolls over the link by mistake or 'just passing through' the div is not displayed. I tried using setTimeout but couldn't get that working (unfortunately, I can't
S-shape motion
I have a client who wants something strange... and she's determined to have to it. We have a background image that scrolls continuously up the page in a loop. You can see it here: http://aesajewelry.com/staging-site/ The client not only wants that, but she wants it to move from left to right in a sinewy movement a bit like an 's' as it rises. I assume this requires some knowledge of math and sine curves or something like that that I have no idea about. Could anyone point me in the right direction?
My trigger only runs once?
I have a javascript listening event that initialize in the DOM via a javascripts function. $('#RatingsID a').click(function() { var id = $(this).attr('href'); //alert(id); $("button:first").trigger('click'); } );From there I use the trigger('click') to click a button on the page. The button when clicked opens an external overlay to display ratings on a product to a user. This function works fine only one time, when the overlay get's
Getting "Permission Denied" error even though $.ajax call is on same domain
All I'm doing right here is calling a Perl script on an intranet server and using the xml results to popluate a <select> element. This works on my machine but a co-worker is getting a "Permission Denied" error when this function is executing onReady function populateGroups(){ var p =1; var groupNames = new Array(); $.ajax({ type: "GET", url: "http://okcmonprd103/iMon/findgroups.pl", dataType: "text/xml", success: function parseGroupNames(xml){ $(xml).find('group').each(function(){
fadeTo() not working for dark colors in IE
Hi Guys, I have the exact problem explained here: http://dev.jquery.com/ticket/3366 but I cannot seem to find a solution.Can someone help? Thanks
Is it possible to trigger an external Overlay via eventListener?
I got the "loading external pages" overlay working just fine from the examples. My project calls for me to open an external overlay but we don't have control over the trigger point. The content is being injected into our pages via an external scripts. So I created an event listener with JQuery to listen for any clicks that occur to a specific link, this works just fine. What I've been struggling to do is open up an external overlay via my listener. I've tried creating a custom function called
This wont work in firefox?
Hello all, could someone let me know what im doing wrong with the code below? The page loads with the image angled but wont do the hover which is to change the angle on hover and go back on out <!DOCTYPE html> <html lang="en"><head> <meta charset="utf-8" /> <title>test</title> <script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script> <script type="text/javascript" src="js/jQueryRotate.js"></script> <script type="text/javascript"> $(document).ready(function() {
HELP !!!
i have a problem in the above example: http://www.104u.co.il/dogma/gg.html. Thanks.
[Off-Topic] Serial Port, JavaScript , jQuery
Greetings. I am building a jQuery APP. I need put data string in the serial port. Exist some way for do it from JavaScript, and Firefox?. Ubuntu Linux, firefox 3.6 jQuery 1.4. Not internet explorer, not activeX. Thanks.
Replace part of all the links on a page?
Hi, I'm fairly new to jquery (but loving it). I tried finding a similar situation in the forums, but was unable to discover anything sepcific. I think I may be way off here, and or trying to do something bizarre, but what I am trying to do is change only part of the the url for all of the links on a page. So say I want to change: href="/something/something/all" to href="/something/something/specific" I think I need to use each() in combination with attr but I am not exactly sure how. This is what
jQuery selectors in MozillaFirefox vs. Safari/Chrome
Hello, there is a html element: <div class="contact" onclick="processGroup('ID1278762232094');" id="ID1278762232094"> <div class="title">fdsaffdsafdsafasdfsda</div> <div><a class="deletionLink" href="javascript:GroupListener.deleteAction('ID1278762232094');">delete</a></div> </div>and JavaScript: var escapeSelector = function(myid) { return '#' + myid.replace(/()/g,'\\$1'); } alert("qq20-1"); var mmm = "ID1278762232094"; var elem = $('#' + mmm); if( elem.size() != 0 ){ //update
How to check if an element matches a selector?
Hello, is there any way one can test if an element matches a jQuery selector? I'm not trying to locate elements, just test for match. More specifically, when using event delegation and a common callback function for multiple events, is there a way to check the event's currentTarget against a selector? In the following example, how can I check if the currentTarget is the LI node with class "item2"? <!DOCTYPE html> <html> <head> <script src="http://code.jquery.com/jquery-latest.min.js"></script>
Shopping cart, which is best?
Hi, I’m just going to have a go at building my first retailing website and need to integrate a shopping cart. Can anybody suggest a plugin etc.
Efficiency in binding handlers to events on divs created in jQuery
I am working on a project that employs the jQuery UI 'resizable' component. The question is about content created by jQuery. The following are the code pieces relevant to my question: //The function that runs whenever a div is disabled, or re-enabled function checkDisabled(){ //empty the content of #disabledDivs and set an empty var to be used in the .each() to follow $('#disabledDivs').html(''); var disabledContent = ''; //find
is there a simple command to update a div?
Hi, I will have a list of numbered links and whenever one is clicked, I want to change the content of a <div>. Is there a simple command that does this? I've read a bit of jQuery but could not find this info. thanks
Escaping special chars in ID selector does not work in IE with version bellow 8
I write some interface that maps XML to HTML DIV elements with XPath in its ID. I know restrictions of ID element but in other browser its works finely (other than < IE8). The simple test fails in IE6, IE7. This test passes in IE8, FF, Opera and Google Chrome. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"><head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"
file uploading and progress
Hi , I have to complete a file uploading module, in this module I am sending request from form.html to put_file.jsp by action and using jquery i am trying to access the state of the upload. for this purpose I am using session variable and this session variable is updated as the file upload is in progress. (basically a while loop which transfers the bytes). Now using ajax jquery get calls i want the session variable and on the form.html i want to display the status of the uploading. can you please
i have a problem I need help !!!
hello everyone, i try to insert div to another div with the command: example: $("#stage").html($("#movie").html); this command work fine, but when i try to press on buttons, in div "#movie", i can push them. why is it ? and how can i fix it ? THANKS. ROI
Using the selector with the ctrl
Hi, I would like to bind a set of data inside a repeater and be able to use the selector to select 1 or more then 1 values? Any ideas
hello,i need help !!
hello everyone, i try to insert div to another div with the command: example: $("#stage").html($("#movie").html); this command work fine, but when i try to press on buttons, in div "#movie", i can push them. why is it ? and how can i fix it ? THANKS.
jquery and ajax for form submission
Hi , $(document).ready(function() { $('#form').submit(function() { var number = $('#number').val(); window.setTimeout("ajaxfunction()",1); return false; }); }); function ajaxfunction(){ alert('function'); $.ajax({ type: "post", url: "put_file.jsp", data: "type=get", success: function(msg) { $('#result').hide(); $("#result").html("<h3>" + msg + "</h3>") .fadeIn("slow"); if(msg=="0") { //window.setTimeout("ajaxfunction()",100); } else { return; } } }); } <form id="form" action="getajax_file.jsp?type=post"
Difficult DOM manipulation problem
I cant seem to get my head around this :S I have the following code from the pagination of a Gallery Module: <ul class="pagination" style=""> <li>Start</li> <li>Previous</li> <li>1</li> <li><strong><a title="2" href="blablabla">2</a></strong></li> <li><strong><a title="3" href="balbalbla">3</a></strong></li> <li><strong><a title="Next" href="balbalbalba">Weiter</a></strong></li> <li><strong><a title="End" href="balbalbal">End</a></strong></li> </ul> This
Dynamic text box with image slideshow
Hi All. I'm working on a modified carousel script, and trying to add functionality of a dynamic description accompanying each image when it becomes active. I'm very new to jquery, and it's been years since I've studied js or anything like that, so please bear with me if this is simple to do. I'd also like the gallery to change depending on which nav button is pressed (i'll have 2 or 3 different galleries, but I'd like them all to occur in the same space). I appreciate any help at all. Thanks. I've
Next Page