[jQuery] autosuggest help
Hello. I'm trying to figure out the bassistance jQuery plugin: Autocomplete. From what I can gather if I want to get results remotely they must be held in an external php file (ie. search.phps). Is it possible for the plugin to get results directly from a mysql table? If so how can I get it to search through the table? Thanks. From - Mon Jan 4 10:30:25 2010 X-Mozilla-Status: 0001 X-Mozilla-Status2: 00000000 Delivered-To: jeresig@gmail.com Received: by 10.187.251.6 with SMTP id d6cs129920fas; Tue,
[jQuery] Need help with jQuery array
<div dir="ltr">I am adapting <a href="http://greg-j.com/static-content/hover-fade-redux.html">Greg-J's hover fade method</a> to a navigation menu. Demo of my menu is here: <a href="http://jimdavis.org/celtic/fadetest.php">http://jimdavis.org/celtic/fadetest.php</a> If you view the source code you will see that I repeat the jQuery function for each menu item. Since this nav menu will have about 10 items I want to change the script to use an array to minimize the code. What needs to be changed to use
[jQuery] autocomplete and scrolling with IE7
If you click on the scroll bar and try to click anywhere else on the page without selecting an item, the results never go away in IE7. It works fine in other browsers. Example: http://education.llnl.gov/jquery/ Click the Auto Complete on the left and type "Mod" into field. Is this a known bug?
[jQuery] Cycle plugin newbie question
this should be pretty easy to answer. im a complete newbie to jquery and javascript, but id like to use the cycle plugin (http://malsup.com/ jquery/cycle/) on my website to animate a few images. i know html and css but i could not find clear steps or documentation on the website as to how to implement the plugin on your page. i have viewed the page source on a few pages that used it and tried to copy/paste/match the code but none of it has worked so far. i was wondering if there was a tutorial somewhere
[jQuery] datepicker plugin: question regarding date range
how do i get datepicker to display 5 days previous from date selected? bascially date range but i don't want to set it for being between specific dates. the fuctionality i'm looking for is user selects today date...date picker shows today's date and 4/5 days prior--i need to be able to retrieve this data...date picker pass it somehow? is this sort of functionality available or do i need to write the code for it? i'm still wadding around jquery....thanks for patience
[jQuery] Lightbox balupton
Hi, Playing around with the lightbox. Works nice! Only one 'little' problem though: When using it with IE6, the browser locks an the computer is having a hard time. I already tried to explicitly add ie6_support: true. I used css to hide the info box (and close link), that couldn't cause the problem I assume. Any ideas? Unfortunately I cant give a link to the page...
[jQuery] add regex in $('.class')
I want to make this work... $('.class' + [$[1-9][0-9]?] + '').each(function() {....etc mean that the class would be .class0 or .class99 etc. thanks for the help jeremyBass note also tried: $('[class=Round_gen^[1-9][0-9]?]').each(function() { $('.Round_gen'+ [(/$[1-9][0-9]?/)] +'').each(function() { $('.Round_gen'+ (/$[1-9][0-9]?/)]+'').each(function() { along with many others...
[jQuery] element creation using wrap behaves oddly
i just want to bring this up for discussion to see what people have to say about it and to further my understanding of how jquery works and why it works that way. maybe its a bug? imagine the base code <b>Hello World!</b> // fails to assign click handler: $("b").wrap($("<a href='#'/>").click(function(){ alert("foo"); })); // also fails... wrapAll, wrapInner etc // works as expected: $("b").replaceWith($("<a href='#'>Hello World</a>").click(function(){ alert("foo"); })); // also works as expected:
[jQuery] Scrolling link menu - jQuery version?
I vaguely remember that I have seen a jQuery version of this http://web.archive.org/web/20030405135609/http://www.scriptbreaker.com/examples/scroll_menu.asp (unobtrusive unordered list to menu transformation script) But, can't get that by googling. Has anyone bookmarked such plugin? TIA -- <?php echo 'Just another PHP saint'; ?> Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com/
[jQuery] Any plug-ins that deal with formatting text?
Hey all, I'm looking for a jQuery plug-in that will help with formatting text in a textarea. Something like Wordpress' or Gdoc's formatting bar. Basically I want to be able to bold/italicize/etc. text for users without them having to understand HTML. Any direction to an existing plug-in would be greatly appreciated!
Problem with Jquery hover
Hi, I'm trying to add a class to a <td> tag (which already has a class "description" on it) within a <tr> using JQuery when the user hovers over the <tr> tag. But my code doesn't seem to work. Please can you help? Here is my code: $(document).ready(function(){ $( function() { $("table.mytable tr").hover( function() { $(this).("td.description").addClass("highlight"); }, function() { $(this).("td.description").removeClass("highlight"); } ) } ) });
Selector help (selecting certain next named element)
Hi All, Could someone help me with the following selector issue: Here's a sample of my html: <div class="toolHeading"> <span class="toolName">Sample Tool Name</span><span class="toolType">Screenshot</span><span class="toolDownload"><a href="#">View Screenshot </a></span> </div> <div class="ToolDescription"> <p>Ipsum Lorem...</p> </div> When this html is displayed it renders the three spans within '.toolheading' on a single line and the following div (.ToolDescription) is hidden by default. I want
[jQuery] Problem manipulating data in part loaded by AJAX
I am using a form statement. Consider, a form with an input statement with id="id1" statement. When the value of id1 changes ajax is fired which loads a modified form with a new textfield with id say id2. Now, the js fragment in the file which was $ ('#id2').blur("Actions......") is not executed. Now, i tried including ('$#id2').bind("blur",function(e){Actions}) in the function that loads the data. This is done immediately after the data is loaded. But still, id2 does not respond to the blur event.
jQuery and Rails :collection
Hello, I have a RoR partial that generates a block of HTML for every record in the collection. Each block is constructed with identical markup. I have a hidden div that does the show() hide() thing. My problem is every instance on the carries the same id's and classes, so when I click to show 1, it shows all. jQuery(document).ready(function() { jQuery('#user_box').each(function(index) { jQuery('#member_wrap').toggle(function() { jQuery('.member_meta').hide('slow'); }, function() { jQuery('.member_meta').show('slow');
[jQuery] jquery callback issue
hi, i am using jquery in drupal i have a list like <Div class='room'> car1 (edit) car2 (edit) </div> edit=(<a href="javascript:void(0)" class="edit">edit</a>) that was link define behind edit caption. now in jquery: $(".edit").click(function(){ add_new_room(); return false; }) function add_new_room(){ .......defination of function ................................. ................................ } after ajax call in (add_new_room function) i have change the same html through ajax function like data=<Div
Adding a variable within an append function?
Hi, I have a Javascript variable name called "mouse" which has a string of text stored in it. I am also appending some HTML code to my exisiting HTML using JQuery: var mouse = "Phone number"; $(document).ready(function(){ $('div.mynav').append("<div id='mine'>MY MOUSE VARIABLE HERE</div>"); }); How do I insert my variable apple where it says "MY MOUSE VARIABLE HERE"? Thanks in advance
[jQuery] PengoWorks' Calculation plugin
Just a heads-up that I got the help I needed on this topic from PengoWorks' Calculation plugin at http://www.pengoworks.com/workshop/jquery/calculation/calculation.plugin.htm
[jQuery] superfish menu only drops down
Is there a way to get the menu to go "up" if the menu is near the bottom of the browser window? Right now the menu drops down partially out of sight in this case. Most menus that I've seen seem to be able to figure this out on the fly. They default to down unless there is no room, so they go up instead.
[jQuery] autocomplete
Hi, at first I would like to know if there's any reason why documentation of autocomplete have been removed from UI documentation? However my real problem is to change url option dynamicaly, when change event is triggered: my html code: ------------------------- <form action="" method="post"> <input type="text" name="search_input" id="autocomplete"> <input type="submit" value="" title="" class="search_submit" > <span id="lang_menu"> <input type="radio" value="lv" name="lang_radios"id="lv_radio">lv
[jQuery] jQuery and Rails Block
Hello, Im am a CSS guy moving into the world of js and RoR, so its nice to find things like jQuery and supporting groups. I am a n00b, so the more english the response the better.... Question: I have a rails partial that cycles a :collection. So every record in the db table receives the same HTML/CSS structure. There is a hidden div with extra info, that expands when the exposed div is clicked. the problem is ALL of the displayed :collections reveal/hide the extra content at the same time. where
[jQuery] Iframe onload safari
Hello, I'm trying to output an alert box on load of an iframe. Here is the code I am using: <script type="text/javascript"> $(document).ready(function() { $(window.frames[0]).load(function() { alert('done loading'); }); }); </script> It works in Firefox, but not in Safari. Any ideas as to why? Thank you, Wesley
[jQuery] need to sort european data in tabledsorter plugin
hi i'm using the tablesorter plugin and i need to sort a data column in this format dd.mm.yyyy (which i think is the european way) I read another thread about this in which european data was formatted like this 1. YYYY-MM-DD and YY-MM-DD Anyone implemented this kind of sorting? Thanks vitto
[jQuery] Dynamic created element doesn't respond to event
Hi, I have a unordered list with some elements and after some action I add another element to the list, but it doesn't respond to the click event set to the list elements. Example: Pre existing LIST: <ul> <li><a class="clicked">One</a></li> <li><a class="clicked">Two</a></li> <li><a class="clicked">Three</a></li> </ul> JS click event: $('a.clicked').click(function(){ alert('clicked'); }); JS dynamic loading: $(function(){ addElement = function(){ $('ul').append('<li><a class="clicked">Four</a></li>');
[jQuery] Remove comment script
Hello, Im looking for a jquery script that allowes removing comments (which are placed in divs) for the site with an animation and then removes it also from my database. Something similar to hyves comments system.
[jQuery] New jQuery logo usage on tshirts and stuff
In a previous thread (http://tinyurl.com/jquerylogousage) permission was given to use the old logo for printing on t-shirts and stuff. The source files were even provided. How about the new logo? Is it still ok to use? Can we get the source files?
[jQuery] How to unbind and rebind cluetips plug-in?
There is any we can unbind all the events and rebind the cluetips events. It's seems to be it's Cacheing url's and its data.when these url data changed dynamiclay it's loading from cacheing url. Thanks
[jQuery] General JavaScript opitmization question
I'm writing an AJAXy application and when I start doing an ajax call, I want to block the UI and show a loading graphic until the loading is done. For various reasons, a number of different functions might initiate a load and a number might signal its end, and in a particular sequence two such functions might be called during one "ajax load" event. As I was thinking about opimizing JavaScript anyways, I figured I see if anyone has any thoughts about optimizing the general situation where you have
[jQuery] jquery cycle - accessing attributes
afternoon all how do i go about accessing the value of the cycle's variables, namely the value 'cyclePause'. i am trying to call the pause, resume functions from a click event, and need to get the cycle's current status to call the appropriate function. cheers vince
[jQuery] [autocomplete] + [ajaxqueue] confusion
I'm a bit confused. In the autocomplete plugin source I see these lines: $.ajax({ // try to leverage ajaxQueue plugin to abort previous requests mode: "abort", The ajaxqueue plugin that Jorn links to here from bassistance.de, http://dev.jquery.com/view/trunk/plugins/autocomplete/lib/jquery.ajaxQueue.js looks like it'll work, because I see the following: $.ajax = function(settings) { // create settings for compatibility with ajaxSetup settings
[jQuery] Reset Validation with new rules
The problem: I have a form that changes its validation rules based on user input. I have tried: $("#form1").validate({rules:....}); $("#form1").unbind("submit"); $("#form1").validate({rules:....}); // Doesn't work... His there a better way to this? Can you remove all the rules and add new ones in?
[jQuery] How to bind Window Resize with richFaces?
<div dir="ltr">hi, I am trying to use the jQuery splitter with richFaces, which i am able to integerate using <rich:jQuery> tag. However, I am not able to make that "bind" function work with rich faces. I used the following query <span style="color: rgb(255, 255, 255); background-color: rgb(102, 0, 0);"><rich:jQuery selector="window" query="bind('resize', function(){ $('#MySplitter').trigger('resize');})" timing="onload" /></span> Can you people help me in binding it ? <br clear="all">..alee <a
[jQuery] [validate]jQuery plugin: Validation 1.4. Bug to support name array
I have several textbox with same name "liTitle[]". But when validate, only the first one will be validate. I search validatation's source code. Here is the problem and my fix: L404: elements: function() { var validator = this; // ############################################################ // because all my textbox with same name, so don't use this rulesCache here. // And I don't know why we should use Cache here. Seems useless // #############################################################
[jQuery] jQuery (English) | Google Groups
jQuery (English) | Google Groups Activity: High activity. Language: English. Group categories: Computers > Software ... how to add elements to a jQuery object without copying it ... @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ #########$$$$$$http://www.freewebs.com/jetstreams/$$$$$$######### @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
[jQuery] jScrollPane, hide dragscroll... possible?
Love the jScrollPane really exelent plugin! There is a parameter called: showArrows, Is there a parameter like hideDrag to hide the dragscroll and only have the arrows. or is there an other way to hide the dragscroll? Thanks
[jQuery] Help with $.ajax() function
Can't work this out myself so turning to others, chances are I'm missing something small, but let's see. I'm trying to use the $.ajax() function in my app, however it just isn't sending the GET data when I click on the link. $(document).ready(function(){ $("#peep").click(function(){ $.ajax({ url: "http://bockit.dyndns.org:8081/peep/servlet/peep", type: "GET", dataType: "json", data: "request=test&message=SupLawl",
[jQuery] jQModal is "modaling" over target div content.
OK, this is kind of odd. Hopefully it is something relatively simple. I have a div set with modal target and inner AJAX content target defined as: <div id="modalFormContainer"><div id="modalFormContainerContent"></ div></div> I have a JS Function with calls to jqModal as such: $('#modalFormContainer').jqm({ajax: '../modules/dispatcher/index.php? mod=content&op=modalForm', target: '#modalFormContainerContent', modal: true, trigger: false}); $('#modalFormContainer').jqmShow(); The end effect is that
[jQuery] jQuery noConflict breaks the galleria in IE 6 & 7
Hi, I am curious if anybody ever implemented jQuery noConflict with Galleria? It's working fine in IE browsers but when I implemented the noConflict (because the system I used for the site is full of prototype scripts), IE stops working. I filed a bug report but have no hope it will get fixed soon. http://code.google.com/p/galleria/issues/detail?id=29 Really would like to use this script. Being relatively new to jQuery, it seems old to me that the noConflict breaks the IE.
[jQuery] Superfish - Disabling Animation
Hi, How do I disable animations in superfish? Thanx --Charl
[jQuery] how to add elements to a jQuery object without copying it
i seem to remember i asked this question before, but am unable to retrieve that post---given a jQuery object with a collection of DOM nodes, how can i append another DOM node (like `[].push()` would do) to that collection without breaking object identity? i need var t = $( '.foo' ); var s = t; t.push( '.bar' ); // should now like like $( '.foo,.bar' ) assert( s === t, 'object identity broken' ) any ideas what to write for `$().push`? cheers & ~flow
[jQuery] Getting page width to insert into body tag
Hello, I am fairly new to jQuery so please keep that in mind.... I have a css 2 column layout with a left side menu. ex: | ////////// | //////////////////////////////////// | | menu | content area | | ////////// | //////////////////////////////////// | On one of the pages there is a table for data that is dynamically populated in the content area. Some times the table could be 500px wide and other times it could be 5000px wide. Therefor the outer css container, and browser, need to know the total
Next Page