[jQuery] editease - my first plugin endeavor

2007-09-30 Thread [EMAIL PROTECTED]

Well I have been playing with jQuery for a few months, and wanted to
test a few basic concepts.  Mostly to do with injecting content into
the DOM on the fly in a usable way, to give some older client sites of
mine, CMS capabilities without having to do a full conversion of the
site to a database driven CMS.

In other words I was looking for the quickest short cut, and install
script, possible so that I didn't need to spend hours converting sites
to suit a full CMS.

What came out of this idea is a little plugin I have called "editEase"
for want of a better name (and naming things is not my forte) that
allows for edit in place of content by writing to the include file
instead of using a database.  Knowing one of my clients (and their
lack of technical skills), a WYSIWYG editor had to be an option, along
side a plain text area, and TinyMCE seemed a good choice given it
works in nearly all browsers (including Opera).

Anyways, I have created a little project file here: 
http://code.google.com/p/editease/
which has links to a short video http://screencast.com/t/Ayk7at3C
(only a 1 minute investment of your time, instead of having to read
through a lot of stuff to work out what I am on about), a live demo,
and the download files.

There are 2 dependencies on other jQuery plugins, being Thickbox and
Dimensions, although figured most would use them a lot already.

Would appreciate any feedback on this idea.

Cheers
Stephen



[jQuery] Re: ANNOUNCE: jqUploader update

2007-09-30 Thread Alexandre Plennevaux

http://www.pixeline.be/experiments/jqUploader/

 

-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rey 
Bango
Sent: lundi 1 octobre 2007 3:22
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: ANNOUNCE: jqUploader update


Alexandre,

Could you post a link to it?

Rey..

Alexandre Plennevaux wrote:
> hi friends,
>  
> this is just to inform everyone that an update has been made to jqUploader:
>  
> V 1.0.2.2: fixes flash prompt "A script in this movie is causing Adobe Flash 
> Player 9 to run slowly...". 
>  
> Moved to jquery 1.2.1
>  
>  
>  
>  
> Hope this is useful!
>  
>  
> Alexandre Plennevaux
> 
> Ce message Envoi est certifié sans virus connu.
> Analyse effectuée par AVG.
> Version: 7.5.488 / Base de données virus: 269.13.35/1039 - Date: 
> 29/09/2007 21:46
>  
> 
> 

Ce message Envoi est certifié sans virus connu.
Analyse effectuée par AVG.
Version: 7.5.488 / Base de données virus: 269.13.35 - Date: 29/09/2007 0:00
 



[jQuery] Re: uhhh.......WAT?

2007-09-30 Thread Michael Geary

> From: cmbtrx
> 
> Thanks for testing this out...seems then that something is 
> interfering with jQuery functionality. So, um, that does not 
> bode well for my using jQuery...is it prone to not playing 
> nice with others? Just wondering out loud...

At the risk of sounding like a Digger... Link or it didn't happen. :-)

Seriously, post a link to a test page. Over in the Google Maps API, some of the 
guys won't even talk to you unless you post a link.
And they have a point. Wizzud ran the code you pasted into a message and it 
worked fine.

So what's left to do? We could play 20 questions and try to think of the 
possible things that might have gone wrong - and a few list
members have made valiant efforts at that - but as you can see it hasn't gotten 
us anywhere. A simple link to a test page would
resolve the issue immediately.

-Mike



[jQuery] Re: using of several $(document).ready()

2007-09-30 Thread Joel Birch

On 10/1/07, james_027 <[EMAIL PROTECTED]> wrote:
> Will there be any bad if in a page I have more than one $
> (document).ready()?

> james

Nope, no bad. Go for it!

:)


[jQuery] Re: Dropdown div

2007-09-30 Thread Joel Birch

On 9/30/07, me1000 <[EMAIL PROTECTED]> wrote:
> So I thought it was all working great, until I discovered than
> whenever you click ANYWHERE on the page it drops down!
> :confused:

>From your code I don't see why the div would drop down when clicking
anywhere on the page. The only thing I can think of is that there is a
missing closing  tag, causing the rest of the page to be part of
the link that is clickable. If you have a live page we can look at it
would be much easier to find the cause of your problem.

While I am here anyway, here is a quick rewrite of your code to
suggest how you can use jQuery to write it more concisely.

var $drop = $('#testidrop');
$('#testialink').click(function(){
$drop.slideDown('slow');
});
$('#close').click(function(){
$drop.slideUp('slow');
});

Joel Birch.


[jQuery] Re: Manipulating DOM

2007-09-30 Thread Joel Birch

I replied to your initial duplicate post but maybe you are tracking
this one instead? Here is my post again:

Welcome to the list Maurice,

I tested this and it works:


$(function(){
   var $holder = $('#sometextholder');
   $('li').each(function(){
   var $$ = $(this);
   var $a = $$.find('a');
   var text = $$.text();
   $$.html($a);
   $a.hover(
   function(){
   $holder.append(text);
   },
   function(){
   $holder.empty();
   }
   );
   });
});


And here is a fully commented version of this same script:

$(function(){
   //get and store the holder div
   var $holder = $('#sometextholder');

   // loop through the li elements. You will want to apply
   // more context to the selector than this though
   $('li').each(function(){
   // store various bits of the DOM you will need later
   var $$ = $(this); // this li
   var $a = $$.find('a'); // the link in the li
   var text = $$.text(); // the full text in the li
   // make li contain only the link
   $$.html($a);
   // apply hover behaviour
   $a.hover(
   // mouseover
   function(){
   $holder.append(text); // append this
li's original text
   },
   // mouseout
   function(){
   $holder.empty(); // empty the holder
   }
   );
   });
});

Good luck.

Joel Birch.


[jQuery] Safari 3 beta possible bug in html()

2007-09-30 Thread Mathew Byrne

We're coming across some strange behaviors in Safari whilst developing
a site for a client. Currently this behavior is not reproducible in
Firefox and I assume other browsers.

I haven't had time to put together a test page, however a brief
synopsis follows:

1. Some content is loaded through the $.ajax function and appended to
a modal popup. The dataType is set to HTML and it's appended via the
html() function:

