[jQuery] Re: Recursion issue with nested lists.

2009-01-23 Thread RobG
On Jan 24, 2:21 pm, Karl Swedberg wrote: [...] > I wrote a plugin for this sort of thing: > > http://plugins.kswedberg/textchildren/ > > interactive demo: > > http://plugins.kswedberg/textchildren/#demo I think you meant to reply to the OP, or maybe GG is messing up the thread. For both those

[jQuery] Re: Recursion issue with nested lists.

2009-01-23 Thread Karl Swedberg
On Jan 24, 9:01 am, Nicholas wrote: For a short summary on my issue, all that remains is the text() function returning the string of all the node values under the one i'm currently working with. This is by design, but I don't want it to do this and for the life of me cannot discover a way to ex

[jQuery] Re: Weird Hiding Issue

2009-01-23 Thread Karl Swedberg
Hi David, I suspect the unordered lists aren't being hidden because the browser will not recognize that they are within the paragraph. Paragraphs are not allowed to have any block-level elements inside of them: The P element represents a paragraph. It cannot contain block-level elements

[jQuery] Re: Recursion issue with nested lists.

2009-01-23 Thread RobG
On Jan 24, 9:01 am, Nicholas wrote: > For a short summary on my issue, all that remains is the text() > function returning the string of all the node values under the one i'm > currently working with. This is by design, but I don't want it to do > this and for the life of me cannot discover a w

[jQuery] Re: mysterious $(window).error behavior

2009-01-23 Thread Dave Methvin
> Interesting, thanks for the link. I didn't realize that was (supposed > to be) supported. Yeah but it is definitely broken. I noticed this last year and could have sworn I opened a bug, but I can't find it. So I opened one now. http://dev.jquery.com/ticket/3982

[jQuery] Re: trying to get parent frame from mouse event

2009-01-23 Thread jay
self.name On Jan 23, 8:29 pm, jquertil wrote: > whats the best way to find the frame name of a click event? > > in FF I managed to do this: > > $('#'+e.view.name, top.document) > > but > > e.view.name is "undefined" in IE.

[jQuery] Re: Text Manipulation

2009-01-23 Thread jay
Something like this should work: str = $(textinput).val(); $(textinput).val( str.substr(0,str.indexOf("@")) ); On Jan 23, 7:51 pm, whtthehecker wrote: > Hi, > > I'm trying to create a sign up form where after the user inputs their > email address when they click or tab down to the next field

[jQuery] Re: Recursion issue with nested lists.

2009-01-23 Thread jay
You could try using a regular expression to exclude xml tags.. of course you would need something that gives more info than text().. I'm not sure what the function is for xml.. perhaps html() or contents() will work On Jan 23, 6:01 pm, Nicholas wrote: > For a short summary on my issue, all that

[jQuery] Re: sd

2009-01-23 Thread system div
what? 2009/1/24 David Meiser > e^pi? > > On Fri, Jan 23, 2009 at 8:31 PM, jquertil wrote: > >> >> sqrt > > >

[jQuery] Re: UI/Accordion - Possible to deep-link?

