What it does:
jQuery('.choix1').click(function(){
jQuery('#quest1').hide();
When you click on either button related to question 1 it just hides
the div id=quest1
What I would like to do is something like:
for (i=1; i=6; i++){
$(choix + i ).click function(){
$(#quest+i).hide();
}
So every
I made it another way. Probably someone need this code:
$(document).ready(function(){
$(.adminhead).click(function(){
$(this).toggle(slow);
$(this).parent().find(div.normalmode).toggle(slow);
});
});
Yes, forget about using ID's in this way. That's something you had to
do before using jQuery. Think about how your HTML is structured and
things are named/classed and the order they are in. Take advantage of
how easy it is to traverse the DOM with jQuery. If yo uhave
div
a class=choixlink
$(#msgUnits).text(nbsp;); will definitely not work. nbsp; is not
the name of a javascript object.
On Mar 13, 9:46 pm, Swatchdog scott.swatch...@gmail.com wrote:
This does not work:
$(#msgUnits).text(nbsp;);
nor does this...
$(#msgUnits).text('nbsp;');
I guess nbsp; is html only?
$(#msgUnits).html(nbsp;); will probably work.
- Jack
Swatchdog wrote:
This does not work:
$(#msgUnits).text(nbsp;);
nor does this...
$(#msgUnits).text('nbsp;');
I guess nbsp; is html only?
Clues, anyone?
That's great! I didn't find any reference to this in the docs neither
in the demo page. On IRC I was told that no support for JSON was
available, sorry. You said there will be an autocomplete widget for
jquery-ui, may I ask you when? Sorry for my naive question but I'm
pretty new to all jquery
OK fixed now thanks for the tip. onItemSelect should return undefined
rather than false (default setting) to show info.
Unfortunately the API displayed there is 1.2.6, its from
http://api.jquery.com/lib/docs/api-docs.js and its hasn't been updated
for a while.
On Mar 13, 8:34 pm, Nikola
Thank you very much for a great answer which nearly solved my
question in a very elegant way, I have even discovered in studying
selectors a little more thouroughly ( jquery doc) that you can use
jQuery('.choix').click(function(e) {
$(this).parent().parent().hide();
and it will go 2 levels up
Looks good - some of the bits on the site are a bit cheesy, i.e.
Saving the world... from high priced... :)
But yeah, the UI is good.
Regards,
Paul
On Mar 14, 3:07 am, K-BL axel...@aim.com wrote:
Thursday I released a new version of a website I manage,
Cablesforless.com, which takes full
Kevin,
You could always go back to basics... i.e. the following (you'll have
to use your existing hide show code..) - and I know this isn't
elegant...
if (ClickedItem == firstdiv)
{
ShowFirstDiv;
HideSecondDiv;
HideThirdDiv;
} elseif (ClickedItem == firstdiv)
Do something like:
div id=links
a href=#firstDiv id=firstfirsta
a href=#secondDiv id=secondseconda
a href=#thirdDiv id=thirdthirda
/div
div id=container
div class=content
div id=firstDiv/div
div id=secondDiv/div
div id=thirdDiv/div
/div
/div
JS:
Hi
Trying to understand the ajax queue plugin.
This version: http://view.jquery.com/trunk/plugins/ajaxQueue/jquery.ajaxQueue.js
I am calling ajax methods on a timer, can I rely on ajax queue to run
these?
It seems like ajax queue needs a reference to the last completed ajax
request?
Can
Or maybe this can be done ina nicer way, let me explain what i want
to do
When you enter something in the field and it matches with one of the
items in the list I want to change the style of the field to bold. I
tried this
$(#name).result(function(event, data, formatted) {
Michael,
Great job. I built a prototype of my own table for the same reasons a
few months ago. The grid looks good, but for my purposes (and I am
sure for many others), while having an array of rows is great and
useful, the plugin should be able to create such tables from a regular
table
Sorry if this is a duplicate post - doesn't look like the last one
went through.
I've seen several examples of how to process json data with .each when
the field names come over with json. My data, howver, looks like the
following:
{aaData: [
[1001-00-1535.000,Tenant Improvements],
I'm new to jquery and json. I've looked at lots of examples of how to
process json data but they all seem to have field names that come
across in the data and are used in the foreach processing. My data
looks like this:
{aaData: [
[1001-00-1535.000,Tenant Improvements],
var i=1;
function sw(act,id){
if(act=='in'){
if(i=1){
i=i-6;
$(id).scrollLeft=i;
var b=setTimeout(function(){sw('left',id);},10);}
else{
clearTimeout(b);}
}
else{
if(i410){
i=i+6;
$(id).scrollLeft=i;
var
e.g:
form
fieldset id='1'
input class='text' /
...buttonCHECK 1/button
/fieldset
fieldset id='2'
input class='text' /
...buttonCHECK 2/button
/fieldset
/form
if I use ignore: '1' , It seems not working.
I just want to check a form in 2 part, at different
I have a text field with autocomplete and now I want to force the list
of matches to show (like when writing a letter).
Say, the user writes hello then unfocus the field. Is it possible to
add an action to a button so when it's pressed it shows the
autocompletematches for the field where the
Hello, Following sample code works with older jquery. After moving jquery
1.3.2 and new UI and latest validate code it stops working. If I remove the
validate code works again...
--- following classes are working (eg $(#hucre_ayarlari).click )
tr class='drList_bloklar_tr'
Michael and Anatoly (and anyone else that my be interested), I hope you
consider joining us with your efforts over here:
http://wiki.jqueryui.com/GridTable
Thanks.
- Richard
On Sat, Mar 14, 2009 at 1:19 AM, AnatolyG anat...@geyfman.net wrote:
Michael,
Great job. I built a prototype of my
Perfect. Simple. Learning. Thanks.
On Mar 14, 3:53 am, Jack Killpatrick j...@ihwy.com wrote:
$(#msgUnits).html(nbsp;); will probably work.
- Jack
Swatchdog wrote:
This does not work:
$(#msgUnits).text(nbsp;);
nor does this...
$(#msgUnits).text('nbsp;');
I guess nbsp; is html
Sorry. I am actually using the .toggle()
--
View this message in context:
http://www.nabble.com/slideDown-content-disappearing-in-IE7-tp22507968s27240p22512801.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.
Hey guys,
i am having trouble with the jquery-corner plugin.
To narrow down my problem i created a really simple example page:
CODE:
html
head
script src=jquery.js type=text/javascript/script
script src=jquery.corner.js type=text/javascript/script
script type=text/javascript
Hi there,
I need to build a website with lot of animations and, if possible,
sound effects. I would like not to use Flash, so for animations I will
user jQuery, but I really don't know how to move for sound fx.
The client would like to have a background sound, and some sound fx on
mousover. Is
Hmm it remoevs what I put bwtween [] from the title?
Anyway, the title were supposed to be [autocomplete]Is it possible to
get the array it is working on?
On Mar 14, 10:55 am, Jonas jonas.sjob...@gmail.com wrote:
Or maybe this can be done ina nicer way, let me explain what i want
to do
When
jQuery(#home_start_register_button input).corner();
Are you trying to corner an input element? I would not expect that to
work.
Width jquery 1.2.6 i have a function as
function get_dati_gerachia(volte){
var chosenItemText = $(select[name='dati_gerarchia']).val();
a=volte=+volte
+id=2ordine_per=2pagine=1master=4dati=+chosenItemText
+livello=3menu_pagine_aggiunte=6;
$.ajax({
type: POST,
I found the solution. I simply did
$('#name').click();
On Mar 14, 3:08 pm, Jonas jonas.sjob...@gmail.com wrote:
I have a text field with autocomplete and now I want to force the list
of matches to show (like when writing a letter).
Say, the user writes hello then unfocus the field. Is it
Hello.
I want to add flying clouds like on http://devthought.com/ on my site.
Do anyone know how to do that? Maybe any suggestions?
Before taking on a challenging task, please give me some ideas to
speed up my development!
Just as the topic is saying, I will primarily be doing: MySQL = PHP
= JSON = AJAX = jQueryUI
I used to work with CakePHP but I have little experience with JSON.
Any hints on your favourite tools and
One more question if this is not abusing your time
Structure of each question:
div id=quest1
Question 1
input class=choix1 type=radio name=choix1
onclick='q1=1'Yesbr
input class=choix1 type=radio name=choix1 onclick='q1=0'Nobr
/div
jQuery('.choix').click(function(e) {
$(this).parent().hide();
hi mike,
i now have replaced my cycle-version with the one you have posted. it
seems to work fine now.
thanks!
The change I made in 2.58 is not a good x-browser solution. I'm
working on something a bit more reliable.
Mike
I think v2.60 is going to be a better solution. If anyone
Same problem with the most simple $post wrapper; i have this
javascript function
function anteprima(){
dati = new Array();
dati [0]=tinyMCE.get('txtitaliano').getContent();
dati [1]=$(#paginaitaliano).val();
dati [2]=$(select[name='gmap']).val();
'aaData' is an array of arrays.
aaData[0][0] = 1001-00-1535.000;
aaData[0][1] = Tenant Improvements;
On Mar 14, 4:56 am, finco mbeck...@gmail.com wrote:
I'm new to jquery and json. I've looked at lots of examples of how to
process json data but they all seem to have field names that come
Hi,
i have several html tags with some additional attributes like 'type' or
'abbr'. for example :
th id=col_1 class=ColumnHeader align=center abbr=language type=
editabletext style=width: 130px;Language/th
now i have a function which should fill the TD tag of another table based on
the abbr
Ok let's see if this post works... The last couple tries didn't!
I was reading through this year-old thread which I found googling
since I'm doing something similar, perhaps someone could give me a
couple tips.
Here is the page with the example I'm dealing with:
No, JSON is the correct route. If you are using ajax to retrieve
json, then you can pull the json into a javascript object
immediately. If you are using PHP to generate pages, then you can
print out the JSON object as a string directly into javascript and
create javascript objects that way.
item[field]
On Mar 14, 9:46 am, Alain Roger raf.n...@gmail.com wrote:
Hi,
i have several html tags with some additional attributes like 'type' or
'abbr'. for example :
th id=col_1 class=ColumnHeader align=center abbr=language type=
editabletext style=width: 130px;Language/th
now i have a
$(this).is(eq[0])
will not work because, is looks at the list of jquery objects that $
(this) returns. Which is just one object.
try giving the input a value of yes or no and doing
if ($(this).val() === 'yes')
On Mar 14, 8:51 am, macgyver47 jrl...@wanadoo.fr wrote:
One more question if
thanks a lot, it works... i was looking so complicated thing to do. :-(
On Sat, Mar 14, 2009 at 5:53 PM, mkmanning michaell...@gmail.com wrote:
item[field]
On Mar 14, 9:46 am, Alain Roger raf.n...@gmail.com wrote:
Hi,
i have several html tags with some additional attributes like
I apologize for my request: i have try on another MAC and all work
fine My MAMP is crazy... i reinstall
http://devthought.com/projects/mootools/apng/
On Mar 14, 12:29 pm, Grom grommas...@gmail.com wrote:
Hello.
I want to add flying clouds like onhttp://devthought.com/on my site.
Do anyone know how to do that? Maybe any suggestions?
Hi,
i have a table with checkboxes which allows user to select all row/records
or none.
they have all the same name : row
i would like to know if there is an easy way to find them in my table ?
i was thinking about something like :
$(#grid).find('td:row').each(function(i)
{
...
});
when td:row
[name=row]
On Mar 14, 10:58 am, Alain Roger raf.n...@gmail.com wrote:
Hi,
i have a table with checkboxes which allows user to select all row/records
or none.
they have all the same name : row
i would like to know if there is an easy way to find them in my table ?
i was thinking about
Hello, I trying to set the full width for overlay for Block Ui
(malsup), but the overlay cover only the window width( not the
document width). Well, that seems to be bug of block ui, but is there
any way to fix it on my site? The problem can be visible, when page
has over 1000px width. Then you
[name=row]
do you mean find('td[name=row]') ?
A.
I'm trying to get Cycle to work with Kwicks, actually just trying to
get it to work on this page:
http://tinyurl.com/c33e28
I've got the cycle working on its own but not within this page.
David
I tried to post this yesterday but was not a member, so pardon me if
you see this twice. I run about 15 forums and am not an idiot i
promise. I am under a deadline with a scary client who is
demanding this functionality. go figure. Simply put, I, too, am
trying to use a noninteger as some
Hi,
I am using JQUERY plugin Jcarousel in one of my project. Is this
possible to create two carousel in single page? Whenever I try to the
2nd one just display a plain unordered list. Any help will be
appreciated.
Thanks
When I try to bind events like within ajax call:
$.ajax({
type: 'POST',
...
success: function(msg) {
$(#dmid img, msg).each ( function() {
$(this).bind('mouseover', handler)
When I try to bind events like within ajax call:
$.ajax({
type: 'POST',
...
success: function(msg) {
$(#dmid img, msg).each ( function() {
$(this).bind('mouseover', handler)
Its not that. He wrote code to move image using mootools. Im looking
for something to move image on page for Jquery
On 14 Mar, 18:44, ricardobeat ricardob...@gmail.com wrote:
http://devthought.com/projects/mootools/apng/
On Mar 14, 12:29 pm, Grom grommas...@gmail.com wrote:
Hello.
I want
Hi there,
I am having trouble grasping the usage of mouseover and mouseout when
dealing with a menu. I created a list of links and in testing, I've
been able to hover over each link and they will animate, move over 10
pixels. On mouse out, they will move back. That's great, except when I
hover
I'm trying to get Cycle to work with Kwicks, actually just trying to
get it to work on this page:
http://tinyurl.com/c33e28
I've got the cycle working on its own but not within this page.
Replace this:
$(function() {
// run the code in the markup!
$('#demos pre
On Mar 14, 2009, at 4:38 AM, dani wrote:
Before taking on a challenging task, please give me some ideas to
speed up my development!
Just as the topic is saying, I will primarily be doing: MySQL = PHP
= JSON = AJAX = jQueryUI
I used to work with CakePHP but I have little experience with
Hi Jquery guys,
I am using below syntax for ajax error handling, but I never got any
specific error details. its always undefined.
function Error(xhr, ajaxOptions, thrownError)
{
// dump is javascript dump
dump(xhr, true);
dump(ajaxOptions, true);
If that's all your going to do with it, why not return a table from
the server and simply .load() it? No transformation required in that
case.
On Mar 14, 9:23 am, finco mbeck...@gmail.com wrote:
Sorry if this is a duplicate post - doesn't look like the last one
went through.
I've seen
Thankyou, I've at last got it working, I used the href attribute to
specify if the text is hidden or not (I will add the html code with
javascript and will supply a PHP version for navigators that are not
compatible with javascript), to begin with I wanted to use the toggle
function but I
You can't wrap any element around trs. Tables can only contain a
tbody/thead/tfoot and TRs, if you insert an element that is not
allowed, it itself will be wrapped by a new TR created by the browser,
and you'll get all kinds of misbehavior. You could insert a new tbody,
but browser handling of
That's the code in use on the page you mentioned.
I guess you could do something like that with jQuery's built-in animate
() function:
(function animateMe(){
$('#cloud1')
.animate({ marginLeft:+=200px }, 2000)
.animate({ marginLeft:-=200px }, 2000, function(){
animateMe();
});
})();
Does anybody know of a way to run a custom function on a specific
field if it is incorrect when validating an entire form?
TIA
Richard,
I don't know how well SlickGrid aligns with what most people would
expect of a jQueryUI Grid plugin.
The key difference is that most of the grid implementations listed on
the jQuery UI wiki (jqGrid, DataTables, ...) focus too much on being
able to work with data (search, sort, parse,
Because it puts it in the javascript and lets you easily manipulate it
with javascript. If you get html back from the server, it's more
difficult to manipulate.
$.getJson('path/to/url', function(data) {
var tableHTML = 'table';
$.each(data.aaData, function() {
tableHTML +=
The problem is this:
$(.block a).mouseover(function(){
$(.block a).animate({
$('.block a') gets every instance of an a element with class block.
So when you do the .animate on it, you are animating every element.
Instead, you mean.
$(.block a).mouseover(function(){
Then I must be missing something:
$(#placetoinsert).load(path/to/url);
would do the same thing, with the tableHTML constructed on the server
side.
On Mar 14, 5:02 pm, Josh Powell seas...@gmail.com wrote:
Because it puts it in the javascript and lets you easily manipulate it
with javascript.
Hi all,
I need an example for this situation:
I have a form that dynamically shows different parts of the form based
on radio button choices.
Example: Registrion type: Business or Individual radio buttons
If they click on Business, I have a portion of the page only show
business information
Is it validation you need, or just something to respond to their
choice in order to set up your page accordingly?
-Original Message-
From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On
Behalf Of Loony2nz
Sent: Saturday, March 14, 2009 5:31 PM
To: jQuery (English)
validation.
basically if they choose individual, show the individual section of
the form and make those fields validate (address, city, state, zip all
required).
but if they choose business don't make the individual section
required.
i'm lost how to do this logic in the jQuery validation plug
I think I got it.. can someone validate this for me..see if I'm on the
right track?
rules: {
regType: {required: true},
first_name: {required:true},
last_name: {required:true},
individual_state: {
required: function(element) {
return $('input[name=regType]:checked').val() ==
Dear all,
OK, solved it myself in case anyone's still listening. It still remains a
puzzle why safari on Mac interprets the code differently.
The if/else test below isn't necessary. The fadeOut was executing, but the
.load() callback failed when the .thumb clicked was the same one as the
Big thanks to both of you!
What I don't like about that method is the loss of ease of updating
and reuse of code later on. If you stick it in a table coming back,
and need the some data somewhere else you cannot reuse it. Also,
changing things on server side requires recompiling in a java
environment, which is a drag for
Perfect! I knew it couldn't have been that difficult. That's exactly
what I needed. Thanks!
On Mar 14, 5:04 pm, Josh Powell seas...@gmail.com wrote:
The problem is this:
$(.block a).mouseover(function(){
$(.block a).animate({
$('.block a') gets every instance of an a element with
hi ,
plz i wanted to ask if it's possible to simplemodal popup movabe
across the page , instead of having him fix in a definite position ?
if not , is there a modale plugin who enable that ?
and thanks a lot
I have a very complex application I have constructed to create and
manage IVRs on asterisk servers. I make heavy use of jquery and have
had few issues until now.
I do all my primary development in firefox and everything is working
fine there, but the tool for uploading prompts is not working in
Greetings,
I'm having problems with transitions of a slideshow running with a
thumbnail pager. Although the fade effect works fine in Firefox and
Safari, in IE the content disappears completely before the next
content abruptly appears. Here's the test site (Cycle takes a few
seconds to start)
Hi,
I'm trying to use jQuery to get some HTML with Javascript using AJAX.
My response gets inserted into the contentDiv element but my
javascript inside the response doesn't get executed as the
documentation says (http://docs.jquery.com/
Specifying_the_Data_Type_for_AJAX_Requests).
Here goes my
I'm having problems with transitions of a slideshow running with a
thumbnail pager. Although the fade effect works fine in Firefox and
Safari, in IE the content disappears completely before the next
content abruptly appears. Here's the test site (Cycle takes a few
seconds to
I am having difficulty tracking this down - there is no apparent
error...just nothing happens. Nothing is sent to the server, so this
is not a problem with display the response - there is no response
because the form never submits.
Does anyone know about problems with IE7 or IE8 using the
I was on v2.18 (still the latest rev listed on the jquery.com site). I
downloaded v2.24 and the problem is gone.
Thanks for the quick response though!
John
- Original Message -
From: Mike Alsup mal...@gmail.com
To: jQuery (English) jquery-en@googlegroups.com
Sent: Saturday, March
For some strange reason, the first time I attempt trigger an event
using mousover , I have to mouseover an element .accordionElement
twice (in, out, in of the element) before the trigger fires in Firefox
3. Once I fire the trigger once on that particular element, I can
mouse over it normally
Thanks for the code snippet Josh. It's exactly what I was looking
for. Certainly load works as well. At this point I am trying to
understand various options for producing data on an intranet. In the
past I have written asp pages which format the HTML and then use ajax
(with or without jquery)
Try this:
el.find(#pic)
.attr({src: pix[imgName].imgSrc, name: imgName})
.bind('load readystatechange', function(e){
if (this.complete || (this.readyState == 'complete' e.type =
'readystatechange')) {
el.fadeIn(slow);
$(#loading).hide();
};
});
Thank for the solutions.
Yeah I almost went old school, for sanity. In the, before I saw this
post I did something with filter and find. But I may use your's, Adam
that is more streamlined. Will have to try and see what happens
On Mar 14, 9:09 am, Adam Jessop a...@infused-gaming.net wrote:
Do
I was on v2.18 (still the latest rev listed on the jquery.com site). I
downloaded v2.24 and the problem is gone.
Thanks for the quick response though!
Glad to hear it. Thanks for letting me know.
To execute javascript code returned by the server you need to use the
javascript eval function on the string of script returned from the
server. As far as I know changing the content of a div to a javascript
block won't cause that javascript code to execute.
I think you need to change:
I don't use the plug-in typically, but may start soon. I've been
rolling my own validation routines.
However, is it possible to set up two separate validation routines
with the plug-in with separate id's or some other identifier and
call the appropriate routine according to the user's
I'm not familiar enough with it to validate it for you, but
I'd like to know if it's working for you...
Rick
-Original Message-
From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On
Behalf Of Loony2nz
Sent: Saturday, March 14, 2009 6:08 PM
To: jQuery (English)
Anyone?
I still can't figure out why jScroll Pane is causing the Invalid
Argument.
On Mar 13, 9:38 am, Henry rcornf...@raindrop.co.uk wrote:
Nic Hubbard wrote:
Ok, I removed all instances of the cycle plugin when it is
not needed. But, this has not fixed the problem in IE7/8.
Why would
90 matches
Mail list logo