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
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
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
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
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
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]>
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:
&
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
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
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
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
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
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
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
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).
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
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
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
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
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
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
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
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
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() });
$(
24 matches
Mail list logo