Jambhalheart Posted November 17, 2012 Report Posted November 17, 2012 Dear All, How to debug jquery code in Visual studio 2008. I kept debugger but it is firing only when the page loads for first time. I have added a click event for a button in that code, but when I click the button, I am unable to debug. my code is like this... <script> $(document).ready(function() { debugger; var IsSurg = ""; var Amt = ""; var ResSeq = ""; $("#ctl00_cphmain_hdnVals").val(""); $("#ctl00_cphmain_btnUpdate").click(function() { $("#gview tr").each(function() { if ($(this).find('input:checkbox').attr("checked")) { IsSurg += "1" + ":"; } else { IsSurg += "0" + ":"; } Amt += $(this).find('input:textbox').val() + ":"; }); }); $("#ctl00_cphmain_hdnVals").val(IsSurg); }); </script> help cheyandi friends, monday kalla client gaadiki demo evvali... screen inka development avvaledu...
pikki Posted November 17, 2012 Report Posted November 17, 2012 aa scr!pt ni tr!gger chestunnava aa btn cl!ck lo, btn cl!ck c0de and dec!arat!0n p0st cheyi..
pikki Posted November 17, 2012 Report Posted November 17, 2012 ekkadunnav vayya p0st esi poyinav, atta patta levu... 1
Jambhalheart Posted November 17, 2012 Author Report Posted November 17, 2012 bro.. client call lo vunna... actually my problem is.. my master page has updatepanel, so debugger ani raasi nappudu, it is not firing the event code... even if it is firing, I m unable to debug line by line ... so edhi naa problem...
webservices Posted November 17, 2012 Report Posted November 17, 2012 alert(' '). rasukoni asalu dantlooki veltundhoo ledhoo chusukooooo
pikki Posted November 17, 2012 Report Posted November 17, 2012 [quote name='Maddy_Rulez' timestamp='1353162914' post='1302814471'] bro.. client call lo vunna... actually my problem is.. my master page has updatepanel, so debugger ani raasi nappudu, it is not firing the event code... even if it is firing, I m unable to debug line by line ... so edhi naa problem... [/quote] mas'ter pa'ge lo upd'at pan'e! aa.. ?? 0ka pani cheyi..scr!pt ni mast pa'ge lo petti try cheyi..
dotnetrockz Posted November 17, 2012 Report Posted November 17, 2012 button html post cheyyi..onclick,onclient click emanna define chesava? and ala hardcode cheyyaku ct100_btn ani...daaniki syntax untadhi dynamic ga page load ayinappudu '<# btnupdate.clientid>' ani......im not sure thats teh reason but okasari aa hardcoded nam ethesesi try cheyi
dotnetrockz Posted November 17, 2012 Report Posted November 17, 2012 just check if u included this: [color=#000000][font=Consolas, Menlo, Monaco,]<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>[/font][/color]
pikki Posted November 17, 2012 Report Posted November 17, 2012 [quote name='Nissan' timestamp='1353170055' post='1302814658'] button html post cheyyi..onclick,onclient click emanna define chesava? and ala hardcode cheyyaku ct100_btn ani...daaniki syntax untadhi dynamic ga page load ayinappudu '<# btnupdate.clientid>' ani......im not sure thats teh reason but okasari aa hardcoded nam ethesesi try cheyi [/quote] yeah th!s guy is n0t g!ving en0ugh !nfo baafa...seems l!ke a smal! f!x th0ugh...
Jambhalheart Posted November 17, 2012 Author Report Posted November 17, 2012 [quote name='Nissan' timestamp='1353170461' post='1302814665'] just check if u included this: [color=#000000][font=Consolas, Menlo, Monaco,]<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>[/font][/color] [/quote] thnx for the info bro... but the thing is... this looks like a third party file... so client may not agree to purchase it as of now as site is on go live already... problem is .. like this... 1.) master page has update panel, and even though i m keeping debugger. it is not going there.... I kept debugger after click event only, but first time it is not click when I click on button, kept it is going but I m unable to check line by line debugging ..... I know its a simple problem. I m unale to find solution.... pls help,,,,,
Jambhalheart Posted November 17, 2012 Author Report Posted November 17, 2012 [quote name='webservices' timestamp='1353166293' post='1302814547'] alert(' '). rasukoni asalu dantlooki veltundhoo ledhoo chusukooooo [/quote] alert is also not going baa... in second time when I m clicking button... [IMG]http://i45.tinypic.com/2nusump.gif[/IMG]
dotnetrockz Posted November 17, 2012 Report Posted November 17, 2012 [quote name='Maddy_Rulez' timestamp='1353183109' post='1302815477'] thnx for the info bro... but the thing is... this looks like a third party file... so client may not agree to purchase it as of now as site is on go live already... problem is .. like this... 1.) master page has update panel, and even though i m keeping debugger. it is not going there.... I kept debugger after click event only, but first time it is not click when I click on button, kept it is going but I m unable to check line by line debugging ..... I know its a simple problem. I m unale to find solution.... pls help,,,,, [/quote] ur jquery code is in master page?
dotnetrockz Posted November 17, 2012 Report Posted November 17, 2012 [quote name='Maddy_Rulez' timestamp='1353183109' post='1302815477'] [color=#ff0000]thnx for the info bro... but the thing is... this looks like a third party file... so client may not agree to purchase it as of now as site is on go live already...[/color] problem is .. like this... 1.) master page has update panel, and even though i m keeping debugger. it is not going there.... I kept debugger after click event only, but first time it is not click when I click on button, kept it is going but I m unable to check line by line debugging ..... I know its a simple problem. I m unale to find solution.... pls help,,,,, [/quote] i jsut gave that from a google search but if ur using jquery for client side scripting u need a refrence to that library...do u have that?
Jambhalheart Posted November 18, 2012 Author Report Posted November 18, 2012 [quote name='Nissan' timestamp='1353186760' post='1302815645'] ur jquery code is in master page? [/quote] my master page has some jquery code with $(document).ready()... .. code so, when I using this master page in my .aspx, again I m using $(document).ready()(function() {...... so, for the first time , button click event is not getting fired.. this is the problem...
Recommended Posts