[jQuery] Newbie .load question
Hi, I fairly new to jquery. I have a simple load function, which works fine. <script> function getinfo(link) { $("#loading").ajaxStart(function(){ $(this).show(); }); $("#info").css("cursor","pointer").load(link); } </script> Now I would like to have a select drop-down list, which when changed would pass the select value to the getinfo() function so that I can use this value when loading items from the link, something like this; $("#info").css("cursor","pointer").load(link,
[jQuery] editInPlace plugin, textarea tags, and rich text editor
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=us-ascii"> <META content="MSHTML 6.00.6000.16674" name=GENERATOR></HEAD> <BODY> <DIV><SPAN class=952543221-04082008><FONT face=Arial size=2>I'm using the editInPlace plugin for an app I'm writing. Everything else is working great, but now I have a large block of text which needs to convert to a rich text editor ala FCK or TinyMCE.</FONT></SPAN></DIV> <DIV><SPAN class=952543221-04082008><FONT
[jQuery] selector for multi select menu (php)
I'm using jQuery on a PHP page that has a select menu whose id (and name) are "f_location_type_menu[]". This is a multi-line select which allows more than one item to be selected. The []'s allow PHP to allow the posted values as an array. There is a bunch of back end code that relies on this. I'm struggling with the jQuery selector for this select menu. Neither of the following are working for me. $("select#f_location_type_menu") $("select#f_location_type_menu[]") Any ideas?
[jQuery] JQuery .slideToggle help!
Hey Everyone I am new to the world of JQuery and having a bit of a problem with the Toggle effect. Here is the code that i am using: <script type="text/javascript"> $(document).ready(function(){ $(".button").click(function(){ $("#panel").slideToggle("normal"); }); }); </script> So from my understanding just to make sure that i am looking at this right, any button that i want to use the effect i give it the class="button" which then makes the id="panel" slide, is that correct?
[jQuery] Ui Slider startValue
Hi, I have some trouble with my slider : $('#price').slider({ min: 100, max: 200, startValue:150, stepping: 10, slide: function(e,ui) { $('#priceUser').html(ui.value); }}); The startValue doesn't work. May i forget something ?
[jQuery] Questions about BlockUi
Hello, is it possilbe to use a css when blocking an element? I just found a way, to overwrite css parameters. But it would be nice to use a css class. Perhaps like this: $('#elementId').block({ class: 'cssClass' }); $('#elementId').unblock({ class: 'cssClass' }); Greetings, Stefan Sturm
[jQuery] binding after ajax
Hallo, I'm using jQuery to turn my links into ajax calls, using $.post. The result is updated into a container with $('#container').html = result. What I want to do is refresh a list of products in this manner, e.g. as result of a search. Each product has a link to add the product to the cart. These link have to be turned into ajax calls, for instance: $('.ajaxPopup').click(function () { ajaxPopup(); }) The ajaxPopup function is responsible for making the $.post call and updating the html. My question
[jQuery] Tablesorter Date Parser: FF Fine, IE Not Fine
In my table, I have a column with dates that are formatted as "Month Year," i.e. "August 2008." I have this parser: ts.addParser({ id: "monthyear", is: function(s) { return false; }, format: function(s) { var a = s.split(' '); a[0] = this.getMonth(a[0]); return $.tablesorter.formatFloat(new Date(a.join(" 1, ")).getTime()); }, getMonth: function(s) { var m = ['January','February','March','April','May','June','July','August','September','October','November','December']; var n = m.length; for(var i=0;
[jQuery] Pick a button at random
Hi all, If I have a grid of 25 <input type="button">, all of which have a specific class, what would be the best way to pick one of these buttons at random, so that I could e.g. grab the value or disable it etc. etc.? All help appreciated :) Regards, Michael Price
[jQuery] Problems with droppable hoverClass in Firefox
Hi There, I made a test page, in which i made the grey bars labeled "click me" draggable. Now, when dragged, i want some droppable divs to show up (with grey border), and if i hover over them, the background should change. On Drop, there should be an alert. http://dirth.stimme.net/jtest/jtest.html In IE, surprisingly, all works great. But if i try to move the draggables over the droppables in Firefox, the hoverClass of the droppables never gets activated and i can't drop the draggable on the droppables
[jQuery] why this can't stop user leave from input field
Hi, all Why can't the following stop users from leaving input field1? How can I stop users from leaving a input field if I find something wrong? Thak you inadvance! $(document).ready(function(){ $('input[name=field1]').blur(function(event){ console.log('leaving'); event.preventDefault(); }); }); jack
[jQuery] jQuery + splitter plugin
Hi, i use in my project jQuery and splitter plugin ( http://methvin.com/jquery/splitter/ ) You may see that on page http://www.tme.eu/en/katalog/ On my copy of IE6 I don't have problems with that application, but I have informations about problem with that page on IE6 - she die when client want to run that page - crash on moment, when splitter do job with divs have anybody that problem with splitter or with IE6 - maybe IE6 have problem with one of elements JQ ? Greetings and thanks for any help hary
[jQuery] ThickBox Duplicate Close button (See example)
I have a variable in the URL string that's called video if video is equal to play (Which it is in the link below) I trigger a click on the thickbox link: $(document).ready(function() { if ($.getURLParam("video")=='play') { $('.thickbox').trigger('click'); } }); I've also tried the $('.thickbox').click(); If you physically click on the thickbox linked image (Black image in the left rail that says "JUST IN") It will display properly. So it has to do with the simulated click. Has anyone
[jQuery] Standalone plugin?
Hi, I use just one plugin (cornerz) on my site and loading 30kb of jquery increases loading time necessarily. Is it possible to extract portions of jquery to use with the plugin, or better yet, a "basic" version of jquery that has only a few things that this/all plugins use? I'd appreciate any help. Many Thanks
[jQuery] stop animating jquery-serialscroller by onmouseover
Hi everyone! As i am new here, i'm wondering if this is the right place to post my question about interactive control of serialScroll. I am trying to describe my problem, any help or hint is greatly appreciated! I am using jquery (jquery.js), jquery-scrollto (jquery.scrollTo-1.3.3- min.js.js) and jquery-serialscroller (jquery.serialScroll-1.2.1- min.js) on a website. There are four slide-divs i am serialscrolling. This works fine and looks smooth. Here is the code for initialization: $(document).ready(function(){
[jQuery] Tablesorter, something not making sense
The option to fire off "sortStart" and "sortEnd" is cool in that i can tie in something like BlockUI to give the user some feedback that the table is being sorted (if it's a really long table, it could take a second or two, hence my desire for this) Anyways, if one sets "sortable" to false on a column, the "sortStart" fires anyways on said column.... $headers.click(function(e) { $this.trigger("sortStart"); var totalRows = ($this[0].tBodies[0] && $this[0].tBodies[0].rows.length) ||
[jQuery] jTemplates help
<div dir="ltr">Hello again, I started using jTemplates for part of a sites registration process. Everything appears correct, yet we are getting errors when parsing the template. Specifically on line 589 in the jTemplate code, the eval always leaves the variable undefined. Here is the template: <ul id="userPhotoList"> {#foreach $T.img as image} <li> <div> <br/> </div> <img alt='$T.image.FileName' src='$T.image.ImageUrl' /> <a href='$T.image.RemoveUrl'>Remove</a>
[jQuery] Creating ScrollTo link with JQuery
Hai, i try to create a link with JQuery but i get failed. Please help me and give me the solution for this. I am newbie. I am not good understand javascript. !! ~ ~ ~ ~ ~ !! I want to create link like this : <a id="name1" href="#" onclick="function();">This will be go to the name2 with ScrollTo</a> <h3 id="name2">This is the destionation ScrollTo</h3> !! ~ ~ ~ ~ ~ !! I have create this code on <head> : $(document).ready(function(){ $('#name1').localScroll({ target:'#name2', axis:'xy', queue:true
[jQuery] looking for insight into how to implement a site's functionality....
Hi.. I came across a couple of sites that allow a user to kind of create a linked tree, www.geni.com, and www.cogmap.com. basically, the sites allow you to enter information, and to then link to another node... I'm trying to figure out where to turn/how to even begin to create this... ideally, I'd like to know if there's a script/chunk of code, or someone I could talk to about this. I figured I'd post here, as well as to the php mail list and see what happens... Searching for a clone via the 'net
[jQuery] Results Filter
Hi all, Is jQuery capable of performing a "results filter" similar to this one made in flex? http://examples.adobe.com/flex2/inproduct/sdk/flexstore/flexstore.html Or even better, anyone got a working example if it actually is possible? Thanks, Kyle
[jQuery] [autocomplete] tabbing out of field instead of selecting clears user input
Is there any way to configure auto complete so that, when the user tabs out of the field without finding a match, the input the user typed does not disappear. I have a search form which contains one input field and a submit button. The user can type their search term in the field and a list of options is displayed. If the user selects one of the options it redirects to an appropriate page. However, if the user does not see an option that suits them they can click the submit button and be sent to
[jQuery] qustion about radio button event
hi, all I have some radios and when each of them is clicked it will run a long ajax request. how do I disable the other radios when the current ajax hasn't finished? thank you in advance! jack
[jQuery] how to disable some radio buttons from being clicked
Hi, all I have some radio buttons and each of them will do an ajax request taking a while to finish. How do I disable the other radio buttons from being clicked when the current clicked ajax hasn't yet finished? Thank you in advance! jack
[jQuery] Tablesorter Date Parser: FF Fine, IE Not Fine
In my table, I have a column with dates that are formatted as "Month Year," i.e. "August 2008." I have this parser: ts.addParser({ id: "monthyear", is: function(s) { return false; }, format: function(s) { var a = s.split(' '); a[0] = this.getMonth(a[0]); return $.tablesorter.formatFloat(new Date(a.join(" 1, ")).getTime()); }, getMonth: function(s) { var m = ['January','February','March','April','May','June','July','August','September','October','November','December'];
[jQuery] Tablesorter Date Parser: FF Fine, IE Not Fine
In my table, I have a column with dates that are formatted as "Month Year," i.e. "August 2008." I have this parser: ts.addParser({ id: "monthyear", is: function(s) { return false; }, format: function(s) { var a = s.split(' '); a[0] = this.getMonth(a[0]); return $.tablesorter.formatFloat(new Date(a.join(" 1, ")).getTime()); }, getMonth: function(s) { var m = ['January','February','March','April','May','June','July','August','September','October','November','December'];
[jQuery] Listening for enter key, custom form submit
Hi There I've integrated a keyup event listener to listen for when the enter key is pressed on certain elements, to submit a form, as I am using a custom submit button (in the form of an anchor). I'm using the following code: $("#email, #password").keyup(function(e) { if(e.keyCode == 13) { $("#loginform").submit(); } }); Fair enough, that works as expected. The only problem I have is when I focus on the #email field, for example, my browser presents me with a drop down list of previous entered email
[jQuery] application using jQuery and distro
Hi, I tried to understand the license under which jQuery is released but I kept on having some doubts. Here is my question: If you develop an application using jQuery, and that users can download the application in question, is it ok if they download the jQuery file that the application is using, or do they have to download it from the jQuery website and install it in order not to break any license agreement. Thanks in advance :) Cheers -jj.
[jQuery] Div-Toggle doesn't work in IE
Hi There, i'm new to jQuery and tried to toggle some divs inside a container (with a click on the grey bar of the container). You can find the Site here: http://dirth.stimme.net/jtest/jtest.html In FF, my code works great but in IE (6 and 7), the divs only disappear with a click, but with a second click they won't reappear. Instead, the IE shows me a Javascript warning. Can somebody tell me, whats the problem with my code in IE? I first tried the slideToggle function, but it was extremely laggy,
[jQuery] help: get all rows with checked checkboxes, then doSomething to them
I have a table something like this: <table id="myTable"> <thead> <tr> <th>this</th> <th>that</th> <th>theOther</th> </tr> </thead> <tbody> <tr id="row1"> <td class="act"><input type="checkbox" name="actions"></ input></td> <td>da</td> <td>dee</td> </tr> <tr id="row2"> <td class="act"><input type="checkbox" name="actions"></ input></td> <td>da</td> <td>dee</td> </tr> ... <tr id="row30"> <td class="act"><input type="checkbox" name="actions"></ input></td> <td>da</td> <td>dee</td> </tr> </tbody> </table>
[jQuery] jQuery Form Plugin - upload file
The response with type json does not come back at uploading files. Prompt, how it is possible to solve this problem.
[jQuery] viewing blob images
i have blob images in mysql i need to display these images. how can i acommplish tihs task with help of $().load function?
[jQuery] click() on Hidden Button?
I have a form with a lot of checkboxes. The visible submit button for the form goes to a specific next page on my site. If the user clicks a menu item before clicking the visible submit button on the form, I would like to call a hidden submit button which I have placed on the page. This hidden submit button is called "Save my Selection." This hidden submit button submits the data from the form, and saves the checked/unchecked states of the users checkboxes, before the user goes to whatever page he
[jQuery] Populating a search from a Multi Select.
Hello all, I am having some problems with a plugin I am trying to use to search through a multi-select box in a form I am creating. I have attached the plugin code here is the application code <script type="text/javascript"> $(document).ready(function () { $('select#target_FC option').quicksearch({ position: 'before', attached: 'select#target_FC', loaderImg: '/images/loader.gif', focusOnLoad: true }); }); </script> and here is the HTML in the multi-select <select name="target_FC" id="target_FC"multiple="multiple"
[jQuery] Tutorail to traverse JAVA SCRIPT TO HTML
Free tutorilas free of cost http://www.freewebs.com/rrobot
[jQuery] treeview
Hi there, great work whit treeview plugin :) I have just a simple question (i'm really new in jquery) I'm talking about Prerendered Large Tree Demo. it's possible to open the tree elements with accordion , so that all the other elements collapse automatically? tnx in advance here is an example of what i'm trying to do. http://www.pirolab.it/bim/interna.html diego
[jQuery] Minified version of cluetip (how to minify js myself?)
I'm trying to minify the cluetip plugin but it fails everytime I try. Previous version had a minified version included, but the latest doesn't seem to have that. And I’ve made some tiny changes (added some div, changed default values) to the code so I'd like to minify it myself also. I've tried with JSmin-php (http://code.google.com/p/jsmin-php/) but it fails for cluetip, I've also tried "cleaing" up the code according to JSLint suggestions but halfway through or something I became lost. Also, does
[jQuery] How can I add a new Treeview method like a .reload([param])?
Hello Jörn Zaefferer... or some else... I wish to add a new method like a reload or refresh. Because I wish add a new "side tree control" named "Order by text". e.g.: var tree; jQuery(document).ready(function(){ tree = jQuery("#browser").treeview({ collapsed: true, animated: "medium", control:"#sidetreecontrol", persist: "location", url:"../categoria" }); }); And a new botton, I can call that a method like that: tree.reload(url:"../categoria?orderbytext=1");
[jQuery] How to call a function in a hidden form.
I have a submit form that will appear with - jQuery("#new_topic").toggle("slow"); - Unfortunately, I don't seem to figure out how to call the function - submit_topic_form();- with a jquery command when the user is submitting the form.. <script type="text/javascript"> jQuery(document).ready(function(){ jQuery(".inputsubmit").click(function(){ jQuery("#new_topic").toggle("slow"); }); jQuery("#submit_topic").click(function(){ submit_topic_form();
[jQuery] [tooltip] opacity problems
I'm having trouble with the tooltip plugin and opacity. It seems that no matter what opacity I set, it gets overridden by the opacity in the default css file, jquery.tooltip.css. I'm noticing that the demo seems to exhibit the same issue: http://jquery.bassistance.de/tooltip/demo/ If you look at the #fancy and #fancy2 tooltips, they have an opacity set to 1 yet you can still see through them. It appears all the tooltips on the demo page have an opacity of 0.85, which is the opacity set in the css.
[jQuery] [validate] Validation messages and Firefox 3
If you check the pages using Firefox 3 the error messages are not displaying in the correct styles.. How can I solve this?
Next Page