[jQuery] looking for a calendar plugin

2009-03-18 Thread macsig

Hello guys,
does anyone know a calendar plugin for jQuery like this one:
http://www.moonkiki.com/moonkiki/moogenda/#JSON

Thanks and have a nice day!


Sig


[jQuery] group validation error highlighting

2009-03-18 Thread anush

I have a form where I am validating IP address. I am using  4
different textboxes limiting the characters to 3 in each one of them.
I am checking the range from 0-255 for each of them using Validate
plugin.

Now to display a single error message instead of displaying an error
message for each of the boxes, I am using the errorPlacement function
and display it after the last field.

But suppose I correct any one of the fields , it validates that box
and the error message disappears. I used the unhighlight function to
keep the message but haven't been able to get the highlight function
working. Can anybody tell me how I could go about fixing it.



[jQuery] Re: jQuery.noConflict() and firefox 2: errors - is this a bug?

2009-03-18 Thread mcologne

if i put first jquery.js and then prototype, i don't need
jQuery.noConflict().

it works without.

i assume that  jQuery.noConflict() does not work properly.



On 18 Mrz., 01:51, James james.gp@gmail.com wrote:
 For jQuery.noConflict(), according 
 to:http://docs.jquery.com/Core/jQuery.noConflict

 NOTE: This function must be called after including the jQuery
 javascript file, but before including any other conflicting library,
 and also before actually that other conflicting library gets used, in
 case jQuery is included last. noConflict can be called at the end of
 the jQuery.js file to globally disable the $() jQuery alias.
 jQuery.noConflict returns a reference to jQuery, so it can be used to
 override the $() alias of the jQuery object.

 In other word, put your jQuery.noConflict(); before you include your
 prototype.js file.

 On Mar 17, 2:37 pm, Eric Garside gars...@gmail.com wrote:

  Do you have a link to an accessible site? It would help substantially
  in debugging the issue.

  On Mar 17, 2:50 pm, mcologne blueameri...@web.de wrote:

   the path is correct... it works with firefox 3... and:

   if i remove the prototype.js, it works with firefox 2 too...

   On 17 Mrz., 19:07, MorningZ morni...@gmail.com wrote:

That error would *have* to mean that the jQuery library is not
properly loaded (probably the wrong path/location to the jQuery file)

Use Firebug's Net panel to confirm that it is properly found/loaded

On Mar 17, 1:05 pm, mcologne blueameri...@web.de wrote:

 hi,

 i have problems using jQuery.noConflict() and firefox 2.

 my firefox version: pc firefox 2.0.0.20
 the same with mac firefox 2.0.0.4

 i'm using only the first example 
 fromhttp://docs.jquery.com/Using_jQuery_with_Other_Libraries

 it doesn't work, the following errors occur in firebug:

 Security error code: 1000
 jQuery(document).ready is not a function

 what shall i do?
 anybody an idea if this is a bug?

 best regards m

 code i use below

 !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN 
 http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
 html xmlns=http://www.w3.org/1999/xhtml;
 head
 meta http-equiv=Content-Type content=text/html; charset=utf-8 /
 titleUnbenanntes Dokument/title
 script src=http://www.prototypejs.org/javascripts/prototype.js;/
 script
    script src=../scripts/jquery/jquery-1.3.2.js/script
    script
      jQuery.noConflict();

      // Use jQuery via jQuery(...)
      jQuery(document).ready(function(){
        jQuery(div).hide();
      });

      // Use Prototype with $(...), etc.
      $('someid').hide();
    /script

 /head

 body
 /body
 /html


[jQuery] Re: looking for a calendar plugin

2009-03-18 Thread Geert Baven
have a look here http://wordpress.bustatheme.com/wp-smashing/and here  http:
www.bytecyclist.com

2009/3/18 macsig sigbac...@gmail.com


 Hello guys,
 does anyone know a calendar plugin for jQuery like this one:
 http://www.moonkiki.com/moonkiki/moogenda/#JSON

 Thanks and have a nice day!


 Sig




-- 

 strikingconcepts


www.strikingconcepts.nl
  webdesign
06 450 860 83
amsterdam - groningen


[jQuery] Cluetip, opening tip via code

2009-03-18 Thread batuj

Hi,

Does anyone have a clue about how to open the tipbox within the code,
I tried to meant without user clicking or activating anything when I
bind cluetip to a component, I do want the tip box to be open.

Thanks...


[jQuery] Re: Tabs dont work.

2009-03-18 Thread Spence

okey, but i thought the way to make the tabs hasnt changed?
Does anyone else have something i can try? maybe someone who has had
simular problems?


[jQuery] Using 1.3 this: [class!=whatever] doesn't work.

2009-03-18 Thread will

I'm working on a project at the moment and this [class!=whatever] has
stopped working.
In 1.2.6 I could use this fine, but in 1.3 it doesn't work.

For example, if I have two links:

a href=#Link/a

and

a href=# class=whateverLink/a

Using a click function like this:

$('a[class!=whatever]').click(function(){ //do something });

Doesn't work. The function wont fire on either.

Is this just a slip up or is it for an actual reason?

Cheers,
Will


[jQuery] Using jQuery to parse XML

2009-03-18 Thread Matt

EDIT: Sorry for the repost, I was tabbing through the page and
accidentally sent before I was done composing.

Hi all,
I've spent a long time trying to figure out why my code to pull
elements out of an XML file isn't working, to no avail. Here's the
code snippet I'm using, given an XMLHttpRequest named responseXML
which seems to be in fine shape (inspected using Safari 4 beta's
Inspect Element feature):

function extractBifData(responseXML, vorticityClass,
vorticityStrength)
{
var bifData = [];
$(responseXML).find('wave').each(function () // WTF
{
var wave = $(this);
var A = wave.attr('A');
alert('entered the function'); // for simple debugging
bifData.push([parseFloat(wave.attr('Q')), parseFloat(wave.attr
('amplitude'))]);
});
return bifData;
}

When this function gets called, it looks like the anonymous function
(with the WTF comment) isn't even getting called (ever) since I
never see an alert.
You can see the entire preliminary page over at 
http://math.brown.edu/~mjball/viewer/.
Steps to reproduce the error:
1. There's only 1 dropdown when you first load the page. Select exp
from it.
2. This should spawn another dropdown. If you select any item from
it, it spawns a Flot plot with no data in it (since the XML parsing
failed).
I know that I can plot data with Flot; you can see a small hardcoded
dataset I was testing with at line 135. The code snippet I pasted
above starts at line 16.

Thanks for the help in advance! Again, my apologies for the (partial)
repost.
Matt


[jQuery] How to use jquery RESTful for CRUD with standard Rails backend ?

2009-03-18 Thread Husky

I'm looking for an explanation/example, how jquery events on client
side, when you e.g. edit or create rows in a jqgrid, are put into
valid XHR-messages which can be directly consumed by a standard Rails
controller, modifying a backend database behind a model.

The application should behave exactly as if written with standard RoR
in terms of using CRUD and being RESTful, but having all the sexy
Ajaxian features which are available in jquery and plugins like
jqgrid.

I found only some very indepth discussions about modifying the xhr-
header, but no completly wired example including create/update.

Any RoR guy around who knows where to look ?

Peter


[jQuery] Using jQuery to parse XML

2009-03-18 Thread Matt

Hi all,
I've spent a long time trying to figure out why my code to pull
elements out of an XML file isn't working, to no avail. Here's the
code snippet I'm using, given an XMLHttpRequest named responseXML
which seems to be in fine shape (inspected using Safari 4 beta's
Inspect Element feature):

function extractBifData(responseXML, vorticityClass,
vorticityStrength)
{
var bifData = [];
$(responseXML).find('wave').each(function () // WTF
{
var wave = $(this);
var A = wave.attr('A');
alert('entered the function'); // for simple debugging
bifData.push([parseFloat(wave.attr('Q')), parseFloat(wave.attr
('amplitude'))]);
});
return bifData;
}

When this function gets called, it looks like the anonymous function
(with the WTF comment) isn't even getting called (ever) since I
never see an alert.
You can see the entire preliminary page over at 
http://math.brown.edu/~mjball/viewer/.
Steps to reproduce the error:
1. There's only 1 dropdown when you first load the page. Select exp
from it.
2. This should spawn another dropdown. If you select any item from
it, it spawns


[jQuery] NEED HELP!! JQuery XML not parsing/consuming properly

2009-03-18 Thread slgm

hi,

I've looked through at awfaul lot of posts/articles and haven't been
able to get this thing working. The xml and the jquery code is below.
The problem ive been getting is that despite the xml being
successfully load from the ajax call and despite the jquery loop
looping through the xml no actual values from the xml are actually
extracted from it. In Firefox you get the alert with caption in it
(and blank value) and then a series of the value alert boxes with no
value. In IE7 you get jsut the balnk caption alert and then it stops.

Thanks in advance for your help!

XML (W3C validator says its valid)

?xml version=1.0 encoding=ISO-8859-1?
grid
captionContent History/caption
head
row class=first-col
![CDATA[Content Name]]
/row
row class=
![CDATA[Date Enabled]]

/row
row class=col-thin
![CDATA[]]
/row
row class=text-bottom
![CDATA[09 02]]
/row
row
![CDATA[Payout %]]

/row
row class=col-thin
![CDATA[]]
/row
row
![CDATA[Date Removed]]
/row
/head
/grid

jQuery (jquery-1.3.2)

jQuery(document).ready(function() {
jQuery.get(http://localhost/crm/terminal-performance/grid/
term-
perf2/, function(xml) {
alert('caption: ' + jQuery(xml).find('caption').text
());

jQuery(xml).find('row').each(function(){
var rowValue = jQuery(this).text();
alert('value: ' + rowValue);
});
});


[jQuery] Re: Tablesorter update

2009-03-18 Thread tante inferno

great job!
maybe a bug: i dont manage to disable sorting for any of the headers.
neither by the header option, nor by adding the no-sorter class nor in
the default options. anybody with same problem, maybe solution?
any help would be greatly appreciated..
thanks

On 17 Feb., 16:49, soeren.kri...@googlemail.com
soeren.kri...@googlemail.com wrote:
 Hi,

 i have added some (for me) missing features to thetablesorterplugin:

 - optional ui theme support
 - locale support for additional date formats and decimal points
 -updatethe following parsers to support additional decimal points:
   digit, currency, percent
 -updatedate parser to support german dates
 -updatedate parser for short and medium dates

 You find the source and an example here:

 http://tablesorter.openwerk.dehttp://tablesorter.openwerk.de/script/jquery.tablesorter-update.js

 Best regards
 Sören Krings


[jQuery] Re: Validation and Facebox

2009-03-18 Thread byron

In case anyone else stumbles upon this, I will give my solution to the
problem (hours later, of course).

So the issue is that Facebox is using the clone() method to move the
DOM elements around in $.facebox.fillFaceboxFromHref.  Now a fix that
worked on some of my pages was to simply using the other form of the
clone() method - clone(true).  Giving the boolean true tells JQuery
to copy the event handlers as well as the DOM stuff.  Like I said,
this only worked on a couple of my pages.  The final solution I came
upon was to completely change how it sends the DOM element to the
reveal method of Facebox.  This involved changing the following
things:

$.extend($.facebox, {
settings: {
dom_data: null,
dom: null,
...
*add in the variables dom and dom_data in the main declaration of
facebox

if (href.match(/#/)) {
  var url= window.location.href.split('#')[0]
  var target = href.replace(url,'')
  $.facebox.settings.dom = target;
  $.facebox.settings.dom_data = $(target).children();
  $.facebox.reveal($(target).children().show(), klass)
...
*this is in fillFaceboxFromHref

finally,

$(document).bind('close.facebox', function() {
if($.facebox.settings.dom){
$($.facebox.settings.dom).append($.facebox.settings.dom_data);

$.facebox.settings.dom = null;
$.facebox.settings.dom_data = null;
}
...
* this is at the end of the file

The changes here are avoiding the cloning process entirely.  Instead
we are moving the elements to the Facebox and then moving them back
when we close the thing.  This seems to work.  It looks like it is a
little slower, or maybe it is just me.  Hopefully this helps someone.

On Feb 24, 1:57 pm, Bob O sngndn...@gmail.com wrote:
 Hello,
 Ive been using the Validation plugin on my site and it works
 fantastic. i have run into an issue with trying to get it to perform
 validation on a form that resides in a facebox.

 I setup the validation the same as any other form in the site. what
 could i be missing?


[jQuery] Re: Cluetip, opening tip via code

2009-03-18 Thread ryan.j

have a look at the hoverClass option

On Mar 18, 9:50 am, batuj batuh...@gmail.com wrote:
 Hi,

 Does anyone have a clue about how to open the tipbox within the code,
 I tried to meant without user clicking or activating anything when I
 bind cluetip to a component, I do want the tip box to be open.

 Thanks...


[jQuery] Re: Tabs dont work.

2009-03-18 Thread MorningZ

You thought incorrectly

as for getting help, there is a dedicated jQueryUI mailing list
(http://groups.google.com/group/jquery-ui?hl=enlnk=), you'll get more
focused help there

I took some time to try to get your tabs working yesterday, but the
HTML was too messy/overly complex... sorry


On Mar 18, 6:09 am, Spence espen...@gmail.com wrote:
 okey, but i thought the way to make the tabs hasnt changed?
 Does anyone else have something i can try? maybe someone who has had
 simular problems?


[jQuery] Re: Show div in div on mouseover

2009-03-18 Thread ryan.j

works in IE7  8, but yeah it won't work in 6 because the :hover
pseudo-class isn't supported on anything but anchors.

On Mar 13, 10:42 pm, ggnaba...@garent.com ggnaba...@garent.com
wrote:
 Doesn't work in IE

 On Mar 10, 7:35 pm, P pst...@gmail.com wrote:

  Ah... thats too easy. :)

  Thanks!

  On 10 Mar, 15:09, ryan.j ryan.joyce...@googlemail.com wrote:

   sorry, i forgot to add

   div.box div.links:hover { display:inline !important; }

   On Mar 10, 11:27 am, ryan.j ryan.joyce...@googlemail.com wrote:

div.box div.links { display:none; }
div.box:hover div.links { display:inline; }

On Mar 10, 9:13 am, P pst...@gmail.com wrote:

 I have multiple divs on my page in which contains another div with
 links. These links should be hidden by default but then displayed when
 the mouse is over the div.

 HTML-code:

 div class=box
 Lorem ipsum
 div class=linksa href=#Foo/a a href=#bar/a/div
 /div

 div class=box
 Lorem ipsum 2
 div class=linksa href=#Foo/a a href=#bar/a/div
 /div

 div class=box
 Lorem ipsum 3
 div class=linksa href=#Foo/a a href=#bar/a/div
 /div- Hide quoted text -

  - Show quoted text -


[jQuery] Re: Using 1.3 this: [class!=whatever] doesn't work.

2009-03-18 Thread T.J. Crowder

Hi,

Is there a != attribute operator?  I don't see it in either the CSS2
or CSS3 specs.[1][2]  So I'm thinking that since jQuery 1.3 completely
replaced the selector engine[3], there was a non-standard (but
useful!) extension to the syntax in v1.2 that didn't get carried
forward.

The good news is that the docs[4] for the new selector engine, Sizzle,
tell us it supports the :not pseudo-class, so you can use:

$('a:not(.whatever)').click(...);

...to get the same effect that (I assume, never having used v1.2) the !
= used to give you.

[1] http://www.w3.org/TR/CSS2/selector.html
[2] http://www.w3.org/TR/css3-selectors
[3] http://docs.jquery.com/Release:jQuery_1.3
[4] http://wiki.github.com/jeresig/sizzle

HTH,
--
T.J. Crowder
tj / crowder software / com
Independent Software Engineer, consulting services available

On Mar 18, 10:21 am, will mac.tas...@gmail.com wrote:
 I'm working on a project at the moment and this [class!=whatever] has
 stopped working.
 In 1.2.6 I could use this fine, but in 1.3 it doesn't work.

 For example, if I have two links:

 a href=#Link/a

 and

 a href=# class=whateverLink/a

 Using a click function like this:

 $('a[class!=whatever]').click(function(){ //do something });

 Doesn't work. The function wont fire on either.

 Is this just a slip up or is it for an actual reason?

 Cheers,
 Will


[jQuery] Re: $.getJSON isn't working while getting the JSON data from hidden field

2009-03-18 Thread Steven Yang
yes $.getJSON does do eval internally
so what your trying to accomplish is, trying to eval a string into
javascript object but u dont want to write eval() everywhere right?

or i misunderstood your question in anyway?


[jQuery] Re: Using 1.3 this: [class!=whatever] doesn't work.

2009-03-18 Thread T.J. Crowder

Hi again,

*blush* Those same docs tell us that != is also supported by Sizzle.
Note, though, that:

a[class!=whatever]

...is the same as

a:not([class=whatever])

...which is *not* the same as

a:not(.whatever)

...because of multiple class names.  Example:  With these links:

a id='a' href='#'one/a
a id='b' href='#' class='whatever'two/a
a id='c' href='#' class='whatever blarg'three/a
a id='d' href='#' class'blarg'one/a

a:not(.whatever) gives you a,d, but a[class!=whatever] and a:not
([class=whatever]) give you a,c,d.  c is on the list because its
value (whatever blarg) does not *exactly* match whatever.

Perhaps that relates to why your 1.2.6 code doesn't quite work in 1.3?

HTH, sorry for missing != support earlier.
--
T.J. Crowder
tj / crowder software / com
Independent Software Engineer, consulting services available


On Mar 18, 10:59 am, T.J. Crowder t...@crowdersoftware.com wrote:
 Hi,

 Is there a != attribute operator?  I don't see it in either the CSS2
 or CSS3 specs.[1][2]  So I'm thinking that since jQuery 1.3 completely
 replaced the selector engine[3], there was a non-standard (but
 useful!) extension to the syntax in v1.2 that didn't get carried
 forward.

 The good news is that the docs[4] for the new selector engine, Sizzle,
 tell us it supports the :not pseudo-class, so you can use:

 $('a:not(.whatever)').click(...);

 ...to get the same effect that (I assume, never having used v1.2) the !
 = used to give you.

 [1]http://www.w3.org/TR/CSS2/selector.html
 [2]http://www.w3.org/TR/css3-selectors
 [3]http://docs.jquery.com/Release:jQuery_1.3
 [4]http://wiki.github.com/jeresig/sizzle

 HTH,
 --
 T.J. Crowder
 tj / crowder software / com
 Independent Software Engineer, consulting services available

 On Mar 18, 10:21 am, will mac.tas...@gmail.com wrote:

  I'm working on a project at the moment and this [class!=whatever] has
  stopped working.
  In 1.2.6 I could use this fine, but in 1.3 it doesn't work.

  For example, if I have two links:

  a href=#Link/a

  and

  a href=# class=whateverLink/a

  Using a click function like this:

  $('a[class!=whatever]').click(function(){ //do something });

  Doesn't work. The function wont fire on either.

  Is this just a slip up or is it for an actual reason?

  Cheers,
  Will




[jQuery] Re: Cluetip, opening tip via code

2009-03-18 Thread batuj

I couldn't manage to get anything with : hoverClass: 'highlight'
option.

thanks anyway..

any other ideas?

On Mar 18, 12:52 pm, ryan.j ryan.joyce...@googlemail.com wrote:
 have a look at the hoverClass option

 On Mar 18, 9:50 am, batuj batuh...@gmail.com wrote:

  Hi,

  Does anyone have a clue about how to open the tipbox within the code,
  I tried to meant without user clicking or activating anything when I
  bind cluetip to a component, I do want the tip box to be open.

  Thanks...


[jQuery] Re: Add option to combo

2009-03-18 Thread lucas

Thanks Paul!



[jQuery] Re: Using 1.3 this: [class!=whatever] doesn't work.

2009-03-18 Thread will

Hi,
Using :not() worked great.
Cheers
Will

On Mar 18, 11:09 am, T.J. Crowder t...@crowdersoftware.com wrote:
 Hi again,

 *blush* Those same docs tell us that != is also supported by Sizzle.
 Note, though, that:

     a[class!=whatever]

 ...is the same as

     a:not([class=whatever])

 ...which is *not* the same as

     a:not(.whatever)

 ...because of multiple class names.  Example:  With these links:

 a id='a' href='#'one/a
 a id='b' href='#' class='whatever'two/a
 a id='c' href='#' class='whatever blarg'three/a
 a id='d' href='#' class'blarg'one/a

 a:not(.whatever) gives you a,d, but a[class!=whatever] and a:not
 ([class=whatever]) give you a,c,d.  c is on the list because its
 value (whatever blarg) does not *exactly* match whatever.

 Perhaps that relates to why your 1.2.6 code doesn't quite work in 1.3?

 HTH, sorry for missing != support earlier.
 --
 T.J. Crowder
 tj / crowder software / com
 Independent Software Engineer, consulting services available

 On Mar 18, 10:59 am, T.J. Crowder t...@crowdersoftware.com wrote:

  Hi,

  Is there a != attribute operator?  I don't see it in either the CSS2
  or CSS3 specs.[1][2]  So I'm thinking that since jQuery 1.3 completely
  replaced the selector engine[3], there was a non-standard (but
  useful!) extension to the syntax in v1.2 that didn't get carried
  forward.

  The good news is that the docs[4] for the new selector engine, Sizzle,
  tell us it supports the :not pseudo-class, so you can use:

  $('a:not(.whatever)').click(...);

  ...to get the same effect that (I assume, never having used v1.2) the !
  = used to give you.

  [1]http://www.w3.org/TR/CSS2/selector.html
  [2]http://www.w3.org/TR/css3-selectors
  [3]http://docs.jquery.com/Release:jQuery_1.3
  [4]http://wiki.github.com/jeresig/sizzle

  HTH,
  --
  T.J. Crowder
  tj / crowder software / com
  Independent Software Engineer, consulting services available

  On Mar 18, 10:21 am, will mac.tas...@gmail.com wrote:

   I'm working on a project at the moment and this [class!=whatever] has
   stopped working.
   In 1.2.6 I could use this fine, but in 1.3 it doesn't work.

   For example, if I have two links:

   a href=#Link/a

   and

   a href=# class=whateverLink/a

   Using a click function like this:

   $('a[class!=whatever]').click(function(){ //do something });

   Doesn't work. The function wont fire on either.

   Is this just a slip up or is it for an actual reason?

   Cheers,
   Will


[jQuery] jquery website broken?

2009-03-18 Thread iain.wa...@googlemail.com

Hi,

I really want to start using jquery in some places to replace
mootools, however i find it extremely difficult to persuade clients to
go with jquery when the jquery website at http://docs.jquery.com/Main_Page
is completely broken in IE7. Is there any reason for this?


[jQuery] draggable/droppable pick some

2009-03-18 Thread CTek

I'm having a headache because I'm trying to make an on-line test.
The graphics department wanted to make it all flash, but I said jQuery
would do the trick, so please help me prove them wrong.

I have a question, with six options, represented as six draggables.
I expect three answers, represented as three droppables.

The user is supposed to drag three draggables into the three
droppables, and then click a button to check answers.

What I want is for the draggable to be placed in the middle of the
droppable when dropped.

I also want the draggable to return to its original position when (if)
another draggable is dropped in the same droppable. It'd also be nice
if I could drop the draggable outside the droppables and have it
returned to its original position.

I also need to know which draggables are currently dropped, so I can
check if the answer is correct. That's not a problem yet, but I'm
afraid it will be.


[jQuery] Re: jquery website broken?

2009-03-18 Thread MorningZ

What do you see as broken?

the page looks and operates fine for me in IE7   (Windows Server 2008
and IE7)

On Mar 18, 9:11 am, iain.wa...@googlemail.com
iain.wa...@googlemail.com wrote:
 Hi,

 I really want to start using jquery in some places to replace
 mootools, however i find it extremely difficult to persuade clients to
 go with jquery when the jquery website athttp://docs.jquery.com/Main_Page
 is completely broken in IE7. Is there any reason for this?


[jQuery] Re: jquery website broken?

2009-03-18 Thread Karl Swedberg
Looks fine to me, too. Can you be more specific about what looks  
broken? Or provide a screenshot or something?


thanks,

--Karl


Karl Swedberg
www.englishrules.com
www.learningjquery.com




On Mar 18, 2009, at 9:21 AM, MorningZ wrote:



What do you see as broken?

the page looks and operates fine for me in IE7   (Windows Server 2008
and IE7)

On Mar 18, 9:11 am, iain.wa...@googlemail.com
iain.wa...@googlemail.com wrote:

Hi,

I really want to start using jquery in some places to replace
mootools, however i find it extremely difficult to persuade clients  
to

go with jquery when the jquery website athttp://docs.jquery.com/Main_Page
is completely broken in IE7. Is there any reason for this?




[jQuery] Re: jquery website broken?

2009-03-18 Thread iain.wa...@googlemail.com

Hmm that is odd...You can see a screenshot of how its appearing on XP/
IE7 for me at http://www.kre8webdesign.com/tmp/jquery.gif , though it
initialy renders correctly, as you can see from screenshot the white
background boxes then appear to lose their height :/

On Mar 18, 1:28 pm, Karl Swedberg k...@englishrules.com wrote:
 Looks fine to me, too. Can you be more specific about what looks  
 broken? Or provide a screenshot or something?

 thanks,

 --Karl

 
 Karl Swedbergwww.englishrules.comwww.learningjquery.com

 On Mar 18, 2009, at 9:21 AM, MorningZ wrote:





  What do you see as broken?

  the page looks and operates fine for me in IE7   (Windows Server 2008
  and IE7)

  On Mar 18, 9:11 am, iain.wa...@googlemail.com
  iain.wa...@googlemail.com wrote:
  Hi,

  I really want to start using jquery in some places to replace
  mootools, however i find it extremely difficult to persuade clients  
  to
  go with jquery when the jquery website athttp://docs.jquery.com/Main_Page
  is completely broken in IE7. Is there any reason for this?- Hide quoted 
  text -

 - Show quoted text -


[jQuery] Re: show hide random rows

2009-03-18 Thread Sean O


Bob,


Try this:
http://jsbin.com/esoba

Code:
http://jsbin.com/esoba/edit

It shouldn't matter how YUI is IDing your table rows, as you can pluck them
out by index.

HTH,
SEAN O
http://www.sean-o.com
http://twitter.com/seanodotcom



Bob O-2 wrote:
 
 
 I was wondering if anyone could point me to a tutorial or blog where i
 can accomplish this task.
 
 Basically i have a YUI datatable and i want to use jQuery to hide all
 but a user generated number of rows that are random selected
 
 so if i had 50 records in the table and the user input 10 in a text
 field and hit a button..
 
 10 random records would be left displayed and the other 40 would be
 hidden..
 
 
 

-- 
View this message in context: 
http://www.nabble.com/show-hide-random-rows-tp22570300s27240p22579151.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: Can a dialog not show an alert message?

2009-03-18 Thread delphilynx

Anyone any comment about this issue?

Thanks in advance!


[jQuery] Re: Cluetip, opening tip via code

2009-03-18 Thread Karl Swedberg

You could trigger the activation event. Something like this, maybe:

$('#mytip').cluetip({activation: 'click'});

And then later, when you want to show it:

$('#mytip').triggerHandler('click');

Or if you don't have activation: 'click', you could just do this:

$('#mytip').trigger('mouseover')


Hope that helps.


--Karl


Karl Swedberg
www.englishrules.com
www.learningjquery.com




On Mar 18, 2009, at 7:26 AM, batuj wrote:



I couldn't manage to get anything with : hoverClass: 'highlight'
option.

thanks anyway..

any other ideas?

On Mar 18, 12:52 pm, ryan.j ryan.joyce...@googlemail.com wrote:

have a look at the hoverClass option

On Mar 18, 9:50 am, batuj batuh...@gmail.com wrote:


Hi,


Does anyone have a clue about how to open the tipbox within the  
code,

I tried to meant without user clicking or activating anything when I
bind cluetip to a component, I do want the tip box to be open.



Thanks...




[jQuery] Re: where to load init function with google?

2009-03-18 Thread Milan Andric

So all of the javascript code should go at the end of the html doc,
right before closing /body tag? I thought it should go in the
header.

Sorry for the ignorance,

--
Milan

On Mar 17, 8:22 pm, mkmanning michaell...@gmail.com wrote:
 You don't need the callback, but you can call it with:
 google.setOnLoadCallback(init);

 The domready wrapper is still a good idea though, depending upon where
 your scripts are--at the close of the body we hope :)

 On Mar 17, 2:52 pm, Milan Andric mand...@gmail.com wrote:

  Hello, I was just adding a dropdown menu to my site using droppy.

 http://plugins.jquery.com/project/droppy

  And I also use google jdev with google.load('jquery',...).

  Droppy requires a bit of code to initialize the dropdown:

          $(document).ready(function() {
            $('#nav').droppy();
          });

  Now where should that code go when I'm using google.load() ... this is
  the solution I came up with:

  ...
      script language=Javascript type=text/javascript
          google.load(jquery, 1.3.1);
      /script
      script src=/media/js/jquery.droppy.js type=text/javascript/
  script
      script language=Javascript type=text/javascript
          $(document).ready(function() {
            $('#nav').droppy();
          });
      /script
  ...

  Is this perfectly normal?  Seems like since I'm doing google.load() I
  should have a callback or something.

  Just wondering ... thanks!

  --
  Milan




[jQuery] Re: Ajax - Reload only affected record

2009-03-18 Thread Thiago Vian
Ok. Thats is my code:
  /
READ
//


 $(document).ready(function(){
var $send= $(#send);
var $loading = $(#loading);
var $content = $(#content);
 function readRecords(){
$content.hide();
$loading.fadeIn(slow);
$.ajax({
type: POST, url: action.php, data: action=read,
complete: function(data){
$loading.fadeOut(slow);
$content.html(data.responseText);
$content.fadeIn(slow);
delete_field();
}
});
}

readRecords();
  /
CREATE
//

$('#send').bind('click', function(){
var params = $(#form).serialize();
$.ajax({
type: POST,
url: action.php,
data: action=insert + params,
 beforeSend: function(){
$loading.show();
$send.attr({ disabled:true, value:Inserting... });
$send.blur();
 },
 success: function(txt){
$('#message').html(txt)
$loading.hide();
document.getElementById('form').reset();
$send.attr({ disabled:false, value:Insert });
readRecords();
 }
 });
});


});




Look, after inset in database I call again the function readRecords, and
reload all data.
But a want reload only affected data.

Thanks for your help.



On Tue, Mar 17, 2009 at 7:52 PM, James james.gp@gmail.com wrote:


 We can help, but without showing us any code it's difficult to do so.

 On Mar 17, 9:29 am, Thiago tvia...@gmail.com wrote:
  I add, edit, read and delete records via ajax.
  Is working correctly.
  Only it is not optimized, every time I do some action script reads all
  my records again.
  I wish only the record that action has to be recharged.
 
  Can you help?



[jQuery] Re: Find element. How can I do this?

2009-03-18 Thread shapper

Please, anyone?

Thank You,
Miguel

On Mar 17, 9:46 pm, shapper mdmo...@gmail.com wrote:
 Yes,

 I tried that before but it did not work this is why I asked.

 I placed an example online:http://www.27lamps.com/Beta/Collapse/Form.html

 You can see that each form's fieldset has an ordered list inside.
 I want to show/hide the OL instead of adding it to a new div.

 Could someone, please, help me with this?

 Thanks,
 Miguel

 On Mar 17, 6:01 pm, ricardobeat ricardob...@gmail.com wrote:

  Try this:

  var body = fieldset.find('ol:first')

 http://docs.jquery.com/Selectors

  On Mar 17, 12:13 pm, shapper mdmo...@gmail.com wrote:

   Hello,

   I am trying to find update a plugin to create new functionality.
   On the current version I have the following:

       var legend = fieldset.find(':first');
       var body = jQuery(document.createElement('div'));

   - How can I get the first OL element inside fieldset to use it as body
   instead of creating a new element (the div as it is currently?

   - And can I set which element should be searched (ol, ul, div, etc)
   inside the fieldset?

   Thank you,
   Miguel


[jQuery] Re: Big problem with IE

2009-03-18 Thread weidc

hi,

at firefox i can see that all li's get margin-left and margin-right
5em. what if you remove that? or if you give them margin:0 ?
it doesn't change something in firefox but it seems to be width which
is wrong in ie.

On 17 Mrz., 23:55, 3dmagicaldesigns 3dmagicaldesi...@gmail.com
wrote:
 I have installed this great menu on a shopping cart development that I
 am doing but I have a problem with Internet explorer, the text moves
 to the right, I have uploaded two picture samples

 The site can be analyzed online here:

 http://www.vitwebdevelopments.com/onlineshoppingcyprus/products.php?c...

 #1 with firefox ( it looks perfect) #2 with IE, the  text moves to the
 right

 http://www.3dmagicaldesigns.com/3dmd_webdesign/customers/drop_down_me...

 Please help!!! I feel stucked. How can I solve this problem


[jQuery] Re: Find element. How can I do this?

2009-03-18 Thread AnatolyG

$(fieldset ol:eq(0)).hide()

shapper wrote:
 Hello,

 I am trying to find update a plugin to create new functionality.
 On the current version I have the following:

 var legend = fieldset.find(':first');
 var body = jQuery(document.createElement('div'));

 - How can I get the first OL element inside fieldset to use it as body
 instead of creating a new element (the div as it is currently?

 - And can I set which element should be searched (ol, ul, div, etc)
 inside the fieldset?

 Thank you,
 Miguel


[jQuery] Re: NEED HELP!! JQuery XML not parsing/consuming properly

2009-03-18 Thread AnatolyG

hey,

http://groups.google.com/group/jquery-en/browse_thread/thread/f6cf0516dacdab18

$(xml).find('row').each(function(index, obj){
  document.write($(obj).html() + br/);
});

this would work w/ out the CDATA.

On Mar 18, 3:27 pm, slgm stephen.llewel...@games-media.com wrote:
 hi,

 I've looked through at awfaul lot of posts/articles and haven't been
 able to get this thing working. The xml and the jquery code is below.
 The problem ive been getting is that despite the xml being
 successfully load from the ajax call and despite the jquery loop
 looping through the xml no actual values from the xml are actually
 extracted from it. In Firefox you get the alert with caption in it
 (and blank value) and then a series of the value alert boxes with no
 value. In IE7 you get jsut the balnk caption alert and then it stops.

 Thanks in advance for your help!

 XML (W3C validator says its valid)

 ?xml version=1.0 encoding=ISO-8859-1?
 grid
         captionContent History/caption
         head
                 row class=first-col
                         ![CDATA[Content Name]]
                 /row
                 row class=
                         ![CDATA[Date Enabled]]

                 /row
                 row class=col-thin
                         ![CDATA[]]
                 /row
                 row class=text-bottom
                         ![CDATA[09 02]]
                 /row
                 row
                         ![CDATA[Payout %]]

                 /row
                 row class=col-thin
                         ![CDATA[]]
                 /row
                 row
                         ![CDATA[Date Removed]]
                 /row
         /head
 /grid

 jQuery (jquery-1.3.2)

 jQuery(document).ready(function() {
         jQuery.get(http://localhost/crm/terminal-performance/grid/
 term-
 perf2/, function(xml) {
                 alert('caption: ' + jQuery(xml).find('caption').text
 ());

                 jQuery(xml).find('row').each(function(){
                         var rowValue = jQuery(this).text();
                         alert('value: ' + rowValue);
                 });
         });


[jQuery] AutoComplete

2009-03-18 Thread Bright Dadson
Hi Experts,

I have this autocomplete script;

$(#operator).autocomplete(bright/auto.php,
{
delay:10,
lineSeparator: ^,
cacheLength: 10,
matchSubset:1,
matchContains:1,
formatItem: formatItem,
autoFill: false
}).result(function(a,data,c) {
});

Which works perfect. My question is i want to be able to display a DIV if
the result for autocomplete is null.

Do anyone know how to go about this?

B


[jQuery] Re: Cycle Plugin Pager with Images

2009-03-18 Thread jethom2


Thanks for the help. 

I am having another problem though. I'm trying to run a script to do a
fadeIn on the images that are cycling in, but I can't get it to restart by
cycling with the pager. It will start if it cycles by timing of if you wait
long enough then use the pager. 

I've tried various combinations of this code: 

$('li').click(fade);


but I've had no luck.

Any ideas?

And thanks again for the help.



malsup wrote:
 
 
                 pagerAnchorBuilder: function(idx, slide) {
                         return 'li #  ' + slide.src + '  /li'; }
                 })
                 ;

 particularly the part where it calls back in the slide.src . I want to
 have it call back a different part of the slide area. Also I'm not sure
 what
 part I want to call. What i have for the whole image set that rotates is
 this:
 
 pagerAnchorBuilder gives you the slide element.  If you want to find
 the image within that slide just use the slide as context on a query:
 
 pagerAnchorBuilder: function(idx, slide) {
 var src = $('img',slide).attr('src');
 return 'li #  ' + src + '  /li'; }
 }
 
 

-- 
View this message in context: 
http://www.nabble.com/Cycle-Plugin-Pager-with-Images-tp22560095s27240p22579680.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: show hide random rows

2009-03-18 Thread Scott Sauyet


Bob O wrote:

Basically i have a YUI datatable and i want to use jQuery to hide all
but a user generated number of rows that are random selected


Something like this might be what you're looking for:

http://jsbin.com/ozafa/edit

The important part is this:

var $rows = $(#myTable tbody tr);
$(form).submit(function() {
var count = parseInt($(#count).val());
var chosen = 0;
var total = $rows.length;
$rows.each(function(index) {
if (Math.random()  (count - chosen) / (total - index)) {
$(this).fadeIn(slow);
chosen++;
} else {
$(this).fadeOut(slow);
}
});
return false;
});

This is different from the previous suggestion, which kept randomly 
picking rows and if they weren't already chosen, added them to the list. 
 This solution iterates through the rows, updating the probability of 
each one being chosen according to how many have already been chosen and 
how many we still want to choose.  It might be a bit less efficient for 
10 out of 50, but would probably be much more efficient at 40 out of 50, 
and it is entirely predictable, in that it run exactly one random call 
for each row in the table.


Cheers,

  -- Scott


[jQuery] Re: $('.edlBoxArea').corners is not a function

2009-03-18 Thread boy_named_Goo

Problem solved.  It turns out that the jquery.js file was being
referenced more than once overall (in a pretty large collection of
inter-related dynamic pages).

In one dynamic page there was this:

script type=text/javascript src=./scripts/jquery.js/script
script type=text/javascript src=./scripts/jquery.corners.js/
script

Then in another one there was this:

script type=text/javascript src=./scripts/jquery.js/script

After I re-organized so that jquery.js was referenced only once, then
the problem went away.


[jQuery] embedded elements and document.ready

2009-03-18 Thread redcom

Hello

I have a question:

Is there a way to know if a custom plugin is ready to work with?

I have a inhouse build of a video player , don't have the load event
or any other type of event.

i use in html:  embed id='VideoWin1' class='videoWin'
type='application/mozilla-npwindow-plugin' width='150' height='150' /

 and in a .js file i added $(document).ready( functions);

this functions contain some logic but sometime when i load the file
the video is embed element is not display or can not work with it
since was not fully loaded.


How can i execute a function after the embed element was loaded or the
document is fully workable?




[jQuery] Re: draggable/droppable pick some

2009-03-18 Thread Richard D. Worth
This should get you started:

http://jsbin.com/ixeca

- Richard

On Wed, Mar 18, 2009 at 7:38 AM, CTek stefan.bergfe...@ctek.se wrote:


 I'm having a headache because I'm trying to make an on-line test.
 The graphics department wanted to make it all flash, but I said jQuery
 would do the trick, so please help me prove them wrong.

 I have a question, with six options, represented as six draggables.
 I expect three answers, represented as three droppables.

 The user is supposed to drag three draggables into the three
 droppables, and then click a button to check answers.

 What I want is for the draggable to be placed in the middle of the
 droppable when dropped.

 I also want the draggable to return to its original position when (if)
 another draggable is dropped in the same droppable. It'd also be nice
 if I could drop the draggable outside the droppables and have it
 returned to its original position.

 I also need to know which draggables are currently dropped, so I can
 check if the answer is correct. That's not a problem yet, but I'm
 afraid it will be.



[jQuery] Re: embedded elements and document.ready

2009-03-18 Thread Martijn Houtman


On Mar 18, 2009, at 4:11 PM, redcom wrote:


How can i execute a function after the embed element was loaded or the
document is fully workable?


What I usually do with Flash applets is have them do a call to  
JavaScript whenever they are ready, and let JS handle the rest. I am  
not sure, but I don't think there are any other events generated from  
the embed/object you can listen to.


Regards,
--
Martijn.

[jQuery] Re: jquery website broken?

2009-03-18 Thread Karl Swedberg
very odd. I remember one other person having a problem with the site a  
while back. I think he was using a Polish version of IE7, but when he  
switched it or updated it or something, it started rendering just  
fine. Sorry, my memory is a little fuzzy on that.


I wish there were something I could do, but I'm sort of stuck unless I  
can replicate the problem on my machine.



--Karl


Karl Swedberg
www.englishrules.com
www.learningjquery.com




On Mar 18, 2009, at 9:36 AM, iain.wa...@googlemail.com wrote:



Hmm that is odd...You can see a screenshot of how its appearing on XP/
IE7 for me at http://www.kre8webdesign.com/tmp/jquery.gif , though it
initialy renders correctly, as you can see from screenshot the white
background boxes then appear to lose their height :/

On Mar 18, 1:28 pm, Karl Swedberg k...@englishrules.com wrote:

Looks fine to me, too. Can you be more specific about what looks
broken? Or provide a screenshot or something?

thanks,

--Karl


Karl Swedbergwww.englishrules.comwww.learningjquery.com

On Mar 18, 2009, at 9:21 AM, MorningZ wrote:






What do you see as broken?


the page looks and operates fine for me in IE7   (Windows Server  
2008

and IE7)



On Mar 18, 9:11 am, iain.wa...@googlemail.com
iain.wa...@googlemail.com wrote:

Hi,



I really want to start using jquery in some places to replace
mootools, however i find it extremely difficult to persuade clients
to
go with jquery when the jquery website athttp://docs.jquery.com/Main_Page
is completely broken in IE7. Is there any reason for this?- Hide  
quoted text -


- Show quoted text -




[jQuery] jquery validation on one field or another

2009-03-18 Thread paulswansea

Hi,
I have a form with multiple fields, including one for a telephone
number and one for an email address, i need the contact to enter in at
least one of the above in the form to make it valid, how do i do an
either/or check within a jquery validation form?


[jQuery] Re: where to load init function with google?

2009-03-18 Thread MorningZ

There's no reason why script can't go in the header..

Related to your original question, do you feel anything is gained by
using

script language=Javascript type=text/javascript
 google.load(jquery, 1.3.1);
/script

over

script type=text/javascript src=http://ajax.googleapis.com/ajax/
libs/jquery/1.3.2/jquery.js/script

seems like the second version is one less thing to have to run or
break


On Mar 18, 9:46 am, Milan Andric mand...@gmail.com wrote:
 So all of the javascript code should go at the end of the html doc,
 right before closing /body tag? I thought it should go in the
 header.

 Sorry for the ignorance,

 --
 Milan

 On Mar 17, 8:22 pm, mkmanning michaell...@gmail.com wrote:

  You don't need the callback, but you can call it with:
  google.setOnLoadCallback(init);

  The domready wrapper is still a good idea though, depending upon where
  your scripts are--at the close of the body we hope :)

  On Mar 17, 2:52 pm, Milan Andric mand...@gmail.com wrote:

   Hello, I was just adding a dropdown menu to my site using droppy.

  http://plugins.jquery.com/project/droppy

   And I also use google jdev with google.load('jquery',...).

   Droppy requires a bit of code to initialize the dropdown:

           $(document).ready(function() {
             $('#nav').droppy();
           });

   Now where should that code go when I'm using google.load() ... this is
   the solution I came up with:

   ...
       script language=Javascript type=text/javascript
           google.load(jquery, 1.3.1);
       /script
       script src=/media/js/jquery.droppy.js type=text/javascript/
   script
       script language=Javascript type=text/javascript
           $(document).ready(function() {
             $('#nav').droppy();
           });
       /script
   ...

   Is this perfectly normal?  Seems like since I'm doing google.load() I
   should have a callback or something.

   Just wondering ... thanks!

   --
   Milan


[jQuery] Re: Find element. How can I do this?

2009-03-18 Thread shapper

Sorry, I don't understand what your mean.

Please, check the code I am using in:
http://www.27lamps.com/Beta/Collapse/JQuery.Collapsible-1.0.js

The change I am trying to do is in the following lines:
var legend = fieldset.find(':first');
var body = jQuery(document.createElement('div'));
//var body = fieldset.find('ol:first')

On Mar 18, 2:12 pm, AnatolyG anat...@geyfman.net wrote:
 $(fieldset ol:eq(0)).hide()

 shapper wrote:
  Hello,

  I am trying to find update a plugin to create new functionality.
  On the current version I have the following:

      var legend = fieldset.find(':first');
      var body = jQuery(document.createElement('div'));

  - How can I get the first OL element inside fieldset to use it as body
  instead of creating a new element (the div as it is currently?

  - And can I set which element should be searched (ol, ul, div, etc)
  inside the fieldset?

  Thank you,
  Miguel


[jQuery] Re: jquery website broken?

2009-03-18 Thread donb

It's always had that problem since the new site was created.  There
are floats not being cleared someplace in there.  For what it's worth
it's not a reflection on jQuery, but on the package being used to run
the site (Wordpress, perhaps?).

On Mar 18, 11:26 am, Karl Swedberg k...@englishrules.com wrote:
 very odd. I remember one other person having a problem with the site a  
 while back. I think he was using a Polish version of IE7, but when he  
 switched it or updated it or something, it started rendering just  
 fine. Sorry, my memory is a little fuzzy on that.

 I wish there were something I could do, but I'm sort of stuck unless I  
 can replicate the problem on my machine.

 --Karl

 
 Karl Swedbergwww.englishrules.comwww.learningjquery.com

 On Mar 18, 2009, at 9:36 AM, iain.wa...@googlemail.com wrote:



  Hmm that is odd...You can see a screenshot of how its appearing on XP/
  IE7 for me athttp://www.kre8webdesign.com/tmp/jquery.gif, though it
  initialy renders correctly, as you can see from screenshot the white
  background boxes then appear to lose their height :/

  On Mar 18, 1:28 pm, Karl Swedberg k...@englishrules.com wrote:
  Looks fine to me, too. Can you be more specific about what looks
  broken? Or provide a screenshot or something?

  thanks,

  --Karl

  
  Karl Swedbergwww.englishrules.comwww.learningjquery.com

  On Mar 18, 2009, at 9:21 AM, MorningZ wrote:

  What do you see as broken?

  the page looks and operates fine for me in IE7   (Windows Server  
  2008
  and IE7)

  On Mar 18, 9:11 am, iain.wa...@googlemail.com
  iain.wa...@googlemail.com wrote:
  Hi,

  I really want to start using jquery in some places to replace
  mootools, however i find it extremely difficult to persuade clients
  to
  go with jquery when the jquery website athttp://docs.jquery.com/Main_Page
  is completely broken in IE7. Is there any reason for this?- Hide  
  quoted text -

  - Show quoted text -


[jQuery] Re: where to load init function with google?

2009-03-18 Thread mkmanning

There's actually good reasons why scripts *shouldn't* go in the
header:

http://developer.yahoo.com/performance/rules.html#js_bottom

Current best practice is to follow unobtrusive DOM scripting, using
progressive enhancement. This means separating your scripting into a
behavioural layer, just as you separate structure (XHTML) from
presentation (CSS). As behavior is ideally layered on top of
structure, positioning your scripts so that they don't block page load
(at the bottom of the page), and executing them ondomready, and not
writing inline events, are all considered examples of best practices
at this point in web development.

On Mar 18, 8:38 am, MorningZ morni...@gmail.com wrote:
 There's no reason why script can't go in the header..

 Related to your original question, do you feel anything is gained by
 using

 script language=Javascript type=text/javascript
      google.load(jquery, 1.3.1);
 /script

 over

 script type=text/javascript src=http://ajax.googleapis.com/ajax/
 libs/jquery/1.3.2/jquery.js/script

 seems like the second version is one less thing to have to run or
 break

 On Mar 18, 9:46 am, Milan Andric mand...@gmail.com wrote:

  So all of the javascript code should go at the end of the html doc,
  right before closing /body tag? I thought it should go in the
  header.

  Sorry for the ignorance,

  --
  Milan

  On Mar 17, 8:22 pm, mkmanning michaell...@gmail.com wrote:

   You don't need the callback, but you can call it with:
   google.setOnLoadCallback(init);

   The domready wrapper is still a good idea though, depending upon where
   your scripts are--at the close of the body we hope :)

   On Mar 17, 2:52 pm, Milan Andric mand...@gmail.com wrote:

Hello, I was just adding a dropdown menu to my site using droppy.

   http://plugins.jquery.com/project/droppy

And I also use google jdev with google.load('jquery',...).

Droppy requires a bit of code to initialize the dropdown:

        $(document).ready(function() {
          $('#nav').droppy();
        });

Now where should that code go when I'm using google.load() ... this is
the solution I came up with:

...
    script language=Javascript type=text/javascript
        google.load(jquery, 1.3.1);
    /script
    script src=/media/js/jquery.droppy.js type=text/javascript/
script
    script language=Javascript type=text/javascript
        $(document).ready(function() {
          $('#nav').droppy();
        });
    /script
...

Is this perfectly normal?  Seems like since I'm doing google.load() I
should have a callback or something.

Just wondering ... thanks!

--
Milan


[jQuery] Develop Ajax apps 100% faster - thanks to jQuery Raxan PDI

2009-03-18 Thread xwisdom

Hello Everyone,

I've created a PHP framework that integrates well with the jQuery
library.

The framework is called Raxan Framework which includes a Programmable
Document Interface (PDI) extension. PDI is an Open Source PHP
application framework that's design to take advantage of modern web
application technologies.

Main features includes:

* Light Weight Framework
* Multilingual Support - Internationalization and Localization
* Server-side HTML DOM Traversing and Manipulation
* Client - Server Event Binding
* Data Sanitization
* PDO data access support
* Object Oriented Design
* Integrated Ajax Support
* Ajax File upload
* Logging and Debugging API
* Chainable API
* Built-in CSRF and XSS protection
* Open Architecture - Uses standard CSS, HTML, JavaScript and PHP to
deliver an integrated solution for building today's rich web 2.0
applications.

I hope you too will find this framework useful and make it a part of
you web development tool kit.

Here's the link to the web site: http://raxanpdi.com/

__
Raymond Irving


[jQuery] namespaces XML parsing

2009-03-18 Thread David

I have had a look at jQuery mailinglist and I have googled, and I have
not found a solution to this problem.

For example, in FF, if a look for a tag, I have to write ns\\:tag ,
but if a look for an attribute I have to write ns:attribute. In
google Chrome (WebKit), I have to write tag or attribute and it
works.

Has this problem been solved, or is there any plugin to deal with it?
It is veri tedious to code a parsing case for each browser (IE, FF,
Webkit, etc..)

Thanks in advanced.


[jQuery] Re: namespaces XML parsing

2009-03-18 Thread Martijn Houtman


On Mar 18, 2009, at 5:52 PM, David wrote:


For example, in FF, if a look for a tag, I have to write ns\\:tag ,
but if a look for an attribute I have to write ns:attribute. In
google Chrome (WebKit), I have to write tag or attribute and it
works.

Has this problem been solved, or is there any plugin to deal with it?
It is veri tedious to code a parsing case for each browser (IE, FF,
Webkit, etc..)


AFAIK, this problem has not been solved yet, jQuery does not handle  
namespaces at all. The ns\\:field is more of a hack and does not work  
in IE when parsing to XML (through the AJAX option dataType: xml).


What you might want to try is removing the dataType option (so that  
it is passed as a string), then replace the : character with  
something else (e.g. a dash). This way the XML parser will leave the  
namespaces alone.


Please note that I have not tried this, it's based on the things I  
have read about it.


Regards,
--
Martijn.



[jQuery] Re: namespaces XML parsing

2009-03-18 Thread Michael Lawson

We were running into a similar problem with an AJAX application and here is
what we did to get around namespaces:

jQuery(entries).find([...@nodename=namespace:elementName]);

cheers

Michael Lawson
Content Tools Developer, Global Solutions, ibm.com
Phone:  1-828-355-5544
E-mail:  mjlaw...@us.ibm.com

'Examine my teachings critically, as a gold assayer would test gold. If you
find they make sense, conform to your experience, and don't harm yourself
or others, only then should you accept them.'


   
  From:   Martijn Houtman martijn.hout...@gmail.com  
   
  To: jquery-en@googlegroups.com   
   
  Date:   03/18/2009 01:06 PM  
   
  Subject:[jQuery] Re: namespaces XML parsing  
   






On Mar 18, 2009, at 5:52 PM, David wrote:

  For example, in FF, if a look for a tag, I have to write ns
  \\:tag ,.
  but if a look for an attribute I have to write ns:attribute. In
  google Chrome (WebKit), I have to write tag or attribute and it
  works.

  Has this problem been solved, or is there any plugin to deal with
  it?.
  It is veri tedious to code a parsing case for each browser (IE, FF,
  Webkit, etc..)



AFAIK, this problem has not been solved yet, jQuery does not handle
namespaces at all. The ns\\:field is more of a hack and does not work in IE
when parsing to XML (through the AJAX option dataType: xml).

What you might want to try is removing the dataType option (so that it is
passed as a string), then replace the : character with something else (e.g.
a dash). This way the XML parser will leave the namespaces alone.

Please note that I have not tried this, it's based on the things I have
read about it.

Regards,
--
Martijn.

inline: graycol.gifinline: ecblank.gif

[jQuery] Re: Star rating plugin problems

2009-03-18 Thread Diego A.

This issue has been resolved. Please download the latest version of
the plugin:
This is an old issue which has been resolved. Please download the
latest version of the plugin:
http://www.fyneworks.com/jquery/star-rating/

On Jan 29, 6:44 pm, matthias.otto...@googlemail.com
matthias.otto...@googlemail.com wrote:
 Hi Philip,

 I have exactly the same problem. Browser independent. JQuery 1.3.1 and
 Star Rating 2.61 (as of January 23, 2009).

 Also does:

 input name=star2 type=radio class=star/
 input name=star2 type=radio class=star/
 input name=star2 type=radio class=star checked=checked/
 input name=star2 type=radio class=star/
 input name=star2 type=radio class=star/

 ... lead to: star-off, star-off, star-on, star-off, star-off - again
 happening in a container injected through AJAX.

 Thanks,

 Matt

 On Dec 7 2008, 9:23 pm, Philip Garrett phi...@pastemagazine.com
 wrote:

  Hi,

  I'm using the latest available version of thestarratingplugin from
  fyneworks (http://www.fyneworks.com/jquery/star-rating/) with jQuery
  1.2.6.

  I'm having a few problems when using thestarratings with ajax.  My
  ajax form actually replaces the div that contains the stars widget
  with a fresh one that represents the changedrating.

  After replacing the widget with $(#container).html(...), these
  problems start:
  1. The cancel button disappears
  2. Mouseovers on the stars stop working until you click anotherstar
  3. Mouseovers get stuck (especially when mousing off rightwards)
  4. This error will eventually happen: 'elem.parentNode is
  null' [jquery-1.2.6.js (line 1259)]

  I've put together a quick example of the problems 
  here:http://www.pgarrett.net/stars/

  Any help you can offer is appreciated.

  Thanks,
  Philip


[jQuery] Re: Ajax - Reload only affected record

2009-03-18 Thread Thiago Vian
On Wed, Mar 18, 2009 at 10:46 AM, Thiago Vian tvia...@gmail.com wrote:

 Ok. Thats is my code:
   /
 READ
 //


  $(document).ready(function(){
 var $send= $(#send);
  var $loading = $(#loading);
 var $content = $(#content);
  function readRecords(){
 $content.hide();
  $loading.fadeIn(slow);
 $.ajax({
 type: POST, url: action.php, data: action=read,
  complete: function(data){
 $loading.fadeOut(slow);
 $content.html(data.responseText);
  $content.fadeIn(slow);
 delete_field();
 }
  });
 }

 readRecords();
/
 CREATE
 //

 $('#send').bind('click', function(){
 var params = $(#form).serialize();
  $.ajax({
 type: POST,
 url: action.php,
  data: action=insert + params,
  beforeSend: function(){
  $loading.show();
 $send.attr({ disabled:true, value:Inserting... });
  $send.blur();
   },
  success: function(txt){
  $('#message').html(txt)
 $loading.hide();
 document.getElementById('form').reset();
  $send.attr({ disabled:false, value:Insert });
 readRecords();
   }
  });
 });


 });




 Look, after inset in database I call again the function readRecords, and
 reload all data.
 But a want reload only affected data.

 Thanks for your help.



 On Tue, Mar 17, 2009 at 7:52 PM, James james.gp@gmail.com wrote:


 We can help, but without showing us any code it's difficult to do so.

 On Mar 17, 9:29 am, Thiago tvia...@gmail.com wrote:
  I add, edit, read and delete records via ajax.
  Is working correctly.
  Only it is not optimized, every time I do some action script reads all
  my records again.
  I wish only the record that action has to be recharged.
 
  Can you help?





-- 
Abs,
Thiago Vian


UI, Visual Designer + Developer
www.thiagovian.com


[jQuery] Re: Develop Ajax apps 100% faster - thanks to jQuery Raxan PDI

2009-03-18 Thread Jack Killpatrick


Looks very interesting! The site says it's in alpha... is that still 
correct?


Thanks,
Jack

xwisdom wrote:

Hello Everyone,

I've created a PHP framework that integrates well with the jQuery
library.

The framework is called Raxan Framework which includes a Programmable
Document Interface (PDI) extension. PDI is an Open Source PHP
application framework that's design to take advantage of modern web
application technologies.

Main features includes:

* Light Weight Framework
* Multilingual Support - Internationalization and Localization
* Server-side HTML DOM Traversing and Manipulation
* Client - Server Event Binding
* Data Sanitization
* PDO data access support
* Object Oriented Design
* Integrated Ajax Support
* Ajax File upload
* Logging and Debugging API
* Chainable API
* Built-in CSRF and XSS protection
* Open Architecture - Uses standard CSS, HTML, JavaScript and PHP to
deliver an integrated solution for building today's rich web 2.0
applications.

I hope you too will find this framework useful and make it a part of
you web development tool kit.

Here's the link to the web site: http://raxanpdi.com/

__
Raymond Irving

  





[jQuery] :visible change

2009-03-18 Thread s.ross


I'm stumped on a 1.3.2 change. Here is the scenario:

// Node tree:
// - div.groupItem
//   - div.itemHeader
// - a.closeEl
//   - div.itemContent
// - All the enclosed html
//
// When the closeEl node is clicked, act on its parent .groupItem's
// corresponding .itemContent.


Then the jQuery (presuming ele is the element passed to a 'click'  
handler:


var targetContent = $(ele).parent().siblings('div.itemContent');
if (parseInt(targetContent.css('height'))  1) {
  targetContent.slideUp(300);
  $(ele).html('[+]');
} else {
  targetContent.slideDown(300);
  $(ele).html('[-]');
}
return false;

This works. However, the more obvious and intentional version directly  
below doesn't work and I can't tell why.


var targetContent = $(ele).parent().siblings('div.itemContent');
if (targetContent.is(':visible') {
  targetContent.slideUp(300);
  $(ele).html('[+]');
} else {
  targetContent.slideDown(300);
  $(ele).html('[-]');
}
return false;

The .is(':visible') always returns true. Am I mistaking how to use  
this? Is there a much keener way to handle it that I'm not seeing?


Thanks,

Steve


[jQuery] Drop-down menu / PHP mark-up

2009-03-18 Thread lukas

Hello! I have a list of messages which I want to sort with the help of
a jquery drop-down menu.
It is a template file with an underlying PHP/MySQL application.

All what I would like to do is to change a variable value and refresh
(or not refresh?) the same page when someone uses the drop-down menu.

I don't know how to mark this up. Could please anybody send me a hint
or a link? Thank you!


[jQuery] Re: Can't seem to figure out what is wrong.

2009-03-18 Thread RonnBlack

Wow!

It is not clear at in the documentation that it keys off the name
attribute and not the id attribute.

To be fair, it does say it. I just wasn't what I expected and was
reading the word name as a synonym for id.

Thanks a ton, that clears my confusion.

On Mar 17, 8:07 pm, MorningZ morni...@gmail.com wrote:
 the error says no name assigned

 and you have

 input id=username type=text class=LoginTxtBox tabindex=1 /
 input id=password type=password class=LoginTxtBox
 maxlength=12 tabindex=2 /

 which alas, have no name parameter assigned to either control

 On Mar 17, 9:54 pm, RonnBlack rbl...@btsoft.org wrote:



  The page below always gives me the message [object HTMLInputElement]
  has no name assigned (twice).

  What doesn't it like?

  !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN

  http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
  html xmlns=http://www.w3.org/1999/xhtml;
  head
    script src=http://code.jquery.com/jquery-latest.js;/script
    script type=text/javascript
  src=http://dev.jquery.com/view/trunk/plugins/validate/
  jquery.validate.js/script

      link rel=SHORTCUT ICON href=http://localhost/favicon.ico; /
      meta http-equiv=Content-Language content=en-us /
      meta http-equiv=Content-Type content=text/html;
  charset=windows-1252 /
      titleWelcome to Bonddesk*Syndicate/title
  style  type=text/css
  .LoginTxtBox {}
  .BodyPanel {}
  /style
      script type=text/javascript
          $(document).ready(function() {
              try {
                  $(#loginForm).validate({
                      debug: true,
                      messages: {
                          username: {
                              required: Enter your username
                          },
                          password: {
                              required: Enter your password.,
                              minLength: At least 6 characters are
  necessary
                          }
                      },
                      rules: {
                          username: {
                              required: true,
                              email: true
                          },
                          password: {
                              required: true,
                              minLength: 6
                          }
                      }
                  });
              }
              catch (error) {
                  alert(error);
              }
          });

      /script
  /head
  body class=BodyPanel
  form action=/Account/LogOn id=loginForm method=post
  input id=username type=text class=LoginTxtBox tabindex=1 /
  input id=password type=password class=LoginTxtBox
  maxlength=12 tabindex=2 /
  input id=submit type=submit/
  /form
  /body
  /html- Hide quoted text -

 - Show quoted text -


[jQuery] Re: show hide random rows

2009-03-18 Thread Sean O


Scott,


Nice job. I like the logic, and the fading out of unselected rows.

My solution was, admittedly, a quick one. It certainly wouldn't scale past
1,000 rows or so -- especially with the majority # selected -- but if the
10/50 number is firm, seemed to work OK.


--SEAN O



Scott Sauyet-3 wrote:
 
 
 Bob O wrote:
 Basically i have a YUI datatable and i want to use jQuery to hide all
 but a user generated number of rows that are random selected
 
 Something like this might be what you're looking for:
 
  http://jsbin.com/ozafa/edit
 
 The important part is this:
 
  var $rows = $(#myTable tbody tr);
  $(form).submit(function() {
  var count = parseInt($(#count).val());
  var chosen = 0;
  var total = $rows.length;
  $rows.each(function(index) {
  if (Math.random()  (count - chosen) / (total - index)) {
  $(this).fadeIn(slow);
  chosen++;
  } else {
  $(this).fadeOut(slow);
  }
  });
  return false;
  });
 
 This is different from the previous suggestion, which kept randomly 
 picking rows and if they weren't already chosen, added them to the list. 
   This solution iterates through the rows, updating the probability of 
 each one being chosen according to how many have already been chosen and 
 how many we still want to choose.  It might be a bit less efficient for 
 10 out of 50, but would probably be much more efficient at 40 out of 50, 
 and it is entirely predictable, in that it run exactly one random call 
 for each row in the table.
 
 Cheers,
 
-- Scott
 
 

-- 
View this message in context: 
http://www.nabble.com/show-hide-random-rows-tp22570300s27240p22584637.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: Develop Ajax apps 100% faster - thanks to jQuery Raxan PDI

2009-03-18 Thread donb

The 960 Grid System seems a much cleaner gridding technique, although
I only recently stumbled across it and haven't used it yet.

http://960.gs/


On Mar 18, 1:31 pm, Jack Killpatrick j...@ihwy.com wrote:
 Looks very interesting! The site says it's in alpha... is that still
 correct?

 Thanks,
 Jack



 xwisdom wrote:
  Hello Everyone,

  I've created a PHP framework that integrates well with the jQuery
  library.

  The framework is called Raxan Framework which includes a Programmable
  Document Interface (PDI) extension. PDI is an Open Source PHP
  application framework that's design to take advantage of modern web
  application technologies.

  Main features includes:

  * Light Weight Framework
  * Multilingual Support - Internationalization and Localization
  * Server-side HTML DOM Traversing and Manipulation
  * Client - Server Event Binding
  * Data Sanitization
  * PDO data access support
  * Object Oriented Design
  * Integrated Ajax Support
  * Ajax File upload
  * Logging and Debugging API
  * Chainable API
  * Built-in CSRF and XSS protection
  * Open Architecture - Uses standard CSS, HTML, JavaScript and PHP to
  deliver an integrated solution for building today's rich web 2.0
  applications.

  I hope you too will find this framework useful and make it a part of
  you web development tool kit.

  Here's the link to the web site:http://raxanpdi.com/

  __
  Raymond Irving- Hide quoted text -

 - Show quoted text -


[jQuery] Find and replace image problem

2009-03-18 Thread Chris K

I have the image name in a variable and want to replace it but not
sure how to do this.

Currently I can replace the image src with:
var new_src = $(this).attr(src).replace(/ship.png$/i, fileObj.name);

I want to do something like this (which doesn't work):
var new_src = $(this).attr(src).replace(imagename, fileObj.name);

Any help is appreciated.

Chris


[jQuery] Re: Develop Ajax apps 100% faster - thanks to jQuery Raxan PDI

2009-03-18 Thread donb

Incidentally, being '100% faster' is a bit optimistic if you think
about it. ;-)  But Shaving 10 hrs off a 10 hr task would give me a lot
more free time for other things.

On Mar 18, 1:55 pm, donb falconwatc...@comcast.net wrote:
 The 960 Grid System seems a much cleaner gridding technique, although
 I only recently stumbled across it and haven't used it yet.

 http://960.gs/

 On Mar 18, 1:31 pm, Jack Killpatrick j...@ihwy.com wrote:



  Looks very interesting! The site says it's in alpha... is that still
  correct?

  Thanks,
  Jack

  xwisdom wrote:
   Hello Everyone,

   I've created a PHP framework that integrates well with the jQuery
   library.

   The framework is called Raxan Framework which includes a Programmable
   Document Interface (PDI) extension. PDI is an Open Source PHP
   application framework that's design to take advantage of modern web
   application technologies.

   Main features includes:

   * Light Weight Framework
   * Multilingual Support - Internationalization and Localization
   * Server-side HTML DOM Traversing and Manipulation
   * Client - Server Event Binding
   * Data Sanitization
   * PDO data access support
   * Object Oriented Design
   * Integrated Ajax Support
   * Ajax File upload
   * Logging and Debugging API
   * Chainable API
   * Built-in CSRF and XSS protection
   * Open Architecture - Uses standard CSS, HTML, JavaScript and PHP to
   deliver an integrated solution for building today's rich web 2.0
   applications.

   I hope you too will find this framework useful and make it a part of
   you web development tool kit.

   Here's the link to the web site:http://raxanpdi.com/

   __
   Raymond Irving- Hide quoted text -

  - Show quoted text -- Hide quoted text -

 - Show quoted text -


[jQuery] Re: Develop Ajax apps 100% faster - thanks to jQuery Raxan PDI

2009-03-18 Thread xwisdom

Hi Jack,

Yes, Raxan is still in alpha stages right now but we're anticipating a
beta and then a final release very soon.

donb,

The grid system used by Raxan is based on BluePrintCSS which include a
lot more than layouts but it also possible to intergrate Raxan with
the 960 grid system. All you have to do is drop you grid file into the
styles folder and then include it inside your project.

Thanks for sharing

__
Raymond Irving


[jQuery] Re: Find element. How can I do this?

2009-03-18 Thread AnatolyG

I don't have context for what you're trying to do, but if you want to
hide the first OL that's displayed, then:

fieldset.find(ol:eq(0)) finds it to hide it.

but, if you just want this to be collapsable, and when clicking on the
legend, uncollapse, wouldn't this be much easier?

  $('fieldset').each(function(index, obj){
var $item = $(obj);
$item.find(legend).click(function(e){
$item.find(ol:first).toggle();
});
$item.find(ol:first).hide();
  });

If you want to do something else, explain...


A

On Mar 18, 8:45 pm, shapper mdmo...@gmail.com wrote:
 Sorry, I don't understand what your mean.

 Please, check the code I am using 
 in:http://www.27lamps.com/Beta/Collapse/JQuery.Collapsible-1.0.js

 The change I am trying to do is in the following lines:
     var legend = fieldset.find(':first');
     var body = jQuery(document.createElement('div'));
 //    var body = fieldset.find('ol:first')

 On Mar 18, 2:12 pm, AnatolyG anat...@geyfman.net wrote:

  $(fieldset ol:eq(0)).hide()

  shapper wrote:
   Hello,

   I am trying to find update a plugin to create new functionality.
   On the current version I have the following:

       var legend = fieldset.find(':first');
       var body = jQuery(document.createElement('div'));

   - How can I get the first OL element inside fieldset to use it as body
   instead of creating a new element (the div as it is currently?

   - And can I set which element should be searched (ol, ul, div, etc)
   inside the fieldset?

   Thank you,
   Miguel


[jQuery] Help about how to use the jquery.kiketable.colsizable

2009-03-18 Thread ManKuZo

Hello,

I'm trying to create a very simple exemple with the the
jquery.kiketable.colsizable pluging. But, It's not working, can you
help me with this. The part of the code is bellow :


IN THE HEADER
script type=text/javascript src=jquery-1.3.2.js/script
 script type=text/javascript
src=jquery.kiketable.colsizable-1.1.js/script
 script type=text/javascript src=jquery.event.drag-1.4.min.js/
script
 link type=text/css rel=stylesheet
href=jquery.kiketable.colsizable.css

script type=text/javascript
 $(document).ready(function(){
  $(table).kiketable_colsizable()
  });
/script

IN THE BODY

table class=api
  tbody
tr class=first
  td width=100strongPROPERTY/strong/td
  td width=200strongDEFAULT VALUE/strong/td
  tdstrongDESCRIPTION (Other values)/strong/td
  /tr
tr
  tddragCells/td
  tdquot;tr:firstgt;*quot;/td
  tdSelection of cells to be applied column resizable
handlerbr/quot;tr:firstgt;*quot; : select all cells (td,th) from
first row of tablebr/quot;tr:firstgt;*:not(:first)quot; : select
all cells, but the first, from table's first row/td
  /tr
tr
  tddragMove/td
  tdtrue/td
  td
ptrue : Column visually changes width while
dragging;br / false : Column changes its width at stop dragging/p
/td
  /tr
 /tbody
  /table


Thanks


[jQuery] Re: Find and replace image problem

2009-03-18 Thread James

var new_src = $(this).attr(src).replace(imagename, fileObj.name);

will store the String value of that into new_src, so you just set your
image source to it.

$(this).attr(src, new_src);

On Mar 18, 7:56 am, Chris K floweringm...@gmail.com wrote:
 I have the image name in a variable and want to replace it but not
 sure how to do this.

 Currently I can replace the image src with:
 var new_src = $(this).attr(src).replace(/ship.png$/i, fileObj.name);

 I want to do something like this (which doesn't work):
 var new_src = $(this).attr(src).replace(imagename, fileObj.name);

 Any help is appreciated.

 Chris


[jQuery] Re: jquery website broken?

2009-03-18 Thread Cam Spiers
How does it have anything to do with the package they are using?
Would be nice to see the site at least using valid markup and css.


On Thu, Mar 19, 2009 at 5:22 AM, donb falconwatc...@comcast.net wrote:


 It's always had that problem since the new site was created.  There
 are floats not being cleared someplace in there.  For what it's worth
 it's not a reflection on jQuery, but on the package being used to run
 the site (Wordpress, perhaps?).

 On Mar 18, 11:26 am, Karl Swedberg k...@englishrules.com wrote:
  very odd. I remember one other person having a problem with the site a
  while back. I think he was using a Polish version of IE7, but when he
  switched it or updated it or something, it started rendering just
  fine. Sorry, my memory is a little fuzzy on that.
 
  I wish there were something I could do, but I'm sort of stuck unless I
  can replicate the problem on my machine.
 
  --Karl
 
  
  Karl Swedbergwww.englishrules.comwww.learningjquery.com
 
  On Mar 18, 2009, at 9:36 AM, iain.wa...@googlemail.com wrote:
 
 
 
   Hmm that is odd...You can see a screenshot of how its appearing on XP/
   IE7 for me athttp://www.kre8webdesign.com/tmp/jquery.gif, though it
   initialy renders correctly, as you can see from screenshot the white
   background boxes then appear to lose their height :/
 
   On Mar 18, 1:28 pm, Karl Swedberg k...@englishrules.com wrote:
   Looks fine to me, too. Can you be more specific about what looks
   broken? Or provide a screenshot or something?
 
   thanks,
 
   --Karl
 
   
   Karl Swedbergwww.englishrules.comwww.learningjquery.com
 
   On Mar 18, 2009, at 9:21 AM, MorningZ wrote:
 
   What do you see as broken?
 
   the page looks and operates fine for me in IE7   (Windows Server
   2008
   and IE7)
 
   On Mar 18, 9:11 am, iain.wa...@googlemail.com
   iain.wa...@googlemail.com wrote:
   Hi,
 
   I really want to start using jquery in some places to replace
   mootools, however i find it extremely difficult to persuade clients
   to
   go with jquery when the jquery website athttp://
 docs.jquery.com/Main_Page
   is completely broken in IE7. Is there any reason for this?- Hide
   quoted text -
 
   - Show quoted text -



[jQuery] Re: Star rating plugin problems

2009-03-18 Thread Philip Garrett

I can confirm that this has solved my problem.  Thanks, Diego!

- Philip

On Mar 18, 1:27 pm, Diego A. diego.a...@gmail.com wrote:
 This issue has been resolved. Please download the latest version of
 the plugin:
 This is an old issue which has been resolved. Please download the
 latest version of the plugin:http://www.fyneworks.com/jquery/star-rating/

 On Jan 29, 6:44 pm, matthias.otto...@googlemail.com

 matthias.otto...@googlemail.com wrote:
  Hi Philip,

  I have exactly the same problem. Browser independent. JQuery 1.3.1 and
  Star Rating 2.61 (as of January 23, 2009).

  Also does:

  input name=star2 type=radio class=star/
  input name=star2 type=radio class=star/
  input name=star2 type=radio class=star checked=checked/
  input name=star2 type=radio class=star/
  input name=star2 type=radio class=star/

  ... lead to: star-off, star-off, star-on, star-off, star-off - again
  happening in a container injected through AJAX.

  Thanks,

  Matt

  On Dec 7 2008, 9:23 pm, Philip Garrett phi...@pastemagazine.com
  wrote:

   Hi,

   I'm using the latest available version of thestarratingplugin from
   fyneworks (http://www.fyneworks.com/jquery/star-rating/) with jQuery
   1.2.6.

   I'm having a few problems when using thestarratings with ajax.  My
   ajax form actually replaces the div that contains the stars widget
   with a fresh one that represents the changedrating.

   After replacing the widget with $(#container).html(...), these
   problems start:
   1. The cancel button disappears
   2. Mouseovers on the stars stop working until you click anotherstar
   3. Mouseovers get stuck (especially when mousing off rightwards)
   4. This error will eventually happen: 'elem.parentNode is
   null' [jquery-1.2.6.js (line 1259)]

   I've put together a quick example of the problems 
   here:http://www.pgarrett.net/stars/

   Any help you can offer is appreciated.

   Thanks,
   Philip


[jQuery] Re: show hide random rows

2009-03-18 Thread Scott Sauyet


Sean O wrote:

Nice job. I like the logic, and the fading out of unselected rows.

My solution was, admittedly, a quick one. It certainly wouldn't scale past
1,000 rows or so -- especially with the majority # selected -- but if the
10/50 number is firm, seemed to work OK.


Yours is probably more efficient on average than mine, even at higher 
numbers, except in extreme cases.  The advantage of mine is in 
predictability.  It's going to loop through all the rows making one call 
to random() for each.


Mine was actually a quick copy of something I recently had to do in my 
day job where this predictability was more important (to my boss) than 
average efficiency, and where the numbers were higher.  Although I coded 
this approach, I argued unsuccessfully for your approach, which is 
usually faster.


In any case, either should work fine for the OP if the numbers are 
anything like the example given.


  -- Scott


[jQuery] Re: Find element. How can I do this?

2009-03-18 Thread shapper

Hi,

that is what I am trying to do but by using that plugin I can:

1. Have different CSS classes applied to collapsed and expanded
fieldsets so I can get a toogle icons;
2. Control the speed of collapse (this is not very important)

The problem is that the plugin, as far as I can see, gets all the
markup on the fieldset, places it inside a div and aplies the collapse/
expand to the div.

I would prefer the plugin to apply this to the ol, or even better, be
able to specify to which element in the fieldset should this be
applied (the collapase/expand) and the CSS classes.

I am not expert in JQuery but the plugin seems ok ... or no?

Thank You,
Miguel

On Mar 18, 6:17 pm, AnatolyG anat...@geyfman.net wrote:
 I don't have context for what you're trying to do, but if you want to
 hide the first OL that's displayed, then:

 fieldset.find(ol:eq(0)) finds it to hide it.

 but, if you just want this to be collapsable, and when clicking on the
 legend, uncollapse, wouldn't this be much easier?

       $('fieldset').each(function(index, obj){
         var $item = $(obj);
         $item.find(legend).click(function(e){
                 $item.find(ol:first).toggle();
         });
         $item.find(ol:first).hide();
       });

 If you want to do something else, explain...

 A

 On Mar 18, 8:45 pm, shapper mdmo...@gmail.com wrote:

  Sorry, I don't understand what your mean.

  Please, check the code I am using 
  in:http://www.27lamps.com/Beta/Collapse/JQuery.Collapsible-1.0.js

  The change I am trying to do is in the following lines:
      var legend = fieldset.find(':first');
      var body = jQuery(document.createElement('div'));
  //    var body = fieldset.find('ol:first')

  On Mar 18, 2:12 pm, AnatolyG anat...@geyfman.net wrote:

   $(fieldset ol:eq(0)).hide()

   shapper wrote:
Hello,

I am trying to find update a plugin to create new functionality.
On the current version I have the following:

    var legend = fieldset.find(':first');
    var body = jQuery(document.createElement('div'));

- How can I get the first OL element inside fieldset to use it as body
instead of creating a new element (the div as it is currently?

- And can I set which element should be searched (ol, ul, div, etc)
inside the fieldset?

Thank you,
Miguel


[jQuery] proper syntax for a local path ../myDirectory/myFile.htm

2009-03-18 Thread rolfsf

I need to make a simple 'freestanding' prototype to be run locally. I
used a simple load() to grab a div from another file:

$('#ajax-panel').load(../myDirectory/myFile.htm #myDiv);

but the ../ in the url chokes. How can I accomplish that for a
prototype that runs locally on my machine without a proper server?

Thanks


[jQuery] Re: Find and replace image problem

2009-03-18 Thread Chris K

As I said that doesn't work.

On Mar 18, 11:48 am, James james.gp@gmail.com wrote:
 var new_src = $(this).attr(src).replace(imagename, fileObj.name);

 will store the String value of that into new_src, so you just set your
 image source to it.

 $(this).attr(src, new_src);

 On Mar 18, 7:56 am, Chris K floweringm...@gmail.com wrote:

  I have the image name in a variable and want to replace it but not
  sure how to do this.

  Currently I can replace the image src with:
  var new_src = $(this).attr(src).replace(/ship.png$/i, fileObj.name);

  I want to do something like this (which doesn't work):
  var new_src = $(this).attr(src).replace(imagename, fileObj.name);

  Any help is appreciated.

  Chris


[jQuery] Re: jquery website broken?

2009-03-18 Thread Rick Faircloth

Yes, I have to say that's it's been very surprising that the
site would be so badly broken in IE 7 since it was put up.
I figured someone would get around to fixing the css...assuming
that's what the problem is.

The site looks great when it's right, but really bad when it
starts flying apart.  Can't we get some love (or at least affection :o)
for the IE 7 version of the jQuery site?

Rick

-Original Message-
From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On
Behalf Of iain.wa...@googlemail.com
Sent: Wednesday, March 18, 2009 9:11 AM
To: jQuery (English)
Subject: [jQuery] jquery website broken?


Hi,

I really want to start using jquery in some places to replace
mootools, however i find it extremely difficult to persuade clients to
go with jquery when the jquery website at http://docs.jquery.com/Main_Page
is completely broken in IE7. Is there any reason for this?



[jQuery] Re: Find and replace image problem

2009-03-18 Thread James

Okay, how about something like:

reg = new RegExp('/'+imagename+'$/', 'gi');
new_src = $(this).attr(src).replace(reg, fileObj.name);


On Mar 18, 10:00 am, Chris K floweringm...@gmail.com wrote:
 As I said that doesn't work.

 On Mar 18, 11:48 am, James james.gp@gmail.com wrote:

  var new_src = $(this).attr(src).replace(imagename, fileObj.name);

  will store the String value of that into new_src, so you just set your
  image source to it.

  $(this).attr(src, new_src);

  On Mar 18, 7:56 am, Chris K floweringm...@gmail.com wrote:

   I have the image name in a variable and want to replace it but not
   sure how to do this.

   Currently I can replace the image src with:
   var new_src = $(this).attr(src).replace(/ship.png$/i, fileObj.name);

   I want to do something like this (which doesn't work):
   var new_src = $(this).attr(src).replace(imagename, fileObj.name);

   Any help is appreciated.

   Chris




[jQuery] Re: Develop Ajax apps 100% faster - thanks to jQuery Raxan PDI

2009-03-18 Thread Nikola

Very interesting!

On Mar 18, 2:14 pm, xwisdom xwis...@gmail.com wrote:
 Hi Jack,

 Yes, Raxan is still in alpha stages right now but we're anticipating a
 beta and then a final release very soon.

 donb,

 The grid system used by Raxan is based on BluePrintCSS which include a
 lot more than layouts but it also possible to intergrate Raxan with
 the 960 grid system. All you have to do is drop you grid file into the
 styles folder and then include it inside your project.

 Thanks for sharing

 __
 Raymond Irving


[jQuery] Re: jquery website broken?

2009-03-18 Thread Karl Swedberg
Again, there's not a whole lot we can do if we can't replicate the  
problem. Here is what the page looks like in IE 7 for me:


http://skitch.com/kswedberg/be1wy/ie-7

See? Looks perfectly fine. It shouldn't be surprising to see the page  
so badly broken if it's only broken for some IE 7 users and not for  
others.


If someone who is seeing the page broken can troubleshoot and  
recommend changes to the CSS, I, or one of the other team members,  
would be happy to apply them.


Thanks,

--Karl


Karl Swedberg
www.englishrules.com
www.learningjquery.com




On Mar 18, 2009, at 4:30 PM, Rick Faircloth wrote:



Yes, I have to say that's it's been very surprising that the
site would be so badly broken in IE 7 since it was put up.
I figured someone would get around to fixing the css...assuming
that's what the problem is.

The site looks great when it's right, but really bad when it
starts flying apart.  Can't we get some love (or at least  
affection :o)

for the IE 7 version of the jQuery site?

Rick

-Original Message-
From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com]  
On

Behalf Of iain.wa...@googlemail.com
Sent: Wednesday, March 18, 2009 9:11 AM
To: jQuery (English)
Subject: [jQuery] jquery website broken?


Hi,

I really want to start using jquery in some places to replace
mootools, however i find it extremely difficult to persuade clients to
go with jquery when the jquery website at http://docs.jquery.com/Main_Page
is completely broken in IE7. Is there any reason for this?





[jQuery] Re: proper syntax for a local path ../myDirectory/myFile.htm

2009-03-18 Thread Nikola

I do this all the time...

file:///c:/myDirectory/myFile.htm #myDiv

On Mar 18, 3:32 pm, rolfsf rol...@gmail.com wrote:
 I need to make a simple 'freestanding' prototype to be run locally. I
 used a simple load() to grab a div from another file:

 $('#ajax-panel').load(../myDirectory/myFile.htm #myDiv);

 but the ../ in the url chokes. How can I accomplish that for a
 prototype that runs locally on my machine without a proper server?

 Thanks


[jQuery] Re: Button Actions

2009-03-18 Thread MonkeyBall2010

Thanks... I have read some of the jQuery documentation but it does
little to describe the underlying language. I will check out the book
you mentioned this weekend.

Also, I have one more minor problem with with the above code. So the
callback function is working correctly with the exception of my
redirect. I wanted the block UI to load for a specified amount of
time and then the redirect to occur. I thought using the setTimeout
function would wait to execute the code for the specified time but it
doesn't work. My block UI is displayed for a fraction of a second and
then the page redirects no matter how long I set the timer for. Does
the submitHandler get processed before the user presses the submit
button? I can't figure out why the redirect occurs so abruptly. When I
try something else in the setTimer function it times correctly but not
the redirect for some reason.

submitHandler: function(form) {
jQuery(form).ajaxSubmit(function() {
$.blockUI({ message: 'h1Creating
Account...br /br / img src=../images/ajax-loader.gif //
h1' });


setTimeout(window.location = Redirect
Location, 4000);
});
}

Thanks for all of your help


[jQuery] Re: proper syntax for a local path ../myDirectory/myFile.htm

2009-03-18 Thread rolfsf

Thanks Nikola. Unfortunately, this prototype will be opened on various
people's computers, so I can't anticipate what the directory setup
will be on their machine (both mac and pc), hence my use of a path
relative to my document  ../myDirectory/



On Mar 18, 2:02 pm, Nikola nik.cod...@gmail.com wrote:
 I do this all the time...

 file:///c:/myDirectory/myFile.htm #myDiv

 On Mar 18, 3:32 pm, rolfsf rol...@gmail.com wrote:

  I need to make a simple 'freestanding' prototype to be run locally. I
  used a simple load() to grab a div from another file:

  $('#ajax-panel').load(../myDirectory/myFile.htm #myDiv);

  but the ../ in the url chokes. How can I accomplish that for a
  prototype that runs locally on my machine without a proper server?

  Thanks


[jQuery] Re: Call for contributors: A simple, fast and flexible grid/spreadsheet component.

2009-03-18 Thread Tin

Updated the last example (http://slickgrid.googlecode.com/svn/trunk/
example4-model.html) with column sorting (click on column headers).
Some grid code refactoring plus multiple bug fixes and performance
enhancements (try the slider!).


[jQuery] Re: jquery website broken?

2009-03-18 Thread Mauricio (Maujor) Samy Silva
...if it's only broken for some IE 7 users and not for others.

And I am one of the others users, since the site looks perfectly fine on my 
Brazilian-Portuguese version of IE7.

Maurício
  -Mensagem Original- 
  De: Karl Swedberg 
  Para: jquery-en@googlegroups.com 
  Enviada em: quarta-feira, 18 de março de 2009 18:00
  Assunto: [jQuery] Re: jquery website broken?


  Again, there's not a whole lot we can do if we can't replicate the problem. 
Here is what the page looks like in IE 7 for me:


  http://skitch.com/kswedberg/be1wy/ie-7


  See? Looks perfectly fine. It shouldn't be surprising to see the page so 
badly broken if it's only broken for some IE 7 users and not for others.


  If someone who is seeing the page broken can troubleshoot and recommend 
changes to the CSS, I, or one of the other team members, would be happy to 
apply them.



  Thanks,

  --Karl

  
  Karl Swedberg
  www.englishrules.com
  www.learningjquery.com







  On Mar 18, 2009, at 4:30 PM, Rick Faircloth wrote:



Yes, I have to say that's it's been very surprising that the
site would be so badly broken in IE 7 since it was put up.
I figured someone would get around to fixing the css...assuming
that's what the problem is.

The site looks great when it's right, but really bad when it
starts flying apart.  Can't we get some love (or at least affection :o)
for the IE 7 version of the jQuery site?

Rick

-Original Message-
From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On
Behalf Of iain.wa...@googlemail.com
Sent: Wednesday, March 18, 2009 9:11 AM
To: jQuery (English)
Subject: [jQuery] jquery website broken?


Hi,

I really want to start using jquery in some places to replace
mootools, however i find it extremely difficult to persuade clients to
go with jquery when the jquery website at http://docs.jquery.com/Main_Page
is completely broken in IE7. Is there any reason for this?





[jQuery] Re: Button Actions

2009-03-18 Thread brian

The function you pass to ajaxSubmit() is run when the AJAX call
returns. So, it's well after the user hits the submit button. You
should instead pass an options object with the following:

beforeSubmit: your block UI handler
success: your success handler


On Wed, Mar 18, 2009 at 5:05 PM, MonkeyBall2010
hughes.timo...@gmail.com wrote:

 Thanks... I have read some of the jQuery documentation but it does
 little to describe the underlying language. I will check out the book
 you mentioned this weekend.

 Also, I have one more minor problem with with the above code. So the
 callback function is working correctly with the exception of my
 redirect. I wanted the block UI to load for a specified amount of
 time and then the redirect to occur. I thought using the setTimeout
 function would wait to execute the code for the specified time but it
 doesn't work. My block UI is displayed for a fraction of a second and
 then the page redirects no matter how long I set the timer for. Does
 the submitHandler get processed before the user presses the submit
 button? I can't figure out why the redirect occurs so abruptly. When I
 try something else in the setTimer function it times correctly but not
 the redirect for some reason.

                submitHandler: function(form) {
                        jQuery(form).ajaxSubmit(function() {
                        $.blockUI({ message: 'h1Creating
 Account...br /br / img src=../images/ajax-loader.gif //
 h1' });


                        setTimeout(window.location = Redirect
 Location, 4000);
                        });
                }

 Thanks for all of your help


[jQuery] Re: jquery website broken?

2009-03-18 Thread Rick Faircloth
Well, it does look fine now.(just a couple of very minor issues, relatively
speaking).

Has someone done some tweaking lately?  I haven't look at the site in maybe

a week or two, and I may not have even noticed it was displaying correctly.

 

Even with it having problems, I could get two what I needed, so I didn't pay
it

much attention after awhile.  Good to see it's looking better!

 

Rick

 

From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On
Behalf Of Karl Swedberg
Sent: Wednesday, March 18, 2009 5:01 PM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: jquery website broken?

 

Again, there's not a whole lot we can do if we can't replicate the problem.
Here is what the page looks like in IE 7 for me:

 

http://skitch.com/kswedberg/be1wy/ie-7

 

See? Looks perfectly fine. It shouldn't be surprising to see the page so
badly broken if it's only broken for some IE 7 users and not for others.

 

If someone who is seeing the page broken can troubleshoot and recommend
changes to the CSS, I, or one of the other team members, would be happy to
apply them.

 

Thanks,


--Karl




Karl Swedberg

www.englishrules.com

www.learningjquery.com

 





 

On Mar 18, 2009, at 4:30 PM, Rick Faircloth wrote:






Yes, I have to say that's it's been very surprising that the
site would be so badly broken in IE 7 since it was put up.
I figured someone would get around to fixing the css...assuming
that's what the problem is.

The site looks great when it's right, but really bad when it
starts flying apart.  Can't we get some love (or at least affection :o)
for the IE 7 version of the jQuery site?

Rick

-Original Message-
From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On
Behalf Of iain.wa...@googlemail.com
Sent: Wednesday, March 18, 2009 9:11 AM
To: jQuery (English)
Subject: [jQuery] jquery website broken?


Hi,

I really want to start using jquery in some places to replace
mootools, however i find it extremely difficult to persuade clients to
go with jquery when the jquery website at http://docs.jquery.com/Main_Page
is completely broken in IE7. Is there any reason for this?

 



[jQuery] border-radius plugin for IE

2009-03-18 Thread weepy

This plugin adds support to IE for -moz-border-radius using VML

http://gist.github.com/77516

weepy


[jQuery] Re: jquery website broken?

2009-03-18 Thread David Meiser
When I was developing our company's website, I had a coworker who kept
complaining about how terrible it looked.  He complained that half the
images were missing, half the text was unstyled, blah blah blah.  I asked
him what browser he was using: Firefox 3.0.1.  I was using 3.0.1 as my
primary browser.  He said he had another coworker that had the same
problems.

It took me two weeks of off and on troubleshooting to finally locate the
problem.  I had placed all the images and CSS in a folder labeled with the
company acronym: ADS.  The real problem? He had Adblocker Plus installed,
which was blocking the images and CSS.

If I had to pick a moral to this story it would be this:  If you're using a
Tier 1 browser and a website looks broken, you should maybe check your
plugins before filing bug reports.  However, I really just wanted to point
out how frustrating it could be to track down a single or small-group user
issue.  There are so many variables that it's just damn near impossible to
fix something that one user is seeing without having their computer (this,
by the way, is how I finally fixed my issue).

Peace,
Dave

On Wed, Mar 18, 2009 at 6:26 PM, Rick Faircloth r...@whitestonemedia.comwrote:

  Well, it does look fine now…(just a couple of very minor issues,
 relatively speaking).

 Has someone done some tweaking lately?  I haven’t look at the site in maybe

 a week or two, and I may not have even noticed it was displaying correctly.



 Even with it having problems, I could get two what I needed, so I didn’t
 pay it

 much attention after awhile.  Good to see it’s looking better!



 Rick



 *From:* jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] *On
 Behalf Of *Karl Swedberg
 *Sent:* Wednesday, March 18, 2009 5:01 PM
 *To:* jquery-en@googlegroups.com
 *Subject:* [jQuery] Re: jquery website broken?



 Again, there's not a whole lot we can do if we can't replicate the problem.
 Here is what the page looks like in IE 7 for me:



 http://skitch.com/kswedberg/be1wy/ie-7



 See? Looks perfectly fine. It shouldn't be surprising to see the page so
 badly broken if it's only broken for some IE 7 users and not for others.



 If someone who is seeing the page broken can troubleshoot and recommend
 changes to the CSS, I, or one of the other team members, would be happy to
 apply them.



 Thanks,


 --Karl


 

 Karl Swedberg

 www.englishrules.com

 www.learningjquery.com







 On Mar 18, 2009, at 4:30 PM, Rick Faircloth wrote:




 Yes, I have to say that's it's been very surprising that the
 site would be so badly broken in IE 7 since it was put up.
 I figured someone would get around to fixing the css...assuming
 that's what the problem is.

 The site looks great when it's right, but really bad when it
 starts flying apart.  Can't we get some love (or at least affection :o)
 for the IE 7 version of the jQuery site?

 Rick

 -Original Message-
 From: jquery-en@googlegroups.com 
 [mailto:jquery-en@googlegroups.comjquery-en@googlegroups.com]
 On
 Behalf Of iain.wa...@googlemail.com
 Sent: Wednesday, March 18, 2009 9:11 AM
 To: jQuery (English)
 Subject: [jQuery] jquery website broken?


 Hi,

 I really want to start using jquery in some places to replace
 mootools, however i find it extremely difficult to persuade clients to
 go with jquery when the jquery website at http://docs.jquery.com/Main_Page
 is completely broken in IE7. Is there any reason for this?





[jQuery] Re: jquery website broken?

2009-03-18 Thread Paul Woolcock
Works for me too, Vista Ultimate + IE7.

On Wed, Mar 18, 2009 at 9:21 AM, MorningZ morni...@gmail.com wrote:


 What do you see as broken?

 the page looks and operates fine for me in IE7   (Windows Server 2008
 and IE7)

 On Mar 18, 9:11 am, iain.wa...@googlemail.com
 iain.wa...@googlemail.com wrote:
  Hi,
 
  I really want to start using jquery in some places to replace
  mootools, however i find it extremely difficult to persuade clients to
  go with jquery when the jquery website athttp://
 docs.jquery.com/Main_Page
  is completely broken in IE7. Is there any reason for this?




-- 
Paul Woolcock
pwool...@umflint.edu
paulwoolcoc...@gmail.com


[jQuery] Problems whith the variables for a click function

2009-03-18 Thread Patrik

Hi!

I try to make a script to change the prize between with tax and
without but I cant get it to work whats wrong?


var sant = 'no';
var pris = $('#productPrices').html();
$('#tax a').click(function(){
if(sant == 'no'){
var pris2 = pris.replace(/[^0-9.,]+/g, '').replace(/[,]+/g,
'.');
pris2 = parseInt(pris2)*.75;
$('#productPrices').html(pris2 + ':-');
sant = 'yes';
}else{
$('#productPrices').html(pris);
}
return false;
});


[jQuery] jquery web site performance quite slow on Plugins screens

2009-03-18 Thread mark.schulthe...@gmail.com

I have been accessing the web site quite a bit the last few days, the
performance seems QUITE slow, and I keep getting messages saying
A script on this page is causing Internet Explorer to run slowly.  If
it continues to run your computer may become unresponsive.  Do you
want to abort the script?
.well obviously I do not but it has happened about 10 times.
Most often I receive this message when accessing the plugins list
(larger = way slower).

I can duplicate this with the following steps:
Open new IE window.
Click Plugins link the top.
Click Forms (on left panel, on right panel it seems to do nothing at
all...)
Forms panel starts to load...2-4 minutes or so time is used watching
it
Message appears.

My machine is NOT so fast (dual proc 500mhz, 1gb of memory 500mb+
free) but still I would like to see this stuff perform better.

I am using IE 6.0 sp1 (6.0.2800.1106) currently  (I know, upgrade to
more recent/other browser blah blah...but I have clients with older
machines so I need this to test/use my applications so that is not the
best option for me).


[jQuery] jQuery Cycle Form Submit and Next Issue

2009-03-18 Thread jenz

I am trying to get the jQuery Cycle plugin to cycle through slides
that contain images with a form for rating the images.  Ideally I
would like the form to submit and then go to the next slide that
contains the image and the rating form. What I cannot seem to figure
out is how to have it cycle through to the next slide and at the
same time submit the form.  As of now - when I click on submit - it
goes to the next slide appropriately but the data does not get
submitted.  When I removed the ID from the next code in the JS - the
form submits, but the slides are obviously not cycled.  Is it possible
to both go to the next slide and submit data when the submit button is
pressed?

The current JS:

$(function() {
  $('#photos').cycle({
   prev:   '#previous',
   next:  '#next, #photoRatingSubmit',
   timeout:0
  });
});


The current HTML (one slide)

   div id=photos
 div class=photo
   form action=/ method=post
input type=radio name=rating value=Yes / labelYes/
label
input type=radio name=rating value=No / labelNo/
label
input type=submit  id=photoRatingSubmit value=Submit /

 /form
   /div
  imgsrc=example.jpg /
 /div
/div


[jQuery] namespaces XML parsing

2009-03-18 Thread david.garc...@barcelonamedia.org

I have had alook into jQuery mailinglist and I have googled and I have
seen that there are problems witj jQuery parsing XML (an CSS I've
seen) namespaces.

I have tried and for example, in FF I need to look for ns\\:tag to
find a tag, but for example if a look for an attribute I have to do
this ns:attribute. In Google Chrome (WebKit) it simply works with
tag and attribute.

Has it been solved, as I have seen this problem arose around 2006?

It is a bit complicated to code a case for each web browser (IE, FF,
Webkit, etc.), is there any plugin or tip to sort this out?

Thanks in advanced.


[jQuery] Select class=class1 class2 using jQuery

2009-03-18 Thread bill123

I need to select an element like this:

div class=class_1 class_a/div

and I've found that both of the following work:

$(.class_a).filter(.class_1).css(background-color, red);

$(.class_a.class_1).css(background-color, red);

The first one makes sense and is documented on the website.  But the
second one isn't documented anywhere as far as I can tell.

My question is this: is this, i.e.

   $(.class_a.class_1)

intended, documented behavior or is this some fluke that is likely to
disappear?  Is there a URL where this behavior is documented?  I would
like to use the second selector syntax (i.e., $(.class_a.class_1) )
but don't want to rely on it if it's likely to disappear.

Thanks!


[jQuery] How do I subtract 64 pixels from the value of a div's height?

2009-03-18 Thread Jeremy Coulson

Here is my code:

$(document).ready(function () {
var contentDivHeight = $('#contentDiv').css('height');
// pseudo-code: var calculatedHeight = 
$(#clickMe).click(function(){
$(#leftNavBox-contentPages).animate({height: 
calculatedHeight},
fast);
});
});

I need the value of calculatedHeight to be 64 pixels less than
contentDiv.  So, if contentDiv is 600px, calculatedHeight needs to be
536px.

Jeremy


[jQuery] Sortable problems

2009-03-18 Thread err_ok

I am having some problems with the sortable plugin, most annoyingly in
firefox instead of drag and drop functionality it seems to be click
once then click again to drop.. but it doesn't seem to work at
consistently, this problem isn't apparent in other demo's I have tried
to I am assuming it is a problem on my end, also I can't get scrolling
while dragging to work on any browser that I have tried. Any help
would be great!

JQuery code as follows;

$(document).ready(function() {
$(#library-table).sortable({
items  : '.library-item',
cursor : 'move',
handle : '.handle',
scroll : true,
update : function () {
$.post('/libraries/sort',
'_method=putauthenticity_token='+AUTH_TOKEN+''+$(this).sortable
('serialize'));
}
});
});

an HTML Example;

div id=library-table class=ui-sortable
div class=library-item id=listItem-1
%= image_tag '/images/pdf.png', :height = '40px', 
:class
= :handle%
h3%= library.title %/h3
p%= library.desc %/p
ul
li%= link_to Download, library.doc.url(), 
:target = :blank
%/li
li%= link_to 'Delete', library, :confirm = 
'Are you
sure?', :method = :delete % | /li
li%= link_to Edit, 
edit_library_path(library.permalink), :rel
= 'facebox' % | /li
/ul
/div2
div class=library-item id=listItem-2
%= image_tag '/images/pdf.png', :height = '40px', 
:class
= :handle%
h3%= library.title %/h3
p%= library.desc %/p
ul
li%= link_to Download, library.doc.url(), 
:target = :blank
%/li
li%= link_to 'Delete', library, :confirm = 
'Are you
sure?', :method = :delete % | /li
li%= link_to Edit, 
edit_library_path(library.permalink), :rel
= 'facebox' % | /li
/ul
/div
/div

I do not get any errors in firebug, I am quite stumped. Any help would
be much appreciated!

Jack

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
jQuery (English) group.
To post to this group, send email to jquery-en@googlegroups.com
To unsubscribe from this group, send email to 
jquery-en+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/jquery-en?hl=en
-~--~~~~--~~--~--~---



[jQuery] [Treeview] Persistent location with pages with a query string

2009-03-18 Thread FormMailer

Hi,

I have several php pages in my menu and the menu works fine. The
persistent location function works well, but some of these pages can
have a query string (eg. http://mydomain.com/page.php?sortby=name).
My problem is that Treeview doesn't recognize that the above is the
same page as http://mydomain.com/page.php which is in the menu.
I assume I need to strip the querystring somehow, and that it should
be done in this code (from jquery.treeview.js):
case location:
var current = this.find(a).filter(function() 
{ return
this.href.toLowerCase() == location.href.toLowerCase(); });
if ( current.length ) {

current.addClass(selected).parents(ul, li).add( current.next
() ).show();
}

Can someone help me to achieve this?

Thanks in advance!

Kind regards,
Jasper Metselaar


[jQuery] Do you need authorization for SVN import???

2009-03-18 Thread J.V.

I am using Eclipse SVN subclipse plugin.
I can browse all code on:
http://jqueryjs.googlecode.com/svn

but when I need to import it locally it asks me for credentials:
I tried to leave it blank or use  guest,  but it throws the error:
-
import -m  D:/SANDBOX/zxy http://jqueryjs.googlecode.com/svn/trunk/jquery
Authorization failed
svn: MKACTIVITY of '/svn/!svn/act/d0b979c6-50ec-0449-
ae92-35a848b66c9a': authorization failed (http://
jqueryjs.googlecode.com)

The operation was interrupted
svn: Operation canceled
--
How can I import it? Of what client are you using?

Thanks for help,
Jan


[jQuery] insertAfter loses script tags

2009-03-18 Thread Bryan Larsen

Hello,

If I clone some html that includes a script tag, the script gets
clone.  However, if I then do an insertAfter() with that clone, the
script tag gets lost.

Example (using jquery-1.3.2):

div id=clone_me
  script  ({option_a: 17});  /script
  spanHello/span
/div
button onclick=jQuery('#clone_me').clone(true).insertAfter(jQuery
(this)); value=click me/


jQuery('#clone_me').clone(true).find('script').text()  -
({option_a: 17});
jQuery('#clone_me').clone(true).insertAfter(jQuery(this)).find
('script').text()  -  

I thought I had found a relatively elegant way of passing Javascript
options for an element.  It keeps the options with the associated
elements, doesn't pollute the namespace, and doesn't break XHTML
compliance like adding attributes to the tag would.

Does anybody have either a way to not lose the script tags or a clean
mechanism for passing element metadata to Javascript?

thanks,
Bryan

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
jQuery (English) group.
To post to this group, send email to jquery-en@googlegroups.com
To unsubscribe from this group, send email to 
jquery-en+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/jquery-en?hl=en
-~--~~~~--~~--~--~---



[jQuery] Re: Can a dialog not show an alert message?

2009-03-18 Thread arno.esterhuizen

Hi, delphilynx

Could you post some example code, or point us to a working example?
It's a lot easier than us trying to reinvent the code you already
wrote.

Cheers
Arno

On Mar 18, 3:38 pm, delphilynx delphil...@gmail.com wrote:
 Anyone any comment about this issue?

 Thanks in advance!


[jQuery] Superfish doesn't degrade in IE6

2009-03-18 Thread sanna...@gmail.com

Hi,

I tested your Superfish menu in FF 3 and IE6 for the PC. In FF it
degrades fine, still showing the dropdowns on hover of their parent
links, but in IE6, the menus don't show. I turned off the Javascript
by going to Tools  Internet Options  Security  Custom Level, then
under Scripting I disabled Active Scripting. Is that right?

Thanks.
Sue


[jQuery] Superfish

2009-03-18 Thread ag

Hi,
I would the Superfish menu nav-bar style to highlight the current page
and if current page is on second level then it should show that level
and not cloase it.

THANKS :)

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
jQuery (English) group.
To post to this group, send email to jquery-en@googlegroups.com
To unsubscribe from this group, send email to 
jquery-en+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/jquery-en?hl=en
-~--~~~~--~~--~--~---



  1   2   >