2009-01-23 Thread jay
something like this might work: $(document).scrollTop(getRealTop(accordian)); function getRealTop(el){ yPos = document.getElementById(el).offsetTop; tempEl = document.getElementById(el).offsetParent; while (tempEl != null) { yPos += tempEl.offsetTop; tempEl = tempEl.offsetParent; } return yPos;

[jQuery] Re: sd

2009-01-23 Thread David Meiser
e^pi? On Fri, Jan 23, 2009 at 8:31 PM, jquertil wrote: > > sqrt

[jQuery] Re: mysterious $(window).error behavior

2009-01-23 Thread Mike Alsup
> It's certainly documented to work.  See: > > http://docs.jquery.com/Events/error#fn-- particularly the examples. Interesting, thanks for the link. I didn't realize that was (supposed to be) supported. Mike

[jQuery] Re: UI/Accordion - Possible to deep-link?

2009-01-23 Thread bcbounders
Jörn, Thanks for the tip... looks like that could work with a navigation filter parsing out the anchor portion of the URL. I'll give it a shot, anyway! As for the scroll-down-to-accordion part... guess I've got some more googling to do! :D Thanks! - John On Jan 23, 3:28 am, Jörn Zaefferer

[jQuery] Re: sd

2009-01-23 Thread jquertil
sqrt

[jQuery] trying to get parent frame from mouse event

2009-01-23 Thread jquertil
whats the best way to find the frame name of a click event? in FF I managed to do this: $('#'+e.view.name, top.document) but e.view.name is "undefined" in IE.

[jQuery] Re: Reload Part of a Page

2009-01-23 Thread Good Knight
Ahh, I see what you're saying. I got it working! Thanks! On Jan 23, 6:37 pm, Mike Alsup wrote: > > Hi. I don't think that will work. > > > The category list that creates the UL is a PHP which > > statementhttp://www.pastie.org/369269 > > > It would have to rerun that PHP script everytime the .

[jQuery] Text Manipulation

2009-01-23 Thread whtthehecker
Hi, I'm trying to create a sign up form where after the user inputs their email address when they click or tab down to the next field (username field) it auto-populates it with their email address but with the "@x.xxx" section stripped from it. i.e. if the user puts "j...@johndoe.com" into th

[jQuery] Re: jquery not working at all after upgrade to 1.3.1

2009-01-23 Thread Mike Alsup
> This is the same error I get when I was building the app and the id, > gid3 in this case, did not exist on the page.  It does exist, but is > hidden. I tried unhiding it and it didnt change anything. I can toggle > between 1.2.6 and 1.3.1 and watch as it works, then doesn't work. > > "http://ww

[jQuery] Re: mysterious $(window).error behavior

2009-01-23 Thread Adam Fisk
It's certainly documented to work. See: http://docs.jquery.com/Events/error#fn -- particularly the examples. Straight window.onerror has all sorts of cross-browser issues which I was hoping to bypass with the jquery call. -Adam On Jan 23, 5:04 pm, Mike Alsup wrote: > > I can't seem to get $

[jQuery] Re: Bug? ajax request headers not being modified by beforeSend (jquery 1.3.1)

2009-01-23 Thread Mike Alsup
> > I need some help here guys. > > I'm trying to modify the content-type and accept-charsetrequest > > headers of an ajax call and it seems that beforeSend does not really > > change the XHR object. > > > My code is something like this: > >                 beforeSend : function(xhr) { > >        

[jQuery] Re: mysterious $(window).error behavior

2009-01-23 Thread Mike Alsup
> I can't seem to get $(window).error to work the way it seems like it > should.  Have a look at the following page: > > http://www.littleshoot.org/errorTest2.html > > It includes the following, and neither error is caught by the $ > (window).error function -- the alert never happens.  Anyone know

[jQuery] Re: Scale effect and hover

2009-01-23 Thread Mike Alsup
> Hi guys! I'm looking for a simple image hover effect, but with the > scale effect... > I just want make an image bigger on mouse over. This might help: http://www.malsup.com/jquery/hoverpulse/

[jQuery] Re: Cycle plugin an absolute positioning

2009-01-23 Thread Mike Alsup
> Ok - I got the centering thing working on FF Opera and IE7 - not tested in > IE6 yet - but now i have another problem - the slideshow dont work when > using with Lightbox2 - i made a test page - anyone have an idea on how to > fix this?  http://test.ywn.no/jQuery/test Looks to me like the slide

[jQuery] Re: getJSON beforesend?

2009-01-23 Thread Mike Alsup
> now i have another question is there in getJSON some thing like the > beforeSend function in $.ajax ??? > > or schoult i manage my calls through the $.ajax(options) call with the > dataType "json" ?? > > what are your opinions > > thanks for your replies If you are getting the JSON data from a

[jQuery] Re: Reload Part of a Page

2009-01-23 Thread Mike Alsup
> Hi. I don't think that will work. > > The category list that creates the UL is a PHP which > statementhttp://www.pastie.org/369269 > > It would have to rerun that PHP script everytime the .post() is ran > from the initial javascript. I think Jay is making the reasonable assumption that the re

[jQuery] Re: Reload Part of a Page

2009-01-23 Thread Good Knight
Hi. I don't think that will work. The category list that creates the UL is a PHP which statement http://www.pastie.org/369269 It would have to rerun that PHP script everytime the .post() is ran from the initial javascript. On Jan 23, 4:30 pm, jay wrote: > just reload it with whatever is in the

[jQuery] getJSON beforesend?

2009-01-23 Thread Trend-King
Thanks for your good tips for the json in my multiple ajax call update boxes question. now i have another question is there in getJSON some thing like the beforeSend function in $.ajax ??? or schoult i manage my calls through the $.ajax(options) call with the dataType "json" ?? what are your op

[jQuery] Re: Prototype to jQuery: "current" element

2009-01-23 Thread Ricardo Tomasi
'this' in an attribute event handler refers to 'window', not the element itself. You're better of using proper event listeners: $('.thing a').click(function(){ $(this).parents('.setting').remove(); }); or a function to which the event will be passed by default: function removeSetting(event){

[jQuery] Re: SVN for SuperFish?

2009-01-23 Thread Mike Walsh
Bump ... Joel - I see you are answering SuperFish questions again, I posted this a few weeks ago - can you answer it? Thanks, Mike On Jan 5, 11:31 am, Mike Walsh wrote: > I have started using SuperFish for a new project and I'd like to > create an external SVN reference to SuperFish for the pr

[jQuery] Re: Blending / Transitioning two Divs together at the same time

2009-01-23 Thread Mike Alsup
> $(document).ready(function(){ > >         $("#toggle-product-overview").click(function () { >                 $("#is-me").fadeOut("500", function() { > $("#product-overview").fadeIn > ("500"); }); >         }); > >         $("#toggle-is-me").click(function () { >                 $("#product-ove

[jQuery] Recursion issue with nested lists.

2009-01-23 Thread Nicholas
For a short summary on my issue, all that remains is the text() function returning the string of all the node values under the one i'm currently working with. This is by design, but I don't want it to do this and for the life of me cannot discover a way to exclude all the child nodes from text()!.

[jQuery] Prototype to jQuery: "current" element

2009-01-23 Thread candlerb
I am trying to convert the following Prototype code to jQuery: ... remove Basically, when a user clicks on the 'remove' link I want the entire enclosing div which contains this link to vanish from the DOM. But there are multiple divs, each with their own 'remove' links. (*) With jQuery I

[jQuery] Blending / Transitioning two Divs together at the same time

2009-01-23 Thread bioprez
Hello, I am having trouble with 'blending/transitioning' two divs together. What i would like to do is have one div transition into another div when you click an image link, rather than have it fade out and then fade into the next div. I would like to have the same effect that the Cycle Lite plu

[jQuery] Blending / Crossfading two divs together

2009-01-23 Thread bioprez
Hello, I'm trying to figure out how to blend / crossfade two div's together. I have found many examples that crossfades two images together, but i can't find anything on two divs. Right now i am fading one out, and fading the other back in, but i'd like them to fade into each other. Here is my c

[jQuery] Re: [autocomplete] Problem with .result

2009-01-23 Thread Jörn Zaefferer
You could add another keyup-event-handler to the input field, and clear the id field. As long as that runs before the result-handler is setting the data, it should give you the result you need. Jörn On Fri, Jan 23, 2009 at 5:09 PM, Styx wrote: > > Hi. > > I have two fileds. For exmple: > > $("#

[jQuery] Re: [validate] How to validate only one of two forms on a page

2009-01-23 Thread Jörn Zaefferer
A input or button with a class of "cancel" will, when used to submit the form, skip the validation. I documented that somewhere... The relevant code is here: http://dev.jquery.com/browser/trunk/plugins/validate/jquery.validate.js#L40 Jörn On Fri, Jan 23, 2009 at 5:45 PM, JOR wrote: > > I have t

[jQuery] Re: Location Persistence... Almost

2009-01-23 Thread Jed
The code looks roughly like this (names changed to protect the innocent): Script from the : document.write( '' ); $(document).ready(function(){

[jQuery] Re: Scale effect and hover

2009-01-23 Thread Mauricio (Maujor) Samy Silva
Here another approach scaling both dimensions. var imgWidth = $('#scale_img').width(); var imgHeight = $('#scale_img').height(); $('#scale_img').hover(function() { $(this).animate({width: 2*imgWidth, height: 2*imgHeight}) }, function(){ $(this).animate({width: imgWidth, height: imgHeight})

[jQuery] Re: Slide Toggle Question

2009-01-23 Thread Christian
Sorry for not being clear... My fault. If you go to www.usm.edu/music, you'll see the template as it should be. Working perfectly, like I want it (with the js.gallery functioning and rotating the images in the header; but notice the "quick links" drop-down menu. Well, I want to take that and m

[jQuery] Re: Scale effect and hover

2009-01-23 Thread jay
this works for me.. style is bad though sorry had to do it quick: something $(function(){ scaleImg = $("#scale_img"); scaleImg.w = scaleImg.width(); scaleImg.hover(function(){ scaleImg.width(scaleImg.w*2); }, function(){ scaleImg.width(scaleImg.w); }); }); On Jan 23, 4:44 pm, "-=A

[jQuery] Re: unrecognized expression after jquery update to 1.3.1

2009-01-23 Thread Mauricio (Maujor) Samy Silva
From: http://docs.jquery.com/Release:jQuery_1.3#Upgrading "The '@' in [...@attr] has been removed. Deprecated since 1.2 this old syntax no longer works" Maurício -Mensagem Original- De: "youssef" Para: "jQuery (English)" Enviada em: sexta-feira, 23 de janeiro de 2009 19:26 Assun

[jQuery] Re: Reload Part of a Page

2009-01-23 Thread jay
just reload it with whatever is in the data variable. $("#myUL").html (data) will do the trick assuming your data is just html like "12" On Jan 23, 12:46 pm, Good Knight wrote: > Is there an easy way to reload a section of a page? > > I have a .post() that updates the contents of an unordered l

[jQuery] Re: jquery.ajax question.

2009-01-23 Thread Trend-King
Thanks for your replies i try it with json format, thanks for that good tip On 23 Jan., 11:27, NeX wrote: > try tu use JSON data format. It's simly, then parsing html values in > result.

[jQuery] Re: id question

2009-01-23 Thread jay
based on this wouldn't the syntax be alert($('#id\\{0\\}___').val ()); ? On Jan 23, 5:19 pm, "Mauricio \(Maujor\) Samy Silva" wrote: > You must escape properly weird characters in ID values. > Have a look > at:http://docs.jquery.com/Frequently_Asked_Questions#How_do_I_select_an_... > > Maurício

[jQuery] Re: Slide Toggle Question

2009-01-23 Thread jay
I get javascript errors in IE, and the images overlap the content in firefox.. what am I looking for exactly? On Jan 23, 3:03 pm, Christian wrote: > Hey everyone. > > I'm still a bit new to the whole jQuery world.  I love what I've seen > so far, and it seems fairly simple to implement on a site

[jQuery] Re: id question

2009-01-23 Thread Mauricio (Maujor) Samy Silva
You must escape properly weird characters in ID values. Have a look at: http://docs.jquery.com/Frequently_Asked_Questions#How_do_I_select_an_element_that_has_weird_characters_in_its_ID.3F Maurício -Mensagem Original- De: "gvangass" Para: "jQuery (English)" Enviada em: sexta-feira, 2

[jQuery] Re: jquery 1.3, .live(), submit and IE7

2009-01-23 Thread Mike Alsup
> I'm having a strange behavior of the new .live() method when used on a > submit event. The biggest problem is on IE7, but there is a minor > problem on other browsers too. > > The problem is that if I'm binding a live submit event on a form not > present in the document, the submit event is not

[jQuery] Re: id question

2009-01-23 Thread jay
I would assume that it doesn't like the \{0} part.. is this server- side code or something? On Jan 23, 4:56 pm, gvangass wrote: > Hi > > Is there a reason why: alert($('#id\{0}___').val()); > not displaying the value, also no error with Firebug > > but > > alert(document.getElementById("id{0}___

[jQuery] Re: Highlight onKeyUp using Cursor Keys

2009-01-23 Thread jay
No, not necessarily. You could store a reference to the selected element in a variable. You wouldn't want to have to iterate through the list of elements every time to determine if it is selected if you don't have to. On Jan 23, 4:58 pm, bittermonkey wrote: > and to find out which element

[jQuery] mysterious $(window).error behavior

2009-01-23 Thread Adam Fisk
I can't seem to get $(window).error to work the way it seems like it should. Have a look at the following page: http://www.littleshoot.org/errorTest2.html It includes the following, and neither error is caught by the $ (window).error function -- the alert never happens. Anyone know what's up?

[jQuery] unrecognized expression after jquery update to 1.3.1

2009-01-23 Thread youssef
After I upgrade to Jquery.1.3.1 , I received this error in my code uncaught exception: Syntax error, unrecognized expression: [...@id*=countryidentifier_] http://ajax.googleapis.com/ajax/libs/jquery/1.3.1/jquery.min.js Line 12 My expression is working fine with 1.2.6. does any one why?

[jQuery] Weird Hiding Issue

2009-01-23 Thread david.vansc...@gmail.com
The answer to this is probably really simple, but I'm just not finding it. I'm working on a newsletter and they want the first paragraph of each article shown, then a More link at the end. Got that working fine. I even have it working so that it automatically hides all but the first paragraph t

[jQuery] Slide Toggle Question

2009-01-23 Thread Christian
Hey everyone. I'm still a bit new to the whole jQuery world. I love what I've seen so far, and it seems fairly simple to implement on a site. I recently viewed a web site through promotion on ExpressionEngine.com, and found the slideToggle effect. I asked the web admin if they can forward me w

[jQuery] Scale effect and hover

2009-01-23 Thread -=AmBaRaDaN=-
Hi guys! I'm looking for a simple image hover effect, but with the scale effect... I just want make an image bigger on mouse over. I'm newbie with jQuery, and I tried this $("#scale_img").hover(function() { $(this).effect("scale", { percent: 200 }); }, function() { $(this).eff

[jQuery] Reload Part of a Page

2009-01-23 Thread Good Knight
Is there an easy way to reload a section of a page? I have a .post() that updates the contents of an unordered list, but i have to refresh the page to see the new contents of the UL. Anyway to have the UL reload when the .post() goes off? I am using the Impromptu plugin to run the post, but this

[jQuery] Re: TableSorter, Turning Sort Off

2009-01-23 Thread webchetan
How can I mainitain TableSort on subsequent postbacks. Basically I sort a table using tablesorter() and when I click on Page# 2 in GridView (ASP.NET) the sorting doesn't persists. Is there anyway I can store the sorting values actross pages? Thanks On Jan 23, 11:21 am, jay wrote: > I amend wh

[jQuery] jquery 1.3, .live(), submit and IE7

2009-01-23 Thread Pixelastic
Hello, I'm having a strange behavior of the new .live() method when used on a submit event. The biggest problem is on IE7, but there is a minor problem on other browsers too. The problem is that if I'm binding a live submit event on a form not present in the document, the submit event is not tri

[jQuery] id question

2009-01-23 Thread gvangass
Hi Is there a reason why: alert($('#id\{0}___').val()); not displaying the value, also no error with Firebug but alert(document.getElementById("id{0}___").value); displays it ? The html looks like this: show_value() run the alerts above Thanks gvg

[jQuery] Superfish Opacity

2009-01-23 Thread levine....@gmail.com
Greetings all, I also am having an issue with turning off the opacity in Superfish. I think I need to pass something like "opacity: false" but this does not work. I have also tried "hide" as well. Help please. Thanks, Ron

[jQuery] Re: Highlight onKeyUp using Cursor Keys

2009-01-23 Thread bittermonkey
and to find out which element was selected, I have to check for its background? Is that right? On Jan 23, 4:49 pm, jay wrote: > You could write something yourself fairly easily.  Just update the > backgroundColor css property when you press the up/down keys on your > absolutely positioned e

[jQuery] Re: Highlight onKeyUp using Cursor Keys

2009-01-23 Thread jay
You could write something yourself fairly easily. Just update the backgroundColor css property when you press the up/down keys on your absolutely positioned element, and when you press enter perform an action that is associated with that element. On Jan 23, 4:32 pm, bittermonkey wrote: > The co

[jQuery] Encoding characters using load("some_file.html")

2009-01-23 Thread Mauricio (Maujor) Samy Silva
Subject: The best way to encode special caracters when requesting a **HTML fragments** using the jQuery method load(). There are tons of discussions on this subject but I didn't realize the right (best) way to go. Or how many ways ("bullet proof") are there? Please have a look at a test case:

[jQuery] Re: Cycle plugin an absolute positioning

2009-01-23 Thread illuminati78
Ok - I got the centering thing working on FF Opera and IE7 - not tested in IE6 yet - but now i have another problem - the slideshow dont work when using with Lightbox2 - i made a test page - anyone have an idea on how to fix this? http://test.ywn.no/jQuery/ test -- View this message in contex

[jQuery] Re: Highlight onKeyUp using Cursor Keys

2009-01-23 Thread bittermonkey
The code is a bit overwhelming for just the highlight functionality. Thanks anyway. On Jan 23, 4:17 pm, jay wrote: > Here is a jquery autocomplete plugin I googled and seems to do what > you want: > > http://www.pengoworks.com/workshop/jquery/autocomplete.htm > > On Jan 23, 4:00 pm, bittermonkey

[jQuery] Re: Highlight onKeyUp using Cursor Keys

2009-01-23 Thread jay
Here is a jquery autocomplete plugin I googled and seems to do what you want: http://www.pengoworks.com/workshop/jquery/autocomplete.htm On Jan 23, 4:00 pm, bittermonkey wrote: > How do I initialize a hover on a tag using cursor keys in > jQuery?  It's similar to how google highlights its auto

[jQuery] Re: getting to a variable in the parent frame - stumped

2009-01-23 Thread jay
That makes sense. I think you just need document if you need to access the other frame's DOM tree. On Jan 23, 4:04 pm, jquertil wrote: > oh! I got it. thanks Jay, your suggestion gave me the hint I needed to > figure it out. > > removing var did 1/2 the trick, the second 1/2 was me realizing tha

[jQuery] Re: $.ajax() wierdness

2009-01-23 Thread Kraulin
Update: This turned out to be an infrastructure problem... jQuery will error out if you ask for an XML file with datatype:'xml' and the response header is not text/xml. -=Bryan Kraulin wrote: > > I'm experiencing a problem with consuming an xml file that exists on my > server... > > I'm

[jQuery] Re: getting to a variable in the parent frame - stumped

2009-01-23 Thread jquertil
oh! I got it. thanks Jay, your suggestion gave me the hint I needed to figure it out. removing var did 1/2 the trick, the second 1/2 was me realizing that now I have module as object of the top document, so top.module.something1('hello'); works. yay! this drove me crazy last night!

[jQuery] Re: superfish help

2009-01-23 Thread Skye
Thanks Joel. Dumb error with the JQuery. I'm using the Superfish css file included with the package for the dropdowns. I just modded the class name and changed it to an id instead b/c that's how extended menu publishes the menu with id instead of class. not sure if that will effect the sample css

[jQuery] Highlight onKeyUp using Cursor Keys

2009-01-23 Thread bittermonkey
How do I initialize a hover on a tag using cursor keys in jQuery? It's similar to how google highlights its autocomplete results. So, from google.com, type the letter "a" in the searchbox then press the Down Arrow Key and notice how the first item in the autocomplete box gets highlighted and so

[jQuery] Re: getting to a variable in the parent frame - stumped

2009-01-23 Thread jquertil
thanks - that was an interesting consideration. Unfortunately didn't make a difference. (still scratching head)

[jQuery] Re: Bug? ajax request headers not being modified by beforeSend (jquery 1.3.1)

2009-01-23 Thread Nicolas R
It seems that when I use GET instead of POST, the content type header is correctly changed to what I specify. But even so, this is not a stable fix as I want to POST. Any ideas? On Jan 22, 7:09 pm, Nicolas R wrote: > I need some help here guys. > I'm trying to modify the content-type and acce

[jQuery] Re: getting to a variable in the parent frame - stumped

2009-01-23 Thread jay
perhaps you need to do this.module = {...}? Doing var module makes it "private" I believe On Jan 23, 3:31 pm, jquertil wrote: > I'm using frames (don't ask) and have exhausted my abilities > (sniff)... here is some pseudo-code to illustrate the situation: > > first, CONT

[jQuery] Re: Html navigation menus

2009-01-23 Thread Spencer
Thanks Joel. I'll have to give Superfish another try.

[jQuery] getting to a variable in the parent frame - stumped

2009-01-23 Thread jquertil
I'm using frames (don't ask) and have exhausted my abilities (sniff)... here is some pseudo-code to illustrate the situation: first, CONTAINER.HTM: $(function(){ var module = { something1 : function(var1){ alert(var2); } } }); - n

[jQuery] Re: neccessity of binding update after adding html dynamically

2009-01-23 Thread jay
If they are already binded they should be fine.. You can move the elements around the DOM tree and they will have the same events as before.. When you're doing html() you're creating new elements, and therefore they don't have any events related to them..unless you have an onclick attribute.. but

[jQuery] Re: Download a file from server...

2009-01-23 Thread Nicolas R
I also worked around this by using an iframe, and pointing the form's (or anchor's) target attribute to that iframe. Some browsers don't like it when the iframe is set to visibility:hidden or display:none. If you make it position:absolute;height:0;width:0;border:0; it should be ok. Now, I want to

[jQuery] Re: Query on jQuery object?

2009-01-23 Thread corb
Ahh... lightbulb just came on. Thanks a lot. On Jan 23, 12:09 pm, jay wrote: > That makes more sense.. children() will only do immediate > descendents.  You could also do mydiv.find(expr) as well I suppose. > > On Jan 23, 1:04 pm, Eric Garside wrote: > > > var mydiv = $('#mydiv'); > > $('.child

[jQuery] Re: Query on jQuery object?

2009-01-23 Thread Eric Garside
Yea, me and the .children() method have grown apart. I much prefer the $('.child', parent) syntax. It looks cleaner, and is shorter, which is always nice. On Jan 23, 1:09 pm, jay wrote: > That makes more sense.. children() will only do immediate > descendents.  You could also do mydiv.find(expr)

[jQuery] Re: If object wrapped, parents can't be found?

2009-01-23 Thread jay
This worked for me: $(function(){ $("#myEl").wrap("").parents().each(function(){alert (this.tagName)}) }); something On Jan 23, 1:24 pm, Nic Hubbard wrote: > I ran into a strange problem which too me a while to figure out what > was going on.  I used the .wrap() function

[jQuery] Re: neccessity of binding update after adding html dynamically

2009-01-23 Thread aldana
yes this was it. when not using html() and setting values with "normal" dom-operations instead I wouldn't need to rebind, correct? jay-125 wrote: > > > If you do: > > $(anyElement).html("blah"); > > then you will need to do: > $('#bla').bind("click",function(){.}); > > after the html(

[jQuery] If object wrapped, parents can't be found?

2009-01-23 Thread Nic Hubbard
I ran into a strange problem which too me a while to figure out what was going on. I used the .wrap() function to wrap an element with a span. Then, later on in my script I wanted to find all of the parents (using .parents() or even p.arent()) of the element that I wrapped. Strangely, it would a

[jQuery] Re: jquery not working at all after upgrade to 1.3.1

2009-01-23 Thread Jay
This was never a problem before, was something changed in 1.3 that would make this necessary? Reason for both ways is large application built OOP in php. Just made it so page has no body onloads and problem persists. I did change the flexDestroy function to be off the jquery function, that was

[jQuery] Re: Query on jQuery object?

2009-01-23 Thread jay
That makes more sense.. children() will only do immediate descendents. You could also do mydiv.find(expr) as well I suppose. On Jan 23, 1:04 pm, Eric Garside wrote: > var mydiv = $('#mydiv'); > $('.childdiv', mydiv).css('font-weght', 'bold'); > > On Jan 23, 12:57 pm, corb wrote: > > > > > This

[jQuery] Re: Query on jQuery object?

2009-01-23 Thread Karl Swedberg
There are two ways you could do this -- by storing the selector in a variable or by chaining. Variable: // version a, using .find(): $(document).ready(function(){ var $mydiv = $("#mydiv"); $mydiv.click(function(){alert('hello')}); $mydiv.find(".childdiv").css("font-weight", "bold"); });

[jQuery] Re: Problem with Magnify jQuery plugin in IE7

2009-01-23 Thread PIT_777
Padding on the stageCss i using because, without this some photos in big version was without some part near to border line(without padding plugin cuting some border part of photo) Regards, Peter On 23 Sty, 09:38, "proact...@gmail.com" wrote: > Hi, here Peter (I writing from other account), > i

[jQuery] Re: Can't append html to textare after jquery.form ajax submit

2009-01-23 Thread drewtown
Thanks for the response I do appreciate it. I tried your code and was not having any look so I looked at the jquery form plugin docs and found this little gem $('#journalForm').ajaxForm({ dataType: 'json', success: process,

[jQuery] Re: Query on jQuery object?

2009-01-23 Thread Eric Garside
var mydiv = $('#mydiv'); $('.childdiv', mydiv).css('font-weght', 'bold'); On Jan 23, 12:57 pm, corb wrote: > This may obvious, but I haven't seen any examples that fit what I'm > trying to do. In many places in my code, I will select an element once > into a var and make necessary changes. What

[jQuery] Re: Query on jQuery object?

2009-01-23 Thread jay
Would mydiv.children("#childdiv").css("font-weight", "bold"); work? On Jan 23, 12:57 pm, corb wrote: > This may obvious, but I haven't seen any examples that fit what I'm > trying to do. In many places in my code, I will select an element once > into a var and make necessary changes. What I can'

[jQuery] Re: 1.3.1 is over 10x slower than 1.2.6

2009-01-23 Thread Loren
Yes, I expect the new event triggering logic to be the cause of the slowdown. In two other areas I had manually called trigger() during a mouseover event. Whenever my mouse passed over that element, my machine froze - cpu pegged at 100% for several seconds. This was also while I was running tha

[jQuery] Query on jQuery object?

2009-01-23 Thread corb
This may obvious, but I haven't seen any examples that fit what I'm trying to do. In many places in my code, I will select an element once into a var and make necessary changes. What I can't seem to figure out or find documentation on is querying on an existing object. Here's what I have to do no

[jQuery] Re: jquery not working at all after upgrade to 1.3.1

2009-01-23 Thread seasoup
Well, one issue might be that you are using onload in the body tag why not use the jQuery ready function that you are already using above? $(document).ready(function(){ $('#gid3').flexigrid(); DynarchMenu.setup('hmenu_01',{ context: true, electric: 500, tooltips: true }); Form

[jQuery] Re: I love jQuery fan logos

2009-01-23 Thread chrispie
ah nice! i was searching for a hq version. thx On Jan 23, 3:37 pm, Brandon Aaron wrote: > Cool! BTW... You can find the official jQuery and jQuery UI logos > here:http://docs.jquery.com/Design_and_Identity :) > -- > Brandon Aaron > > On Fri, Jan 23, 2009 at 7:35 AM, chrispie wrote: > > > hey,

[jQuery] Re: Having problems with 1.3 on Opera userjs

2009-01-23 Thread helianthus
anyone? On 1月23日, 上午8時42分, helianthus wrote: > I have been writing a user-script(userjs) with jQuery recently, the > way I integrate jQuery is to copy the minified code into the user- > script. > It had been working fine until I updated jQuery to 1.3, while on other > browsers(FF3, Chrome, etc)

[jQuery] Re: neccessity of binding update after adding html dynamically

2009-01-23 Thread jay
If you do: $(anyElement).html("blah"); then you will need to do: $('#bla').bind("click",function(){.}); after the html() call. Does this answer your question? On Jan 23, 11:30 am, aldana wrote: > I am binding elements inside document.ready(): > $('#bla').bind("click",function(){.});

[jQuery] Re: change certain elements in result set based on position

2009-01-23 Thread devilmike
Awesome Ricardo, thanks! I guess the only issue I have is that I'll never know how many "sets of 4" I'll be dealing with, and i apologize for not explaining myself very well in my example. Basically for each "set", I want to run the same function. This is what I came up with. It works, but I'm a

[jQuery] Re: New Plugin: jQuery Finder (Mac-style 'Treeview' with Columns)

2009-01-23 Thread Nicolas R
@Cliff, I remember that somewhere in the source there's provision for what you're asking (the first version was like that). I'm also sure that its not implemented and that it will require quite a bit of fiddling to get it to work. I'll check the source and do some tests over the weekend and if I h

[jQuery] Re: Events. .click() vs. .onclick

2009-01-23 Thread KidsKilla .grin! wuz here
yeap, ill try to publish an example of the page tomorrow... 2009/1/23 Eric Garside : > > Do you have a public page somewhere that you're trying this? That'd be > helpful in diagnosing the problem. Otherwise, we're shooting in the > dark here. > > On Jan 23, 10:59 am, "KidsKilla .grin! wuz here"

[jQuery] Re: Looping JSON Data

2009-01-23 Thread Eric Garside
JSON is Javascript Object Notation, and is really text only. Once you get JSON into javascript, it parses it into the object which it defines. From that point on, you're just passing a regular object around. There's technically no such thing as a "JSON" object. Also, try running this code: var l

[jQuery] Re: run function when 'each' is done, how?

2009-01-23 Thread Eric Garside
Yup, Ricardo's got it. In Javascript, everything runs in as it's called, and will not continue to the next action until the current one is complete. So if you have something like: var num = 0; for (var i =0; i< 1; ++i){ num += i; } alert(num); Num will properly display whatever the value

  1   2   >