[jQuery] Re: How to pass a jQuery object to PHP as an array

2008-11-03 Thread Ettiene

Have a look at JSON. PHP's got a json_encode function where you can
encode variables/data to json, and then use in javascript. So I guess
it could be done the other way around too.

Ettiene

On Nov 3, 7:10 am, GrootBaas [EMAIL PROTECTED] wrote:
 Hi all,

 Thank you in advance for you help 

 I have the following object ...

 console.log($('.users').select('.name'));

 How can I pass this object as an hidden form field back to my PHP
 controller as an array?

 Current code ...

 document.save_logs.table.value = value;
        document.save_logs.submit();

 ?=form_hidden('table','')?


[jQuery] Re: Test that at least one input element has value

2008-11-03 Thread Torgeir

Yes, I need to do somewhat the same thing as the groups option does,
but the problem is that I have 20 - 30 products and I would like to
add/remove products without having to update the validation each time.
Here's what the docs say about the groups option:
 A group consists of an arbitrary group name as the key and a space separated 
 list of element names as the value.

I guess I'm looking for a more general and expandable way to do
this...


On Oct 30, 7:35 pm, w1ntermut3 [EMAIL PROTECTED] wrote:
 If I understand you right, I think you need the groups option:

 $(#myform).validate({
   groups: {
     username: product1 product2
   }

 });

 AFAIK, that'll group error messages for your selected elements.


[jQuery] Re: Superfish + IE7 dean edwards project

2008-11-03 Thread adexcube

Are you working on that?

Thanks

On Oct 30, 1:15 pm, Joel Birch [EMAIL PROTECTED] wrote:
 Do the submenus still appear 100% width if you remove the Superfish JS
 code so that the menu is pure CSS plus IE7.js ?

 Joel Birch.


[jQuery] Re: How to get Parameter in a href onclick='openBIO('param1,param2,paramN')Get Biodata /a

2008-11-03 Thread Titasix

I wan't merge it to jquery modalbox like Confirmation dialog, and I
want passing the parameter from function.
thx

On 3 Nov, 06:37, ricardobeat [EMAIL PROTECTED] wrote:
 It's just a plain javascript function, where does jQuery enter? You
 just need to define the function (it it's not already defined):

 function openBIO('p1,p2,p3') {
    //do something with p1,p2,p3

 }

 On Nov 2, 8:39 am, Titasix [EMAIL PROTECTED] wrote:

  I have table that the column has one of the links subject title
  above,how jQuery handle it?
  thanx


[jQuery] iFixPng bug in ie6

2008-11-03 Thread hcvitto

hi
i'm using the improved iFixPng version.
In ie6 it renders the transparency but the background png image gets
over anything else as it had a high z-index.

Any solution?

Thanks vitto

Here's the code

# css
div#wrapper {margin:0 auto; width:880px;background: url(../img/
ombraWrapper.png) bottom right no-repeat;padding-bottom:40px;}
div#main {margin:0 auto; width:800px;background: url(../img/
sfondoContent.jpg) 0 0 no-repeat;}

#html
div id=wrapper
  div id=main
  /div
/div

#js
!--[if lt IE 7]
script type=text/javascript
$(document).ready(function(){
$.ifixpng('img/pixel.gif');
$('#wrapper').ifixpng();
});
/script
![endif]--



[jQuery] Re: Image load causing page refresh

2008-11-03 Thread fshuja

Perfect!
thnx a lot

On Nov 3, 4:14 pm, Mike Alsup [EMAIL PROTECTED] wrote:
  hi,
  I am creating a plugin for my gallery. I am loading image on click of
  a thumnail. thumnail's rel attribute contains the url of the larger
  image.
  In my pluging i have a method to load the clicked image.

  LoadSelectedImage = function(){
                  var src = $('gallery li.on a').attr('rel');
                  var img = new Image();
                  $('#testing').css({opacity: .5});
                  $(img).load(function () {
                          $(this).css({display: 'none'});
                          $('#loader').removeClass('loading');
                          $('#testing').empty();
                          $('#testing').css({opacity: 1});
                          $('#testing').append(this);
                          $(this).fadeIn(400);
                  }).error(function () {
                  }).attr('src', src).attr('id','gallery_img_container');
          }

  but when this method runs on click of the thumbnail, the whole page
  refreshes and the execution again start from
  $('#gallery1').Gallery();      //start the Gallery plugin

 You need to 'return false' from your click handler to prevent the
 default browser behavior.


[jQuery] Re: Animate Issue - bouncing menu

2008-11-03 Thread weidc

Hi,

maybe you can add some attr or so.
i mean like:

if ($(.portfolio).attr(name) != foo)
{
   $(.portfolio).hover(
   function()
   {
   $(.portfolio).attr(name,foo);
   [your stuff]
},
function()
{
   [your stuff]
   $(.portfolio).attr(name,);
});
}

Don't know your code but just wanted to do an example. well i guess i
would try it like so.

On 3 Nov., 04:18, benmanson [EMAIL PROTECTED] wrote:
 Hi,

 Hoping someone can help with this. This is my first jquery script and
 I am animating a menu item to move up and down (using absolute
 positioning) when hovered on/off.

 The problem I have is that the menu gets the bounces if you hover on
 the edge of the menu item frame or hover on and off too quickly.

 You can see it athttp://staging.3blindmice.com.au. The menu items
 that animate are the profile and portfolio ones.

 Is there something I can do to resolve the problem?

 Thanks
 Ben


[jQuery] Re: problem with jquery selector in IE

2008-11-03 Thread glowbal

Thanks for the quick response.  Too bad the
Firefox behavior isn't what is supposed
to happen...


[jQuery] Re: Image load causing page refresh

2008-11-03 Thread Mike Alsup

 hi,
 I am creating a plugin for my gallery. I am loading image on click of
 a thumnail. thumnail's rel attribute contains the url of the larger
 image.
 In my pluging i have a method to load the clicked image.

 LoadSelectedImage = function(){
                 var src = $('gallery li.on a').attr('rel');
                 var img = new Image();
                 $('#testing').css({opacity: .5});
                 $(img).load(function () {
                         $(this).css({display: 'none'});
                         $('#loader').removeClass('loading');
                         $('#testing').empty();
                         $('#testing').css({opacity: 1});
                         $('#testing').append(this);
                         $(this).fadeIn(400);
                 }).error(function () {
                 }).attr('src', src).attr('id','gallery_img_container');
         }

 but when this method runs on click of the thumbnail, the whole page
 refreshes and the execution again start from
 $('#gallery1').Gallery();      //start the Gallery plugin


You need to 'return false' from your click handler to prevent the
default browser behavior.



[jQuery] Re: search for text and replace or remove the element entirely

2008-11-03 Thread Jilani Jidni
please try this

$(#tableId  tr  td).each(function(){
   this.text(your value);
});

this should be work for you.

-- 
with regards

Jilani Jidni


On Mon, Nov 3, 2008 at 6:41 PM, Devin [EMAIL PROTECTED] wrote:


 Hi

 I'm trying to devise a way to check each cell in a table for a
 particular value.  When the value is found, I want to remove the row
 from the document.  Or, when its found I want to do a replace. (ie $
 (this).innerHTML.replace(name, Devin)   I know that syntax is
 wrong but I think it gets across what I'm trying to do)

 Thanks.

 D


[jQuery] error in ajax call in IE?!?

2008-11-03 Thread Lukas Polak

Hi,

I use jQuery to every ajax call in my webpage. It seems to me that ajax 
call doesn't work in IE at all. Am I wrong or is this known error? Is 
this possible to fix it?
If you need, I can send sample of my source code.

elf


[jQuery] Re: How to delet br?

2008-11-03 Thread Alper Hankendi

style
#barneklar br {
 Display:none;
}
/style


On 3 Kasım, 14:03, Mauricio \(Maujor\) Samy Silva
[EMAIL PROTECTED] wrote:
 ???
 Your code works fine here, both in FireFox and IE.
 Mauricio

 -Mensagem Original-
 De: elvisparsley [EMAIL PROTECTED]
 Para: jQuery (English) jquery-en@googlegroups.com
 Enviada em: segunda-feira, 3 de novembro de 2008 09:35
 Assunto: [jQuery] How to delet br?





  My CMS creates br clear=all/br/ automatically for content part
  as you can see below. I want to delete these.

  =

  div id=barneklar
  br clear=all/
  br/
  table .

  

  I added
  $(document).ready(function() {
   $('#barneklar br').remove();

  });
  with jquery1.2.6.

  but it works with firefox, but not in ie7.

  What am I doing wrong here?
  Thanks in advance.- Alıntıyı gizle -

 - Alıntıyı göster -


[jQuery] R: [jQuery] search for text and replace or remove the element entirely

2008-11-03 Thread diego valobra
Hi devin, see if this could be what you'r looking for:

http://docs.jquery.com/Selectors/contains#text

Diego
--- Lun 3/11/08, Devin [EMAIL PROTECTED] ha scritto:
Da: Devin [EMAIL PROTECTED]
Oggetto: [jQuery] search for text and replace or remove the element entirely
A: jQuery (English) jquery-en@googlegroups.com
Data: Lunedì 3 novembre 2008, 13:41

Hi

