[jQuery] Re: value visible in ajax response, but not used in output

2009-11-25 Thread Scott Sauyet
On Nov 25, 11:12 am, dcrunche henjohoek...@gmail.com wrote: When I check the response given in the console I see the output I want, but that is not showing on the page. Here's the JS I use:http://pastie.org/714683 I don't think you are actually using the resulting data anywhere in that code,

[jQuery] Re: value visible in ajax response, but not used in output

2009-11-25 Thread dcrunche
Hi Scott, thanks, that was what did the trick. I didn't need this without using the actual vars - then it worked well. But it makes sense I need to actually return the new result. D. On Nov 25, 5:57 pm, Scott Sauyet scott.sau...@gmail.com wrote: On Nov 25, 11:12 am, dcrunche

[jQuery] Re: Value adding to drop down

2009-07-19 Thread naz
i have values in data same like you are using BSIT|MSIT|BSC| etc when i used alert(). to display data values then values are correct but when values appear in drop down they become |BSIT code is like this var programs=[]; alert(data); programs=data.split('|');

[jQuery] Re: Value adding to drop down

2009-07-19 Thread naz
i have values in data like BSIT|MSIT|BSC| etc when i used alert(). to display data values then values are correct but when values appear in drop down they become |BSIT code is like this var programs=[]; alert(data);

[jQuery] Re: Value adding to drop down

2009-07-19 Thread Jules
OK that means the values causing the problem. Are your strings stored in the database as double byte characters? Try to view your page in Firefox and use firebug to display the value instead of using alert (). On Jul 20, 2:08 pm, naz s.na...@gmail.com wrote: i have values in data like

[jQuery] Re: Value adding to drop down

2009-07-18 Thread Theodore Ni
Please post again your current jQuery code including the separator you are using, as well as what is inside the data variable in full. That way, we can understand exactly what's going on; right now, I'm still confused. Teddy On Sat, Jul 18, 2009 at 12:07 AM, naz s.na...@gmail.com wrote: i

[jQuery] Re: Value adding to drop down

2009-07-18 Thread Jules
I tested your code with the following data var data = 'program1|program2|program3|'; and the drop down combo box displays program1 program2 program3 correctly. Again could you post the value of your data? On Jul 18, 2:07 pm, naz s.na...@gmail.com wrote: i m using internet explorar.and data

[jQuery] Re: Value adding to drop down

2009-07-17 Thread naz
i m using internet explorar.and data value is SE,DLD etc i m getting these values from db. On Jul 16, 11:14 am, Jules jwira...@gmail.com wrote: The code looks fine to me.  Could you post the data value?  What is the browser you are using? On Jul 16, 2:58 pm, naz s.na...@gmail.com wrote:

[jQuery] Re: Value adding to drop down

