[jQuery] Re: jQuery prototype magic

2008-09-17 Thread Michael Geary
jQuery.fn is one of those things that exists mainly for historical reasons. In the very first versions of jQuery, $.fn was *not* the same as $.prototype. (There was no jQuery object by that name in those days, just a $ object.) $.prototype wasn't used for anything; instead, every time a jQuery

[jQuery] Re: [validate] Issues in IE6

2008-09-17 Thread Jörn Zaefferer
Works fine for me, even in IE6. Jörn On Tue, Sep 16, 2008 at 10:49 PM, Mattl [EMAIL PROTECTED] wrote: Hi, I've got form validation using http://bassistance.de/jquery-plugins/jquery-plugin-validation/ working well in Firefox 2, Safari 3.1, Opera 9.5 etc but throwing up an error in IE6. I

[jQuery] variable substitutioin in html-snippet

2008-09-17 Thread casavecchio
Hello, i would like to load always the same snippet of html over ajax and dependent on the click substitute ids and classes in the loaded snippet. How that could work? Any suggestions Thx Boris

[jQuery] Re: Read AJAX response in transit?

2008-09-17 Thread Michael Price
Thank you both for your suggestions - I'll give them a try and see what I come up with. The script in question takes about 5 minutes so if I can get something going via your suggestions it'll keep people happy :) Regards, Michael Price

[jQuery] Re: Moving a opened dialog on top the windows stack

2008-09-17 Thread Richard D. Worth
See http://groups.google.com/group/jquery-ui/browse_thread/thread/e2fe9d77db34c563 - Richard On Wed, Sep 17, 2008 at 1:30 AM, Olive [EMAIL PROTECTED] wrote: Hello, I'm just wondering if there is any undocumented method (or trick), like dialog.data(), to raise (and maybe focus) an already

[jQuery] Re: linking two controls

2008-09-17 Thread Richard D. Worth
I'm not sure if this is exactly what you're looking for, but I wonder if you've looked at the jQuery UI Dialog plugin: Docs: http://docs.jquery.com/UI/Dialog Demos: http://ui.jquery.com/repository/latest/demos/functional/#ui.dialog If it interests you and you have further questions, there's a

[jQuery] Re: How to use a div as a placeholder for other divs?

2008-09-17 Thread Richard D. Worth
You can use $(#content).empty(); // empty the element with an id of 'content' or $(#content div).remove() // find all divs within the element with an id of 'content' and remove them - Richard Richard D. Worth http://rdworth.org/ On Tue, Sep 16, 2008 at 4:50 PM, zephyr [EMAIL PROTECTED]

[jQuery] Re: replaceWith returns the replaced element

2008-09-17 Thread Richard D. Worth
This sounds like a bug to me. Better raise it on the jQuery Dev list: http://groups.google.com/group/jquery-dev/ - Richard On Tue, Sep 16, 2008 at 4:58 AM, tchvil [EMAIL PROTECTED] wrote: Hi, replaceWith returns the JQuery element that was just replaced. In the example below: $(

[jQuery] best/standard way to benchmark your own scripts?

2008-09-17 Thread Alex Weber
looking to find possible bottlenecks and basically optimize the hell outta my js which relies heavily on jquery and the occasional plugin... is there a more elegant and efficient way to do this than to toss a few document.write()s at my code?? =P thanks!! -Alex

[jQuery] Escaping the apostrophe

2008-09-17 Thread Shawn Molloy
When I have a string that contains an apostrophe, whats the best way to handle it? For example, this function call throws the following error: Function: onclick=addQuote('This video don't work!'); return false; Error: missing ) after argument list addQuote('This link don't work!'); return

[jQuery] Re: JQuery - wrap() + Internet Explorer problem

2008-09-17 Thread weidc
I allready tried 'visibility: visible' and 'display: block' but he doesn't hide the picture's. It seems like he totally remove them. I don't know what could change that. On 16 Sep., 22:16, ricardobeat [EMAIL PROTECTED] wrote: ooops. yeah, everything disappears on subsequent reloads. As Karl

[jQuery] Re: jQuery prototype magic

2008-09-17 Thread Balazs Endresz
In other words 'new jQuery.fn.init( selector, context )' doesn't return a new jQuery object but a new 'init' object. But the init object doesn't have any methods, of course, so the ones of jQuery have to be copied over. So you couldn't access the methods because 'init' didn't have them before.

[jQuery] css-js mouseover effects not working in ajax response

2008-09-17 Thread jey jey
Hi I have an issue regarding the ajax response the css-js mouseover effects not working in ajax response. Please gimme the reason behind this. Lemme know how can we sort it out. gimme some code snippents Thanks in advance joban john ? while($life) { $knowledge++ ; } ? 1) He who lives