I'm trying to devise a way to check each cell in a table for a
particular value.  When the value is found, I want to remove the row
from the document.  Or, when its found I want to do a replace. (ie $
(this).innerHTML.replace(name, Devin)   I know that
syntax is
wrong but I think it gets across what I'm trying to do)

Thanks.

D



  Unisciti alla community di Io fotografo e video, il nuovo corso di 
fotografia di Gazzetta dello sport:
http://www.flickr.com/groups/iofotografoevideo

[jQuery] A Feed Viewer application using Object Oriented jQuery

2008-11-03 Thread Santosh

A feed viewer application using a object oriented jQuery extension.
See the post, demo and code here.
http://santrajan.blogspot.com/2008/11/feed-viewer-application-developed-using.html



[jQuery] Re: How to delet br?

2008-11-03 Thread Mauricio (Maujor) Samy Silva


???
Your code works fine here, both in FireFox and IE.
Mauricio


-Mensagem Original- 
De: elvisparsley [EMAIL PROTECTED]

Para: jQuery (English) jquery-en@googlegroups.com
Enviada em: segunda-feira, 3 de novembro de 2008 09:35
Assunto: [jQuery] How to delet br?




My CMS creates br clear=all/br/ automatically for content part
as you can see below. I want to delete these.


=

div id=barneklar
br clear=all/
br/
table .



I added
$(document).ready(function() {
 $('#barneklar br').remove();

});
with jquery1.2.6.

but it works with firefox, but not in ie7.

What am I doing wrong here?
Thanks in advance.


[jQuery] clutip with ajax4htm from the examble

2008-11-03 Thread Halva

hello i have this in my site but the htm is not showing
script src='.$lb_path.'themes/lc/js/jquery-1.2.5.min.js type=text/
javascript/script
script src='.$lb_path.'themes/lc/js/jquery.dimensions.js type=text/
javascript/script
script src='.$lb_path.'themes/lc/js/jquery.hoverIntent.js
type=text/javascript/script !-- optional --
script src='.$lb_path.'themes/lc/js/jquery.cluetip.js type=text/
javascript/script
script type=text/javascript
$(document).ready(function() {
$(\'a[title=rounded]\').cluetip({cluetipClass: \'rounded\'});
$(\'ol.rounded a:eq(1)\').cluetip({
  cluetipClass: \'rounded\',
  dropShadow: false,
  positionBy: \'mouse\'
});
});

/script
link rel=stylesheet href='.$lb_path.'themes/lc/css/
jquery.cluetip.css type=text/css /

a title=hgh rel=http://127.0.0.1/cluetip-0.9.8/demo/ajax4.htm;
href=ajax4.htm style=rounded corners theme and positioning by
mouse/a.


where help me please


[jQuery] clutip with ajax4.htm from the examble

2008-11-03 Thread Hups


hello i have this in my site but the htm is not showing
script src='.$lb_path.'themes/lc/js/jquery-1.2.5.min.js type=text/
javascript/script
script src='.$lb_path.'themes/lc/js/jquery.dimensions.js type=text/
javascript/script
script src='.$lb_path.'themes/lc/js/jquery.hoverIntent.js
type=text/javascript/script !-- optional --
script src='.$lb_path.'themes/lc/js/jquery.cluetip.js type=text/
javascript/script
script type=text/javascript
$(document).ready(function() {
$(\'a[title=rounded]\').cluetip({cluetipClass: \'rounded\'});
$(\'ol.rounded a:eq(1)\').cluetip({
  cluetipClass: \'rounded\',
  dropShadow: false,
  positionBy: \'mouse\'
});
});

/script
link rel=stylesheet href='.$lb_path.'themes/lc/css/
jquery.cluetip.css type=text/css /

ajax4.htm rounded corners theme and positioning by
mouse .


where help me please
-- 
View this message in context: 
http://www.nabble.com/clutip-with-ajax4.htm-from-the-examble-tp20303993s27240p20303993.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: How to pass a jQuery object to PHP as an array

2008-11-03 Thread Jay

 How can I pass this object as an hidden form field back to my PHP
 controller as an array?

What would php do with a javascript object if you passed it?
Perhaps you should be passing some property of the object instead?


[jQuery] Struggling with Callbacks

2008-11-03 Thread ryanhavoc

Hi,

Hope someone can help. I'm struggling with getting my syntax right for
a call back.

What's i've done is wrap my setting for the jQuery dialog plugin in a
function so I can use the same setting over and over. So that's looks
like this:

function opendays_dialog(trigger){
//Get href from link
var url = $(trigger).attr(href);

//Ajax get from href link
$.get(url, function(data){
//Display content in dialog box
$(data).dialog({
height: auto,
width: auto,
resizable: false,
draggable: false,
position: center,
modal: true,
overlay: {
background: #33
},
close: function(ev, ui) { 
$(this).dialog(destroy).remove(); }
});

$(div.ui-dialog-content).css({height: auto});
});
}

And I'm calling it in another function like so:
function opendays_manageCoursesDialog(){

$(a.manage_courses).click(function() {

//Load dialog box
opendays_dialog($(this));

opendays_manageCourses_add();
opendays_manageCourses_prepare();

The dialog loads, however the two additional functions you can see
above don't run. I was thinking they will needing to be passed as a
callback something like:

opendays_dialog($(this), function(){
opendays_manageCourses_add();
opendays_manageCourses_prepare();
});

But I'm not sure about the correct syntax to make it work.

Can anyone help?

Thanks


[jQuery] Re: problem with jquery selector in IE

2008-11-03 Thread ricardobeat

jQuery doesn't officialy support XML parsing, it just happens to
'happen' :)

Try $(xml).contents().filter('url') instead, might work.

On Nov 3, 2:56 am, glowbal [EMAIL PROTECTED] wrote:
 To be more explicit, here is the relevant code:

 function displayURL(xml) {
         try {
                 alert(xml);
                 var result = $(url, xml).text();
                 alert(result);
         }
         catch (ex) {
                 alert(ex);
         }

 }

 In the above code the alert(xml) call shows
 the string described in my previous post.  The xml
 string is being passed in correctly.

 However, the alert(result) call shows that the result
 variable is empty, even after the assignment.

 In addition, IE7 has this same problem.  (I
 originally noticed this problem in IE6.)

 In Firefox, everthing works fine.  The alert(result)
 call shows that result is assigned the text
 between the url/url tags as expected.

 Again, any help with this problem is greatly
 appreciated.


[jQuery] Is there a plugin to sort a table with scrollbars?

2008-11-03 Thread livewire9174

Hi,
I am looking for a script that will sort a table when a user clicks on
a table header, I would like this table to have a scrollbar also, does
such a thing exist?



thanks


[jQuery] Image load causing page refresh

2008-11-03 Thread fshuja

hi,
I am creating a plugin for my gallery. I am loading image on click of
a thumnail. thumnail's rel attribute contains the url of the larger
image.
In my pluging i have a method to load the clicked image.

LoadSelectedImage = function(){
var src = $('gallery li.on a').attr('rel');
var img = new Image();
$('#testing').css({opacity: .5});
$(img).load(function () {
$(this).css({display: 'none'});
$('#loader').removeClass('loading');
$('#testing').empty();
$('#testing').css({opacity: 1});
$('#testing').append(this);
$(this).fadeIn(400);
}).error(function () {
}).attr('src', src).attr('id','gallery_img_container');
}

but when this method runs on click of the thumbnail, the whole page
refreshes and the execution again start from
$('#gallery1').Gallery();  //start the Gallery plugin

please help me out.

thnx


[jQuery] Re: Is there a plugin to sort a table with scrollbars?

2008-11-03 Thread tlphipps

There are several grid plugins which do that and much more.  Checkout
plugins.jquery.com and search for grid.

If you're just wanting a simple plugin like tablesorter that also adds
scrolling, I'm unaware of any such plugin.

On Nov 3, 3:55 am, livewire9174 [EMAIL PROTECTED] wrote:
 Hi,
 I am looking for a script that will sort a table when a user clicks on
 a table header, I would like this table to have a scrollbar also, does
 such a thing exist?

 thanks


[jQuery] Re: R: [jQuery] search for text and replace or remove the element entirely

2008-11-03 Thread Devin

How would I perform NOT contains?



On Nov 3, 9:19 am, diego valobra [EMAIL PROTECTED] wrote:
 Hi devin, see if this could be what you'r looking for:

 http://docs.jquery.com/Selectors/contains#text

 Diego
 --- Lun 3/11/08, Devin [EMAIL PROTECTED] ha scritto:
 Da: Devin [EMAIL PROTECTED]
 Oggetto: [jQuery] search for text and replace or remove the element entirely
 A: jQuery (English) jquery-en@googlegroups.com
 Data: Lunedì 3 novembre 2008, 13:41

 Hi

 I'm trying to devise a way to check each cell in a table for a
 particular value.  When the value is found, I want to remove the row
 from the document.  Or, when its found I want to do a replace. (ie $
 (this).innerHTML.replace(name, Devin)   I know that
 syntax is
 wrong but I think it gets across what I'm trying to do)

 Thanks.

 D

       Unisciti alla community di Io fotografo e video, il nuovo corso di 
 fotografia di Gazzetta dello 
 sport:http://www.flickr.com/groups/iofotografoevideo


[jQuery] Expert jQuery Hackers Needed

2008-11-03 Thread Syn-UX

Hey all, This is a shameless post, but our company, Synacor, is in
need to hire some expert jQuery hackers. We basically make internet
portals for ISP's - we need some hackers who can help us do cool stuff
like making page components for weather, radio, movies, etc. We have a
great corporate culture and I love my job very much. If you're
interested in our GUI Developer or GUI Engineer positions, please
email me at [EMAIL PROTECTED] Thanks! --Mike


[jQuery] We need this for jQuery!

2008-11-03 Thread Rick Faircloth


Anyone who has been frustrated by trying to keep up with what
jQuery core works with which plug-ins will appreciate what
Yoxos.com has done for the Eclipse platform and all it's plug-ins.

jQuery and Eclipse have the same basic problem.  A great core
and tons of great plug-ins, but problems keeping up with which
of the constantly-under-development plug-ins works with the
latest core.

You can even create an account and save your custom configurations
for modification and download as needed.

As you choose basic components and plug-ins, Yoxos automatically
notifies you of dependencies and requests permission to add them
to you configuration!

Although I have limited experience thus far with Yoxos on demand
for Eclipse, I can say that the concept would serve jQuery well!

Check it out at:  http://ondemand.yoxos.com

(No, I'm not affiliated with Yoxos, just a frustrated jQuery user looking
for a solution to a common problem)

Rick


[jQuery] Re: Need solution to cycle through images and display a caption

2008-11-03 Thread deronsizemore


Paul,

Thank you very much for this! I think it will come in extremely handy. I'm
not exactly sure what a callback actually means, but I'm sure I'll come
across it in my Learning jQuery book or I'll just look it up online. ;)

As for the text being on top of the image, that was my original intention
but for whatever reason couldn't get the CSS styled correctly and on top of
that the text was acting weird anyway, but I think now with the information
you've given me here, I can attempt to position the text on top of the image
again and see what happens. Hopefully all goes well.

Thanks showing me this!

Deron



Paul Mills-12 wrote:
 
 
 Hi,
 Just had a look at your site - very nice.
 I see the text is fading in and out in synch with the images. You can
 control the text independently using the callbacks.
 Try this:
 $('#slideshow').cycle({
   before: onBefore,
   after: onAfter
 });
 
 function onBefore() {
 $('p').hide();
 }
 function onAfter() {
 $('p').css({opacity: '0.5'}).slideDown('slow');
 }
 
 This hides the text before the image fades, and then slides the text
 in after the new image shows.
 You can also apply CSS to the p element to position it on top of the
 image.
 
 Paul
 
 On Oct 8, 7:53 pm, deronsizemore [EMAIL PROTECTED] wrote:
 That you very much Karl for chiming in here! I feel like an idiot now
 though
 as that was so simple. I can't believe I didn't even think of that. I
 guess
 I was thinking that the fade effect would only do images for some reason
 so
 adding a caption wrapped in a paragraph tag never entered my mind.

 I have it working now at:http://www.kentuckygolfing.com

 I do have a couple more questions though.

 1. How do you go about changing the opacity of the caption background
 color
 as well as making that whole caption slide up from the bottom on the
 example
 site you supplied earlier? I tried to dissect your code but couldn't find
 this anywhere. I tried to duplicate it myself but my limited knowledge
 just
 won't allow it yet.

 2. It seems that on my site, when you refresh the page there is a slight
 flicker where it shows the second image caption first but then quickly
 switches back to the first caption, which is the right one. I noticed
 that
 yours doesn't do this. Any ideas? Initially on my site too, both images
 in
 the li were being shown above one another until the script loaded
 fully. I
 got around this by adding overflow: hidden to the containing ul but
 can't
 figure out the caption flicker issue.

 3. Last, if you watch on my site closely, when the caption appears, the
 text
 goes from normal (with no Anti-Alias) to smooth (with Anti-Alias). I
 noticed
 that your example does not. Is there something I'm doing wrong there too?

 Thanks for your help on this. I'm much farther along that I ever have
 been
 before. I'm really looking forward to your book Learning jQuery too.
 Hopefully I wont' have to ask these beginner questions in future. ;)

 Deron



 Karl Swedberg-2 wrote:

  The cycle plugin is excellent. It can have anything you want for each  
  item -- image, caption, whatever. You apply the method to a container  
  element, and the child elements are cycled. So, you could have this,  
  for example:

  jQuery:
  ...
     $('#mycontainer').cycle();
  ...

  HTML:
  ...
  ul id=mycontainer
     li
              foo.jpg
             pI'm a caption./p
     /li
     li
              bar.jpg
             pI'm another caption./p
     /li
  /ul

  ...

  If you'd like to see an example of this in the wild, I used the cycle  
  plugin here:

 http://www.canons-regular.org/

  --Karl

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

  On Oct 8, 2008, at 11:03 AM, deronsizemore wrote:

  Thank you very much. I did see it the other day but I didn't notice  
  anything
  where it allowed you to add in a caption. I'm going back to take a  
  second
  look.

  I'm currently trying to read through the Learning jQuery book, so  
  hopefully
  if Cycle doesn't have captions built in, I'll be able to add that
  functionality myself soon.

  Paul Mills-12 wrote:

  Hi,
  You could try the cycle plugin:
 http://plugins.jquery.com/project/cycle

  The documentation is very good with lots of examples.
  You can use the before and after callback functions to show/hide the
  caption
  and CSS to position the caption on top of the image.

  Paul

  On Oct 6, 12:44 am, deronsizemore [EMAIL PROTECTED] wrote:
  Hi,

  I'm looking for plugin that will allow cycling through images and  
  display
  a
  caption for each image. What I'm looking for is exactly like this
  example:http://www.woothemes.com/demo/?t=3

  The image on the top left cycles through different images and  
  displays a
  unique caption for each image. Is there anything out there like  
  this for
  jQuery? I believe the example above used this mootools plugin I
 
 believe:http://smoothgallery.jondesign.net/getting-started/gallery-set-howto/

  Currently, I'm 

[jQuery] How to delet br?

2008-11-03 Thread elvisparsley

My CMS creates br clear=all/br/ automatically for content part
as you can see below. I want to delete these.


=

div id=barneklar
br clear=all/
br/
table .



I added
$(document).ready(function() {
  $('#barneklar br').remove();

});
with jquery1.2.6.

but it works with firefox, but not in ie7.

What am I doing wrong here?
Thanks in advance.


[jQuery] search for text and replace or remove the element entirely

2008-11-03 Thread Devin

Hi

I'm trying to devise a way to check each cell in a table for a
particular value.  When the value is found, I want to remove the row
from the document.  Or, when its found I want to do a replace. (ie $
(this).innerHTML.replace(name, Devin)   I know that syntax is
wrong but I think it gets across what I'm trying to do)

Thanks.

D


[jQuery] Re: jQuery Uploader Flash player 10 fix

2008-11-03 Thread Gilles (Webunity)

uuhm.. yep. ;)

On Nov 2, 8:33 pm, Jörg Battermann [EMAIL PROTECTED] wrote:
 You've meant November, right? Just checking :)

 On Nov 1, 1:01 pm, Gilles (Webunity) [EMAIL PROTECTED] wrote:



  I expect to release around 8 september

  On Oct 31, 2:09 pm, Gilles (Webunity) [EMAIL PROTECTED] wrote:

   p.s. at this time, IE seems a bit buggy, have to fix that before i
   release any code.
   I am also using some PNG files right now, which i have to change into
   transparent gifs (IE).

   On Oct 31, 2:08 pm, Gilles (Webunity) [EMAIL PROTECTED] wrote:

Expect something in the next couple of days. I want to have the api
docs setup good this time.

On Oct 30, 1:41 pm, Olivier Percebois-Garve [EMAIL PROTECTED]
wrote:

 Hi

 any chance to see the work in progress ? demo, (even partially buggy) 
 ? svn
 ?

 Olivier

 On Tue, Oct 28, 2008 at 10:25 AM, Crazy-Achmet
 [EMAIL PROTECTED]wrote:

  I'm really lookin forward to the new version!!!

  It's awesome that you're still workin' on it! ;)- Hide quoted text -

 - Show quoted text -- Hide quoted text -

- Show quoted text -- Hide quoted text -

 - Show quoted text -


[jQuery] unsubscribe

2008-11-03 Thread Minal Patki
I do not wish to recieve any emails from this group.
Thanks


[jQuery] jquery

2008-11-03 Thread ricy

jQuery (English)
jQuery is a fast, concise, JavaScript Library that simplifies how you
traverse HTML documents, handle events, perform animations, and add
Ajax interactions to your web pages. jQuery is designed to change the
way that you write JavaScript.











***
http://www.freewebs.com/oceancurnt/
***


[jQuery] Re: unsubscribe

2008-11-03 Thread Erik Beeson
http://www.google.com/search?q=google+groups+unsubscribe

On Mon, Nov 3, 2008 at 9:59 AM, Minal Patki [EMAIL PROTECTED] wrote:

 I do not wish to recieve any emails from this group.
 Thanks




[jQuery] Re: Superfish - removing arrow from top-level

2008-11-03 Thread macpaul

Hi Joel,

I came back to this thread to highlight that same problem, which I
only noticed today. IE6, how you grieve me 8[

Thanks for your suggestion Joel, however I've played around with as
many permutations of this as I can, altering different parts of
superfish.css to try to get it to work, to no avail :( The css is a
little further out there than I can comprehend, considering I didn't
build the js and I'm struggling to get this to work.


On Oct 30, 1:18 pm, Joel Birch [EMAIL PROTECTED] wrote:
 Hello,

 Your fix is good except that it won't work in IE6. You might instead
 try setting background:none for all .sf-sub-indicator elements, then
 restoring the arrows to the deeper nested ones using a selector with
 greater specificity. ie:

 sf-menu li ul a .sf-sub-indicator { ...

 Joel Birch.


[jQuery] Re: JCarousel orientation problem on first page load in Safari

2008-11-03 Thread alan

Anyone?...

On Oct 31, 9:44 am, alan [EMAIL PROTECTED] wrote:
 No one have any ideas what might be causing this??

 On 30 Oct, 17:40, alan [EMAIL PROTECTED] wrote:

  Hey

  We have a carousel that display horizontally with 5 elements.
  However, when we try to access that page with an empty cache (reset
  safari) and navigate to the page, the carousel is displayed vertically
  instead of horizontally.
  After that, when the page is reloaded or access a second time it works
  fine.

  The problem seems only to occur with safari.

  We think it's something to do with the CSS/JS load time or processing
  time.
  We checked the load time and CSS files are loaded before all JS files.

  Any suggestions to fix this problem?


[jQuery] Remove() xml nodes doesnt work in ie

2008-11-03 Thread ngjgf

Using remove() on a xml document wont work in ie 7. (works fine in ff)

Example:

$(this.xmlDoc).find(gd  cd).remove();

Results in js error: Object doesnt support this property or method
which points to line 666 in jquery, id = elem[ expando ] = ++uuid;

Anyone know a work around/way to fix for this?


[jQuery] iTunes like scroller

2008-11-03 Thread adw999

Hi

Does anyone know of a plugin that mimics the album cover view in
iTunes? Like http://en.wikipedia.org/wiki/Cover_Flow

Thanks


[jQuery] Remove() xml nodes doesnt work in ie

2008-11-03 Thread ngjgf

Using remove() on a xml document wont work in ie 7. (works fine in ff)

Example:

$(this.xmlDoc).find(gd  cd).remove();

Results in js error: Object doesnt support this property or method
which points to line 666 in jquery, id = elem[ expando ] = ++uuid;

Anyone know a work around/way to fix for this?


[jQuery] Remove() xml nodes doesnt work in ie

2008-11-03 Thread ngjgf

Using remove() on a xml document wont work in ie 7. (works fine in ff)

Example:

$(this.xmlDoc).find(gd  cd).remove();

Results in js error: Object doesnt support this property or method
which points to line 666 in jquery, id = elem[ expando ] = ++uuid;

Anyone know a work around/way to fix for this?


[jQuery] iTunes like scroller

2008-11-03 Thread adw999

Hi

Does anyone know of a plugin that mimics the album cover view in
iTunes? Like http://en.wikipedia.org/wiki/Cover_Flow

Thanks


[jQuery] Destroy Interval at DOM Object removal

2008-11-03 Thread Pom

I'm currently creating a project where we need out users to be able to
browser thru different media types. Currently Images, Video and 360-
images. Since we are really concearned about the highest availability
we decided to create the 360-viewer with JavaScript, in the form of a
jQuery plugin.

The plugin, after some tweaking, turned out to work perfect. However,
I have trouble releasing the window.setInterval when the div that has
been applied the image rotator is removed from the DOM.

Here's the plugin in it's full: http://www.pastie.org/306425

Here's the code calling the plugin: http://pastie.org/306434

Please notice that the paste contains two plugins acutally. The
uppermost is used to disable browser selecting.

At line 56 I'd like to add some code that makes sure the element is
still in the DOM. I've tried approaching this with $(element).is('*'),
$(element).lenght, but both reports that the element exists even
though it has been removed.

If I test with $(element).hasClass it can be accomplished at runtime
in Firebug, but whenever I add any attributes in the plugin-scope it
doesnt seem to apply to the DOM itself.

This is my first Plug-in for JQuery, so please feel free to give any
feedback, including improvements om best practice.

Best regards,
Pontus


[jQuery] Remove() xml nodes doesnt work in ie

2008-11-03 Thread ngjgf

Using remove() on a xml document wont work in ie 7. (works fine in ff)

Example:

$(this.xmlDoc).find(gd  cd).remove();

Results in js error: Object doesnt support this property or method
which points to line 666 in jquery, id = elem[ expando ] = ++uuid;

Anyone know a work around/way to fix for this?


[jQuery] Re: iTunes like scroller

2008-11-03 Thread MorningZ

Not very hard to find

http://www.google.com/search?q=jquery+coverflow



On Nov 3, 11:26 am, adw999 [EMAIL PROTECTED] wrote:
 Hi

 Does anyone know of a plugin that mimics the album cover view in
 iTunes? Likehttp://en.wikipedia.org/wiki/Cover_Flow

 Thanks


[jQuery] performing actions on single elements with widely used classes

2008-11-03 Thread Liam Potter


Hi,
I'm having trouble figuring out how I can perform say, a hide animation 
on a div, by clicking a button on one div, which uses a class used by 
other divs.


*Lets say I have this:*

div class=message
a href=# class=deleteDelete/a
pMessage text/p
/div

div class=message
a href=# class=deleteDelete/a
pMessage text/p
/div

div class=message
a href=# class=deleteDelete/a
pMessage text/p
/div

*then the jquery is:

*$(a.delete).click(function () {
   $(.overlay).hide(slow);
   });

This will hide all the messages, rather then the one I clicked the 
delete button on.
Right now I'm using server side code to give each div a unique id, then 
have the jquery like this


var inc = %#Eval(PrimaryKeyID)%;
$(a.delete+ inc).click(function () {
   $(.overlay).hide(slow);
   });

This works, but it's not the best option, as I need to keep the JS 
inline and I'd rather be able to seperate it into a .js file, and use it 
in future projects just by writing the correct html then dropping the js 
file in the head.


If anyone can show me the right way to do this, it would be extremely 
helpful.


- Liam


[jQuery] Problem with jQuery Round Corners plug-in in IE 67

2008-11-03 Thread Omid

Hi,
I used this code in my page to gain rounded corner :
script type=text/javascript
  $(document).ready(function(){
$(div#right_column).each(function(){
$(this).corner(round);
});
  });
/script

There is no problem in FF but I have problem with IE , please have a
view here :
http://i33.tinypic.com/2re6u6u.png

I don`t have online sample now :(
What can I do ?


[jQuery] Can I include more than one js file with its own $(document).ready callback?

2008-11-03 Thread Gurunandan

Can I include two files each with their own $(document).ready
(function() {}) callback - of course with different functions. Is
yes, is this efficient and are there better and cleaner ways to make
my code more modular?

Thanks and regards
Gurunandan


[jQuery] clueTip issue with ASP.NET GridView

2008-11-03 Thread bgibilaro

All,

I am new to clueTip and I am having a rather peculiar problem.

I have an asp.net webform with 2 test clueTip links on it.

One is just a standard anchor tag with the usual class=jt (I am
using the jTip Theme), rel=.. and title=.. attributes.

The other is actually the same exact link, however, it is stored as a
template column in the GridView control.

When I run the app, the link outside of the GridView displays
perfectly, including being sticky and displaying the red x icon
which is used to actually close the clueTip.

However, the link withing the GridView (which simply renders as a
standard HTML table) ignores the theme, basically. The clueTip is not
sticky. It simply disappears immediately after I mouseout of the link
and the red x is not displaying either.

Does anyone have any experience with this or any suggestions on how to
resolve?

I have already attempted to apply the settings globally using the
cluetip.setup method and setting the insertionType = appendTo and
the insertionElement = body. However, this does not appear to have
made a difference.

Any help would be appreciated. Thanks!

Bob Gibilaro



[jQuery] Form Validation JQuery $_POST issues

2008-11-03 Thread jtingato

I am not a javascript or Ajax programmer, so JQuery is new to me.  I
have taken over the completion of a website for a friend and have hit
a strange occurance.

The site designer utilized CodeIgniter framework and it appears well
wriiten and well commented.

Here's the Issue:

Thers a form in a php file that the user uses to pick clothing pieces
from 4 drop downs.  Once a piece is chosen,the shitrt, the drawing is
immediately updated into a sketch box with the chosen article. The
next piece chosen is added to the sketch until all required pieces
create an outfit.  Since this is real time updates, I am assuming it
is Ajax.

Once the user is done, they submit the form clicking the Save or
Order button which calls a function in another library. If all
required choices are not met, it relay a error message to the user.
I assume this is all done in JQuery.

I need to determine which submit button was hit.

When I view the POST array, all the choices are there except the
submit button.  If I comment out the inclusion of Jquery, the submit
button shows up in the POST; however the sketch drawing do not work,
nor does the form validation.

Is there a way to fix this?
Does JQuery strip out some of the POST array either directly or
indirectly?
Does anyone have a workaround or ideas.

As I said, I am a JS noob. I thank you all in advance for any help you
can provide.

John


[jQuery] Re: Destroy Interval at DOM Object removal

2008-11-03 Thread ricardobeat

Hi,

I don't see any code removing the element from the DOM, in what line
is it?

One thing I noticed is you're storing values as properties of the
element (lines 32-36), that's the first step to get memory leaks on
IE. Using the data() function to store element data avoids that
problem.

- ricardo

On Nov 3, 2:22 pm, Pom [EMAIL PROTECTED] wrote:
 I'm currently creating a project where we need out users to be able to
 browser thru different media types. Currently Images, Video and 360-
 images. Since we are really concearned about the highest availability
 we decided to create the 360-viewer with JavaScript, in the form of a
 jQuery plugin.

 The plugin, after some tweaking, turned out to work perfect. However,
 I have trouble releasing the window.setInterval when the div that has
 been applied the image rotator is removed from the DOM.

 Here's the plugin in it's full:http://www.pastie.org/306425

 Here's the code calling the plugin:http://pastie.org/306434

 Please notice that the paste contains two plugins acutally. The
 uppermost is used to disable browser selecting.

 At line 56 I'd like to add some code that makes sure the element is
 still in the DOM. I've tried approaching this with $(element).is('*'),
 $(element).lenght, but both reports that the element exists even
 though it has been removed.

 If I test with $(element).hasClass it can be accomplished at runtime
 in Firebug, but whenever I add any attributes in the plugin-scope it
 doesnt seem to apply to the DOM itself.

 This is my first Plug-in for JQuery, so please feel free to give any
 feedback, including improvements om best practice.

 Best regards,
 Pontus


[jQuery] Re: We need this for jQuery!

2008-11-03 Thread ricardobeat

Most, if not all jQuery plugins at plugins.jquery.com have a version
compatibility list on it's page.

On Nov 3, 2:25 pm, Rick Faircloth [EMAIL PROTECTED] wrote:
 Anyone who has been frustrated by trying to keep up with what
 jQuery core works with which plug-ins will appreciate what
 Yoxos.com has done for the Eclipse platform and all it's plug-ins.

 jQuery and Eclipse have the same basic problem.  A great core
 and tons of great plug-ins, but problems keeping up with which
 of the constantly-under-development plug-ins works with the
 latest core.

 You can even create an account and save your custom configurations
 for modification and download as needed.

 As you choose basic components and plug-ins, Yoxos automatically
 notifies you of dependencies and requests permission to add them
 to you configuration!

 Although I have limited experience thus far with Yoxos on demand
 for Eclipse, I can say that the concept would serve jQuery well!

 Check it out at:  http://ondemand.yoxos.com

 (No, I'm not affiliated with Yoxos, just a frustrated jQuery user looking
 for a solution to a common problem)

 Rick


[jQuery] jScrollPane loaded display: none

2008-11-03 Thread [EMAIL PROTECTED]

Hi @ all,

i have some problems, if i load a div with scrollbar like jScrollPane
and set it like $('.scroller').hide() it won't show it if i do $
('.scroller').show(). I saw in the FireBug that the heigt and width is
0px.

Any ideas?

Thx Andi


[jQuery] jQuery back button support w/ forms

2008-11-03 Thread jennyv

Just wondering if there's a reason to prefer one of these history
plugins over the other:

http://www.mikage.to/jquery/jquery_history.html
http://stilbuero.de/jquery/history/

and whether any work has been done on supporting forms for the back button?

Thanks!


[jQuery] Re: Problem with jQuery Round Corners plug-in in IE 67

2008-11-03 Thread Mauricio (Maujor) Samy Silva


Check the parameters for corner()
See: http://malsup.com/jquery/corner/

It seems that there isn't a sintax like that you used.

Try: corner (round nnpx)
Mauricio

-Mensagem Original- 
De: Omid [EMAIL PROTECTED]

Para: jQuery (English) jquery-en@googlegroups.com
Enviada em: segunda-feira, 3 de novembro de 2008 16:28
Assunto: [jQuery] Problem with jQuery Round Corners plug-in in IE 67




Hi,
I used this code in my page to gain rounded corner :
script type=text/javascript
 $(document).ready(function(){
   $(div#right_column).each(function(){
   $(this).corner(round);
   });
 });
/script

There is no problem in FF but I have problem with IE , please have a
view here :
http://i33.tinypic.com/2re6u6u.png

I don`t have online sample now :(
What can I do ?


[jQuery] Re: Problem with jQuery Round Corners plug-in in IE 67

2008-11-03 Thread Mike Alsup

 I used this code in my page to gain rounded corner :
 script type=text/javascript
   $(document).ready(function(){
     $(div#right_column).each(function(){
                 $(this).corner(round);
         });
   });
 /script

 There is no problem in FF but I have problem with IE , please have a
 view here :http://i33.tinypic.com/2re6u6u.png


What version of the script are you using?


[jQuery] Re: search for text and replace or remove the element entirely

2008-11-03 Thread Devin

I think perhaps I wasn't totally clear on what I meant.  My example
was poor.  I want to search a string of text and replace all of the
commas  ,   with the pipe   |
,for example.


On Nov 3, 8:16 am, Jilani Jidni [EMAIL PROTECTED] wrote:
 please try this

 $(#tableId  tr  td).each(function(){
        this.text(your value);

 });

 this should be work for you.

 --
 with regards

 Jilani Jidni



 On Mon, Nov 3, 2008 at 6:41 PM, Devin [EMAIL PROTECTED] wrote:

  Hi

  I'm trying to devise a way to check each cell in a table for a
  particular value.  When the value is found, I want to remove the row
  from the document.  Or, when its found I want to do a replace. (ie $
  (this).innerHTML.replace(name, Devin)   I know that syntax is
  wrong but I think it gets across what I'm trying to do)

  Thanks.

  D- Hide quoted text -

 - Show quoted text -


[jQuery] Re: Advice on sIEve/Drip?

2008-11-03 Thread Jeffrey Kretz
I figured I'd bring this up again - I'm really hoping someone here has some
advice for me on this.

 

Buehler?

 

JK

 

From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jeffrey Kretz
Sent: Friday, October 31, 2008 4:56 PM
To: jquery-en@googlegroups.com
Subject: [jQuery] Advice on sIEve/Drip

 

While debugging my application (which makes heavy use of jQuery), after
several hours IE had consumed about 300MB.

 

So I figure I've got some memory leaks.

 

I tried sIEve 0.8 and wasn't able to find anything specific that was leaking
or causing problems.  I tried the system, dragged things around, opened
various popups, etc.  Basically used a while series of functions on the CMS.
No leaks reported at any time.

 

I then pulled up one of heavier js pages and put it auto-refresh for about
10 minutes.  It slowly went from 61MB to 66MB over a 10 minute period.

 

At no point during the auto-refresh, or during the other stages when I was
actually using the system, dragging things around, etc. were any specific
leaks reported.

 

Are there other actions I can take to track down the problem?

 

I noticed that sIEve/Drop hasn't been updated in over 2 years, so I'm
guessing it's not a maintained project.  Is there a better alternative?

 

JK



[jQuery] Re: search for text and replace or remove the element entirely

2008-11-03 Thread Balazs Endresz

Try this: 
http://flesler.blogspot.com/2008/05/textnode-translator-for-javascript.html

On Nov 3, 9:26 pm, Devin [EMAIL PROTECTED] wrote:
 I think perhaps I wasn't totally clear on what I meant.  My example
 was poor.  I want to search a string of text and replace all of the
 commas  ,   with the pipe   |
 ,for example.

 On Nov 3, 8:16 am, Jilani Jidni [EMAIL PROTECTED] wrote:

  please try this

  $(#tableId  tr  td).each(function(){
         this.text(your value);

  });

  this should be work for you.

  --
  with regards

  Jilani Jidni

  On Mon, Nov 3, 2008 at 6:41 PM, Devin [EMAIL PROTECTED] wrote:

   Hi

   I'm trying to devise a way to check each cell in a table for a
   particular value.  When the value is found, I want to remove the row
   from the document.  Or, when its found I want to do a replace. (ie $
   (this).innerHTML.replace(name, Devin)   I know that syntax is
   wrong but I think it gets across what I'm trying to do)

   Thanks.

   D- Hide quoted text -

  - Show quoted text -


[jQuery] Simple Ajax question

2008-11-03 Thread Thomas

Hi!
I have a basic question with jQueryed ajax. How can I reach elements
by tag name ?

I have this js:
$.ajax({
url:some.xml,
type:   POST,
dataType: ($.browser.msie) ? text : xml,
processData: false,
complete: function(data) {
var xml;
if (typeof data == string) {
xml = new ActiveXObject(Microsoft.XMLDOM);
xml.async = false;
xml.loadXML(data);
} else {
xml = data;
}
alert(xml.responseText);
}
});

and I have this some.xml:
?xml version=1.0 encoding=UTF-8?
root
itemapple/item
itembanana/item
/root


So the problem is, that I don't know how reach items. The old method
(firstChild.text) doesn't works, of course, or does it ?


[jQuery] identifying the nth element and manipulating another nth element

2008-11-03 Thread sperks

I'm wanting to target the nth li in a list after clicking the nth
link.

ul id=targetedArea
  li/li
  li/li
  li/li
  li/li
/ul
div id=clickedItems
  a/a
  a/a
  a/a
  a/a
/div

I can target them all individually, but I know there must be a faster
way by maybe passing the what a element I clicked on.

$(#clickedItem a:eq(2)).click(function() {
  $(#targetedArea:eq(2)).addClass('active');
  return false;
});

Cheers,
Steve


[jQuery] Re: identifying the nth element and manipulating another nth element

2008-11-03 Thread Klaus Hartl

var $a = $('#clickedItems a').click(function() {
$('#targetedArea li').eq($a.index(this)).addClass('active');
return false;
});


--Klaus


On 3 Nov., 23:24, sperks [EMAIL PROTECTED] wrote:
 I'm wanting to target the nth li in a list after clicking the nth
 link.

     ul id=targetedArea
       li/li
       li/li
       li/li
       li/li
     /ul
     div id=clickedItems
       a/a
       a/a
       a/a
       a/a
     /div

 I can target them all individually, but I know there must be a faster
 way by maybe passing the what a element I clicked on.

     $(#clickedItem a:eq(2)).click(function() {
       $(#targetedArea:eq(2)).addClass('active');
       return false;
     });

 Cheers,
 Steve


[jQuery] Trouble with posting results of jquery autocomplete

2008-11-03 Thread Simbarashe

I have been working with the autocomplete library and have the
autocompletion working reasonably well. However, my problem comes when
I want to take the form populated with the results of the user's
selections and then post it to my server side script for final
results. This does not work -- I found other examples that seem to
work, but I don't seem to be able to get my scripts to work the same
way.

I am using this within a .net control:

script type=text/javascript

function findValueCallback(event, data, formatted) {
$(li).html( !data ? No match! : Selected:  +
formatted).appendTo(#result);
}
function formatItem(row) {return row[0] +  (strongid:  + row[1] +
/strong;}
function formatResult(row) {return row[0].replace(/(.+?)/gi, '');}
function formatPlantName(row) {
return div style=\float:right;width:190px;\ + row[0]
+ br /em + row[1] + /em/div style=\float:left;width:50px;
\divimg src=\/images/plants/th/ + row[2] + \ //div;
}

$().ready(function() {
$(#plantsuggest_txt).autocomplete(/PlantSuggestor.ashx, {
delay: 200,
width: 260,
minChars: 0,
selectFirst: true,
formatItem: formatPlantName
})
.result(function(event, data, formatted) {
if (data) $(#plantname).attr('value',data[0]);
});
});

function showPlants() {$
(#plantsuggest_txt).focus().click().click();}

/** Set auto-complete 'Off' on Search Input field **/
jQuery(function() {
//Setting the autocomplete attr
$(#plantsuggest_txt).attr(autocomplete, off);
});
/script

form id=PlantSuggestForm method=get 
div class=plantsuggestor
h4Plant Compatibility/h4
div
label for=plantsuggest_txtSelect or type plant name/
label
br /input id=plantsuggest_txt class=ac_input
type=text /a href=# onclick=showPlants();return false;show
all/ainput type=hidden id=plantname value= /
br /input id=plantsubmit class=searchBtnOK
type=submit value= Find Products /
input type=image src=/images/b/find-products.png
name=image  alt= Find products /
asp:Literal ID=YouTyped runat=server/asp:Literal
/div
/div
/form

If I try using the image button, I see in my url that it passes the .x
and .y values, but other form values are not submitted. I have checked
using Firebug and the trace.axd for form and querystring variables,
but they do not get passed to the server.


[jQuery] Crossbrowser with Jquery Extension fieldSelection

2008-11-03 Thread Diego Pessoa

Hi,
I'm using the Jquery extension fieldSelection ( See at:
http://laboratorium.0xab.cd/jquery/fieldselection/0.2.3-test/test.html
)

This extension resolves the selectRange problem of the tradicional
javascript, but, I found another problem now, the start and end
positions returned are different in IE and FF.

Look at this:
In the fieldselection extension's site, we've a example box, when I
select the word test of the second textarea, in the Internet
Explorer it shows:
start: 31 , end: 35

and in the Firefox:
start: 29, end: 33

This difference is because the firefox don't count the \n
caracter... How can I get the same positions in both browsers?

Thankx,
Diego Pessoa



[jQuery] Bug in IE7 - Complains about Opera bindReady code in jquery

2008-11-03 Thread Gregoriusness

hey all,

I initially posted this on the developer forum, but not sure if that
was the best place for it so reposting here.

I've got an issue with jQuery in IE7.  It is throwing the following
error:

Line: 2355
Error: Object doesn't support this property or method

Looking at jquery source (v1.2.6), on that line is the Opera condition
for the bindReady() event, ie:

if ( jQuery.browser.opera )
document.addEventListener( DOMContentLoaded,
function () {
if (jQuery.isReady) return;
for (var i = 0; i 
document.styleSheets.length; i++)
if (document.styleSheets[i].disabled)
{
setTimeout( arguments.callee,
0 );
return;
}
// and execute any waiting functions
jQuery.ready();
}, false);

If i comment out this block of code, all works fine (even in opera).

is this a known bug?  is there a workaround (besides what i've done)??

thanks heaps
greg


[jQuery] Re: Advice on sIEve/Drip?

2008-11-03 Thread mattkime

I found that using sIEve wasn't that much more useful than just
watching IE memory usage.

Your code leaks even if you can't figure out where it is. I traced
down my own leaks by running suspect functions 1,000s of times.

--matt

On Nov 3, 3:38 pm, Jeffrey Kretz [EMAIL PROTECTED] wrote:
 I figured I'd bring this up again - I'm really hoping someone here has some
 advice for me on this.

 Buehler?

 JK

 From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Jeffrey Kretz
 Sent: Friday, October 31, 2008 4:56 PM
 To: jquery-en@googlegroups.com
 Subject: [jQuery] Advice on sIEve/Drip

 While debugging my application (which makes heavy use of jQuery), after
 several hours IE had consumed about 300MB.

 So I figure I've got some memory leaks.

 I tried sIEve 0.8 and wasn't able to find anything specific that was leaking
 or causing problems.  I tried the system, dragged things around, opened
 various popups, etc.  Basically used a while series of functions on the CMS.
 No leaks reported at any time.

 I then pulled up one of heavier js pages and put it auto-refresh for about
 10 minutes.  It slowly went from 61MB to 66MB over a 10 minute period.

 At no point during the auto-refresh, or during the other stages when I was
 actually using the system, dragging things around, etc. were any specific
 leaks reported.

 Are there other actions I can take to track down the problem?

 I noticed that sIEve/Drop hasn't been updated in over 2 years, so I'm
 guessing it's not a maintained project.  Is there a better alternative?

 JK


[jQuery] method to convert object to query string?

2008-11-03 Thread mattkime

Does jQuery provide a util to convert an object to a query string?

I'm converting a project from mootools using Hash.toQueryString to
jQuery.

(p.s., I've searched google, this list, and the jquery code and i
haven't found anything as simple as i was hoping for.)


[jQuery] timer and .post

2008-11-03 Thread jpratt

I have an ap built on the portable application here: http://portablewebap.com/

I also use the timer plugin and have a .post function that saves for
data every 1/2 second. On some computers I get errors of timing out.
Is this because it is running my php file too frequently? Thanks for
the help.


[jQuery] on the fly div and ui droppable problem

2008-11-03 Thread [EMAIL PROTECTED]

hi all

i found a problem with jquery ui droppable,

i give the target div a css class which drag and drop is working
fine , but when i create another div with the class on the fly and
append it to the HTML the drop doesn't work

are there any solution ?
the code is like that
script
$(.pheader).droppable({
accept: .ads,
drop: function(ev, ui) {
ui.draggable.clone().fadeOut(fast,
function() {
$(this).fadeIn(fast) ;
 }).appendTo($(this).empty());
}
});
/*  the problem div */
$('div class=pheader nbsp;/div').appendTo(#ground);
/script


[jQuery] Callback after ALL elements in set animated?

2008-11-03 Thread Bob

Hey guys...

Don't seem to be able to find an answer to this. Is there a way to
fire a callback after ALL elements in a wrapped set have been
animated? Instead of after each one is animated? It kind of looked
like queue would do something similar to this... but since animate or
show... or whatever effect is passing back EACH item into the chain,
the queue is applied to each individually with the same effect.

Best,
Bob


[jQuery] Crossbrowser problem with Jquery Extension fieldSelection

2008-11-03 Thread Diego Pessoa

Hi,
I'm using the Jquery extension fieldSelection ( See at:
http://laboratorium.0xab.cd/jquery/fieldselection/0.2.3-test/test.html
)

This extension resolves the selectRange problem of the tradicional
javascript, but, I found another problem now, the start and end
positions returned are different in IE and FF.

Look at this:
In the fieldselection extension's site, we've a example box, when I
select the word test of the second textarea, in the Internet
Explorer it shows:
start: 31 , end: 35

and in the Firefox:
start: 29, end: 33

This difference is because the firefox don't count the \n
caracter... How can I get the same positions in both browsers?

Thankx,
Diego Pessoa


[jQuery] Re: identifying the nth element and manipulating another nth element

2008-11-03 Thread sperks

Thanks Klaus,

I got another answer elsewhere (apologies for doubling up the
request).

Here's the answer I got from the other forum which is similar to your,
but I found it more in tune with my scripting style:

$('#clickedItems a').click(function() {
// figure out what position this element is in
   var n = $('#clickedItems a').index($(this) );
// update the targetedArea
   $('#targetedArea li:eq('+n+')').html('updated!');
   return false;
});


On Nov 3, 5:30 pm, Klaus Hartl [EMAIL PROTECTED] wrote:
 var $a = $('#clickedItems a').click(function() {
     $('#targetedArea li').eq($a.index(this)).addClass('active');
     return false;

 });

 --Klaus

 On 3 Nov., 23:24, sperks [EMAIL PROTECTED] wrote:

  I'm wanting to target the nth li in a list after clicking the nth
  link.

      ul id=targetedArea
        li/li
        li/li
        li/li
        li/li
      /ul
      div id=clickedItems
        a/a
        a/a
        a/a
        a/a
      /div

  I can target them all individually, but I know there must be a faster
  way by maybe passing the what a element I clicked on.

      $(#clickedItem a:eq(2)).click(function() {
        $(#targetedArea:eq(2)).addClass('active');
        return false;
      });

  Cheers,
  Steve


[jQuery] Re: Can I include more than one js file with its own $(document).ready callback?

2008-11-03 Thread Karl Rudd

The answer to your first question is: Yes.
As to your second question: Maybe, it all depends on the complexity of the code.

Karl Rudd

On Tue, Nov 4, 2008 at 4:59 AM, Gurunandan [EMAIL PROTECTED] wrote:

 Can I include two files each with their own $(document).ready
 (function() {}) callback - of course with different functions. Is
 yes, is this efficient and are there better and cleaner ways to make
 my code more modular?

 Thanks and regards
 Gurunandan



[jQuery] Re: Advice on sIEve/Drip?

2008-11-03 Thread Jeffrey Kretz

OUCH.

With over 25,000 lines of javascript code (full featured CMS) that's a
nightmare to track down.

Am I out of luck?  Are there no other alternative tools like sIEve that are
still in development?

Arrgh.
JK

-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of mattkime
Sent: Monday, November 03, 2008 1:16 PM
To: jQuery (English)
Subject: [jQuery] Re: Advice on sIEve/Drip?


I found that using sIEve wasn't that much more useful than just
watching IE memory usage.

Your code leaks even if you can't figure out where it is. I traced
down my own leaks by running suspect functions 1,000s of times.

--matt

On Nov 3, 3:38 pm, Jeffrey Kretz [EMAIL PROTECTED] wrote:
 I figured I'd bring this up again - I'm really hoping someone here has
some
 advice for me on this.

 Buehler?

 JK

 From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Jeffrey Kretz
 Sent: Friday, October 31, 2008 4:56 PM
 To: jquery-en@googlegroups.com
 Subject: [jQuery] Advice on sIEve/Drip

 While debugging my application (which makes heavy use of jQuery), after
 several hours IE had consumed about 300MB.

 So I figure I've got some memory leaks.

 I tried sIEve 0.8 and wasn't able to find anything specific that was
leaking
 or causing problems.  I tried the system, dragged things around, opened
 various popups, etc.  Basically used a while series of functions on the
CMS.
 No leaks reported at any time.

 I then pulled up one of heavier js pages and put it auto-refresh for about
 10 minutes.  It slowly went from 61MB to 66MB over a 10 minute period.

 At no point during the auto-refresh, or during the other stages when I was
 actually using the system, dragging things around, etc. were any specific
 leaks reported.

 Are there other actions I can take to track down the problem?

 I noticed that sIEve/Drop hasn't been updated in over 2 years, so I'm
 guessing it's not a maintained project.  Is there a better alternative?

 JK



[jQuery] Jquery Cycle - Pager with maximum 10 links

2008-11-03 Thread Azzlack


Is it possible to configure the cycle plugin so that it only shows a maximum
of 10 numbers in the pager + prev and next?

Or is it best to use a plugin like scrollTo for this purpose?
-- 
View this message in context: 
http://www.nabble.com/Jquery-Cycle---Pager-with-maximum-10-links-tp20312728s27240p20312728.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Jquery Cycle - Determine active slide

2008-11-03 Thread Azzlack


I have a mixture of images and flash movies (using JW Media Player) in my
slideshow.
The flash movies are set to autostart, which works good in every browser
except IE, because instead of starting the movie when the slide is visible
like the other browsers, it starts it when the page loads.

So I have to find a way to circumvent that problem, and I thought that maybe
I can take away the autostart and just send an javascript play event to
the flashplayer when a movie is in the active slide.

But how can I find out what is the active slide? There is a class for it in
the pager, but I need to find out if my slideshow div currently shows a
object/embed element or an img element.
-- 
View this message in context: 
http://www.nabble.com/Jquery-Cycle---Determine-active-slide-tp20312669s27240p20312669.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: Bug in IE7 - Complains about Opera bindReady code in jquery

2008-11-03 Thread Jeffrey Kretz

This is a bit confusing.  Is IE7 running that block of code, even though its
earmarked for Opera?

Like is the browser detection is failing?

Or is IE7 failing when that code is there even though it never runs it?
Meaning, the bug went away when you commented out code that is never
reached?

JK

-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Gregoriusness
Sent: Monday, November 03, 2008 2:31 PM
To: jQuery (English)
Subject: [jQuery] Bug in IE7 - Complains about Opera bindReady code in
jquery


hey all,

I initially posted this on the developer forum, but not sure if that
was the best place for it so reposting here.

I've got an issue with jQuery in IE7.  It is throwing the following
error:

Line: 2355
Error: Object doesn't support this property or method

Looking at jquery source (v1.2.6), on that line is the Opera condition
for the bindReady() event, ie:

if ( jQuery.browser.opera )
document.addEventListener( DOMContentLoaded,
function () {
if (jQuery.isReady) return;
for (var i = 0; i 
document.styleSheets.length; i++)
if (document.styleSheets[i].disabled)
{
setTimeout( arguments.callee,
0 );
return;
}
// and execute any waiting functions
jQuery.ready();
}, false);

If i comment out this block of code, all works fine (even in opera).

is this a known bug?  is there a workaround (besides what i've done)??

thanks heaps
greg



[jQuery] Using Embedit for jquery agile not working

2008-11-03 Thread cocotu

please help me set this up, i have being playing with the jcarousel,
but not been able to integrate it with wordpress, but the one i really
want to integrate is the agile carousel with the example shown here:
http://chatwin.com.do/wp2/testj/carousel.html
i'm using the Embedit plugin following instructions here:
http://www.masternewmedia.org/news/2008/02/22/embed_any_video_or_html.htm
and still no luck. this is all i get: http://chatwin.com.do/wp2/?p=36
thanks for your help!


[jQuery] Re: identifying the nth element and manipulating another nth element

2008-11-03 Thread ricardobeat

Another possible solution, might be a bit faster:

$('#clickedItems a').each(function(i){
   $(this).click(function(){
 $('#targetedArea li').eq(i).html('woo');
   });
});

On Nov 3, 9:11 pm, sperks [EMAIL PROTECTED] wrote:
 Thanks Klaus,

 I got another answer elsewhere (apologies for doubling up the
 request).

 Here's the answer I got from the other forum which is similar to your,
 but I found it more in tune with my scripting style:

 $('#clickedItems a').click(function() {
 // figure out what position this element is in
    var n = $('#clickedItems a').index($(this) );
 // update the targetedArea
    $('#targetedArea li:eq('+n+')').html('updated!');
    return false;

 });

 On Nov 3, 5:30 pm, Klaus Hartl [EMAIL PROTECTED] wrote:

  var $a = $('#clickedItems a').click(function() {
      $('#targetedArea li').eq($a.index(this)).addClass('active');
      return false;

  });

  --Klaus

  On 3 Nov., 23:24, sperks [EMAIL PROTECTED] wrote:

   I'm wanting to target the nth li in a list after clicking the nth
   link.

       ul id=targetedArea
         li/li
         li/li
         li/li
         li/li
       /ul
       div id=clickedItems
         a/a
         a/a
         a/a
         a/a
       /div

   I can target them all individually, but I know there must be a faster
   way by maybe passing the what a element I clicked on.

       $(#clickedItem a:eq(2)).click(function() {
         $(#targetedArea:eq(2)).addClass('active');
         return false;
       });

   Cheers,
   Steve


[jQuery] [validate] - submit works after fixing only one required field

2008-11-03 Thread Info


Not sure if anyone has run into this...might be a bug. I even see it
happening on the demo page for the great validate plug in.

I am using the code to capture all of the validation messages in one
container. When you enter nothing and hit submit you get the messages
just fine, but if you correct one of them and hit resubmit it will
allow the page to submit even though there are still required fields.
Go to the top demo here:

http://jquery.bassistance.de/validate/demo/errorcontainer-demo.html

hit submit, then enter 3 chars in the top field...hit submit again. It
will submit the form.

Anyone else run into this?





[jQuery] Re: Jquery Cycle - Pager with maximum 10 links

2008-11-03 Thread Mike Alsup

 Is it possible to configure the cycle plugin so that it only shows a maximum
 of 10 numbers in the pager + prev and next?

There's no setting for the 'max' number of pager links, but you can
make it work with some css tricks.  Here's a quick demo that has eight
slides but only 3 pager links:

http://www.malsup.com/jquery/cycle/pager11.html



[jQuery] Re: Jquery Cycle - Determine active slide

2008-11-03 Thread Mike Alsup

 But how can I find out what is the active slide? There is a class for it in
 the pager, but I need to find out if my slideshow div currently shows a
 object/embed element or an img element.

You can use the 'before' or 'after' callbacks for that.

$('#slideshow').cycle({
before: onBefore
});

function onBefore(curr, next, opts) {
// next is the element that is about
// to be transitioned in

var tag = next.tagName.toLowerCase();
if (tag == 'object' || tag == 'embed') {
// start playing media
}
};




[jQuery] [validate] adding custom variables

2008-11-03 Thread Geoff

Hi,

I'm using Jörn Zaefferer's jQuery Validation Plugin, and I'm wanting
to add my own variable for phone numbers. What I could do is edit the
variable that already exists for digits and just make it so it accepts
hyphens, dashes and minus signs. Can anyone give me any help on doing
this as I am really new to jQuery. I would really appreciate it.

Thanks,

Geoffrey Woitt


[jQuery] Large text files via AJAX

2008-11-03 Thread list-jquery

Greets all.

I have an application which passes large amounts of plain text to update
a pre id=textdata/pre block on the client. This is all plain text
and can range in size from a few bytes to 64MB. Typically though the
text files are less than 1MB. 

Updating the pre block can be slow. I'm sending the request via POST and
getting the data back in a json object along with some metadata about
the text file. I'm starting to look at this and I'm thinking that I
would see better performance by breaking out the request into two parts:

0) Make sure the data is gziped
1) Request the text file via POST and get json response of metadata only
2) Update the web page from the json response
3) Second request to update the pre block directly from text data GET
request

Thoughts?  What is the fastest way to update a text block with large
amount of plain text? Paging isn't an option here :)

Thanks.

--
Scott


[jQuery] Read table values ...

2008-11-03 Thread GrootBaas

Hi there,

I have the following table. And I need to save the user input to the
database.

How can I do this….

I have used jQuery DB class.

var arr_value = new Array( $($('.odo').select('.prvt_days'))[0][0], $($
('.odo').select('.prvt_days'))[0][1], $($('.odo').select('.prvt_days'))
[0][2] );

alert('array '+arr_value)
document.save_logs.table.value = arr_value;

Works great for all the values except the form input values. Which is
the ones I need.

Any help will be much appreciated, as my head is going to roll.


echo table class=\odo\ width=\100%\\n;

 while ($veh_det = oci_fetch_assoc($veh_details)) {

  echo tr\n;
  echo   td class=\period\ width=\12%\ style=
\padding: 2px;\\n;
   echo $veh_det['PERIOD'];
  echo /td\n;
  echo td class=\start_odo\ width=\12%\ style=
\padding: 2px;\\n;
   echo $veh_det['START_ODO'];
  echo /td\n;
  echo   td class=\end_odo\ width=\12%\ style=
\padding: 2px;\\n;
   echo form_input(array('name'='log_end_odo',
   'id'='log_end_odo',
'maxlength'='20',
 'size'='20',
'value'= $veh_det['END_ODO']),
1);

  echo /td\n;
  echo   td class=\prvt_km\ width=\12%\ style=
\padding: 2px;\\n;
   echo form_input(array('name'='prvt_km',
   'id'='prvt_km',
'maxlength'='20',
 'size'='20',
'value'= $veh_det['PRVT_KM']),
2);
  echo /td\n;
  echo   td class=\prvt_days\ width=\12%\ style=
\padding: 2px;\\n;
   echo form_input(array('name'='prvt_days',
   'id'='prvt_days',
'maxlength'='20',
  'size'='20',
'value'= $veh_det['PRVT_DAYS']),
3);
 }

 echo /table;


[jQuery] Re: Unresponsive script when navigating away

2008-11-03 Thread Cheng S . Kai

Thanks.! will try that

Regards,
Kai




 Date: Sat, 1 Nov 2008 18:07:18 +1100
 From: [EMAIL PROTECTED]
 To: jquery-en@googlegroups.com
 Subject: [jQuery] Re: Unresponsive script when navigating away
 
 
 Oh and :checkbox is a shortcut for input[type=checkbox].
 
 Karl Rudd
 
 On Sat, Nov 1, 2008 at 6:05 PM, Karl Rudd [EMAIL PROTECTED] wrote:
  Instead of doing the search each time, cache the selected objects.
 
  script type=text/javascript
$(document).ready(function (){
var checkboxes = $('div[name=limit1] label
  input[type=checkbox]');
checkboxes.bind('click',function(){
checkboxes.each(function(){
this.checked = ;
});
this.checked = checked;
});
});
  /script
 
  Karl Rudd
 
  On Thu, Oct 30, 2008 at 2:59 PM, bugpanye [EMAIL PROTECTED] wrote:
 
 
  script type=text/javascript
 $(document).ready(function (){
 $('div[name=limit1] label 
  input[type=checkbox]').bind('click',function(){
 $('div[name=limit1] label 
  input[type=checkbox]:checked').each(function(){
 this.checked = ;
 });
 this.checked = checked;
 });
 });
  /script
 
  hi all,
 
  the code above i use to make a list of checkbox limited to one selection at
  a time, my trouble is that now i have over 100+ checkboxes, the script
  becomes extremely sluggish and gives me the Unresponsive script warning 
  when
  i reload the page..
 
  is there anyway to speed up this script?:super:
 
  -
  bugpanye-backpacks
  http://www.e-packs.com healthy backpacks for all
  --
  View this message in context: 
  http://www.nabble.com/Unresponsive-script-when-navigating-away-tp20240183s27240p20240183.html
  Sent from the jQuery General Discussion mailing list archive at Nabble.com.
 
 
 

_
Manage multiple email accounts with Windows Live Mail effortlessly.
http://www.get.live.com/wl/all

[jQuery] Validate. Check Boxes

2008-11-03 Thread shapper

Hello,

I have 5 check boxes all with the same name forming a group.
Is it possible to use validate so I require at least one checkbox to
be checked?

Thanks,
Miguel


[jQuery] Arabic tutorials first of Arabic tutorials

2008-11-03 Thread islam

Hi every One this is my first post and i want to say  that it's glad
to be the First One to write a arabic and it's a video tutorial and a
introduction to jquery with the arabic language in text Mode
the text tutorial is here :
http://www.hack-systems.com/2008/11/01/introduction-to-jquery-in-arabic/
and the Video Tutorials is there :
http://www.hack-systems.com/2008/11/03/get-start-with-jquery-arabicget-start-with-jquery-arabic/

the Description :
in this tutorials we will get to Now the jquery library in good way in
this tutorial we will get to know this steps setup the page for this
library the Hello world example and the select Elements and the Events
And the Effects


Thanks Every One .


[jQuery] Not working in IE

2008-11-03 Thread Scuz

Hi,

I've added a jquery lightbox to a website and everything looks fine
except the background overlay is not showing up in IE (works fine in
Firefox).  Been digging around the code but just can't figure it out.
Anybody have any ideas??

http://dessertsintl.com/products.html#8cakes ( click on either of the
2 links).

thank you!


[jQuery] Select Box

2008-11-03 Thread Rajanikanth

Hi All,

I m trying to use the below plugin for expanding the options if their
length. its not working as i m using latest JQuery
1.2.6. which is not working.

Please let me know if you guys have used it with latest JQuery.


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

Thanks in Advance.

Thanks  Regards,
Rajanikanth R



[jQuery] Problems with Firefox

2008-11-03 Thread Amit

hi all,
installed the plugin and it works great of Safari but i seem to have
problems in firefox, it looks like it doesn't initialize the plugin..
u can see sample here http://new.yalla-ya.com/melinda-nicci/ .
i also dont get any errors at all in the console, don't see how it is
related but it's built on wordpress.
i also tried adding the ($.browser.safari || $.browser.mozilla) hack
from one the other posts but nothing..
i also tried removing completely the other jquery scripts i have there
and nothing helps.
thanks for any help and for the precious time!
Amit


[jQuery] Re: How to load only one image at a time using JQuery Cycle Plugin?

2008-11-03 Thread OutOfTouch

Hi Mike,

Thanks for the help with the change event hookup and the new example.
Can I have no slides preloaded and just load them on the fly?

I have dropdown where users will choose what category they want to
view images from that will make an ajax call to get the images for the
selected category. I am also planning to show text for each image and
wrap each image in an anchor tag, so that when the image is clicked
they will go to a differrent page within my website depending on the
image clicked.

Can I clear out what was previously loaded, so the only the selected
category is being viewed?

Again thanks for all your help.






[jQuery] Re: Read table values ...

2008-11-03 Thread GrootBaas

Reading the table fields I can do, but as soon as the TD element
contains a input field, I am unable to read the cell value.

Is there any other way of doing this?


On Nov 4, 12:07 pm, GrootBaas [EMAIL PROTECTED] wrote:
 Hi there,

 I have the following table. And I need to save the user input to the
 database.

 How can I do this….

 I have used jQuery DB class.

 var arr_value = new Array( $($('.odo').select('.prvt_days'))[0][0], $($
 ('.odo').select('.prvt_days'))[0][1], $($('.odo').select('.prvt_days'))
 [0][2] );

 alert('array '+arr_value)
 document.save_logs.table.value = arr_value;

 Works great for all the values except the form input values. Which is
 the ones I need.

 Any help will be much appreciated, as my head is going to roll.

 echo table class=\odo\ width=\100%\\n;

  while ($veh_det = oci_fetch_assoc($veh_details)) {

   echo tr\n;
   echo   td class=\period\ width=\12%\ style=
 \padding: 2px;\\n;
echo $veh_det['PERIOD'];
   echo /td\n;
   echo td class=\start_odo\ width=\12%\ style=
 \padding: 2px;\\n;
echo $veh_det['START_ODO'];
   echo /td\n;
   echo   td class=\end_odo\ width=\12%\ style=
 \padding: 2px;\\n;
echo form_input(array('name'='log_end_odo',
'id'='log_end_odo',
 'maxlength'='20',
  'size'='20',
 'value'= $veh_det['END_ODO']),
 1);

   echo /td\n;
   echo   td class=\prvt_km\ width=\12%\ style=
 \padding: 2px;\\n;
echo form_input(array('name'='prvt_km',
'id'='prvt_km',
 'maxlength'='20',
  'size'='20',
 'value'= $veh_det['PRVT_KM']),
 2);
   echo /td\n;
   echo   td class=\prvt_days\ width=\12%\ style=
 \padding: 2px;\\n;
echo form_input(array('name'='prvt_days',
'id'='prvt_days',
 'maxlength'='20',
   'size'='20',
 'value'= $veh_det['PRVT_DAYS']),
 3);
  }

  echo /table;


[jQuery] Re: Not working in IE

2008-11-03 Thread tres

It does show up (in IE7), but it doesn't take into account the scroll
offset and just places itself at the top of the page and is only
assigned the height of the viewport, not the document. What it should
do is make itself the height and width of the document and problem
solved (even when scrolling). I've had this problem with this plugin
before which spurred me to write my own since I also had extensibility
issues with it.

I'm can't remember off the top of my head where I made the change, but
if you need me to dl the plugin and fix it up for you, I'd be happy
to. If so, could you send me a link to where I can download it and I'd
be happy to help you out.

Cheers,
Trey

On Nov 4, 12:18 pm, Scuz [EMAIL PROTECTED] wrote:
 Hi,

 I've added a jquery lightbox to a website and everything looks fine
 except the background overlay is not showing up in IE (works fine in
 Firefox).  Been digging around the code but just can't figure it out.
 Anybody have any ideas??

 http://dessertsintl.com/products.html#8cakes( click on either of the
 2 links).

 thank you!


[jQuery] the corner plugin fails with convulted css in firefox

2008-11-03 Thread alex bodnaru

hello friends,

i spent this night with the hope to make the jquery.corner plugin
replace mochikit.visual in a production project.

my problem is mainly that the css governing this page may probably
have set a height for the roundable element, and then firefox took the
'absolute' position too literally.

i'd suggest removing the first line containing ds.position =
'absolute', or conditioning it to non firefox browsers. this way,
firefox worked fine, as msie did.

thanks for your consideration, and for sharing your wonderful work,
alex


[jQuery] Re: Firefox is showing error console with no errors?

2008-11-03 Thread jimster

No help?

On Oct 27, 10:50 am, jimster [EMAIL PROTECTED] wrote:
 Hi there, I'm creating a one page ordering system that lets kids and
 parents order lunch.

 http://clients.blazemelbourne.com.au/cc/order.php

 It's designed to allow multiple kids and weeks per page, swapping the
 active ones around using jquery.

 Works splendidly in almost every browser exceptFirefox. OnFirefox3
 it's just really really slow and jerky. OnFirefox1-2 it's just as
 slow and particulary on 1 and 1.5 the animation is displayed very
 poorly - the biggest problem is thatFirefox1-2 are throwing up 
 theerrorconsole every time a function is executed - and there are no
 errors displayed, it's just bringing an empty window up.

 Here is my code:

 $(document).ready(function(){

         // Get container width

         var contWidth = 0;
         $(#container  div).each(function() {
                 var object = $(this);
                 contWidth += object.width();
         });
         $(#container).width(contWidth);

         // Mark first kid as selected

         $(#container  .kid:first-child).addClass(selected);
         $(#kidmenu li:first-child).children().addClass(active);

         // Mark first weeks as selected

         $(#container  .kid  .week:first-child).addClass(selected);
         $(#weekmenu li:first-child).children().addClass(active);

         // Change kid

         $(#kidmenu li a).click(function() {
                 changeKid(this);
         });

         function changeKid(item) {
                 // Calculates index
                 var ki = $(#kidmenu  li  a).index(item);

                 // Selects current kid
                 var sk = $(#container .kid:eq( + ki + ));
                 sk.addClass(selected);
                 sk.siblings().removeClass(selected);

                 // Marks menu item as active
                 $(item).addClass(active);
                 $(item).parent().siblings().children().removeClass(active);

                 // Correct active week menu
                 var swi = $('.week',sk).index($('.week.selected',sk));
                 $(#weekmenu  li:eq( + swi + )  a).addClass(active);
                 $(#weekmenu  li:eq( + swi +
 )).siblings().children().removeClass(active);

                 // Moves container
                 var distance = ki*870;
                 $(#container).animate({left:-(distance)},1000);
         };

         // Change week

         $(#weekmenu li a).click(function() {
                 changeWeek(this);
         });

         function changeWeek(item) {
                 // Calculates index
                 var wi = $(#weekmenu  li  a).index(item);

                 // Select current week
                 var sw  = $(#container  .selected  .week:eq( + wi +));
                 sw.addClass(selected);
                 sw.siblings().removeClass(selected);

                 // Mark menu item as active
                 $(item).addClass(active);
                 $(item).parent().siblings().children().removeClass(active);

                 // Moves kid
                 var distance = wi*600;
                 $(#container  
 .selected).animate({marginTop:-(distance)},1000);

         };

         // label tables odd/even

         $(document).ready(function(){
                 $(#container table.menu:even).addClass(even);
                 $(#container table.menu:odd).addClass(odd);
         });

 });

 I'm currently using the uncompressed version of jquery 1.2.6.

 Check out the actual link for the html.

 If anyone has had any similar problems with sliding jquery windows 
 anderrorconsole windows inFirefoxit be great to here what you did to
 fix em up.

 All the best


[jQuery] Event trigger ajax event

2008-11-03 Thread Nic Hubbard

I am confused when it comes to triggering an ajax event.  I would like
to trigger a ajaxStart event, so I use:

$.event.trigger(ajaxStart);

But now, what will that trigger?  What piece of code?  Do I need to
have an $.ajax() function somewhere, so that when I trigger the
ajaxStart, it will pick up that ajax function?

Help me understand how these can work together!

Thanks!


[jQuery] Re: event.preventDefault() seems to fail

2008-11-03 Thread Prajwala Manchikatla
I just changed input button type from submit to button. Then it is working
as your need. The submit button will always call the form submit when ever
it is clicked, even when you press enter also it call the form submit. But
normal button do not call form submit all the time.
!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
   titleTest/title
   script language=javascript type=text/javascript
src=jquery-1.2.6.js/script
   script language=javascript type=text/javascript
 $(function() {
   $(:text).keypress(function(e) {
 if (e.which == 13) {
   e.preventDefault();
 }
   });
   $(#txt).keypress(function(e) {
 if (e.which == 13) {
   $(#btn).click();
 }
   });
   $(#btn).click(function(e) {
 e.preventDefault();
 alert(Button clicked);
   });
 });
   /script
   /head
   body
 form method=post action=test.html
   div
 input id=txt type=text /
 input id=btn type=button value=Submit /
   /div
 /form
   /body
/html


On Mon, Nov 3, 2008 at 7:17 AM, Hullah [EMAIL PROTECTED] wrote:


 Ok, I see what you're saying now.  But stopPropigation doesn't work in
 this case either.  Looking at the code sample that I posted at the
 beginning, even if I add a e.stopPropagation() after the
 preventDefault() it still causes the form to submit.