[jQuery] Re: [validate] Problem with code in ie6 - Object doesn't support method

2008-09-20 Thread Mattl

Thanks for the feedback, I have not finished the design yet, still
working on functionality, but will make the changes as you suggest.

In the meantime, can anyone comment on the problem I posted about?

Thanks
Matt

On Sep 20, 11:22 pm, "Michael Geary" <[EMAIL PROTECTED]> wrote:
> I don't know about the IE6 error, but a comment on the site design: Many of
> your patients will be completely unable to use the site because of the
> unreadable text.
>
> The text size is 12px, which is far too small for many people. The site
> should not be using a px size at all.
>
> It's Trebuchet, which is an attractive looking font but poor for readability
> - and at any given font size, Trebuchet uses smaller glyphs than other
> fonts, making the font size problem worse.
>
> The text color is #44, which means you've given up over 25% of the
> available contrast.
>
> I know that's not the information you were looking for in posting here, but
> there won't be much point in fixing JavaScript bugs if patients can't read
> the text. Ditch Trebuchet - Verdana is the best choice for readability on a
> wide variety of displays. Go for full black on white, and use big text in em
> sizes.
>
> Remember, no one will ever complain that the site is too *easy* to read. :-)
>
> -Mike
>
> > From: Mattl
>
> > Hi,
> > Any chance someone could look at the following and give me some clues?
>
> >http://www.edenvillamedical.co.uk/
>
> > The jqQuery Validate function works fine in Safari, Firefox,
> > Opera but throws an error in ie6 (i've not been able to test
> > yet in ie7).
> > Validates the form under the 'Prescriptions' tab.
>
> > The error is:
>
> > Line: 30
> > Char: 1
> > Error: Object doesn't support this property or method
>
> > Can't figure this out, any help really appreciated.
>
> > Regards
> > Matt


[jQuery] Re: fadeTo animation repeats multiple times in Firefox...why?

2008-09-20 Thread Ariel Flesler

What about the official docs ?
http://docs.jquery.com/Effects/stop

--
Ariel Flesler
http://flesler.blogspot.com/

On Sep 20, 11:27 pm, Storm <[EMAIL PROTECTED]> wrote:
> Ricardo:
>
> Thank you! I've been search for hours trying to figure out to cancel
> the animations. I didn't even think to put the stop() BEFORE the
> effect. Someone should really put that in there via a demo or tutorial
> or something. >.<


[jQuery] Re: jQuery programmer needed

2008-09-20 Thread Richard D. Worth
Here's a resource:

http://jobs.jsninja.com/

- Richard

On Sat, Sep 20, 2008 at 5:03 PM, kjenkins <[EMAIL PROTECTED]> wrote:

>
> Greetings,
>
> I am in need of a jQuery programmer to help me customize some scripts.
> I would be grateful if somebody would point me in the direction of a
> group or resource for jQuery freelance programmers  Many thanks in
> advance.
>
> Regards,
> Jason
>


[jQuery] Re: fadeTo animation repeats multiple times in Firefox...why?

2008-09-20 Thread Storm

Ricardo:

Thank you! I've been search for hours trying to figure out to cancel
the animations. I didn't even think to put the stop() BEFORE the
effect. Someone should really put that in there via a demo or tutorial
or something. >.<


[jQuery] Re: [validate] Problem with code in ie6 - Object doesn't support method

2008-09-20 Thread Michael Geary

I don't know about the IE6 error, but a comment on the site design: Many of
your patients will be completely unable to use the site because of the
unreadable text.

The text size is 12px, which is far too small for many people. The site
should not be using a px size at all.

It's Trebuchet, which is an attractive looking font but poor for readability
- and at any given font size, Trebuchet uses smaller glyphs than other
fonts, making the font size problem worse.

The text color is #44, which means you've given up over 25% of the
available contrast.

I know that's not the information you were looking for in posting here, but
there won't be much point in fixing JavaScript bugs if patients can't read
the text. Ditch Trebuchet - Verdana is the best choice for readability on a
wide variety of displays. Go for full black on white, and use big text in em
sizes.

Remember, no one will ever complain that the site is too *easy* to read. :-)

-Mike

> From: Mattl
> 
> Hi,
> Any chance someone could look at the following and give me some clues?
> 
> http://www.edenvillamedical.co.uk/
> 
> The jqQuery Validate function works fine in Safari, Firefox, 
> Opera but throws an error in ie6 (i've not been able to test 
> yet in ie7).
> Validates the form under the 'Prescriptions' tab.
> 
> The error is:
> 
> Line: 30
> Char: 1
> Error: Object doesn't support this property or method
> 
> Can't figure this out, any help really appreciated.
> 
> Regards
> Matt
> 



[jQuery] [validate] Problem with code in ie6 - Object doesn't support method

2008-09-20 Thread Mattl

Hi,
Any chance someone could look at the following and give me some clues?

http://www.edenvillamedical.co.uk/

