Sorry my question might be rather basic stuff but none of the
tutorials, sample code or API description helps me solving my
question.
I've a function cropImage which I'd like to use as a methode. What's
the correct syntax for
function cropImage () {
...
$(this).css ({width:
hey all,
wondering if anyone could help with this...
i have two jquery functions that act independently on two separate
columns of text in my webpage.
$(document).ready(function() {
$("#articles .view_more").toggle(function() {
$("#articles .bullet_text").addClass("bullet_text_go"); }
Am 24.04.2007 um 07:49 schrieb naveman:
that is my code, my comments show my problem. i tried not onle
jquery.html() but also any other possibilty to update the innerHTML.
so i am really wierd about that, since it has no error.
Since the call is excecuted correctly the first time, it may has
Hi Guys,
i have following problem: i have a div (#lineups) that is updated but
fails for an second update, fired by the same event.
jQuery('div.playerContainer').Droppable({
accept: 'player',
tolerance: 'intersect',
onDrop: function(drag){
jQuery.ajax({
type: 'POST',
Hi,
For some reason, my call to "getScript" isn't working. I'm calling
$.getScript("draw_modules_script.php", function(){
alert("Script loaded and executed.");
});
The alert statement is never called. I have verified the file name is
cor
Very cool, Mike! Excellent job.
I started playing around with the Google Feed API this weekend. Lots
of fun.
--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Apr 23, 2007, at 9:02 PM, Mike Alsup wrote:
I decided to make this a more polished plugin.
Sorry Dan I think I keep jumping between the different implementations of
the Autocomplete mod at the end of the day its a great addon to Jquery
thanks for your time to kill the bugs
James
On 4/24/07, Dan G. Switzer, II <[EMAIL PROTECTED]> wrote:
You're using Joern's mod. I know not all the
Ariel,
>parent() - returns one level up
>parents() - returns multiple levels up
>
>children() - returns one level down
>? - returns multiple levels down
>
>Q: is this a missing feature or is there a reason to not have a function in
>place of the '?'
This would be the equivalent:
var oContext =
now I have this for the browsers I use, I wonder what IE would whine about!
var surveyComplete = function(xrh, status){
var xml = xrh.responseXML
if (status!="success")
form.html("" + status.toUpperCase() + " requesting:" + url +"")
.append("" + xrh.resp
Have you thought of starting with a blank page and filling it with ajax,
then only showing the items based on the #name??? then you would only have
to bind 1/26 of them at a time.
On 4/23/07, Alessandro Portale <[EMAIL PROTECTED]> wrote:
Hi,
thanks for the suggestions.
> While not unobtrusiv
There's not explicit function for that but you could just us '*'. For example:
var something = $('#something');
var children = something.children();
var childrenAndGrandchildren = something.find('*');
I'd hazard a guess that the reason there is no
"childrenAndGrandchildren()" function
I know this is for Dev, but I have not been approved for that list yet...
parent() - returns one level up
parents() - returns multiple levels up
children() - returns one level down
? - returns multiple levels down
Q: is this a missing feature or is there a reason to not have a function in
plac
I decided to make this a more polished plugin. You can find the new
version here:
http://malsup.com/jquery/gfeed/
Mike
Excellent Mike. I've started using it in my application as a feed
reader, was very easy to implement with a backend for defining feeds,
I just loop them out and include th
James,
>The only other part that I would love to see with the code is to some how
>in the drop down list of Autocomplete results would be to highlight the
>top record. I will have a play today and see if I can get that working I
>saw there are ways to apply a style sheet but dont think I would b
Thanks Dan its aways the simple things that get me stuck, I did not even
think to check the Autocomplete code untill I had hit my head on the wall a
few times and then it was so simple. The SQL is quite fast but not as fast
as the array but I will see if I can do any thing with the database to spee
figured it out: I had ' ' between empty div's that get filled after the
page loads and those were the culprits.
I don't remember why I put those there, but I thought it was because the
browsers don't like empty div's. Anyone know anything about this?
- Original Message
From: Ariel Jak
I am experiencing spacing issues with my divs that is apparently fixed
when I delete white space between DIV's using firebug.
I am having trouble with jEditable/textarea that seems to be related to your
issue. When I do a POST, and the textarea kicks back to the div, a space
and two newline
Very nice. Will it work for images?
Patrick Hall wrote:
Here's my crummy attempt:
http://ruphus.com/code/jquery/fisheye.html
-p@
Hi,
thanks for the suggestions.
> While not unobtrusive, you'd be better off generated that content w/embedded
> onclick events.
> This seriously goes against the jQuery philosophy, but DOM parsing is just
> sluggish when you have thousands of elements.
I could live with not being 100% philosop
I am experiencing spacing issues with my divs that is apparently fixed when I
delete white space between DIV's using firebug.
is there a CSS way around this?
do we need a trim functionality added to append() and such?
Eli,
>I'm trying to use extjs to replace all the popup windows in my system
>(currently using thickbox) to change pref, add members etc'.
You might find quicker help over at the Ext JS forums:
http://extjs.com/forum/
There's a lot of expertise over there and it's all specific to Ext JS. I
haven
Hey guys,
I'm trying to use extjs to replace all the popup windows in my system
(currently using thickbox) to change pref, add members etc'.
i managed to create the window, managed to create the forum (well,
srota), but i can't seem to "submit" the form and hide the dialog.
I've created the dial
>This is very interesting. Is it something you can share with this group?
http://beta00.logient.com/cat/dom-analysis.rar
You are not supposed to have any js error in ff2 or ie6.
Its really just experimental.
Still I have some nice demos.
Start with domAnalysisDemo.html
The basic idea was to do t
Here's my crummy attempt:
http://ruphus.com/code/jquery/fisheye.html
-p@
i just found out the interface plugin has the "pulsate" effect :)
grreat!
_
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Josh
Nathanson
Sent: lundi 23 avril 2007 20:42
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: Blink effect
How about callb
OK, after lunch I knocked together a quick and very dirty php page
that contains a form that submits back to itself. In my testing, this
form displays the much of the same behavior that I described
originally. Works fine in FF. Form doesn't submit in IE 6 or 7. This
example, however, does not pr
Explicitly set a background color on the text to try and prevent the
text smoothing issue. Otherwise you can checkout interface plugin as I
believe it has some color animating options which might suit your
needs better.
http://interface.eyecon.ro/
--
Brandon Aaron
On 4/23/07, d3 <[EMAIL PROTECT
Alessandro,
>I have a page with about 12000 links in it. A few of these links point
>to anchors on the same page. A function should be called when those
>"intra page" links are clicked.
The bottom line is anything you do to parse 12,000 DOM objects on the same
page is going to be slow--even more
But in IE opacity draw with DirectX and not support smoothing. This
text when is not smoothed.
On 24 апр, 00:21, "Brandon Aaron" <[EMAIL PROTECTED]> wrote:
> The opacity is set to 0. to avoid a Firefox flicker back in 1.0.
> It is no longer in the latest SVN and soon to be 1.3.
>
> --
> Brand
PeriodicalUpdater is actually pretty easy to extract from Prototype, or to
simply rewrite yourself. It's just a wrapper around the
window.setInterval method, combined with the equivalent of $.load().
In fact, I think there's a plugin that does just that, called jHeartbeat.
Check the plugins pag
The opacity is set to 0. to avoid a Firefox flicker back in 1.0.
It is no longer in the latest SVN and soon to be 1.3.
--
Brandon Aaron
On 4/23/07, d3 <[EMAIL PROTECTED]> wrote:
In FireFox 2.0.0.3 and in IE7 after show and hide with speed parameter
opacity of element not restored to 1.
Be
You can just use the fadeOut and fadeIn methods to animate just the opacity:
$('#mydiv').fadeOut().fadeIn().fadeOut().fadeIn();
You could loop a set number of times with something like this:
var blinkCount = 2*2;// two blinks, 4*2 for four blinks
do {
$('#mydiv')['fade'+(blinkCount%2==0?'Ou
Hi all,
I'm just getting started working with jQuery but have been impressed
thus far by its capabilities. Here is my problem:
I'm developing a Java application utilizing Struts and tiles which has
a main "layout" page that includes separate .jsp files for sub-pages.
I've been able to create a
Hi,
I have this code
// loads modules for the selected tab.
function loadAllModules() {
$.get('draw_modules.php',
{},
function(data){
$("#container").empty().append(data);
In FireFox 2.0.0.3 and in IE7 after show and hide with speed parameter
opacity of element not restored to 1.
Before execute script:
Test text
After execute script:
Test text
See it in FireBug or in IE DOM explorer: element P is now with minimal
transparency.
On 23 апр, 22:17, "Sean Catchpole" <
Hi,
I have a page with about 12000 links in it. A few of these links point
to anchors on the same page. A function should be called when those
"intra page" links are clicked.
$("[EMAIL PROTECTED]").click(...) seems to be too slow for some browsers on
some machines if 12000 links need to be filte
OK, after lunch I knocked together a quick and very dirty php page
that contains a form that submits back to itself. In my testing, this
form displays the much of the same behavior that I described
originally. Works fine in FF. Form doesn't submit in IE 6 or 7. This
example, however, does not pres
no it does not work: it seems show() / hide() works on the width, height, or
opacity. but then i guess i could try to build this effect by using a timeout
and display:none / auto or something like that
_
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Josh
this is assuming that your php is wrapped in the javascript tag
of course this is not tested, but I am assuming you want this to show when
your page loads, so you would also put that code in the
$(document).ready(function(){}); statement.
On 4/23/07, akiratsu <[EMAIL PROTECTED]> wrote:
Hi
For the record, recent version of the jQuery corner plugin do not have
a problem with $ usage.
http://dev.jquery.com/browser/trunk/plugins/corner/jquery.corner.js?format=txt
Mike
Think perhaps that jQuery rounded corners in one of those that needs to
be re-done, 'cos
no matter what order I c
How about callback = function() {
$("#mydiv").hide().show().hide().show()
}
-- Josh
- Original Message -
From: Alexandre Plennevaux
To: jquery-en@googlegroups.com
Sent: Monday, April 23, 2007 1:27 PM
Subject: [jQuery] Blink effect
hi,
i've been playing with the effects
Think perhaps that jQuery rounded corners in one of those that needs to
be re-done, 'cos
no matter what order I call the libraries, whether I use
jQuery.noConflict() or not, it just
will not round the box corners.
The sole reason of trying to use prototype is cos of PeriodicalUpdater
which m
Hi Benjamin,
How could i execute that 'javascript function'(without click) from my php ?
for example:
$('#ex3a').jqm . '
}
?>
thanks for help,
Rudy
bmsterling wrote:
>
> .jqmShow(); will execute the show.
>
> $().ready(function() {
> $('#ex3a').jqm({
> trigger: '#ex3aTrig
hi,
i've been playing with the effects built in jquery and had a lot of fun playing
with such flexibility. However, i could not achieve what i wanted: having an
element blink twice when its html content get loaded via ajax. The problem is
the blinking of course, jquery has mad ajax so easy.
i
On Apr 23, 2007, at 2:43 PM, Mike Alsup wrote:
However, as I
pointed our earlier, some older plugins still assume that $ == jQuery.
Thickbox is an older plugin that is known to rely on $ but Klaus
Hartl is currently rewritting it and a new and improved version will
be available soon(ish).
The
lacroix1547 wrote:
> [ ... ]
I tried to made a trivial ( or gory I am not sure anymore ) dom query
system with such dom static analysis to be used allong jquery. Nothing
very serious but results were there. Everything looked instantaneous.
This is very interesting. Is it something you can sha
.jqmShow(); will execute the show.
$().ready(function() {
$('#ex3a').jqm({
trigger: '#ex3aTrigger',
overlay: 30, /* 0-100 (int) : 0 is off/transparent, 100 is opaque */
overlayClass: 'whiteOverlay'}).jqmShow();
});
--
Benjamin Sterling
http://www.KenzoMedia.com
http://www.KenzoHosting
Lately I have been crazy about jquery.
Maybe I abused a little but, I made an experience wich consisted in
replacing all my css rules(well, some basic css understandable for
ie6 ) for more intelligent 'styling rules' expressed with jquery.
Wow, I had a PORTABLE intelligent style engine.
But oups,
I tried to used your plugin 'jqModal' and run 'Example 3a'.
http://dev.iceburg.net/jquery/jqModal/
How to 'trigger' the function without 'click' it on view(link) ??
for example, i have condition(php) that have to call/trigger the function
like :
Thanks in advance
--
View this message in con
For example, if jQuery were to define their trim() method as a prototype to
the String object, then it would/could override a pre-defined version of the
function. If the two functions did not behave *exactly* a like, now you have
some issue that's very hard to debug and track down.
I agree. O
Kelly,
I assume that "your code" is jQuery based. The easiest approach is to
simply scope your code like this:
(function($) {
// your code here
})(jQuery);
This lets you write in typical jQuery style (using the $ symbol)
without worrying about collisions with other libraries. Most jQuer
Matt,
>Is there any reason why it's not done this way? Perhaps there are
>things I'm not thinking of :)
You can access the functions using $.trim(), etc. While I had no part in
planning, I suspect the decision to place all this code w/in the jQuery
object was to avoid having the jQuery code inte
Yeah, I see the hidden slider too when clicking and dragging.
Looking at firebug, it looks like a copy of the handle is made while
sliding, and that is what is showing up.
Maybe there is a solution with unbind? May not even need to have the hidden
handle if we could just unbind the action from t
On Apr 23, 4:36 am, Remy Sharp <[EMAIL PROTECTED]> wrote:
> Though if you're thinking of overloading functions like trim, wouldn't
> it be better to extend the String object?
Why doesn't jQuery extend existing objects (other than Object, of
course) and then reference those methods instead of defi
No, the elements don't exist at the same time.
On 4/23/07, Dan G. Switzer, II <[EMAIL PROTECTED]> wrote:
John,
>No, I went straight to the container vs walking it with #left >
>div.sortables.
My question was does the selector "#left > div.sortables" also retrieve
the
specific ID? I'm wonder
I'd like to piggyback on this thread if I could. I'm writing for an
environment that may or may not have other libraries included in the
page. It's not something I can know beforehand. I also won't know in
what order libraries (if any) are loaded. What is the best, most
defensive approach to take
I ran you code in FireFox and in IE6 and recieved no such error.
~Sean
howard chen schrieb:
I want to overload some core jQuery method, e.g. trim() method
any codes sample or recommendation to do this?
Save a reference to the original method in a closure and call that when
appropiate. An example for this can be found here:
http://dev.jquery.com/browser/trunk/pl
Thanks for the suggestion!
On first try I've got some strange stuff happening if i click and
inadvertently drag a little. The hidden slider appears while being
dragged and then disappears again when let go... but maybe some
tweaking can solve that...
Maybe we could override the click event som
Hi!
I'm using Interface and Thickbox plugin for clientside image resizing
and when trying to resize image i'm getting an error:
*Error: jQuery.iUtil has no properties*
Script was already working and suddenly stopped. I got back to the last
working version and the error didn't disappear!
Enyo
Brian Cherne wrote:
jVariations is a developer tool that generates a control panel (with
checkboxes and radio buttons) to show and hide variations (aka corner
cases) in a single HTML template.
This is a very nice little tool!
One thing that would make it more useful for me would be to hide t
I have two separate sortable divs on one page. Each sortable can not
interact with the other and can't seem to get this working properly.
IE the first sortable works fine, but the second doesn't.
FF Niether sortable works properly.
Should I have 2 separate sortable functions with different namin
Source HTML file:
---
http://www.w3.org/
TR/xhtml11/DTD/xhtml11.dtd">
http://www.w3.org/1999/xhtml"; >
Show/Hide Test
Hi Sean,
Thanks for that... I'd tried that and it didn't work... however i
worked it backwards and found a handy little function that outputs the
content of an object and found what I was looking for... I actually
had to refer to them via:
this.resizeOptions.maxHeight
So I guess I'll have t
success isn't successful, it just gets back the xml if successful or in the
case of firefox, it seems to get a special parsererror (formatted as xml)!
I've removed all callbacks except complete, I have to do a lot of browser
specific code to determine if the xml is malformed or the file is missin
You could always use the excellent metaData plugin to extract
information about each test div via the 'class' or 'data' attribute...
things like the group it belongs to and what kind of control to
display...
Having said that, I agree about the more explicit and meaningful
labels and I think you'v
Thanks Diego. I'll think about this for a little bit and see what shakes out
of the tree.
I sort of like the recipe being more explicit and have meaningful labels for
the checkboxes. I'm not sure how I could do that with "#tests div" without
adding/assuming stuff about the HTML DOM.
Brian.
On 4
OK, so as a workaround for IE, I assigned the click event to the img.
My lasso code looks something like this:
[if:client_browser >> 'MSIE']
$j('#mystatusimg').click(function(){
setStatus('mystatus', 'statusID', 'update status to this value');
});
[else]
[/if]
Kim, I think you are right.
$(this).parents("div.foo") should work.
The following might also work:
$("../div.foo",this)
But I haven't had time to punch that in myself yet.
~Sean
If you can get by without the ability to click on the slider to get the
handle to move, you might try a real ugly hack.
You can put two handles on the slider, and then hide the first handle. Only
the first handle is affected by clicking on the slider.
It is ugly, but might solve your problem.
Javascript has a built in scrollTo(x,y) function. One would only need
to get the .offsetTop of the element and viola. Ok well perhaps that
was over simplified, but at least there's some stuff to point you in
the right direction.
~Sean
Good example Klaus!
Here's another reference for checking the url if you need it:
http://www.sunsean.com/Jistory/
~Sean
Hello Simon,
Yes, your onResize function can change the values of maxWidth. Here is
an example:
$('#resizeMe').Resizable(
{
minWidth: 50,
minHeight: 50,
maxWidth: 400,
maxHeight: 400,
// etc. etc.
onResize
On Apr 23, 1:22 am, Chris Jordan <[EMAIL PROTECTED]> wrote:
> Does anyone know if you can request a feature for GoogleGroups?
>
> Just in case someone from Google is monitoring (... they *do* do that
> don't they?) here's my request:
> I've got a request for the web based interface. I'd like to se
The form is not submitted by ajax. It is a http post. I'll simplify the form
down to something manageable and post.
malsup wrote:
>
>
> Stuart,
>
> Is the form submitted via normal browser invocation or via ajax?
> Also, it would be immensely helpful if you could put together a simple
> html
>I'm missing the blatantly obvious...
>
>jQuery can .addClass(), .removeClass(), and .toggleClass().
The following code would alert "true" if the #myElement had the class of
"myClass".
alert(
$("#myElement").is(".myClass")
);
-Dan
On 4/23/07, wls <[EMAIL PROTECTED]> wrote:
How does one tell if an element has a class
if( $("#myElement").is(".myClass") ) {
// do super cool stuff...
}
or alternatively, get a list of classes?
Try this:
var classes = $("#myElement").attr("class").split(" ");
--
Aaron Heimlich
Web
On Apr 23, 4:51 pm, wls <[EMAIL PROTECTED]> wrote:
> I'm missing the blatantly obvious...
>
> jQuery can .addClass(), .removeClass(), and .toggleClass().
>
> How does one tell if an element has a class, or alternatively, get a
> list of classes?
>
> -wls
You can do:
if( $("#mydiv").is(".myclass"
On 4/23/07, wls <[EMAIL PROTECTED]> wrote:
How does one tell if an element has a class, or alternatively, get a
list of classes?
The following would return an array of the classes the first item has.
var classes = $(query)[0].className.split(" ");
~Sean
I'm missing the blatantly obvious...
jQuery can .addClass(), .removeClass(), and .toggleClass().
How does one tell if an element has a class, or alternatively, get a
list of classes?
-wls
Stuart,
Is the form submitted via normal browser invocation or via ajax?
Also, it would be immensely helpful if you could put together a simple
html page (ignore the server component) that demonstrates the problem.
Mike
On 4/23/07, Stuart Batty <[EMAIL PROTECTED]> wrote:
Mike, I don't immed
Hey Dan,
Thanks for the response, but I finally spotted my Deliberate Mistake (ha
ha). I posted a follow-up, but it got delayed somewhere inside the Nabble
gateway. And just to compound my embarrassment, I ended up duplicating the
followup!
Anyway, problem solved. Helps if you rename the mai
Thickbox and jTip are not written correctly to work in noConflict
mode. Try doing a search/replace on those plugins to replace the $
with jQuery. Also, if you're going to include prototype before jQuery
then remember to invoke the noConflict function.
Mike
http://liniverse.com/index.php?id=
Well I did not consider that aspect, but just tried it and here's what I
found:
If I reference prototype/scriptaculous before jQuery and it's plugins,
jquery
works, but prototype breaks. If I reverse the order, then jQuery fails and
prototype works.
The site I'm using this on is not yet meant
John,
>No, I went straight to the container vs walking it with #left >
>div.sortables.
My question was does the selector "#left > div.sortables" also retrieve the
specific ID? I'm wonder if you're attaching 2 different behaviors to the
same element.
-Dan
No, I went straight to the container vs walking it with #left >
div.sortables.
I keep drudging through it and see if I can get it working.
Is there a way to use the non-compressed version of JS?
On 4/23/07, Dan G. Switzer, II <[EMAIL PROTECTED]> wrote:
John,
>I wish I could show the page bu
I just did an experiment where I added an explicit call to submit
after the block and it works in IE. I just added $
("#myForm").submit(); after the call to block. It still takes about 6
seconds for the modal to appear but this does show that the submit
event is getting clobbered somehow.
Mike, I don't immediately see any way to post a sample page since the
application is a intranet java webapp running on Tomcat using MyFaces. I
could possibly post the compiled output from the .jsp but I fear that may
mask the original problem. I could probably work around the odd modal
alignment
Hi,
I have probleme binding generated content with the events I binded on
load:
my dom il like that
my
nodeName
In my app, a html / js tree, I can create node adding in the existing
li node:
ma new node name
but then I want to bind it to the same event I binded the li node
with $(docume
Stuart,
Can you post a sample page?
Mike
Well it looks like jQuery and prototype will never play on the same page
That's not true either. jQuery and [insert library name here] *do*
work together. If you're still having a problem it is likely due to
the order in which you are including the libraries on your page.
If your code looks
Hi!
I'm using Interface and Thickbox plugin for clientside image resizing
and when trying to resize image i'm getting an error:
*Error: jQuery.iUtil has no properties*
Script was already working and suddenly stoped. I got back to the last
working version and the error didn't disappeared!
Eny
Pardon me for replying to my own thread but I can't seem figure out why it's
not getting accepted to the mailing list. I'm subscribed but I keep getting
email saying that it's still pending. I posted it 3 days ago so I'm thinking
that's not normal. By the way, if this gets on the mailing list, I
Well it looks like jQuery and prototype will never play on the same
page, and
I find the behavior strange. Take this example call:
*jQuery.noConflict();*
jQuery(document).ready(function($j) {
$j("#box").corner("round 20px");
$j("#banner").corner("bottom 20px").corner("top bevel");
});
Dan,
"Lazy" is definitely not a word I would use to describe you!
Cheers!
Mike
That was the problem--I didn't look at the actual event.js file to see what
ready() does. :) That'll teach me never to be lazy when looking up answers.
>Yeah, that's just the shortcut for passing the user fn. You need to
>look at the ready impl:
That was the problem--I didn't look at the actual event.js file to see what
ready() does. :) That'll teach me never to be lazy when looking up answers.
;)
-Dan
Oops! I just took a look at the $() ready shortcut--which looks to pass in
the selector--not the jQuery object.
25 var jQuery = function(a,c) {
26 // If the context is global, return a new object
27 if ( window == this )
28 return new jQuery(a,c);
29
30
Mike,
>jQuery.noConflict();
>
>jQuery(document).ready(function($) {
>// use the $ here safely to ref jQuery
>$().ajaxStart($.blockUI).ajaxStop($.unblockUI);
>});
Oops! I just took a look at the $() ready shortcut--which looks to pass in
the selector--not the jQuery object.
25 var j
The ready function gets a copy of the elements specified in the
selector--not a reference to the jQuery object.
That's not true. The ready fn is passed a jQuery object so that you
can alias it as needed. A common usage pattern is:
jQuery.noConflict();
jQuery(document).ready(function($) {
Hi Everyone,
I asked something along these lines a while back but got no responses,
so I'm assuming it's not possible, but if there's anybody out there
who would be kind enough to give me a definitive answer then I'll be
able to stop worrying that i've missed something blindingly
obvious whic
1 - 100 of 126 matches
Mail list logo