2009-07-17 Thread naz
i have changed '|' seperator still it is not working.:( On Jul 16, 10:31 am, 刘永杰 liuyongjie...@gmail.com wrote: change split character,not use '|'. 2009/7/16 naz s.na...@gmail.com hi i m adding some values to drop down by usind j query by this code var programs=[];  

[jQuery] Re: Value adding to drop down

2009-07-16 Thread Jules
The code looks fine to me. Could you post the data value? What is the browser you are using? On Jul 16, 2:58 pm, naz s.na...@gmail.com wrote: hi i m adding some values to drop down by usind j query by this code var programs=[];  programs=data.split('|'); $('#p_course').length = 1;  

[jQuery] Re: Value adding to drop down

2009-07-15 Thread 刘永杰
change split character,not use '|'. 2009/7/16 naz s.na...@gmail.com hi i m adding some values to drop down by usind j query by this code var programs=[]; programs=data.split('|'); $('#p_course').length = 1; for(var i=0;iprograms.length-1;i++) { var objDropdown

[jQuery] Re: value of this after many enclosures!

2009-04-08 Thread Lwangaman
Sorry I see that the comments don't line up well, thought I'd re-write the code such as to simplify reading the comments: // select all the cells with class mychkbox : $(td.mychkbox).each( // apply the mousedown event to each one of these : function(){ $(this).bind( mousedown, //

[jQuery] Re: value of this after many enclosures!

2009-04-08 Thread Shawn
Lwangaman wrote: alert(itsme.name); // gives undefined because a tablecell usually doesn't have a name attribute associated with it. Remember that your itsme variable is a reference to a DOM element (not a jQuery element). Which explains var itsyou =

[jQuery] Re: value of this after many enclosures!

2009-04-08 Thread Lwangaman
Thanks a lot! That got me going again! (eccomi was supposed to be itsme, eccoti was supposed to be itsyou, I overlooked that transliteration that I was doing from italian!) On 9 Apr, 03:48, Shawn sgro...@open2space.com wrote: Lwangaman wrote:           alert(itsme.name); // gives undefined

[jQuery] Re: Value of the property not valid. jquery.js, Line 12 Character 12721

2009-04-01 Thread Lwangaman
Ok I reasoned out that the interpreter rendered the background color of the first cell and stopped there, so I went to see what the next css property was supposed to be and it was the border-color. All I did was capitalize lightblue to LightBlue and lo and behold, I now no longer get that error

[jQuery] Re: value attribute update problem

2008-03-03 Thread Dan G. Switzer, II
Otomar, Little problem with value attribute I have some input element where I try to update attributes. Input element before jQuery code: input type=text name=test value= testparam= maxlength=10 size=10 / jQuery code: $(input[name='test']).attr(value,test123);

[jQuery] Re: value of a

2007-10-11 Thread Sharique
@Juan $(a).html() is always returning text of first a, here tata @ziz alert($(this).text()); works, thanks. Why return false? -- Sharique On Oct 10, 2:30 pm, zizi [EMAIL PROTECTED] wrote: Try this way: $(a).click( function( ) { alert($(this).text());

[jQuery] Re: value of a

2007-10-11 Thread David Duymelinck
To stop the link from executing. -- David Duymelinck Sharique schreef: @Juan $(a).html() is always returning text of first a, here tata @ziz alert($(this).text()); works, thanks. Why return false? -- Sharique On Oct 10, 2:30 pm, zizi [EMAIL PROTECTED] wrote: Try this way:

[jQuery] Re: value of a

2007-10-11 Thread zizi
without 'return false' href executed after alert On 10/11/07, Sharique [EMAIL PROTECTED] wrote: @ziz alert($(this).text()); works, thanks. Why return false? -- Sharique On Oct 10, 2:30 pm, zizi [EMAIL PROTECTED] wrote: Try this way: $(a).click( function( ) {

[jQuery] Re: value of a

2007-10-10 Thread Juan G. Hurtado
Try with $(a).html() El 10/10/2007, a las 8:57, Sharique escribió: What I want to is :When user click on a link it will show text inside the a tag. (ie. when user click in more it will show more in alert.) I have following code : - !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01//EN

[jQuery] Re: value of a

2007-10-10 Thread David Duymelinck
val is used for input fields, to get the text inside a tag you have to use html or text depending on what you are after. -- David Duymelinck Sharique schreef: What I want to is :When user click on a link it will show text inside the a tag. (ie. when user click in more it will show more in

[jQuery] Re: value of a

2007-10-10 Thread zizi
Try this way: $(a).click( function( ) { alert($(this).text()); return false; }); zizi On 10/10/07, Juan G. Hurtado [EMAIL PROTECTED] wrote: Try with $(a).html() El 10/10/2007, a las 8:57, Sharique escribió: What I want to is :When user

[jQuery] Re: .value= / .val()

2007-08-29 Thread Mike Alsup
Why i must use the .val() function? Because value is not a property on the jQuery object. It is a property on the DOM element. // use jQuery val method: $(#city).val($(city, xml).text()); // use DOM element value property: $(#city)[0].value = $(city, xml).text(); Mike

[jQuery] Re: .value= / .val()

2007-08-29 Thread Enrico
thank you mike, for your answer...now i understand it. best wishes, Enrico