[jQuery] cluetip feature request: disable; clear cache

2008-11-30 Thread Eric Ongerth

Hello,

I'm enjoying the jquery cluetip plugin -- it works very nicely and
does what I want it to.  But I have two requests.

(1)

$(foo).cluetip('disable');

This would disable the cluetip on a specific element or array of
elements.

$(foo).cluetip('clear_cache');

This would invalidate the cluetip cache for a specific element or
array of elements, so that the next time the elements were hovered
their cluetip contents would be reloaded via AJAX.

In the current usage, could this already be achieved by simple setting
the cluetip on the same elements a second time?  Or does that do
nothing?

Thanks!
Eric


[jQuery] Missing the previous jQuery site visual style?

2008-10-24 Thread Eric Ongerth

Hi everyone.  I miss the previous visual design of the jQuery site...
I was away for a few months and when I got back it looked like it had
stepped a couple of years backward and taken on a very Rails-in-the-
early-days look with that Trebuchet font and big empty sidebars...

No offense intended to its current designer, but I really loved the
openness, readability, and space efficiency of the older version.

Temporary solution for those who share my dismay: this guy CSS'd up a
nearly complete fix -- if you're using Firefox you can get this almost
instantly here:

http://userstyles.org/styles/11536

He pretty much put it right back in the earlier style, much more
readable, and adds nothing to the load time since it's client-side CSS
on a tiny, tiny FF plugin.

Check it out!
(and to John and the site's maintainers... any chance we might see a
rollback of this weird move?)


[jQuery] Re: Seat reservation using jquery

2008-08-20 Thread Eric Ongerth

Your question is much too vague.  If you can ask more specific
questions you are more likely to elicit a helpful response.



On Aug 19, 3:03 pm, Pankaj <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am working on an application where I need to book online seats. For
> that i need to first populate my page with the seat info (ie: how many
> seats are vacant, how many are booked, how many are at special
> prices). This needs to be done dynamically as it will change on the
> fly according to the database.
>
> can someone please help me with this??
>
> Its very urgent. Will be really grateful.. Thanks :)


[jQuery] Re: Can Jquery Send variable value to external php

2008-06-08 Thread Eric Ongerth

http://docs.jquery.com/Ajax

On Jun 8, 3:36 am, Maddy <[EMAIL PROTECTED]> wrote:
> Is it possible to send a variable value to external php.
>
> how it can be done
>
> code:
>
> var myvar = document.title;
>
>  how to send this particular variable to a php script
>
> plz help


[jQuery] Re: Loading help with contextmenu plugin.

2008-05-28 Thread Eric Ongerth

Mauricio,

This sounds like a good place to use the livequery plugin:
http://docs.jquery.com/Plugins/livequery

Its purpose: keeping events properly bound to elements that satisfy a
selector even when the elements are loaded later, or loaded
dynamically.

Good luck.

