On 19 Ago, 04:29, jack [EMAIL PROTECTED] wrote:
If an event hasn't finished how do I prevent the same event being
triggered again? Thank you in advance!
you could just unbind() the action from the element that triggers it,
and then re-bind it once the event has completed :)
Hi :)
in your plugins (I'm studying from the best here :))) I often find
variable assignments like this:
options = $.extend({
url: this.attr('action') || window.location.toString(),
type: this.attr('method') || 'GET'
}, options || {});
it's like url = this OR that.
Hi,
I’m working on some project with WebKit nightly being the one and only
target.
I want to use jQuery for its clarity and speed, but I know that
selector engine is using regular expressions and some other magic
stuff. Whereas I have document.querySelector/querySelectorAll at my
fingertips.
Hi,
auto-height seems possible. just write:
height: 'auto'
The same seems not possible for width. But ususally you know the width
of the div the table is placed in, so it shouldn't be a big problem
with the width.
My biggest problem seems to be mow the reload after deleting an item.
It
I have to apologise cause I sort of explained it wrongly. My
bad...sorry about that.
This element in my web page has its ID dynamically assigned. However,
this assignment is done so upon form load. Meaning that the ID of the
element is assigned upon form load and it is named according to what
is
Hi,
I'm trying to set a hidden field's value to true before submitting.
First I bind the form:
$(.advancedSearchForm).ajaxForm(
{
target: '.colorList',
beforeSubmit: ShowRequest,
success: ShowResponse
}
);
Then in the before submit I set
Hello,
I used Prototype so long. But I switched to jQuery. But now I have a
Question about creating classes.
With prototype I can use Class.create to create a new Class.
Is there a way in jQuery to do this? Or do I need the old JavaScript
syntax to create my classes?
Thanks for your help,
$('.left_selected') returns always true, because if there's not a
matching element, $('.left_selected') is an array (not null) with
length = 0.
hth,
Nicola
On Tue, Aug 19, 2008 at 10:34 AM, andrea varnier
[EMAIL PROTECTED] wrote:
Hi :)
in your plugins (I'm studying from the best here :)))
Hi All
I use Superfish on a project as a menu system (and love it). I am a Java
developer though and usually end up breaking ajax/javascript libraries when
I try to make a customisation. My question is how easy / difficult would it
be to make superfish *not* activate the drop-down part of the
I have a UL list which i apply the treeview plugin. So far so good.
The treeview control works like it should, but I need to be able to
assign a link to collapse the tree. Any link without being inside a
treecontrol div. The treecontrol assigns actions according to order of
appearing links.
hi there
I would like to load a tab with external domain data , something
http://www.google.com is this posible and how
Thanks
Hi,
Thanks both for your suggestions - I think you're right about the fact
that this approach probably wouldn't solve my problem, even moreso
since the offending html comment appears before the DOCTYPE and is
probably therefore not even part of the DOM (?). Altering the server
architecture is
Hi Rob,
Simply change the CSS [#ui-datepicker-div] z-index to anything above
105 as thickbox's z-index goes up to 103 (default for datepicker is
100, meaning it is behind the modal)
Hope that helps.
Sbudah
Thanks Adwin - your jquery.noConflict() suggestion is certainly a quick
solution for it, thanks :)
However, I have development team on my back and they've made a decision to
not to use any javascript frame work other then jQuery - so I cannot enter
their realms... :(
On Tue, Aug 19, 2008 at
The problem here is that neither of your expressions can EVER evaluate
to false. Even if no actual DOM element is selected, you still get an
empty (jQuery)array.
On Aug 19, 4:34 am, andrea varnier [EMAIL PROTECTED] wrote:
Hi :)
in your plugins (I'm studying from the best here :))) I often find
Karl is completely right. But if you REALLY have a reason to check for
its existence you can do this:
if ($('#myId').length) {
$('myId').remove();
} else {
alert('ooops! there's no myID to remove...');
}
--
Bohdan Ganicky
On Aug 18, 10:11 pm, Gewton Jhames [EMAIL PROTECTED] wrote:
There's
Thanks for the respond Glen :) Unfortunately the page is not public so I
can't show much more - I know it's ridiculous to ask the question I've asked
when I can't give much more information :(
I'll take your advise to go through the plugins and see if I get lucky :)
Many thanks
On Tue, Aug 19,
Hi Andrea,
it's really a matter of true or false. The attr() method returns a
string and so if it returns an empty one, it's evaluated as false and
the part after the || operator is then taken. You use jQuery wrapper
on both sides of the || operator and jQuery wrapper always returns
something
iam facing a problem in increasing the width of the autocomplete
results, i tried in changing the css also but i can't change that
and also I would like to change the structure of the autocomplete
results is this possible
On Aug 19, 6:34 pm, andrea varnier [EMAIL PROTECTED] wrote:
Hi :)
in your plugins (I'm studying from the best here :))) I often find
variable assignments like this:
options = $.extend({
url: this.attr('action') || window.location.toString(),
type: this.attr('method')
Hi Victor,
the treecontrol feature doesn't provide lots of flexibility, and so
far that worked well enough. I'm avoiding adding more features to it
as long as possible.
In this case, have you tried adding the necessary additional links the
treecontrol expects, while hiding all of them but the
The problem is that the clicked element is always the image, not the
span.
$.listen( 'click', 'img.reflect', function() {
alert(Click!);
});
Cheers
--
Ariel Flesler
http://flesler.blogspot.com
On Aug 18, 3:54 pm, Brian Schilt [EMAIL PROTECTED] wrote:
try applying 'Listen' to the images
I used selectable library to select items in my list but when my list
become bigger than 20 item, the selection process was very slow and
the time required to load the page was very long.
can any body help me with this issue?
If there is an update to this library or there is another library
Hi I found in UI.Jquery google groups that you can use an iframe to do
this
however i cant get to make it work
for a start i m sure i m adding the frame in the wrong place (just
after $(#tabs ul).tabs())
and i just append an iframe to the first tab (this doesnt look to
goood)
then i m trying
Hi all!
I've tried to use cascade plugin from Mike Nichols and everything
goes fine until i need to adjust it for the several dropdowns.
[code]
td class=tdg id=a_g_s
div class=all_geo_select
div id=country_sel
Countrybr /
select name=country_id[]
option
i have this problem when i call a function onClick after
insertBefore();
when i click a button it insert TEXT AREA, SEND BUTTON at right place.
and then at that i apply some functionality like ALERT(ABC); at
that inserted BUTTON and it does not work.
Help me out of this ... plz soon.
*
Hi there,
I m using latest jQuery 1.2.6 and when I try to use ; in my input
and it does not read values/text after semi-colon.
e.g. I enter abcd;xyz in to input box and I do following:
var VER = $.trim($(#boxing1).val());
alert(VER);
alert shows correct value
and when i send it through:
Hey guyes i have this problem when i call a function onClick after
insertBefore();
when i click a button it insert TEXT AREA, SEND BUTTON at right place.
and then at that i apply some functionality like ALERT(ABC); at
that inserted BUTTON and it does not work.
Help me out of this ... plz soon.
Hello Willie!!
I never used a superfish plugin, but I believe that is not so hard to
make a superfish *not* activate the drop-down,
You need to take a look in the code javascript and the css of the
plugin...Delete or change part of the code...
Instead of hover use something like onclick...
On Aug 19, 2008, at 8:09 AM, Giovanni Battista Lenoci wrote:
Hi, I have this code:
ul
li
ul class=menu
li.../li
/li
li
ul class=menu active
li.../li
/li
li
ul class=menu
li.../li
/li
/ul
I want to set css property display:none to all the elements that are
not active.
I'm looking at
Karl Swedberg ha scritto:
The selector looks fine. The .css() method is where you're having a
problem.
What a stupid error... I was focusing on the not selector and I didn't
saw the css error.
Thank you :-)
--
gianiaz.net - web solutions
p.le bertacchi 66, 23100 sondrio (so) - italy
+39
have look at
http://docs.jquery.com/Frequently_Asked_Questions#Why_do_my_events_stop_working_after_an_Ajax_request.3F
Probably your code runs first $(div#add_comments).click( ... then it
insert the new html. So when $(div#add_comments).click runs, there is
nothing to be bound.
Then the new
Hi everyone, i'm having trouble with the jQuery Validate plugin. I
easily find how to validate my form, but i would like to specify
location for every error message the validate plug-in send. But i
don't find, i think it's withe the option errorPlacement but i don't
know how to use it exactly.
Good Morning, I am developing an application that use $ symbol. I have
tried to implement jQuery in my app and there are conflicts because
jQuery also use $. Can I change $ symbol in jQuery.
Thanks
Thanks for the info Karl. I continue to marvel at how much more simple
being a developer would be if we had only one browser to be concerned
with. (adds please download firefox link to site) :)
:::
On Aug 18, 5:15 pm, Karl Rudd [EMAIL PROTECTED] wrote:
And just to follow up. Here's a previous
Hello, this may be a stupid question, but im trying to make an upload
from a form with the form plugin (excelent btw), the form data is sent
to a DB through a php script. Here is the form:
form action=upload_contrib.php method=post enctype=multipart/
form-data id=form_contribs
Hello.
I have a page. The page contains a link. When a user clicks the link a
drop-down menu showes. I want to hide the drop down menu when the user
clickes wherever else on the page. It has to work like select/. The
drop down menu is ul/. So I can not use blur event.
PS
It has to work the same
hi all,
does anyone know of a modal window that works across a frameset? just
tried thickbox and it doesn't seem to work. i dont get any errors
either which is strange so its difficult to try modify it.
thanks -- etho
Thanks for your help and Interest.
I think it is not problem like time controlling.
because $(div#add_comments).click does not care of loading of
insertBefore();.
Actually I am clicking on a button which is inserted by insertBefore()
and then it perform onClick.
if you see this url:
I have a form page here:
http://jimdavis.org/test/form1.php
and the page for the form post here:
http://jimdavis.org/test/comment.php
Data from the form is not getting written to the comment.php file.
At the moment comment.php is a completely empty file, no html head
body, etc. Tried it with
hi mike,
it took really long to see my post. nearly 4hours...
you're totally right, with your assumption and i'm lovin your
approach.
i wanted to prevent using json thats why i used the two arrays. but
i'll change that.
the each function is exactly what i was looking for.
thank you very much
Start XML-
LINKSLIST
LINK Attribute=001|007
ID001/ID
CATEGORYID007/CATEGORYID
URLhttp://www.yahoo.com/URL
SHORTDESCRIPTIONThis is an external link to yahoo./
SHORTDESCRIPTION
DETAILS
LINK Attribute=EXTERNALExternal Links
Also, .hide() does the same as setting the CSS to display:none.
On Aug 19, 10:24 am, Karl Swedberg [EMAIL PROTECTED] wrote:
On Aug 19, 2008, at 8:09 AM, Giovanni Battista Lenoci wrote:
Hi, I have this code:
ul
li
ul class=menu
li.../li
/li
li
ul class=menu active
thanks a lot
On 8月16日, 下午8时11分, Karl Rudd [EMAIL PROTECTED] wrote:
You want:
setTimeout( function() { $('#content').unblock() }, 5000);
See the following for a bit more about what is happening:
http://docs.jquery.com/How_jQuery_Works#Callback_with_arguments
Karl Rudd
On Sat, Aug
That should've worked. Can you provide a test-case page?
On Aug 19, 12:02 am, Cormac [EMAIL PROTECTED] wrote:
Could you please tell me how to do it properly? I tried writing \/
script, but it didn't work.
Thanks!
On Aug 19, 4:38 am,Ryura[EMAIL PROTECTED] wrote:
.before('google code
In a perfect world: yes.
My situation is as follows: only about 1% of my sites visitors would
use a feature that requires thickbox, so i load it's js and css only
on demand.
On Aug 11, 4:46 pm, Andy Horsman [EMAIL PROTECTED] wrote:
Honestly I think a cleaner way of doing this is have the CSS
what is div#kurort_select ?
I can't find that in your markup.
On Aug 19, 5:58 am, pervak [EMAIL PROTECTED] wrote:
Hi all!
I've tried to use cascade plugin from Mike Nichols and everything
goes fine until i need to adjust it for the several dropdowns.
[code]
td class=tdg id=a_g_s
I know how to show a loading gif when a link is clicked, but is it
possible to know when the page is finished loading inside of an
iframe, so that I can then hide the loading gif?
hi,
A great plugin (jScrollPane), but I can't get one piece of it to work
- if I click on a link in the text, and want to jump within the div -
it just blows away the scroll bar.
example here:
http://www.utopiaparkway.com/scroll.html
(click on FOO, u jump to the correct place in the html, but
I ran into this error when attempting to apply the tablesorter plugin
to an empty table, also with multiple tables on the page. In my case,
I was able to work around this error by testing for the existence of
rows in the table before deciding whether or not to apply tablesorter
using jQuery's
I am proud to release my recent work - Chain.js. It has been rewritten
several times, and now it has a very simple but powerful api.
Chain.js is a jQuery plugin, providing data-binding capability that
allows you to generate web contents automatically by binding your data
to html. Unlike other
I'm trying to get my head around the concept of event delegation, and
have been reading about jquery.listen and jquery.delegate and LowPro
for jQuery... and I'm a little confused as to the strengths and
weaknesses, or scope, of each approach.
Can anyone offer some wise words on this topic?
How
could you recommend any good ones?
Hello,
I begin with jQuery so
looks like one toggle function is missing : how can be accomplished
the change of a text in a link , (and it's title or a alt text)
between to possible states :
ie:
I use this to hide/display a content div a linl and this :
I with to open a page in the same browser window.
But it's only when a POST request return an error, link the sample below:
$.ajax({
type: POST,
url: /url/,
dataType: json,
data: data,
success: function() {
},
error: function() {
Hi,
I am using the following script to slide toggle multiple div elements
in a page. It works fine in FF2 but behaves little strange in IE 7
version mentioned above.
Here is the script
script$('div[id^=upgradeConfigItem_]').each(function(i){$
(this).click(
function()
Hey all,
Does anyone know if it possible to select elements with id's or
classname's that include colons or other similar characters? So far I
haven't found any evidence that :: is not valid as part of a CSS
identifier, but have been unable to select elements with a class
first::second.
Any
Use two backslashes before each special character.
A backslash in a jQuery selector escapes the next character. But you need
two of them because backslash is also the escape character for JavaScript
strings. The first backslash escapes the second one, giving you one actual
backslash in your
You don't need jQuery for that, you can use 1995-style JavaScript!
error: function() {
window.location = 'http://www.google.com/';
}
Be sure to use the full URL including http:// as shown here.
-Mike
_
From: Gewton Jhames
I with to open a page in the same browser
If you really want to understand event delegation, you may want to just look
at the raw code to implement it instead of a plugin. That way you can see
how it actually works.
It's really quite simple: You attach an event handler to some common parent
element, and then check event.target on the
Thanks Mike,
I guess what I'm wrestling with, is what advantages the plugins offer
(I'm not that adept at javascript, but I'm hoping to 'sell' the
concept to others who are more adept at it). We have some big data
tables with lots of clicks, sometimes expanding rows, sometimes hovers
or
There's really nothing to integrate if you want to use code like this with
jqModal.
Suppose you have a conventional .click() handler that wants to show a
jqModal dialog. You might do that with:
$('#dialog').jqmShow();
That same code will work in *any* event handler, or in any JavaScript at
The jQuery library isn't class based (not in the C++/Java/etc style
at least), so it doesn't provide class construction functions. From
my experience, most of the time classes are not needed in JavaScript.
That doesn't stop you using your favourite classes for JavaScript
library. If you don't
I am trying to add text underneath an image so they are both
scrollable and was wondering if that is even possible and if so can
someone provide help on this.
eg.
pic pic
[txt] [txt]
Hi,
Could you have a look at this for me please?
http://groups.google.com.au/group/jquery-en/browse_thread/thread/7d78bb3f9c667b3f/858f514d566cc5e1?lnk=gstq=autocomplete#858f514d566cc5e1
Cheers,
Moin
On Aug 19, 11:55 pm, Jörn Zaefferer [EMAIL PROTECTED]
wrote:
Documentation
Here's my code. The plugin should take the text from a container,
erase the container, then print out the text one character at a time
in a typewriter fashion. The problem is that setInterval() seems to
think that addText() is undefined, because setInterval() runs at the
'window' scope level.
Hi,
I am working on an application where I need to book online seats. For
that i need to first populate my page with the seat info (ie: how many
seats are vacant, how many are booked, how many are at special
prices). This needs to be done dynamically as it will change on the
fly according to the
I've got a bunch of form widgets (these are server-side widgets) and a
lot of them depend on some various jQuery javascript tricks.
I would like to be able to do something like this:
$(document).ready(
function () {
set_up_widget_1();
}
);
$(document).ready(
function () {
The argument order of the $.map callback function seems to be
reversed depending on how $.map is used.
arr = ['a','b','c']
[a, b, c]
$.map(arr,function(n,i){return [n,i]})
[a, 0, b, 1, c, 2]--
according to docs
$(arr).map(function(n,i){return
Hi,
Is it possible, and/or easy to anchor to an ID within a tab?
For example, let's say I have two tabs:
1. Entry (#entry-tab)
2. Comments (#comments-tab)
Using my browser, I can link to the comment page like so:
http://www.site.com/#comments-tab
How would I anchor to an ID/anchor within
hi,
there is a jquery plugin:
http://www.2meter3.de/jqPuzzle/jqPuzzle.zip
when you finished puzzle timer stops.
I want to get this time and insert into my database.
but How?
have you tried just $(#toggle-content).toggle(); it shows and hide
toggle-content div. otherwise for more option you can use
$(#toggle-content).toggle(function1(){},function2(){}); where
function1 will run when first clicked and function2 the second time.
On Aug 19, 10:44 am, elz64 [EMAIL
I think this is what you're looking for: http://docs.jquery.com/Attributes/attr
you can stick something like this in the toggle function:
$(#morelink).attr({
href: www.google.com,
alt: Link to Google
});
On Aug 19, 12:44 pm, elz64 [EMAIL PROTECTED] wrote:
Hello,
I begin with
It's not dangerous at all.
Karl Rudd
On Wed, Aug 20, 2008 at 11:58 AM, Matt Wilson [EMAIL PROTECTED] wrote:
I've got a bunch of form widgets (these are server-side widgets) and a
lot of them depend on some various jQuery javascript tricks.
I would like to be able to do something like this:
Hey guys,
I am trying to use the blockui plugin in order to block a div that
contains my file uploader while the file is in the process of
uploading (form is being submitted).
I have successfully achieved this, however, I want to display a cool
little animated loading .gif in the blockui
Hey guys,
I am trying to use the blockui plugin in order to block a div that
contains my file uploader while the file is in the process of
uploading (form is being submitted).
I have successfully achieved this, however, I want to display a cool
little animated loading .gif in the blockui
You have both jQuery.fn.map
http://docs.jquery.com/Traversing/map
And jQuery.map
http://docs.jquery.com/Utilities/jQuery.map
Both documented correctly.
--
Ariel Flesler
http://flesler.blogspot.com/
On Aug 19, 5:51 pm, moester [EMAIL PROTECTED] wrote:
The argument order of the $.map
Scope in JavaScript can be a little unexpected. Variables (defined
using var) are scoped/exist within the functions they are defined in,
and any functions that are defined within that function. Since you're
using this functionality in other spots I think you understand that.
The setInterval (and
And one heck of an inconsistency, don't you think?
jQuery.each() and jQuery.map() don't pass the arguments to their callbacks
in the same order?! That's definitely a mistake.
Actually, the original order chosen for the arguments to the $(...).each()
and $.each() callbacks was unfortunate.
79 matches
Mail list logo