[jQuery] Re: Once validated..

2009-01-13 Thread mbraybrook
You can check a var in jQuery using the following method: var my_js_var = ""; if (my_js_var == "Value) { alert("Value set"); } Thats one of the Q's down! M On Jan 13, 3:45 am, Nikola wrote: > I'm validating a form in php and am wondering how I c

[jQuery] Re: jeditable and XHTML?

2008-11-14 Thread mbraybrook
I can't see anything wrong with the JS, can you perhaps provide a more complete picture? .: Are you calling the JS when the DOM is ready? .: Are you posting the changes to a URL that is prepared to handle it? .: Are you using the latest versions of the scripts? Regards M On Nov 13, 11:23 pm, Rod

[jQuery] Re: Simple Filtering Script not working

2008-11-09 Thread mbraybrook
Have you checked what obj = $(this) returns? Looks to me like it would return the document, of which there is only one, so would only perform one iteration when used with .each. Presumably it would need to reference a group of elements on the page to work e.g.: var obj = $('.class'); M On Nov

[jQuery] Re: span tag is width:80px but is only showing the width of contents?

2008-11-09 Thread mbraybrook
se Hectors' example. M On Nov 7, 5:25 pm, nmiddleweek <[EMAIL PROTECTED]> wrote: > Why is this bad markup? it works... > > On Nov 7, 4:27 pm, mbraybrook <[EMAIL PROTECTED]> wrote: > > > This works: > >  A > > > However... > > I feel bad telling

[jQuery] Re: Anyway to make flexigrid "liquid" ?

2008-11-07 Thread mbraybrook
Someone here may yet come up with an answer, but perhaps this question would be better in http://groups.google.com/group/flexigrid? Sorry i can't be any more use than that. M On Nov 7, 4:21 pm, yabdab <[EMAIL PROTECTED]> wrote: > Anyone know a way to make this flexigrid "liquid"? > >  What I me

[jQuery] Re: span tag is width:80px but is only showing the width of contents?

2008-11-07 Thread mbraybrook
ot any idea on how I can do this? > > Cheers, > Nick > > On Nov 7, 3:48 pm, mbraybrook <[EMAIL PROTECTED]> wrote: > > > try: > > A > span> > > > Does that work? > > > M > > > On Nov 7, 3:45 pm, nmiddleweek <[EMAIL PROTECTED]>

[jQuery] Re: Triggering Validation using a button instead of submit

2008-11-07 Thread mbraybrook
t;   }); > > }); > > I'm not getting any JS errors, so I'm going to assume that everything > is in order. However, validation still isn't occuring... Oh, how I > love Fridays. ;) > > - justin > On Nov 7, 10:47 am, mbraybrook <[EMAIL PROTECTED]> wrote: &

[jQuery] Re: Triggering Validation using a button instead of submit

