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,
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
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('|');
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);
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
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
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
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:
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=[];
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;
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
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,
//
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 =
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
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
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);
@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());
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:
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( )
{
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
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
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
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
thank you mike,
for your answer...now i understand it.
best wishes,
Enrico
24 matches
Mail list logo