On May 27, 5:47 pm, Mauricio Farah <[EMAIL PROTECTED]> wrote:
> Hi, I don't know if it's the right place to post this, but I can't
> find developer's email anywhere. In case that you don't know the
> pluginhttp://www.trendskitchens.co.nz/jquery/contextmenu/is the
> homepage. Basically it let's you override right click on the browser
> for the html elements you want, changing it for one that you define.
>
> The javascript code for the menu is in the $document.ready(), like
> this:
>
> $(document).ready(function() {
>   $('span.demo1').contextMenu('myMenu1', {
> bindings: {
>   'open': function(t) {
> alert('Trigger was '+t.id+'\nAction was Open');
>   },
>   'email': function(t) {
> alert('Trigger was '+t.id+'\nAction was Email');
>   }
> }
>   });
>
> }
>
> And it works alright. But what I need to do is to show the menu on a
> element I dynamically load using $(#id).html("new value");
> After loading the new content, right click doesn't brings context menu
> anymore on that element, and I don't know how to fix it.
> I think it's more related to plain jQuery than the plugin.
>
> I hope someone could help me with this.
>
> Thanks in advance.


[jQuery] Re: Easy way to filter and sort a list

2008-05-17 Thread Eric Ongerth

Have you looked at http://plugins.jquery.com/project/autocompletex ?

On May 16, 11:09 pm, hubbs <[EMAIL PROTECTED]> wrote:
> Would i use .filter() for this?
>
> On May 16, 11:42 am, hubbs <[EMAIL PROTECTED]> wrote:
>
> > I am looking for a way to easily filter, and short a list.  I found
> > the tableFilter plugin, but it is an overkill for what I need, and I
> > don't want to use tables.  I want to be able to filter a list of
> > items, and also sort this list by ABC.  I love the idea of the
> > filtering being linked to an input box, so when you start typing
> > something, it will filter the list, find what you are looking for, and
> > remove the rest.
>
> > Any suggestions on what I could use?


[jQuery] Weird Firefox error related to switching to jQuery

2008-05-14 Thread Eric Ongerth

I'm busily switching all my page templates from Prototype to jQuery.
I'm getting the following error I never saw before (seen via Firebug)
on a page that has been entirely changed over to jQuery, with
prototype all gone and no longer included/loaded.


[Exception... "Component is not available" nsresult: "0x80040111
(NS_ERROR_NOT_AVAILABLE)" location: "JS frame ::
file:///H:/Program%20Files/Mozilla%20Firefox/components/nsSessionStore.js
:: sss_saveState :: line 1753" data: no]
[Break on this error] oState.session = { state: ((this._loadState ==
STATE_RUNNING) ? STATE_RUNNIN...

What could be causing this?  Is it just a Firefox bug?  (FF 2.0.0.14
on winXP)

I've seen only one "component is not available" error similar to this
one (though not the identical error) before and it disappeared when I
fixed a separate javascript error due to some mistake I had made.  But
this time is not so easy because I have no other errors on this
particular page that I'm aware of and it is otherwise "working".

Eric


[jQuery] Re: Syntax question regarding value of currrent element being clicked.

2008-05-13 Thread Eric Ongerth

Do you understand why?

It's not the event that has the value that you wish to submit.  What
has the needed value is the object whose "onchange" callback is
currently being executed.  And since we're in that callback at the
moment, it just so happens that the identifier "this" refers to the
callback's owner.

On May 12, 7:03 am, Pickledegg <[EMAIL PROTECTED]> wrote:
> Thanks andrea ;)
>
> On May 12, 12:27 pm, Pickledegg <[EMAIL PROTECTED]> wrote:
>
> > Sussed it:
>
> > $('this').val() does the trick!
>
> > On May 12, 12:05 pm, Pickledegg <[EMAIL PROTECTED]> wrote:
>
> > > Heres my code:
>
> > > This fires on any dropdown with the class 'ajaxdropdown': However, it
> > > errors telling me that event.val() is not a function. How do I refer
> > > to the current dropdown being changed, and get its value? I know $
> > > ('#idofdropdown').val() will work, but I need to use multiple
> > > dropdowns.
>
> > > $(document).ready(function(){
> > >    $('.ajaxdropdown').change(function(event){
> > >                 $('#charges').load('/new_callchargesajax.asp?
> > > shtech=y&c_name='+escape(event.val()));
> > >         });
> > >  });
>
> > > Thanks.


[jQuery] Re: why is droppable() 's init method trying to read outerWidth() of a div?

2008-05-13 Thread Eric Ongerth

Thank you!

On May 11, 7:41 pm, Brandon Aaron <[EMAIL PROTECTED]> wrote:
> jQuery UI depends on jQuery 1.2.4a because we are making new updates
> to jQuery to make sure jQuery UI performs its best. The final version
> of jQuery UI will also have a final version of jQuery to go along with
> it.
>
> --
> Brandon Aaron
>
> On May 11, 8:59 pm, Eric Ongerth <[EMAIL PROTECTED]> wrote:
>
> > Oh, ok.  Thank you.  The jQuery website gave me no idea that jquery ui
> > 1.5b4 was dependent on jquery 1.2.4a.  In fact I had no idea 1.2.4a
> > was even available.
>
> > Allright... I switched to the (nightly) 1.2.4a, and the error of
> > course disappeared.
>
> > The jqueryUI site could make it more clear that a specific jquery
> > build is required.  Also, isn't it a little strange that a beta build
> > depends on an alpha in this case?  (1.5b4 depending on 1.2.4a) ?
>
> > What would I downgrade to if I wanted to run stable versions of both
> > jquery and jquery-ui?
>
> > Thanks!
> > Eric
>
> > On May 11, 6:38 pm, Ariel Flesler <[EMAIL PROTECTED]> wrote:
>
> > > OuterWidth has been include along with the rest of Dimensions' methods
> > > into jQuery 1.2.4a which (as far as I know) is the release that comes
> > > with the last UI.
>
> > > Are you seeing this on Safari ? I got a failing test on Safari for
> > > outerWidth.
>
> > > --
> > > Ariel Fleslerhttp://flesler.blogspot.com
>
> > > On 11 mayo, 21:59, Eric Ongerth <[EMAIL PROTECTED]> wrote:
>
> > > > Take a look the following from jquery.ui-all-1.5b4.js:  -- it's inside
> > > > of the droppable() method's init method:
>
> > > > 802 //Store the droppable's proportions
> > > > 803 this.proportions = { width: this.element.outerWidth(), height:
> > > > this.element.outerHeight() };
>
> > > > I have been stuck for a while on an error this causes.  I am calling
> > > > droppable() on a div and I get an error saying this.element.outerWidth
> > > > is not a function.  Of course, because elements don't have an
> > > > outerWidth!  The div from which I'm calling droppable() has a width,
> > > > offsetWidth(), scrollWidth(), as checked with a Firebug breakpoint at
> > > > the time of calling droppable().  But it naturally does not have an
> > > > outerWidth().
>
> > > > This seems like an error in jquery-ui.  But if that were true,
> > > > wouldn't people have tripped over it everywhere?  Therefore it makes
> > > > me wonder what I am doing wrong instead.
>
> > > > Can anyone offer some insight about this?
>
> > > > Eric


[jQuery] Re: how can a landing page verify that the user has logged in?

2008-05-13 Thread Eric Ongerth

Typical behavior is for the username and password to be sent to the
server for verification.  What you do to accomplish this on the server
side is a matter of what web development framework you are using...
Ruby on Rails, for example, or Django, or a zillion other options...
or something you create yourself.  Yes, normally the server-side code
will access a database to check that the password matches the
username.  And yes, most of the available web development frameworks
out there rely on the concept of a "session" that stays the same for a
given user, such that once a user has logged in they remain logged in,
and your pages are able to easily check and verify that fact, until
either the user logs out or their session "times out".

So you are going to need to choose a framework to work with unless you
like the idea of reinventing everything from scratch.  The framework
you choose should depend on what scripting language(s) you are already
familiar with.  There is plenty of information on these subjects out
there for the searching.

On May 12, 8:49 pm, puma <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I just created a webpage that requires a username and password to be
> submitted in order for the user to proceed to another section of the
> site.
>
> My questions is how can the landing page (the page the user is
> redirected to after submitting the correct information) verify that
> the user has logged in??? If he/she hasn't how can I redirect the user
> to the login page???
>
> Can this be done with javascript itself??? or do in need to connect to
> some sort of external database???
>
> Thanks
>
> - puma


[jQuery] Re: JQ Comments and Bug help

2008-05-13 Thread Eric Ongerth

Exactly which jquery files are you using when you get these errors?
Which version of jquery and which version of jquery-ui?

I had several similar (though not identical) problems with
ui.droppable() recently, and the solution involved matching jquery
1.2.4a with jquery-ui 1.5b4.   jquery  1.2.3 caused jquery-ui 1.5b4 to
throw the errors.  Also, using the jquery-ui website's customized
download builder fixed some dependency issues that were formerly
causing "foo is not a function" errors.


On May 11, 1:07 pm, [EMAIL PROTECTED] wrote:
> This message was also posted in the General Discussion Group, but I'm a bit  
> confused how things work around here so please forgive this newbie to the
> JQuery  world.
>
> It's taken me a little while, but I believe I have finally succumbed to the  
> power and wonder that is... JQuery.  I have been bouncing from framework to  
> framework for about 9 months, much of that time devoted to building my  own.  
> I
> was on the cusp of giving in to ExtJS at one point, but in the end,  the
> fancy widgets weren't a compelling enough force to make me commit.  As  my own
> framework continued to evolve (and be rewritten) my objectives became  
> clearer,
> and one of those objectives was developing a way to deal with the  dom (and
> other things) in a terse-as-possible way - you know, keep  subclassing or
> funneling the code until it would take a line or 2 to manage  complex widgets 
> - not
> to mention the flexibility of javascript syntax to help  keep things brief.  
> Given another 2 or 22 years, I think my system would  have been very close to
> JQuery.
>
> That said, I am still a JQuery super-newbie, and although code is starting  
> to happen and I'm starting to get the magic, I'm having a problem with some  
> basic stuff.  Forgive me if this is not in the proper section on this  site.
>
> When I attempt to use the resizeable or draggable classes in jquery.ui, I  
> run into errors.  When using draggable, I get a "this.helper.offsetParent  is
> not a function". message.  For resizeable I get...
> this.element.position is not a function
> [Break on this error] var o =  this.options, iniPos =
> this.element.position(), el =this.element,
>
> I'm trying to drag and/or resize a simple div (whether it's created on the  
> fly or in the html) all I do is add the dot-draggable() to the object and I 
> get
>  the error message (in FF).  The cursor does change to the appropriate  
> states (for resizeable) and obviously, from the error messages, I've made it  
> into
> the code that should be doing the dragging and resizing.  
>
> Can you explain what's going on?  Any help is very much  appreciated.  And
> also, thank you for creating a brilliant piece of  code.  I am hoping it will
> become my framework of choice for a long time to  come.
>
> **Wondering what's for Dinner Tonight? Get new twists on family
> favorites at AOL Food.      
> (http://food.aol.com/dinner-tonight?NCID=aolfod000301)


[jQuery] Re: drag & drop post to db

2008-05-13 Thread Eric Ongerth

Answering would be easier if you could follow the convention of
posting your question in the form of a question.

On May 11, 11:43 pm, teazer <[EMAIL PROTECTED]> wrote:
> After way too many hours wasted, I find I have to ask for help. I am a
> coldFusion programmer and a neophyte at jquery.
>
> I am trying to show and post info for a drag & drop page. I need to
> show the coordinates and strokeNo and post to a database the same plus
> the div of where the draggable was dropped. Hopefully this makes
> sense. Thanks in advance...
>
> test page:http://teazer.com/test.cfm
>
>   $(document).ready(function(){
>
>     $(".drag").draggable({containment: ".wrapper"});
>
>         $(".drag").mousemove(
>                 function(e){$(this).html(e.pageX +','+ e.pageY);
>         });
>
>         $(".drop").droppable({
>         accept: ".drag",
>
>         drop: function(ev, ui) {
>      var dragInfo =
>                 $(this).attr("id");
>                 $(this).append((ui.draggable).text());
>                 $(this).append(",");
>         $(this).append(dragInfo);
>
>         //posting the info to the database
>                 $("#S1").click(function(e){$.post("scripts.cfm", { coords: 
> e.pageX
> +','+ e.pageY, strokeNo: '1', dropLocation: '?' });});
>
>                 }
>         });
>
> });


[jQuery] Re: why is droppable() 's init method trying to read outerWidth() of a div?

2008-05-11 Thread Eric Ongerth

Oh, ok.  Thank you.  The jQuery website gave me no idea that jquery ui
1.5b4 was dependent on jquery 1.2.4a.  In fact I had no idea 1.2.4a
was even available.

Allright... I switched to the (nightly) 1.2.4a, and the error of
course disappeared.

The jqueryUI site could make it more clear that a specific jquery
build is required.  Also, isn't it a little strange that a beta build
depends on an alpha in this case?  (1.5b4 depending on 1.2.4a) ?

What would I downgrade to if I wanted to run stable versions of both
jquery and jquery-ui?

Thanks!
Eric



On May 11, 6:38 pm, Ariel Flesler <[EMAIL PROTECTED]> wrote:
> OuterWidth has been include along with the rest of Dimensions' methods
> into jQuery 1.2.4a which (as far as I know) is the release that comes
> with the last UI.
>
> Are you seeing this on Safari ? I got a failing test on Safari for
> outerWidth.
>
> --
> Ariel Fleslerhttp://flesler.blogspot.com
>
> On 11 mayo, 21:59, Eric Ongerth <[EMAIL PROTECTED]> wrote:
>
> > Take a look the following from jquery.ui-all-1.5b4.js:  -- it's inside
> > of the droppable() method's init method:
>
> > 802 //Store the droppable's proportions
> > 803 this.proportions = { width: this.element.outerWidth(), height:
> > this.element.outerHeight() };
>
> > I have been stuck for a while on an error this causes.  I am calling
> > droppable() on a div and I get an error saying this.element.outerWidth
> > is not a function.  Of course, because elements don't have an
> > outerWidth!  The div from which I'm calling droppable() has a width,
> > offsetWidth(), scrollWidth(), as checked with a Firebug breakpoint at
> > the time of calling droppable().  But it naturally does not have an
> > outerWidth().
>
> > This seems like an error in jquery-ui.  But if that were true,
> > wouldn't people have tripped over it everywhere?  Therefore it makes
> > me wonder what I am doing wrong instead.
>
> > Can anyone offer some insight about this?
>
> > Eric


[jQuery] why is droppable() 's init method trying to read outerWidth() of a div?

2008-05-11 Thread Eric Ongerth

Take a look the following from jquery.ui-all-1.5b4.js:  -- it's inside
of the droppable() method's init method:


802 //Store the droppable's proportions
803 this.proportions = { width: this.element.outerWidth(), height:
this.element.outerHeight() };

I have been stuck for a while on an error this causes.  I am calling
droppable() on a div and I get an error saying this.element.outerWidth
is not a function.  Of course, because elements don't have an
outerWidth!  The div from which I'm calling droppable() has a width,
offsetWidth(), scrollWidth(), as checked with a Firebug breakpoint at
the time of calling droppable().  But it naturally does not have an
outerWidth().

This seems like an error in jquery-ui.  But if that were true,
wouldn't people have tripped over it everywhere?  Therefore it makes
me wonder what I am doing wrong instead.

Can anyone offer some insight about this?

Eric