[jQuery] a mix of normal javascript and jquery?

2008-02-17 Thread schnuck
hi again, i have the following code below which in fact works fine. what it does is it limits a small div to be only draggable within another fixed sized div. e.g. you can't drag the div out of the bigger div - it stops at its borders and acts like a prison. however, to me it looks like a mix

[jQuery] Re: Please suggest minimal test of jQuery installation

2008-02-17 Thread MorningZ
btw, maybe use a tool like Fiddler (for IE) or Firebug (for Firefox) to make sure the server is serving .js files as Javascript (it'll say text/javascript as the content type in the http headers)... other than that, i couldn't see any different what server it was/is

[jQuery] Re: Please suggest minimal test of jQuery installation

2008-02-17 Thread MorningZ
What are you installing on the server? jQuery is simply a js file delivered by HTML and run on the user's browser

[jQuery] Re: Defining more than one function

2008-02-17 Thread 1man
Can't really see much wrong with the code, but it may be easier to write your hide function like J(parentDivIdHere).children().hide(1); Where the parent div is the the div containing #120141 ... etc. But that depends on what you are trying to acheive. You could also write it like J('

[jQuery] Re: Defining more than one function

2008-02-17 Thread 1man
Apologies that should be j('#idOne, #idTwo, #idThree, ').hide(1); Matt On Feb 17, 2:19 am, Michael Ray [EMAIL PROTECTED] wrote: I am trying to define three functions within the $(document).ready() function. However, each of these functions only work if the other two are not there. I

[jQuery] Counting numbers from X to Y

2008-02-17 Thread [EMAIL PROTECTED]
I'm looking for a simple plugin which can tick a number from say 1 to 10 (1,2,3,4,5 and so on up to 10). I remember seeing a demo page of this with an example which I think included some currency counter but I can't seem to find it again! Been browsing the Plugin directory but haven't found it.

[jQuery] Re: selecting elements in 'load' areas

2008-02-17 Thread Azadi
$(.advancedsearchlink a) selects all anchor elements inside an element with class 'advancedsearchlink' - but in your comments you say that 'advancedsearchlink' is a class of a link (anchor?) element - so are you selecting all anchors inside a.advancedsearchlink?? anyway, you can use the callback

[jQuery] Re: Best plugin for modal dialogs

2008-02-17 Thread Nazgulled
@Eric Martin I took your suggestion in the jQuery Google Groups and I've been testing your plugin for the past couple of hours but I'm having a few difficulties accomplishing some stuff... 1) Through out my code I call $('#EXAMPLE-ID').modal({options}) numerous times and I have a bunch of

[jQuery] Apps that auto-spawn your web profile

2008-02-17 Thread del
Do any of you guys know of any apps that auto-spawn your profile so that you dont have to recreate it everytime you join a new site? It would be nice if there was a standard profile which you can import into multiple sites. I understand this will be a spammers wet dream, but there should also

[jQuery] simple Jquery Ajax XHR async request for XML and JSON please

2008-02-17 Thread del
I am a former Yahoo! UI user -- I decided to jump ship and start using Jquery after I played around with it last night. I love Jquery! I am looking for some basic examples showing how to do simple XHR's with both XML and JSON datatypes. How do you parse the XML vars using Jquery? I am looking

[jQuery] Re: selecting elements in 'load' areas

2008-02-17 Thread kareneliot
That's great. I had to rejig things around so that the effects that take place clicking on '.advancedsearchlink a' take place in a standalone function. Probably a better way of doing things anyway - so cheers! Hope that makes sense - and apologies if my initial comments weren't clear.

[jQuery] Re: Select next element ...

2008-02-17 Thread Daniele
Thanks for reply, i read the traversing, but still it doesn't work and I found why: $(a).click(function () {           this.className = 'new-class';           $(this).next('div').toggle(); } Your example indeed works for the code i posted: a href=click/a div /div but unfortunately I

[jQuery] Re: a mix of normal javascript and jquery?

2008-02-17 Thread Mike Alsup
var prison_left = $('main').offsetLeft; You access DOM elements within a jQuery object using array notation. var prison_left = $('#main')[0].offsetLeft;

[jQuery] Re: Counting numbers from X to Y