[jQuery] Re: replaceWith returns the replaced element

2008-09-17 Thread Karl Rudd
Nah, it's not a bug. replaceWith( content ) Returns: jQuery Replaces all matched elements with the specified HTML or DOM elements. This returns the JQuery element that was just replaced, which has been removed from the DOM ( http://docs.jquery.com/Manipulation ) It's like doing a remove(),

[jQuery] Re: Escaping the apostrophe

2008-09-17 Thread Karl Rudd
You escape a quote character by putting a \ in front of it. addQuote('This link don\'t work!'); Karl Rudd On Wed, Sep 17, 2008 at 5:51 PM, Shawn [EMAIL PROTECTED] wrote: When I have a string that contains an apostrophe, whats the best way to handle it? Should I remove it? replace it? encode

[jQuery] Re: replaceWith returns the replaced element

2008-09-17 Thread Richard D. Worth
On Wed, Sep 17, 2008 at 6:58 AM, Karl Rudd [EMAIL PROTECTED] wrote: Nah, it's not a bug. replaceWith( content ) Returns: jQuery Replaces all matched elements with the specified HTML or DOM elements. This returns the JQuery element that was just replaced, which has been removed from the

[jQuery] Re: Jcrop v0.9.0 image cropping plugin - comments please

2008-09-17 Thread Richard W
Very very nice thank you Kelly. RE ui debate: i haven't taken a look a the code of this plugin, but from a users experience it does seem to have smoother dragging than the jQ UI example. On Sep 16, 7:22 pm, Jose [EMAIL PROTECTED] wrote: thanks. I am a bit confused which one should I use. I

[jQuery] Find elements

2008-09-17 Thread shapper
Hello, How can I find all elements in a page given a class and pass to a function? Or maybe better, how to I create a function that acts like a plugin, i.e.: Applies something to all elements of a given class. Thanks, Miguel

[jQuery] Separate elements

2008-09-17 Thread shapper
Hello, I am trying to create a plugin that applies something to elements given their CSS class. However, I need to distinguish between the elements that are enabled and the elements which has the property disabled = 'disabled' ... I need this because what I apply is different dependent of

[jQuery] jquery.com incredibly slow for me

2008-09-17 Thread micha_17
Can someone please confirm that jquery.com is sometimes (%2) so slow, pages won't even show up after 2 minutes waiting ? The slowness has been there before tha page has been redesigned. I'm on winxp FF3. I's the same with my colleagues here and @home.

[jQuery] Re: Separate elements

