[jQuery]
unsuscribe
[jQuery] XMLHTTPRequest in IE
Hi, I´m to read some web where say that IE 7+ accept XMLHTTPRequest... what problems will be able to have my pages? thank´s
[jQuery] session and ajax
Hi,. I have problem with code ajax and jquery when from code ajax call one source .php, the session (create in these source .php) no exist when return... can you help me? thank´s -- source ajax --- $(document).ready(function(){ $('#form1').ajaxForm({ dataType: 'json', beforeSubmit: validar, success: actualizar }); }); function actualizar(data){ $('#contenido').html(''); $('#contenido').hide(); if (data.correcto == 'si'){ alert($_SESSION['nombre']); $('#form1').fadeOut('slow', function(){ $('#contenido').html(data.mensaje).fadeIn('slow'); }); } }; ---uno.php if (session_id() == ) { session_start(); $_SESSION['NOMBRE'] = 'gustavo'; echo '{ mensaje: ' .$_SESSION['nombre']. ', correcto:si}'; } else { echo '{ mensaje: ' . $_POST['mensaje'] . ', correcto:si}'; } --
[jQuery] jquery form and myfom
hi, jquery form only work if name of form is myform? is correct afirmation? thank´s
Re: [jQuery] jquery form and myfom
then... what alternative have? thank´s From: Charlie Griefer Sent: Monday, November 09, 2009 7:18 PM To: jquery-en@googlegroups.com Subject: Re: [jQuery] jquery form and myfom On Mon, Nov 9, 2009 at 2:16 PM, Lord Gustavo Miguel Angel goosfanc...@gmail.com wrote: hi, jquery form only work if name of form is myform? is correct afirmation? there are no such restrictions/limitations. Any page element can have any valid name value (any valid value for any attribute, actually). -- Charlie Griefer http://charlie.griefer.com/ I have failed as much as I have succeeded. But I love my life. I love my wife. And I wish you my kind of success.
Re: [jQuery] jquery form and myfom
ok. thnks´ i treid it. From: Charlie Griefer Sent: Monday, November 09, 2009 7:41 PM To: jquery-en@googlegroups.com Subject: Re: [jQuery] jquery form and myfom name your elements with whatever name you want. form name=gustavo id=xyz class=blah can be selected via: $('#xyz') $('.blah') (this will return an array of -all- elements of class blah) $('form') (this will return an array of -all- form elements on the pag) $('form[name=gustavo]') $('form[id=xyz]') $('form[class=blah]') $('form#xyz') Is there a specific question here? On Mon, Nov 9, 2009 at 2:33 PM, Lord Gustavo Miguel Angel goosfanc...@gmail.com wrote: then... what alternative have? thank´s From: Charlie Griefer Sent: Monday, November 09, 2009 7:18 PM To: jquery-en@googlegroups.com Subject: Re: [jQuery] jquery form and myfom On Mon, Nov 9, 2009 at 2:16 PM, Lord Gustavo Miguel Angel goosfanc...@gmail.com wrote: hi, jquery form only work if name of form is myform? is correct afirmation? there are no such restrictions/limitations. Any page element can have any valid name value (any valid value for any attribute, actually). -- Charlie Griefer http://charlie.griefer.com/ I have failed as much as I have succeeded. But I love my life. I love my wife. And I wish you my kind of success. -- Charlie Griefer http://charlie.griefer.com/ I have failed as much as I have succeeded. But I love my life. I love my wife. And I wish you my kind of success.
[jQuery] jquery form...
hi. i´m try with this example: http://www.malsup.com/jquery/form/#json but Alert(data.message) return undefinited why? tk-.
Re: [jQuery] jquery form...
i don´t understand i write this: ?php echo '{ message: ' . $_POST['message'] . ' }'; ? From: Matt Quackenbush Sent: Monday, November 09, 2009 10:20 PM To: jquery-en@googlegroups.com Subject: Re: [jQuery] jquery form... Why? Simple. Because the variable does not exist. :D On Mon, Nov 9, 2009 at 7:09 PM, Lord Gustavo Miguel Angel wrote: hi. i´m try with this example: http://www.malsup.com/jquery/form/#json but Alert(data.message) return undefinited why? tk-.
Re: [jQuery] jquery form...
My error. original code: $('#jsonForm').ajaxForm({ // dataType identifies the expected content type of the server response dataType: 'json', My code: $('#jsonForm').ajaxForm({ // dataType identifies the expected content type of the server response datatype: 'json', (look datatype original dataType' upcase(T) tk From: Matt Quackenbush Sent: Monday, November 09, 2009 10:20 PM To: jquery-en@googlegroups.com Subject: Re: [jQuery] jquery form... Why? Simple. Because the variable does not exist. :D On Mon, Nov 9, 2009 at 7:09 PM, Lord Gustavo Miguel Angel wrote: hi. i´m try with this example: http://www.malsup.com/jquery/form/#json but Alert(data.message) return undefinited why? tk-.
[jQuery] $.ajax and responsed value...
Hi, I need transfer from resultados.php two values, to next check and run something. Example code: Code run when i clicked in button of form var sData = 'name' + gerardo + 'password' + '123'; $.ajax({ type: POST, url: '../resultados.php', data: sData, success: function(values){ /* There i need check: if values[1] then{ echo all ok } else{ echo error. } */ } }); ---8--- resultados.php ?php $a= $_POST[name]; $b=$_POST['password']; echo $a; echo $b; ? Thank´s
Re: [jQuery] Re: $.ajax and responsed value...
thank´s -- From: Josip Lazic jlaz...@gmail.com Sent: Saturday, November 07, 2009 4:02 PM To: jQuery (English) jquery-en@googlegroups.com Subject: [jQuery] Re: $.ajax and responsed value... You could try return json encoded data from PHP, here's tutorial http://www.prodevtips.com/2008/08/15/jquery-json-with-php-json_encode-and-json_decode/
[jQuery] [ ajax jQuery]
Hi, Why this code not is ok? -8--- $(document).ready(function(){ $(.button).click(function(){ $.ajax({ url: ejemplo.html, success: function(datos){ alert(datos); } }); }); }); -8-- When y click en Button it not show datos. thank´s
Re: [jQuery] [ ajax jQuery]
if i change ejemplo.html for example.php error. if i change for this: $(document).ready(function(){ $.ajax({ type: POST, url: uno.php, data: nombre=juanapellido=luna, success: function(datos){ alert(datos); } }); }); script run!. before not. -- From: brian zijn.digi...@gmail.com Sent: Wednesday, November 04, 2009 11:00 PM To: jquery-en@googlegroups.com Subject: Re: [jQuery] [ ajax jQuery] Normally, one would direct an AJAX request to some server-side script (eg. PHP, Python, Perl, etc.) not a plain HTML page. On Wed, Nov 4, 2009 at 8:55 PM, Lord Gustavo Miguel Angel goosfanc...@gmail.com wrote: Hi, Why this code not is ok? -8--- $(document).ready(function(){ $(.button).click(function(){ $.ajax({ url: ejemplo.html, success: function(datos){ alert(datos); } }); }); }); -8-- When y click en Button it not show datos. thank´s
[jQuery] Re: Accessing functions inside $(document).ready()
hi! please write here you code. Thanks. -- From: Matthew matthewbchamb...@gmail.com Sent: Monday, September 21, 2009 8:11 PM To: jQuery (English) jquery-en@googlegroups.com Subject: [jQuery] Accessing functions inside $(document).ready() Hi all I've got a js file where all the functions are wrapped inside $ (document).ready(). I want to call one of the function from within the HTML but it says that the function is not defined. Any ideas? Cheers Matthew
[jQuery] [Attrib external not working...]
Hi, Why this code not working? a rel=external href=www.google.comgoogle/a url www.google.com open in same windows. Thank´s
[jQuery] [ why don´t working attr ]
Hi, I have this code jQuery: $('div.contenedor a').each(function(index){ $(this).attr({ 'rel': 'external', 'id': index }); }); -- This´s my html -- div id=contenedor h1UNA TERTULIA INESPERADA/h1 p0) En un agujero en el suelo, vivía un hobbit. No un agujero húmedo, sucio, repugnante, con restos de gusanos y olor a fango, ni tampoco un agujero seco, se a href=http://www.google.com.ar; abrían /a --- Where is error? i need show in source a rel=external id=X href=http://www.google.com.ar; abrían /a where x is index thank´s
[jQuery] Re: [ why don´t working attr ]
Sorry not work! -- From: Mike McNally emmecin...@gmail.com Sent: Saturday, September 19, 2009 1:44 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: [ why don´t working attr ] On Sat, Sep 19, 2009 at 10:03 AM, adambundy adambu...@gmail.com wrote: Your syntax is incorrect. What you want, I think, is: $(this).attr({ 'rel','external', 'id',index }); (commas in place of the colons) No, that's not correct. The syntax is fine in the original. I think the problem is that the div has an id value of contenedor, but the jQuery select is div.contenedor. It should be div#contenedor. -- Turtle, turtle, on the ground, Pink and shiny, turn around.
[jQuery] Re: [ why don´t working attr ]
resolved! 1) thank´s all Was colons. Correct! $(div#contenedor a).attr({ title:asdasdasd, rel:external }); Was div#. correct! Gustavo. -- From: Mike McNally emmecin...@gmail.com Sent: Saturday, September 19, 2009 6:05 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: [ why don´t working attr ] Well the selector was definitely wrong. div.contenedor means select all divs with class 'contenedor'. Your div did not have that class - rather, it had that string as its id value. For that you need div#contenedor. Now, are other things wrong? Maybe; you didn't post anything else. On Sat, Sep 19, 2009 at 3:56 PM, Lord Gustavo Miguel Angel goosfanc...@gmail.com wrote: Sorry not work! -- From: Mike McNally emmecin...@gmail.com Sent: Saturday, September 19, 2009 1:44 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: [ why don´t working attr ] On Sat, Sep 19, 2009 at 10:03 AM, adambundy adambu...@gmail.com wrote: Your syntax is incorrect. What you want, I think, is: $(this).attr({ 'rel','external', 'id',index }); (commas in place of the colons) No, that's not correct. The syntax is fine in the original. I think the problem is that the div has an id value of contenedor, but the jQuery select is div.contenedor. It should be div#contenedor. -- Turtle, turtle, on the ground, Pink and shiny, turn around. -- Turtle, turtle, on the ground, Pink and shiny, turn around.
[jQuery] Re: [ first quest...]
thank´s you understand me! From: Ralph Whitbeck Sent: Tuesday, September 15, 2009 11:01 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: [ first quest...] So if I understand what you're trying to do correctly. You want to select the first p tag that has the index of 0 in the matched set AND you want to select all p tags after the 5th index in the same matched set. This will do that: $(p:eq(0), p:gt(5)); Documentation: http://docs.jquery.com/Selectors/eq#index http://docs.jquery.com/Selectors/gt#index http://docs.jquery.com/Selectors/multiple#selector1selector2selectorN On Tue, Sep 15, 2009 at 8:57 PM, Lord Gustavo Miguel Angel goosfanc...@gmail.com wrote: Hi, I have 3 or more p label. How i do to do this: if (p:eq(..) == 0) .and. p:eq() 5) then ... endif Thank´s
[jQuery] [ first quest...]
Hi, I have 3 or more p label. How i do to do this: if (p:eq(..) == 0) .and. p:eq() 5) then ... endif Thank´s
[jQuery] [ resolution browser? ]
Hi, How i can to know resolution of browser? Thank´s
[jQuery] test
[jQuery] [ definition css in other file ]
Hello all! I have this .html - script language=JavaScript type=text/javascript src=jvs/ jquery-1.2.5.js /script script type=text/javascript $(document).ready(function(){ $(p).click(function(event){ alert(Thanks for visiting!); }); }); /script /head body div id=contenidos pEscoger del menu/p /div /body /html --- eof 8 and i have this other .css: - #contenidos{ float:left; width:480px; min-height: 250px; border: 3px solid grey; margin-left: 10px; padding: 5px; padding-bottom: 8px; background-color: #fff; } -EOF 8- my question. How i do to used this .css file in my .html with jQuery¿ Thank´s
[jQuery] Re: [ definition css in other file ]
ok. i trade explaint problem. i have 2 file: index.html( i send file with name html.txt) style.css( i send file with name style.txt) my problem: how i do to use index.html and style.css and jQuery? - Original Message - From: Varun Khatri To: jquery-en@googlegroups.com Sent: Sunday, January 11, 2009 8:45 PM Subject: [jQuery] Re: [ definition css in other file ] i dint get you ? tell what is the problem? On Sun, Jan 11, 2009 at 3:05 PM, goosfancito goosfanc...@gmail.com wrote: thank´s but i before do this link href=test.css rel=stylesheet type=text/css / but don´t... On 11 ene, 19:59, Varun Khatri khatri.vk1...@gmail.com wrote: make a .css file like test.css and use it like: link href=test.css rel=stylesheet type=text/css / hope this helps!! On Sun, Jan 11, 2009 at 3:56 PM, Lord Gustavo Miguel Angel goosfanc...@gmail.com wrote: Hello all! I have this .html - script language=JavaScript type=text/javascript src=jvs/ jquery-1.2.5.js /script script type=text/javascript $(document).ready(function(){ $(p).click(function(event){ alert(Thanks for visiting!); }); }); /script /head body div id=contenidos pEscoger del menu/p /div /body /html --- eof 8 and i have this other .css: - #contenidos{ float:left; width:480px; min-height: 250px; border: 3px solid grey; margin-left: 10px; padding: 5px; padding-bottom: 8px; background-color: #fff; } -EOF 8- my question. How i do to used this .css file in my .html with jQuery¿ Thank´s !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; html xmlns=http://www.w3.org/1999/xhtml; head meta http-equiv=Content-Type content=text/html; charset=utf-8 / titleejemplo de AJAX/title link href=css/estilos.css rel=stylesheet type=text/css / script language=JavaScript type=text/javascript src=jvs/jquery.js /script script type=text/javascript $(document).ready(function(){ $(p).click(function(event){ alert(Thanks for visiting!); }); }); /script /head body /div div id=contenidos h3Parte del contenido/h3 pEscoger del menu/p /div /body /html #contenidos{ float:left; width:480px; min-height: 250px; border: 3px solid grey; margin-left: 10px; padding: 5px; padding-bottom: 8px; background-color: #fff; }
[jQuery] Re: [ definition css in other file ]
no work sorry i write in spanish. but in file that i send you can see this lines: link href=css/estilos.css rel=stylesheet type=text/css / but when i use this: body /div div id=contenidos h3Parte del contenido/h3 pEscoger del menu/p /div /body it no work - Original Message - From: Varun Khatri To: jquery-en@googlegroups.com Sent: Sunday, January 11, 2009 9:03 PM Subject: [jQuery] Re: [ definition css in other file ] u can try like : script type=text/javascript src=Scripts/jQuery.js/script link href=test.css rel=stylesheet type=text/css / 2009/1/11 Lord Gustavo Miguel Angel goosfanc...@gmail.com ok. i trade explaint problem. i have 2 file: index.html( i send file with name html.txt) style.css( i send file with name style.txt) my problem: how i do to use index.html and style.css and jQuery? - Original Message - From: Varun Khatri To: jquery-en@googlegroups.com Sent: Sunday, January 11, 2009 8:45 PM Subject: [jQuery] Re: [ definition css in other file ] i dint get you ? tell what is the problem? On Sun, Jan 11, 2009 at 3:05 PM, goosfancito goosfanc...@gmail.com wrote: thank´s but i before do this link href=test.css rel=stylesheet type=text/css / but don´t... On 11 ene, 19:59, Varun Khatri khatri.vk1...@gmail.com wrote: make a .css file like test.css and use it like: link href=test.css rel=stylesheet type=text/css / hope this helps!! On Sun, Jan 11, 2009 at 3:56 PM, Lord Gustavo Miguel Angel goosfanc...@gmail.com wrote: Hello all! I have this .html - script language=JavaScript type=text/javascript src=jvs/ jquery-1.2.5.js /script script type=text/javascript $(document).ready(function(){ $(p).click(function(event){ alert(Thanks for visiting!); }); }); /script /head body div id=contenidos pEscoger del menu/p /div /body /html --- eof 8 and i have this other .css: - #contenidos{ float:left; width:480px; min-height: 250px; border: 3px solid grey; margin-left: 10px; padding: 5px; padding-bottom: 8px; background-color: #fff; } -EOF 8- my question. How i do to used this .css file in my .html with jQuery¿ Thank´s
[jQuery] Re: [ definition css in other file ]
no problem. don´t work thank´s - Original Message - From: Varun Khatri To: jquery-en@googlegroups.com Sent: Sunday, January 11, 2009 9:58 PM Subject: [jQuery] Re: [ definition css in other file ] body /div // remove this line from your code div id=contenidos h3Parte del contenido/h3 pEscoger del menu/p /div check your file is in css folder as you are writing : css/estilos.css estilos.css should be in folder name css... I tried your code and it works fine... /body On Sun, Jan 11, 2009 at 5:18 PM, Lord Gustavo Miguel Angel goosfanc...@gmail.com wrote: no work sorry i write in spanish. but in file that i send you can see this lines: link href=css/estilos.css rel=stylesheet type=text/css / but when i use this: body /div div id=contenidos h3Parte del contenido/h3 pEscoger del menu/p /div /body it no work - Original Message - From: Varun Khatri To: jquery-en@googlegroups.com Sent: Sunday, January 11, 2009 9:03 PM Subject: [jQuery] Re: [ definition css in other file ] u can try like : script type=text/javascript src=Scripts/jQuery.js/script link href=test.css rel=stylesheet type=text/css / 2009/1/11 Lord Gustavo Miguel Angel goosfanc...@gmail.com ok. i trade explaint problem. i have 2 file: index.html( i send file with name html.txt) style.css( i send file with name style.txt) my problem: how i do to use index.html and style.css and jQuery? - Original Message - From: Varun Khatri To: jquery-en@googlegroups.com Sent: Sunday, January 11, 2009 8:45 PM Subject: [jQuery] Re: [ definition css in other file ] i dint get you ? tell what is the problem? On Sun, Jan 11, 2009 at 3:05 PM, goosfancito goosfanc...@gmail.com wrote: thank´s but i before do this link href=test.css rel=stylesheet type=text/css / but don´t... On 11 ene, 19:59, Varun Khatri khatri.vk1...@gmail.com wrote: make a .css file like test.css and use it like: link href=test.css rel=stylesheet type=text/css / hope this helps!! On Sun, Jan 11, 2009 at 3:56 PM, Lord Gustavo Miguel Angel goosfanc...@gmail.com wrote: Hello all! I have this .html - script language=JavaScript type=text/javascript src=jvs/ jquery-1.2.5.js /script script type=text/javascript $(document).ready(function(){ $(p).click(function(event){ alert(Thanks for visiting!); }); }); /script /head body div id=contenidos pEscoger del menu/p /div /body /html --- eof 8 and i have this other .css: - #contenidos{ float:left; width:480px; min-height: 250px; border: 3px solid grey; margin-left: 10px; padding: 5px; padding-bottom: 8px; background-color: #fff; } -EOF 8- my question. How i do to used this .css file in my .html with jQuery¿ Thank´s
[jQuery] john. please example css
John, please publish full example of the use one fine .html and other .css both with jquery. Thank´s. Please Not use .css inside .html file. - Original Message - From: John Resig jere...@gmail.com To: jquery-en@googlegroups.com; jquery-...@googlegroups.com Sent: Sunday, January 11, 2009 11:15 PM Subject: [jQuery] jQuery 1.3rc1 Ready Hey Everyone - jQuery 1.3rc1 is ready. This means that 1.3 is effectively finished barring a horrible bug between now and the final release on Wednesday (the 14th). You can grab the source here: http://code.jquery.com/jquery-1.3rc1.js Please let me know, personally, if you find some bad new bug and we can triage it together. A screenshot of the final test run can be found here (on 8 browsers): http://flickr.com/photos/jeresig/3189240673/ Who else here is excited to get this out the door? --John