[jQuery] Re: Jquery UI 1.7.1 Tabs - Close open tab on mouseout from overall tab group

2009-03-26 Thread jq noob
Actually I have different form elements in each div. I am using the tabs to seperate/clean up the page because it contained various multi- select, dropdowns groupings etc, they are used for filtering data on a dynamic grid/chart. I actually don't know which ones will be on the page until runtime s

[jQuery] Re: Jquery UI 1.7.1 Tabs - Close open tab on mouseout from overall tab group

2009-03-26 Thread acamar
I suppose you'd like to have tabs to work as dropdown menu. In this case I can suggest two ways: 1. Using tabs plugin... You're right, it needs to attach mouseout event on div panel like this $('#tabs-1, #tabs-2, #tabs-3').mouseout(function () { $("#tabs").tabs('option', 'selected', -1);

[jQuery] Re: looping through json

2009-03-26 Thread mkmanning
Sorry, that should have read "can't": which is basically my example. You CAN'T have elements in an array like this: [ "department": {"ID": 1, "Name": "Physics"} ] On Mar 26, 8:59 pm, mkmanning wrote: > This: > var departments = new Array(); > var department = {}; > department.ID = 1; > departme

[jQuery] Re: looping through json

2009-03-26 Thread mkmanning
This: var departments = new Array(); var department = {}; department.ID = 1; department.Name = "Physics"; deparments.push(department); is not a non-shorthand version of this: { "departments": [ "department": {"ID": 1, "Name": "Physics"}, "department": {"ID": 2, "Name": "Chemistry"}, "dep

[jQuery] Re: looping through json

2009-03-26 Thread iceangel89
i am using PHP. intending to use Zend Framework - still PHP On Mar 27, 11:38 am, MorningZ wrote: > Talking about my first post? > > I'm not so sure the JSON you posted > > { "departments": { >    "department": {"ID": 1, "Name": "Physics"}, >    "department": {"ID": 2, "Name": "Chemistry"}, >    

[jQuery] Removing Single Option from Select

2009-03-26 Thread iceangel89
How can i remove a single option (with value -1, if possible) from a select?

[jQuery] Re: looping through json

2009-03-26 Thread MorningZ
Talking about my first post? I'm not so sure the JSON you posted { "departments": { "department": {"ID": 1, "Name": "Physics"}, "department": {"ID": 2, "Name": "Chemistry"}, "department": {"ID": 3, "Name": "Biology"} }} is valid, as Steven points out, the last "department" wins e

[jQuery] Re: looping through json

2009-03-26 Thread mkmanning
You can't put 'bare' key/value pairs in an array, and reusing a key like department isn't really good either. A simpler structure would just be: [ {"ID": 1, "Name": "Physics"}, {"ID": 2, "Name": "Chemistry"}, {"ID": 3, "Name": "Biology"} ] Unless you have some compelling reason to assign the arr

[jQuery] Validation Success Callback

2009-03-26 Thread MonkeyBall2010
I am using the validation plugin and the form plugin to validate my form and then submit the information via ajaxSubmit. I have everything working with the exception of my success callback function. Once the form is successfully validated I just want to wait about 2 - 3 seconds to run a script and

[jQuery] [validate] phoneUS problem

2009-03-26 Thread stegel
When I am using the phoneUS rule in my validate options I get the following JS error: $.validator.methods[method] is undefined http://localhost/inns/inc/jquery.validate.js Line 471 As I look through jquery.validate.js, I see no reference to phoneUS. Am I missing something here? Thanks, AJ

[jQuery] How to safely pass XML string as a param in Ajax Post?

2009-03-26 Thread Karen
Hi, I am using $.ajax POST to send some XML string to the server side code (ASP page). However, when I try to load the XML string into XMLDocument in the ASP page , I get an error saying "Invalid character". :( If I changed the method to "GET", it works just fine. Any ideas? Help params =

[jQuery] Re: looping through json

2009-03-26 Thread iceangel89
ok so it works. so for my understanding, the parameters department refers to the index (0, 1, 2) and dictionary refers to the json object that i can use something like dictionary.ID on On Mar 27, 10:04 am, MorningZ wrote: > Actually.. looking @ that JSON again after Steven's post, the JSON > sh

[jQuery] Re: looping through json

2009-03-26 Thread MorningZ
Actually.. looking @ that JSON again after Steven's post, the JSON should be { "departments": [ "department": {"ID": 1, "Name": "Physics"}, "department": {"ID": 2, "Name": "Chemistry"}, "department": {"ID": 3, "Name": "Biology"} ] } Pretty sure anyways... it's been a long day :-) O

[jQuery] Re: looping through json

2009-03-26 Thread Steven Yang
I think the problem is you have the "department" 3 times in the same hash object,so the last one overrides everything. you should change "departments" to an array and loop through it > > > > > { "departments": { > >"department": {"ID": 1, "Name": "Physics"}, > >"department": {"ID": 2, "Nam

[jQuery] Re: Thickbox half-works.

2009-03-26 Thread Devin
Switching to an older version of jquery fixed the problem right away. Thank you so much! Resolved. On Mar 26, 9:44 am, Bert wrote: > Thickbox gives this error with the latest JQuery version. use version > 1.2.6, worked for me that way. > > greetzwww.twitter.com/Be_Bert > > On 25 mrt, 15:46, D

[jQuery] Re: [autocomplete] - Request

2009-03-26 Thread brian
Adding to that, it might be nice to have the option to specify a callback that would fire when no further results are possible. For example, to add a class name to the input that would change the BG color. Or, in *some* cases, one might want further typing to be blocked. On Thu, Mar 26, 2009 at 7

[jQuery] Re: [autocomplete] - Request

2009-03-26 Thread freeav8r
np On Mar 26, 6:05 pm, Jörn Zaefferer wrote: > Could you file this as a ticket?http://dev.jqueryui.com/newticket > (requires registration/login) > > Jörn > > On Thu, Mar 26, 2009 at 11:13 PM, freeav8r wrote: > > > Hi, > > > I have an autocomplete feature request. > > > My request is that when a

[jQuery] Re: [autocomplete] - Request

2009-03-26 Thread Jörn Zaefferer
Could you file this as a ticket? http://dev.jqueryui.com/newticket (requires registration/login) Jörn On Thu, Mar 26, 2009 at 11:13 PM, freeav8r wrote: > > Hi, > > I have an autocomplete feature request. > > My request is that when a particular prefix is not found on the > database, adding to t

[jQuery] Re: JQuery form validation not working with jsp

2009-03-26 Thread Jörn Zaefferer
Same as for any other backend, eg. pick a validation plugin ala http://docs.jquery.com/Plugins/Validation and follow the examples. Come back with any specific questions. Jörn On Thu, Mar 26, 2009 at 8:01 PM, Lucky wrote: > > Hi, >       I  am new to JQuery , can anyone tell me any example ,how

[jQuery] Re: Jquery.media fails with querystring

2009-03-26 Thread Mike Alsup
> today I tried to upgrade from jQuery Media 0.8 to 0.87, and I met the > same problem. > > With version 0.8, jQuery.media was able to handle links like this : > link > The media type was correct (Windows media player). > > With version 0.87, jQuery.media doesn't handle anymore this kind of > link

[jQuery] [autocomplete] - Request

2009-03-26 Thread freeav8r
Hi, I have an autocomplete feature request. My request is that when a particular prefix is not found on the database, adding to the prefix should not cause more calls to the remote system: As an example, say I type in "ThisIsANewEntry", the following might happen: T - 5 entries returne

[jQuery] Callback functions

2009-03-26 Thread Mike
Anyone know why the callback function here isn't working? $('#anim_flipper') .animate( {top : '1130px'}, {queue:false, duration: 1100} ) .animate( {left : '335px'}, {duration: 1400, easing:'easeInOutQuad'} ) .animate( {top : '1126px'

[jQuery] Re: Executing javascript that comes inside an AJAX response

2009-03-26 Thread Saira Zaheer
http://tinyurl.com/dar2ld http://tinyurl.com/cvjkqa http://tinyurl.com/ae56nz On 3/26/09, James wrote: > > > What do you mean? Could you provide an example of the content of your > response and what you want to do with it? > > You cannot call a function from inside the response html data b

[jQuery] Re: Play video in modal messages

2009-03-26 Thread Saira Zaheer
http://tinyurl.com/dar2ld http://tinyurl.com/cvjkqa http://tinyurl.com/ae56nz On 3/26/09, ebru...@gmail.com wrote: > > > Hello, > > I want to show a youtube video in a modal messages but the video is > different on every link. So someone presses on the link > > http://www.youtube.com/watch

[jQuery] JQuery form validation not working with jsp

2009-03-26 Thread Lucky
Hi, I am new to JQuery , can anyone tell me any example ,how to do form validation for JSP. I have two text box one for Subject and another one for email Id . Thanks, Lucky

[jQuery] Re: Position Div over Quicktime Movie

2009-03-26 Thread Saira Zaheer
http://tinyurl.com/dar2ld http://tinyurl.com/cvjkqa http://tinyurl.com/ae56nz On 3/26/09, Nic Hubbard wrote: > > > Anyone? > > On Mar 24, 4:41 pm, Nic Hubbard wrote: > > Does anyone know of any jQuery/javascript trickery that can help with > > positioning a div over a quicktime movie? So

[jQuery] Re: Jquery.Carousel -- need help understanding loading content via ajax

2009-03-26 Thread Saira Zaheer
http://tinyurl.com/dar2ld http://tinyurl.com/cvjkqa http://tinyurl.com/ae56nz On 3/26/09, D A wrote: > > > I've implemented the Jquery.Carousel on our site. I'm stumped on how > to load content dynamically, however. > > The demo site: > > http://sorgalla.com/projects/jcarousel/#Dynamic-Con

[jQuery] Re: using apple-style slider

2009-03-26 Thread Saira Zaheer
http://tinyurl.com/dar2ld http://tinyurl.com/cvjkqa http://tinyurl.com/ae56nz On 3/26/09, Adam wrote: > > > Im using an apple product page-style slider as described on Remy's > awesome jqueryfordesigners.com, but with content in addition to the > images. Im having some css/display issues.

[jQuery] Re: change onmouseover function call

2009-03-26 Thread Saira Zaheer
http://tinyurl.com/dar2ld http://tinyurl.com/cvjkqa http://tinyurl.com/ae56nz On 3/26/09, Air YT wrote: > > > hi there, have a puzzling one. > > i have a fairly simple function call that we use to display tooltips > over certain image elements. we put the function call in the > onmouseover

[jQuery] Re: Jquery.Carousel -- need help understanding loading content via ajax

2009-03-26 Thread D A
> I've implemented the Jquery.Carousel on our site. I'm stumped on how > to load content dynamically, however. OK, I made some progress. I can now get data to load, though I'm pretty sure my syntax is way off. I've also ran into an issue with carousel.add. Here's the code: My carousel initially

[jQuery] using apple-style slider

2009-03-26 Thread Adam
Im using an apple product page-style slider as described on Remy's awesome jqueryfordesigners.com, but with content in addition to the images. Im having some css/display issues. http://www.viewwestaspen.com.asp1-10.websitetestlink.com/home.html His demo makes use of the items in the list being s

[jQuery] Re: Play video in modal messages

2009-03-26 Thread Adam
Check out http://nyromodal.nyrodev.com/ ::: Adam On Mar 26, 2:43 pm, "ebru...@gmail.com" wrote: > Hello, > > I want to show a youtube video in a modal messages but the video is > different on every link. So someone presses on the link > > http://www.youtube.com/watch? > v=gNNVF8rJjrw" id="vide

[jQuery] Re: Position Div over Quicktime Movie

2009-03-26 Thread Nic Hubbard
Anyone? On Mar 24, 4:41 pm, Nic Hubbard wrote: > Does anyone know of any jQuery/javascript trickery that can help with > positioning a div over a quicktime movie?  So far, I found found that > it is not possible.  But, it seems that there has to be some way to do > this! > > Has anyone done this

[jQuery] Play video in modal messages

2009-03-26 Thread ebru...@gmail.com
Hello, I want to show a youtube video in a modal messages but the video is different on every link. So someone presses on the link http://www.youtube.com/watch? v=gNNVF8rJjrw" id="video" title="Bekijk de spoiler van {$foo.aflevering}" class="basic">Bekijk de spoiler It starts the following:

[jQuery] Re: Executing javascript that comes inside an AJAX response

2009-03-26 Thread mkmanning
Did you try my suggestion? -- Put this div in your main page: -- Put this script in your main page (essentially what you have already, fix the url for your server): $(do

[jQuery] Re: Problems using JRC corner or curvycorner

2009-03-26 Thread banacan
Nicola, Thanks for the link. Unfortunately CornerZ won't work on this project because the parent div background is a gradient and the background color must be specified in the call. I'm sure it will work great for a different project. I'm back to square one on this issue, whether to use strict

[jQuery] Re: Superfish menu activate on click

2009-03-26 Thread Virtual Machine
This diff, based off the previous one, fixes the click-to-close thing, and also fixes an issue where the visibility click could be desynchronized if the menu contain an element that launched an alert() on click. Index: superfish.js =

[jQuery] Re: Executing javascript that comes inside an AJAX response

2009-03-26 Thread Amit Shah
oh god. i got a function sometesting() in the ajax response text ok? not in calling main page. it's in response html data from ajax. in response there is a table. in table there is a td and on td mouseover event i call that function to highlight some fields. now the function cam from response te

[jQuery] Jquery.Carousel -- need help understanding loading content via ajax

2009-03-26 Thread D A
I've implemented the Jquery.Carousel on our site. I'm stumped on how to load content dynamically, however. The demo site: http://sorgalla.com/projects/jcarousel/#Dynamic-Content-Loading ...shows how to load content into a blank carousel when the page loads. We'll have data (LIs) already loaded

[jQuery] Re: Problems using JRC corner or curvycorner

2009-03-26 Thread Nikola
Here you go.. it hasn't been refactored for IE8 yet though. http://labs.parkerfox.co.uk/cornerz/ On Mar 26, 2:54 pm, banacan wrote: > Nicola, > > I'm not familiar with CornerZ.  I searched the plugin repository and > found nothing.  Can you supply a link? > > Thanks. > > On Mar 26, 1:59 pm, Ni

[jQuery] Re: Need to get value of table cell

2009-03-26 Thread James
Could you post some code so we know what we're working with? How does your table and row IDs look like? Is there a pattern? The code we provide can be as simple as: var someIDNum = 1235412; $("#row"+someIDNum).text(); For a row with id="row1235412" On Mar 26, 3:11 am, Webspeeder wrote: > I hav

[jQuery] Re: How to bring focus to a window in jquery?

2009-03-26 Thread James
I think it's a Firefox setting that prevents it from occurring so you don't have background windows automatically focusing on their own (which annoys users). In your FF Options > Content > Enabled Javascript as checked, click on Exceptions, and see if "Raise or lower windows" is checked or not. I

[jQuery] Re: Slow jQuery Event Cleanup in Firefox

2009-03-26 Thread Matt Kruse
On Mar 26, 9:13 am, J K wrote: > I have a 65x65 HTML table, giving me 4225 TD cells. > I am making each of them clickable with the following code: > $('td').click(function () { >   // do something > }); > It works wonderfully in all browsers (well, IE is a little slow, but > it's IE). Event dele

[jQuery] Re: Event Cleanup Slowness in Firefox

2009-03-26 Thread J K
Thank you - a switch to live solved the problem quite easily. I'm still wondering about the slowness. On Mar 26, 2:37 pm, Karl Swedberg wrote: > don't know why it's so much slower in Firefox, but if you're dealing   > with that many elements, you ought to consider using event delegation   > ins

[jQuery] Re: Executing javascript that comes inside an AJAX response

2009-03-26 Thread James
What do you mean? Could you provide an example of the content of your response and what you want to do with it? You cannot call a function from inside the response html data before it reaches the browser. It has to reach the browser first because the browser does the Javascript work. If you want

[jQuery] Re: Slow jQuery Event Cleanup in Firefox

2009-03-26 Thread J K
Thank you - delegation solved the issue. I still am wondering about the cleanup slowness. I appreciate the help. On Mar 26, 2:04 pm, MorningZ wrote: > These articles will really help clean up your events > > http://www.learningjquery.com/2008/03/working-with-events-part-1http://www.learningjqu

[jQuery] Re: Jquery UI 1.7.1 Tabs - Close open tab on mouseout from overall tab group

2009-03-26 Thread jq noob
If I implement your code, then I can never actually move my mouse down into the content div. When I mouseover the tab, the div is shown, but when I move the mouse cursor off the tab and try to move it into the div, the div disappears because the mouseout event gets fired. Since there are really

[jQuery] Re: .load() problems in ie

2009-03-26 Thread James
Try changing: var toLoad = $(this).attr('href')+' #content-wrapper'; To: var toLoad = $(this).attr('href')+'#content-wrapper'; (remove the space before #) On Mar 26, 2:42 am, derrickkwa wrote: > hi... > > i'm trying to code a site, you can see it > athttp://derrickkwa.com/6amb/index.html > > s

[jQuery] Workaround for data-URLs (data:image/jpeg;base64) in IE

2009-03-26 Thread sleepwalker
Hi, Does anyone have a work around the lack of support for data-URLs (data:image/jpeg;base64) in IE. I've seen some crazy php scripts using mhtml + vml but php isn't supported in the environment I'm working in. Thanks for your Help. Daniel

[jQuery] Re: Ajax call with XML Response

2009-03-26 Thread James
Does this happen in both IE and Firefox, or only in IE? If it's only in IE, IE has some kind of issue with returning XML with the incorrect header content type. Check the bottom of this post for a function: http://groups.google.com/group/jquery-en/browse_thread/thread/036d49aead899d68 Try using

[jQuery] Re: Problems using JRC corner or curvycorner

2009-03-26 Thread banacan
Nicola, I'm not familiar with CornerZ. I searched the plugin repository and found nothing. Can you supply a link? Thanks. On Mar 26, 1:59 pm, Nikola wrote: > I've found JRC and the Bullet Proof CornerZ PlugIns to be foolproof... > except in IE8 thus far. > > On Mar 26, 11:44 am, banacan wr

[jQuery] data-URLs for IE workaround

2009-03-26 Thread sleepwalker
Hi, Does anyone have a work around the lack of support for data-URLs in IE. I've seen some crazy php scripts using mhtml + vml but php isn't supported in the environment I'm working in. Thanks for your Help. Daniel

[jQuery] Re: refresh a DIV

2009-03-26 Thread James
What does "refresh" mean? Re-insert data into the element? If so, you only need: $("#records").html('put whatever you want here'); To refresh every 5 seconds, you can use Javascript's setInterval() function. function doRefresh() { $("#records").html('put whatever you want here'); } setInte

[jQuery] Re: Event Cleanup Slowness in Firefox

2009-03-26 Thread Karl Swedberg
don't know why it's so much slower in Firefox, but if you're dealing with that many elements, you ought to consider using event delegation instead. You can use the .live() method ... $('td').live('click', function() { // do stuff }); ... or roll your own http://learningjquery.com/2008/0

[jQuery] Re: Temporarily disable inline onclick

2009-03-26 Thread James
I think you should probably unbind that inline onclick attribute on page ready and re-assign your own onclick function with jQuery (even if it's the same thing). Save your custom onclick callback function to a variable (as in, separate it from the onclick assignment so it's a standalone function t

[jQuery] Re: Beginner Question

2009-03-26 Thread Karl Swedberg
Just use an attribute selector. For example: $('input[name=firstName]') http://docs.jquery.com/Selectors/attributeEquals#attributevalue --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Mar 26, 2009, at 10:04 AM, Flavouski wrote: In JQuery I saw you can ge

[jQuery] Re: listnav plugin

2009-03-26 Thread Jack Killpatrick
Something is causing your glossary-nav span to be hidden in the HTML (and also not found by the listnav plugin). Try running the HTML through a validator. I tried seeing what was causing the span to be hidden, using Firebug, but didn't immediately see the cause. - Jack kristy...@gmail.com

[jQuery] Re: Jquery.media fails with querystring

2009-03-26 Thread Nico
Hi, today I tried to upgrade from jQuery Media 0.8 to 0.87, and I met the same problem. With version 0.8, jQuery.media was able to handle links like this : link The media type was correct (Windows media player). With version 0.87, jQuery.media doesn't handle anymore this kind of link. Any way

[jQuery] Ajax call with XML Response

2009-03-26 Thread moocher
Hi, I'm very new to JQuery and am having a problem with an Ajax call that returns xml. The error event is being fired, but the textStatus value is 'parserror' and the errorThrown value is 'undefined'. The xml response is valid so i'm not sure what could be wrong. $.ajax({ beforeSend: function

[jQuery] Superfish over a Cycle element in IE 7

2009-03-26 Thread thejon
I spent hours looking for an answer to this and here is the solution: When you want your Superfish menu to appear over a Cycle slideshow, make your ".sf-menu, .sf-menu *" look like this: .sf-menu, .sf-menu * { }

[jQuery] Re: Slow jQuery Event Cleanup in Firefox

2009-03-26 Thread MorningZ
These articles will really help clean up your events http://www.learningjquery.com/2008/03/working-with-events-part-1 http://www.learningjquery.com/2008/05/working-with-events-part-2 On Mar 26, 1:20 pm, "Matt W." wrote: > You might want to try adding one click to the table and checking if >

[jQuery] Re: Problems using JRC corner or curvycorner

2009-03-26 Thread Nikola
I've found JRC and the Bullet Proof CornerZ PlugIns to be foolproof... except in IE8 thus far. On Mar 26, 11:44 am, banacan wrote: > I'm creating a page with many divs that I would like to have rounded > corners, and several problems keep coming up. > > When using JRC for rounding, not all eleme

[jQuery] Re: Slow jQuery Event Cleanup in Firefox

2009-03-26 Thread Matt W.
You might want to try adding one click to the table and checking if the target was a td. On Mar 26, 7:13 am, J K wrote: > Let me start by saying that I am doing something rather unorthodox > with jQuery, and I realize that this is probably outside the realm of > what is reasonable. > > I have a

[jQuery] Re: Inserting rows of DIVs to create a list

2009-03-26 Thread nmiddlew...@gmail.com
Thank you! This is exactly what I'm after Cheers, Nick On Mar 26, 4:34 pm, mkmanning wrote: > "a dynamic list" implies something more semantic than a row of divs, > say a UL or DL...but if you want divs, here's a quick example: > > >         > > > $(document).ready(function(){ > $('#

[jQuery] Re: Jquery validation plugin question

2009-03-26 Thread Jörn Zaefferer
Use the highlight and unhighlight options for that. Jörn On Thu, Mar 26, 2009 at 3:21 PM, markstegg...@googlemail.com wrote: > > Hello, > > Thanks for building this validation plugin, I like it. I have a > question: > > The error class automatically gets added to the label with the same > for="

[jQuery] Re: Thickbox half-works.

2009-03-26 Thread Bert
Thickbox gives this error with the latest JQuery version. use version 1.2.6, worked for me that way. greetz www.twitter.com/Be_Bert On 25 mrt, 15:46, Devin wrote: > This is my code.   The problem I'm having is that when I click the > thumbnail all I see the loading bar.  It just hangs there ani

[jQuery] listnav plugin

2009-03-26 Thread kristy...@gmail.com
I'm having trouble installing this. Not quite sure why it isn't working. Does anyone have a tutorial online on how to implement this or could look over mine and see what i'm doing wrong? I imagine it's something simple. thanks! Kristy lee http://www.klcreativedesign.com/suasion/glossary

[jQuery] How to get the inline value for 'Display' style property via jquery/js??

2009-03-26 Thread KansasCoder
I have an inline css attribute which is set in the codebehind but changes dynamically in the browser via jquery. The display of a textbox and a couple of dropdowns are altered formblock to none based on some rules. When I view the source of the page the dropdown that is visible still has the ori

[jQuery] Help with jquery functions

2009-03-26 Thread Progressed
dear members, new on the whole jquery thingie, and need help on for the follwing: I want to refresh a dive that contains a php query. It has to refresh every 3 seconds. What i see is that the follwing code isnt correct. it also starts $(document).ready... twice... it has to be wrong, but what do

[jQuery] Event Cleanup Slowness in Firefox

2009-03-26 Thread J K
I have a 65x65 HTML table, giving me 4225 table cells. I am using jQuery to make each cell clickable with the following code: $('td').click(function () { // do stuff }); I realize this is a lot of events and that this is likely well outside the realm of what'

[jQuery] SlideDown() nested div?

2009-03-26 Thread Erika
I have a flv video nested inside of a div that slides down using slideDown(). Is there any way to get the flv video to slide down along with the parent div? Currently, the video pops up after the slide down motion has completed.

[jQuery] refresh a DIV

2009-03-26 Thread Progressed
I have a DIV with a php query in it. i'd like to get pointers to maybe 2 solutions. Ideal situation: I have a other jquery script that launches an onComplete like: 'onComplete': { } basicly i want to let it do a refresh on #My sql query# other situation I want to refresh this DIV every 5 s

[jQuery] Problems using JRC corner or curvycorner

2009-03-26 Thread banacan
I'm creating a page with many divs that I would like to have rounded corners, and several problems keep coming up. When using JRC for rounding, not all elements will round even though they have the correct class. Reloading the page will, after several attempts, create the rounded corners, though

[jQuery] Re: jQuery contextmenu problems

2009-03-26 Thread aramgt
Do you have a demo? On 15 feb, 07:03, micho wrote: > Okay, so searching and searching I found that the problem is really in > this block: > >     $.each(cur.bindings, function(id, func) { >       $('#'+id, menu).bind('click', function(e) { >         hide(); >         func(trigger, currentTarget)

[jQuery] Sort tables with hidden (.accordian collapsed) rows

2009-03-26 Thread Colin.Houghton
I have a table where every other row is collapsed (using .toggle). I want to sort on the visible rows, but the sort, of course, sorts the hidden rows as well...the result is that the hidden rows may not longer be associated with the same "parent" row. Here is a snippet: tortable column 1sor

[jQuery] Temporarily disable inline onclick

2009-03-26 Thread Adam Walters
Hello, I was wondering if there was a way to temporarily disable an inline onclick event, which i can reattach later. Here's the scenario: My page has an edit mode which makes the text of certain elements editable. Edit mode is enabled -> text that is editable gets a click event bound to it by

[jQuery] Beginner Question

2009-03-26 Thread Flavouski
In JQuery I saw you can get attributes by saying foo.attr("value"), super handy. Is there anyway to get the element of the thing that contains the attribute? Reasoning: I've got a few hidden inputs that have name="firstName" value="Bob" name="lastName" value="Bobble" So I would want to say get

[jQuery] change onmouseover function call

2009-03-26 Thread Air YT
hi there, have a puzzling one. i have a fairly simple function call that we use to display tooltips over certain image elements. we put the function call in the onmouseover attribute of the image element. looks like this: function CreateTip( strTipMessage ) { // GENERATE TOOLTIP } what

[jQuery] Re: [form] Handling "re-ajax'ing" a form after a submission attempt

2009-03-26 Thread berbercarpet
On Thu, Mar 26, 2009 at 12:45 AM, kevin wrote: > I got the ajax form submit working, but on form validation failure I > am passing back the form html within a json object and I re-stuff the > div container with the form html in order to render out form errors. > > My problem is re-intializing th

[jQuery] Slow jQuery Event Cleanup in Firefox

2009-03-26 Thread J K
Let me start by saying that I am doing something rather unorthodox with jQuery, and I realize that this is probably outside the realm of what is reasonable. I have a 65x65 HTML table, giving me 4225 TD cells. I am making each of them clickable with the following code: $('td').click(function ()

[jQuery] Jquery validation plugin question

2009-03-26 Thread markstegg...@googlemail.com
Hello, Thanks for building this validation plugin, I like it. I have a question: The error class automatically gets added to the label with the same for="" name, but for a certain error I need to change the element that gains the "error" class. For instance, I added this line to the error place

[jQuery] Superfish join code clarity patch

2009-03-26 Thread Virtual Machine
These join statements seemingly behave the same as simple string concatenation, the latter being much more readable. Index: superfish.js === --- superfish.js(revision 36485) +++ superfish.js(working copy) @@ -15,7 +15

[jQuery] Re: [form] Handling "re-ajax'ing" a form after a submission attempt

2009-03-26 Thread berbercarpet
ignore that, better: function initSigninForm() { var options = { target: '#mainContent', dataType: 'json', beforeSubmit: showRequest, success: showSignInResponse } $('#mainContent form').ajaxForm(options); } function showSignInResponse(xhr) { if (xh

[jQuery] Get element position relative to the body

2009-03-26 Thread Shedokan
Is it possible to get the position of an object relative to the dcument if it's a floating object inside elements? thanks.

[jQuery] Re: Inserting rows of DIVs to create a list

2009-03-26 Thread mkmanning
"a dynamic list" implies something more semantic than a row of divs, say a UL or DL...but if you want divs, here's a quick example: $(document).ready(function(){ $('#template div').clone().find('input').attr ('tmp_input','your_new_id').end().find('button').text('Hello').end ().appendT

[jQuery] Re: one check box to select entire group

2009-03-26 Thread Andy H
Here's the html for you. Title Description 1 Description 2 I think what I'm going to do is change the attributes for the checkboxes, so it will make it eas

[jQuery] cluetip ajaxcache:false does not work in IE7

2009-03-26 Thread Geert Baven
How can l have IE 7 respect the ajaxcache set to false? you can see an example at http://www.strikingconcepts.nl/development/kittiwake the first tooltip is >an experiment< provides an examplein the cluetip.js file I have set the option like this: ajaxCache:false, any help appreciate

[jQuery] PNG Fix option that doesn't resize background PNGs?

2009-03-26 Thread D A
I am using Andreas Eberhard's PngFix plugin: http://plugins.jquery.com/project/pngFix Unfortunately, there's a known issue with it resizing background images to fit the container. I am using a PNG sprite so create a rollover effect for some buttons. As such, I don't want the background resized,

[jQuery] Re: html to text

2009-03-26 Thread bart
I have a HTML document with some hardcoded content in it. This content needs to be moved to a database so I have jQuery helping me with some html manipulation left and right to batch some queries. As I want to insert valid xhtml into the database won't do. But I understand that how these self clo

[jQuery] Re: Inserting rows of DIVs to create a list

2009-03-26 Thread nmiddlew...@gmail.com
Hi, thanks for your reply... I was thinking of storing the template in the DOM so it's visible by our web designer to tweat. How would I read that template (DIV block) into a javascript variable? Thanks for your help! On Mar 26, 3:44 pm, MorningZ wrote: > of course it's possible. > > y

[jQuery] selecting children

2009-03-26 Thread david.garc...@barcelonamedia.org
Hi, my question is, why next line doesn't work: $("#conditions-"+get_sufix(type)+" > div,tr,span,label,select,input").each(function(){...}); nor next line: $("#conditions-"+get_sufix(type)+" div,tr,span,label,select,input").each(function(){...}); nor next line: $("#conditions-"+get_sufix(typ

[jQuery] Re: no :ge : le filters?

2009-03-26 Thread Karl Swedberg
On Mar 26, 2009, at 10:14 AM, donb wrote: If I could 'or' :eq and :gt somehow then there's the answer - but I haven't seen that talked about. Is it possible? I'd like to accomplish: $("div.foo:ge(2)").remove() well, you could do $("div.foo:gt(2), div.foo:eq(2)").remove() or $ ("div.foo:gt

[jQuery] Re: Convert js to jquery

2009-03-26 Thread mdjamal
Hi, Thanks again, that solves my problem :-) Ciao.

[jQuery] Re: Inserting rows of DIVs to create a list

2009-03-26 Thread MorningZ
of course it's possible. you'd use: - a variable that contains the string that is the template - JavaScript's ".replace" method to fill in the ID and HTML also, there's plenty of template plugins out there (chain.js, jTemplate) On Mar 26, 11:34 am, nmiddleweek wrote: > Hello, > > I'm tryin

[jQuery] Inserting rows of DIVs to create a list

2009-03-26 Thread nmiddleweek
Hello, I'm trying to create a dynamic list of data using jQuery... Each row will have an INPUT and a BUTTON element. I'm thinking of holding a hidden 'template' for each row and then duplicating the 'template' row for each row needed and then edit the ID and innerHTML of the DOM elements for tha

[jQuery] Re: html to text

2009-03-26 Thread Martijn Houtman
On Mar 26, 2009, at 4:19 PM, bart wrote: For each match it creates a div which holds the HTML in text format. I noticed that it transformed a line break to (without the slash) what causes this behavior? Does this only happen with self closing tags? Can I prevent it all together? I believe X

[jQuery] html to text

2009-03-26 Thread bart
I'm pulling html from each td tag which resides in the tablerow of a table like so; $('table tr td').each(function() { $('').text($(this).html()).appendTo('#jaheur'); }); For each match it creates a div which holds the HTML in text format. I noticed that it transformed a line break to

[jQuery] Jquery Tabs, want to remove white line under selected tab, without removing line under unselected tab

2009-03-26 Thread Martin
Hello, My Jquery Tags are working perfectly. But the only problem I am now experiencing is the selected tabs have a 1px white line underneath them. I have matched the colour of the tab and pane, but the 1px line underneath makes the tabs look separate from the pane. Has anyone encountered this

[jQuery] Re: why does load cost so much time?

2009-03-26 Thread Samuel
thanks, Leo. Actually I just tried closing firebug, which could be much faster, so I think it might be due to firebug itself raising the problem. 2009/3/26 Leonardo K > Maybe this question about performance should be ask in jQuery Dev Group. :D > > > On Thu, Mar 26, 2009 at 10:36, Samuel wrot

[jQuery] Re: getJSON

2009-03-26 Thread Mauricio (Maujor) Samy Silva
De: "iceangel89" i still cant out put anything even with a simple alert(json); - You must loop through data in order to retrieve their values: $.getJSON("data.js", function (json) {var allItems = json.length;$.each(jso

  1   2   >