[jQuery] Re: Jörn's autocomplete function on no result s found

2008-08-29 Thread Jörn Zaefferer
One way to achieve that is to trigger the search method when appropiate, eg. on blur. Something like this: $(#suggest1).autocomplete(cities).blur(function() { $(this).search(); }).result(function(event, data, formatted) { alert(!data ? No match! : Selected: + formatted); }); Let

[jQuery] Re: Travel a Table filtered by checked Checkboxes

2008-08-29 Thread Gordon Bergling
Hi Brian, your approach worked like a charm. thanks and best regards, Gordon On 28 Aug., 18:17, Brian Schilt [EMAIL PROTECTED] wrote: Would you be able to store the Reference Number in the value attribute of the checkbox? That would make things a lot easier. input type='checkbox'

[jQuery] Re: bind() with arguments

2008-08-29 Thread [EMAIL PROTECTED]
If all you want is a handler for a click on a element, use the click() method: $('#foo').click(function(){ alert('You clicked the foo element'); }); On Aug 28, 7:49 pm, dduck1934 [EMAIL PROTECTED] wrote: I had a quick question with the bind() method in jquery how do i use the bind to bind a

[jQuery] IE7 and reverting draggables

2008-08-29 Thread Grim...
Quick start - this link: http://www.fullonrobotchubby.co.uk/random/drag_text.htm Hi there. I've got a page where you can drag a group of boxes around. Dropping them over a droppable div causes data to be entered into that div. I need to be able to get the data in multiple times, so I need to

[jQuery] Reload jCarousel AJAX

2008-08-29 Thread gonado
Hi, My name is Alex, first of all thank you for your great component jCarousel. I have some questions about your component, I use it with the AJAX method but I don’t know how reload it in AJAX (for example, when I click on a button, I can reload my jCarousel on the page without reload the

[jQuery] Target parent from IFRAME

2008-08-29 Thread neburton
I want to be able to set the value of an input box in the parent of an iframe from the iframe. The parent has the following input box: input id=company type=text name=contractcompany So far I've tried the following in the IFRAME a href=# onclick=javascript:$

[jQuery] Re: jquery for web designers

2008-08-29 Thread René
In addition, I would recommend: http://www.webdesignerwall.com/tutorials/jquery-tutorials-for-designers/ ...which, incidentally, is the number one result when you Google jquery for web designers. ;-) On Aug 29, 5:29 am, john teague [EMAIL PROTECTED] wrote: I'm giving a presentation to a

[jQuery] JQuery Form Plugin and json

2008-08-29 Thread Stefan Sturm
Hello, I'm using the jQuery Form PlugIn( http://www.malsup.com/jquery/form/ ) to handle my Forms. I like it, but I have a question about an improvment: At this time all form fields are send using post, but it wold be nice, to send all form fields json encoded as one post parameter. Is there a

[jQuery] Re: Help with :not

2008-08-29 Thread René
Thanks! On Aug 29, 12:08 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: This should work: $(h2.drawer-handle:not(#rides-button)).click(function(){ // your click handler here }); On Aug 28, 2:24 pm, René [EMAIL PROTECTED] wrote: Here's some markup:       h2

[jQuery] Very simple UI Datepicker Question. Please help.

2008-08-29 Thread McBilly Wilford Sy
Hi. this is a very simple question. How exactly do I change the date format for the UI Datepicker? I'm trying this code attaching the datepicker to a txtfield txtdatefrom. The datepicker is working but the Date format does not change. How exactly do I do this? script

[jQuery] Selecting elements by namespace and namespace URI

2008-08-29 Thread Luke
I have an Atom service XML document (example at end of post) and I need to select tags by name and with a specific namespace URI. The equivalent to the following in normal DOM JS: someXML.getElementsByTagNameNS( http://www.w3.org/2005/Atom;, title ); Is this possible in JQuery, or do I have to

[jQuery] Validate

2008-08-29 Thread Raman
How can I validate a form by click in text hyperlink using Jquery Validate plugin Please help...

[jQuery] Re: Creating a Submit Button in PHP/jQuery/AJAX Autosuggest search

2008-08-29 Thread [EMAIL PROTECTED]
Not quite sure what you're trying to achieve, but I assume you want to take some form data, form a query string, and submit to a server side script (php) that will handle the db query. I would use an html form with a submit button. Something like: form action=dbscript.php method=POST input

[jQuery] Re: Basic Help please - Only returning 1 value

2008-08-29 Thread Mattl
Thanks - I've changed the Query to: $query = SELECT `LotNo`, `A`, `Description` FROM batemans WHERE `SaleNo` LIKE $SaleNo AND `LotNo` LIKE '%$q%' ORDER BY LotNo ASC; but it still only shows one value in the drop-down. The output of the query can be seen at (this shows multiple values, ie the

[jQuery] Autocomplete not firing in IE

2008-08-29 Thread gemeaux
I'm using jQuery autocomplete and here's my code: script type=text/javascript src=js/jquery-1.2.6.js/script script type=text/javascript src=js/jquery.autocomplete.js/ script script type=text/javascript !-- $(document).ready(function(){ $(#txtSearchBox).autocomplete(Autocomplete.aspx,

[jQuery] Re: Validate

2008-08-29 Thread Jörn Zaefferer
$(#link).click(function() { $(#myform).valid(); }); See http://docs.jquery.com/Plugins/Validation/valid for details. Jörn On Fri, Aug 29, 2008 at 9:18 AM, Raman [EMAIL PROTECTED] wrote: How can I validate a form by click in text hyperlink using Jquery Validate plugin Please help...

[jQuery] Re: Autocomplete not firing in IE

2008-08-29 Thread Jörn Zaefferer
Actually I doubt that it works in anything but Firefox, as that is the only browser that ignores the trailing comma in object literals. Remove the one after width: 270 and it should work fine across browsers. You can also enable strict warnings in Firefox to get a warning about those. Jörn On

[jQuery] Re: Order load

2008-08-29 Thread jbetts80
The problem is when a table generated by dataTables plugin is loading it insert in the rows an image that would be loaded after the table. Excuse me because my native language is spanish, not english. Regards!

[jQuery] Re: Order load

2008-08-29 Thread John Alexander Betts Alvear
The problem is when a table generated by dataTables plugin is loading it insert in the rows an image that would be loaded after the table. Excuse me because my native language is spanish, not english. Regards! On Thu, Aug 28, 2008 at 5:38 PM, Karl Rudd [EMAIL PROTECTED] wrote: Do you mean

[jQuery] Re: jquery wallpaper

2008-08-29 Thread tlphipps
awesome! Thanks so much. I have to admit, I like the 'devo hat' logo better! On Aug 28, 10:35 pm, Don Quijote de Nicaragua [EMAIL PROTECTED] wrote: http://jquery.com/blog/2007/01/13/jquery-wallpapers/ Don Quijote de Nicaragua. Elder Soto On 28 ago, 08:38, tlphipps [EMAIL PROTECTED] wrote:

[jQuery] Re: jquery for web designers

2008-08-29 Thread Andy Matthews
John... You could focus on some of the things which can be condensed in the document using jQuery. For example. In an app I'm writing, I want rounded corners on some of my containers but both the color of the container, and the background against which it is displayed are dynamic, so I couldn't

[jQuery] Re: Very simple UI Datepicker Question. Please help.

2008-08-29 Thread MorningZ
Documentation = good http://docs.jquery.com/UI/Datepicker/datepicker#options dateFormat String The format for parsed and displayed dates. This attribute is one of the regionalisation attributes. For a full list of the possible formats see the formatDate function. Format dates for ISO

[jQuery] Animate before submit

2008-08-29 Thread Boersnoes
Hi, I'm trying to animate my page before a form is submitted (regular, no ajax). $(.advancedSearchForm).submit(function(){ $(.colorList).slideToggle(fast, function(){ $(this).html(ploading/p); $(this).slideToggle(slow); } );

[jQuery] Re: Animate before submit

2008-08-29 Thread Jörn Zaefferer
You could cancel the submit (stick with return false) and submit again after the animation finished. $(.advancedSearchForm).submit(function(){ var form = this; $(.colorList).slideToggle(fast, function(){ $(this).html(ploading/p);

[jQuery] Re: NEWBIE Question re span and form elements

2008-08-29 Thread Peter Bailey
Wow, that sure is nice and concise. Thanks Richard On Aug 29, 12:45 am, Richard D. Worth [EMAIL PROTECTED] wrote: You could do something like this: $(#mySpan).find(:input).removeAttr(checked).val().hide() - Richard Richard D. Worthhttp://rdworth.org/ On Thu, Aug 28, 2008 at 10:11 AM,

[jQuery] [autocomplete] Repeated AJAX search when selecting a returned value

2008-08-29 Thread Christos Zisopoulos
Hi, I am using the bassistance.de jQuery Autocomplete 1.0.2 plugin with a simple server data provider and the following snippet of code: $('input.autocompletable').autocomplete('/my_data_source', { matchContains: true, mustMatch: true, minChars: 2,

[jQuery] UI Tabs IE Style Problem

2008-08-29 Thread Brad
I'm using the latest Tabs in a project that already has an established page layout. I'm using the tab styles like the ones at http://stilbuero.de/jquery/tabs_3/. On Mozilla, Opera and Safari the tabs display fine, but on IE 6 the space below the tab label and tab bottom is missing. As a result

[jQuery] Re: best techniques to optimize loading of multiple libraries?

2008-08-29 Thread Alex Weber
thats a pretty good solution... ive also been thinking about using cachefly as a backup maybe... i'd rather use packed then minified though :) im sure i can find one here on googlecode thogh thanks! On Aug 28, 9:48 pm, Michael Geary [EMAIL PROTECTED] wrote: These are just static files? You

[jQuery] Re: problem with ajax request: request is not being sent

2008-08-29 Thread [EMAIL PROTECTED]
Can't anyone help me

[jQuery] $.get ajax method callback being called before the script return...

2008-08-29 Thread Jonny
I'm far from a specialist , but i think its a piece of cake so , here we go... I have the following function being called whenever a combobox is changed: function ajax_do(pAcao, pId , pIdt){ if (typeof pId == 'undefined' ) pId = '0'; if (typeof pIdt == 'undefined' ) pIdt = '0';

[jQuery] Re: Basic Help please - Only returning 1 value

2008-08-29 Thread [EMAIL PROTECTED]
I don't think it's the formatting. In your original query, you were only collecting saleno. In your second, you're specifically matching a certain saleno but applying the wildcard on lotno. Also, you might try ordering your comparisons. Something like: SELECT `LotNo`, `A`, `Description` FROM

[jQuery] Re: jquery for web designers

2008-08-29 Thread john teague
Those are great links, guess I used the wrong google key words. Thanks, On Aug 29, 8:09 am, Andy Matthews [EMAIL PROTECTED] wrote: John... You could focus on some of the things which can be condensed in the document using jQuery. For example. In an app I'm writing, I want rounded corners on

[jQuery] Re: $.get ajax method callback being called before the script return...

2008-08-29 Thread MorningZ
If i had to take a guess, i'd say there was an error getting raised from the AJAX call for whatever reason i'd suggest downloading Fiddler (http://www.fiddlertool.com) and watching the network traffic to see if the call raises an error

[jQuery] Page reloads functions: Firefox issues.

2008-08-29 Thread Ben C
I am having a little problem and am new to jquery. Is there something of a page load function that is only called on an actual reload of the page? I am using hidden divs on my page that are shown with the click of a button. Shown below: code $(document).ready(function(){

[jQuery] Re: Sleep or delay in JQuery

2008-08-29 Thread [EMAIL PROTECTED]
Javascript offers setTimeout(code, interval_in_milliseconds). If your first animation is of a precise length, you could do something like this: function anima1(){ //play animation1, which is 15 seconds long } function anima2(){ //play animation2 } anima1; setTimeout(anima2, 15000); On Aug

[jQuery] Multiple AJAX calls problem

2008-08-29 Thread me-and-jQuery
Hello. So I have a problem that when I get jQuery code in ajax response and you click few times to activate ajax call, there are multiple instances of same code. Lets see the example with keydown. FILE 1: script $(document).ready( function() {

[jQuery] jQuery selector works with FF and not on IE

2008-08-29 Thread anuradha k
Hi All I am trying to do a simple jQuery, where in the selector fetches me all the empty fields in the form page. var inputFieldsArray = $(:input:not(:hidden)); // to get the fields that arent hidden for(var i=0; iinputFieldsArray.size(); i++){ var trClass = $

[jQuery] Re: $.get ajax method callback being called before the script return...

2008-08-29 Thread Jonny
I didn't knew fiddler, nice tool =) im testing the script with fiddler now, and something very strange is happening... When i change the select box designated with the function, the first times it's ok, and a 200 OK line pops on fiddler. But after de 3th or 4th change it stop showing messages

[jQuery] Re: Internet explorer:select tag manipulation does not ever work...?

2008-08-29 Thread anuradha k
Hi Were you able to solve this problem. I am also facing a similar problem and posted my problem today. So wanted to know if you were able to find out the root cause thank you anuradha k On Aug 15, 10:10 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: why is it that in firefox you can enable

[jQuery] Re: Superfish: onBeforeShow and onHide callback functions

2008-08-29 Thread jefe
Joel, That fixed it. Thanks for your help. Justin On Aug 28, 7:43 pm, Joel Birch [EMAIL PROTECTED] wrote: Hi Justin, The onHide callback will fire whenever the function that hides other submenus runs, which it does when moving from submenu to submenu. Hence, it is not suitable for

[jQuery] Re: $.get ajax method callback being called before the script return...

2008-08-29 Thread Jonny
Hey thanks, didn't know that tool, awesome =) i was just using fiddler and there's something bizarre happening around here... When i change the select box , sometimes the ajax execute sucefully, showing response 200 on fiddler. But most times its just don't respond... i click the select box

[jQuery] Newbie: JQuery to determine browser and apply CSS

2008-08-29 Thread GiJeet
Hello, is it possible to use JQuery to determine the browser type/ version at runtime and apply a custom .css specific to that browser type? If so, would appreciate some sample code so I can see how it's done. TIA G

[jQuery] Re: best techniques to optimize loading of multiple libraries?

2008-08-29 Thread Bil Corry
Alex Weber wrote on 8/29/2008 10:15 AM: i'd rather use packed then minified though :) Use minified, not packed. Although a packed file is smaller, it's overall performance is worse when compared to minified: - This means, in the end, that using a minifed version of the code is much

[jQuery] Re: UI Tabs IE Style Problem

2008-08-29 Thread Brad
After a lot of trial and error I determined that the site's existing CSS was NOT at fault. From there I started looking at page markup. What I eventually found was that every page is dynamically generated and shares a common header. The first line in every page is: ?xml version=1.0

[jQuery] jqModal and IE problems

2008-08-29 Thread MorningZ
So i have some usage of jqModal in my project and this is what's going on: (screenshot: http://i38.tinypic.com/2edavs2.jpg) you can see that jqmOverlay has a z-index of 2999 and jqmWindow has a z-index of 3000 So, in a correct and working world, jqmWindow should be *on top* of jqmOverlay

[jQuery] Re: Sleep or delay in JQuery

2008-08-29 Thread Michael Geary
Don't use a timer for this - it is extra complication and not very reliable. In many cases you can simply chain the effects together, which queues them behind the scenes: // Slide an element open and then slide it closed $('#test').slideDown( 'slow' ).slideUp( 'slow' ); For more

[jQuery] Re: [autocomplete] Auto populate form input field based on another

2008-08-29 Thread Mattl
Hi, Finally got the first drop-down to appear, I'd put '\n' in the php rather than \n - Oooops!! Still not sure how to get the second field on my form to update based on the input to the first autocomplete, any suggestions? This is what I've tried: $(document).ready(function(){

[jQuery] Re: Autocomplete not firing in IE

2008-08-29 Thread gemeaux
Sorry, my mistake. There was extraParams line after that comma. So, jQuery code should be like this: $(document).ready(function(){ $(#txtSearchBox).autocomplete(Autocomplete.aspx, { maxItemsToShow: 10, minChars: 3, delay: 40,

[jQuery] Re: jqModal and IE problems

2008-08-29 Thread Alexandre Plennevaux
did you try changing the doctype ? Alexandre Plennevaux http://www.lab-au.com On Fri, Aug 29, 2008 at 9:44 PM, MorningZ [EMAIL PROTECTED] wrote: So i have some usage of jqModal in my project and this is what's going on: (screenshot: http://i38.tinypic.com/2edavs2.jpg) you can see

[jQuery] Re: Newbie: JQuery to determine browser and apply CSS

2008-08-29 Thread Matt
Check the docs: http://docs.jquery.com/Utilities example: if( jQuery.browser.mozilla ) { //do css stuff... } On Aug 29, 10:44 am, GiJeet [EMAIL PROTECTED] wrote: Hello, is it possible to use JQuery to determine the browser type/ version at runtime and apply a custom .css specific to that

[jQuery] Re: jQuery selector works with FF and not on IE

2008-08-29 Thread micah
you can do $(':input:visible') instead. i've found that :not can be picky at times. could be totally imagined on my part, but i usually use $.not() instead, despite the extra traversal of the nodeset involved. -micah On Aug 29, 10:19 am, anuradha k [EMAIL PROTECTED] wrote: Hi All I am

[jQuery] Applying jqDnR to images.

2008-08-29 Thread Ronn Ross
Hello all, I'm using jqDnR (http://dev.iceburg.net/jquery/jqDnR/) to allow things to be draggable on the my page. Applying it to div tags is super easy and works great. Unfortunately when I try to apply it to an image I can't get it to work. This is what I use for a div:

[jQuery] Re: Basic Help please - Only returning 1 value

2008-08-29 Thread Mattl
Hi, Finally got the drop-down to appear and list everything correctly, I'd put '\n' in the php rather than \n - Oooops!! Thanks for your suggestions though. Matt On Aug 29, 4:11 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I don't think it's the formatting. In your original query, you were

[jQuery] Repeating a function call on hover/mouseover/etc

2008-08-29 Thread Leanan
Hey guys. I've poured over the docs, and mouseover/hover/etc only trigger once. I want it to continue to trigger a function while the element is hovered. I've tried: $('#element').hover(function() { while(true) { someFunc; } }, function() {}); Unfortunately, this screws things up.

[jQuery] Possible animate (negative) bug w/ Firefox 2

2008-08-29 Thread skube
I am experiencing a problem with Firefox 2 and jQuery 1.2.6. I am doing a basic slide using the $.animate into negative territory. The animation jumps to the positive value quickly before resting at the correct negative value. The larger the negative value, the larger the positive swing. This is

[jQuery] Re: Newbie: JQuery to determine browser and apply CSS

2008-08-29 Thread GiJeet
On Aug 29, 4:42 pm, Matt [EMAIL PROTECTED] wrote: Check the docs:http://docs.jquery.com/Utilities example: if( jQuery.browser.mozilla ) {     //do css stuff... } Thanks!

[jQuery] Re: Multiple AJAX calls problem

2008-08-29 Thread micah
a common trick i use to get around situations where an event may be bound twice is to add an unbind into the chain. like so: var kd = function(event) { alert(event.keyCode); } $().unbind('keydown', kd).keydown(kd); it's a bit quick and dirty, but it works. -micah On Aug 29, 9:12 am,

[jQuery] Update cart without page refresh

2008-08-29 Thread netcomp
Hi there, I'm a novice with jquery and would like to create a shopping cart where I can add a product without refreshing the page. I've searched extensively and can only find tutorials about drag and drop functionality. All I want to be able to do is hit the add button and the minicart gets

[jQuery] Re: Cycle with anchors on images not working properly

2008-08-29 Thread richardegil
Ok so I tried what you said but still no change. I am new to jQuery so please excuse my ignorance in the questions below. I am not sure what exactly this line does: onAfter.apply($('a:first')[0]); I can see what the onAfter function does, but this line makes no sense to me. Am I calling the

[jQuery] Re: Repeating a function call on hover/mouseover/etc

2008-08-29 Thread micah
one way to approach what you're trying to do is with a simple setInterval (http://developer.mozilla.org/index.php?title=En/DOM/ Window.setInterval), so that the parser has a bit of breathing room between calls to someFunc. if you just loop through, you're essentially saying call someFunc as many

[jQuery] Append Node to XmlDocument

2008-08-29 Thread Patrick
Is anyone aware of a simple example which appends a node to an existing XmlDocument? I am successfully able to update an XmlDocument using the attr() method. So: $(xmlElement).attr(Name,new name); I am even able to create new attributes using this method. What I would like to be able to do

[jQuery] ajax?

2008-08-29 Thread fear and wonder
what i'm trying to do is have a login form on my site, it looks like this right now... Email:br / input type=text id=login_email /br / Password:br / input type=password id=login_password /br / input type=submit class=submit value=Login id=login_submit / then when you click submit it uses ajax

[jQuery] Re: Cycle with anchors on images not working properly

2008-08-29 Thread Mike Alsup
Ok so I tried what you said but still no change. I am new to jQuery so please excuse my ignorance in the questions below. I am not sure what exactly this line does: onAfter.apply($('a:first')[0]); That line isn't needed. The anchor demo was written before I added synthetic events for the

[jQuery] Re: Append Node to XmlDocument

2008-08-29 Thread Patrick Burrows
At this point I've tried every combination of .after I could think of. I think, at this point, this is simply not possible using JQuery. On Fri, Aug 29, 2008 at 7:50 PM, Patrick [EMAIL PROTECTED] wrote: Is anyone aware of a simple example which appends a node to an existing XmlDocument? I

[jQuery] Re: ajax?

2008-08-29 Thread Patrick Burrows
It looks to me like you forgot to write any JavaScript to do all the actions you described below. On Fri, Aug 29, 2008 at 7:21 PM, fear and wonder [EMAIL PROTECTED]wrote: what i'm trying to do is have a login form on my site, it looks like this right now... Email:br / input type=text

[jQuery] Re: Append Node to XmlDocument

2008-08-29 Thread Patrick Burrows
Of course, this works just fine using the built-in methods of XmlDocument (appendChild, createElement). I am just mildly surprised this does not work with the JQuery methods. On Fri, Aug 29, 2008 at 8:37 PM, Patrick Burrows [EMAIL PROTECTED] wrote: At this point I've tried every combination of

[jQuery] jquery cycle pager question

2008-08-29 Thread delius
i'm trying to create a news ticker using the cycle plugin. everything works really well, but i run into some trouble - first, i want to use the pager to show which article is on and how many there are, but i want it on the right side or at the bottom of the div containing the item. i couldn't

[jQuery] Re: jquery cycle pager question

2008-08-29 Thread Mike Alsup
i'm trying to create a news ticker using the cycle plugin. everything works really well, but i run into some trouble - first, i want to use the pager to show which article is on and how many there are, but i want it on the right side or at the bottom of the div containing the item. i

[jQuery] an ajax load selector function to replace element

2008-08-29 Thread moester
I kept having to do $('#content').load(url + #content); but ended up having div id=content div id=content What i ready wanted was to completely replace the element with selected content from an ajax load, hence, $('#content).replace(url); /** * ajax load content and replace self *

[jQuery] Re: Update cart without page refresh

2008-08-29 Thread Jack Killpatrick
Do you want to hit the server to put the item in a cart there (for session/persistance) and then refresh the minicart or do you want to set a cookie or something in the client and update the minicart with data you already have in the client? If you want to hit the server, do you have any