Hi All,
I am using "ui.draggable.js" plugin.To drag images.It is working
fine but i want to restrict dragging out of div.How can i do this?Any
Suggestions?
Hi Weepy,
Very nice Weepy, really its making crazy ;)
On Wed, Jul 15, 2009 at 10:12 AM, Karl Swedberg wrote:
> Interesting view about this from Douglas Crockford:
>
> type="text/javascript"
> This attribute is optional. Since Netscape 2, the default programming
> language in all browsers has bee
Hi All,
I was wondering if there is a link or pointers for best practices while
integrating client side validation errors with server side validation. I
read on a forum that this requires the server side to return a json, but
could not find many pointers or details about this.
Can somebody please
Interesting view about this from Douglas Crockford:
type="text/javascript"
This attribute is optional. Since Netscape 2, the default programming
language in all browsers has been JavaScript. In XHTML, this attribute
is required and unnecessary. In HTML, it is better to leave it out.
The bro
The reason I think $(".main-title form") will not work for my case is
because my form is structured like the following:
Kansas City (KC)
So the form is actually a parent of the main-title div. But the main-title
has nothing to do with the form, so I tried to move it out and up
If you want to be sure the is appended after the last li use this
$(".list li:last").after("item " + (parseInt($(".list
li").length,10) + 1) + "");
On Jul 15, 10:24 am, Eno wrote:
> Given this HTML:
>
> item 1
>
> How would I insert elements inside the element after the
> existing ? I tri
Just before the , theres the DIV that contains the error
messages.
There are errors in your enquiry submission, please see below
for details.
Please enter your first
name
Please enter your last
name
Please provide either an
email address, home phone or mobile for us to get in
Hi,
How can I do validation on a group of input fields, as long as one of
the 3 fields have a value then it's valid,
I've managed to group them, but it's showing up with 3 error messages
instead of one. How can I get it to display just the one error msg for
all 3 input fields?
Here's my validati
this happens all the time with Joomla menu extensions. Original menu
CSS doesn't get removed, so now there are 2 sets of menu CSS rules
operating on same menu. Since they are scoped differently in design,
different elements may take have the original template rule take
prescedence, while other
On Jul 15, 3:25 am, yasmine wrote:
> Thanks, I didn't know about the javascript associative arrays.
Because javascript doesn't have them, it has objects that are simple
name/value pairs.
--
Rob
anyone have any experience using "After" functions with Cycle?
I'm trying to use it to display alternate texts for images by showing
text on "before" and remove it with "after". Trigger times are messing
it up
On Jul 11, 10:22 pm, Charlie wrote:
> Having problem with "after" option function fir
Why on earth do you have:
var modal = modal;
??? It doesn't make sense...
Aside from that weirdness, you should set your code like:
var content = { modal:true };
var $dialog = $("")
.dialog(content);
$dialog.dialog('open');
On Jul 14, 11:14 am, Nick wrote:
> Anyone: I cant seem t
What is the code you're using?
$("ul.list").append('item 2');
should work from your html.
On Jul 14, 2:24 pm, Eno wrote:
> Given this HTML:
>
> item 1
>
> How would I insert elements inside the element after the
> existing ? I tried using append() but that created a second
> element with th
See "Attribute Filters"
http://docs.jquery.com/Selectors
On Jul 14, 4:32 pm, "gswa...@synergydatasystems.com"
wrote:
> I have 2 lists on a page and I have a link set up to remove an li item
> from the one list. I need to check to see if there is a copy of that
> item in the other list based o
I have 2 lists on a page and I have a link set up to remove an li item
from the one list. I need to check to see if there is a copy of that
item in the other list based off an attribute in my li item called
qid. How would I look for a child list item based off this custom
attribute? Assuming I
Hi,
I have two layers. One of them changes the size if the inner elements
raising its height. Now I want to mirror the size of that container
and tell the other layer to have the same size. I know, I can add a
function which should be called, after an effect takes place, but I
also want to have th
I may be missing something here, but I added the Superfish Dropdown
Menu module to my Joomla installation for use with my Virtuemart
Shopping Cart and for some reason it looks very messed up. If some of
you would like to view it and tell me what you think is wrong please
feel free to go to the sit
Anyone: I cant seem to get this to work. If I pass "modal:true" in
as a variable it doesn't work. Anyone have any idea what is causing
it to break?
=== Stark Working Code ==
var modal = modal;
var content = true;
var $dialog = $("")
.dialog({
Given this HTML:
item 1
How would I insert elements inside the element after the
existing ? I tried using append() but that created a second
element with the new elements inside it after the existing block.
--
Anyone: I cant seem to get this to work. If I pass "modal:true" in
as a variable it doesn't work. Anyone have any idea what is causing
it to break?
=== Stark Working Code ==
var modal = modal;
var content = true;
var $dialog = $("")
.dialog({
test
On Tue, Jul 14, 2009 at 1:12 PM, Nick wrote:
> Anyone: I cant seem to get this to work. If I pass "modal:true" in
> as a variable it doesn't work. Anyone have any idea what is causing
> it to break?
>
> === Stark Working Code ==
> var modal = modal;
> var content = true;
>
Hello,
I am having a problem with a pop-out menu I scripted. It is very
easy, with a combination of mousing off and back over the menu, to get
the menu to cycle endlessly from hidden to visible. If you move the
mouse this behavior will stop, but I'd rather it didn't happen at all.
Part of it may
Hi there,
Let me begin by saying I know very little about jQuery and would love
to learn a lot more about it (so i don't have to waste people's time
on questions like the one I'm about to ask)
I am trying to design a graphic menu bar that is capable of displaying
each button in 4 modes: up (neutr
This example is not clear enough (at least for me..)
http://docs.jquery.com/Ajax/ajaxSend
I want something simple such as the user clicking and a "waiting.gif"
image is presented in order to let the user know that the server is
working on it.
$.get("file.html",
function(data){
hi
iam trying to validate the recaptcha over the remote function of the
"validate" plugin and the basic function works so far. now i want to
call the reload function of the recaptcha object if the captcha is not
correct. i am new to js and jquery maybe someone could help me how to
call the functi
Anyone: I cant seem to get this to work. If I pass "modal:true" in
as a variable it doesn't work. Anyone have any idea what is causing
it to break?
=== Stark Working Code ==
var modal = modal;
var content = true;
var $dialog = $("")
.dialog({
HI I am able to sort the Grid using JQuery Using AjaxOptions and
Sortable action items.
Can i have some plugin which helps to make the Grid Scrollable ?
Thanks in advance.
Aditya Marla
Anyone: I cant seem to get this to work. If I pass "modal:true" in
as a variable it doesn't work. Anyone have any idea what is causing
it to break?
=== Stark Working Code ==
var modal = modal;
var content = true;
var $dialog = $("")
.dialog({
hi
iam trying to validate the recaptcha over the remote function of the
"validate" plugin and the basic function works so far. now i want to
call the reload function of the recaptcha object if the captcha is not
correct. i am new to js and jquery maybe someone could help me how to
call the functi
Try:
$("select[id^=price_item_]").attr("data\\:interval");
On Jul 14, 1:22 pm, introvert wrote:
> Hello,
>
> I have the following selectbox xhtml structure:
>
>
> Volvo
> Saab
> Mercedes
> Audi
>
>
> Now I want to get the data:interval attribute value of the
Hi,
So the XHR is ONLY available from $.ajax and there's really no way to
get it from methods ($.post)?
I actually need this data in the ajaxSubmit callback of AjaxForm plug-
in.
This sounds like I have no option except to abandon the plug-in and do
the work manually (or modify it)?
Cheers.
Hello,
I have the following selectbox xhtml structure:
Volvo
Saab
Mercedes
Audi
Now I want to get the data:interval attribute value of the selected
option.
Which syntax should I use with jquery selector?
Currently I have:
$("select[id^=price_item_]").attr(
On Tue, Jul 14, 2009 at 6:37 PM, weepy wrote:
>
>> you don't define a type here making your page invalid
> Are you referring to $().ready(function() { }) ? You mean you'd
I believe he's referring to the script tag itself. It should given a
type (e.g. "text/javascript")
--
Brett Ritter / Swift
> you don't define a type here making your page invalid
Are you referring to $().ready(function() { }) ? You mean you'd
rather see $(document).ready ? - I thought they were equivalent.
> I guess none of this is open source?
not currently, though I'm slowly persuading my employer to get with
OS !
Hi,
I'm using getScript to load a script which basically contains a
variable, and then i'm using this variable in the callback function.
It looks like that :
$.getScript( myScriptURL, function() {
// execute this code on success
$("div#result").html(myVar.content);
});
and, the
The default date validation is quite weak, indeed. You can add your
own method, maybe using datejs.com, easily:
http://docs.jquery.com/Plugins/Validation/Validator/addMethod
Jörn
On Tue, Jul 14, 2009 at 10:47 PM, Matt Wilson wrote:
>
> I'm using this validation plugin
> http://bassistance.de/jq
You shouldn't initialize the validation inside a click-event handler -
that way it tries to init it on every click.
Why not just select the form and call validate, eg.
$(".main-title form").validate({ ... });
Jörn
On Tue, Jul 14, 2009 at 10:42 PM, Anoop kumar V wrote:
> Hi All,
>
> I think I ha
I'm using this validation plugin
http://bassistance.de/jquery-plugins/jquery-plugin-validation/
and it is great.
However, it rejects dates like 07-14-2009 as invalid. Is there some
way to add a list of valid formats?
If not, should I write my own method to match that particlar format?
Hi All,
I think I have been able to solve the issue of the validation error messages
not appearing on the correct form. If anyone else encounters the same
problem, below is the fix / solution for it. (I had to use the event and
firebug console). Changed lines are marked with a trailing //.
$(func
I did just notice though
var PORTAL_URI='yumoov.com';
var AUTH_TOKEN = "vLVJRvNMHbLBpOsxgyWfu1LfINHkHUVwwPKFX7mB89E=";
$().ready(function() {
})
you don't define a type here making your page invalid
cheers
Michael Lawson
Development Lead, Global Solutions
excellent, very nice. I am not a fan of flash, this is refreshing.
I guess none of this is open source?
On Jul 14, 12:30 pm, "Rick Faircloth"
wrote:
> very good, weepy!
>
> From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On
> Behalf Of Michael Lawson
> Sent: Tuesday, July
I figured out how to do it.
Wasn't too hard. However, your solution is quite clean as well. Not
sure which is better or what pitfalls there are to doing it my way vs.
yours.
submitHandler: function(form){
$('#submitSuggest').click(function
When you say "bogs down" does that mean it works, but very slow? Or
does it mean it doesn't work at all?
How many rows are you working with?
On Jul 14, 1:31 am, Alexandru Adrian Dinulescu
wrote:
> Hello.
>
> I am trying to do
> $("tbody tr").each(function(){
> $(this).childre
Is the callback function of the double-click handler separate (has a
variable name to reference)?
If so, just use that function as the callback to the single-click
handler.
Otherwise, maybe you can just have the single-click trigger a double-
click event. I haven't tried this.
$("#myDiv").click(
var $selected = $radioBoutons.filter(':checked');
This removes from the $radioBoutons set of all elements that are not
checked (which should end up with 0 or 1 item).
On Jul 14, 2:45 am, rejome wrote:
> Great ! That works perfectly.
>
> One last question :
> How can I use the variable declared
I am using the tokenizing autocomplete text entry which expects the
search result in json format
I want to know if it's possible to add items to the json collection
using jquery, if I have for example
var results = [{"id":"1","name":"Abb"}, {"id":"2","name":"Abbas"},
{"id":"3","name":"Abd"}, {"
Here's one way to do it:
$("#ajax_form").validate( [set validation options] );
$("#submit_btn").click(function() {
var valid = $("#ajax_form").valid(); // returns true or false
if (valid) {
// do ajax submission
}
});
On Jul 14, 7:33 am, ButtersRugby wrote:
> I am t
Following getJSON works fine but I need to replace "presentations with
a variable "getSlides" tried a lot of different ways with a variety of
errors no matter what I've treid
var getSlides = $(this).attr("href");
$.getJSON("photoList.js", function(slides){
$.each(slides.pr
What you need is access to the XMLHttpRequest object used in the request so I
suggest you use $.ajax instead of $.post. The "complete" callback for $.ajax
receives the XHR and textstatus as parameters, so this should get you the
headers:
$.ajax({url:'your.url',data:{'data1':'one','data2':'two'}
Hi Ricardo, thanks for the clarification, i thought I rememberd seeing
the $( $(x)[2] ) syntax somewhere. I like that better than the eq().
My ID's are all good, I just needed the 'body#seniors #text' so only
pages in my senior section would be altered, but I guess doing a php
if/else would have b
Liam, You are the Man, thankyou so much., It's working now.
ThankYou for your time.
On Tue, Jul 14, 2009 at 9:21 PM, Liam Potter wrote:
>
> remove the Jquery.js, as that is an old version. In the sublist script find
> this line
>
> $("#"+child+' opti...@value="'+ childVal
> +'"]').attr('selected
can you provide a link to a test case? It would be very helpful to see
where the difference is and what the cause might be.
thanks,
--Karl
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Jul 13, 2009, at 12:21 PM, Ranadave wrote:
I have a problem whereby on IE
I am trying to figure out how to submit the form using the $.ajax
call.
How do I make sure my form is valid when submitting via a click event
on a button?
do i put it in the submitHandler of the validation plugin?
submitHandler: function(form) {
$('mybutton').click(function () {
$.aja
Cycle supports loading images via ajax, which I think could smooth out
the long load issues.
A very basic impementation would be
$("#cycleDiv").load(slides.html, function(){
$(this).cycle({
timeout: 5000
});
});
where "slides.html" is the
I Don't Mean Flash based...
I Mean JQuery based editor for web..
I Only compared it.. Sorry for my english if I said anything
ununderstingable :)
On Jul 12, 5:20 am, donb wrote:
> Since jQuery is simply another layer of code on top of javascript, and
> the highly-capable FCK editor is often as
I think the HTML page will become invalid if more than a single field
has the same id. Can you change the id="dynamount" to maybe
class="dynamount"? Otherwise only the first field will be assigned the
id "dynamount".
Anoop
On Jul 14, 10:34 am, snitch wrote:
> Hello List,
>
> I hope this is the
Your code and what you are trying to do has nothing to do with jQuery
really.. it's all simple JS object stuff (http://www.google.com/search?
q=javascript+associative+array), with that pointed out
var d = {"one": 1, "two": 2, "three": 3};
d["four"] = 4;
would result in d being:
{ "one": 1, "two"
The code for the code split is
if (words.length > 1) {
if (options.minChars == 0 && $input.val().indexOf
(",") >= 0) {
v = words.slice(0,
words.length).join
(options.multipleSeparator) + options.multipleSeparator
With the way .NET works out of the box (http://www.google.com/search?
q=ASP.NET+postback+model), no
I'd suggest using a generic handler (ashx file) or some other non-
postback way to pass and retrieve data from your jQuery
On Jul 14, 11:40 am, ricka wrote:
> Hi All,
> Is there a way to pos
Am using Cycle (fade) for image slideshow very happily, except for the
big visual flap when all the photos (12 or so, but large-ish) load
prior to cycling.
I've looked for a preload solution but haven't immediately found any.
Is this best? Is there another solution?
Would be grateful for any hel
Hi,
I am really new to jquery and have been using it for the past few
weeks. I have an issue that I am stuck in, would be grateful if
someone could assist a little.
I use java / jsp for a small application of mine. The application
displays all regions as links on a page and for each region, I sh
Hi, am very new to jquery and I want to do something that I suppose is
very easy but I can't figure out how to do it
If I have something like this:
var d = {one:1, two:2, three:3};
and I want to add a new item to d, how can I do it?
I have looked up the documentation and found the function calle
Hi All,
Is there a way to post from a .net page with server form controls
using the jQuery .ajax method? The .net page is expecting the server
contols so I'm not sure how to handle it so when I serialize() the
form it doesn't know what to do with it.
Any help would be appreciated.
Thank you.
I have a php order form that uses Ajax that inserts some hidden form
elements into the current page.
I can see the hidden form elements when I look using Firebug but
cannot access the new elements within jQuery functions. I know if it
was an event I wanted to attach to on any new elements I could
very good, weepy!
From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On
Behalf Of Michael Lawson
Sent: Tuesday, July 14, 2009 11:38 AM
To: jquery-en@googlegroups.com
Cc: jQuery (English)
Subject: [jQuery] Re: <3 Solitaire
wow you're right, i just couldn't stop :)
Looks gr
remove the Jquery.js, as that is an old version. In the sublist script
find this line
$("#"+child+' opti...@value="'+ childVal +'"]').attr('selected','selected');
remove the @ symbol, so you have
$("#"+child+' option[value="'+ childVal +'"]').attr('selected','selected');
You shouldn't just
Hi,
I wanted a dropdown as soon as I place my cursor in the input box
(local values). I tried putting minChars as 0. It didn't seem to have
much effect. I made the following change in the autocomplete code
.click(function() {
// show select when clicking in a focused field
It would be best if:
- You explain what you are confused about
- You provide some working HTML using a site like LodgeIt
http://paste.pocoo.org/
- Perhaps use the dedicated jQuery UI mailing list instead:
http://groups.google.com/group/jquery-ui?hl=en
Basic things to watch for/do:
- Use FireBug
wow you're right, i just couldn't stop :)
Looks great!
cheers
Michael Lawson
Development Lead, Global Solutions, ibm.com
Phone: 1-276-206-8393
E-mail: mjlaw...@us.ibm.com
'Whether one believes in a religion or not,
and whether one believes in rebirth or not,
there isn't anyone who doesn't app
Hi
Check out the slick card game I just made - at http://www.lovesolitaire.com
It entirely made in jQuery (1.3.3pre).
It's also strangely addictive - so be careful! Love to hear any
feedback any of you have!
weepy
Hello Experts!
I have been trying to comprehend the JQuery ui slider for a solid day,
and I believe that every tutorial out there skips a giant step for
beginners.
Forget styling and options...how do you implement this Slider to begin
with? I'm trying to turn each div class="slider" in the code
ok so show me how you would put them together then, also are you
getting any errors ?
On Jul 14, 11:04 am, Sarm wrote:
> If i will remove this following
>
>
>
>
>
>
> $(function() {
> $("#theDate").datepicker({altField: '#theDate', altFormat:
> 'dd-mm-yy'});
>
Thanks for reply but both jquery files are related plugin. If i will delete
one jquery file then related will stop work.
I know one jquery file is enough so if i will remove this one
then Sublist part will be stop work and if i will remove this one
then calender will stop work.
On Tue, Ju
If i will remove this following
$(function() {
$("#theDate").datepicker({altField: '#theDate', altFormat:
'dd-mm-yy'});
});
$(function() {
$("#theDate1").datepicker({altField: '#theDate1', altFormat:
'dd-mm-yy'});
});
then above one will
You are including the jquery library multiple times, you only need to
call jquery once. eg
$(function(){
$("#selector").plugin();
$("#selector").plguin();
});
Mean Mike wrote:
I'm confused are you saying this doesn't work ?
function makeSublist(parent,
Hello List,
I hope this is the right place for my question.
I have a working form and all iss great using this jQuery Form
Validation PlugIn from brassistance.
Now I got in trouble by having a Form which will get extended by user
inputs. To explan in detail:
I have a Form with static fields and
I also found that validate requires the names of the fields to be
unique
On Jul 12, 7:23 pm, Mean Mike wrote:
> you might be running into problems because you have spans with the
> class "required" which is one used by jquery.validate
> try giving those spans a slightly different class and maybe
I'm confused are you saying this doesn't work ?
function makeSublist(parent,child,isSubselectOptional,childVal)
{
$("body").append("");
$('#'+parent+child).html($("#"+child+" option"));
var parentValue = $('#'+parent).a
On Jul 13, 3:54 pm, Jeff Nouwen wrote:
> My PHP script is being called through CodeIgniter, but I don't
> immediately see anything in its code that would cause the addition of
> the semi-colon.
And upon closer inspection of CodeIgniter's source, it is indeed the
cause of my problem, not jQuery.
No, as far I as can see.
I wrap some lists of words with using a little fn:
function setBold(text) {
var occur = text.split(",");
for( i=0; i' + r.text + '<\/strong>');
r.collapse(false)
}
}: function (node, te) {
var pos,
Great ! That works perfectly.
One last question :
How can I use the variable declared before ($radioBoutons) ?
Thanks a lot.
On 14 juil, 14:35, Charlie wrote:
> function fonctionRadioBoutons() {
> alert("Dans la fonction : " +
> $("input:radio[name=radioBoutons]:checked").
Thanks for reply me,
I am placing following code on page HEAD.
function makeSublist(parent,child,isSubselectOptional,childVal)
{
$("body").append("");
$('#'+parent+child).html($("#"+child+" option"));
var parentValue =
function fonctionRadioBoutons() {
alert("Dans la fonction : " +
$("input:radio[name=radioBoutons]:checked").val());
}
rejome wrote:
Hello,
Here is my prototype : http://rejome.homeip.net:8080/prototype.html
I don't understand how I can get the radiobut
what plugs are you referring to ? could you show us how your importing
jquery and plugins
Mean Mike
On Jul 14, 7:46 am, Sarm wrote:
> Hi Everyone,
>
> Many time i am getting one problem with Jquery when i am using more
> then one jquery plugin on same page then only one plugin works which
> wil
colgroup is useful in html table make-up, but firefox/opera/safari
doesn't support it well, only IE follows the standard almostly.
Since $.browser is deprecated in 1.3, maybe jquery should provide a
colgoup support-testing function,
including border, background, visibility, display css style testi
I'm wondering if anyone knows a method for 'converting' a single click
to (effectively) a double click with a timeout?
I have an onclick handler issue that requires a double click for an
event that the user will expect to need only a single click for.
Thanks!
Hello,
Here is my prototype : http://rejome.homeip.net:8080/prototype.html
I don't understand how I can get the radiobutton value in the
function...
Please help me :-)
When I $.post() the values of a form, if one of the values start with
any of "()[]{}", then the associated form element name has a semi-
colon appended to it when I finally extract the POST data in my PHP
script.
The Javascript:
var formValues = $("#formName").serialize();
alert(
I'm new to jquery so I hope you'll forgive my ignorance...
I have a div on a page that I'm hoping can contain multiple images
that would fade in and replace an out-going image based on an onClick
event.
Each image is dedicated to it's a href (there are about 30) and they
would all be initi
Hi all,
I've got a Superfish with Supersubs horizontal menu that is having an
issue I haven't been able to solve in IE7. The list items at the top
level of my navigation have fixed widths to align with the background
graphic, so they need to stay the same width all the time. However,
when you hov
Hey I am trying to get my form data when submitted and add it to a
table below the form (I am already submitting the form with the jquery
forms plugin).
Any help would be appreciative.
Hi Everyone,
Many time i am getting one problem with Jquery when i am using more
then one jquery plugin on same page then only one plugin works which
will be on top.
I guess few variables mixing and disturbing to each other. I just want
to know is there any way to control it?
Advance thanks for
Hy
I am looking for a javascript - jQuery - plugin developper.
Somebody who likes to develop clean and fast code.
It is a project, where I need some "editable", "contextmenue" and
"editor" code.
If you are intrested, contact me.
info aet ignaz doet ch
Hello.
I am trying to do
$("tbody tr").each(function(){
$(this).children("td:first").css({
'border-left': '3px solid #EE',
});
$(this).children("td:last").css({
'border-right': '3px solid #ee',
});
i have an issue with the autocomplete focus...
i am unable to focus on the selected value..the value is when i
selected one value it is displaying the previous one..i tried somany
ways but found no luck..
Please refer my code once:
On Tue, Jul 14, 2009 at 10:41 AM, jazz wrote:
>
> jquery.autoco