[jQuery] adding event to dynamic element

2009-11-20 Thread tony stamp
Hello I am using ajax in an autocomplete feature, and to resuse the existing templates, i am attempting to dynamically add a close button/link to the autocomplete results. I understand that i cannot add an event listener to newly created elements, so i am creating the element using the live() fu

[jQuery] Superfish - Multiple Columns

2009-11-20 Thread Chris
How would you use Superfish to make a dropdown menu that contains multiple columns of menu items?

[jQuery] Conflict with doc-menu and startStop slider?

2009-11-20 Thread J2
Hi, I seem to be having issues while trying to include both the doc menu jquery menu (http://www.ndesign-studio.com/blog/design/css-dock- menu/) , and the jQuery start stop slide show (from Chris Coyer). I finally got the slider to work properly, but now the images within the doc menu to not appea

[jQuery] change the height of a div that is loaded after the jQuery is

2009-11-20 Thread Dave
I'm developing a comment panel for a blog that uses Disqus. The design is really tight, and the client is insistent that THIS is the layout. You can see it here: http://agave.purebluebeta.com/blog/2009/nov/20/test-entry/ Problem is, the height is changed AFTER my jQuery is loaded. IE, Disqus comes

[jQuery] Re: Load image when they are visible

2009-11-20 Thread StephenJacob
Not a problem man! I've realized that half the problem finding answers is wording the question properly. Good luck with your project! On Nov 19, 4:40 pm, CrustyDOD wrote: > Yes, that's it.. > > Was so looking for the wrong thing.. > > Thanks man. > > On Nov 19, 9:08 pm,StephenJacob wrote: > > >

[jQuery] Re: loosing scope in a custom object

2009-11-20 Thread mlecho
for anyone who may need this later, i found a work around (not yet tested in ie): this.setDelegate=function(v) { this.delegate =v; v.me = this; //refernce back to this class, since we loose scope in the callbacks this.checked = v.checked; $(v).b

RE: [jQuery] Re: Why would jQuery be undefined in IE, but not FF???

2009-11-20 Thread Rick Faircloth
Really...I didn't realize it would point out syntax errors like that. Good to know... Thanks! Rick -Original Message- From: MorningZ [mailto:morni...@gmail.com] Sent: Friday, November 20, 2009 2:05 PM To: jQuery (English) Subject: [jQuery] Re: Why would jQuery be undefined in IE, but n

[jQuery] Re: array of attributes

2009-11-20 Thread Bill
Ha. Found an answer: http://groups.google.com/group/jquery-en/browse_thread/thread/b73ab7267d9e0357/cc4b528a4f079254?lnk=gst&q=attr+array#cc4b528a4f079254 Has anyone used this? $.fn.attrs = function(key, val){ if (val != undefined) return this.attr(key, val); retu

[jQuery] array of attributes

2009-11-20 Thread Bill
Hey y'all, The jQuery attr() method returns only the attribute of a set's first matched element. E.g., for the HTML snippet: the jQuery expression $("input").attr("name") will return only the string "input-one." What if, instead, I wanted to return all the attribute values in an array? What

[jQuery] Re: imitate link

2009-11-20 Thread KeeganWatkins
charlie and dave are correct: you should use elements semantically to ensure your content runs on as many platforms/devices/configurations as possible. with that being said, there is a simple answer to your original question: HTML: Home JS: $("#fake_link").click(function() { window.location =

[jQuery] Re: IDEs of jQuery

2009-11-20 Thread devilmike
I don't believe there is an ide with that level of support (yet), but I haven't been looking lately. I'd checkout the link MorningZ posted... Michael On Nov 19, 1:56 pm, Ankur_Patel wrote: > to Michael, I am also use NetBeans but how can i get jQuery all library like > php functions,propertie

[jQuery] Re: How to Get Div from IFrame

2009-11-20 Thread mkmanning
No. Cross domain also applies to different sub-domains, protocols, and ports. On Nov 20, 11:17 am, "webspee...@gmail.com" wrote: > Outside of my domain, I can understand. I'll have to hold off for a > bit then. > > Although the page will be remote, it will be accessible > byhttp://search.mydomai

[jQuery] Re: show/hide div on select change

2009-11-20 Thread KeeganWatkins
also, just as a head's up... even when you store numbers as the "value" attribute on an tag, they are interpreted as strings in javascript. so, from your example above, you might also consider switching your condition to: // Compare as string instead if ($("#id_status").val() === '6'){ $('div

[jQuery] Re: How to Get Div from IFrame

2009-11-20 Thread webspee...@gmail.com
Outside of my domain, I can understand. I'll have to hold off for a bit then. Although the page will be remote, it will be accessible by http://search.mydomain.com. Once it's accessible as a "sub domain', will I then have access to the page's elements? On Nov 16, 7:55 am, Liam Byrne wrote: > You

[jQuery] Re: jq 1.3.2 in IE6 syntax error line 324

2009-11-20 Thread KeeganWatkins
can you post a test page? just by scanning, there isn't anything that jumps out at me as being broken/syntactically incorrect... just a tip, though, you can combine your selectors to make that part more efficient: $(function(){ $('#username, #password, #valicode').keydown(function(event){

[jQuery] Re: getjson request an unavailable page

2009-11-20 Thread MorningZ
"ok, I will try by the use of ajax but nobody that used getjson had this problem?" Everyone and anyone using "$.getJSON" *is* using "$.ajax" straight from the jQuery file getJSON: function( url, data, callback ) { return jQuery.get(url, data, callback, "json"); }, which in turn calls

[jQuery] Re: Why would jQuery be undefined in IE, but not FF???

2009-11-20 Thread MorningZ
> I never even thought to check that. Firefox's "View Source" highlighted that line in red

Re: [jQuery] Re: getjson request an unavailable page

2009-11-20 Thread Jon Crump
On Wed, 18 Nov 2009, Humpty Dumpty wrote: Thanks, I though that there was a "JSON" solution; ok, I will try by the use of ajax but nobody that used getjson had this problem? As a matter of fact, I just did. As I understand it $.getJSON() seems to be just a wrapper around an $.ajax() request

RE: [jQuery] Why would jQuery be undefined in IE, but not FF???

2009-11-20 Thread Rick Faircloth
Yep…that was it. Thanks for your input, Michel! Rick From: Michel Belleville [mailto:michel.bellevi...@gmail.com] Sent: Friday, November 20, 2009 12:38 PM To: jquery-en@googlegroups.com Subject: Re: [jQuery] Why would jQuery be undefined in IE, but not FF??? The missing > issue mentio

RE: [jQuery] Re: Why would jQuery be undefined in IE, but not FF???

2009-11-20 Thread Rick Faircloth
Nice catch, Z! That was the problem. I never even thought to check that. Thanks! My weekend will be much better without that continuing irritation! Rick -Original Message- From: MorningZ [mailto:morni...@gmail.com] Sent: Friday, November 20, 2009 12:31 PM To: jQuery (English) Subject

Re: [jQuery] Why would jQuery be undefined in IE, but not FF???

2009-11-20 Thread Michel Belleville
The missing > issue mentionned by MorningZ might be your killer then. Michel Belleville 2009/11/20 Rick Faircloth > Thanks for the reminder on that one, Michel...I checked that to make sure > > the load sequence was correct, and it is… > > > > src="js/jquery-1.2.1.pack.js"> >

[jQuery] Re: Unknown pseudo-class or pseudo-element 'odd'.

2009-11-20 Thread pierre
I'm seing the same behaviour on FF3.5.5 Windows with the example page above or with my test page (I'm using :visible selector). I also use jquery 1.3.2. I actually get it on the document page on jquery.com: Warning: Unknown pseudo-class or pseudo-element 'visible'. Source File: http://docs.jquery.

RE: [jQuery] Why would jQuery be undefined in IE, but not FF???

2009-11-20 Thread Rick Faircloth
Thanks for the reminder on that one, Michel...I checked that to make sure the load sequence was correct, and it is… Rick From: Michel Belleville [mailto:michel.bellevi...@gmail.com] Sent: Friday, November 20, 2009 12:29 PM To: jquery-en@googlegroups.

[jQuery] Re: Why would jQuery be undefined in IE, but not FF???

2009-11-20 Thread MorningZ
http://www.holtzmanrealestate.com/ One issue right away seen by doing a "view source" is that you are not closing the tag:

Re: [jQuery] Why would jQuery be undefined in IE, but not FF???

2009-11-20 Thread Michel Belleville
Well, the most obvious idea that's coming to my mind would be to check wether your jQuery loader line comes before the plugin's loading line. If not, the code of the plugin, which requires jQuery, will lack jQuery and fail. Michel Belleville 2009/11/20 Rick Faircloth

RE: [jQuery] Why would jQuery be undefined in IE, but not FF???

2009-11-20 Thread Rick Faircloth
Even stranger. I went back to another site where I have the cycle plug-in successfully running on IE and FF to retrieve the versions of jquery core and cycle plug-in that are working. I put those into the site at www.holtzmanrealestate.com and I get the same problem as before. 'jQuery

[jQuery] Why would jQuery be undefined in IE, but not FF???

2009-11-20 Thread Rick Faircloth
Hi, all. Anyone have any idea about this? First time I've seen it. I using Mike Alsup's cycle plug-in to cross fade three photos. When I first set this up, it worked fine in IE and FF. Now, however, the code only works in FF. IE7 & IE8 (at a minimum), return the error messages:

[jQuery] Re: No reaction with $('a').click(), OK with dispatchEvent(...)

2009-11-20 Thread KeeganWatkins
>> At the moment I'm not so interested in the right/smart way to write an >> tag. It's more interesting to me to see what the jQuery click() >> function can and cannot do ok, then read the source. we're trying to offer solutions to the problem, but if you just want some info on what jQuery's clic

[jQuery] Re: jQuery UI: Tabs: No spinner

2009-11-20 Thread dinos
I already have that. It's not working. Have you seen any tabs with the spinner working? On Nov 19, 9:11 pm, MorningZ wrote: > add a tag around the 's text and it should work > > so > > http://somesite.com/tabcontent.php";>This Tab > > to > > http://somesite.com/tabcontent.php";>This Tab > > On

[jQuery] Simple jQuery question

2009-11-20 Thread Julesfrog
Hello Forum! I'm new here and also pretty bad at writing javascript. I'm using a snippet of code by Lloyd Irvin (http://agyuku.net/2009/05/back-to-top-link-using-jquery/) that allows the user to scroll back to the top of the page by clicking on a fixed button that fades in only when you begin scr

[jQuery] Where to place import js.

2009-11-20 Thread m.ugues
In the old version of web1 this was an easy question to answer; the right answer was "in the head" as described below: ... In the new web2's one the navigation is no longer based on the full page. The user make a request, then after the dom is downloaded and the first javascript has esecut

[jQuery] Re: AJAX w/dataType='json', doesn't correctly handle boolean response?

2009-11-20 Thread livefree75
I'm not explicitly setting a content-type, but Firebug tells me it's text/html . I'll try changing it to application/json. Erm... I must be doing something else wrong in my script. Just now I just set up a very simple test using both regular $.ajax() and using jquery.form.js's $.ajaxForm()

[jQuery] Click event outside of an element

2009-11-20 Thread Keysher
Hi! I am newbie in JQuery. I want to catch click event outside and specified class. For example, I have a div with class "classname", and I want to attach some actions when I click outside, in the rest of the page. I tried with this (to get the classname where I click): $('*').click(function(){

[jQuery] loosing scope in a custom object

2009-11-20 Thread mlecho
i am trying to bring jQuery into a custom object... The object will manage some logic,callbacks, etc, by assigning a "delegate". In this case , it will be a checkbox function Toggler() { this.type = "toggler"; this.name = null; this.delegate = null; this.group=0;

Re: [jQuery] jquery array

2009-11-20 Thread lostwarrior
tshafer wrote: > > > I need to make a array from a list > > x data> table> > x2 data2> table> > x3 data3> table> > > I am having a hard time using jQuery.makeArray() to make an array > from the data and print it out. How can this be done. > Thanks > > -Tom > > hi please check this

[jQuery] Re: Problems with quotes

2009-11-20 Thread morwo
Is the form validation on the server side? Is it done by PHP? If 2x yes then turn off magic_quotes in your PHP configuration on your server.

[jQuery] Re: No reaction with $('a').click(), OK with dispatchEvent(...)

2009-11-20 Thread Jon
Hi, I'm not quite sure what you try to show me with that $('#a3').click (...stuff...) below, but I can tell you what I just found out: The difference I've mentioned between my clickAt($('#a1')[0]) and $ ('#a1').click(), and also with #a3, occurs in Safari and Opera, but in Firefox (3.0.3 and 3.5.5

Re: [jQuery] Re: No reaction with $('a').click(), OK with dispatchEvent(...)

2009-11-20 Thread Olaf Bosch
Jon schrieb: and one (#a3) that links to this Google Groups page. With the latter I observe the same difference as with #a1: my clickAt($('#a3')[0]) works, but $('#a3').click() doesn't. Bug or feature? Sorry I can't follow you. I added this to Firebug on your Testpage: $('#a3').click( functio

[jQuery] Re: No reaction with $('a').click(), OK with dispatchEvent(...)

2009-11-20 Thread Jon
Hi, At the moment I'm not so interested in the right/smart way to write an tag. It's more interesting to me to see what the jQuery click() function can and cannot do, and it could also be interesting to know why it "fails" where my clickAt(...) works. I have now extended my test page

[jQuery] Re: Get the real html from an iFrame

2009-11-20 Thread m.ugues
None of those worked out. Any idea how to get all the html with a jqeury selector? Kind regards Massimo On 12 Nov, 15:00, brian wrote: > Do either of these work? > > var html = parent.$('#indexIframe').contents().html(); > var html = parent.$('#indexIframe').contents(); > > On Wed, Nov 11, 200