Unnamed: 0
int64
302
6.03M
Id
int64
303
6.03M
Title
stringlengths
12
149
input
stringlengths
25
3.08k
output
stringclasses
181 values
Tag_Number
stringclasses
181 values
5,269,129
5,269,130
How to focus radio button?
<p>I want to focus in radio button used grouping in grid view. Now I write some code that is:</p> <pre><code>error = ((RadioButton)gridview1.rows[3].FindControl("radio1")).ClientID; RunScriptBottom("DoFocus()","DoFocus"); </code></pre> <p>That code is called in a JavaScript function</p> <pre><code>function DoFocus()...
c# javascript
[0, 3]
4,015,685
4,015,686
Change filename on file upload in .net (asp)
<p>How to change file name on upload ?</p> <p>I have such code :</p> <pre><code>&lt;%@ WebHandler Language="C#" Class="Upload" %&gt; using System; using System.Web; using System.IO; public class Upload : IHttpHandler { public void ProcessRequest(HttpContext context) { HttpPostedFile oFile = context.Reques...
c# asp.net
[0, 9]
983,702
983,703
Accessing image tag id in javascript when it is placed inside asp server control, Error:The server tag is not well defined
<p>I have code as shown below</p> <pre><code> &lt;asp:TemplateField FooterStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center" HeaderStyle-CssClass="Column1"&gt; &lt;ItemTemplate&gt; &lt;div class="Column1" style="visibility:&lt;%# SetEditImagesVisibility()%&gt;;"...
javascript asp.net
[3, 9]
2,634,928
2,634,929
Alert based on if condition error
<p>I am trying to fire an alert based on wether a flag is set or not. The first time the page is loaded, the alert works fine. If I then alert data after success, then when I close the dialog the old data is still there. So instead of seeing no data, I still see the old data. The idea, is that if user closes the dialog...
javascript jquery
[3, 5]
257,665
257,666
How to run stored procedure from code behind
<p>i am inserting some values in my table and at the same time, i want to call stored procedure that does some updates but i am having some issues with the syntax. I have searched online but could not find anything. I am just trying to figure out how can to use the same connection. here is my code:</p> <pre><code>sq...
c# asp.net
[0, 9]
1,979,273
1,979,274
OnClick event calling a js function and a callback function
<p>I have an external compiled project(asp.net) that we are using in our code. I dont have access to the code behind, just the .aspx pages.</p> <p>One of the things Im trying to do is to call two functions from the button in the page.</p> <pre><code>&lt;cc1:ImageButton ID="btnYes" runat="server" OnClick="btnYes_Click...
javascript asp.net
[3, 9]
3,282,916
3,282,917
ASP.NET javascript embed in template column
<p>I am developing a web page in which a rad grid displays the list of exams. I included a template column which shows count down timer when the exam is going to expire.</p> <p>Code is as given below:</p> <pre><code> &lt;telerik:RadGrid ID="radGrid" runat="server" AutoGenerateColumns="false"&gt; &lt;MasterTab...
asp.net javascript
[9, 3]
976,270
976,271
How to store search result?
<p>I am working on my personal site, where I want to <strong>store my customers recent search</strong> result limited to that <strong>particular session</strong>. </p> <p>I am using <strong>PHP</strong> platform and <strong>Javascripts</strong>.</p> <p><a href="http://www.networksolutions.com/domain-name-registratio...
php javascript jquery
[2, 3, 5]
1,686,970
1,686,971
Reset setTimeout every button click?
<p>Here is My Code</p> <blockquote> <p>var sec = 10 var timer = setInterval(function() {<br> $('#timer span').text(sec--); }, 1000);</p> </blockquote> <p>it setTimeout for 10seconds and if I click reset button will setTimeout again with 10seconds</p>
javascript jquery
[3, 5]
2,545,528
2,545,529
setting value of textbox using javascript in asp.net
<p>i am using .aspx page where i used html textarea to get the teat from user. i am also have a asp:textbox say "txtbox1" control where i want to have the value of that textarea in txtbox1. but it is not setting the value.. i am using javascript as:</p> <pre><code> document.getElementById('txtareahead').readOnly=...
javascript asp.net
[3, 9]
3,934,760
3,934,761
Setting an attribute to the last position
<p><strong>Is it possible to set a new attribute to the last position of a html element using javascript/jQuery?</strong></p> <p>This would be helpfull for me in a case where the attribute order is important to decide whether the paragraph has changed or not.</p> <p><strong>Example:</strong></p> <pre><code>&lt;p att...
javascript jquery
[3, 5]
242,902
242,903
Script not executing on homepage
<p>I'm using the following code to evaluate two sets of conditions in a CMS generated navigation list on a site I'm building:</p> <p>Condition one: if there's an ampersand in the navigation, surround it with em tags.</p> <pre><code>//pretty ampersands for all! Well, just the H1 tags and the navigation. $("...
javascript jquery
[3, 5]
3,859,300
3,859,301
GridView inside a ViewPager
<p>I can't swipe/move to next page without me putting my finger to an empty space in the gridview, anyone encountered this?</p>
java android
[1, 4]
5,616,486
5,616,487
What jquery experssion would give me ['a','b'] for the doc <tag att1='a' /><tag att1='b'/>
<p>What jquery experssion would give me <code>['a','b']</code> for the doc <code>&lt;tag att1='a' /&gt;&lt;tag att1='b' /&gt;</code>.</p> <p>Even though the question seems straight forward enough, I've added more info here to pass the automated quality standards on the question submission form.</p> <p>The actual case...
javascript jquery
[3, 5]
4,295,619
4,295,620
Removing <script> tag - PHP
<p>How to change all the occurrence of the <code>&lt;script&gt; &lt;Script&gt; &lt;scRipT&gt; &lt;sCrIpT&gt; and so ..</code> to <code>&amp;lt;script&amp;gt; &amp;lt;Script&amp;gt;</code> with PHP<br> I also want to remove </p> <p>The input will be taken from a WYSIWYG Editor, so i can not use the strip_tags function....
php javascript
[2, 3]
1,432,528
1,432,529
Way to know what Windows service pack version is from the browser?
<p>Is there a way to find what service pack is installed from the browser? It doesn't look like it's in the System.Web.HttpBrowserCapabilities in asp.net. I need a way to warn users that they need to update to XP Service Pack 3 before proceeding and installing some software.</p>
javascript asp.net
[3, 9]
3,824,025
3,824,026
Show list of partial news items as a hyperlink so the user can click 'read more'
<p>I need to create a Vertical Ticker news scroller which gets populated dynamically from the code behind using C# ( asp.net ) by taking the records from a MSSQL database.</p> <p>I see a similar article but its in PHP ( See Below ) <a href="http://stackoverflow.com/questions/3352943/automatically-insert-content-into-n...
c# asp.net
[0, 9]
3,410,702
3,410,703
How to invoke ondeletecommand of a DataList inside another
<p>I have a datalist containing usercontrol placed in update panel, any of these usercontrols may contain a datalist.I'm trying to fire ondeletecommand of the inside datalist but nothing happens.Any clue</p>
c# asp.net
[0, 9]
2,927,835
2,927,836
Save jQuery variables in a PHP session
<pre><code>var x = e.pageX; var y = e.pageY; </code></pre> <p>Which is the easiest way to save those jQuery variables in a PHP session.</p>
php jquery
[2, 5]
1,903,856
1,903,857
javascript - get Object based on property's value
<p>... if I have the following constructor and then create an instance of the class:</p> <pre><code> /* Gallery */ function Gallery( _horseName ){ this.horseName = _horseName this.pixList = new Array(); } var touchGallery = new Gallery( "touch" ) </code></pre> <p>... how can I get the Gallery object based...
javascript jquery
[3, 5]
847,461
847,462
Connecting to MySql through ASP.NET using ODBC
<p>help me with this issue please.</p> <p>I'm trying to connect to MySql using ASP.Net. i'm using this code to do this:</p> <pre><code>using System.Data; using System.Data.Odbc; //...... DataSet Mysql_ds = new DataSet(); OdbcConnection Mysql_con; string Mysql_conStr = "Driver={MySQL ODBC 4.1 Driver};Server=S...
c# asp.net
[0, 9]
3,454,116
3,454,117
Javascript function can write to console but not returning value
<p>I have a function in javascript which can write the output to the console but it is unable to return the value.. </p> <pre><code>fetchData: function(dateToFetch){ if (mP.viewMode == 1){ $.each(mealData.DailymPs, function(k, item){ if( item.Date == formatDate(mP.chosen...
javascript jquery
[3, 5]
2,064,074
2,064,075
Dynamically load user controls on button click, postback issue
<p>I'm trying to load usercontrols on button click, but problem is that, it disappears on postback inside user control.</p> <p>this is how i load controls:</p> <pre><code>private bool IsUserControl { get { if (ViewState["IsUserControl"] != null) { return (bool)ViewState["IsUserCont...
c# asp.net
[0, 9]
1,621,771
1,621,772
asp.hyperlink in gridview Format 0 as null
<p>I am calling a giant stored proc via linq to sql that brings back some numbered data from 0 to 9. I would like to be able to display any zeros as nulls (so there is no hyperlink). I could do this in my stored procedure, but it would make it really hard to read and maintain (there is a lot of case logic going on).<...
c# asp.net
[0, 9]
3,252,200
3,252,201
plotting X Y notes and creating edges between them in javascript
<p>I am looking for a javascript library that I can do following:</p> <p>Create X,Y nodes Create Edges between X,Y nodes add Label to Nodes</p> <p>I have looked at infovis and d3.js. Both do node and edges but I cannot seem to find how I can define the X,Y of each node.</p>
javascript jquery
[3, 5]
4,372,132
4,372,133
Get the current page number using turn js
<p>I am using turn js , a js that create flip book function. </p> <p>From the online source the statement to get current page is :</p> <pre><code>alert($('selector').turn('page')); </code></pre> <p>However, it only get a null value that means the $('selector').turn('page') is not working. How to get the page no of t...
javascript jquery
[3, 5]
4,630,096
4,630,097
window.opener.doccument.getelementbyid() is not working when popup from iframe
<p>I am calling a popup from an iframe and when I click a button the popup should close and show a message in parent iframe. I am using the javascript below</p> <pre><code>function ClosePopup() { var fRame = window.opener.document.getElementByID('lblMessage').innerHTML="testMessage"; self.close(); } </code></...
javascript asp.net
[3, 9]
5,004,589
5,004,590
Swipeview - show preview/snippet of next item?
<p>I am using Swipeview (http://cubiq.org/swipeview) to create a touch-enabled carousel working on an iPhone and Android. The basics works great.</p> <p>My problem starts when i try to get it to show 25% of the next slide pr default. The idea is that the user can see 1/4 of the next slide/image, which should then make...
javascript jquery
[3, 5]
2,747,789
2,747,790
Error : Could not find HelloAndroid.apk
<p>I am very new to Android development. I followed every steps from developer.com to install ADK. Now my issue is, when I tried to run HelloAndroid application, I get an error as I mentioned in the title. I hav JRE1.6 installed. Is tat enuf? Because I read tat ether jdk or jre is ok. I am clearly blank about the conce...
java android
[1, 4]
5,896,167
5,896,168
jQuery Floating Div with Bottom Limit
<p>Trying to duplicate the mashable effect with two menus. I got the scrolling effect working, but I was looking for the effect to stop at the top of the footer. I was thinking I could do a conditional statement with the limits, but I wasn't sure how to pull it off.</p> <p>Here is the javascript I'm using.</p> <pre><...
javascript jquery
[3, 5]
2,606,592
2,606,593
RNG hidden field parameter
<p>I have a registration form and I am taking the users input and passing the information to a payment website. The payment website has several hidden fields so it can distinguish each individual user as unique instead of relying on a unique name provided by the user. That's what the "unique_id" field is and I want a r...
c# asp.net
[0, 9]
5,890,314
5,890,315
"sexiest" libraries for content presentation
<p>maybe someone will classify this question as "subjective..." but i think it would be useful to have a place where put links to fancy jquery and non-jquery libraries for high impact content presentation ... can you list here your favorite? I'm interested in using it for a project for which i would like to amaze my cu...
javascript jquery
[3, 5]
868,937
868,938
How to call a javascript function and get the html code it returns ,Java,Android
<p>There is a HTML page that has a javascript function in it.This function returns a frame with a random picture. Is there a way to call this function and get the HTML code that is hidding? (So i get the image)</p> <p>Exactly i want to get a html stream from <a href="http://partner.googleadservices.com/gampad/google_s...
java javascript android
[1, 3, 4]
4,723,217
4,723,218
objectdatasource question
<p>For the moment, I'm binding my gridviews by calling a linq query that returns a list collection of objects MyObject. In my gridview, if I'm using a boundfield I set its Datafield property to the name of the property of MyObject and if I'm using an itemtemplate I work with Eval. In my code behind, I have</p> <pre><c...
c# asp.net
[0, 9]
2,455,006
2,455,007
How to prevent repeated text field input within the same Form.
<p>I am creating a e-commerce website. In my website people can register and share their recipe. And in that recipe Form i have multiple text fields. Such as Recipe name, Ingredients, cooking time, cooking tools etc.Now anyone can just change the recipe name and send the same content over and over again to flood the da...
php javascript
[2, 3]
4,265,029
4,265,030
JQUERY Multiple ID selectors
<p>Heres a snip of the start of my code </p> <pre><code> var myUpload = $("#upload_link").upload({bla bla bla </code></pre> <p>Basically what I'm trying to do is make the same call with a few different ID's...</p> <p>I would have assumed this would work but it doesn't :</p> <p>example :</p> <pre><code> var m...
javascript jquery
[3, 5]
1,368,169
1,368,170
Mind boggling javascript failure at handling some basic addition!
<p>This is killing me! I'm trying to add the values of four fields together, and I get allllll kinds of wierd results!</p> <p><strong>The code I have so far:</strong></p> <pre><code>$('input.percent').change(function() { var totalup = 1; var totalup = totalup*1; $('input.percent').each(function(){ ...
javascript jquery
[3, 5]
1,076,551
1,076,552
Android: How do I allow access to only part of an objects members using an interface
<p>How do I "pass an interface", i.e. what CommonsWare suggested to the asker in the <a href="http://stackoverflow.com/questions/2719433/getting-reference-to-calling-activity-from-asynctask-not-as-an-inner-class">question below</a>?></p> <blockquote> <p>The other is to make DownloadFileTask public and pass somethi...
java android
[1, 4]
6,001,033
6,001,034
how to copy only the columns in a DataTable to another DataTable?
<p>how to copy only the columns in a DataTable to another DataTable?</p>
c# asp.net
[0, 9]
3,821,702
3,821,703
C# alternative for PHP function date('Y-m-d)
<p>What's the easiest way to generate a date string like in PHP with C#/.NET?</p>
c# php
[0, 2]
460,331
460,332
jQuery pitfalls to avoid
<p>I am starting a project with jQuery.</p> <p>What pitfalls/errors/misconceptions/abuses/misuses did you have in your jQuery project?</p>
javascript jquery
[3, 5]
5,014,804
5,014,805
Calculating Pixel Distance in QT C++
<p>I am writing an application , to compare 2 images of same dimensions , I need to compare distance For example if two images of the Same then the distance between those two images would be zero. If two images are completely different than the distance between them would be quite large.The project involves taking...
c# c++
[0, 6]
3,089,999
3,090,000
Saving and Adding to A List (Android)
<p>Plain and, hopefully simply...</p> <p>-What I would like to do is make a list of strings. </p> <p>-I would like to add to this list while in the application. </p> <p>-Finally, I want to get each String from this list. </p> <p>This must be saved somehow so that when you close it and open it back up, the list will...
java android
[1, 4]
1,980,580
1,980,581
Java - How can I easily parse XML with XML Pull Parser?
<p>I searched a lot about XML Parsers and found out the Pull Parser would be the best for Android Applications. So I searched for some easy examples to understand but I didn't found one. Can somebody help me and say how you can easily parse XML with Pull Parser (from a URL not assets)?</p> <p>Thank you :)</p>
java android
[1, 4]
3,889,677
3,889,678
Segment text using fullstops
<p>I need to segment text using fullstops using PHP/Javascript.The problem is if I use "." to split text then abbreviations , date formatting (12.03.2010 ) or urls as well split-ed , which I need to prevent.There are many such possibilities , I might not be able to imagine. How to recognize that the "." is used as full...
php javascript
[2, 3]
2,277,973
2,277,974
ajax success response load to divs
<p>I have three forms and using this jquery function</p> <pre><code>$('form').submit(function() { $.ajax({ type: $(this).attr('method'), url: $(this).attr('action'), data: $(this).serialize(), success: function(response) { $('#setInfo').fadeOut('500').empty().fadeIn('500').app...
javascript jquery
[3, 5]
5,256,542
5,256,543
How to convert string to "iso-8859-1"?
<p>How can i convert an UTF-8 string into an ISO-8859-1 string?</p>
c# asp.net
[0, 9]
3,266,073
3,266,074
Obtaining selected item, value or index from drop down list in formview after button press
<p>I have a formview with an insertion template. In this template there is a drop down list with a number of items I want users to be able to select from. Beside the drop down list there is a button which I am using to add the selected item from the drop down list to a gridview which also exists in the insertion temp...
c# asp.net
[0, 9]
3,413,267
3,413,268
How can I find the size of a table cell with javascript
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/5221831/how-can-i-find-out-the-size-of-a-cell-with-javascript">How can i find out the size of a cell with javascript</a> </p> </blockquote> <p>I want to find the width of a table header. when I do this <code>va...
javascript jquery
[3, 5]
4,433,479
4,433,480
Android: setPictureFormat() error
<p>I'm a beginner in Andoird, currently trying to write an application using the Camera class of Android in Eclipse. The problem is when I call the parameters.setPictureFormat() method with ImageFormat.JPEG as the argument, I get an error.</p> <p>Here's how my code looks like:</p> <pre><code> public void surfaceChan...
java android
[1, 4]
5,929,877
5,929,878
How to refresh aspx page from sql server
<p>How to refresh aspx page from sql server.I am using asp.net,C-Sharp with SQL Server 2008.What i mean is i have table, say <strong>Table1</strong>.If any DML operation is performed (Update,Insert etc) to <strong>Table1</strong>,then my page,say <strong>Page1.aspx</strong> should autmatically get refreshed.I can't use...
c# asp.net
[0, 9]
5,772,162
5,772,163
jquery: eventObject.pageY and scrollbar
<p>I am using eventObject.pageY to get the current mouse position when the event is fired. But I noticed the number is relative to the document but not the viewport. </p> <p>I want to get the pageY relative to the viewport(when vertical scrollbar appears it has difference to the pageY relative to the document), how to...
javascript jquery
[3, 5]
1,940,626
1,940,627
Is it possible to get harddisc size using php or java?
<p>I want to detect the harddisc size of my computer and if possible the the partitions informations(partition size, free memory, used etc).Is it possible in php/java?</p>
java php
[1, 2]
4,455,310
4,455,311
Suggest a good Android development workflow
<p>I'm interested in developing android applications. I've a background of Java/Swing/C++/ajax developer so I think I may find myself at home. As I installed the SDK I noticed that I can't follow my usual java development scheme: building base libraries, then the final app. In fact I'd like to develop libs and test the...
java android
[1, 4]
2,910,327
2,910,328
Find Control Text (ASP.NET/C#)
<p>Trying to pull the text value of the label that is dynamically populated by a SQL database. Any help would be greatly appreciated!</p> <p><em><strong>ASP.NET</em></strong></p> <pre><code>&lt;asp:Label ID="PlatformName" Text='&lt;%# DataBinder.Eval(Container.DataItem, "PlatformName") %&gt;' runat="server" /&gt; </...
c# asp.net
[0, 9]
535,915
535,916
event handler for input delete/undo
<p>I need to check for all events which will change the contents of my text input. so far I have handlers for keyup, cut and paste. but the content can also be changed by highlighting the text and clicking delete or undo. is there a way to listen for these events?</p> <pre><code>$('#input').on('paste cut keyup ',func...
javascript jquery
[3, 5]
2,035,337
2,035,338
Dropdown list is been reloaded?
<p>I had created a dynamic dropdown list and got some data into it. this is been done in ascx.cs page and </p> <p>When we select the Dropdown list in asp.net,c#. I have been reloading the page and skipping the values. For example: I have a dropdown that have the values: dropdown - Id's (-- Select --,1,2,3,4,5,6,7,8,...
c# asp.net
[0, 9]
3,243,106
3,243,107
Find if a string contains a specific query string and return its value
<p>I have pagination links set-up like this:</p> <p><a href="http://localhost/?page=2" rel="nofollow">http://localhost/?page=2</a><br/> <a href="http://localhost/?page=3" rel="nofollow">http://localhost/?page=3</a></p> <p>They are wrapped in Anchor links as the HREF attribute. I want to know how can I check first if ...
javascript jquery
[3, 5]
4,509,711
4,509,712
How do i swap out images in jquery
<p>I have my site that the users can swap out three products and there are images for each product so rather then doing an ajax call every time the user clicks the button, I wanted to just have the image urls in the html with display none to grab when needed.. so for example, here is my html</p> <pre><code> &lt;img...
php javascript jquery
[2, 3, 5]
5,010,479
5,010,480
Android UID vs iPhone UID
<p>UID - is unique for every device. But is it possible to determine to wich device it belongs(iPhone or Android i mean) ?</p> <p>iPhone devices are quite standartised - they come with almoust same hardware but Android is almoust on every device(including iPhone in some cases :) )</p>
iphone android
[8, 4]
657,929
657,930
how to get the max value from an input of having same class name using jquery
<p>In my code I need to get the max value of the hidden input field of class name "numberoffield" using jQuery. Anyone can help me.</p> <pre><code> $('.addTime1').click(function(){ var $i = 0; $('&lt;div class="fields"&gt;&lt;input type="hidden" value="'+$i+'" id="hidden'+$i+'" class="numberoffield" /&gt;&l...
javascript jquery
[3, 5]
5,670,861
5,670,862
How Google Doodles are animated
<p>I always wonder how these doodles are animated. Can someone give a detailed description of how these are animated. I know it's using JS to animate an image. But I would like to know how it interacts with the user clicks and timing, and it is also cross browser compatible which amazes me.</p> <p><img src="http://i.s...
javascript jquery
[3, 5]
2,766,155
2,766,156
Textarea : elem.val() vs elem.text()
<p>This is very weird. Apparently, I can use both .val() and .text() to manipulate textarea text. </p> <p>But after I use .val to change the text, I cannot use .text anymore. The converse is not true.</p> <p>This is leading to some funky bugs. The reason is because a plugin i am using might be using .val to manipulat...
javascript jquery
[3, 5]
1,266,788
1,266,789
How can I make jQuery work even on objects not yet created?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/2238616/binding-dynamically-created-elements-in-jquery">Binding dynamically created elements in jQuery</a> </p> </blockquote> <p>Is there a way I can change the following code:</p> <pre><code>$('#city') ...
javascript jquery
[3, 5]
5,227,824
5,227,825
Calling PHP within Javascript results in literal string of function
<p>I feel like i'm going round in circles here and missing something really daft...</p> <p>My setup is essentially using CodeIgniter on the server-side, and Bootstrap on the client, but that's a little beside the point...</p> <p>I'm trying to call a php value within a javascript function. The value is being stored i...
php javascript
[2, 3]
4,150,234
4,150,235
Can one can survive in the IT industry without knowledge of C and C++?
<p>I am just a graduate from India and I have knowledge of Java, JSP and Servlets, Android application development and some iOS development.</p> <p>I do not have a background in C or C++ and a little weak background in Data Structures and Algorithms. I want to know whether I can make a successful career in the IT indu...
java c++
[1, 6]
1,979,677
1,979,678
QueryString Link
<p>I have the following code which works for a postbackurl on a button. What I need to do is do something similar, but with an:</p> <pre><code>&lt;a href&gt;&lt;/a&gt; </code></pre> <p>in asp.net. How can I do that? Thanks for your help!</p> <pre><code>&lt;a href="negativestorydetail.aspx?tag=&lt;%# Eval("Tag") %&gt...
c# asp.net
[0, 9]
1,937,922
1,937,923
how to add two data set to a grid view table
<pre><code>ds = server.ExecuteQuery(CommandType.Text, MysqlStatement, param); ds1 = server.ExecuteQuery(CommandType.Text, getOwnMsgQuery, param); Grid_Messagetable.DataSource =ds; Grid_Messagetable.DataSource = ds1; </code></pre> <p>I have to do two different query to get data for a grid table, but in this case it is ...
c# asp.net
[0, 9]
2,826,805
2,826,806
How to stop a thread in android which is started using PostDelayed method
<p>I Have created a thread in my android application to fetch data by making http request to a server. I have used following code to make thread</p> <p>I have defined handler as </p> <pre><code>private Handler mHandler = new Handler(); final Runnable mUpdateTimeTask = new Runnable() { ...
java android
[1, 4]
4,921,681
4,921,682
Jquery hide div partially
<p>I would like to adjust the width of the div using jquery on click event, and i can't seem to figure out what the exact syntax is.</p> <p>below is an example of what i tried so far.</p> <pre><code>$(function() { $("#square").on("click", function(){ if($(this).css("width", "50")){ $(this).ani...
javascript jquery
[3, 5]
2,423,064
2,423,065
using interface in c#
<p>I created a class that's called UserSessionModel; in it I'm storing some data about the user and in particular I'm storing several json strings that are the results of queries and serializations.</p> <p>I have several methods and properties in UserSessionModel that overall look like this:</p> <pre><code>public str...
c# asp.net
[0, 9]
4,072,367
4,072,368
How to read php array of string in javascript
<pre><code>var longitudeArray = new Array(&lt;?php $result = count($longitudeArray); if ($result &gt; 1){ echo implode(',', $longitudeArray); } else { echo $longitudeArray[0];...
php javascript
[2, 3]
1,269,939
1,269,940
show/hide jquery script
<p>I have got show|hide script. It work's good but I need to modify html of this script</p> <p><a href="http://jsfiddle.net/kolxoznik1/nRf5f/" rel="nofollow">http://jsfiddle.net/kolxoznik1/nRf5f/</a></p> <p>like on my schema</p> <pre><code>&lt;!--Links--&gt; &lt;div&gt;link1&lt;/div&gt; &lt;div&gt;link2&lt;/div&gt; ...
javascript jquery
[3, 5]
4,522,104
4,522,105
i want to transfer data from pc to android phone for which i am using the following code, i am not able to get working directory
<p>I am getting followin error in the code:</p> <p>java.io.IOException: Error running exec(). Command: ["/adb", -s, 9774d56d682e549c, push, "C:\Documents, and, Settings\My, Documents\other\music\b.wma, ", \sdcard\music] Working Directory: null Environment: null</p> <pre><code>public class TransferData extends Activit...
java android
[1, 4]
5,430,946
5,430,947
Number of folder inside a directory
<p>How do i know the number of folder inside a directory?</p> <p>I try using <code>System.IO.Directory</code> but no luck!!</p> <p>thanks, Pedro</p>
c# asp.net
[0, 9]
3,188,481
3,188,482
ie8 split function issue in javascript
<p>I want to split the string with <code>'&lt;/span&gt;'</code>. I used the following code</p> <pre><code>var select_value = td_value.split('&lt;/span&gt;'); </code></pre> <p>It works in fine in FF, chrome. But IE not support this. So i tried the following. But it is not working.</p> <pre><code>var select_value = td...
php javascript jquery
[2, 3, 5]
1,878,125
1,878,126
if(value == null) vs if(null == value)
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/271561/why-does-one-often-see-null-variable-instead-of-variable-null-in-c">Why does one often see &ldquo;null != variable&rdquo; instead of &ldquo;variable != null&rdquo; in C#?</a> </p> </blockquote> <p>This is...
c# php javascript
[0, 2, 3]
979,775
979,776
Moving my db to sd card not working
<p>I'm using the code below to try and move my database file to my sdcard. I have no problems except that I get a redline under <code>sd</code>. Any ideas? </p> <pre><code>File data = Environment.getDataDirectory(); if (sd.canWrite()) { String currentDBPath = "\\data\\application.package\\databases\\name"; S...
java android
[1, 4]
5,896,350
5,896,351
jQuery event not raised in Gridview TH
<p>I have a gridview that fill it with some data.</p> <pre><code>&lt;asp:GridView ID="GridView1" runat="server" ClientIDMode="Static"&gt; &lt;/asp:GridView&gt; </code></pre> <p>code:</p> <pre><code> if (!IsPostBack) { using (DataClassesDataContext dc = new DataClassesDataContext()) { ...
javascript jquery asp.net
[3, 5, 9]
5,161,191
5,161,192
getting table row of $this parent siblings table !
<p>i have a href link under my table and i want to be able to manipulate table rows by clicking on that link but i cant get them ! </p> <p>here is my html </p> <pre><code>&lt;div&gt; &lt;div&gt; &lt;a href="#remove" class="removelink" &gt; remove &lt;/a&gt; &lt;/div&gt; &lt;table&gt; &lt;tr&gt; &lt;td&gt;...
javascript jquery
[3, 5]
3,677,273
3,677,274
Prevent script from running using jConfirm like native confirm
<p>i have a problem with jConfirm, it should work just like the normal javascript confim box but it doesn't, here's an example</p> <pre><code>&lt;input type="submit" value="click" onClick="return jConfirm('are you sure?')"&gt; </code></pre> <p>If i use the normal confirm it stops the script until a response is given,...
javascript jquery
[3, 5]
5,033,210
5,033,211
The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>)
<p>I am trying to add a css form code . My website uses a master page . I am getting the error The Controls collection cannot be modified because the control contains code blocks (i.e. &lt;% ... %>). </p> <p>my code snipet </p> <pre><code>string CssClass = string.Format("{0}/{1}?$BUILD$", BaseImageUrl, CssFileNam...
c# asp.net
[0, 9]
5,985,784
5,985,785
How can I capture the height of a DIV's css attribute? For instance 'height'
<p>How can I capture the height of a DIV's css attribute? For instance 'height'. Here is the HTML. I am using the jquery plugin height </p> <pre><code>&lt;!doctype html&gt; &lt;html lang="en"&gt; &lt;head&gt; &lt;meta charset="utf-8"&gt; &lt;title&gt;The HTML5 Herald&lt;/title&gt; &lt;script type='text/jav...
javascript jquery
[3, 5]
3,580,588
3,580,589
Use Calendar DayView Control in ASP.NET
<p>I want use Calendar DayView Control in my web application. Please guide me how can I use this control in my web application. Reply me asap.</p>
c# asp.net
[0, 9]
4,651,106
4,651,107
jQuery - Way to view jQuery generated html?
<p>Is there a way to view the jQuery (or Javascript) generated HTML - for example, see the jQuery-modified source of a page that uses a number of <code>prepend()</code>'s <code>html()</code>'s etc.?</p>
javascript jquery
[3, 5]
4,881,504
4,881,505
how disallow only (a-zA-Z) in asp.net?
<p>how disallow only (a-zA-Z) in asp.net(C#) in textbox ? </p>
c# asp.net
[0, 9]
3,750,006
3,750,007
Get Correct keyCode for keypad(numpad) keys
<p>I get keycodes from <strong>96</strong> to <strong>105</strong> when pressing keys on the keypad <strong>[0..9]</strong> These keycodes correspond with the characters: <strong>'a b c d e f g h i'</strong> instead of <strong>'0 1 2 3 4 5 6 7 8 9'</strong> when calling String.fromCharCode(event.keyCode). </p> <p><...
javascript jquery
[3, 5]
5,579,748
5,579,749
Change date format in javascript (jquery)
<p>I have two dates:</p> <pre><code>var first = '21-11-2012'; var second = '03-11-2012'; </code></pre> <p>What is the best way to format it like this:</p> <pre><code>var first = '2012-11-21'; var second = '2012-11-03'; </code></pre> <p>Should I use jQuery or simply JavaScript?</p>
javascript jquery
[3, 5]
5,458,911
5,458,912
Problem with Generate Local Resource and My simple custom control
<p>I have created simple controls that are based on dot net controls . For example there is a simple GridView control that is based on dot net GridView control , I just set some setting in my control to use it in my .aspx pages , for example I set the Width of GridView in the constructor method : </p> <pre><code>// co...
c# asp.net
[0, 9]
141,763
141,764
Implement a jQuery plugin method and explain this keyword
<p>I find <a href="http://docs.jquery.com/Plugins/Authoring#Summary_and_Best_Practices" rel="nofollow">a doc for writing jQuery plugin</a>. I don't quite understand the use of <strong>this</strong> keyword.Can someone implement the <code>init</code> function to make it clear?In <code>init</code> function can i use this...
javascript jquery
[3, 5]
5,184,211
5,184,212
Add text to textarea
<p>I'd like to add text "username" to <code>textarea</code> when some event is occurred, and this code works</p> <pre><code>$("textarea").append("username") </code></pre> <p>Exactly until I add some text to that <code>textarea</code> manually. How to avoid this behavior? This is what I have on html source.</p> <pre>...
javascript jquery
[3, 5]
3,496,790
3,496,791
Java android programming and java script
<p>I'm developing an android application which takes its information from a site that use JavaScript.</p> <p>I want to run one of the java script function through my android app.</p> <p>in example: this site <a href="http://www.bgu.co.il/tremp.aspx" rel="nofollow">http://www.bgu.co.il/tremp.aspx</a> has "Next page" i...
java javascript android
[1, 3, 4]
2,928,350
2,928,351
How to make .jar library from sources
<p>I have Tapjoy sources sources, which have such sructure: <code>Tapjoy/src/com/tapjoy/*.class</code></p> <p>It must be compiled with Android API Level 9 and higher. My project is in version Android API Level 8.</p> <p>So I need to make from sources of <code>Tapjoy -&gt; tapjoy.jar</code> file and include it to my m...
java android
[1, 4]
4,674,966
4,674,967
Conversion of CharSequence to maths expression
<p>In my App i have two TextViews one contains an expression eg. 3 + 4 =</p> <p>And the second contains an answer eg. 7</p> <p>How would i go about turning this into a valid maths expression so the app could calculate it and return the answer as an int?</p>
java android
[1, 4]
3,330,073
3,330,074
Jquery event handler not firing
<p>I have a web page that is having some javascript issues. I have tried looking over everything however I have a username field and when you click it (<code>.focus</code>) it should bring up a pop up. I used firebug in firefox to put break points right then the <code>.focus</code> function is called and it it is not f...
javascript jquery
[3, 5]
4,240,228
4,240,229
MaskedEditExtender date format problem ("yyyy-MM-dd" with cultureName="sv-SE" doesn't work) with calender control
<p>I need to create <code>MaskedEditExtender</code> for Sweden date which uses format "yyyy-MM-dd".</p> <p>I have the following code below. <code>CalendarExtender</code> doesn't work with current <code>MaskedEditExtender</code>. Also the validation doesn't work properly.</p> <pre class="lang-xml prettyprint-override"...
c# asp.net
[0, 9]
3,623,022
3,623,023
block user for sometime after insert a data from his ip
<p>I want to block a user for 5-10 minutes after he add some data to server.... It is just like for security...A user can not insert data more than 1 time for 5 to 10 minutes. Or if I insert something then the javascript function which calls the inserting code will blocked for 5-10 minutes...</p> <p>Thank in advance.....
php javascript
[2, 3]
399,044
399,045
Static array in C# ASP .Net
<p>I am getting a strange problem.</p> <p>I have a static method which is in common DLL and returns a static array of countries from the database.</p> <p>And using this common method, I am trying to fill a Drop down of Country.</p> <p>So code will be as below.</p> <p>In Common - Helper Class DLL code</p> <pre><cod...
c# asp.net
[0, 9]
1,853,309
1,853,310
The process cannot access the file because it is being used by another process while deleting image
<p>I am trying to delete original image after thumbnail create but original image cannot be deleted. It throws the exception </p> <blockquote> <p>The process cannot access the file because it is being used by another process.</p> </blockquote> <p>Here is my code </p> <pre><code>public static string deleteImage(str...
c# asp.net
[0, 9]
1,531,615
1,531,616
How to display selected values from list box in label
<p>I have a list box with multiple selection option , i wanted to display user the selections he has made . </p> <p>How to display that users in stylish way .</p> <p>Can anyone help me on this .</p> <p>Thanks Smartdev</p>
c# asp.net
[0, 9]