2008-02-17 Thread Rick Faircloth
I think it was Mike Alsup who used his plug-in, Cycle, to do a countdown. He put up a demo page, but I'm not sure where to find it now. I'm sure he or someone else will be along to tell us where it is or provide some clue as to how to do it. He just set the timing of the slides to 1 second

[jQuery] Re: Select next element ...

2008-02-17 Thread Jamie
With that code, do $(this).parent().next('div').toggle(); - Jamie Goodfellow On Feb 17, 7:27 am, Daniele [EMAIL PROTECTED] wrote: Thanks for reply, i read the traversing, but still it doesn't work and I found why: $(a).click(function () {           this.className = 'new-class';      

[jQuery] Re: Select next element ...

2008-02-17 Thread Daniele
Ok, I found the way, but I guess I need to understand more why it works :-( div    a href=click/a /div div /div Solution is: $(this).parents().next(div).toggle(); I used parents instead of parent because the real real html I am using is: div span pa href=#click/a/p

[jQuery] Re: Best plugin for modal dialogs

2008-02-17 Thread timothytoe
Why has dimensions not been dragged into the core jQuery library? So many plug-ins seem to want it that we end up with html files all over the web that ask for dimensions, slowing the loading of the page. On Feb 17, 4:39 am, Nazgulled [EMAIL PROTECTED] wrote: @Eric Martin I took your

[jQuery] Re: Best plugin for modal dialogs

2008-02-17 Thread Nazgulled
What are you talking about? :S On Feb 17, 5:26 pm, timothytoe [EMAIL PROTECTED] wrote: Why has dimensions not been dragged into the core jQuery library? So many plug-ins seem to want it that we end up with html files all over the web that ask for dimensions, slowing the loading of the page.

[jQuery] determining if table contains rows

2008-02-17 Thread Shelane
After deleting a row, I want to test if there are any more rows with the tbody. If not, I want to hide the thead. This logic test returned false: $('tbody', '#documents').html() == ''

[jQuery] Re: Best plugin for modal dialogs

2008-02-17 Thread timothytoe
Never mind. After I posted this, I decided it made more sense to bring it up in the jQuery development list. I keep seeing dimensions being mentioned as a requirement, including in this thread. On Feb 17, 9:35 am, Nazgulled [EMAIL PROTECTED] wrote: What are you talking about? :S On Feb 17,

[jQuery] Re: Please suggest minimal test of jQuery installation

2008-02-17 Thread RLFitch
Looks like I've finally got it! I have to admit that I'm not sure which of the many changes actually fixed the problem, but I'll take the success at any rate. Thanks for help a newbie. Ransom Fitch

[jQuery] Re: simple Jquery Ajax XHR async request for XML and JSON please

2008-02-17 Thread Jesse Skinner
I am looking for some basic examples showing how to do simple XHR's with both XML and JSON datatypes. How do you parse the XML vars using Jquery? I am looking for simple examples that I can learn from. Just use the $.ajax function, and set the dataType option like this: $.ajax({

[jQuery] Re: why are my tabs so jacked up in ie6?

2008-02-17 Thread Klaus Hartl
Brad, I answered this question here: http://groups.google.com/group/jquery-ui/browse_thread/thread/a9279b759d5a45e7 Please do not cross post. --Klaus On Feb 17, 1:09 am, bhaynes [EMAIL PROTECTED] wrote: Please use the tabs-powered list on the bottom right side of my homepage:

[jQuery] Re: Counting numbers from X to Y

2008-02-17 Thread Karl Swedberg
Glen Lipka whipped up a demo using Mike Alsup's Cycle Plugin here: http://commadot.com/jquery/cyleNumber.php --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Feb 17, 2008, at 8:28 AM, Rick Faircloth wrote: I think it was Mike Alsup who used his

[jQuery] Re: Select next element ...

2008-02-17 Thread Karl Swedberg
If you had a parent div nested inside another parent div and you wanted to get the next sibling of the first one, you could filter the parents() selector like so: $(this).parents('div:first').next(div).toggle(); That will select the first div it finds as it goes from this up to its

[jQuery] Re: determining if table contains rows

2008-02-17 Thread Karl Swedberg
To see if there are any tr elements inside the tbody, use the length property: if ($('tbody tr', '#documents').length) { $('thead').hide(); } --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Feb 17, 2008, at 1:02 PM, Shelane wrote: After

[jQuery] Delete first ten children of a prent div

2008-02-17 Thread Michael Ray
I have made a calendar, whose HTML looks like this div id=calendar divdata for that day/div divdata for that day/div divdata for that day/div divdata for that day/div divdata for that day/div divdata for that day/div divdata for that day/div divdata for that day/div

[jQuery] ClueTip Problem!!!

2008-02-17 Thread fshuja
i have used clueTip but facing problem in IE and Opera. In FF its perfect please check http://www.unirazz.com/tooltip.html i am loading some other file on the same folder in the tooltip. FF loads it. IE does not load the external file. Opera asks for user name password. please help me out thnx

[jQuery] Re: Delete first ten children of a prent div

2008-02-17 Thread Michael Ray
So I discovered the nth-child selector, and ere is what i came up with: J('#nextButton').click(function () { J('#calendar div:nth-child(1)').hide(); J('#calendar div:nth-child(2)').hide(); J('#calendar div:nth-child(3)').hide(); J('#calendar div:nth-child(4)').hide(); J('#calendar

[jQuery] Re: Defining more than one function

2008-02-17 Thread Michael Ray
Thank you! I think the problem was that I was using numbers as ID names. On Feb 17, 2008 4:37 AM, 1man [EMAIL PROTECTED] wrote: Apologies that should be j('#idOne, #idTwo, #idThree, ').hide(1); Matt On Feb 17, 2:19 am, Michael Ray [EMAIL PROTECTED] wrote: I am trying to define

[jQuery] Form Ripping

2008-02-17 Thread Phil S
Anybody know why this jQuery code only shows the fieldsets I wrap round it for a fraction of a second before vanishing? Click the Go button several times quickly to see the fieldsets appear. http://styledna.net/jform/ Basically im trying to grab in all form elements then wrap them in a fieldset

[jQuery] .getJson() error

2008-02-17 Thread mike
I've been receiving error status 'parsererror' while processing json request. How can I resolve this? Snippet: $.ajax({ url: ../filter/filter.json, dataType: 'json', success: function(data) {

[jQuery] Form Ripping

2008-02-17 Thread Phil S
Im looking to create a plugin that will rip all form content from any given URL. Obviously AJAX cant handle remote sites so thats done via some server-side proxy, but here is what I have so far: http://styledna.net/jform/ Its working fine, except for when I try processing the content thats

[jQuery] Re: is there a tab-indexer plugin?

2008-02-17 Thread Colin Clark
Cherry, Tabindex behaves differently across browsers. For example, IE expects the tabindex attribute to be in camel case (tabIndex). It also returns differently-typed values than FireFox, and can be more difficult to query for the presence of a tabindex attribute. I've written a little

[jQuery] [tooltip] image title rather than anchor?

2008-02-17 Thread [EMAIL PROTECTED]
Hi i use jquery tooltips on anchor links, but i have a system full of images that use the title tag - i have tried everything to switch the javascript but the jquery tooltip is always empty despite it looking wright, just nothing in it? $('#innercontainer a').Tooltip({ WORKS $('#innercontainer

[jQuery] Form Ripping

2008-02-17 Thread Phil S
Anybody know why this jQuery code only shows the fieldsets I wrap round it for a fraction of a second before vanishing? Click the Go button several times quickly to see the fieldsets appear. http://styledna.net/jform/ Basically im trying to grab in all form elements then wrap them in a fieldset

[jQuery] Re: determining if table contains rows

2008-02-17 Thread Shelane Enos
Worked perfectly with one modification (reverse of logic) if ($('tbody tr', '#documents').length == 0) { $('thead').hide(); } Thanks. I guess I haven't used the as part of any of my selectors before. On 2/17/08 11:10 AM, Karl Swedberg [EMAIL PROTECTED] wrote: To see if there are any

[jQuery] Re: Delete first ten children of a prent div

2008-02-17 Thread Cloudream
view .slice function on docs.jquery.com On Feb 18, 2:27 am, Michael Ray [EMAIL PROTECTED] wrote: So I discovered the nth-child selector, and ere is what i came up with: J('#nextButton').click(function () { J('#calendar div:nth-child(1)').hide(); J('#calendar div:nth-child(2)').hide();

[jQuery] [tooltip] image title rather than anchor?

2008-02-17 Thread [EMAIL PROTECTED]
Hi i use jquery tooltips on anchor links, but i have a system full of images that use the title tag - i have tried everything to switch the javascript but the jquery tooltip is always empty despite it looking wright, just nothing in it? $('#innercontainer a').Tooltip({ WORKS $('#innercontainer

[jQuery] Re: Form Ripping

2008-02-17 Thread Michael Ray
it looks like you have a synax error. // Each input $(#loaded_html form).each(function() doesn't have any brackets. Try downloading the Firebug plug in for Firefox. On Feb 17, 2008 1:17 PM, Phil S [EMAIL PROTECTED] wrote: Anybody know why this jQuery code only shows the fieldsets I wrap

[jQuery] Re: clock pick in ajax loaded form - ie error

2008-02-17 Thread pedalpete
Now I see Josh, Sorry for the confusion. I wasn't sure which version I was using (I don't see a version number in the clockpick file), but I now have the version which includes the bgiframe. I've set that to true, and I've tested a few different versions of bgiframe (packed, 2.1, 2.1.1) just to

[jQuery] Re: determining if table contains rows

2008-02-17 Thread MorningZ
Karl (or anyone else that wants to answer), Since you answered his question, i was hoping i could ask one based on your answer Is there any difference/advantage between $('tbody tr', '#documents') and $('#documents tbody tr') I'm still only a few months into jQuery and have yet to use

[jQuery] Re: ClueTip Problem!!!

2008-02-17 Thread Karl Swedberg
Please see my reply to your other post with the same question yesterday: http://groups.google.com/group/jquery-en/browse_thread/thread/e749ef3c3faf1b8d/eb43c5f1e09109e5?lnk=gstq=cluetip#eb43c5f1e09109e5 --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On

[jQuery] Re: Taconite + Jframe + forms = weird problem

2008-02-17 Thread lvp1138
Thanks for the info Mike! Is there any way to set the form plugin so that forms have that same behavior as the links? We will be handling the responses for all forms with Taconite and jframe. With the hundreds of forms in our application, it will save us a bunch of time in coding... :) On Feb

[jQuery] Re: Taconite + Jframe + forms = weird problem

2008-02-17 Thread Mike Alsup
Thanks for the info Mike! Is there any way to set the form plugin so that forms have that same behavior as the links? We will be handling the responses for all forms with Taconite and jframe. With the hundreds of forms in our application, it will save us a bunch of time in coding... Just

[jQuery] jQEm: font size relative to original?

2008-02-17 Thread [EMAIL PROTECTED]
I'm very happy with this plugin ( http://davecardwell.co.uk/javascript/jquery/plugins/jquery-em/ ) but I can't work out how to establish what the initial (default) em width was. I'm using it to get rid of background images, which will only tolerate 1x size increase (about 20%, I think). If I

[jQuery] Re: [tooltip] image title rather than anchor?

2008-02-17 Thread Jörn Zaefferer
[EMAIL PROTECTED] schrieb: Hi i use jquery tooltips on anchor links, but i have a system full of images that use the title tag - i have tried everything to switch the javascript but the jquery tooltip is always empty despite it looking wright, just nothing in it? $('#innercontainer

[jQuery] Re: the Return of Validation Plugin - hows to only fire on form submit?

2008-02-17 Thread Jörn Zaefferer
Kpitn schrieb: [...] Is there a way to do this in validate plugin 1.2.1 ? All the options available are documented here: http://docs.jquery.com/Plugins/Validation/validate So you'd have to set onfocusout and onkeyup. Jörn

[jQuery] Re: Delete first ten children of a prent div

2008-02-17 Thread Equand
try $('#calendar div:lt(10)').hide().remove(); coz hide() doesn't mean to remove(). and you are just repeating the hide action. On Feb 17, 7:27 pm, Michael Ray [EMAIL PROTECTED] wrote: So I discovered the nth-child selector, and ere is what i came up with: J('#nextButton').click(function () {

[jQuery] Re: image title rather than anchor?

2008-02-17 Thread [EMAIL PROTECTED]
Tool tips for jQuery. You can have the tool tips appear when a user hovers over a div or an a. It looks as though you will have to add 'return false' links to your images. On Feb 17, 8:10 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi i use jquery tooltips on anchor links, but i have a

[jQuery] Best way to build flyout menu?

2008-02-17 Thread Sean Ronan (Activepixels)
Hi all, What's the best strategy for building a flyout menu? Do we still need to have a larger div (than the flyout) to use for the mouseover 'hide' event? My situation is a series of li hold the a to show the relevant flyout div. I don't know which is the best element to hide the flyout div

[jQuery] Re: error in jquery.validate.pack.js ie6

2008-02-17 Thread RandyJohnson
Jörn ... I just downloaded Validate 1.2.1 and tried to use the pack version and I am also getting an error in IE6.0. The error is: Line 41 Char 60 Object does not support... When I switch back to the unpacked version it works without any problems. The pack version works fine in Safari 3+,

[jQuery] Re: error in jquery.validate.pack.js ie6

2008-02-17 Thread Jörn Zaefferer
RandyJohnson schrieb: Jörn ... I just downloaded Validate 1.2.1 and tried to use the pack version and I am also getting an error in IE6.0. The error is: Line 41 Char 60 Object does not support... When I switch back to the unpacked version it works without any problems. The pack version

[jQuery] Re: Change stylesheets if images are off

2008-02-17 Thread [EMAIL PROTECTED]
Yet another question about this (or perhaps about Javascript in general) ... Am I missing something that's staring me in the face, or is it really not possible to make a function that goes something like jQuery.fn.afunction(animage) { if ! $(animage).load(function() { . do stuff

[jQuery] slider control how

2008-02-17 Thread Bhaarat Sharma
Hello, I am new to both jQuery and YUI. While jQuery has an easy slideUp slideDown mehtods..YUI has an easy slider widget (http:// developer.yahoo.com/yui/examples/slider/slider-simple.html). I am confused which one can achieve the similar feat for me: http://demo.backbase.com/travel/ In that

[jQuery] Re: How to dynamically load jQuery plugins?

2008-02-17 Thread Nazgulled
After lots of google searching and reading this and then, I created a little function like this: function includeScript(scriptName) { // Change requests to be sent synchronous $.ajaxSetup({ async: false }); // Loads and executes a local JavaScript file

[jQuery] Re: slider control how

2008-02-17 Thread MorningZ
The jQuery slider: http://docs.jquery.com/UI/Slider Plenty of options to hook into to do the on-the-fly price adjustment according to the slider's value

[jQuery] [OT] Looking for testers for a WordPress Plugin

2008-02-17 Thread Benjamin Sterling
Hello, I just finished up a new release to my WordPress plugin PhotoXhibit (formally Benjamin Sterling Galleries) and I am looking for testers. This plugin relies heavily on jQuery, jQuery UI, jqModal, Easing and other jQuery built plugins and is meant to be a showcase of what jQuery can be used

[jQuery] Re: Taconite + Jframe + forms = weird problem

2008-02-17 Thread lvp1138
Thanks I did try that a while ago and it worked! The form within the DIV disappears after I submit, but I guess I can replace it again with taconite :) Thanks so much!!! On Feb 17, 1:32 pm, Mike Alsup [EMAIL PROTECTED] wrote: Thanks for the info Mike! Is there any way to set the form plugin

[jQuery] slider bar in jQuery

2008-02-17 Thread alex
Hello, I am new to both jQuery and YUI. While jQuery has an easy slideUp slideDown mehtods..YUI has an easy slider widget (http:// developer.yahoo.com/yui/examples/slider/slider-simple.html). I am confused which one can achieve the similar feat for me: http://demo.backbase.com/travel/ In that

[jQuery] How to add a CSS Class to this

2008-02-17 Thread expresso
I'm new to JQuery. I know you can add a CSS class to an element. But here, it's sort of tricky for this one. $(function(){ updateSettingsForForm1ValidationSet($('#form1').validate({ errorPlacement:function(error,element){

[jQuery] Re: slider control how

2008-02-17 Thread Bhaarat Sharma
thanks! So now i have been able to acheve a slider based on which i am slidingUp and slidingDown some divs. But I have two questions now... My divs are just in simple line by line order so for example test1 test2 test3 If i slideUp test1 then i would like test2 and test3 to automatically take