last day (15 days later) » 

18:45
hey
Hello
one sec
Please take a look a this website
wepo.fety.fr
login & pass: beta
try to search for 9007
and click on any row
@ShankarSangoli are you there man?
1 secc
What is your requirement
clicking on anywhere on the row open the url right?
and click on checkbox don't open it right?
not only checkbox, but td where located checkbox
yes
What about clicking number besides checkbox which is in the same cell?
neither number nor checkbox
18:52
ok
extract whole td in which located checkbox from function
I got it
executed my code in console works fine
have you tested it in 9007?
search for 9007 and click
yes
I mean ur site has issue
wherre is ur code?
dbview.js
18:54
after loading the site when I executed my code it works fine
But I changed on local version doesn't worked for me
paste your code please
that actually work
hey
your site still has the old code
you haven't copied my code
try this code
I know, I changed it on local version
it works fine
whch code?
18:55
$("tr").click(function(){
window.open($(this).attr("url"));
});

$("td.item_id").click(function(e){
e.stopPropagation();
});
paste here please
@ShankarSangoli changed
doesn't work
Please, search for item 9007
and click
k
Looks like you are adding elements dynamically.
In tat case
use this code
@3nigma hey
19:01
hi
@ShankarSangoli which?
wait shanker is suggesting something i guess you should take a look at that first
@3nigma kk
19:03
@Riley wtf?
hey
u there
@ShankarSangoli ?
.lol
$(document).delegate('td.item_id', 'click', function(e){
e.stopPropagation();
});
$(document).delegate('tr', 'click', function(){
window.open($(this).attr("url"));
});
and refresh the page
Use this code
@ShankarSangoli ok. one moment. inside ready handlre?
19:04
well i was usiing jquery on gmoneyglove.com
in my ifame..
@Riley stop pls
... take a look ..
at my urls.. ..
@ShankarSangoli OOOMMMGGG!!!!
THX man
it works right
19:06
@ShankarSangoli but I used it, outside of domready
mark it as answer!!
@ShankarSangoli index.php looad under my head
header
@ShankarSangoli ok will mark
@ShankarSangoli one sec
@ShankarSangoli but I used it, outside of domready
@ShankarSangoli is that wrong?
19:07
since it is using delegate keep it outside will also work
@ShankarSangoli one more thing
@ShankarSangoli how can I untick (if ticked, of course) checkbox when select changes screencast.com/t/EHzkLfQBy?
Open a new question for that will answer it
@ShankarSangoli ok. please don't leave chat
19:12
What do u want?
explain me will do it
Are on website right now?
Please tick checkbox which located left to ID screencast.com/t/EHzkLfQBy
Then change selectbox
What I want to do is simple: want to untick (and trigger realetd functions) this checkbox (if ticked, of course) when select changes
@ShankarSangoli gotcha?
k
let me try
check this if it works
0
A: Trigger another function on dynamically created select change

ShankarSangoliChange your code like this. $('select[name=list_length]').change(function(){ $('#check_all').click(); }); $('#check_all').click( function() { var isChecked = this.checked; if(isChecked ){ totalqt=0; } $('.checkbox').each(function(){ $(this).prop('checked'...

@ShankarSangoli man please check website
something goes wrong
when I click on checkbox it opens another window
why is it opening another window?
@ShankarSangoli are you on website? when I click on checkbox which located left to id. it opens new window
19:21
yes
give me a secc
found the issue
will suggest u code change
wait
hey
the delegate code which you added
replace it by this code
$(document).delegate('td.item_id', 'click', function(e){
e.stopPropagation();
});
$(document).delegate('#list > tbody > tr', 'click', function(){
window.open($(this).attr("url"));
});
r u there?
?
@ShankarSangoli yes
@ShankarSangoli which one to replace
Previously which I gave u
for row click fix
replace that with the code I just gave
@ShankarSangoli replaced. take a look. still problem
19:28
o
ok
@ShankarSangoli could you look at this please you really know your stuff,. stackoverflow.com/questions/9243218/…
@ShankarSangoli it ticks even to checkbox not tivked
yes it is fixed now
@ShankarSangoli no. not fixed
try to change select
it will tick the cbox near id even it's not ticked
clicking on check all checkbox was opening a new window
it is fixed right?
19:30
yeah. it is fixed. but
try to change select it will tick the cbox near id even it's not ticked
what do u want it to happen
explain me
I will correct it
@ShankarSangoli Well, if it's not ticked, don't do anything. If ticked just untick it and trigger related things, when I untick by hand
sharasan u talking to me
@Riley JUST WAIIIITTT. WE'RE SOLVING PROBLEM
19:32
... yea................................
terally
really
you are a saint
@ShankarSangoli SO?
yes
1
A: Trigger another function on dynamically created select change

ShankarSangoliChange your code like this. $('select[name=list_length]').change(function(){ if($('#check_all').is(':checked')){ $('#check_all').click(); } }); $('#check_all').click( function() { var isChecked = this.checked; if(isChecked ){ totalqt=0; } $('.checkbox...

copy that code and see
@ShankarSangoli doesn't work. refresh page and see
It unticks
Unticks but untick it by hand and see what should happen actually
It's tick all and untick all function. So when you untick it must untick all ticked rows
gotcha?
@ShankarSangoli u there
19:41
ok
got it
let me change
@ShankarSangoli waiting
use this code
function checkAllCheckboxes(isChecked) {
if(isChecked ){
totalqt=0;
}
$('.checkbox').each(function(){
$(this).prop('checked', isChecked);
doIt(this);
});
changeQt();
}

$('select[name=list_length]').unbind().change(function(){
if($('#check_all').is(':checked')){
$('#check_all').prop('checked', false);
checkAllCheckboxes(false);
}
});

$('#check_all').unbind().click(function(){
checkAllCheckboxes(this.checked);
});
tell me once you replace that code
note I have added a ffunction
wait 1 sec
wait
@ShankarSangoli ok
function checkAllCheckboxes(isChecked) {
if(isChecked ){
totalqt=0;
}
$('.checkbox').each(function(){
$(this).prop('checked', isChecked);
doIt(this);
});
changeQt();
}

$('select[name=list_length]').change(function(){
if($('#check_all').is(':checked')){
$('#check_all').prop('checked', false);
checkAllCheckboxes(false);
}
});

$('#check_all').click(function(){
checkAllCheckboxes(this.checked);
});
copy this
@ShankarSangoli ok. moment
@ShankarSangoli Works man works, U rock man!! I'd want to see your name on my friend list. Are u using facebook or skype?
19:55
kool
@ShankarSangoli my skype tural.teyyuboglu
thx very much
u rock
ok
glad could help
you
you can take a look at my other answer if u like upvote them :)
stackoverflow.com/questions/9243218/… any luck trl13 i will wait for you as long as you need thanks you

last day (15 days later) »