2008-09-17 Thread MorningZ
Ever read the docs? (http://docs.jquery.com/Selectors) There are :enabled and :disabled selectors

[jQuery] Superfish - 1:colors, 2:overlap, 3:animation removal 4:navbar spacing

2008-09-17 Thread Devin
Hello, I have been using a menu system at work that is 10 times more complicated than it needs to be. Superfish does almost everything it does and in some cases even more. So I'd like to get Superfish implemented in my project. I have some questions that I haven't been able to find a quick fix

[jQuery] jquery.metadata + XSLT + forms

2008-09-17 Thread googleuser
Hello, In XSL if { is in atribute XSLT processor try to resolve expresion. Jquery metadata uses { to process data, in old version of metada I try metadata with [, with this: if ( /^\[.+\]$/.test( data ) ){ data =

[jQuery] Re: jquery.com incredibly slow for me

2008-09-17 Thread Konstantin Tokar
At me the site is loaded for some seconds. try traceroute jquery.com - and On 17 сент, 16:30, micha_17 [EMAIL PROTECTED] wrote: Can someone please confirm that jquery.com is sometimes (%2) so slow, pages won't even show up after 2 minutes waiting ? The slowness has been there before tha page

[jQuery] Re: Find elements

2008-09-17 Thread BB
$(.myClass).each(function() { // this = DOM Element = $(this) = jQuery Object }); On 17 Sep., 13:55, shapper [EMAIL PROTECTED] wrote: Hello, How can I find all elements in a page given a class and pass to a function? Or maybe better, how to I create a function that acts like a plugin,

[jQuery] Re: jQuery Validation Errors

2008-09-17 Thread GregWa
I figured out the problem. In IE, if you have not set a class, even an empty class would suffice (class=), it will throw that error. I never saw this in the documentation, which I feel could use some work as is to be clearer. As such, I am not sure whether this is a known problem or coding

[jQuery] Re: jquery.com incredibly slow for me

2008-09-17 Thread GregWa
I have the same exact problem. It has been this way for so long, even before the site redesign, that they simply must not have funds to properly run the site it seems. On Sep 17, 8:30 am, micha_17 [EMAIL PROTECTED] wrote: Can someone please confirm that jquery.com is sometimes (%2) so slow,

[jQuery] Re: multiple getJSON calls appear to wait for first response to run any callbacks in FF?

2008-09-17 Thread Josh Rosenthal
Sorry for not following up... looks like I missed your response while I was away. However, I'm reasonably sure I don't understand. It doesn't seem like getJSON is supposed to wait... wraps with the callback function, and thus should run when there is a return. Can you give a bit more detail, or

[jQuery] cascade question

2008-09-17 Thread kevin
Hi all, here is my sample page http://sskes.damimi.org/test/ my question is how can i let the first box selected on B and also trigger second box list the correct value B1,B2,B3,B4 automatically when page loaded. thanks.

[jQuery] [validate] Pb with button

2008-09-17 Thread cage31
Hi, I would like validate my form with the validate plugin. I have a little problem. In my form, there are button with metadata. So the html look like this : button id=btnCancel class=bnbutton {bnAction:131328} type=button Unfortunately, the plugin control the button and search the validation

[jQuery] IE7innerHTML and text normalization

2008-09-17 Thread Paul
Hi All, I'm trying to replace all linebreaks with html br /, but due html normalization with the innerHTML propery in IE7 the following piece of code won't work in IE7 div id=text thingy 1 thingy 2 /div script var str = $('#text').html(); $('#text').html(str.replace(/\n/g, br /)); /script

[jQuery] Re: jquery.com incredibly slow for me

2008-09-17 Thread vld
Same here. OSX 10.5.5 FFX3, Safari, Problems are both from home and corporate. On Sep 17, 7:30 am, micha_17 [EMAIL PROTECTED] wrote: Can someone please confirm that jquery.com is sometimes (%2) so slow, pages won't even show up after 2 minutes waiting ? The slowness has been there before tha

[jQuery] Re: Hover on all elements: $(*).hover(...)

2008-09-17 Thread benjam
This is insanely kludgy, not very pretty, and probably slower than a more elegant solution. But it works. $('*').hover( function(event) { var $this = $(this); $this.addClass('selected');

[jQuery] Re: this.style is null or not an object

2008-09-17 Thread MorningZ
Are you sure the ID of the object is showError? Because if it's a server side control and you are using UserControls or MasterPages, then the ID of the object will get prepended by IDs of it's containers To confirm this is or isn't happening, simply do a View Source of the HTML and find that

[jQuery] Re: this.style is null or not an object

2008-09-17 Thread Eric Martin
It sounds like an issue with your page. Do you have any code examples or a page that I can view? On Sep 17, 5:40 am, kimoy [EMAIL PROTECTED] wrote: Hi, I'm developing on ASP.NET and have been trying to make the SimpleModal plugin work but somehow the jQuery.hide() function throws an error

[jQuery] Re: custom / slimmed-down jquery possible?

2008-09-17 Thread Eric Martin
Alex - I briefly went through jQuery and removed some of the unused parts (as it relates to SimpleModal). I was able to get it down to just under 75k, 42k minified (which is about 12k less that the non-modified version). I can't make any guarantees, but if you'd like to try the slimmed down

[jQuery] get an image from an input field just with javascript

2008-09-17 Thread ^AndreA^
Hello everybody, I wonder, is it possible to load an image (which the user is choosing by a form) directly with javascript without submitting the form? For instance, I could have: form strongPage Background: /strong input id=bg_image_path type=file name=bg_image /

[jQuery] Re: jQuery Validation Errors

2008-09-17 Thread Jörn Zaefferer
Well, the documentation is a wiki, you're welcome to help improving it. If you aren't sure about a change you make, notify me or others about the change by posting to the list. If you think its a bug in the plugin, please create a ticket: http://dev.jquery.com/newticket (requires registration)

[jQuery] Re: [validate] Pb with button

2008-09-17 Thread Jörn Zaefferer
The plugin should ignore buttons by default, thats a bug. Could you create a ticket for this? http://dev.jquery.com/newticket (requires registration) Meanwhile, to work around it you can specifx the meta-option to namespace metadata for validation. Just set meta: validate and the button should be

[jQuery] simple if not :checked then show div - BEGINNER

2008-09-17 Thread tlob
Hello I try to do a very simple thing. 7 Checkboxes. 1 submit. If none checked, show div#none if not checkbox1:checked show div#not1 and if not checkbox2:checked show div#not2, too and so on... I can do it with man if then's, but I like it slick and sexy! And I cant figure it out. Thx in

[jQuery] getting/setting height() in IE6 quirks mode behaves inconsistently

2008-09-17 Thread Matt Kruse
In IE6, quirks mode, I expect this to not change their height of an object: var h = $obj.height(); $obj.height(h); However, it does cause a re-size (if the object has padding/borders). Is this intended? ( Using: http://code.jquery.com/jquery-latest.pack.js ) It looks like when height() is

[jQuery] Re: get an image from an input field just with javascript

2008-09-17 Thread config
You can't view the file because of security restrictions. A *long* time ago one could grab the path and call it with the file:// protocol, but this is now blocked in most (all?) browsers. Similarly, one can't write a path into the file input. G.

[jQuery] Problem with moving iframe using append, iframe's head and body are wiped out

2008-09-17 Thread zwaugh
I'm using the tinyMCE editor in a site to edit content for multiple projects. Loading tinyMCE creates an iframe, which in itself works fine. In the site, instead of creating a tinyMCE instance for every project, I'm creating it once and then just moving it to the active project. I'm doing that

[jQuery] Re: finding the state of slideToggle

2008-09-17 Thread Michael
Thank you. Still no luck though - it says ...is open no matter if it's open or closed. Here's what my function looks like now: function initMenu() { $('#groups ul').hide(); $('#groups li a').click( function() {

[jQuery] Re: best/standard way to benchmark your own scripts?

2008-09-17 Thread ricardobeat
Do you use Firebug? It has a Profile option under the Console tab, that will profile (duh) all js action going on while it's on, giving you details like number of function calls and the time each took to execute, that's plenty of information ;) ricardo On Sep 17, 1:14 am, Alex Weber [EMAIL

[jQuery] Re: borders work fine with all browsers except IE7

2008-09-17 Thread Namlet
Ok, point taken, but I have a CSS file, a JS file, and an XHTML files, each are about 300 lines. That's a little too much for this textbox, so how can I post this info for you to see? It's not a public website. Is there some online service that hosts text displaying versions of this stuff?

[jQuery] Re: Jcrop v0.9.0 image cropping plugin - comments please

2008-09-17 Thread Kelly
Thanks Richard W. And thanks to everyone who has commented. I am glad that most of the issues raised have been purely philosophical. :) Jose, please use whatever plugin you feel is best suited for you needs. The whole purpose of a plugin is you don't need to worry about what's inside. If you

[jQuery] Re: jquery.com incredibly slow for me

2008-09-17 Thread ffub
It's very slow. Does anyone know of a mirror anywhere? Could not Google, IBM, or one of those big users maybe help out with some sponsoring or hosting? On Sep 17, 1:30 pm, micha_17 [EMAIL PROTECTED] wrote: Can someone please confirm that jquery.com is sometimes (%2) so slow, pages won't even

[jQuery] nth-child(n) not working for me.

2008-09-17 Thread kcharles
I switch between var n = 2; nth-child(n) and nth-child(2) and get different behavior. Any suggestions/work arounds? Thanks! Here is the code: html head titlenth child/ title script type=text/javascript src=jquery.js/script script type=text/javascript //Add input box for each column

[jQuery] Re: custom / slimmed-down jquery possible?

2008-09-17 Thread ricardobeat
Don't feel tied to jQuery. There are many lightbox scripts offering modal dialogs, independent from any library, with less than 10kb uncompressed. Just google lightbox. On Sep 17, 12:45 pm, Eric Martin [EMAIL PROTECTED] wrote: Alex - I briefly went through jQuery and removed some of the

[jQuery] apples webclip feature in jquery

2008-09-17 Thread Tom Shafer
I am wanting to write something like apples webclip feature in safari for jquery, I am trying to figure out where the best place to start is. Does anyone have any ideas? Thanks, -TJ

[jQuery] hover() with mouseout() problem

2008-09-17 Thread pawel.szymula
Hi, I'm having some problems - i'm sure they're lame, but i can't handle with them by myself. Any help really appreciated :) So, here's the problem: I'm moving mouse over menu item, then a submenu (beneath the main menu) shows up. I'd like to move mouse around the submenu, but it dissapears.

[jQuery] Re: Bind events on DOM elements inserted from other frame

2008-09-17 Thread ricardobeat
using the iframe's jQuery object: $('.classinparentframe', parent.window.document) Ideally if the contents of the iframe are always known to you, you should use only one instance of jQuery on the parent window and do all your stuff from it, it's simpler to debug also. On Sep 16, 10:29 pm,

[jQuery] nth-child(n) not working for me - I didn't see my previous post

2008-09-17 Thread kcharles
I switch between var n = 2; nth-child(n) and nth-child(2) and get different behavior. Any suggestions/work arounds? Thanks! Here is the code: html head titlenth child/title script type=text/javascript src=jquery.js/script script type=text/javascript //Add input box for each column

[jQuery] Re: accordion open in different sections?

2008-09-17 Thread JohnieKarr
Hi Kevin, I did this on one of the website I maintain: http://www.lovinggodlovingyouonline.com and also, the navigation menu is in the includes. To further complicate things, I use page.php?id=pageID to load each page, so I'm not even pulling seperate pages. Also, not always is page.php

[jQuery] Re: jquery.com incredibly slow for me

2008-09-17 Thread acacio
I had the same problem so I switched to the Google hosted files and it's *much* faster. Also, if we use it systematically, the client browser caches the files between different apps. You need to replace the load to this: script src=http://www.google.com/jsapi;/script script // Load

[jQuery] Selecting a nested Ajax Tab from a link

2008-09-17 Thread spyFly
Hello! I am using UI Tabs...and I think it is GREAT! Q: Is there an easy way to navigate to a Nested Ajax Tab from the main tabbed page? I have created a tabbed page with Ajax content: http://www.edh.realmdigital.co.za/productgroup/golf/60 The first Tab has nested Ajax tabs. For the life of me

[jQuery] Re: How to serialize an Object to JSON String without making it POST like?

2008-09-17 Thread Namlet
So I need to write my own JSON serializer or is there something already available? If I do need to write my own, how can I contribute it back to the community? Thanks! On Sep 16, 4:28 pm, Mike Alsup [EMAIL PROTECTED] wrote: When I use this function to create a JSON object: var formObject

[jQuery] Re: JQuery - wrap() + Internet Explorer problem

2008-09-17 Thread ricardobeat
Install IE Developer toolbar and check it, the images are still there. On Sep 17, 4:23 am, weidc [EMAIL PROTECTED] wrote: I allready tried 'visibility: visible' and 'display: block' but he doesn't hide the picture's. It seems like he totally remove them. I don't know what could change that.

[jQuery] Re: jQuery Validation Errors

2008-09-17 Thread GregWa
I apologize, I am incorrect. It has to do with trying to switch the name attribute on radio buttons in IE. If you do so the plugin will error. The reason I was trying to change the name attribute is due to a problem in ASP.Net that will mangle the name when used in things like

[jQuery] [validate] Pb with button

2008-09-17 Thread cage31
Hi, I use the validate plugin for my site but, in my form, there are some buttons with metadata. Something like this: button id=btnCancel class=bnbutton {bnAction:131328} type=button 1. the plugin control the button element. Why ? Theses are not input. 2. the plugin search the validate

[jQuery] Re: apples webclip feature in jquery

2008-09-17 Thread Andy Matthews
Could you elaborate? What is this webclip of which you speak? -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tom Shafer Sent: Wednesday, September 17, 2008 11:41 AM To: jQuery (English) Subject: [jQuery] apples webclip feature in jquery I am

[jQuery] Re: Image Button Acts Like Submit Button for JQuery Call

2008-09-17 Thread MorningZ
Why not just use plain old img's ?? (and apply 'cursor: pointer' to them so they appear to be buttons) Otherwise, in the click event attached to said images, do return false; at the end and it will stop the form from submitting

[jQuery] What am I doing wrong?

2008-09-17 Thread conspirator
I can't seem to get this to work for a client. I'm not a genious at jQuery, but I think this is supposed to work. What am I doing wrong? code html head script type=text/javascript src=some/path/to/js/ jquery-1.2.6.min.js/script script type=text/javascript src=some/path/to/js/shadowbox/src/

[jQuery] Re: get an image from an input field just with javascript

2008-09-17 Thread tlphipps
You could certainly accomplish this with a little bit of AJAX thrown in. Scenario: - user selects image (using input type='file') - user clicks 'preview' button - system submits selected image file via AJAX to server - server processes image upload and stores file on server - In the AJAX

[jQuery] Re: [validate] Pb with button

2008-09-17 Thread Jörn Zaefferer
The plugin should ignore buttons by default, thats a bug. Could you create a ticket for this? http://dev.jquery.com/newticket (requires registration) Meanwhile, to work around it you can specifx the meta-option to namespace metadata for validation. Just set meta: validate and the button should be

[jQuery] Re: Event delegation and accounting for children/descendants

2008-09-17 Thread Matt Kruse
On Sep 15, 1:06 am, hubbs [EMAIL PROTECTED] wrote: I was reading a great post on learningjquery.com about event delegation, and it gave an example of how to account for child/ descendants that might get clicked. See also my recent post to this thread:

[jQuery] Re: Bind events on DOM elements inserted from other frame

2008-09-17 Thread hubbs
Well, I had this same thing working before. But it does not solve the problem of using the parent frames instance of jQuery, which I don't know how to do. Using your example inserts the DOM elements, but they don't get the events, because they don't don't use the parents jQuery, which is the

[jQuery] Re: simple if not :checked then show div - BEGINNER

2008-09-17 Thread tlob
can this be done more efficient? $(document).ready(function(){ $(#auswertung div).hide(); $(form#form1).submit(function() { $(#auswertung div).hide(); $(form#form1 [EMAIL

[jQuery] Re: Improvement to delegate plugin to simulate bubbling

2008-09-17 Thread Matt Kruse
On Sep 17, 11:30 am, Nathan Bubna [EMAIL PROTECTED] wrote: I like this.  And really, isn't click the only event that you would really need this bubbling for?  Couldn't you just check the event type and only bubble on click, so that your plugin runs fine with fast- firing events too? Well to

[jQuery] Re: Image Button Acts Like Submit Button for JQuery Call

2008-09-17 Thread tlphipps
I agree with MorningZ that this would be a more appropriate solution. If you absolutely require these to be input type=image you would need to attach a click handler (via javascript) to the images that simply does a 'return false;' so the default action of the buttons (submitting the form) is

[jQuery] Re: simple if not :checked then show div - BEGINNER

2008-09-17 Thread tlphipps
Seems pretty straightforward to me. I would recommend one small syntax change. 1) $(#auswertung div) = $(#auswertung div) and I think you could simplify the each like (NOT TESTED): $(#form1 :checkbox).not(':checked').each( function()

[jQuery] Re: Jcrop v0.9.0 image cropping plugin - comments please

2008-09-17 Thread Richard D. Worth
On Wed, Sep 17, 2008 at 10:37 AM, Kelly [EMAIL PROTECTED] wrote: Thanks Richard W. And thanks to everyone who has commented. I am glad that most of the issues raised have been purely philosophical. :) Jose, please use whatever plugin you feel is best suited for you needs. The whole

[jQuery] Re: simple if not :checked then show div - BEGINNER

2008-09-17 Thread Richard D. Worth
Also not tested: $(#form1 :checkbox:not(:checked)).each( - Richard On Wed, Sep 17, 2008 at 2:44 PM, tlphipps [EMAIL PROTECTED]wrote: Seems pretty straightforward to me. I would recommend one small syntax change. 1) $(#auswertung div) = $(#auswertung div) and I think you could

[jQuery] Re: simple if not :checked then show div - BEGINNER

2008-09-17 Thread tlphipps
Well, what do you know! I always wondered why the :not syntax wasn't included in the selector engine. I always thought it had to be separated in the chain. Thanks Richard for providing this example!! On Sep 17, 1:52 pm, Richard D. Worth [EMAIL PROTECTED] wrote: Also not tested: $(#form1

[jQuery] Re: Bind events on DOM elements inserted from other frame

2008-09-17 Thread hubbs
Ok, I have the following in my iframe: $(document).ready(function() { $ = window.parent.$; $(#test).click(function() { $(#hold).append('a href=#Inserted from iFrame/a br /'); }); }); This seems to be what I would need, but now it won't load content

[jQuery] Image Button Acts Like Submit Button for JQuery Call

2008-09-17 Thread rcflyer2005
On my web page, I have two image button to dynamically add or delete a row of data in a table. When I click the buttons, they submit the form and execute the action=justDoIt.php on the form tag and not call jquery. Is there any way this can be fixed. I'm using IE6 8 beta. I have to stick

[jQuery] Re: jquery/livequery assign behaviour to element by class

2008-09-17 Thread onmountain
Hi Brandon, I tried to do that, but it breaks the ajax effect - clicking submit just does an HTML post to the server php program: $('.deleteform').livequery('submit', function() { //$('.deleteform').submit(function() { var gthis = this; var delformData

[jQuery] Superfish navbar for Wordpress

2008-09-17 Thread kiper
Hi there! First, I just want to say thank you for Superfish that is a truly great navigation component (maybe THEgreatest)! I have integrated Superfish with Wordpress and it works really smooth. But when I made a design with a navbar and tried to find a working solution I just failed. Superfish

[jQuery] Re: Image Button Acts Like Submit Button for JQuery Call

2008-09-17 Thread rcflyer2005
On Sep 17, 1:39 pm, rcflyer2005 [EMAIL PROTECTED] wrote: There are two image buttons on my web page that are intended to execute javascript jquery.  However, they trigger the php program on the form tag action=justDoIt.php.  Is there a way to fix this so my buttons trigger jquery or an

[jQuery] Re: Jcrop v0.9.0 image cropping plugin - comments please

2008-09-17 Thread Sam Sherlock
Please forgive me if this has been raised before (I may have missed it) but do either of these plugins have a contrained aspect ratio feature 2008/9/17 Richard D. Worth [EMAIL PROTECTED] On Wed, Sep 17, 2008 at 10:37 AM, Kelly [EMAIL PROTECTED] wrote: Thanks Richard W. And thanks to

[jQuery] Re: Event delegation and accounting for children/descendants

2008-09-17 Thread Karl Swedberg
Hi hubbs, 1. If you want to throw an alert, you could do it like this: $(document).ready(function() { $('table').click(function(event) { var $thisCell, $tgt = $(event.target); if ($tgt.is('td')) { $thisCell = $tgt; } else if ($tgt.parents('td').length) { $thisCell =

[jQuery] can i use livequery with greybox2 or equivalent?

2008-09-17 Thread onmountain
Hi. I am using greybox2 plugin to generate a modal window with details of items when I click on their hyperlink, identified by the class= . However, I am also adding more such hyperlinks with teh same class= on the fly, and I need to rebind the elements correctly. Can I use livequery to do

[jQuery] Re: How to serialize an Object to JSON String without making it POST like?

2008-09-17 Thread Mike Alsup
So I need to write my own JSON serializer or is there something already available? If I do need to write my own, how can I contribute it back to the community? I consider this the defacto standard: http://www.json.org/json2.js And IE8's native JSON API is exactly the same as the one in

[jQuery] Re: Hover on all elements: $(*).hover(...)

2008-09-17 Thread Karl Swedberg
This one worked for me... $('body').bind('mouseover', function(event) { $(event.target).addClass('selected'); }).bind('mouseout', function(event) { $(event.target).removeClass('selected'); }); You'll run into problems if you have properties assigned to more specific selectors in your

[jQuery] Re: How to serialize an Object to JSON String without making it POST like?

2008-09-17 Thread MorningZ
So I need to write my own JSON serializer or is there something already available? it's not all that involved var FormValues = {}; $(:input).each(function() { FormValues[$(this).attr(name)] = $(this).val(); }); Something along those lines anyways

[jQuery] Re: input box on change event?

2008-09-17 Thread bombaru
Thanks Alex... Currently, the button appears when focus is on the input box and disappears when focus is removed from the input box. I want to keep this behavior if no change has occurred in the input box itself (in this case quantity) and keep the button visible if there has been any change.

[jQuery] jQuery and iPhone developers... effects working yet?

2008-09-17 Thread somedude
I have read through a few other posts and blog entries on getting jQuery to function properly (effects) on the iPhone. I tried a few libraries to help develop on the iphone but I keep returning to my beloved jQuery. Everything else is lines and lines of code while jQuery can do it in a single

[jQuery] Re: jquery.com incredibly slow for me

2008-09-17 Thread John Resig
I wasn't counting the hits to code.jquery.com in those numbers - that's another 20 million-or-so hits per month (and are stored on a separate server). --John On Wed, Sep 17, 2008 at 1:34 PM, acacio [EMAIL PROTECTED] wrote: I had the same problem so I switched to the Google hosted files and

[jQuery] Re: jquery.com incredibly slow for me

2008-09-17 Thread MorningZ
(Sorry to veer off topic for a bit) I've seen this posted before, and i just tried it.. html xmlns=http://www.w3.org/1999/xhtml; head titleLoad from Google/title script type=text/javascript src=http://www.google.com/jsapi;/ script script type=text/javascript

[jQuery] Re: input box on change event?

2008-09-17 Thread MorningZ
Well, to back up Alex's post, the change event fires when the textbox's value, uhhh, *changes* so if you don't want the button to show up if the user goes into the box and goes out without changes, and *does* show if the user goes in and changes a value, then this is the event you want blur

[jQuery] Re: replaceWith returns the replaced element

2008-09-17 Thread Karl Rudd
Err remove() is chainable. It doesn't return a DOM element, it keeps hold of the elements that it was called to remove from the DOM. So it acts just like replaceWith(). There was a debate in the early stages of jQuery about whether or not methods (not including the base $/jQuery function) that

[jQuery] Re: replaceWith returns the replaced element

2008-09-17 Thread Ariel Flesler
I think this is a bug, I'd expect replaceWith to return the old set, just like append/etc. Can you (tchvil) file a bug with a test case ? put it under core, assigned to me. Thanks -- Ariel Flesler http://flesler.blogspot.com/ On Sep 17, 8:04 am, Richard D. Worth [EMAIL PROTECTED] wrote: On

[jQuery] Re: cascade question

2008-09-17 Thread ricardobeat
You can do it via XHTML: option value=B selected=selectedB/option or add the attribute with jQuery: $('#first option:eq(2)').attr('selected','selected'); ricardo On Sep 17, 10:50 am, kevin [EMAIL PROTECTED] wrote: Hi all, here is my sample page  http://sskes.damimi.org/test/ my question

[jQuery] Re: getting/setting height() in IE6 quirks mode behaves inconsistently

2008-09-17 Thread ricardobeat
There is a reason it's called Quirks mode :) On Sep 17, 2:26 pm, Matt Kruse [EMAIL PROTECTED] wrote: In IE6, quirks mode, I expect this to not change their height of an object: var h = $obj.height(); $obj.height(h); However, it does cause a re-size (if the object has padding/borders). Is

[jQuery] Re: nth-child(n) not working for me - I didn't see my previous post

2008-09-17 Thread ricardobeat
You're not really referencing the 'n' variable you just defined, as you're passing a string. var n = 2; $(#filterTable tbody tr td:nth-child(+n+)).each(function(){ On Sep 17, 2:24 pm, kcharles [EMAIL PROTECTED] wrote: I switch between var n = 2; nth-child(n) and nth-child(2) and get

[jQuery] Re: borders work fine with all browsers except IE7

2008-09-17 Thread ricardobeat
Look for a free hosting service. I'm not sure this is allowed, but awardspace.com is a good and painless one. cheers, ricardo On Sep 17, 11:36 am, Namlet [EMAIL PROTECTED] wrote: Ok, point taken, but I have a CSS file, a JS file, and an XHTML files, each are about 300 lines.  That's a little

[jQuery] Re: best/standard way to benchmark your own scripts?

2008-09-17 Thread Andrew Hedges
Someone is bound to have a better answer than this, but to get you started with profiling, have a look at this page where I include some code to time my script execution: http://andrew.hedges.name/experiments/simple-templates-speed-test/ It wouldn't be much of a stretch to apply this same

[jQuery] Re: apples webclip feature in jquery

2008-09-17 Thread Tom Shafer
In safari 3 there is a webclip feature to make a widget for dashboard http://www.apple.com/pro/tips/webclip.html I am trying to make this in javascript and would like yo use jquery On Sep 17, 10:54 am, Andy Matthews [EMAIL PROTECTED] wrote: Could you elaborate? What is this webclip of which

[jQuery] Re: [validate] Pb with button

2008-09-17 Thread cage31
Thanks for your answer. With the meta-option all is fine.

  1   2   >