yea! weird huh?
yes the workarounds do work (and there's even a few more that i can
think of) but i was simply scratching my head when i came up against
the problem.
ill see if i can make sense of the source, and perhaps submit a ticket
so that someone with a better understanding can give it a
Hmmm...
Actually, after some tests I found my idea of this to be false. You
can indeed attach event handlers before an element is inserted into
the DOM. Sorry :D
But I don't know what's weirder: this construct for wrapping/attaching
a handler at the same time or that the wrap() function
Yes i found a solution, here it is:
I use prototype and lightbox with $ calls, and i enclose my other jquery
calls this way:
script language=javascript src=/js/jquery-1.2.6.js/script
script language=javascript src=/js/jquery.innerfade.js/script
script src=/js/lightbox/prototype.js
You can change the class names via options (undocumented):
$('#foo').tabs({
navClass: 'my-ui-tabs-nav'
selectedClass: 'my-ui-tabs-selected',
disabledClass: 'my ui-tabs-disabled',
panelClass: 'my-ui-tabs-panel',
loadingClass: 'my-ui-tabs-loading'
});
How long does it take to sort out hosting issues?
1 month, 2 months?
I've been reading all the comments from frustrated developers who are
unable to do their job because the jQuery site does not load. I
thought those people should understand the situation and be patient.
Now it's my turn to
You should use encodeURIComponent()
From the jQuery core, they use this method to encode data for use with
serialize():
encodeURIComponent(string).replace(/%20/g, +)
On Sep 25, 5:08 pm, uncleroxk [EMAIL PROTECTED] wrote:
i know that .serialize will encode it to a url safe character, but
further reading: http://xkr.us/articles/javascript/encode-compare/
On Sep 26, 9:40 am, Richard W [EMAIL PROTECTED] wrote:
You should use encodeURIComponent()
From the jQuery core, they use this method to encode data for use with
serialize():
encodeURIComponent(string).replace(/%20/g, +)
Alright, I figured this out. I just bound a 'mousedown' event to the
main 'document'. It then calls the 'checkMouse' function:
$(document).bind('mousedown', checkMouse);
var checkMouse = function(element)
{
var element = $(element.target)[0];
var observe = $('#form-drawer')[0];
1. I have some simple queries with regards to function calling. In
plain javascript if I want to call a javascript function from my HTMl
tag i do it like:
input type=text id=myid onclick=javascript:sayHello(this.id);
value=World /
Now my javascript function would be defined as
function
I have an image tag as
img id=myimg src=images/expand.jpg /
I am trying as
if($(#myimg).attr(src).contains(expand))
// do something
else
//do something else
but it gives an error Object doesn't support this property of
method. Please help.
That's what I tried first but couldn't get it to work, so I switched
to using load function.
I've created a demo page with 2 iframes - one using each method and
only the load function works.
You can find it here if you want to have a look to see if I've done
something wrong.
The same with jQuery looks like this:
input type=text id=myid value=World /
script type=text/javascript
$(function() { //document.ready
$(#myid).click(function() {
alert( Hello + $(this).val() );
}
});
/script
You don't have to pass anything to the function since the 'this' context
contains is a pseudo-selector, but not a method. So you can use it like
this:
html before:
pthe quick brown/p
pfox jumped over/p
pthe lazy dog/p
script:
$(p:contains('the')).remove();
html after:
pfox jumped over/p
That doesn't really help in the scenario you've posed because contains
searches
I did not fully realize the issue with the duplication of the ids from
Thomas first post... Now I understand and have a working example to
base my code on.
Thank you very much for your help Richardo and Thomas.
Hello,
First of all, I need to get this working without touching markup. I
really can't, only in very extreme cases.
I'm loading jquery at the bottom of the body and script.aculo.us is on
the head section.
The main problem is:
(I'm using jQuery.noConflict() and even tried myJq =
It looks like jquery.com isn't up right now, but the fix that was put in
place recently (splitting each sub-domain off to its own server) *has* made
a difference. For example http://docs.jquery.com/ (the site which most
developers need most) is up right now, and quite responsive. If by chance
you
Also in the FAQ:
http://docs.jquery.com/Frequently_Asked_Questions#How_do_I_select_an_element_that_has_weird_characters_in_its_ID.3F
- Richard
On Thu, Sep 25, 2008 at 10:37 AM, MorningZ [EMAIL PROTECTED] wrote:
Straight from the Docs (http://docs.jquery.com/Selectors)
Thank you for the response Richard.
For me, (in London), the docs site takes on average about 3 minutes to
load per page. (I just tried again now.) The pages do eventually load,
it just takes forever for each page.
Unfortunately I see no difference.
I thank Remy Sharp for hosting a copy of the
Hi,
I have used vertical splitter along with JSF (facelets + richfaces) and YUI
- it is working fine and PERFECT. however, I am unable to integerate the
horizontal splitter in my code. Can any one plese help me out .. I am
attaching the code below. Please someone help me in it ..
?xml
Thanks a ton. Although I had another way to do it like:
if($(imgID).attr(src).indexOf(expand) = 0)
but using the way you mentioned is more accurate and specific to
JQuery. Thanks once again.
On Sep 26, 2:27 pm, Richard D. Worth [EMAIL PROTECTED] wrote:
contains is a pseudo-selector, but not a
Understand. But my issue is a bit different which i think i could not
make it clear. I have a js file associated with every aspx page. Now
my code is like
input type=text id=myid onclick=javascript:sayHello(%=
myValueFromServer%); /
I tried to use the code (which is in my .js file) as:
script
The HTML is -
ul id=content_header_tools
li id=tools_contact_usa href={path=contact-us/index}Contact
Us/a/li
li id=tools_email_pagea href={path=email-page/index}
rel=email_pageEmail Page/a/li
li id=tools_print_pagea href=javascript:window.print();Print
Page/a/li
/ul
and
Take a look at the metadata plugin:
http://plugins.jquery.com/project/metadata
- Richard
On Fri, Sep 26, 2008 at 7:09 AM, JQueryProgrammer
[EMAIL PROTECTED]wrote:
Understand. But my issue is a bit different which i think i could not
make it clear. I have a js file associated with every aspx
But in .js file it does not resolve the %% value. Any help would be
appreciated.
As it shouldn't you've got a .js file, which IIS treats as plain
ol text and passes through untouched, it will never get seen or more
importantly processed by ASP.NET
You've got options through:
1) Keep any
Dear all,
I like jQuery much but I do not like the way the enabling, disabling
elements is handled. This is a pretty common task and the current
solution based on changing attributes is not in accord with jQuery’s
“write less” philosophy.
The enable() / disable() functions would be MUCH more
I´m stuck, please help!
My code:
div class=box-two
h1some header/h1
img name=Image src= width=250 height=200 alt=Image /
pLorem ipsum dolor sit amet/p
/div
The jQuery:
$(document).ready(function(){
$(div.box-two *).wrap('div class=inside/div');
});
The idea is to
Thought someone might have done something like this.
HTML would be something like this:
div id=smarttag
div id=smarttagicon
img src=smarttagicon.gif width=16 height=16 /
/div
div id=smarttagcontent
Hello i hope someone can help this is driving me mad.
Im using
jquery-1.2.6.pack.js
jquery-treeview.js
jquery-cookie.js
for a menu on www.bdct.nhs.uk
everything works ok apart from in ie6 where some of the links
disappear. but even this is inconsistent on different machines with
ie6 installed.
I could also do something along these lines:
$.fn.oldText = $.fn.text;
$.fn.text = function() {
return $(document.createTextNode(this.oldText()));
}
That is, of course, if I'd like to confuse the hell out of future
maintainers :)
On Sep 25, 1:15 am, Balazs Endresz [EMAIL PROTECTED] wrote:
Oh, and break everything that depends on the text method.
On Sep 26, 9:16 am, 703designs [EMAIL PROTECTED] wrote:
I could also do something along these lines:
$.fn.oldText = $.fn.text;
$.fn.text = function() {
return $(document.createTextNode(this.oldText()));
}
That is, of course,
Use wrapAll() method.
Maujor
-Mensagem Original-
De: thelemondropkid [EMAIL PROTECTED]
Para: jQuery (English) jquery-en@googlegroups.com
Enviada em: sexta-feira, 26 de setembro de 2008 09:13
Assunto: [jQuery] wrap function
I´m stuck, please help!
My code:
div class=box-two
You're complaining why?
Why should the jQuery site not loading affect your job in any way? The
jQuery site offers nothing to me that I can't find elsewhere. I can get the
most recent jQuery release from Google code, Remy Sharp has the API hosted
on his site (or his downloable AIR app), and I
Good greef Samy!
That works like a charm - I did not think it´s that simple.
Thanks a million.
Q.
On Sep 26, 3:18 pm, Mauricio \(Maujor\) Samy Silva
[EMAIL PROTECTED] wrote:
Use wrapAll() method.
Maujor
-Mensagem Original-
De: thelemondropkid [EMAIL PROTECTED]
Para: jQuery
svn checkout http://jqueryjs.googlecode.com/svn/trunk/tools/api-browser
jqueryapi
open jqueryapi/index.html
On Sep 26, 5:18 am, Richard W [EMAIL PROTECTED] wrote:
Thank you for the response Richard.
For me, (in London), the docs site takes on average about 3 minutes to
load per page. (I just
What version of jQuery and Scriptaculous are you using?
Rey
ricardoe wrote:
Hello,
First of all, I need to get this working without touching markup. I
really can't, only in very extreme cases.
I'm loading jquery at the bottom of the body and script.aculo.us is on
the head section.
The main
Hi Rey
The jquery is 1.2.6 and scriptaculous is v1.7.0
Also an important note is: with prototype there's seem to be no problem, its
when scriptaculous is added when everything is screwed. :( I've been
debugging line by line (with firebug) the jQuery selector function and
there's a time when it
Its important to know that I'm almost unable to change a bit of markup
or other js libraries code, I'm being injected along with jQuery to
this site, so I'm more like a guest in this uber-mix of js.
This is a completely unrelated issue - we host jQuery.com (the
homepage, blog, and dev) on a separate server with Rimuhosting. There
was a power outage at the server facility and they're working ot bring
it back up:
http://rimuhosting.com/maintenance.jsp?server_maint_oid=68009362
The other
Its important to know that I'm almost unable to change a bit of markup
or other js libraries code, I'm being injected along with jQuery to
this site, so I'm more like a guest in this uber-mix of js.
Its important to know that I'm almost unable to change a bit
of markup or other js libraries code, I'm being injected
along with jQuery to this site, so I'm more like a guest in
this uber-mix of js.
Could you quote the relevant text from previous message(s) in your replies?
For those of
Hi Michael,
Sorry about the confusion.
I'll try your solutions, but as I'm just invited to the page I'm
working I can't downgrade scriptaculous.
But I'll try with an older jquery or with the little tweak. I'll we
back with the results.
On 26 sep, 10:34, Michael Geary [EMAIL PROTECTED] wrote:
But can you upgrade it? The reason I had asked the version was for the
reason the Mike mentioned, the conflict in makeArray. Mind you that this
is not a bug in jQuery but an issue in several prior releases of
Scriptaculous where they decided to overwrite the default behavior of
the call
Hi Rey,
Its not an easy option but its reasonable, so I'll test it.
For now, my tests confirm what Michael said, the array.call its the
picky line, I removed it and everything is working fine again, if
someone can make a call to John Resig :D asking if its ok if we remove
that :)
So I'm with 3
hi,
I usually don't work with iui (iphone) but have some code and wanna adapt it
to play with jquery.
The problem is to attache events to the new generated DOM at each ajax
request in iui (using jquery AJAX I would make a callback, but...). Finally
discovered livequery but seems not to work
Yay! Thanks Ariel, I'll keep that on mind.
For now we're dealing with the manager of the host-page because
everything is caused by a WP plugin known as mp3inline, they are using
old prototype libs.
Thanks for all everybody (if someday you came to México, you will get
a free shot of Mezcal) ;)
Hope you don't mind turning your thread into a discussion :)
now that sounds like a bug.
$(document).ready(function(){
$(frames.testframe2.document).ready(function(){
$('#test',frames.testframe2.document);
});
});
The inner ready() function is fired exactly at the same time as
Let me add another option, you can either:
- Upgrade Scriptaculous
- Downgrade jQuery
- Upgrade jQuery to the version on the trunk.
This last option is the new one and I sort of announced that already
(on jquery-dev I think).
The version on the trunk patches (I wouldn't say fixes) the conflict
Thanks to the help I have received on this group, I am making
progress.
But now that all is working fine, the question beckons: Can jQuery do
it all over again?
This is my code:
div class=box
h3some header/h3
img name=Image src=photo.jpg width=268 height=122 alt= /
pLorem ipsum
LiveQuery would handle that
http://brandonaaron.net/docs/livequery/
On Sep 26, 2:17 pm, thelemondropkid [EMAIL PROTECTED] wrote:
Thanks to the help I have received on this group, I am making
progress.
But now that all is working fine, the question beckons: Can jQuery do
it all over again?
In this particular case event delegation might serve you better. Live Query
really only works if you are using jQuery methods to modify/manipulate the
DOM. The iui code does not use jQuery and that is why Live Query can't see
those particular updates.
--
Brandon Aaron
On Fri, Sep 26, 2008 at
Ok. Your instance of jQuery is living in the parent window, so you
need to reference it from inside the pop-up.
Use this inside your pop-up code:
script type=text/javascript
$ = window.opener.$;
$(window).load(function(){
$('#message',document).val(window.opener.location.href);
});
/script
i have this set up:
tdinput type=text value=0 //td
users enter number in text field. .blur() I need to pass the entered value
to the value attribute. I'm able to get the value of the number entered in
the text box but I cannot seem to pass it to the value attribute of the
input
Apologies if this has been asked before. I couldn't find any topics
on this when I searched.
I have some XML which looks like the following:
?xml version=1.0?
response
status1/status
html![CDATA[
tr
tdRow 1, Column 1/td
tdRow 1, Column 2/td
/tr
Hello
I really like this script.
I was wondering , how would be possible to add a class to the middle
element ?!
I mean, by default there are always 3 elements, and i would like the
middle one to be different (to add it some css style).
Thanks.
Hi Joel,
finally i found time.
a working example can be found under
http://www.pbc-arnstorf.de/jquery/
Maybe it isnt working because we (you) changed
the hover effect!
I also now included the superfish-navbar.css
which wasnt included by default.
But it still doesn't work.
Hello,
I'm new to jQuery and have been partial to mootools, but wanted to
play with jQuery for a particular web project.
One thing that I've noticed is the following:
Using mootools slide effect
http://www.hovara.com/ocl/
Using jQuery slide effect
http://www.hovara.com/ocl/jqueryindex.php
I've got the following in the head of my document:
script type=text/javascript
$(document).ready(function() {
$(.bc-wrapper:empty).addClass(none);
});
/script
and in the body,
div class=bottom-content
div class=bc-wrapper
/div!-- end bottom content
I have a page with a popup that I want to raise an event for when the
popup is being closed. Is there any event built-in to jQuery without
any plugins that can be subscribed to for when a popup is closed?
I can't seem to figure out any way to do this even without using
jQuery. Is there any way
Hi everyone, I'm hoping someone can help me learn the right way to do
this. Its experimental for me at this point. Example code is at the
bottom.
So what I'm attempting to do is to do input form validation by loading
a function which self-assembles an object that has its properties set
as the ID
I've worked on a clean solution for this a while ago:
http://haineault.com/blog/37/
The examples above might not be up to date since the code has changed
a bit since then:
http://code.google.com/p/jquery-utils/wiki/AnchorHandler
Code:
I keep seeing people talking about different ways to access the
document of an iframe. This method(after much hairpulling and testing)
works very well.
$('iframeID').contents()
The .contents() method will automatically handle the browser
differences between contentWindow and contentDocument. It
I've been using the validation plugin along with the masked input
pluging and I am noticing a possible bug. When you have a textbox
that has an input mask on it and click on the submit button it
validates the field correctly, but then if you focus into the field
and then leave it will mark the
Hi all,
I've written a new plugin for jQuery called jMailer which creates a
popup form for sending an email with. It's just the front-end, but
should be compatible with a back-end of your choice.
A demonstration (which has been mapped to a single email address to
prevent misuse) can be seen at:
I actually *JUST* created enable disable functions:
(function($) {
/**
* Disables the matched form elements, and adds the vardisabled/
var class
* to them.
* @return jQuery The matched elements.
*/
$.fn.disable = function() {
I'm not sure if this is correct behavior or a bug, but if I append an
empty string it causes an error. So $('#someId').append('') causes an
error. In my case, I'm actually supplying a variable to append() but
this variable could be an empty string. I don't see why appending
nothing would cause
John -
There are quite a few of us who are big fans and have plenty of data
center capacity. I am sure the community would be happy to mirror the
site (you can have one of our small older server in our rack any
time). Furthermore - RIMU hosting are great (I am a former client) if
you need an app
Hi,
i am working in a site made with drupal . there i am using ajax
through jQuery for a polling options.
the first time code runs nice ... as soon as some one submit one vote
the poll section is loaded with the new result.
now nothing works in that section.
i am having these two major issues :
I'd guess it was something else, as this code works just fine, no
errors
http://paste.pocoo.org/show/86303/
If appending or null was an issue, 'Bob' would never get shown
On Sep 26, 3:15 pm, kape [EMAIL PROTECTED] wrote:
I'm not sure if this is correct behavior or a bug, but if I append
HTML:
div class=some-class
pFirst element/p
pSecond element/p
pThird element/p
/div
jQuery:
$('.some-class p:eq(1)' ).css('color', 'red');
--
jQuery pseudo-class :eq(i) targets the i-nd occurence
of the obeject selected. Counts
I would recommend using the attr() method of jquery like:
checkbox.attr('checked') = !checkbox.attr('checked')
On Sep 26, 12:01 pm, chris [EMAIL PROTECTED] wrote:
I know there is a quirk with checkboxes, but I am under the impression
that setting the check state to boolean values within
I was trying to put livequery in place on the site, but it seems to
attach to pre-known events, like click, instead of new events, like
editable.
For instance, I'm trying to do this:
$(.editable, .bline_measure caption).livequery(editable,
function(value, settings) {
Wanting
var checkbox = $(# + checkboxId) // this is being found as
expected
The part you are missing is that checkbox is a jQuery object, not a
checkbox DOM object
so:
checkbox.checked
sure would error because there is no .checked property of a jQuery
object
so:
checkbox[0].checked
would work
Hi all,
I am going to use server-side Zend_Form data validation process and
its result show with jQuery. I send form data via ajaxForm(); function
and Zend controller validates data a returns information about
validation result in json format:
{status:error,messages:{email:{isEmpty:Value is
Hi,
When trying to use the validator plugin, I get the following error:
missing : after property id
edit-name: required,
It seems like it has problems with the - that Drupal puts in the
id's of each form field. Is there a workaround possible?
Thanks,
Jeroen Coumans
You can call an internal API method, that should give you the desired
result, though its subject to change in future versions. Let me know
if it works for you!
var validator = $(#myForm).validate();
// to check, call
validator.checkForm();
Jörn
On Thu, Sep 25, 2008 at 7:36 PM, dl [EMAIL
Random errors in IE6 can be caused by the packed version of jQuery.
Try to use minified(+gzip) to get around that.
Treeview works best with small trees. How big is your menu? I can't
find it on the URL you provided.
Jörn
On Fri, Sep 26, 2008 at 2:21 PM, bdct [EMAIL PROTECTED] wrote:
Hello i
Could you file a ticket for this? http://dev.jquery.com/newticket
(requires registration)
Thanks!
Jörn
On Fri, Sep 26, 2008 at 6:30 PM, Jeff Papp [EMAIL PROTECTED] wrote:
I've been using the validation plugin along with the masked input
pluging and I am noticing a possible bug. When you
Setup ajaxForm with dataType:json. Then your success-callback will
get a parsed JavaScript object as the first argument.
$(#myform).ajaxForm({
dataType: json,
success: function(data) {
// iterate over data.messages and display labels?
}
});
Jörn
On Fri, Sep 26, 2008 at 11:56 PM,
Yes, details can be found here:
http://docs.jquery.com/Plugins/Validation/Reference#Fields_with_complex_names_.28brackets.2C_dots.29
Jörn
On Sat, Sep 27, 2008 at 2:34 AM, Jeroen Coumans [EMAIL PROTECTED] wrote:
Hi,
When trying to use the validator plugin, I get the following error:
missing
Give the validation plugin a try instead:
http://bassistance.de/jquery-plugins/jquery-plugin-validation/
Just call $(#form1).validate(); and add a few classes to your form
elements, eg. class=required for required fields, or email etc.
A list of available methods is here:
Thank you kindly sir, that did exacly what I wanted. I only had to use the
navClass: 'my-ui-tabs-nav'
option.
Is looking at the noncompressed code the best way to figure that stuff out
with out having to ask?
On 9/26/08, Klaus Hartl [EMAIL PROTECTED] wrote:
You can change the class names
Use the unload event:
$(myWindow).bind('unload', function(){alert(Closed.)});
- ricardo
On Sep 26, 11:52 am, Dan [EMAIL PROTECTED] wrote:
I have a page with a popup that I want to raise an event for when the
popup is being closed. Is there any event built-in to jQuery without
any plugins
I think this is the most appropiate response for this recurrent
question:
http://docs.jquery.com/FAQ#Why_do_my_events_stop_working_after_an_Ajax_request.3F
--
Ariel Flesler
http://flesler.blogspot.com/
On Sep 26, 3:17 pm, thelemondropkid [EMAIL PROTECTED] wrote:
Thanks to the help I have
83 matches
Mail list logo