The jqQuery Validate function works fine in Safari, Firefox, Opera but
throws an error in ie6 (i've not been able to test yet in ie7).
Validates the form under the 'Prescriptions' tab.

The error is:

Line: 30
Char: 1
Error: Object doesn't support this property or method

Can't figure this out, any help really appreciated.

Regards
Matt


[jQuery] jQuery programmer needed

2008-09-20 Thread kjenkins

Greetings,

I am in need of a jQuery programmer to help me customize some scripts.
I would be grateful if somebody would point me in the direction of a
group or resource for jQuery freelance programmers  Many thanks in
advance.

Regards,
Jason


[jQuery] Re: Treeview problem with checkboxes in IE

2008-09-20 Thread mrhankey

The page is:
test.cloudbase.org.nz/node/126

The list is below the google earth plugin. It is populated by a script
in the page. It is running in Drupal 5.7 but I have patched it up to
jQuery 1.2.6

Cheers

On Sep 21, 12:40 am, "Jörn Zaefferer" <[EMAIL PROTECTED]>
wrote:
> Could you post a testpage?
>
> On Sat, Sep 20, 2008 at 9:35 AM, mrhankey <[EMAIL PROTECTED]> wrote:
>
> > I have set up a tree using Treeview where each list item includes a
> > checkbox input. This works perfectly on Firefox but with IE 6 & 7
> > every time I expand a tree branch the checkboxes in the branch all
> > disappear almost immediately after the branch opens. Furthermore, when
> > I mouse over a parent node one child checkbox immediately above and
> > below the node reappear.
>
> > Has anyone else experienced this problem? Any solutions?


[jQuery] Re: Can't get upload to work with jquery.form.js

2008-09-20 Thread Mike Alsup

> Hi, I'm testing the form plugin and can't get the upload to work. It
> just submits the page. I really don't know what I'm doing wrong.
> Here's my code taken from the demo page.
>
>              enctype="multipart/form-data">
>                  value="10" />
>                 File: 
>                 Return Type:  name="mimetype">
>                     html
>                     json
>                     script
>
>                 
>                 
>             
>
> 
> function upload(){
>     alert('testing');
>     return false;
>
> }
>
> $(document).ready(function(){
>     photoUploadForm=$('#uploadForm');
>     photoUploadForm.ajaxForm();
>     photoUploadForm.submit(upload);
>
> });
>
> 


There's nothing wrong with the code you posted.  Can you post a link
to the page that is having the problem?  Here's a link to a page using
the code you posted (slightly simplified):

http://www.malsup.com/jquery/form/file-test3.html

Mike



[jQuery] Position a cluetip x pixels to the right and up based from the LEFT margin of a link!?

2008-09-20 Thread ioor

I'm trying to get a tooltip positioned right above a hovered link
using the plugin cluetip. It wants to base it's position on the right
margin of a link, which changes depending on the length of a link so I
can't just set a margin to make it position the same all the time.

Anybody know how you can make the cluetip position by the left margin
of a link, not the changeing right margin..?


[jQuery] Re: Show image gradually

2008-09-20 Thread ricardobeat

It is not a loop per se, you're effectively hovering again everytime
the box slides to the right under your mouse cursor.
.
What you can do is wrap it in another element that will keep it's size
and assing the event handler to it.



  http://code.jquery.com/jquery-latest.js";>

  http://dev.jquery.com/view/tags/ui/latest/ui/
effects.core.js">
http://dev.jquery.com/view/tags/ui/latest/ui/
effects.slide.js">

  
  $(document).ready(function(){

$(".parent").hover(function () {
  $('.image').hide("slide", { direction: "left" }, 1000);
},
function() {
$('.image').show("slide", { direction: "left" }, 1000);
});

  });
  
  
  .parent { width:100px; height: 80px; }
  .image { margin: 0px; width: 100px; height: 80px; background: green;
border: 1px solid black; position: relative; }
  



  
   
  




On Sep 20, 3:13 pm, monycau <[EMAIL PROTECTED]> wrote:
> Ok, thanks but is not possible to disable this loop?
>
> On Sep 20, 8:35 pm, "Richard D. Worth" <[EMAIL PROTECTED]> wrote:
>
> > When you place your mouse over the box it triggers the first hover callback
> > and animates it to hide. Leaving the mouse over the box while it slides out
> > of view, the mouseout event will fire, triggering the second callback, which
> > queues an animation to show it. If your mouse is still in position to be
> > over it when it slides back, it will mouseover again and you get a loop.
>
> > - Richard
>
> > On Sat, Sep 20, 2008 at 12:27 PM, monycau <[EMAIL PROTECTED]> wrote:
>
> > > Please check this page:
> > >http://progra.ro/zoliky/index.html
>
> > > and put the mouse on square (leave the mouse on square). Why the
> > > animation is executed twenty times ?
>
> > > Please check my html source code. Thanks so much!
>
> > > On Sep 19, 4:27 pm, "Richard D. Worth" <[EMAIL PROTECTED]> wrote:
> > > > On Fri, Sep 19, 2008 at 5:43 AM, yo2lux <[EMAIL PROTECTED]> wrote:
>
> > > > > Thanks for your help!
> > > > > jQuery UI is a separate plugin ?
>
> > > > jQuery UI is a sister project of jQuery. It's focused on providing a
> > > > cohesive set of high quality RIA (Rich Internet Application) plugins.
> > > > Interaction, Widgets, and Effects. You can find out more at
>
> > > >http://ui.jquery.com/
>
> > > > and
>
> > > >http://docs.jquery.com/UI/
>
> > > > Also, there's a dedicated mailing list for jQuery UI at
>
> > > >http://groups.google.com/group/jquery-ui
>
> > > > - Richard


[jQuery] Re: minimize loading time

2008-09-20 Thread ricardobeat

If you are only using these two functions you can live without jQuery,
use loops and form posts...

On Sep 20, 12:52 am, T.Muthuvijayan <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am using JQuery $.post and $.each methods, i want minimized version of
> jquery.js for these two methods
> its enough for me to load simple pages
> Is there any idea
>
> T.Muthuvijayan


[jQuery] Re: Show image gradually

2008-09-20 Thread Richard D. Worth
Sure, but how to do that depends on what it is you're trying to do. When the
user puts the mouse over the box you want it to hide. Then what?

- Richard

On Sat, Sep 20, 2008 at 2:13 PM, monycau <[EMAIL PROTECTED]> wrote:

>
> Ok, thanks but is not possible to disable this loop?
>
> On Sep 20, 8:35 pm, "Richard D. Worth" <[EMAIL PROTECTED]> wrote:
> > When you place your mouse over the box it triggers the first hover
> callback
> > and animates it to hide. Leaving the mouse over the box while it slides
> out
> > of view, the mouseout event will fire, triggering the second callback,
> which
> > queues an animation to show it. If your mouse is still in position to be
> > over it when it slides back, it will mouseover again and you get a loop.
> >
> > - Richard
> >
> > On Sat, Sep 20, 2008 at 12:27 PM, monycau <[EMAIL PROTECTED]> wrote:
> >
> > > Please check this page:
> > >http://progra.ro/zoliky/index.html
> >
> > > and put the mouse on square (leave the mouse on square). Why the
> > > animation is executed twenty times ?
> >
> > > Please check my html source code. Thanks so much!
> >
> > > On Sep 19, 4:27 pm, "Richard D. Worth" <[EMAIL PROTECTED]> wrote:
> > > > On Fri, Sep 19, 2008 at 5:43 AM, yo2lux <[EMAIL PROTECTED]> wrote:
> >
> > > > > Thanks for your help!
> > > > > jQuery UI is a separate plugin ?
> >
> > > > jQuery UI is a sister project of jQuery. It's focused on providing a
> > > > cohesive set of high quality RIA (Rich Internet Application) plugins.
> > > > Interaction, Widgets, and Effects. You can find out more at
> >
> > > >http://ui.jquery.com/
> >
> > > > and
> >
> > > >http://docs.jquery.com/UI/
> >
> > > > Also, there's a dedicated mailing list for jQuery UI at
> >
> > > >http://groups.google.com/group/jquery-ui
> >
> > > > - Richard
>


[jQuery] Re: Show image gradually

2008-09-20 Thread monycau

Ok, thanks but is not possible to disable this loop?

On Sep 20, 8:35 pm, "Richard D. Worth" <[EMAIL PROTECTED]> wrote:
> When you place your mouse over the box it triggers the first hover callback
> and animates it to hide. Leaving the mouse over the box while it slides out
> of view, the mouseout event will fire, triggering the second callback, which
> queues an animation to show it. If your mouse is still in position to be
> over it when it slides back, it will mouseover again and you get a loop.
>
> - Richard
>
> On Sat, Sep 20, 2008 at 12:27 PM, monycau <[EMAIL PROTECTED]> wrote:
>
> > Please check this page:
> >http://progra.ro/zoliky/index.html
>
> > and put the mouse on square (leave the mouse on square). Why the
> > animation is executed twenty times ?
>
> > Please check my html source code. Thanks so much!
>
> > On Sep 19, 4:27 pm, "Richard D. Worth" <[EMAIL PROTECTED]> wrote:
> > > On Fri, Sep 19, 2008 at 5:43 AM, yo2lux <[EMAIL PROTECTED]> wrote:
>
> > > > Thanks for your help!
> > > > jQuery UI is a separate plugin ?
>
> > > jQuery UI is a sister project of jQuery. It's focused on providing a
> > > cohesive set of high quality RIA (Rich Internet Application) plugins.
> > > Interaction, Widgets, and Effects. You can find out more at
>
> > >http://ui.jquery.com/
>
> > > and
>
> > >http://docs.jquery.com/UI/
>
> > > Also, there's a dedicated mailing list for jQuery UI at
>
> > >http://groups.google.com/group/jquery-ui
>
> > > - Richard


[jQuery] Re: Show image gradually

2008-09-20 Thread Richard D. Worth
When you place your mouse over the box it triggers the first hover callback
and animates it to hide. Leaving the mouse over the box while it slides out
of view, the mouseout event will fire, triggering the second callback, which
queues an animation to show it. If your mouse is still in position to be
over it when it slides back, it will mouseover again and you get a loop.

- Richard

On Sat, Sep 20, 2008 at 12:27 PM, monycau <[EMAIL PROTECTED]> wrote:

>
> Please check this page:
> http://progra.ro/zoliky/index.html
>
> and put the mouse on square (leave the mouse on square). Why the
> animation is executed twenty times ?
>
> Please check my html source code. Thanks so much!
>
>
> On Sep 19, 4:27 pm, "Richard D. Worth" <[EMAIL PROTECTED]> wrote:
> > On Fri, Sep 19, 2008 at 5:43 AM, yo2lux <[EMAIL PROTECTED]> wrote:
> >
> > > Thanks for your help!
> > > jQuery UI is a separate plugin ?
> >
> > jQuery UI is a sister project of jQuery. It's focused on providing a
> > cohesive set of high quality RIA (Rich Internet Application) plugins.
> > Interaction, Widgets, and Effects. You can find out more at
> >
> > http://ui.jquery.com/
> >
> > and
> >
> > http://docs.jquery.com/UI/
> >
> > Also, there's a dedicated mailing list for jQuery UI at
> >
> > http://groups.google.com/group/jquery-ui
> >
> > - Richard
>


[jQuery] Re: jQuery and Rails Block

2008-09-20 Thread besh

Hi Bob O,
can you provide us the html sample you're working on?

--
Bohdan Ganicky


[jQuery] Live Resize

2008-09-20 Thread the ev


Hi,

I'm trying to get an element to have it's css: left property adjusted with
the width of the window, but in a live fashion.  For example, if you have
the following bit of CSS & HTML:

body { width: 100%; }
#test { width: 300px; margin: 0 auto; }
...
Testing

Then that div will always position in the center of the browser window.  If
you try to resize the window, the div adjusts AS YOU'RE RESIZING to remain
in the exact center.

Now that only works if the div is relatively positioned.  My problem is that
the div I need to have similar behavior has a fixed position.  So:

#test { position: fixed; top: 0px; }
...
$(window).resize(function () {
   var offsetLeft = Math.floor($(window).width()/2) -
($("#test").width()/2);
   $("#test").css("left",offsetLeft+"px");
});

The only problem is that the resize event seems to only callback AFTER the
window reaches its new size, not during the actual resize event.  In short,
I want my fixed-position div to have the same behavior as the CSS
relatively-positioned div with left and right auto margins.  Furthermore, I
have another element that adjusts (via jQuery) to the window.scroll() event,
and it will adjust on-the-fly; why doesn't window.resize() do the same?

I would greatly appreciate any light you could throw on my situation!!

-Ev

-- 
View this message in context: 
http://www.nabble.com/Live-Resize-tp19587248s27240p19587248.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: Show image gradually

2008-09-20 Thread monycau

Please check this page:
http://progra.ro/zoliky/index.html

and put the mouse on square (leave the mouse on square). Why the
animation is executed twenty times ?

Please check my html source code. Thanks so much!


On Sep 19, 4:27 pm, "Richard D. Worth" <[EMAIL PROTECTED]> wrote:
> On Fri, Sep 19, 2008 at 5:43 AM, yo2lux <[EMAIL PROTECTED]> wrote:
>
> > Thanks for your help!
> > jQuery UI is a separate plugin ?
>
> jQuery UI is a sister project of jQuery. It's focused on providing a
> cohesive set of high quality RIA (Rich Internet Application) plugins.
> Interaction, Widgets, and Effects. You can find out more at
>
> http://ui.jquery.com/
>
> and
>
> http://docs.jquery.com/UI/
>
> Also, there's a dedicated mailing list for jQuery UI at
>
> http://groups.google.com/group/jquery-ui
>
> - Richard


[jQuery] load progress on background image...

2008-09-20 Thread [EMAIL PROTECTED]

Is it possible to detect this?  I've searched everywhere.

What i have is an image gallery that changes the background image, so
it will be liquid with different resolutions.
Id like to trace it so i can attach a load image and text.



$("#leftCol").css("background-image","none").hide().css("background-
image","url("+imagePath+")").fadeIn(2000);




[jQuery] Re: jEditable Clone Referring to the Original Element

2008-09-20 Thread Mika Tuupola



On Sep 19, 2008, at 6:20 PM, Wayne wrote:


In short, I can clone jEditable items, but I can't edit them in place
without a page reload and rewriting from the server side. Am I
ignoring something or do I need to reset a binding somewhere when I do
the DOM modification?



This should help:

http://docs.jquery.com/Frequently_Asked_Questions#Why_do_my_events_stop_working_after_an_AJAX_request.3F

basically you need to rebind events to cloned elements.

--
Mika Tuupola
http://www.appelsiini.net/



[jQuery] Re: Search for special characters in the autocomplete (no matter whether it is prototype or jquery)

2008-09-20 Thread Srini

But json.php (the file can even be an text file) file doesn't have any
thing related to php related actions. It just having an json formatted
data.
So, it doesn't make the effect when i kept the file in php -- because
the plugin which i having right now just reads the json content (what
ever the json.php or json.txt file have) from the file for the
autocomplete search.
So, whether there is any thing we can do with the prototype.js to make
it work or am wrong here.

You can check the link (demo) where i got this library.
http://www.interiders.com/wp-content/demos/ProtoMultiSelect/test.html

For code download,
http://www.interiders.com/2008/02/18/protomultiselect-02/

Srini


[jQuery] File upload procedure not working in IE7 (only)

2008-09-20 Thread Nigel G

I'm using jquery.js 1.2.6 and the following snippet of javascript to
implement a multiple file upload (there is also a plugin available on
the jquery site, but it provides all possible bells and whistles in
many lines of code; this seemed a much more lightweight approach).

However, while it works nicely in Firefox and Safari, with IE7 it goes
into a loop: specifically, it keeps repeating the inserted  with
the name of the selected file and the 'Remove' button.  The code is:

/* Upload.js
*  allows user to upload indefinite number of files
*  requires nquery.js
*/
$(document).ready(function(){
  $('#fileinput').after('Selected files:');
  $("input.upload").change(function(){
 doIt(this);
   });
});
function doIt(obj) {
  $(obj).hide();
  $(obj).parent().prepend('').find("input").change(function() {doIt(this)});
  var v = obj.value;
  if(v != '') {
$("div#files_list").append(''+v+'  ').find("input").click(function(){
   $(this).parent().remove();
  $(obj).remove();
  return true;
  });
  }
};

Can anyone see what might be wrong?  It is presumably a quirk of IE7
that is causing the problem, since it works on other browsers.

Thanks for any advice, either about a solution or how to pin point the
problem.

Nigel


[jQuery] jQuery and Rails Block

2008-09-20 Thread Bob O

Hello,

Im am a CSS guy moving into the world of js and RoR, so its nice to
find things like jQuery and supporting groups. I am a n00b, so the
more english the response the better

Question:

I have a rails partial that cycles a :collection. So every record in
the db table receives the same HTML/CSS structure. There is a hidden
div with extra info, that expands when the exposed div is clicked. the
problem is ALL of the displayed :collections reveal/hide the extra
content at the same time. where the HTML/CSS is dynamically generated,
im not sure how to have it differentiate between each item.

I have seen in the Learning jQuery book that there is a way to loop
and add an index, and also some kind of append feature, but Im not
quite versed enough to understand if this is what i need.

any help would be great..

Thank you


[jQuery] Case Insentitive Selectorys

2008-09-20 Thread blockedmind

I am making search in an xml file, but I don't get expected results
since jQuery selectors are case-sensitive. I use something like

$(returnedXml).find("item[name*='"+search+"']").each(function(){
});

How to make it INCASE-SENSITIVE?


[jQuery] Re: Search for special characters in the autocomplete (no matter whether it is prototype or jquery)

2008-09-20 Thread Jörn Zaefferer
Okay, but even when the data isn't coming from a database, you could
still use json.php the filter the data.

Jörn

On Sat, Sep 20, 2008 at 3:18 PM, Srini <[EMAIL PROTECTED]> wrote:
>
> Hello, First thanks for your reply.
>
> Autocomplete is working with the json data - this data is taken from
> the server (a file called json.php) not from the db.
>
> So, whenever we enter the keyword for search -- it will refer this
> json data -- not with the db.
>
> Srini
>
>


[jQuery] Re: Search for special characters in the autocomplete (no matter whether it is prototype or jquery)

2008-09-20 Thread Srini

Hello, First thanks for your reply.

Autocomplete is working with the json data - this data is taken from
the server (a file called json.php) not from the db.

So, whenever we enter the keyword for search -- it will refer this
json data -- not with the db.

Srini



[jQuery] Re: replaceWith returns the replaced element

2008-09-20 Thread tchvil

This one is slightly better altough not in jQuery style:

$.fn.replaceWithAndReturnNew = function(html){
var elm = $(this)[0].cloneNode(false);
$(this).after(elm).remove();
elm.innerHTML = html;
return $(elm);};


On Sep 20, 9:31 am, tchvil <[EMAIL PROTECTED]> wrote:
> Thanks a lot for your replies.
> Ok, I guess there are good reasons to return the replaced object.
>
> Now my question becomes... is there a better jQuery way of doing this
> quite ugly thing:
>
> $.fn.replaceWithAndReturnNew = function(htmls){
>         var replaced = $(this)[0];
>         var div = document.createElement('DIV');
>         div.innerHTML = htmls;
>         var replacer = div.firstChild;
>         replaced.parentNode.replaceChild(replacer, replaced);
>         return $(replacer);};
>
> There's a working page there:http://friendpaste.com/GkTTkwQV
>
> Cheers,
>
> On Sep 18, 1:09 am, Ariel Flesler <[EMAIL PROTECTED]> wrote:
>
> > Sorry, I missunderstood the initial (and subsequential) posts.
> > The present behavior (return the initially matched element) is the
> > correct one. That's what I'd expect and it matches the behavior of
> > remove(), append(), etc.
>
> > Don't file any bug report :)
>
> > Thanks Richard for pinging me about this.
>
> > --
> > Ariel Fleslerhttp://flesler.blogspot.com/
>
> > On Sep 17, 6:12 pm, Ariel Flesler <[EMAIL PROTECTED]> wrote:
>
> > > I think this is a bug, I'd expectreplaceWithto return the old set,
> > > just like append/etc.
>
> > > Can you (tchvil) file a bug with a test case ? put it under core,
> > > assigned to me.
>
> > > Thanks
> > > --
> > > Ariel Fleslerhttp://flesler.blogspot.com/
>
> > > On Sep 17, 8:04 am, "Richard D. Worth" <[EMAIL PROTECTED]> wrote:
>
> > > > On Wed, Sep 17, 2008 at 6:58 AM, Karl Rudd <[EMAIL PROTECTED]> wrote:
>
> > > > > Nah, it's not a bug.
>
> > > > >replaceWith( content )  Returns: jQuery
> > > > > Replaces all matched elements with the specified HTML or DOM elements.
> > > > > This returns the JQuery element that was just replaced, which has been
> > > > > removed from the DOM
>
> > > > > (http://docs.jquery.com/Manipulation)
>
> > > > It may be well documented, but that doesn't mean it can't be a bug. ;)
>
> > > > > It's like doing a remove(), followed by an append(). Like "remove()"
> > > > > it also "returns" (well keeps in the jQuery collection) the elements
> > > > > it removes.
>
> > > > This is quite a fundamental difference. Since .remove() returns a DOM
> > > > Element, it's not chainable. SincereplaceWith() returns a chainable 
> > > > jQuery
> > > > object, it's reasonable to expect methods you call on that chain to 
> > > > effect
> > > > the new element, not your now removed/disconnected element(s). Like many
> > > > other methods, it could modify the chain. And if you wanted to get back 
> > > > to
> > > > the previous chain, you could call .end(). My 2c.
>
> > > > - Richard


[jQuery] Re: Search for special characters in the autocomplete (no matter whether it is prototype or jquery)

2008-09-20 Thread Jörn Zaefferer
Where does the data come from? Remote from the server or local data?

With remote data you could implement it on the server, without having
to change anything in the autocomplete script.

Jörn

On Sat, Sep 20, 2008 at 4:25 AM, Srini <[EMAIL PROTECTED]> wrote:
>
> Dear all,
>
> We need a solution how to handle special character issue in our
> application. We integrated a multiple selection id from the
> autocomplete (as like facebook autocomplete search) library (which
> developed in prototype).
>
> The following is our need,
> When we enter normal characters (a to z), it should match with the
> json data (from the preset data only the autocomplete search fetches
> the result) and display the results. The actual need is, when we enter
> 'koln'  in the textbox field the autocomplete should also fetch/match
> the 'köln'  from the data. But, it is not working now like that.
>
> Question is, when we enter an normal character -- whether there is any
> possibility to convert this character into all the other language
> characters and do the match. It means if i type 'o', than it should
> give us an 'o' like characters which is available in other languages
> (ex: ö - no matter the letter is german or russian)
>
> I would like to know, how does we can achieve this.
>
> Other infos,
> 1/. I tried with changing charset from ISO-8859-1 to UTF-8 in the
> server.
> 2/. I tried with changing charset from ISO-8859-1 to UTF-8(vice versa)
> in the autocomplete search page.. but no results yet.
> 3/. Also, I tried with changing charset from ISO-8859-1 to UTF-8 and
> other charsets types in the prototype.js too.
>
> Note:
> In facebook, they having this feature.
>
> Thanks,
> Srinivasan M
>


[jQuery] Re: Treeview problem with checkboxes in IE

2008-09-20 Thread Jörn Zaefferer

Could you post a testpage?

On Sat, Sep 20, 2008 at 9:35 AM, mrhankey <[EMAIL PROTECTED]> wrote:
>
> I have set up a tree using Treeview where each list item includes a
> checkbox input. This works perfectly on Firefox but with IE 6 & 7
> every time I expand a tree branch the checkboxes in the branch all
> disappear almost immediately after the branch opens. Furthermore, when
> I mouse over a parent node one child checkbox immediately above and
> below the node reappear.
>
> Has anyone else experienced this problem? Any solutions?
>


[jQuery] Re: Validate with bassistance local bug

2008-09-20 Thread Jörn Zaefferer
Try to download the complete package, which includes the demo and it's
PHP files for remote validation:
http://bassistance.de/jquery-plugins/jquery-plugin-validation/

Jörn

On Sat, Sep 20, 2008 at 2:23 AM, ripcurlksm <[EMAIL PROTECTED]> wrote:
>
> On this demo:
> http://jquery.bassistance.de/validate/demo/milk/
>
> I cant get the email validation to work on the second try locally. The
> above link works fine. If you submit an invalid email address it asks
> you to reenter it. Great. So I try to move it locally.
>
> I downloaded jQuery and the validation plugin. Everything works...
> except if I try an invalid email.. it throws an error, so I fix it to
> a valid email and hit submit... nothing.
>
> As a second try, I visited the above link, and downloaded the entire
> source using my browser... same issue. If you type the wrong email in
> and try to fix it, it will never validate.
>
> This demo works and this issue is not seen in the demo. What am I
> doing wrong?
>
> Regards,
> Kevin
>
>


[jQuery] Re: [autocomplete] + [ajaxqueue] confusion

2008-09-20 Thread Jörn Zaefferer
None of that is "regis-authored". The plugin, as released on
plugins.jquery.com provides similar features but a different API. The
in SVN was written by me, while autocomplete leverages only the
abort-option. So as long as you care only about autocomplete, just use
the version bundled with it.

Jörn

On Fri, Sep 19, 2008 at 6:17 PM, D.Kreft <[EMAIL PROTECTED]> wrote:
>
> I'm a bit confused. In the autocomplete plugin source I see these
> lines:
>
>$.ajax({
>// try to leverage ajaxQueue plugin to abort 
> previous requests
>mode: "abort",
>
> The ajaxqueue plugin that Jorn links to here from bassistance.de,
> http://dev.jquery.com/view/trunk/plugins/autocomplete/lib/jquery.ajaxQueue.js
> looks like it'll work, because I see the following:
>
>$.ajax = function(settings) {
>// create settings for compatibility with ajaxSetup
>settings = jQuery.extend(settings, jQuery.extend({},
> jQuery.ajaxSettings, settings));
>
>var port = settings.port;
>
>switch(settings.mode) {
>case "abort":
>
> HOWEVER, when I got to the ajaxQueue project/plugin page (http://
> plugins.jquery.com/project/ajaxqueue), the download link points to a
> drastically different-looking file (http://plugins.jquery.com/files/
> jquery-ajax-queue_1.0.js.txt) which doesn't even seem to touch $.ajax
> to add support for the 'mode' parameter--it only defines $.ajaxSync
> and $.ajaxQueue.
>
> What gives? Is the one that Jorn links to just not the
> "official" (i.e. non Resig-authored) AJAX queuing library?
>
> -dan
>
>


[jQuery] Re: replaceWith returns the replaced element

2008-09-20 Thread Richard D. Worth
$.fn.replaceWithAndReturnNew = function(htmls){
  var replacer = $(htmls);
  $(this).replaceWith(replacer);
  return replacer;
};

- Richard

On Sat, Sep 20, 2008 at 3:31 AM, tchvil <[EMAIL PROTECTED]> wrote:

>
> Thanks a lot for your replies.
> Ok, I guess there are good reasons to return the replaced object.
>
> Now my question becomes... is there a better jQuery way of doing this
> quite ugly thing:
>
> $.fn.replaceWithAndReturnNew = function(htmls){
>var replaced = $(this)[0];
>var div = document.createElement('DIV');
>div.innerHTML = htmls;
>var replacer = div.firstChild;
>replaced.parentNode.replaceChild(replacer, replaced);
>return $(replacer);};
>
> There's a working page there: http://friendpaste.com/GkTTkwQV
>
> Cheers,
>
> On Sep 18, 1:09 am, Ariel Flesler <[EMAIL PROTECTED]> wrote:
> > Sorry, I missunderstood the initial (and subsequential) posts.
> > The present behavior (return the initially matched element) is the
> > correct one. That's what I'd expect and it matches the behavior of
> > remove(), append(), etc.
> >
> > Don't file any bug report :)
> >
> > Thanks Richard for pinging me about this.
> >
> > --
> > Ariel Fleslerhttp://flesler.blogspot.com/
> >
> > On Sep 17, 6:12 pm, Ariel Flesler <[EMAIL PROTECTED]> wrote:
> >
> > > I think this is a bug, I'd expectreplaceWithto return the old set,
> > > just like append/etc.
> >
> > > Can you (tchvil) file a bug with a test case ? put it under core,
> > > assigned to me.
> >
> > > Thanks
> > > --
> > > Ariel Fleslerhttp://flesler.blogspot.com/
> >
> > > On Sep 17, 8:04 am, "Richard D. Worth" <[EMAIL PROTECTED]> wrote:
> >
> > > > On Wed, Sep 17, 2008 at 6:58 AM, Karl Rudd <[EMAIL PROTECTED]>
> wrote:
> >
> > > > > Nah, it's not a bug.
> >
> > > > >replaceWith( content )  Returns: jQuery
> > > > > Replaces all matched elements with the specified HTML or DOM
> elements.
> > > > > This returns the JQuery element that was just replaced, which has
> been
> > > > > removed from the DOM
> >
> > > > > (http://docs.jquery.com/Manipulation)
> >
> > > > It may be well documented, but that doesn't mean it can't be a bug.
> ;)
> >
> > > > > It's like doing a remove(), followed by an append(). Like
> "remove()"
> > > > > it also "returns" (well keeps in the jQuery collection) the
> elements
> > > > > it removes.
> >
> > > > This is quite a fundamental difference. Since .remove() returns a DOM
> > > > Element, it's not chainable. SincereplaceWith() returns a chainable
> jQuery
> > > > object, it's reasonable to expect methods you call on that chain to
> effect
> > > > the new element, not your now removed/disconnected element(s). Like
> many
> > > > other methods, it could modify the chain. And if you wanted to get
> back to
> > > > the previous chain, you could call .end(). My 2c.
> >
> > > > - Richard
>


[jQuery] Re: merging input values into another input filed value

2008-09-20 Thread MorningZ

"+" is JavaScript's method of concatenating strings:

$("input#rsvp-notes").val(friend1 + friend2 + friend3)

;



[jQuery] Re: Onclick Not working

2008-09-20 Thread MorningZ

Sort sort of example code would be a huge help for others to help you


[jQuery] Can't get upload to work with jquery.form.js

2008-09-20 Thread kojilab

Hi, I'm testing the form plugin and can't get the upload to work. It
just submits the page. I really don't know what I'm doing wrong.
Here's my code taken from the demo page.



File: 
Return Type: 
html
json
script






function upload(){
alert('testing');
return false;
}

$(document).ready(function(){
photoUploadForm=$('#uploadForm');
photoUploadForm.ajaxForm();
photoUploadForm.submit(upload);
});




[jQuery] minimize loading time

2008-09-20 Thread T . Muthuvijayan
Hi,

I am using JQuery $.post and $.each methods, i want minimized version of
jquery.js for these two methods
its enough for me to load simple pages
Is there any idea

T.Muthuvijayan


[jQuery] minimize loading time

2008-09-20 Thread muthu

I am using jquery  $.post method and $.each, these two methods is
enough to me for simple pages
its hard for me to load a 15kb jQuery.js file, is any other way to
load minimized jquery file


[jQuery] Treeview problem with checkboxes in IE

2008-09-20 Thread mrhankey

I have set up a tree using Treeview where each list item includes a
checkbox input. This works perfectly on Firefox but with IE 6 & 7
every time I expand a tree branch the checkboxes in the branch all
disappear almost immediately after the branch opens. Furthermore, when
I mouse over a parent node one child checkbox immediately above and
below the node reappear.

Has anyone else experienced this problem? Any solutions?


[jQuery] Onclick Not working

2008-09-20 Thread Balaji.S


Am designing a website in that i have the latest news at the top and when
users clicks it . am storing it in a recently viewed block , Am calling a
javascript function for this process .

In the latest am able to click all the titles and i can see the data getting
loaded through jquery.min.js but unfortunately in recent am able to click
only the first title the data gets loaded for the first onlt but for others
it is not and when i click the title nothing is happening and this happens
only in IE6/IE7 . Firefox ,chrome everything works fine .. Can someone help
me out on this
-- 
View this message in context: 
http://www.nabble.com/Onclick-Not-working-tp19583765s27240p19583765.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: replaceWith returns the replaced element

2008-09-20 Thread tchvil

Thanks a lot for your replies.
Ok, I guess there are good reasons to return the replaced object.

Now my question becomes... is there a better jQuery way of doing this
quite ugly thing:

$.fn.replaceWithAndReturnNew = function(htmls){
var replaced = $(this)[0];
var div = document.createElement('DIV');
div.innerHTML = htmls;
var replacer = div.firstChild;
replaced.parentNode.replaceChild(replacer, replaced);
return $(replacer);};

There's a working page there: http://friendpaste.com/GkTTkwQV

Cheers,

On Sep 18, 1:09 am, Ariel Flesler <[EMAIL PROTECTED]> wrote:
> Sorry, I missunderstood the initial (and subsequential) posts.
> The present behavior (return the initially matched element) is the
> correct one. That's what I'd expect and it matches the behavior of
> remove(), append(), etc.
>
> Don't file any bug report :)
>
> Thanks Richard for pinging me about this.
>
> --
> Ariel Fleslerhttp://flesler.blogspot.com/
>
> On Sep 17, 6:12 pm, Ariel Flesler <[EMAIL PROTECTED]> wrote:
>
> > I think this is a bug, I'd expectreplaceWithto return the old set,
> > just like append/etc.
>
> > Can you (tchvil) file a bug with a test case ? put it under core,
> > assigned to me.
>
> > Thanks
> > --
> > Ariel Fleslerhttp://flesler.blogspot.com/
>
> > On Sep 17, 8:04 am, "Richard D. Worth" <[EMAIL PROTECTED]> wrote:
>
> > > On Wed, Sep 17, 2008 at 6:58 AM, Karl Rudd <[EMAIL PROTECTED]> wrote:
>
> > > > Nah, it's not a bug.
>
> > > >replaceWith( content )  Returns: jQuery
> > > > Replaces all matched elements with the specified HTML or DOM elements.
> > > > This returns the JQuery element that was just replaced, which has been
> > > > removed from the DOM
>
> > > > (http://docs.jquery.com/Manipulation)
>
> > > It may be well documented, but that doesn't mean it can't be a bug. ;)
>
> > > > It's like doing a remove(), followed by an append(). Like "remove()"
> > > > it also "returns" (well keeps in the jQuery collection) the elements
> > > > it removes.
>
> > > This is quite a fundamental difference. Since .remove() returns a DOM
> > > Element, it's not chainable. SincereplaceWith() returns a chainable jQuery
> > > object, it's reasonable to expect methods you call on that chain to effect
> > > the new element, not your now removed/disconnected element(s). Like many
> > > other methods, it could modify the chain. And if you wanted to get back to
> > > the previous chain, you could call .end(). My 2c.
>
> > > - Richard