[jQuery] Autocomplete - clearing the value possible.?
<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> <!-- /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0in; margin-bottom:.0001pt; font-size:12.0pt; font-family:"Times New Roman";} a:link, span.MsoHyperlink {color:blue; text-decoration:underline;}
[jQuery] No ajax methods working in IE7
I wrote a simple little quick contact form using $.post, it works fine on every browser INCLUDING internet explorer 6, however 7 crashes instantly when you click submit. To test and see if it was just my script that was bad I opened http://book.learningjquery.com and went to the section on Ajax references where it lists every ajax method and an example button to instantiate each one, none of which work in IE 7. Please help!
[jQuery] Expanding the clickable region of a checkbox
Hi I have some checkboxes in table cells. I would like a click anywhere in the td to trigger the toggle of the checkbox. I thought something like this would do it (obviously with more specific selectors for the real world) $("td").click(function(){ $(this).children("input").each(function(){ if (this.checked) { $(this).attr('checked',''); } else { $(this).attr('checked','true'); } }); }); this works for a click on the table cell, but stops the action of clicking on the checkbox itself
[jQuery] ToolTip Sticky
I'm trying to get the following functionality I used to get from a Dojo Tooltip v 0.4 I want to have like a mini-form on my tooltip. I would hover over my element and the tooltip would appear. Then I could mouseover the tooltip. To keep it from disappearing I put sticky:true - the thing is, if I hover off of the tooltiped item, I want it to disappear. Basically, I want to be able to hover over the tooltipped item and the tooltip without the tooltip disappear and without having to have a close button.
Remote requests not working
Hello, This does not seem specific to jQuery, but I was hoping that someone could help me see something I might be missing. For the life of me I can't get remote requests to work. I'm using FF3b5 to do the debugging. You can view my headers and response here: http://pastie.caboo.se/198451 With the xml http request object, I get a response code of 0 and a blank responseText attribute. This is driving me absolutely insane - if anyone could help it would be much appreciated! It is worth nothing that
[jQuery] Jquery Help - Navigation
This is probably something very basic, but why does this logic only work for the first section of ul's in the nav and not the next? Please enlighten me. Thanks. <style type="text/css"> body, body * {margin: 0px; padding: 0px;} ul#mainNav li{display: inline;} #nav{background: tan; width: 100%; font-size: .90em; text-align: center;} ul#mainNav a { text-decoration: none; padding-right: 6px; padding- left: 6px; color: #fff;} ul#mainNav a:hover { background: #000;
[jQuery] Highlight code WITHIN a textarea?
Is there a way to highlight code within a textarea block? It would be nice to be able to color code the text, as we have a large textarea that html and javascript is added to. I was looking at using Chili, but it does not seem this would work.
[jQuery] how to create a container for page flows and history
Hi - I am new to jQuery. The question I have is probably a common one, and hopefully it's got a common solution :) I am wondering if there is an easy way to create a "container" to contain a series of pages that would be loaded via ajax, possibly with ability to handle history (i.e. goes back to the previous page loaded within the container). Right now it seems the main challenges are 1 - load pages via $('#field').load( callback ); 2 - intercept the page's form or href and convert them to use ajax
[jQuery] Problem launching facebox in Safari
I have a site that I am building: www.n-prize.com/test_platform/index.html I use Facebox all over the place on it in a re-styled form. In two places on the site ('Rules in Full' and 'Press') I have also placed the jQuery plugin 'serialScroll' inside it. You will see it scrolling through a list of rules. It works just fine except Facebox fails to launch in Safari, but only where serialScroll is inside Facebox it. Rather than place the contents inside Facebox, Safari put the contents in a fresh page.
[jQuery] The simplest of questions I'm sure...
I'm brand new to jquery, and I need a little help with this simple accordion menu code: $(document).ready(function(){ $("dd:not(:first)").hide(); $("dt a").click(function(){ $("dd:visible)").slideUp("slow"); $(this).parent().next().slideDown("slow"); return false; }); }); The html is like this: <dt><a href="/">Section</a></dt> <dd> <ul> <li><a href="url">Item</a></li> And so on... It works nicely, but I don't know how to make it so
[jQuery] The simplest of questions I'm sure...
I'm brand new to jquery, and found a nice little 10-line accordion- style menu script: $(document).ready(function(){ $("dd:not(#orasm)").hide(); $("dt a").click(function(){ $("dd:visible)").slideUp("slow"); $(this).parent().next().slideDown("slow"); return false; }); var lmenu = document.getElementById('ortitles'); lmenu.className = "activeMenu"; });
How to select childs located at the pointed nesting level?
Today I have used JQuery first time and at one stroke bumped into problems. How to select childs of the element located at the pointed nesting level? For example, I have a menu tree: <div> <ul> <li> #1 <ul> <li>#11</li> <li>#12</li> </ul> </li> <li> #2 </li> </ul> </div> How could I select all "ul"-element at the second level of nesting; is it possible?
[jQuery] date picker doesn't work
Hello, I'm trying to use the date picker plugin but I have a issue with it. I load all the required files jquery-1.2.3.min' 'date' 'jquery.datePicker' and I create the picker <script type="text/javascript"> var $j = jQuery.noConflict(); $j(function() { $j('.date-pick').datePicker(); }); </script> I use jQuery.noConflict() since I use scriptaculous as well. When I load the page have the error below: $j(".date-pick").datePicker is not a function $j('.date-pick').datePicker(); Any idea? Thanks for teh
[jQuery] Chili 2.0 - New release of the jQuery code highlighter
This is just to let you know that a new version of Chili is out and ready to be downloaded. http://noteslog.com/post/chili-20-released-today/
[jQuery] [Validate] this[0] is undefined error
I'm using Jörn's awesome Validate plugin and have accidentally broken something. I have two radio buttons in a fieldset like so: <fieldset id="meta26group"> <input id="meta26_3" class="required digits" type="radio" value="3" name="meta26"/> <label for="meta26_3">Stuff</label><br/> <input id="meta26_5" class="required digits" type="radio" value="5" name="meta26"/> <label for="meta26_5">Other Stuff</label><br/> </fieldset> They are inside this form: <form id="addproduct" class="content productform"
[jQuery] Trying to get plugin listed
Can someone from the jQuery team please contact me about getting my plugin back on the Media page? The project has been established for quite some time, is filed under Media, and has its own project page: http://www.sean-o.com/jquery/jmp3/ But it will not show up on the Media page: http://plugins.jquery.com/project/Plugins/category/52 no matter what I do. I've tried editing, re-assigning, and recreating the project. Pls email me at seanodotcom -at- yahoo -dot- com Thanks, SEAN O http://www.sean-o.com
[jQuery] javascript in php loop, want to take if out of the php while statement?
Hi all, I'm using cookies to hide some content on page load & at the moment the jQuery code to do this inside a php loop, so the code below gets executed up to 20 times. any ideas on how i would include this only once to hide all content supposed to be hidden? ... while (!$display->EOF and $cnt < 20) { other php code... ?> <script type="text/javascript"> $(document).ready(function(){ if ($.cookieJar('CookieJar').get('<?php echo $box_id; ?>')) { $("#<?php echo $box_id; ?>").hide(); } }); </script>
[jQuery] Favorite Modal Dialog?
Hey all, I'm needing to implement a dialog that will contain an div. I need the rest of the page to go dark and have controls outside the dialog disabled. Are there any existing favorite approaches or plugins? Thanks in advance!
[jQuery] Re[jQuery] place images
Hi all, Newby here. I'd like to replace a series of images with other images Say i have img src="http://www.domain.com/123.jpg" img src="http://www.domain.com/456.jpg" Before the images are visibly loaded in the browser, i'd like to replace the src. So the browser should act if the source code would be img src="http://www.some_other.com/image_123.jpg" img src="http://www.some_other.com/image_456.jpg" Any ideas? -- View this message in context: http://www.nabble.com/Replace-images-tp17228847s27240p17228847.html
[jQuery] Google Maps / JQuery
Hello, i´m using JQuery. Overall no problem... just with Google Maps it does not work at all. While loading the code attached in the <head></head> area, all other JQuery Code stop working and are reported as error. Anybody who can fix this ? Thanks alot. For example: ----- $("#login-box") has no properties (no name)()test.js (line 19) e()jquery.js (line 11) e()jquery.js (line 11) e([function(), function()], function(), undefined)jquery.js (line 11) e()jquery.js (line 11) [Break on this error] $("#login-box").hide();
[jQuery] Yet more validation questions
I want to extend the provided cxreditcard method to count a sequence of * characters followed by 4 digits as a valid value. I need this for a form where the credit card can be populated from a previously saved value. Naturally we don't want to display the full number for security reasons but we need for the user to be able to see the last four digits. My idea was to write a new ccard method that calls the pre-existing creditcard method. If that method returns true then return true. If it returns
[jQuery] loading content form ajax request in safari
When i am loading content from an ajax request in safari, the javascript loads fine but the css does not load, is this a problem in safari 3.1.1? It seem like the thickbox plugin does it fine but i don't see what they are doing different from my plugin. -- View this message in context: http://www.nabble.com/loading-content-form-ajax-request-in-safari-tp17259330s27240p17259330.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] JQuery Help..
Hi, Can someone please help me on below problem? I have a JSON formatted String like below.. <b> <span style="color: rgb(204, 0, 0);"> {<span style="color: rgb(0, 0, 153);">"match":["Chicago","California","Calcutta"]</span>, </span></b><b><span style="color: rgb(204, 0, 0);">"AllTag":["Newyork","Paris","London","Chicago","California","Calcutta"]</span></b><b><span style="color: rgb(204, 0, 0);">}</span></b> I have to write a function which will look for string <b>"match"</b> in above JSON formatted
Need input to be appended on blur()
EDIT: I noticed that every time I do blur() on the first input it generates new ones, this needs to be limited to once per input. Hi there! Have a page where the user should be able to enter as much information as they want into inputs but I don't want the page to be filled with infinite numbers of them. So I did this: <ul> <li class="myLi"><input type="text" name="option[]"></li> </ul> Then I added this: $(document).ready(function(){ $("li.myLi input").blur(function() { $("li.myLi").append('<li
[jQuery] Problems with order in animation
I have a menu with 3 items: Agradecimientos | Comentarios | Contacto If I click one of these elements, a box may slide down, and show content. And if the box is already down (if one of the items is active), the box should firts slide up, replace the content with the new one, and slide down. So, the order should be: (if collapsed) - Set the active state to the item selected - Slide down the box (#textBox) - Append new content in a div.content (display:none) - Fade in content (if shown) *- Remove the
[jQuery] trigger event on resize of window
Is there a way to trigger an event when the use resize the window with jquery or vanilla javascript? -- View this message in context: http://www.nabble.com/trigger-event-on-resize-of-window-tp17262754s27240p17262754.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] [PLUGINS] Two new controls from Filament Group
Filament Jquery iPod drilldown widget : http://tinyurl.com/5lellm Filament jQuery date range picker : http://tinyurl.com/6hgtaq Rey...
[jQuery] getJSON callback bug in FF3
Hello group. I changed my web browser from FF2 to FF3 Beta. I develop a Catalyst application with jQuery and im almost done until changed the browser. Now all my functions that using getJSON fails with no callback. The script hits the server and receive response, but callback cant be executed. I changed back to FF2 and all works as expected. The solution is ot use $.ajax with type: 'POST' instead of $.getJSON, but now i have to change alot of code in my scripts. Is there any solution to change anything
[jQuery] jMP3 plugin: Preventing more than one song from playing at the same time.
Does anyone have any experience manipulating the jMP3 plugin (http:// www.sean-o.com/jquery/jmp3/) to stop songs when new ones are started? Here is the site I've implemented it on: http://gataylor.travinternet.com I would like to prevent more than one song playing at the same time. I'm assuming this can be done by calling the pause function in the the flash file somehow, but my brain is just not making the connection. Help!
[jQuery] Changing input value from an array
Hi there, I feel that I am in need of some help with a jQuery problem. Well right now it's not really jQuery since I haven't done anything, but I want it made for jQuery. This is what I want :) :: I have an array of values and id's in php that I easily can put into jQuery arrays. Let's say I put them in option[] and value[]. Then I print out two input boxes: <input type="hidden" name="id" value="value[0]"> <input type="text" name="name" value="option[0]"> Then I want a line / span / p that makes
[jQuery] Create slide box like yahoo
Hi all! I want create slide box like click on "More Yahoo! Services" in http://www.yahoo.com. Please help me thanks
[jQuery] Write to a file?
Hi, I want to write data entered by users to a php/html/txt file. Is this possible using jQuery? Regards
[jQuery] Switch content of Div
Hello! I'm trying to switch the content of two div when I drop one on another. Each "tbody tr" are clickable (and then I use toggleClass() on it) in order to select lines. Here is my problem : When I switch two div, lines are no more clickable in one of the two table. My jQuery : $('.block') .droppable({ accept: 'table', activeClass: 'droppable-active', hoverClass: 'droppable-hover', tolerance : 'pointer', drop: function(ev, ui) { var droppableContent
[jQuery] Filtering charachter input with jquery/javascript
Hi, I'm having a problem filtering keyboard input in a text field. Here is the page with the test: http://lab.gianiaz.com/jquery/filter_input/ I use this function to catch the key pressed by the user: function onlyNumbers(e) { key = e.keyCode; if(debug) log("onlyNumbers\nkey_code:"+key); if ((key==null) || (key==0) || (key==8) || (key==9) || (key==13) || (key==27) ) return true; keychar = String.fromCharCode(key); if(debug) log("keychar:"+keychar); // numbers if((("0123456789.,").indexOf(keychar)
[jQuery] Smooth Text-based fisheye
I would like to make a smooth text-based fisheye list. I already am using a image based one seen at my test site: http://britenews.blogsite.org/home britenews.blogsite.org/home As you can see there the text list is too pop-y. I would love for it to grow as a function of distance of mouse to element,(li in this case). any ideas on implementation or is there a easier method to do this? just for referance this is how im currently doing it. Im SURE there is a better smoother way. function fishTextIn(inObj)
[jQuery] Manipulating returned date
I have a $.post that returns: foo,bar How can I get that data to change $(id).text(data); to $(foo).text(bar);
[jQuery] Making all ids invisible except one
Hi, Given a bunch of divs with class = "subNav", how do I write a jquery expression to make all of their "display" attributes "none" except the one with id, "myId"? Thanks, - Dave
[jQuery] Ajax load, and bad javascript
I am using the jQuery ajax function using GET to load data into a div. Part of the page contains a WYSIWYG editor, which contains alot of javascript code. When I try to load that page, it starts to load it, but then basically refreshes the page, and just sits there and tries to load something. So, my question is, what kind of javascript would screw up when loaded using ajax, or innerHTML? Are there some known parts of javascript that cannot be brought in through ajax? I am just trying to debug this,
[jQuery] How to speed up IE6/IE7 $get();
I am loading a PHP script upon a select element changing, the PHP calls to db and then loads an avg of 100 PNG files that are between 5-10k. In both safari and FF there is no lag at all but in IE7 it is 15 seconds of waiting and in IE^6 it is up to 45 seconds. It almost seems that in both IE's it hangs and isn't doing anything then it resumes and you can see the images loading in the status bar at bottom of browser. Is there a way to optimize this code below for IE? Here is my code: {{{{{}//.change
[jQuery] Problems when dynamically loading jQuery
Hi, I'm writing a script which is load from 3rd party sites, and my script depends on jQuery. In other words, I need to load jQuery from my script. The trick I'm using for that is to use createElement. function loadJquery() { var jsScript = document.createElement("script") jsScript.src = "http://mysite.com/jquery.js"; jsScript.type = "text/javascript"; head.appendChild(jsScript); } So far so good. The problem is, in order for this to work, the document has to be loaded, so loadJquery is added to
Next Page