You kidding me? Thats way too easy! :-)
From now on, if I'm working on something and it takes me more than 10
minutes, I'm posting the question. :-)
Question:
I was thinking usng .apply here. But I wasn't 100% sure how that
worked.
In general, if I see something like this:
Thanks Joel. appreciate the response.
I have used a hybrid of a slide out menu and a drop down as the third level.
I had cleared my cache, used the alt/refresh technique etc. and still cannot
see the drop down portion of the menu. I had a collegue do the same and he
can see what I see which as
How do you passing parameters via the settings?
An example is passing the speed
var settings = {
...
show: slideDown(50),
...
};
I get a syntax error for:
$box[ settings.show || 'show' ]();
I guess I have to passing the parameter as setting?
var
From: Pops
How do you passing parameters via the settings?
An example is passing the speed
var settings = {
...
show: slideDown(50),
...
};
I get a syntax error for:
$box[ settings.show || 'show' ]();
I guess I have to passing the
You kidding me? Thats way too easy! :-)
You win some, you lose some. Next time it will be browser inconsistencies!
:-)
I was thinking usng .apply here. But I wasn't 100% sure how
that worked.
In general, if I see something like this:
xxx.apply(x,[y,z]);
From what I am
Actually it is sorted now... using
ul.SubCategories{margin: 0px;height:800px}
So it was a css issue.
Thanks anyways for the help.
Cheers, Wes
Wessa wrote:
Thanks Joel. appreciate the response.
I have used a hybrid of a slide out menu and a drop down as the third
level. I had
Ah okay I see now. I thought you meant the second level of menu was
not appearing and I wasn't aware of the third level. I now do see that
your third level menus are not responding to the IE z-index fix, and
fortunately I can see why. An element needs to be position:relative or
absolute to have
On 10/9/07, Wessa [EMAIL PROTECTED] wrote:
Actually it is sorted now... using
ul.SubCategories{margin: 0px;height:800px}
So it was a css issue.
Okay so applying that height sort of gets around the IE bugs, but it
is not a good solution because then the ul.subCategories have 800px
height and
On Oct 8, 3:42 pm, Andy Kent [EMAIL PROTECTED] wrote:
snip
Yep, absolutely. If you have any ideas on how we could test a browsers
support for a selector without maintaining a hard coded list then I
would love to hear them.
snip
$(document).ready(function () {
$('body').append(
'div
It was a mistake in cut paste...
Tryed also without the star, but I can't get the option.
:-(
On Oct 8, 9:18 pm, motob [EMAIL PROTECTED] wrote:
Try removing the colon (:) after the option element, like so:
$('option[value*=\'2\']', $('#category_1')).size()
On Oct 8, 12:11 pm, Giovanni
Ok, I'm pleased to say I have updated the plugin and we are now at 0.3
This brings a whole bunch of tweaks but mainly it (hopefully) fixes
the IE issues that people where having.
Ta,
Andy.
On 9 Oct, 08:56, R. Rajesh Jeba Anbiah [EMAIL PROTECTED]
wrote:
On Oct 8, 3:42 pm, Andy Kent [EMAIL
Thanks a heap for your help James, after lots of trial and error I
managed to track down the source of the problem.
It's a very curious IE issue, your examples work fine provided you
don't try to access document.stylesheets first, if you do then that
seems to kick IE off on a parsing spree.
Oh
Hmm interestingly odd issue. Boo Boo to M$ IE
/James
On 10/9/07, Andy Kent [EMAIL PROTECTED] wrote:
Thanks a heap for your help James, after lots of trial and error I
managed to track down the source of the problem.
It's a very curious IE issue, your examples work fine provided you
don't
Hi,
I have the same problem and didn't find a solution yet. Is there any
way that I can get the height of elements not visible (because their
display css property is set to none or because parent elements
properties hide this element, too).
Michael
On Jun 17, 4:50 am, Fred Janon [EMAIL
Ok, I got it... thanks to extJS ;)
var changed = null;
function beginMeasure(el) {
if(el.length == 0) return;
changed = [];
while(!el.is(body)) {
if(el.css(display) == none) {
changed.push({el: el, visibility:
Jeff,
Thank you much. However, I'm handcuffed wrt releasing code/links to
the public. It's a proprietary web app -- which makes it really hard
to get third-party support :/ Anyway, as I said, thank you much.
All I can say is that our app deviates from the plain-vanilla C#.net
and is using a
There are actually two things to think of here.
I don't know about CF specifically but it seems that most web servers
should update their session timeout if data has been accessed in any
way. I would assume that any AJAX request to the server by the browser
would update this status.
If
I've got the following site I am working on ( http://www.tolerase.com/test2.php
) and the drop down nav is working as intended on Firefox but in IE it
is all over the place. I know the problems are CSS related, can
anybody with experience with Superfish and CSS help me understand how
I need to
Hi,
New to JQuery, got some questions:
$.ajax({ url: MyPage,
success: function(msg){
$(msg).appendTo('body');
}
msg is a html page, and it works, now I try to get only the 'h1'
elements by doing this:
Please help me about this problem.
SMA wrote:
Inside http://www.insiderec.com/
When I clicked on the bottom left text to open a popup image the
following error occurs,
Permission denied to get property Window.node Type.
With the alert which is indicated only in firefox.
Working fine with
When I call superfish like this:
$(.nav).superfish({animation : {opacity: .5}});
... it always animates from dark to light on the first time you access a
menu, and then on subsequent accesses, it's already at opacity: .5, so it
doesn't animate anything.
So, how can I achieve what I want, which
I have a table full of cells where i want the user to be able to click
on a cell to convert it to an input box for editing (ala excel
editing). When the user leaves the cell (onblur event) i want to
check the content of the input for any changes, and if changed post it
to the server with an .ajax
Silly Question:
How do I call superfish so that it doesn't animate anything? I tried
passing it an empty object {}, but that didn't work.
Thanks!
I'm new to Javascript and jQuery, so I'm sorry if this is basic
stuff. How do I access offsetHeight for an element? This is what I
have, but offsetHeight comes up undefined:
var headerElem = $(#header);
var headerHeight = headerElem.offsetHeight;
whereas this works:
var
Hi Tony,
Great job, thanks!
May I suggest that in multiselect, support SHIFT and CTRL, just like
GMail does. Which means that you can press SHIFT and select a range of
items.
Jiming
Tony wrote:
I have released a new version of jqGrid.
Demo page here: http://trirand.com/jqgrid/jqgrid.html
Turn off any fx options you have. I had the same problem but then
removed Slide and it worked fine.
On Sep 18, 3:48 am, moltar [EMAIL PROTECTED] wrote:
Hi,
I am using the latest jQuery v1.2.1 and the latest available Interface
v1.2. Here is the sample code that I have broken down to:
I have a page that opens an iFrame with selection information on it.
When the user selects one of the options, it needs push certain data
back to the parent frame regarding what was choosen (i.e. a
description to a textarea, option id, etc).
How do I reference the parent frame's fields to change
Hi,
One year since I discovered jQuery, it's quite the time to use it.
So... Let's go...
I'm in trouble with a little ajax i'm trying to set up.
How to apply an event handler on ajax loaded content ?
In my case, I've got a link which load a form in a div with $.get().
In the success callback,
It looks like the syntax you are using is from jQuery's Impromptu
plugin ( http://trentrichardson.com/Impromptu/ ), if this is what
you're using then you need
$. infront of the prompt like so:
$.prompt(Are you sure you want to delete?, { buttons:
{Ok:true,Cancel:false } });
otherwise just
Hi,
One year since I discovered jQuery, it's quite the time to use it.
So... Let's go...
I'm in trouble with a little ajax i'm trying to set up.
How to apply an event handler on ajax loaded content ?
In my case, I've got a link which load a form in a div with $.get().
In the success callback,
Hi,
I googled this thread (having the same problem) and it seems that
Safari won't render images that have the CSS-property display: block
set.
See this site:
http://f6design.com/journal/2006/09/29/image-source-swapping-css-and-safari/
This is a serious issue cause the whole library runs on
A timeout is not an error??
On 17 ago, 07:42, Erik Beeson [EMAIL PROTECTED] wrote:
I guess thetimeoutjust means it will stop trying to complete the
request. I've never actually tried to use it. To get an alert like you
want, you might try using your own timer (untested):
var ajax_timeout;
Very interesting little plugin - this may just be what i am after for
a project i am currently working on :)
I will be looking at this over the next couple of days, hoping that
this works with JSON dataset :D then my dreams would be answered!
Maybe you could attach an onload or onerror event to your html element
(script) ?
Anyway, jQuery has a home made method to let you do this, cross-browser:
See http://docs.jquery.com/Ajax/jQuery.getScript#urlcallback
Matt
2007/10/9, Jacky [EMAIL PROTECTED]:
Hi,
I would like to call crossite
I have exactly the same problem as Glen, that leads me to ask the same
question, which is still unanswered: How does it know which
jQuery to blow away and which to leave alone ?
My buddy Nick Dominguez sent this over to me:
jQuery Crash Course
http://www.digital-web.com/articles/jquery_crash_course
Rey
No demo?
-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of cfdvlpr
Sent: Monday, October 08, 2007 5:12 PM
To: jQuery (English)
Cc: jquery-rotate
Subject: [jQuery] Rotate an Image 90 Degrees with jquery-rotate plugin
I started a rather lengthy
Rey,
A buddy of mine, Raymond Camden, posted an interesting question on his
blog:
How can you timeout a session in an Ajax-based application?
http://www.coldfusionjedi.com/index.cfm/2007/10/8/Ask-a-Jedi-How-can-you-
timeout-a-session-in-an-Ajaxbased-application
The gist is that if you have a
Hi, all.
I'm trying to figure out which version of Joern's validation
plug-in works with jQuery 1.2.1 for use with IE 7.
Validation version 1.1 works with 1.2.1 on FF2, but not IE 7.
Clues, anyone?
Rick
Hi Giovanni,
What are you trying to do with the $('#category_1') part? Is that
meant to be a contextual selector? If so, you might have better luck
trying it one of these ways:
$('option[value*=\'2\']', '#category_1').size()
$('#category_1 option[value*=\'2\']').size()
I have two questions:
How do you center a block as browser window resized?
How to make the footer stay bottom of viewport?
After looking at the code it seems quite straight-forward. Someone
correct me if I've got the wrong end of the stick.
Summary: The first version you include will get reinstated, the second
version getting blown away.
How it works: When you include jQuery, it makes a copy of the window.$
and
Hi Joel,
I am using superfish on a page with an embeded flash object, the menu
displays behind the flash. Do you know a way to make it show in front
of the flash object?
See an example of what I mean here.
http://www.newportmirage.com.au/files/VirtualTour/low/virtual-tour-low-res.html
I have
Hi! I am relatively new to jQuery and recently ran into the following
problem. Let's say I have a few DIVs of the same dimensions on top of
each other. I need to expand/shrink them at the same time. I tried
running a loop through these DIVs and doing something like:
for(i=0;i5;i++){
Hi Merc,
If you want an integer, try this:
var headerElem = $(#header);
var headerHeight = headerElem.height();
If you want the value with px, try this:
var headerElem = $(#header);
var headerHeight = headerElem.css('height');
Hope that helps.
--Karl
I actually posted to the dev list about a similar issue (using JSONP, which
is script-like). I'd like to put a short timer on the script calls and
receive a timeout if the callback function fails to fire.
Scott
On 10/8/07, Jacky [EMAIL PROTECTED] wrote:
Hi,
I would like to call crossite
Am I re-inventing the wheel here? I just want a simple extension to
test if a control is enabled and to set jQuery objects quickly.
If this has already been done, could you point me to it? If not,
please offer comments on my approach.
Thanks, Dave
jQuery.fn.enabled = function(enableIt) {
Simplest way might be to assign a class to each of them. This way you can
reference them individually by ID or as part of a group by classname. Or put
them all in a parent container and reference them with child selectors:
$('#container div')
andy
-Original Message-
From:
Yeah, that was the one.
It didnt work in IE. I got the september 25 version (on the 26th, I think!)
and viola, it worked in IE.
Stupid question but - are you sure you're linking to the correct js file, it
exists on the server, etc?
Here's the one I am using
There is a plugin for that called LivejQuery.
http://blog.brandonaaron.net/2007/08/19/new-plugin-live-query/
It does exactly what you want.
Glen
On 10/9/07, ClapClap [EMAIL PROTECTED] wrote:
Hi,
One year since I discovered jQuery, it's quite the time to use it.
So... Let's go...
I'm in
Here's something a little strange.
Now, in both FF2 and IE 7, the validation doesn't
until I hit enter to submit or click the submit button/
Once that happens, all validation messages show up, and
from then on the validation happens as it should.
Here's my validation code, js file references,
Hello,
I would like to apply a class to the active sub menu. I used
previously to select the sub menu with this:
var $path = location.pathname.substring(1);
$('#nav [EMAIL PROTECTED]' + $path + ']').addClass('active');
But it failed with the last jquery version
I tried:
$('#nav a[href=' + $path +
Hi Rick -
let me say right up front I'm no expert.
But - have a look at my page's source (link in post above, in this thread)
I am calling the rules a bit differently, using the class and title of the
input itself,
and actually have the onKeyUp validation turned off in this case, so mine
I couldn't find one. :(
Yes, your validation and error display is quite different from
mine, but I think the major difference in the validation is what
triggers it... for yours its after the form is submitted... for mine
it keyup. However, the keyup is only kicking in after I submit the
form once.
It's not terrible
I would change the name of the headerElem variable too. That name clearly
indicates that it's supposed to be a DOM element, but it isn't. This will
lead to much confusion.
$() does not return a DOM element, it returns a jQuery object, which is an
array of DOM elements (even in the case where
Have you tried a post on Joern's plug in page?
He answers those posts pretty frequently.
--
--
Michael Evangelista, Evangelista Design
Web : www.mredesign.com
Newsgroups: news://forums.mredesign.com
Blog : www.miuaiga.com
Rick Faircloth [EMAIL PROTECTED] wrote in message
news:[EMAIL
checked it today - Yep - it did the trick!
Thanks Karl!
Karl Swedberg-2 wrote:
Hi there,
In 1.2.x, you would use the CSS equivalent:
$(a[id *= smenu])
Or, you could use the Basic XPath plugin.
http://jquery.com/plugins/project/xpath
Hope that helps,
--Karl
Not yet... but that sounds like a good idea.
I thought maybe he might chime in here.
Rick
-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of MichaelEvangelista
Sent: Tuesday, October 09, 2007 12:09 PM
To: jquery-en@googlegroups.com
Subject:
If the server return something like 404/500 page, I guess it would cause a
javascript error when browser try to evaluate, and the try-catch method
could work.
Timer would be a good idea, but to determine the time to wait would require
some specific measure.
--
Best Regards,
Jacky
網絡暴民
If I remember correctly, getScript can't do cross site.
--
Best Regards,
Jacky
網絡暴民 http://jacky.seezone.net
On 10/9/07, Matt [EMAIL PROTECTED] wrote:
Maybe you could attach an onload or onerror event to your html element
(script) ?
Anyway, jQuery has a home made method to let you do this,
Wouldn't it be a good idea to mention what version of jQuery functions
are available in above each function, much like the PHP docs?
How about these?
- beforeSubmit: called before the validation starts
- success: called when the form is valid
- submitHandler: replaces the default submit, handler must do an
ajaxSubmit or whatever
Sounds outstanding, as long as the submitHandler only covered an ajaxSubmit.
If it was an all
Whoops! One last thing. An 'onValidationFailure' type of method, allowing
someone to run some scripting should the validation fail (like resetting
data changes one might have made in the beforeSubmit call). You may even
want to split things further, with a 'beforeValidation' (occurring prior to
I think what I need to do will work... I just ran into a road block.
One of my co-workers has filled out an XML sheet for me, with REAL
japanese values i.e.
subAboutLocUSロケーション/subAboutLoc
subAboutWWグローバルロケーション/subAboutWW
Hey Jacky, it can now. :-)
from http://docs.jquery.com/Ajax/jQuery.getScript#urlcallback:
Before jQuery 1.2, getScript was only able to load scripts from the
same domain as the original page. As of 1.2, you can now load
JavaScript files from any domain.
--Karl
_
Karl
Rick Faircloth schrieb:
Hi, all…
I’m trying to figure out which version of Joern’s validation
plug-in works with jQuery 1.2.1 for use with IE 7.
Validation version 1.1 works with 1.2.1 on FF2, but not IE 7.
Clues, anyone?
Until validation 1.2 is released, give the latest revision a try:
Steve Blades schrieb:
Whoops! One last thing. An 'onValidationFailure' type of method,
allowing someone to run some scripting should the validation fail
(like resetting data changes one might have made in the beforeSubmit
call). You may even want to split things further, with a
I noticed one error in the $.expire function I posted in the previous
message. It doesn't pass through the return value from the original
function. This line:
fn.apply( this, arguments );
should be:
return fn.apply( this, arguments );
Worse, this solution doesn't
- onsubmit: Boolean, default true - validate on form submit (similar to
onkeyup/onblur)
- beforeValidation: Callback, called before doing any validation
- beforeSubmit: Callback, called before submitting the form (default
submit or calling submitHandler, if specified)
I'm not sure yet if
Hi, Jorn...
I tried the latest revision below, but it's performing
the same way... no validation until the form is submitted,
even though validation is set to be triggered on keyup.
After the form is submitted, it works perfectly.
Rick
-Original Message-
From:
Update: I figured out it is actually working , but only in FireFox 2+
ANything I can do differently to adjust it to work in IE7 and IE6? We
can always fall back and demo in FireFox, but I would rather learn of
the solution.
THanks guys.
On Oct 9, 1:53 pm, Danjojo [EMAIL PROTECTED] wrote:
I
Rick Faircloth schrieb:
Hi, Jorn...
I tried the latest revision below, but it's performing
the same way... no validation until the form is submitted,
even though validation is set to be triggered on keyup.
After the form is submitted, it works perfectly.
Thats supposed to be a feature. The
Michael Geary wrote on 10/9/2007 1:27 PM:
It's still an interesting bit of code (of course I would say that!) -
the $.expire function shows how easy it is to augment an existing
JavaScript function with new behavior.
It *is* interesting, thanks for sharing the code. We display a countdown
Thats supposed to be a feature. The assumption: Its very annoying if the
validation starts whining about invalid fields before the user even had
the chance to enter a correct value. As long as a field isn't marked as
invalid (eg. before first submit or blur with a non-empty invalid field),
I said earlier to Michael, that the way it's working now
is not too bad... A user has a chance to complete the form
and submit before getting any messages. At that point, on keyup
validation kicks in and basically guides the user through
changing the errant input data.
So, if that's the way
Josh Nathanson schrieb:
- onsubmit: Boolean, default true - validate on form submit (similar
to onkeyup/onblur)
- beforeValidation: Callback, called before doing any validation
- beforeSubmit: Callback, called before submitting the form (default
submit or calling submitHandler, if specified)
Nope, that wasn't included. I see the point though.
Does it make more sense to run that before displaying error messages, or
afterwards? How to name it? beforeErrorDisplay? afterValidation?
beforeFailure?
Either before or after would be fine I think. The reason is that you might
want to
On Oct 9, 12:56 am, R. Rajesh Jeba Anbiah
[EMAIL PROTECTED] wrote:
On Oct 8, 3:42 pm, Andy Kent [EMAIL PROTECTED] wrote:
snip Yep, absolutely. If you have any ideas on how we could test a
browsers
support for a selector without maintaining a hard coded list then I
would love to hear
Do you have an example of the problem you are getting?
Do you get any javascript errors?
Have you ensured characters are correctly encoded?
On Oct 9, 7:44 pm, Danjojo [EMAIL PROTECTED] wrote:
Update: I figured out it is actually working , but only in FireFox 2+
ANything I can do differently
Well right now my only problem is that the above Jquery code example
in my original post, does not work in Internet Explorer 7.
It does re-write the entire page in Japanese (good enough for my demo,
later I will use a database) in FireFox browser.
Any ideas how to update the Jquery code to work
Hi guys/gals,
Here is a snip of code I was testing for a part of my application.
It is very neat but doesn't meld well with my other session stuff.
Basically if you remove focus from the text box using blur(), it
submits the form and sets the Coldfusion variable.
Take a look and see if this
Could be, Josh... I've gone back-and-forth between onblur and onkeyup.
The only consideration is that with onkeyup the user's attention is still
on that field, whereas with onblur, the user's attention has gone on
to the next field even before the tab takes place.
I think it's so close it
Thanks.
After look into the getScript code, I tried to play around with the
readyState of the script elements.
script.onload = script.onreadystatechange = function(){
try{
document.body.innerHTML += p + this.readyState +
/p;
Ok. But what code do I use to animate a group of items at the same
time? Let's say I have 5 DIVs with the same class called 'box'. How do
I animate all of these items instantaneously?
Thanks
On Oct 9, 10:28 am, Andy Matthews [EMAIL PROTECTED] wrote:
Simplest way might be to assign a class to
I tried that but there's still a slight delay between elements
On Oct 9, 10:28 am, Andy Matthews [EMAIL PROTECTED] wrote:
Simplest way might be to assign a class to each of them. This way you can
reference them individually by ID or as part of a group by classname. Or put
them all in a
Hi! I am relatively new to jQuery and recently ran into the following
problem. Let's say I have a few DIVs of the same dimensions on top of
each other. I need to expand/shrink them at the same time. I tried
running a loop through these DIVs and doing something like:
for(i=0;i5;i++){
Ok, but how do I animate multiple all items with the same class
instantaneously?
Thanks
On Oct 9, 10:28 am, Andy Matthews [EMAIL PROTECTED] wrote:
Simplest way might be to assign a class to each of them. This way you can
reference them individually by ID or as part of a group by classname. Or
hi,
I appended a html page to a DIV near the end of page:
$(msg).appendTo($('#new_comments').empty());
however the user has to scroll down to view, is there a way to scroll
the browser to the last in jquery/javascript? Thanks.
A.C.
jQuery calendar has inline display - click the inline tab on the demo
page:
http://marcgrabanski.com/code/jquery-calendar
All you have to do is simply attach the calendar to a span or div
instead of an input. Vualah!
On Oct 7, 3:31 pm, iain duncan [EMAIL PROTECTED] wrote:
On Sun, 2007-07-10
hi,
is there a way to scroll to the bottom of the page?
a.c.
For example I have a group of radio buttons and would like to get
value of the selected radio button.
div id='Details'input type=radio value=Buttername=Food
input type=radio value=Breadname=Food /div
IHow to get the value using jQuery?
Thanks for reply
L.
Hi All,
Does anyone know how to get the date range to work for the calendar?
I tried adding this code, but maybe I put it in the wrong place or
something. Please help.
script
$(document).ready(function(){
$('.calendarRange').calendar({fieldSettings: customRange, autoPopUp:
'focus',
jQuery calendar also has inline display. Click the inline tab on
the demo page to view it:
http://marcgrabanski.com/code/jquery-calendar/
All you have to do is simply attach the calendar to a span or div
instead of an input. Vualah!
And as far as which calendar to choose - be happy you have
I would like to be able to 'override' a standard jQuery function to
provide it with customised features and/or functionality whilst still
being able to call the base/original function from within the new
function to do the majority of the work.
Is there a recommended approach to achieving this
For your embeded flash object set your wmode to transparent.
On Oct 9, 9:50 am, Mark [EMAIL PROTECTED] wrote:
Hi Joel,
I am using superfish on a page with an embeded flash object, the menu
displays behind the flash. Do you know a way to make it show in front
of the flash object?
See an
I don't believe this has anything to do with Superfish or jQuery. Try
adding the following code to your HTML where your Flash movie is
embedded:
param name=wmode value=transparent /
and add the following to the embed src=...
wmode=transparent
so this will be your full code for embedding your
Hi,
I have following javascript to jump to an anchor point:
window.location.hash=mycomments;
what is the JQuery's equivalent? the above code works in all the
browser, also Safari except safari will be always in a 'loading' mode,
any idea? Thanks.
A.C.
http://www.tolerase.com/test2.php
The navigation for the site above works fine in Firefox. In IE
however, the menu rollover blinks everytime a submenu list element is
rolled over. What can I do to fix this?
Also, in Safari the full width of the submenu does not display until
the user rolls over
I did that but there's still a noticeable delay between animations
On Oct 9, 10:28 am, Andy Matthews [EMAIL PROTECTED] wrote:
Simplest way might be to assign a class to each of them. This way you can
reference them individually by ID or as part of a group by classname. Or put
them all in
1 - 100 of 118 matches
Mail list logo