2008-11-07 Thread mbraybrook
Correction: validator.triggerHandler('submit'); change to $('#formid').triggerHandler('submit'); M On Nov 7, 3:45 pm, mbraybrook <[EMAIL PROTECTED]> wrote: > Try using the triggerhandler function: > var validator = $("#sourc

[jQuery] Re: span tag is width:80px but is only showing the width of contents?

2008-11-07 Thread mbraybrook
try: A Does that work? M On Nov 7, 3:45 pm, nmiddleweek <[EMAIL PROTECTED]> wrote: > Hello, > > I've got a SPAN tag which is set to 80px... > > A > > The contents of the SPAN is a single character and when rendered on > screen, the green SPAN is showing as only approx 15 pixels in width. > > Ho

[jQuery] Re: Triggering Validation using a button instead of submit

2008-11-07 Thread mbraybrook
Try using the triggerhandler function: var validator = $("#sourcing").validate(); $("#submit").click(function() { validator.triggerHandler('submit'); }); Not tested... HTH M On Nov 7, 3:41 pm, Justin Kozuch <[EMAIL PROTECTED]> wrote: > Hi There, > > I've been using the validation plug

[jQuery] Re: delay delivery of a link

2008-11-04 Thread mbraybrook
Javascript has a setTimeOut() function - this can delay the call of a javascript function by a specified time. http://www.w3schools.com/js/js_timing.asp - for more info. M On Nov 4, 4:45 pm, Manuel Meyer <[EMAIL PROTECTED]> wrote: > Hey, > is there a way of delay the delivery of a link? > The i

[jQuery] Re: where are the plugin demos?

2008-11-04 Thread mbraybrook
can do just from looking at > the plugin code?   Is no one else daunted by that? > > On Oct 28, 1:43 pm, mbraybrook <[EMAIL PROTECTED]> wrote: > > > Click the title to view the plugin itself, lookup the Resources > > section, if a demo is available its li

[jQuery] Re: Is there a way to update an element while you're dragging it?

2008-10-31 Thread mbraybrook
Try looking at the 'drag' option of draggable, it provides a 'Function that gets called when the mouse is moved during the dragging.' something like: $(".item").draggable({ drag(function() $(this).text('new text'); ) }); I've not tested, but this certainly seems to offer the answer. HTH M

[jQuery] Re: where are the plugin demos?

2008-10-28 Thread mbraybrook
Click the title to view the plugin itself, lookup the Resources section, if a demo is available its listed there, else try the home page for the project. Assuming your on http://plugins.jquery.com? M On Oct 28, 5:30 pm, JCQ <[EMAIL PROTECTED]> wrote: > I was wondering where the plugin demos are

[jQuery] Re: drag drop, and store dropped location

2008-10-27 Thread mbraybrook
The jQuery UI has a function called droppable, which can be applied to any jQuery object $("#id").Droppable. (documentation@ http://docs.jquery.com/UI/Droppables). This returns through the drop parameter the object which was dropped on, as in: drop: function(ev, ui) { $(this).

[jQuery] Re: Traversing Question with Parent and Children

2008-10-27 Thread mbraybrook
Why not provide the solution to make the post a little more useful? :P On Oct 25, 7:39 pm, Jason <[EMAIL PROTECTED]> wrote: > Resolved. > > On Oct 25, 11:51 am, Jason <[EMAIL PROTECTED]> wrote: > > > I have HTML similar to the following: > > > > > red border > > > > > Essentially I have a div

[jQuery] Re: Autocomplete: Show full list before start typing

2008-10-27 Thread mbraybrook
Can you tell us how you currently initialize the list? Perhaps a link or an extract of code. It depends on how you populate the list as to how you would show all items. I can't personally see a built in function of the AutoComplete plugin that supoprts this - hence it would likely be that you wo

[jQuery] Re: Can't apply date picker!

2008-09-23 Thread mbraybrook
Before I can help, I'll need a little more information, have you got a page available online to view an example? Can you provide the snippet of offending code at least? Are you using the JQueryUI date picker or a third-party plugin? M On Sep 23, 10:37 am, Ulan Zhandos <[EMAIL PROTECTED]> wrote

[jQuery] Re: javascript enabled

2008-09-09 Thread mbraybrook
Not a problem, glad I could help. M On Sep 9, 3:07 pm, "Sarmad AL-Saiegh" <[EMAIL PROTECTED]> wrote: > hi, thanks alot. ur answer was quit good :) > the tip about helped me to much. > > best wishes 2 u :) > > sarmad > > > > On Tue, Sep 9, 2008 at

[jQuery] Re: jQuery and swapping name values

2008-09-09 Thread mbraybrook
Hmm, a quandry, I'll do a little testing for you and get back when/if I can, unless someone else can provide an answer in the mean time. Regards Mark On Sep 9, 3:10 pm, Velcrobelly <[EMAIL PROTECTED]> wrote: > I will try to be clearer... > > The checkbox controls the hide/show toggle of the two

[jQuery] Re: javascript enabled

2008-09-09 Thread mbraybrook
Whether or not a user has javascript is not something you would use javascript for (if you use javascript, detecting a user that has not got javascript is, by definition, impossible. Alternatively, do some research into the html attribute, this will allow you to provide for those who do not have

[jQuery] Re: jQuery and swapping name values

2008-09-09 Thread mbraybrook
You may have to replace slideToggle with a conditional .hide() .show() and some other information. Pseudo-code: .: Check the state of the two divs seperately, perhaps by providing unique ID's for each one? .: If one is hidden, show it and set the "name" attribute to "data01" .: if one is shown, h

[jQuery] Re: Using JQuery with other libraries (Lightbox)

2008-09-09 Thread mbraybrook
I must add at this point that if at all possible eradicate the requirement for 2 javascript libraries. Javascript libraries, though incredibly useful, are fairly large in size, and using two can raise all sorts of performance issues. As you stated you are a novice it think its more important th

[jQuery] Re: how to control a imageover making one image to fade in a menu and fade out when....

2008-09-09 Thread mbraybrook
As for a proper example i can't do that too well as i don't have any original code to work with but something like this may work: html: JScript: //Add a listener to the #container div, rather than the img. $('#container').mouseover(function(){ $('#menu').show() }); $(