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
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
What are you installing on the server? jQuery is simply a js file
delivered by HTML and run on the user's browser
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('
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
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.
$(.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
@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
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
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
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.
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
var prison_left = $('main').offsetLeft;
You access DOM elements within a jQuery object using array notation.
var prison_left = $('#main')[0].offsetLeft;
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
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';
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
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
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.
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() == ''
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,
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
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({
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:
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
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
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
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
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
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
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
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
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) {
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
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
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
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
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
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();
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
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
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
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
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
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
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
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
[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
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
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 () {
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
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
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+,
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
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
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
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
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
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
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
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
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){
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
62 matches
Mail list logo