[jQuery] blur FireFox/IE
Hi, i'm trying to do a function on blur event, it works on Firefox but not on IE. what's the reason? I just do this: $('.down_menu.show').livequery('blur', function(){ $(this).removeClass('show'); }); Maybe i should precise i'm using jquery 1.2.1
[jQuery] $.post related question
Hello! I'm new to jquery (and actually, js); I'm using it to cover some customer's needs and I'm finding it pretty much straightforward however I have a problem that I can solve by looking at docs.jquery or at other tutorial/examples. I'm basically using jquery to $.post stuff to a .php script. Everything works fine for the most part. I do have a problem when it comes to abstract it a bit. I use the following code: if( some_check_here ) { $.post('page.php?rand='+Math.round(Math.random()*100000)+'',
[jQuery] Using toggle show fast and hide slow!!
how can i show a div slow and hide it fast using toggle? thnx
[jQuery] Click event calls twices
hi, i am a newbie to jQuery development. i have .click method on a class. but it calls twice. i have also used return false; and e.stopPropagation(); both are not working. i have properly check the whole document and there is only one occurance of the class. i have used the same code on simple html file and it works ok but when i used the same code for .aspx (Asp.net file) it occurs twice. any suggestion?? thnks
[jQuery] Making a "Click to bring up user information" link in jQuery
I apologize for the subject, it doesn't really explain what I'm having troubles with right now... Basically I need to create a little div popup that comes up (And stays up until an X is pressed in it), when you click on a username in a chat. Now here's the tricky part! The userIDs aren't always the same, they're gotten from AJAX and saved into the div (<div class="username" name="username" id="user_id">)... How would I go about doing this? I need to make it so when you click div with the name of
[jQuery] REMOVE
<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40"> <head> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"> <meta name=Generator content="Microsoft Word 11 (filtered medium)"> <style> <!-- /* Font Definitions */ @font-face {font-family:"Trebuchet MS"; panose-1:2 11 6 3 2 2 2 2 2 4;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0in; margin-bottom:.0001pt; font-size:12.0pt;
[jQuery] Help with jQuery, liveQuery and/or GoogleMapsApi needed?!
Hi all. Meanwhile I can do everything with jQuery I want to do, but one thing I just can't get working and it would be awesome if someone could give me a close to solution like hint, because I tried a lot now. The google maps api has those info windows that open when you click a button. Looks something like that in code: google.maps.Event.addListener(map, "click", function(overlay, latlng) { inputForm = '<input type="checkbox" id="ddd" />'; map.openInfoWindowHtml(latlng,inputForm); }); The infoWindows
[jQuery] jQuery ninja wanted for short term contract
Hope this is an OK place to post this message... We're a new startup building an exciting web application that will change people's relationship with their city, their friends and the way they see them both. We are currently looking for a jQuery master for immediate short term contract work (that could lead to a longer term relationship). To start with, we have a clearly defined and well spec'd javascript component that we need built - something similar to a stripped down (and way cooler) version
[jQuery] Is it possible to make a simple fading color rollover effect for text links?
I basically want the bg color (behind the text link) to turn red and then quickly fade away when the user highlights a text link. Is there a simple in built command for doing this?
[jQuery] onClick submit using jQuery Form Plugin
May a onClick "document.form_name.submit()" be used with the jQuery Form Plugin or must a submit button be used? http://www.t1shopper.com/voip/
[jQuery] Adding a table row and a form with jquery?
Anyone have an idea how one might add a row to a table and have the form elements in each column? Something like this: var newRow = document.createElement( 'tr' ); var groupCell = document.createElement( 'td' ); var roleCell = document.createElement( 'td' ); var requestCell = document.createElement( 'td' ); var cancelCell = document.createElement( 'td' ); var groupSelect = document.createElement( "select" ); groupSelect.setAttribute("id", 'group'); var roleSelect = document.createElement( "select"
[jQuery] getting the first child
I was trying to find the best way to get the first child element in jQuery. Seems like these all work... $('#parent').children(":first") $('#parent').children(":first-child") $( $('#parent').children()[0] ) $('#parent').find(":first") $('#parent').find(":nth-child(1)") There are all a bit ugly. I was hoping for a child() method or something similar, since jQuery has a 'firstChild' element internally. I profiled these methods in firebug, to help me to decide. Odd results. (called 100x) 1. 887ms //
[jQuery] Example of "show" callback for UI.Tabs?
Anyone have an example of using the "show" callback of the UI.Tabs? I am having a problem where for a second or two on initial page load the un-jQuery-tabbed <ul> list is showing, and then when the ".tabs()" gets run then it shows the tabbed display that i want So i figured i would set the main <div> to "display: none" and then on that "show" event unhide the div.... so then instead the user would see a blank area and then the fully tabbed interface I see the option in the ui.tabs.js file: $.ui.tabs
[jQuery] Centering Superfish menu?
Hi all, I cannot figure out how to have a centered Superfish menu! This is the site I'm working on: <http://www.wfu.edu/education/NEWtemplatedesignH.html> No matter what I do, I always get the Superfish menu left justified with the edge of the parent element. I read on another site that the menu could be centered with nested divs, but I haven't been able to figure out how! If I completely disable Superfish (remove the nav class from the ul), everything is happily centered, but not with Superfish.
[jQuery] [Off-Topic] Reverse IP Lookup
<span style="font-family: trebuchet ms,sans-serif;">Sorry, research on this topic has just left me desperate.</span><br style="font-family: trebuchet ms,sans-serif;"><br style="font-family: trebuchet ms,sans-serif;"><span style="font-family: trebuchet ms,sans-serif;"> I need to find a commercial company that provides a Reverse IP Lookup as a web service.</span><br style="font-family: trebuchet ms,sans-serif;"><br style="font-family: trebuchet ms,sans-serif;"><span style="font-family: trebuchet ms,sans-serif;">
[jQuery] Animation improvements
Hello everyone! How can i stop an animation of 1 css rule without touching everything other? For example: $('div').animate({width:'+=300'}, 'slow'); $('div').animate({opacity:'hide'}, 'slow'); $('button').click(function(){ $('div').stop('width').animate({width:'-=300'}, 'slow'); }); And maybe it's good itea to have namespaces for animation just like at events: $("#block1").animate( { width: "90%"}, { queue: false, duration: 5000, namespace:'blah-blah' } ) $("#block1").stop('.blah-blah'); And can
[jQuery] What is $.data?
Hello, I'm looking through and tracking the code for a jQuery autocomplete plugin (found here: http://reinh.com/2008/1/7/new-jquery-autocomplete-plugin ) I'm trying to get my JSON data to appear properly, and getting close, however, i keep coming across $.data...for example: $.data(document.body, "autocompleteMode", false); Could somebody tell me what $.data is and what it's purpose is? Perhaps point me to soem resources? i can't seem to find anything. Thanks! Adam
[jQuery] jeditable question
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=iso-8859-1"> <META content="MSHTML 6.00.6000.16587" name=GENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=#ffffff> <DIV><FONT face=Arial size=2>Hello,</FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2>I have been using jeditable just fine, until I tried with French accents.</FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV>
[jQuery] How to make a dropdown with checkbox inside ?
Hi there, I would like to use this sort of dropdown : http://artdstract.home.pl/mav/ms/ (but with jquery). Anyone knows if a plugin exists to do that ? Couldn't find it in plugins section ! Thank you :)
[jQuery] superfish animation issues
Joel Birch-- It looks like you released version 1.4 of superfish. In firefox anyway, if you go to the horizontal menu page, you'll notice that the menu is not animated anymore. Downloading and using version 1.4 cripples my 1.3.4 based menu. Thought you'd like to know. -Brian
[jQuery] Jsquery homesite changed?
I fail to open http://www.jsquery.org/. Is there a new home site? Thanks L.
[jQuery] Updated to Interface 1.2 and now my Sortables don't work
Hi all, I just upgraded from an old Interface version (I don't know what it was, but I downloaded it from the jQuery documentation website a few weeks ago) to the latest release, v1.2. Now my sortable list has stopped working properly. Each of the portlets will now only drag once. The first drag for each portlet works exactly as you'd expect, but as soon as you've initiated a drag, it won't drag again. The other portlets will drag (until you do them once too). There are no javascript errors, and
[jQuery] Help with draggable / droppable
I'm wondering if anyone would be kind enough to help me with draggable and droppable. I'm relatively inexperienced in jquery and css. What I want to do is show a list of draggable blocks (referring to the column headings in a CSV file) and to be able to sort them into a set of boxes (fields in a database table). I have a table where the cells contain a set of draggable <div>s and a destination table with droppable <td>s and this bit works fine, I get the event on dropping a div in the table cell.
[jQuery] OT: Networking Vista Home/Home Premium and Leopard
<!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.16587" name=GENERATOR></HEAD> <BODY> <DIV dir=ltr align=left><SPAN class=958031514-17012008><FONT face=Arial size=2>Who would have thought that this would be such a difficult task.</FONT></SPAN></DIV> <DIV><SPAN class=958031514-17012008><FONT face=Arial size=2></FONT></SPAN> </DIV> <DIV><SPAN class=958031514-17012008><FONT
[jQuery] How to validate form controls
Hi, i have 3 textboxes under <div id="mydiv">. i would like to validate the Textbox ie textbox is empty. i have done validation for each individual textbox by using their id,but i need coding for validate the TextBox using div id ie mydiv. Waiting for your favourable reply, karthik d.s
[jQuery] validation + niceforms - missing styles
Hi, I'm try to user http://docs.jquery.com/Plugins/Validation#Form_submit validation plugin with http://www.lexcat.ro/nicejforms/ niceforms plugin . This is errors with styles: http://www.nabble.com/file/p14771796/Untitled-1.gif Thanks for suggestion! -- View this message in context: http://www.nabble.com/validation-%2B-niceforms---missing-styles-tp14771796s27240p14771796.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Submit a form via function call
Why won't the code below submit the form? I want to submit the page using links, buttons, etc. Is this even possible? ----------- <!doctype html public "-//w3c//dtd html 4.0 transitional//en"> <html> <head> <title></title> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript"> function dosubmit() { $("myform").submit(); } </script> </head> <body> <form method="post" action="test.php" id="myform"> <input type="button" id="button" onclick="dosubmit()" value="click
[jQuery] Jquery, Jsonp and UTF8
Hi guys. I have an issue with jQuery using Jsonp and i would like to know if anyone may help. I'm using the getJSON function to call an URL on another domain; everything works fine except that the content i display in my callback function is displayed using UTF8 encoding with Firefox and ISO8859 in IE :S - Example of a Jsonp content : myCallBack({"status":1,"content":"Page complète"}) //The "Page complète" is the UTF-8 version of "Page complète" (this is French ^^). - Example of Callback function
[jQuery] [TABS plugin RELATED] Look mum, TABS layout only with CSS !!
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> </head> <body bgcolor="#ffffff" text="#000000"> Looking at "official" TABs plugin, I realized that the HTML structure is not very "natural". It uses a list (UL) of tab headers follow by tab bodies (DIV). Normally, what you get from your favorite CMS is something more like : a header (div, h,...), its body (div), another header (div, h, ...), its body (div), etc... My challenge was, using this last "natural" HTML structure,
[jQuery] jmaps - callback function problem
I am trying to make use of the jMaps plugin <a href="http://digitalspaghetti.me.uk/2007/11/20/jmap2-beta-release-out">http://digitalspaghetti.me.uk/2007/11/20/jmap2-beta-release-out</a> to retrieve the lat and long of an address so I can put it into a form element. So far I have the following code, I can stop the plugin putting the pointer on the map (by adding addMarker:false ), so at least I know that I should be getting a variable with the point coords in it: (function($){ //$.fn.jMap.defaults.mapType
[jQuery] [ANNOUNCE] jQuery.tabindex plugin
Hi everyone, Recently I've been working on a plugin for jQuery that will make adding keyboard accessibility to your user interfaces a lot easier. In the process of working on this, I ran into a number of inconsistencies in the way that browsers handle the tabindex attribute. Getting, setting, and checking for the presence of tabindex is a pretty common task for handling keyboard accessibility, so I decided to roll this into a little plugin for jQuery. I've documented the plugin on my blog, but here's
[jQuery] TexoTela select box manipulation modification
Hi Guys, I am trying to add a function to the TexoTela select box manipulation plug-in (http://www.texotela.co.uk/code/jquery/select/). I am trying to add a function called moveOptions() that will function like a cut & paste from one text box to another. There is already a function called copyOptions() that copies a selected value from one select box to another. I copied the code from copyOptions() to my new function moveOptions() to modify. I figure that the only change would be to remove the selected
[jQuery] A problem about $(function somefun(){});
hey , everyone , I am new comer. I use jquery.js in my website, and I write code like following to initialize some params: $(function someFun(){ //some codes }); but , there is a statistics script in the same page.The statistics script is so slow that someFun cannot run at once. How can I improve my code. thanks
[jQuery] clueTip + forms
Hey guys, I'm just curious if anyone has successfully been able to use a form inside of a clueTip. I am trying to implement pre-existing form validation that uses getElementById, but it appears as though I am unable to access anything inside of the clueTip this way. Even <label for="fieldID"> doesn't work properly. Is there something I am doing wrong or do forms and/or getElementById not mesh well when used inside of a clueTip? Thanks, Nick
[jQuery] Multiple & autocomplete selector
Hello there, I was wondering if you knew about a plugin, or if you knew if it was easy to make a text input coupled with an autocomplete functionality which adds a "box" for each item added to it. A bit like facebook does to add multiple recipients for a message into a text input, as illustrated here: http://refreshpartners.com/fb_dev_wiki_images/fb_multiple_friend_input.jpg Many thanks! Julien
[jQuery] jquery autocomplete double click behaviour
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> </head> <body bgcolor="#ffffff" text="#000000"> How i can disable the behaviour when i double click over a field with autocomplete? is like the "Single Bird (remote)" example in <a class="moz-txt-link-freetext" href="http://jquery.bassistance.de/autocomplete/">http://jquery.bassistance.de/autocomplete/</a> <div class="moz-signature">-- <img src="cid:part1.05090507.05090200@yahoo.com.ar" border="0"></div> </body> </html>
[jQuery] Loading dynamic content into tab (ui.tabs)
I'm having trouble getting dynamic content to load into a tab. At present, I'm using the the the "Ajax tabs" example from the ui.tabs documentation. The file I am trying to load works fine when I call it independently, but when I try to load it in a tab, the "loading" text and spinner is the only result. I have read through the docs on using ".load", but have not been able to get that to work either. Any suggestions or pointers to some other examples I could review would be appreciated. TIA
[jQuery] how to hide option in function
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=iso-8859-1"> <META content="MSHTML 6.00.6000.16587" name=GENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=#ffffff> <DIV><FONT face=Arial size=2>Hello,</FONT></DIV> <DIV><FONT face=Arial size=2>I am using the context menu with 3 <td id> verticals, horizontals and all articles</FONT></DIV> <DIV><FONT face=Arial size=2>In it I have 3 options vert, horiz, and remove that
[jQuery] clone help
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=iso-8859-1"> <META content="MSHTML 6.00.6000.16587" name=GENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=#ffffff> <DIV><FONT face=Arial size=2>Thank you Karl. I will be more careful next time.</FONT></DIV> <DIV><FONT face=Arial size=2>-----------------------------------------------------------------------------</FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV>
[jQuery] IE Draggable Bug using Interface
Hi there, I work on a very strange bug at the moment .. it occurs in IE6/7 but not in Firefox. I use jQuery and the draggable-Plugin from http://interface.eyecon.ro/. Using the demo, all works fine - but testing it on another platform always causes the same bug: the object can be dragged once and stucks when I release the mousebutton. I actually c&p't the whole demonstration and c&p't the singe js-files. The result can be seen at http://www.chaosarena.de/breakout/index2.html But the bug is still
Next Page