$.ajax({ dataType: 'html' }
...
$popup.empty().html(html)

2. The popup now contains a form. The  text may
say something like "Submit form".

3. When the form is submitted, a new page is loaded. A different form
is loaded into the popup using the same method above. Except this time
the  box still reads "Submit form" when it
should have different text.

I've tried dumping the output of the $.ajax call to the console and
sure enough the correct HTML is being returned from the AJAX request.
This also happens with the values of input boxes as well. It's almost
as if Safari is caching the nodes somehow between requests.

I'm going to create a test page when I have time, but is this a known
issue? Does anyone have any short-term suggestions for how to fix or
get around this?

Thanks



[jQuery] Re: jQuery (Superfish) conflicting with swfobject

2007-09-30 Thread Joel Birch

On 10/1/07, Joel Birch <[EMAIL PROTECTED]> wrote:
> $(".nav").superfish({
> animation : { opacity:"show",height:"show"},
> delay   : 250
> });

In your case I advise adding more specificity to the selector you use
to initialise Superfish. ".nav" is a fairly slow selector and I only
use it for my examples in order for the simplest implementation for
everyone regardless of their mark-up. I recommend changing it in your
case to "#navigation>.nav" as that will narrow down the search for the
.nav element greatly.

Joel Birch.


[jQuery] Re: How to add/remove dynamic blocks of html

2007-09-30 Thread Michael Geary

Glad you like the [].join('') trick, Howard - and good catch on the unnecessary 
wrapper. You didn't miss anything, and that
simplifies the example down to:

  $('#exampleCA').append( [
  '',
  '',
  '',
  'I was created by jQuery append',
  '',
  '',
  ''
  ].join('') );

One other thing I like about this approach is that - unlike the + concatenation 
operator - the comma operator has lower precedence
than the ? : conditional operator and the || and && logical operators. So you 
can write code like this:

  var html = [
 '',
name ? name : 'no name',
 ''
  ].join('');

You could do that with string concatenation, but it would require parenthesis 
around the conditional expression, which adds a bit of
ugliness.

You're right on the appendTo vs. append question too - the docs need to be 
updated. Check the source code:

   jQuery.each({
  appendTo: "append",
  prependTo: "prepend",
  insertBefore: "before",
  insertAfter: "after",
  replaceAll: "replaceWith"
   }, function(i,n){
  jQuery.fn[ i ] = function(){
 var a = arguments;
 return this.each(function(){
for ( var j = 0, al = a.length; j < al; j++ )
   jQuery(a[j])[n]( this );
 });
  };
   });

appendTo is just a wrapper around append - just like prependTo, etc. And all of 
these functions run their arguments through
domManip(), which is the code that handles the text vs. DOM element question. 

I wouldn't assume that any jQuery function that takes a string will also take 
DOM elements or jQuery objects, but for this group of
functions it's certainly true.

-Mike

> From: howardk
> 
> Nice use of join()! I'm new to JavaScript and jQuery both, 
> and it's nice to come across little snippets like this I can 
> readily add to my jQuery repetoire and that slightly expand 
> my understanding of JavaScript.
> 
> By the way, the docs show that it's legal to pass, as an 
> argument to append(), either a jQuery object (as you're 
> doing), a DOM element, or a string. So you really don't need 
> to wrap the stringified array in a jQuery object before you 
> pass it in. Unless there's another reason for doing so that 
> I'm missing.
> 
> Apropos to the above, I wonder why the docs for appendTo() 
> show a string as being the only legal argument type? I tried 
> a test passing in a jQuery object instead and it worked just 
> fine. Does that mean you can use a jQuery object *any* time a 
> string is called for in other jQuery methods as well? Or just 
> a case of the documentation needing to be adjusted in this one case?



[jQuery] Re: jQuery (Superfish) conflicting with swfobject

2007-09-30 Thread Joel Birch

Hi Brett,

This sounds like one of IE's many CSS bugs, but it's easy to fix.
Simply add z-index:999; to the .nav element in the Superfish CSS file.
Obviously you have the z-index on .nav li which is correct, but you
will also need to to add it to .nav to make IE work properly. I have
tested this solution on your page and it works.

By the way Brett, I noticed that the code you are using to initialise
Superfish contains syntax that works for jQuery 1.2 and above whereas
you are using 1.1.3.1. Change this line:

.find(">li:has(ul)") /* .find(">li[ul]") in jQuery less than v1.2 */

to this:

.find(">li[ul]")

That code only applies if you need the bgiframe plugin to work of
course. If you don't foresee select boxes being used under the
dropdown then you can remove all of that extra code and just go with:
$(".nav").superfish({
animation : { opacity:"show",height:"show"},
delay   : 250
});

Hope this helps you along.

Joel Birch.

P.S. Special thanks to Lloyd Hazlett who recently just happened to
alert me to the IE z-index issue and also provided the fix.


[jQuery] jQuery (Superfish) conflicting with swfobject

2007-09-30 Thread Brett

Hi all, I've been playing around with a dropdown style with help from
the fantastic Superfish addin. It looks great in firefox so far, and
to a limited extent internet explorer

http://cressaid.brettjamesonline.com/staley/bigtest.html

This is the page with swfobject disabled (put a typo in to stop
swfobject.js loading). This gets rid of all flash content on the page.
The internet explorer dropdown works, although its width and height is
a bit messed up.

http://cressaid.brettjamesonline.com/staley/products-mining.html

this is the same version, with swfobject enabled. The products drop
down does not appear anymore! :(

Does anyone know where the conflicting code would be, so I know that I
could keep working this way... I love using jQuery and don't want to
drop it



[jQuery] I.E. Troubles, halp \o/

2007-09-30 Thread [EMAIL PROTECTED]

Kay so I'm working on this project and I want it to look good in both
Browsers, you know, Designer's Nightmare.

So, Firefox looks great and js/jquery is working as intended, and then
me and my partner go to IE7 and cry.
The simple code that I'm working with just just .slideToggle();

And it's quite peculiar because if the file is .php it doesn't ask for
the ActiveX  to be unblocked but if it's .html it does, which then
allows the .slideToggle() method to cooperate.

And now I'm pulling my hair out trying to get this fixed ASAP so the
project could get running smoother.

If anyone knows where they can direct me / help me that'd be great.

Regards.



[jQuery] Re: Jquery Location.href or load --problem

2007-09-30 Thread Flesler

I'm glad you fixed it... just in case... window.location.href("/de/
testsite/preview_profile"); is not valid, location.href is a string,
not a function.. you could do window.location.href = "/de/testsite/
preview_profile";   or just location = "";
Cheers.

On Sep 30, 4:25 pm, voltron <[EMAIL PROTECTED]> wrote:
> Hi Wizzud, sorry for not providing enough information. I solved the
> problem. I had named the links otherwise in my template. Thanks!
>
> On Sep 30, 1:12 am, Wizzud <[EMAIL PROTECTED]> wrote:
>
>
>
> > Without a bit more information it is nigh on impossible to determine what
> > might - or might not - be happening.
> > Just saying "it doesn't work" is not particularly enlightening.
>
> > Do you have a test page that is web-accessible?
>
> > Some basics:
> > Does *anything* happen when the clickable element is clicked? If so, what?
> > Have you included the jquery script file? Successfully?
> > On your page(s), have you wrapped the snippets below in the document ready
> > function?
> > Does an element with the id of 'preview_button' exist on your page? And is
> > it (the id) unique within that page?
> > Is there any other HTML on the page that could interfere with the
> > aforementioned clickable element?
> > Is there any other jQuery javascript involved? If so, is that other script
> > working? And might it be preventing assignment of the click function?
> > Does the page you are trying to either load or call actually exist?
>
> > What browser are you testing on? (And if it's not Firefox, with the Firebug
> > extension so you can step through and debug what's happening in your script
> >  why not!?)
>
> > voltron-2 wrote:
>
> > > Hi all, I would like to call up a page using location.href  or Ajax in
> > > the Jquery way, I ried this:
>
> > >  $("#preview_button").click(function(){
> > >$("#main").load("/de/testsite/preview_profile");
> > >   });
>
> > > and this
>
> > >  $("#preview_button").click(function(){
> > >window.location.href("/de/testsite/preview_profile");
> > >   });
>
> > > Strangely, both methods do not work, anyone tell me what I´m doing
> > > wrong?
>
> > > Thanks
>
> > --
> > View this message in 
> > context:http://www.nabble.com/Jquery-Location.href-or-load---problem-tf453853...
> > Sent from the jQuery General Discussion mailing list archive at 
> > Nabble.com.- Hide quoted text -
>
> - Show quoted text -



[jQuery] I.E Troubles.

2007-09-30 Thread [EMAIL PROTECTED]

Kay so I'm working on this project and I want it to look good in both
Browsers, you know, Designer's Nightmare.

So, Firefox looks great and js/jquery is working as intended, and then
me and my partner go to IE7 and cry.
The simple code that I'm working with just just .slideToggle();

And it's quite peculiar because if the file is .php it doesn't ask for
the ActiveX  to be unblocked but if it's .html it does, which then
allows the .slideToggle() method to cooperate.

And now I'm pulling my hair out trying to get this fixed ASAP so the
project could get running smoother.

If anyone knows where they can direct me / help me that'd be great.

Regards.



[jQuery] Drop Down Div

2007-09-30 Thread me1000

I have a div called testidrop,
[code]...[/code]

normally is is hidden, but when I click on a link (testialink)
it should drop down,

[CODE]Testimonials[/
CODE]

So I thought it was all working great, until I discovered than
whenever you click ANYWHERE on the page it drops down!
:confused:

Here is the code in the head tag

[CODE]  
//show testimonials
$(document.getElementById('testialink')).click(function(){$
(document.getElementById('testidrop')).slideToggle("slow")});

$(document.getElementById('close')).click(function(){$
(document.getElementById('testidrop')).slideup("slow")});
[/CODE]
(BTW the reason for the close one, us because there is a link within
the testidrop div that will close it)


any idea why this happens? or what I can do to fix it?



[jQuery] javascript paint like drawing tool

2007-09-30 Thread [EMAIL PROTECTED]

Hi,

I'm not able to find a good (preferably open source) paint-like
drawing tool & thought maybe there is one built on jquery. Simple as
the original MS paint.

Does anyone have an clue?

Thanks.



[jQuery] Home Page ui.jquery.com

2007-09-30 Thread phobis

The image that loads on the main page is HUGE! I don't want JQuery to
look bad by having an unoptimized image in he home page, so I have
optimized it. I have no way of uploading it though. If someone would
like me to get it to them, please contact me.



[jQuery] Re: safari (win, mac) issues with fadeIn + callback

2007-09-30 Thread bytte

I've been looking into this for the past 12 hours or so. I'm starting
to get crazy. Any help would be deeply appreciated. It works in all
browsers, yet not in Safari.
(sorry for bumping - but this list is my last hope at the moment)

On 29 sep, 16:53, bytte <[EMAIL PROTECTED]> wrote:
> I have made a very basic slideshow, with help from this list, that
> looks for images in a database, then displays them. Here's the 
> link:http://www.sum.be/project/item.php?item=14&ID=39〈=1(navigate
> through the pics by using the small arrows to the right of the
> picture)
>
> It works ok in all tested browsers (ff mac/win, ie, opera mac/win),
> yet not on safari (mac+win).
>
> As you'll see there's a problem with the fadeIn/fadeOut resulting in a
> blank space where the picture should reside.
>
> Here's the code I use to make the old picture fadeOut and the new one
> fadeIn:
>
> function showNewPic(json,lang) {
>  var img = new Image();
>  img.onload = function(){
>   $('.jq_loading').hide();
>   $('.projectpic').fadeOut("fast",function() {
>$('.projectpic').attr({ src: "../layout/images/
> uploads/"+json.picture, id: "jq_" +json.item_ID+ "_" +json.menu_een_ID
> + "_" +json.menu_twee_ID+ "_" +lang+ "_" +json.ID, alt:
> json.alt }).fadeIn("fast");
>   });
>  }
>  img.src = "../layout/images/uploads/"+json.picture;
>
> }
>
> Any idea why it fails in Safari? The Safari Javascript console gives
> me no errors whatsoever.



[jQuery] Re: How to add/remove dynamic blocks of html

2007-09-30 Thread howardk

Nice use of join()! I'm new to JavaScript and jQuery both, and it's
nice to come across little snippets like this I can readily add to my
jQuery repetoire and that slightly expand my understanding of
JavaScript.

By the way, the docs show that it's legal to pass, as an argument to
append(), either a jQuery object (as you're doing), a DOM element, or
a string. So you really don't need to wrap the stringified array in a
jQuery object before you pass it in. Unless there's another reason for
doing so that I'm missing.

Apropos to the above, I wonder why the docs for appendTo() show a
string as being the only legal argument type? I tried a test passing
in a jQuery object instead and it worked just fine. Does that mean you
can use a jQuery object *any* time a string is called for in other
jQuery methods as well? Or just a case of the documentation needing to
be adjusted in this one case?

Howard

On Sep 29, 11:17 am, "Michael Geary" <[EMAIL PROTECTED]> wrote:
> > From: James Dempster
>
> > I've never really understood the point to FlyDOM. It seems
> > like a nice idea, but whats wrong with just using jQuery?
>
> > FlyDOM
> > $('#exampleCA').createAppend(
> > 'table', { width: '718px', style: 'border: 2px inset #336699;' }, [
> > 'tr', { className: 'exampleRow' }, [
> > 'td', { align: 'center', style: 'color: white;' },
> > 'I was created by createAppend()!'
> > ]
> > ]
> > );
>
> > jQuery
> > $('#exampleCA').append($(
> > ''+
> > ''+
> > ''+
> > 'I was created by jQuery append'+
> > ''+
> > ''+
> > ''
> > ));
>
> > As far as I can tell both of these would do the same thing?
> > They're both as easy as each other, maybe jQuery is even
> > easier as it's plain html. Would the jQuery version be faster
> > also as it could just inject the html into the DOM using
> > something like innerHTML.
>
> Yes indeed, innerHTML is faster than DOM insertion, and you also remove the 
> overhead of the code that interprets the element list.
>
> In fact, I wrote the first jQuery DOM plugin, and I don't use my own plugin 
> any more!
>
> You can improve the speed even more by using [].join instead of string 
> concatenation:
>
>  $('#exampleCA').append($( [
>  '',
>  '',
>  '',
>  'I was created by jQuery append',
>  '',
>  '',
>  ''
>  ].join('') ));
>
> In your simple test case it won't make any difference, but if you are 
> stringing together a lot of HTML code, [].join will speed it
> up in most browsers.
>
> -Mike



[jQuery] Re: Display problem with Jquery show & hide - slide in & out functions

2007-09-30 Thread bytte

I seen no flashing here. What browser are you on?

On 29 sep, 16:28, wizofoz777 <[EMAIL PROTECTED]> wrote:
> My website is using slie in & out & hide functions, but I have no idea
> why, when I am hiding (slideout) my differents div, the content
> flashes the screen before it hides away... I have tried many thing,
> but I can get rid of that anoying behavior... I need help please...
> could it be a swf conflict ?
>
> Here is my web page -->http://msaski.s458.sureserver.com/fr/exemple.html
> Here is code used in the page 
> -->http://msaski.s458.sureserver.com/code/skimsa.js
>
> Thanks all in advance



[jQuery] Re: Can't parse input from one form of many on page

2007-09-30 Thread Flesler

the "hidden" part won't match a thing, you should use ":hidden"
instead, and anyway, the "input" part will match hiddens as well.

On Sep 27, 6:28 pm, mo2g <[EMAIL PROTECTED]> wrote:
> I set up a quick function to parse the Parms array I get from this and
> it doesn't appear to work.
>
> Basically it is an empty set.
>
> Here is the URL of the page I am working on:
>
> http://www.glyfada.net/index.php?option=com_mtzcssearch&Itemid=46&tem...
>
> under the advanced search form in the center of the page enter a
> zipcode in the Your Address field (30022 works) and then select a
> distance. I use javascript to parse the form and show a live result #.
>
> The alert that pops up to show the values is empty. If I remove the
> form reference, I get everything on the page.
>
> On Sep 27, 4:42 pm, "Josh Nathanson" <[EMAIL PROTECTED]> wrote:
>
>
>
> > Try this:
>
> > $('input,select,hidden', '#adminForm').each(function() {
> > do stuff;
>
> > }
>
> > This says "get all input, select, hidden elements in the context of
> > #adminForm."
>
> > -- Josh
>
> > - Original Message -
> > From: "mo2g" <[EMAIL PROTECTED]>
> > To: "jQuery (English)" 
> > Sent: Thursday, September 27, 2007 12:55 PM
> > Subject: [jQuery] Can't parse input from one form of many on page
>
> > > Sorry if this double posts...
>
> > > I am a newbie with JQuery and have ported a form from Prototype.
>
> > > I have two forms on a page:
>
> > > 
> > > 
> > > more fields...
> > > 
> > > 
>
> > > 
> > > 
> > > more fields...
> > > 
> > > 
>
> > > I am using the following code on the page to parse the input from the
> > > form:
>
> > >   $('input, select, hidden').each(function(){
>
> > > The problem is this code grabs the input from both forms. I just need
> > > the input from the form "adminForm".
>
> > > I tried:
>
> > >  $('#adminForm :input, select, hidden').each(function(){
>
> > > but it just kills 'input' while still collecting the 'select' and
> > > 'hidden' type fields.
>
> > > How do I tell JQuery that I want to limit it to the adminForm form?- Hide 
> > > quoted text -
>
> - Show quoted text -



[jQuery] Re: Borders for rounded corners?

2007-09-30 Thread sgrover

NM - found the adornments at
http://www.malsup.com/jquery/corner/

Shawn

sgrover wrote:
> I'm using the rounded corners plugin (great tool!).  I'd like to apply a 
> border around my DIV after the corners have been applied.  Setting the 
> border for the div via CSS works fine if I don't apply the corners.  But 
> once the corners are applied, my border disappears.
> 
> I've read the docs for rounded corners at 
> http://www.methvin.com/jquery/jq-corner.html.  The only way I can see to 
> possibly do this is if I put my div within another div that has the 
> color I want.  But I think that would leave the containing div with 
> square corners, ruining the effect I'm looking for.
> 
> Is there any way to make this work, without going back to using images? 
>  Thanks for any tips.
> 
> Shawn
> 


[jQuery] Re: inconsistent processing for xml vs html

2007-09-30 Thread [EMAIL PROTECTED]

http://dev.jquery.com/ticket/1753

On Sep 29, 7:47 am, "John Resig" <[EMAIL PROTECTED]> wrote:
> Could you submit a ticket for this? Thanks!
>
> http://dev.jquery.com/
>
> --John
>
> On 9/28/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
>
> > In jQuery 1.2.1, line 783 does this:
>
> > div = doc.createElement("div")
>
> > The attributes that Firefox 2.0.0.7 creates for div are different
> > depending on whether a page is loaded as foo.html or foo.xml. In
> > particular, when the file is XML, there's no div.innerHTML, only
> > div.textContent. This causes a problem down on line 813:
>
> > div.innerHTML = wrap[1] + arg + wrap[2];
>
> > When the file is HTML, that statement assigns a value to both
> > div.innerHTML and div.textContent. When the file is XML, that
> > statement creates div.innerHTML and assigns its value, but does not
> > affect div.textContent.
>
> > Seehttp://pastie.caboo.se/101771. Save this code as foo.html and as
> > foo.xml.



[jQuery] Dropdown div

2007-09-30 Thread me1000


I have a div called testidrop,
[code]...[/code]

normally is is hidden, but when I click on a link (testialink)
it should drop down,

[CODE]Testimonials[/
CODE]

So I thought it was all working great, until I discovered than
whenever you click ANYWHERE on the page it drops down!
:confused:

Here is the code in the head tag

[CODE]  
//show testimonials
$(document.getElementById('testialink')).click(function(){$
(document.getElementById('testidrop')).slideToggle("slow")});

$(document.getElementById('close')).click(function(){$
(document.getElementById('testidrop')).slideup("slow")});
[/CODE]
(BTW the reason for the close one, us because there is a link within
the testidrop div that will close it)


any idea why this happens? or what I can do to fix it?


Big Thanks,



[jQuery] Borders for rounded corners?

2007-09-30 Thread sgrover

I'm using the rounded corners plugin (great tool!).  I'd like to apply a 
border around my DIV after the corners have been applied.  Setting the 
border for the div via CSS works fine if I don't apply the corners.  But 
once the corners are applied, my border disappears.

I've read the docs for rounded corners at 
http://www.methvin.com/jquery/jq-corner.html.  The only way I can see to 
possibly do this is if I put my div within another div that has the 
color I want.  But I think that would leave the containing div with 
square corners, ruining the effect I'm looking for.

Is there any way to make this work, without going back to using images? 
  Thanks for any tips.

Shawn


[jQuery] insertBefore not inserting into dom?

2007-09-30 Thread scottnath

Hi,

I'm trying to insert a new list item, but when I do it seems that
jquery does not recognize that the new item is in there and jquery
functions don't work on it. An example is below:



$(document).ready(
function () {
$("#windowOpen").click(function(){
var z = "
  • "; $(z).insertBefore("#row_2"); }); $(".in_dom").click(function(){ alert("that's in the dom"); }); }); show div click me click me click me click me ** When #row_45 is inserted, the .in_dom button does not work on click Any help on this would be greatly appreciated. Thanks all! -Scott

    [jQuery] Suggestion for increase the performance of the jQuery

    2007-09-30 Thread Igor Cemim
    
    Hello!  Like to give a suggestion.  Use the site www.banascript.com
    for compact the jQquery.  I compacted the file of the jQuery 1.2.1
    (81,5KB) and I obtained a file of 21,1kb.  The version compacted of
    the jquery lowered of the site jquery.with had 45kb.
    
    Embraces of Igor Cemim
    
    
    

    [jQuery] Re: Manipulating DOM

    2007-09-30 Thread rgrwkmn
    
    If you only want to do this once on the page try something like this:
    HTML execute the function on mouseover
    someurl
    
    JS ---get your text stored in an html file (could be any type of text
    file really) and, once it's loaded, append that data into the proper
    div, using its id.
    function readMore() {
     $.get("theText.html", function(data){
       $
    ("#sometextholder").append(data);
     });
    }
    
    here's info on $.get: http://docs.jquery.com/Ajax/jQuery.get#urldatacallback
    
    If you wanted many of these on your page you can still do it all from
    one function, just pass the variables of what text to get and which
    div to put it in:
    HTML
    someurl
    
    JS
    function readMore(file, id) {
     $.get(file, function(data){
       $(id).append(data);
     });
    }
    
    This is my first post, hope it was helpful.
    Roger Wakeman
    
    
    
    

    [jQuery] subscribe jQuery mailing list

    2007-09-30 Thread Ross Wan
    I want to subscribe jQuery's mailing list.
    
    THX.
    
    -- 
    Web site:http://wstudio.web.fc2.com/index.html";>KISS the
    World!
    
    Blog:http://mrwlwan.wordpress.com>Ross Wan's
    world!
    
    

    [jQuery] Re: Jquery Location.href or load --problem

    2007-09-30 Thread Kris Kowal
    You might consider::
    
    window.location.href = fullyQualifiedUrl;
    
    ``href`` is not a function, although the notion (arguably a jQuery idiom)
    that assignment could be implied by application on a non-function is fun.
    
     Kris Kowal
    
    On 9/29/07, voltron <[EMAIL PROTECTED]> wrote:
    >
    >
    > Hi all, I would like to call up a page using location.href  or Ajax in
    > the Jquery way, I ried this:
    >
    > $("#preview_button").click(function(){
    >$("#main").load("/de/testsite/preview_profile");
    >   });
    >
    > and this
    >
    > $("#preview_button").click(function(){
    >window.location.href("/de/testsite/preview_profile");
    >   });
    >
    >
    > Strangely, both methods do not work, anyone tell me what I´m doing
    > wrong?
    >
    >
    > Thanks
    >
    >
    
    

    [jQuery] Re: Problems with $.post and $.ajax

    2007-09-30 Thread Oscar from Sweden
    
    I love u guys. It worked! What possibilities I got, mohaha ;)
    
    
    

    [jQuery] Re: uhhh.......WAT?

    2007-09-30 Thread cmbtrx
    
    @jeffkretz
    Not at all! I made a point of congratulating the group on their
    amazing patience (my initial post was...frazzled).
    
    So forgive me if I have a knee-jerk reaction to sophomoric
    insults...one bad apple is all it takes, so I'm quick to jump on it.
    
    
    On Sep 28, 3:03 pm, jeffkretz <[EMAIL PROTECTED]> wrote:
    > cmbtrx,
    >
    > I think you're being a bit harsh here.  As I look through the posts,
    > most everyone is taking the time to try and help out.  There was one
    > rude reply.  Don't come down hard on the group as a whole because of
    > it.
    >
    > JK
    >
    > On Sep 28, 9:36 am, cmbtrx <[EMAIL PROTECTED]> wrote:
    >
    > > Shucks, I knew it was too good to be true.
    >
    > > This ass/troll/clueless individual thanks you for making this group
    > > forum now begin to sound like every other developer's resource on the
    > > web: well-intentioned but ultimately crippled by the bratty missives
    > > of a few self-important detractors.
    >
    > > Feel free to share your own insights next time--it might in fact be an
    > > opportunity for you to learn something that perhaps you never knew you
    > > needed to know.
    >
    > > On Sep 27, 8:28 pm, Robert Koberg <[EMAIL PROTECTED]> wrote:
    
    
    

    [jQuery] Re: uhhh.......WAT?

    2007-09-30 Thread cmbtrx
    
    See previous reply; I am not Spock (and yes, I should have included
    sample code--doh. sorry)
    
    Thanks for testing this out...seems then that something is interfering
    with jQuery functionality. So, um, that does not bode well for my
    using jQuery...is it prone to not playing nice with others? Just
    wondering out loud...
    
    
    
    On Sep 28, 2:40 pm, Wizzud <[EMAIL PROTECTED]> wrote:
    > @cmbtrx
    > I have just lifted the code directly from your second post, tagged
    >  after the anchor, and it worked first time (Firefox and IE7).
    > I can only suggest that you check that the path to the jquery.js source file
    > is correct for wherever you are running it, as that is the *only* thing that
    > would prevent the alert from showing.
    >
    > (Actually, thinking about it, it's not the only thing that could prevent the
    > link activating, because you state that there is more html below the link,
    > and it is possible - though unlikely - for that to prevent the link
    > activation, so I would suggest that for testing you remove any extraneous
    > code from your page.)
    >
    > Bratty missives beget bratty missives. Frustration can be understood,
    > accepted, and usually resolved - but responses are far more likely when the
    > request is couched in polite terms, and with as much relevant information as
    > possible.
    >
    >
    >
    > cmbtrx wrote:
    >
    > > Shucks, I knew it was too good to be true.
    >
    > > This ass/troll/clueless individual thanks you for making this group
    > > forum now begin to sound like every other developer's resource on the
    > > web: well-intentioned but ultimately crippled by the bratty missives
    > > of a few self-important detractors.
    >
    > > Feel free to share your own insights next time--it might in fact be an
    > > opportunity for you to learn something that perhaps you never knew you
    > > needed to know.
    >
    > > On Sep 27, 8:28 pm, Robert Koberg <[EMAIL PROTECTED]> wrote:
    > >> Hi,
    >
    > >> I am new to jquery. Haven't had any problems that couldn't be solved by
    > >> the docs or a search. I am amazed that an ass/troll/clueless individual
    > >> gets so much play.
    >
    > >> whatev,
    > >> -Rob
    >
    > >> On Thu, 2007-09-27 at 21:54 +, cmbtrx wrote:
    > >> > lol looks just like mine.
    >
    > >> > I sense that a stupid typo is fast approaching the direction of this
    > >> > conversation...
    >
    > >> > Nice little site that--pastie.
    >
    > >> > On Sep 27, 5:45 pm, "Richard D. Worth" <[EMAIL PROTECTED]> wrote:
    > >> > > On 9/27/07, cmbtrx <[EMAIL PROTECTED]> wrote:
    >
    > >> > > > OK, forgive my tone here...I'm actually quite flabbergasted.
    >
    > >> > > > I ***FINALLY*** get around to trying out jquery.
    >
    > >> > > > Oh, I'm sure that quite obviously I'm doing something wrong,
    > >> because
    > >> > > > after following the first few paragraphs of the "How JQuery Works"
    > >> > > > section (clicking a link launches an alert box...uh ok, no fine) it
    > >> > > > does absolutely nothing.
    >
    > >> > > After following the first few paragraphs of
    >
    > >> > >  http://docs.jquery.com/How_jQuery_Works
    >
    > >> > > my page looks something like this:
    >
    > >> > >  http://pastie.caboo.se/101553
    >
    > >> > > This works for me. Perhaps you could compare what you have to mine
    > >> and see
    > >> > > if you can find a significant difference. Or if mine works, use it as
    > >> a
    > >> > > starting point. Good luck, and let us know how it turns out.
    >
    > >> > > - Richard
    >
    > --
    > View this message in 
    > context:http://www.nabble.com/uhhh...WAT--tf4530903s15494.html#a12946285
    > Sent from the JQuery mailing list archive at Nabble.com.
    
    
    

    [jQuery] Re: uhhh.......WAT?

    2007-09-30 Thread cmbtrx
    
    Yep, that is absolutely on target. I believe that right now I'm
    somewhere between #3 and #4. So sue me!!
    
    
    On Sep 28, 5:18 pm, Michael McDaniel <[EMAIL PROTECTED]> wrote:
    > I couldn't help myself when I read this message...
    > I just about busted out laughing.
    >
    > I had a similar feeling and even posted about it in my 
    > blog...http://www.mczen.com/blog/viewitem.aspx?id=573e5cfb-f714-4cf4-bc51-e6...
    > I feel his initial pain, but love is in the air.
    >
    > On Sep 27, 10:44 am, cmbtrx <[EMAIL PROTECTED]> wrote:
    >
    > > OK, forgive my tone here...I'm actually quite flabbergasted.
    >
    > > I ***FINALLY*** get around to trying out jquery.
    >
    > > Oh, I'm sure that quite obviously I'm doing something wrong, because
    > > after following the first few paragraphs of the "How JQuery Works"
    > > section (clicking a link launches an alert box...uh ok, no fine) it
    > > does absolutely nothing.
    >
    > > Wow.
    >
    > > So far the javascript skills required for testing this are sub-fetal
    > > so I can't imagine what black magic I might possibly have introduced
    > > into this 79Kb albatross.
    >
    > > No, OK, I won't condemn it yet, but can somebody enlighten me?
    >
    > > (I thought this would be easy.)
    
    
    

    [jQuery] Re: uhhh.......WAT?

    2007-09-30 Thread cmbtrx
    
    Point taken, but I knew that my original message was going to be
    terse, and I warned would-be readers of it! Mea culpa.
    
    But frustration in tackling a totally new lib like this one--and
    evidently getting *absolutely nowhere*--was more difficulty than I
    usually encounter (considering I still haven't deduced exactly what is
    wrong with my code!), so my choice of words was just reactive. I don't
    generally ask for help by acting the goat.
    
    And I'm sure I'm not alone in observing that no matter how nicely one
    can word one's message, there'll always be sour types like Mr Rob who
    will find some nonsense personal rationalization to insult the poster.
    
    Anyway, I sure am looking forward to using jQuery...and I already like
    the people in this mail list! :)
    
    
    On Sep 28, 1:53 pm, Christof Donat <[EMAIL PROTECTED]> wrote:
    > Hi,
    >
    > > This ass/troll/clueless individual thanks you for making this group
    > > forum now begin to sound like every other developer's resource on the
    > > web: well-intentioned but ultimately crippled by the bratty missives
    > > of a few self-important detractors.
    >
    > I don't whant to sound like i'd support Roberts view on how to handle people
    > new to jQuery, but you might whant to think about the language you chose.
    > Maybe that language is one of the reasons why you seem to get that kind of
    > answers from other mailinglists.
    >
    > Actually after I have read your original post I first decided not to answer at
    > all. I have changed my mind after the following discussion has convince me
    > that you are not a troll but are seriously trying to learn something about
    > jQuery.
    >
    > Usually on this mailinglist we have a very constructive, friendly and polite
    > communication. You can see that from the ansers you got. I hope, that in
    > future you and Robert will be members of the jQuery community. You see, noone
    > gets paied for answering your questions, so even if you are frustrated, hold
    > your breath and ask as politely as you can.
    >
    > On the other hand, Robert, even if someone may sound rude here, better don't
    > answer at all if your answer will be rude as well.
    >
    > Christof
    
    
    

    [jQuery] Re: Problems with $.post and $.ajax

    2007-09-30 Thread Oscar from Sweden
    
    Thank you for your answer and your time. I thought that the callback
    was only a "the post was successfull" and not any important things to
    do.
    I shall try your code right now !
    thx.
    
    
    

    [jQuery] Re: ANNOUNCE: jqUploader update

    2007-09-30 Thread Rey Bango
    
    
    Alexandre,
    
    Could you post a link to it?
    
    Rey..
    
    Alexandre Plennevaux wrote:
    
    hi friends,
     
    this is just to inform everyone that an update has been made to jqUploader:
     
    V 1.0.2.2: fixes flash prompt "A script in this movie is causing Adobe Flash Player 9 to run slowly...". 
     
    Moved to jquery 1.2.1
     
     
     
     
    Hope this is useful!
     
     
    Alexandre Plennevaux
    
    
    Ce message Envoi est certifié sans virus connu.
    Analyse effectuée par AVG.
    Version: 7.5.488 / Base de données virus: 269.13.35/1039 - Date: 29/09/2007 
    21:46
     
    
    
    
    
    

    [jQuery] using of several $(document).ready()

    2007-09-30 Thread james_027
    
    hi,
    
    Will there be any bad if in a page I have more than one $
    (document).ready()? The reason for this is because I have put make a
    *.js which contains the common things that should be done, then on
    some specific pages I have $(document).ready() again for special
    cases...
    
    Thanks
    james
    
    
    

    [jQuery] Interface Color picker issue

    2007-09-30 Thread Skilip
    
    Hi everybody,
    
    At the moment I'm writing a color- picker plugin for jQuery. For that
    I've used the color-picker written by the really smart developers from
    interface.eyecon.ro. But I am trying to make it backwards compatible,
    so when you change the values of the hex, or RGB input fields, the
    color and the color indicators changes automatically to their
    referring positions. I've come a long way, but it's not reliable
    enough.
    
    I'd really would like to get in contact with the developer of the
    color-picker, but there is no contact information at their website.
    
    Is there anybody who can get me in contact with the developer or has
    the brains (and some spare time) to review my code and tell me why it
    doesn't work properly?
    
    
    

    [jQuery] ANNOUNCE: jqUploader update

    2007-09-30 Thread Alexandre Plennevaux
    
    hi friends,
     
    this is just to inform everyone that an update has been made to jqUploader:
     
    V 1.0.2.2: fixes flash prompt "A script in this movie is causing Adobe Flash 
    Player 9 to run slowly...". 
     
    Moved to jquery 1.2.1
     
     
     
     
    Hope this is useful!
     
     
    Alexandre Plennevaux
    
    Ce message Envoi est certifié sans virus connu.
    Analyse effectuée par AVG.
    Version: 7.5.488 / Base de données virus: 269.13.35/1039 - Date: 29/09/2007 
    21:46
     
    
    
    

    [jQuery] Re: Jquery plugin embedding advice

    2007-09-30 Thread wattaka
    
    I have a total of 59 KB(plugins 17KB , Jquery 28KB, my js 14KB), I´ll
    look into GZIP compression, thanks!
    
    On Sep 30, 9:49 pm, "Glen Lipka" <[EMAIL PROTECTED]> wrote:
    > How big is it?  If it's less than 20k, then I would suggest using Gzip and
    > sending it as one file to be cached for all pages.
    >
    > Glen
    >
    > On 9/30/07, wattaka <[EMAIL PROTECTED]> wrote:
    >
    >
    >
    > > At the moment, I have one JS file with plugin configurations, user
    > > functions, variables an so on for the whole site even though they all
    > > wont be need on every page, would this slows down things? How do
    > > others handle this?
    >
    > > Thanks
    
    
    

    [jQuery] Re: Problems with $.post and $.ajax

    2007-09-30 Thread Jean
    
    or can use $_REQUEST ;D
    
    On 9/28/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
    >
    > > I'm trying to learn jQuery so I can use ajax much easier than writing
    > > ordinary javascripts. But it isn't working for me. Tried soo many
    > > different (and Very easy) things and they won't work. Can someone
    > > explain what I am doing wrong?
    >
    > > This is just a little testpage.
    > > custom.js:
    > > 
    > > $(document).ready(function() {
    > > $("a#go").click(function(){
    > >  $.post("test.php",{
    > >namn: $("#namn").val()
    > > (How is this
    > > variable set? to $_POST['namn'] or $namn?)
    > >  });
    > > return false;
    > > });
    > >
    > > });
    > >
    > > -
    > > test.php:
    > >
    > >  > echo "Hello,";
    > > echo $namn."!"; (have tried $_POST['namn'] too)
    > > ?>
    > > ---
    > > index.php file:
    > >
    > >  > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
    > > http://www.w3.org/1999/xhtml";>
    > > 
    > > 
    > > Untitled Document
    > > 
    > > 
    > > 
    > >
    > > 
    > >  Hej
    > >  
    > >  
    > > GO! 
    > > 
    > > 
    > >
    > > ---
    > >
    > > I would really appreciate if you helped me understand this. I have
    > > read soo many tutorials on the net but it won't work anyway...
    > > Best Regards /Oscar
    >
    > First of all if you send request by POST ($.post) then in PHP you var
    > will be in $_POST array, if by GET ($.get) in $_GET (there is an
    > exception, read about "register_globals"),
    > so in PHP you should use $_POST['namn']
    >
    > Second of all, your request imho runs well (you can check that with
    > Firebug (in NET tab)), but you forgot to put callback:
    >
    >$.post("test.php",{
    >  namn: $("#namn").val()}, function(data) { //this is callback
    >  alert(data); //do something with return data
    >  });
    >
    > and thats all! :)
    >
    > Hope it helps :)
    >
    > Regards
    > Michael
    >
    >
    
    
    -- 
    
    []´s Jean
    www.suissa.info
    
       Ethereal Agency
    www.etherealagency.com
    
    

    [jQuery] Re: Selection an option

    2007-09-30 Thread wattaka
    
    Glen saves the day again, thanks!
    
    On Sep 30, 9:47 pm, "Glen Lipka" <[EMAIL PROTECTED]> wrote:
    > You need to find the option, not the select.
    > var monthVar = from the server or wherever;
    > $("#intended_start_month option[value=" + monthVar + "]").attr("selected",
    > "selected");
    >
    > Glen
    >
    > On 9/30/07, voltron <[EMAIL PROTECTED]> wrote:
    >
    >
    >
    > > Hi all, how would  select an option and set its attribute to selected?
    > > I have this part already :
    >
    > > $("#intended_start_month").attr("selected", "selected");
    >
    > > This is the HTML, I want so make a particular month selected when the
    > > page loads
    >
    > > 
    > >   Januar
    > >  Februar
    > >  - and so on.
    >
    > > Thanks
    
    
    

    [jQuery] Re: Jquery plugin embedding advice

    2007-09-30 Thread Glen Lipka
    How big is it?  If it's less than 20k, then I would suggest using Gzip and
    sending it as one file to be cached for all pages.
    
    Glen
    
    On 9/30/07, wattaka <[EMAIL PROTECTED]> wrote:
    >
    >
    > At the moment, I have one JS file with plugin configurations, user
    > functions, variables an so on for the whole site even though they all
    > wont be need on every page, would this slows down things? How do
    > others handle this?
    >
    > Thanks
    >
    >
    
    

    [jQuery] Re: Selection an option

    2007-09-30 Thread Glen Lipka
    You need to find the option, not the select.
    var monthVar = from the server or wherever;
    $("#intended_start_month option[value=" + monthVar + "]").attr("selected",
    "selected");
    
    Glen
    
    
    
    On 9/30/07, voltron <[EMAIL PROTECTED]> wrote:
    >
    >
    > Hi all, how would  select an option and set its attribute to selected?
    > I have this part already :
    >
    > $("#intended_start_month").attr("selected", "selected");
    >
    >
    >
    > This is the HTML, I want so make a particular month selected when the
    > page loads
    >
    > 
    >   Januar
    >  Februar
    >  - and so on.
    >
    >
    > Thanks
    >
    >
    
    

    [jQuery] Jquery plugin embedding advice

    2007-09-30 Thread wattaka
    
    At the moment, I have one JS file with plugin configurations, user
    functions, variables an so on for the whole site even though they all
    wont be need on every page, would this slows down things? How do
    others handle this?
    
    Thanks
    
    
    

    [jQuery] Selecting an option and changing its attribute to selected

    2007-09-30 Thread voltron
    
    
    
    On Sep 30, 9:23 pm, voltron <[EMAIL PROTECTED]> wrote:
    > Hi all, how would  select an option and set its attribute to selected?
    > I have this part already :
    >
    >  $("#intended_start_month").attr("selected", "selected");
    >
    > This is the HTML, I want so make a particular month selected when the
    > page loads
    >
    > 
    >   Januar
    >  Februar
    >  - and so on.
    >
    > Thanks
    
    
    

    [jQuery] Re: Jquery Location.href or load --problem

    2007-09-30 Thread voltron
    
    Hi Wizzud, sorry for not providing enough information. I solved the
    problem. I had named the links otherwise in my template. Thanks!
    
    
    On Sep 30, 1:12 am, Wizzud <[EMAIL PROTECTED]> wrote:
    > Without a bit more information it is nigh on impossible to determine what
    > might - or might not - be happening.
    > Just saying "it doesn't work" is not particularly enlightening.
    >
    > Do you have a test page that is web-accessible?
    >
    > Some basics:
    > Does *anything* happen when the clickable element is clicked? If so, what?
    > Have you included the jquery script file? Successfully?
    > On your page(s), have you wrapped the snippets below in the document ready
    > function?
    > Does an element with the id of 'preview_button' exist on your page? And is
    > it (the id) unique within that page?
    > Is there any other HTML on the page that could interfere with the
    > aforementioned clickable element?
    > Is there any other jQuery javascript involved? If so, is that other script
    > working? And might it be preventing assignment of the click function?
    > Does the page you are trying to either load or call actually exist?
    >
    > What browser are you testing on? (And if it's not Firefox, with the Firebug
    > extension so you can step through and debug what's happening in your script
    >  why not!?)
    >
    >
    >
    > voltron-2 wrote:
    >
    > > Hi all, I would like to call up a page using location.href  or Ajax in
    > > the Jquery way, I ried this:
    >
    > >  $("#preview_button").click(function(){
    > >$("#main").load("/de/testsite/preview_profile");
    > >   });
    >
    > > and this
    >
    > >  $("#preview_button").click(function(){
    > >window.location.href("/de/testsite/preview_profile");
    > >   });
    >
    > > Strangely, both methods do not work, anyone tell me what I´m doing
    > > wrong?
    >
    > > Thanks
    >
    > --
    > View this message in 
    > context:http://www.nabble.com/Jquery-Location.href-or-load---problem-tf453853...
    > Sent from the jQuery General Discussion mailing list archive at Nabble.com.
    
    
    

    [jQuery] Selection an option

    2007-09-30 Thread voltron
    
    Hi all, how would  select an option and set its attribute to selected?
    I have this part already :
    
     $("#intended_start_month").attr("selected", "selected");
    
    
    
    This is the HTML, I want so make a particular month selected when the
    page loads
    
    
      Januar
     Februar
     - and so on.
    
    
    Thanks
    
    
    

    [jQuery] plugin found: gridlayouts

    2007-09-30 Thread rolfsf
    
    
    I just came across a jquery plugin called gridlayouts that I can't find
    listed or mentioned anywhere. If you're developing a page based on a grid
    layout (not to be confused with table layout) you can toggle the grid
    "guides" on and off to see how things are holding together. 
    
    http://gridlayouts.com/ http://gridlayouts.com/ 
    
    "The Grid Layout Javascript enables web-developers to stick to a Grid Layout
    quickly and simply by including the Grid Layouts Javascript file and simple
    XHTML code. Currently, the Grid Layouts Javascript relies on jQuery."
    ... 
    Once you've pasted this code into your webpage use CTRL+SHIFT+G, or if you
    are using Firefox on Windows, CTRL+ALT+G to toggle the grid."
    -- 
    View this message in context: 
    http://www.nabble.com/plugin-found%3A-gridlayouts-tf4544311s27240.html#a12968212
    Sent from the jQuery General Discussion mailing list archive at Nabble.com.
    
    
    

    [jQuery] LIST elemet dblclick() EVENT in OPERA

    2007-09-30 Thread tundrax
    
    
    
    
    
    $("my_select").dblclick() and $("my_select > option").dblclick()
    doesn't work in OPERA.
    
    Using latest jquery, Opera 9.02
    
    
    

    [jQuery] Re: Ignoring field within whole DIV

    2007-09-30 Thread Digital Spaghetti
    
    Sorry, I posted the wrong bit of code.  My .ajaxLoad code is:
    
    $pastemonkey('#content').not($pastemonkey('#PasteTags')
    [0]).ajaxStart(function(){
    $pastemonkey.blockUI();
    });
    
    On Sep 30, 4:57 pm, "Tane Piper" <[EMAIL PROTECTED]>
    wrote:
    > Hi there,
    >
    > I am running into a little problem, I cannot seem to get my code to
    > work to ignore 1 field inside a DIV.  I have a .ajaxLoad() on the div,
    > that fires block UI when the content of the DIV changes, however also
    > inside the DIV I have a field that has a autocomplete attached to it.
    > When I type in this field, it fires the .ajaxLoad() and the block UI.
    >
    > My code is below:
    >
    > $pastemonkey('#PasteTags').livequery(function(){
    > $pastemonkey(this).autocomplete('/tags/find/', {multiple: 
    > true,
    > matchContains: true});
    > });
    >
    > $pastemonkey is my own var for $ using .noConflict.  I've tried using
    > :not but couldn't get it to work.  Can anyone help?
    >
    > --
    > Tane Piperhttp://digitalspaghetti.me.uk
    >
    > This email is: [ ] blogable [ x ] ask first [ ] private
    
    
    

    [jQuery] Ignoring field within whole DIV

    2007-09-30 Thread Tane Piper
    
    Hi there,
    
    I am running into a little problem, I cannot seem to get my code to
    work to ignore 1 field inside a DIV.  I have a .ajaxLoad() on the div,
    that fires block UI when the content of the DIV changes, however also
    inside the DIV I have a field that has a autocomplete attached to it.
    When I type in this field, it fires the .ajaxLoad() and the block UI.
    
    My code is below:
    
    $pastemonkey('#PasteTags').livequery(function(){
    $pastemonkey(this).autocomplete('/tags/find/', {multiple: true,
    matchContains: true});
    });
    
    $pastemonkey is my own var for $ using .noConflict.  I've tried using
    :not but couldn't get it to work.  Can anyone help?
    
    -- 
    Tane Piper
    http://digitalspaghetti.me.uk
    
    This email is: [ ] blogable [ x ] ask first [ ] private
    
    

    [jQuery] Re: document.ready in an ajax response

    2007-09-30 Thread Arrix
    document.ready won't trigger anymore after the page has been loaded. See
    http://dev.jquery.com/ticket/904
    So avoid $(document).ready() in ajax response snippet.
    
    new function() {
    alert('Hi')
     }
    
    You are actually creating a new instance using an anonymous constructor. The
    constructor is invoked while evaluating the argument for ready().
    
    On 9/29/07, Curtis Spencer <[EMAIL PROTECTED]> wrote:
    >
    >
    > Hi,
    >
    > I have a page that makes an Ajax request that gets a a snippet of html
    > that includes the following tag:
    > 
    >   //   $j(document).ready(function() {
    >  alert('Hi')
    >   });
    >   //]]>
    > 
    >
    > Nothing happens in this case.  However, if i change the tag to this:
    > 
    >   //   $j(document).ready(new function() {
    >  alert('Hi')
    >   });
    >   //]]>
    > 
    >
    > The alert happens.  Can someone please illustrate the difference, and
    > why the first one doesn't work?  All the examples I see of $
    > (document).ready never has the new in front of function.  Also, is
    > this the right way to call jquery from an ajax response.  The parent
    > doesn't necessarily know what is going on in this child, so I can't
    > put it in the success handler of the ajax get call.
    >
    > Thanks,
    > Curtis
    >
    >
    
    
    -- 
    Arrix
    
    

    [jQuery] Re: jquery 1.2 unbind problem

    2007-09-30 Thread Arrix
    There is a conversation in the dev list about this problem. I've created a
    ticket according to the discussion. http://dev.jquery.com/ticket/1731
    Related tickets are #1697 ,
    #1618and
    #1610 .
    
    On 9/30/07, John Resig <[EMAIL PROTECTED]> wrote:
    >
    >
    > That's correct - there's a ticket open on it (the default handler
    > isn't released, for some reason). We haven't figured out if this only
    > occurs on the document or if it occurs on all elements yet - but for
    > now, it only seems to happen on the document.
    >
    > Here's the ticket:
    > http://dev.jquery.com/ticket/1610
    >
    > In the future, you should probably bring stuff like this up to the dev
    > list:
    > http://groups.google.com/group/jquery-dev
    >
    > Thanks!
    >
    > --John
    >
    > On 9/29/07, radoslaw wesolowski <[EMAIL PROTECTED]> wrote:
    > >
    > > Hello,
    > > I've probably found a strange bug in jQuery 1.2 and 1.2.1, which
    > > creates high CPU usage.
    > >
    > > To reproduce it just create site like this one:
    > >  
    > >   
    > >   
    > >   http://dev.iceburg.net/
    > > jquery/jqDnR/jqDnR.js">
    > >   
    > >   $(document).ready(function(){
    > >   $("#drawing").jqDrag();
    > >   });
    > >   
    > >   
    > >   
    > >
    > >> id="drawing"/>
    > >   
    > > 
    > >
    > > or visit http://rwesolowski.jogger.pl/files/test-1-2.html .
    > >
    > > Then drag and drop a few times the red box, and next just move mouse
    > > around the site and watch CPU usage (it's note a problem with jqDnR
    > > plugin, i've tested this with some others, and the result was the
    > > same). When jQuery 1.1.4 is used everything is OK (check
    > > http://rwesolowski.jogger.pl/files/test-1-1.html).
    > >
    > > According to the Firebug mousemove event is not released after
    > > dropping, and what's more on each  event jQuery calls extend() method.
    > >
    > > Radek
    > >
    > >
    >
    
    
    
    -- 
    Arrix