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 |
|---|---|---|---|---|---|
1,739,841 | 1,739,842 | firewall for mobile devices running on android platform | <p>i am developing a firewall for mobile devices as my final year project could anybody help me out in getting the codes for any of my project...pls pls pls its urgent!</p>
| java python | [1, 7] |
1,611,852 | 1,611,853 | Unable to install Google API in Android | <p>I want to create a map view application in android. If I click the Third Party Add-ons to install Google Api, I'm getting this error </p>
<blockquote>
<p>Failed to fetch URL <a href="https://dl-ssl.google.com/android/repository/addons_list.xml" rel="nofollow">https://dl-ssl.google.com/android/repository/addons_li... | java android | [1, 4] |
1,301,155 | 1,301,156 | Android - entry nember | <p>how would i go about adding an entry number at the start of a saved line of text to a .txt file. eg.</p>
<ul>
<li>01, entry one</li>
<li>02, entry two</li>
<li>03, entry three</li>
</ul>
<p>and so on</p>
<p>here is my code to write to the file</p>
<pre><code>public void onClick(View v) {try {
Buffere... | java android | [1, 4] |
538,554 | 538,555 | Where not working in LINQ operation | <p>I have a problem where when I run the below, even if the call to OptionsMatch returns false (that method returns a bool) I still get the item in the resulting list finalItems</p>
<pre><code>public List<SavedItemOption> GetValidOrderOptions(OptionsList itemOptions, List<SavedItemOption> savedItemOptions)... | c# asp.net | [0, 9] |
5,667,674 | 5,667,675 | Inner classes: Android vs Java | <p>I'm aware that inner classes are not recommended in Android because they hold a reference to the enclosing class. However, in Java, the outer class is only GCed when the inner class is no longer referenced. That means, in Android, provided you have a non-static reference in the outer activity class to the inner clas... | java android | [1, 4] |
4,793,090 | 4,793,091 | How do I wait for multiple jquery posts to complete? | <p>I'm trying to clear a busy icon and re-enable my delete button once the multiple jquery posts have completed. Here is my current code:</p>
<pre><code> $('#deleteimgs').live('click', function(e) {
e.preventDefault();
if ($('input[name="chk[]"]:checked').length > 0 ) {
$('#deletei... | javascript jquery | [3, 5] |
2,692,717 | 2,692,718 | What's the equivalent of the >> Java operator in C# | <p>I'm converting some Java code to C# and I came across the >> operator. What is that operator called and what is the equivalent in C#?</p>
<p>I'm trying to convert the following code:</p>
<pre><code>final int pointerIndex = (action & ACTION_POINTER_INDEX_MASK) >> ACTION_POINTER_INDEX_SHIFT;
</code></pre>
... | c# java | [0, 1] |
1,260,156 | 1,260,157 | Why invalidate must be called by UI thread | <p>Anyone know why <a href="http://developer.android.com/reference/android/view/View.html#invalidate%28%29" rel="nofollow">invalidate</a> must be called by UI thread? </p>
<p>As in Java Swing, the <code>repaint</code> function can be called by both non-UI thread and UI thread. <code>repaint</code> is performing a very... | java android | [1, 4] |
4,007,374 | 4,007,375 | ("kg"=="kg") returns false. How Do I tell java, that this comparison returns true? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/995918/java-string-comparison">Java string comparison?</a> </p>
</blockquote>
<p>I was trying to do this:</p>
<pre><code>boolean exit = false;
while(exit==false && convStoreIndex<convStoreLength) {
... | java android | [1, 4] |
4,092,788 | 4,092,789 | How do I set maximum margin-top in jquery animation? | <p>I have the following code in jQuery, that animates a div marginTop. </p>
<p>How do I set it so that once the margin top is equal 900px, disable the click event?</p>
<pre><code>$("#tmbUp").click(function(){
$("#tmbHolder").animate({"marginTop": "-=100px"}, "slow");
});
$("#tmbDown").click(function(){
$("#tmbHolde... | javascript jquery | [3, 5] |
5,482,917 | 5,482,918 | jQuery trigger an element's event | <p>My question is same as this <a href="http://stackoverflow.com/questions/7999806/jquery-how-to-trigger-click-event-on-href-element">one</a></p>
<p>I also faced the same problem which is <code>href</code> not triggered for event 'clicked'
.Then I changed to <code>alt</code> and element is <code>span</code> . Here is ... | javascript jquery | [3, 5] |
4,752,551 | 4,752,552 | javascript function to convert date from mm/dd/yyyy to yyyymmdd | <p>In asp.net when am selecting date using calender control it displays in textbox as </p>
<blockquote>
<p>mm/dd/yyyy (eg.5/19/2011)</p>
</blockquote>
<p>format but in my sql database it is stored as varchar datatype in </p>
<blockquote>
<p>yyyymmdd(20110519)</p>
</blockquote>
<p>format without any separators '... | c# javascript asp.net | [0, 3, 9] |
5,892,137 | 5,892,138 | Graphics spoilt by intermittent jumps | <p>I have written a game app with bitmaps moving around the screen. It employs a separate thread which writes directly to a canvas. On my Samsung Galaxy Y the animations seems smooth throughout the game, however on a "Tabtech m7" tablet the smooth graphics appear to be interrupted by intermittent freezes of about half ... | java android | [1, 4] |
1,601,684 | 1,601,685 | Best way to read contents of web.config | <p>I need to read the contents of the Web.Config and send them off in an email, is there a better way to do the following:</p>
<pre><code> string webConfigContents = String.Empty;
using (FileStream steam = new FileStream(
Server.MapPath("~/web.config"),
FileMode.Open, F... | c# asp.net | [0, 9] |
2,286,893 | 2,286,894 | jQuery .live and page refresh issue | <p>Why this code fails to prevent a page refresh?</p>
<pre><code>$('a').each(function() {
var me = $(this);
var mytarget = me.attr('href');
var is_link_to_self = mytarget.indexOf("index.php");
if(is_link_to_self !== false) {
me.live('click', function() {
$('#content').load(mytarget)... | javascript jquery | [3, 5] |
450,759 | 450,760 | Jquery animation based on matching strings on page load | <p>I have the following code</p>
<pre><code> $('.rsName').ready(if{($('.companyName').html() == $(this).html()){
$(this).siblings(".rsDistribution").slideDown('slow', function() {});
});
</code></pre>
<p>What I'm trying to do, is check if rsName and companyName are equal. If they are equal, I'd like to... | javascript jquery | [3, 5] |
2,341,490 | 2,341,491 | serialize variable merge? | <p>I want to add data of <code>ExtrasGroupID</code> variable into <code>options</code> serialize variable (or what is other way), how can that be done?</p>
<p>Example below:</p>
<pre><code>var ExtrasGroupID = $("#SelectExtrasGroup option:selected").val();
var options = $("#FormExtrasOptionsList").serialize();
$.post... | javascript jquery | [3, 5] |
4,741,926 | 4,741,927 | Runtime.getRuntime exec | <p>I have created a class to handle root commands in an android app, which is working just fine mostly. I create the process with Runtime.getRuntime().exec("su") and then enter commands using DataOutputStream and get the data from the commands using DataInputStream and the deprecated readLine. (I have tried using Buffe... | java android | [1, 4] |
3,874,578 | 3,874,579 | How to add EventHandler OnCommand for ImageButton programaticly? | <p>I have code, where i add ImageButton to table programaticly and I need to assign event handler to this ImageButton. When I write ASP/HTML code, there is attribute OnCommand, but in C#, there is nothing like this. Just CommandName and CommandAttribute.</p>
<pre><code>ImageButton ib = new ImageButton { CommandName = ... | c# asp.net | [0, 9] |
4,605,172 | 4,605,173 | Search and store in Hashtable | <p>I have a Text in editor in that some text has anchor tag now I want to find all the the hyperlink tag in <strong>HashTable</strong> with <strong>name</strong> as value and <strong>src</strong> as key, like my text in editor is: </p>
<p>"<em>Proin ac <a href="http://askiitians.com" rel="nofollow">vijendra singh</a> ... | c# asp.net | [0, 9] |
3,900,998 | 3,900,999 | Why is Base64 string different in C# and Android | <p>I have convert one image into base64 string and that output same with online website.</p>
<p>But the same image when I convert it from Android is different.</p>
<p>Can you please explain why C# and Android base64 strings are different for the same image.</p>
<p>C#.NET Code</p>
<pre><code>string cImagePath = @"G:... | c# android | [0, 4] |
4,920,646 | 4,920,647 | Conditional templates in Java? | <p>In C# I can do this:</p>
<pre><code>public class QuadTree<T> where T : IHasRect
</code></pre>
<p>Is there a way to do something similar in Java?</p>
| c# java | [0, 1] |
905,368 | 905,369 | GridView edit fill textbox of form | <p>i make one form which i'm using number of textbox and than fill the gridview</p>
<p>after editing visible in gridview i want to fill textbox of the form click of the edit in </p>
<p>gridview how i can solve it?</p>
| c# asp.net | [0, 9] |
2,263,276 | 2,263,277 | Validate the string entered is of mm/dd/yyyy format | <p>I have a datepicker control for the users to pick the date, however, they also need to enter the date manually. As such, I need to validate the date entered by the user in the textbox.</p>
<p>Below is the code that I am using to validate </p>
<pre><code> DateTime Test;
if ((!string.IsNullOrEmpty(strtdate)))... | c# asp.net | [0, 9] |
4,689,920 | 4,689,921 | Load javascript via jQuery ajax | <p>is it possible to use jQuery %Json function to load a javascriptfile.js asynchronously?</p>
| javascript jquery | [3, 5] |
5,660,339 | 5,660,340 | Show and hide loading image while loading PHP data | <p>I am using jQuery and PHP to save content that the user inputs in a database. While the PHP is doing its thing I want to show a loading GIF image just to show that it is saving their data. I realize that it probably does take that long for it to run the code so i want to be able to show the image for at least 1 seco... | php jquery | [2, 5] |
5,865,446 | 5,865,447 | Lazy loading images | <p>I'm looking for a JQuery plugin that supports lazy loading images. The <a href="http://www.appelsiini.net/projects/lazyload">Lazy Load JQuery plugin</a> is no longer supported and does not work in Firefox.</p>
<p>Does anyone know a good alternative that supports most modern browsers?</p>
<p>I'm also open to other... | javascript jquery | [3, 5] |
3,620,185 | 3,620,186 | Invalid int: ""? | <p>I'm trying to save the state of my app and I thought it all looked good but i keep getting this error:</p>
<pre><code>10-07 15:18:35.386: E/AndroidRuntime(1818): Caused by: java.lang.NumberFormatException: Invalid int: ""
</code></pre>
<p>And it keeps highlighting my codes that say:</p>
<pre><code>textView(someth... | java android | [1, 4] |
2,273,937 | 2,273,938 | When to close custom build jQuery dropdown | <p>I made a very simple dropdown using a <code><div></code> (parent), <code><span></code> (current selection) and <code><ul></code> (options).
It works fine. What I now want to do is if the user clicks anywhere on the page, have it close, like a "real" <code><select></code> element.</p>
<p>What... | javascript jquery | [3, 5] |
5,974,269 | 5,974,270 | jQuery on() event only working with $(document) | <p>I'm using jQuery's <code>.on()</code> event handler and it's only working when I use <code>$(document)</code>.</p>
<p>This works:</p>
<pre><code>$(function() {
$(document).on("click", ".search .remove", function(e) {
console.log("clicked");
});
});
</code></pre>
<p>This does not work:</p>
<pre><c... | javascript jquery | [3, 5] |
5,434,371 | 5,434,372 | Track all outgoing URL requests from browser using jQuery | <p>I need to block the UI when user clicks on any hyperlinks that points to different page on my website.
I know there is a way to track all jquery ajax requests using ajaxStart and ajaxStop and i can use these methods to block my UI when browser is waiting for response from the server.
But is there any way to intercep... | javascript jquery | [3, 5] |
3,707,223 | 3,707,224 | Finding position of cursor with window scroll | <p>Is there any way to find the cursor is at the top of a HTML element with window scroll function. </p>
<p>EDIT: I have to call the below script to suspend the window scroll function if the cursor is at the top of one div:</p>
<pre><code>document.addEventListener('DOMMouseScroll', function(e){
console.log(e);
... | javascript jquery | [3, 5] |
353,890 | 353,891 | JQuery: what's the non-JQuery equalavent of "$("#myDIV li").eq(1)"? | <p>I'm trying to de-couple my dependence on JQuery, as such - I have the following JQuery:</p>
<pre><code>$("#myDIV li").eq(1).html('...');
$("#myDIV li").eq(2).html('...');
$("#myDIV li").eq(3).html('...');
</code></pre>
<p>How do I perform the above code without using JQuery (just plain JavaScript).</p>
| javascript jquery | [3, 5] |
2,852,271 | 2,852,272 | How do I interactively reduce (or stop) jquery carosel transiton speed? | <p>In the link <a href="http://www.getushopping.com/" rel="nofollow">http://www.getushopping.com/</a> code for the top slider which shows 7 images at a time is: </p>
<pre><code><script type="text/javascript">
$(document).ready(function() {
$('#mycarousel').jcarousel({
wrap: 'circular'
... | javascript jquery | [3, 5] |
1,616,885 | 1,616,886 | How can i define my own event in jQuery? | <p>How can i define my own event in jQuery?</p>
| javascript jquery | [3, 5] |
1,014,895 | 1,014,896 | Jquery/JavaScript code binding to collection | <p>I have a dynamically generated table of records and for each row, I have an anchor tag with class name set to 'hdelete' to enable me invoke delete method on the particular row's link that is clicked. I have some code currently that is support to hook up all the anchors with class ='hdelete'</p>
<pre><code> $("#tbl... | javascript jquery | [3, 5] |
474,057 | 474,058 | onload for div tag | <p>I have div tag, after some event, I insert (change old content) into this tag, several images and also texts, for example:</p>
<pre><code> $("#some_button").on("click", function () {
$("#mydiv").html("<div>aaaa</div><img src='1.jpg'><div>bbb</div><img src='2.jpg'>");
... | javascript jquery | [3, 5] |
4,759,807 | 4,759,808 | Is there a way to check if a user is logged in using JQuery? | <p>I want to be able to display a message if a user is not logged in if they try rating a user by clicking a rating. Is there a way to add it to my JQuery code below or can I pass it to my PHP script?</p>
<p>I'm using PHP</p>
<p>Here is the JQuery code.</p>
<pre><code>$('#rate li a').click(function(){
$.ajax({
... | php jquery | [2, 5] |
4,058,872 | 4,058,873 | saving audio file to SD card | <p>I have written a program that records audio and saves it to external storage SD card. I can also playback the audio. The audio file is saved according to time stamp. The problem is that when the recording is saved, it is saved with two additional files that are both 0KB and cannot be opened. I'm not sure if this is ... | java android | [1, 4] |
4,720,763 | 4,720,764 | Why does this work in jsfiddle but not in my document | <p>I found a wonderful jsfiddle that someone has made and wanted to use part of it in my project:</p>
<p><a href="http://jsfiddle.net/manuel/29gtu/" rel="nofollow">http://jsfiddle.net/manuel/29gtu/</a></p>
<p>It works on the jsfiddle but not in my HTML document. Here is what in my document:</p>
<pre><code><!DOCTY... | javascript jquery | [3, 5] |
3,917,575 | 3,917,576 | Issues with .remove() | <p>I 've been monkeying around with alternate solutions for my expand/collapse accordion bars for a while now and can't seem to come up with a proper function to replace the trigger words "Open" with "Close" when necessary. </p>
<p>I know this is simple stuff, and in a year hopefully I'll look back and laugh. Until th... | javascript jquery | [3, 5] |
1,681,862 | 1,681,863 | how to make our asp .net website work both in pc and mobile | <p>I want to create a website in asp .net .</p>
<p>All I know is if a I create my website it will work in pc.</p>
<p>But i want to know will it work in mobiles.</p>
<p>If not what i should do .</p>
<p>Thanks In Advance.</p>
| c# asp.net | [0, 9] |
3,574,492 | 3,574,493 | Extracting user entry from text box and storing it in a variable in javascript | <pre><code>// text Box
&nbsp;&nbsp;<asp:TextBox ID="TextBox3" runat="server" BackColor="Silver"
BorderColor="Silver" ontextchanged="TextBox3_TextChanged"
style="margin-left: 6px" Width="154px"></asp:TextBox>
// Submit button
&nbsp;<asp:Button ID="Bu... | javascript asp.net | [3, 9] |
453,748 | 453,749 | confirmation about deleting a record from database | <p>I am using php and javascript. I want to delete a record from database after a giving "Yes" and "No" confirmation to user. I am using confirmbox by google but don't know what should be my code structure inside that. I am new to programing. Can any one help me please</p>
<p>How can I add this php function on javascr... | php javascript | [2, 3] |
4,045,926 | 4,045,927 | Page.User.Identity.Name returns empty string | <p>For some Page.User.Identity.Name always returns an empty string. Any ideas. I simply want to print it to the screen. IIS is set for integrated windows security.</p>
<p>Response.Write("Name = " + Page.User.Identity.Name);</p>
<p>Oops just noticed i hadnt set authentication to windows auth. Silly me</p>
| c# asp.net | [0, 9] |
2,555,233 | 2,555,234 | jQuery: onclick, edit field and show+save into an variable | <p>Right now I have this in Javascript without jQuery:</p>
<p>Here is it: <a href="http://jsbin.com/ewihu3" rel="nofollow">http://jsbin.com/ewihu3</a></p>
<p>It's working just fine, but I wish to use jQuery for making the code simpler and shorter.</p>
<p>I want exactly same things to do as on the example above, that... | javascript jquery | [3, 5] |
4,269,170 | 4,269,171 | How to call method of .aspx from .cs file | <p>I created web page in that i used javascript in .aspx file. </p>
<p>I have a save-button,but in the source code i used javascript for save button, where i declared a function called <code>OnClientClick="javascript : validateTextTest()"</code> and in the head of source code i called this function <code>validateTextT... | javascript asp.net | [3, 9] |
2,461,460 | 2,461,461 | how to close client pop up windows | <p>How do I close all child popup windows which are already opened using jquery, after the user logs out?</p>
| javascript jquery | [3, 5] |
2,418,274 | 2,418,275 | Learning Javascript vs. jQuery | <p>I got the Wrox.Beginning.JavaScript.3rd.Edition and wanted to start learning it from scratch, then my boss came along and said that why bother, learn jQuery.
Can I understand jQuery and work with it although I am a newbie and have limited knowledge in ASP.net, vb.net, some C#, and basic HTML?!</p>
| javascript jquery | [3, 5] |
2,228,721 | 2,228,722 | Customising a JQuery Element | <p>Is it inadvisable to add methods to a JQuery element? </p>
<p>eg: </p>
<pre><code>var b = $("#uniqueID");
b.someMethod = function(){};
</code></pre>
<p><strong>Update</strong></p>
<p>Just to clarify, I am working on a JS-driven app that is binding JSON data to local JS objects that encapsulate the business logic... | javascript jquery | [3, 5] |
2,277,966 | 2,277,967 | How to get width and height of a view | <p>I have a class called game that extends View that is added to a LinearLayout. I know that it is displaying my View but i need to get the width and height of the view in order to draw some of my images. Here is my constructor code:</p>
<pre><code>public Game(Activity activ)
{
activ.setContentView(R.layout.game);... | java android | [1, 4] |
232,920 | 232,921 | set the loading progress bar in my application | <p>how to set progress bar this is my code plz send me the code.....</p>
<pre><code> Button b1= (Button) findViewById(R.id.button1);
b1.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
loadFeed(statutory);
}
});
</code></pre>
| java android | [1, 4] |
3,800,745 | 3,800,746 | How to set an event on the parent element using jQuery | <p>help me figure out how to set an event on the parent element (<code><tr></code>)
I can't find the error in the condition</p>
<pre><code><script type="text/javascript">
$('table tbody tr').each(function(){
$(this).find('a:first').click(function(){
if($(this).parents().get(1).tagName == 'TR')... | javascript jquery | [3, 5] |
5,292,926 | 5,292,927 | Executing javascript within PHP | <p>I believe it is possible to execute a java script function within PHP, but will it then remain server side as opposed to client side? Can I, within PHP, call a .js function, passing it some args, and have it return to the PHP that called it?</p>
<p>A script I want to use returns XML, and I want to get the user inp... | php javascript | [2, 3] |
2,080,657 | 2,080,658 | Error with taking spinner data from database | <p>Booking.java</p>
<pre><code>package one.two;
import android.app.Activity;
import android.database.Cursor;
import android.os.Bundle;
import android.widget.ArrayAdapter;
import android.widget.SimpleCursorAdapter;
import android.widget.Spinner;
public class Booking extends Activity
{
private DBAdapter db;
p... | java android | [1, 4] |
4,426,742 | 4,426,743 | Is partial class in C# and in C++ defining functions in multilple CPP files are same? | <p>In C++ we can declare a class in a .h file and can have the definitions for functions across multiple files. Is this concept same by using partial keyword with classes in C#?</p>
| c# c++ | [0, 6] |
4,186,553 | 4,186,554 | String from codebehind to array in Javascript | <p>Hi all i have code that reads from a DB and populates a string in the code behind</p>
<pre><code>List<string> rows = new List<string>();
DataTable prods = common.GetDataTable("vStoreProduct", new string[] { "stpt_Name" }, "stpt_CompanyId = " + company.CompanyId.ToString() + " AND stpt_Deleted is nul... | c# javascript | [0, 3] |
2,011,956 | 2,011,957 | jquery array of checkboxes contains the last one checked | <p>I have a group of checkboxes that I'm trying to pass through POST via AJAX/PHP. When I fill the array it's only picking up the last one. </p>
<p>HTML</p>
<pre><code><input type="checkbox" name="committee[]" value="membership">Membership <br/>
<input type="checkbox" name="committee[]" value="operat... | php jquery | [2, 5] |
4,377,984 | 4,377,985 | closing element opened by toggle() function | <p>How to close element opened by toggle() function when I click on any place in browser window. For example StackExchange link on this site. When I click on this link div appears, but if I click on any place in window, it disappears.</p>
| javascript jquery | [3, 5] |
2,810,881 | 2,810,882 | load jquery before elements on a page | <p>How do i load jquery before all the html elements to stop unstyled content flashing before jquery kicks in.</p>
<p>I know you can do this with <code>display:none</code> in the css but I would like to know how to do it in an accesible way.</p>
<p>heres an example</p>
<p><a href="http://satbulsara.com/tests/" rel="... | javascript jquery | [3, 5] |
2,727,199 | 2,727,200 | jQuery - setting an element's text only without removing other element (anchor) | <p>I have an element like this:</p>
<pre><code><td>
<a>anchor</a>
[ some text ]
</td>
</code></pre>
<p>And i need to set it's text in jQuery, without removing the anchor.</p>
<p>The element's contents could vary in order (text before or after), and the actual text is unknown.</p>
<p>Than... | javascript jquery | [3, 5] |
3,531,443 | 3,531,444 | How to get the value of an ASP.net variable into a javascript textbox | <p>I'm writing some Javascript code for an ASP.net page.</p>
<p>I have the string "foo" assigned to a string variable <code>myString</code>.</p>
<p>I would like to assign the value of <code>myString</code> to a JavaScript variable, so I write in my ASP.net code:</p>
<pre><code><script type='txt/javascript' langua... | javascript asp.net | [3, 9] |
4,605,776 | 4,605,777 | jQuery setting specific numbers in select menus | <p>I am working on this website here <a href="http://offline.raileisure.com/" rel="nofollow">http://offline.raileisure.com/</a></p>
<p>on the right there are some options to book a reservation..</p>
<p>Where it says No. of Adults and No. of Children, i need this to be limited to x per property..</p>
<p>i.e. if the S... | javascript jquery | [3, 5] |
1,723,883 | 1,723,884 | how to hide div with jquery when click anywhere except one div? | <p>I am making a search input on focus it shows a div with options with following:</p>
<pre><code>$("#search").focus(function(){
$("#options").fadeIn("fast");
});
</code></pre>
<p>I am hiding the div back with this function</p>
<pre><code> $("#search").blur(function(){
$("#options").fadeOut("fast");
});
</code><... | javascript jquery | [3, 5] |
4,384,135 | 4,384,136 | Crop image from Gallery with predefined bitmap | <p>I'm using the following code to crop my image with the standard media gallery.</p>
<pre><code>public void cropImage3(boolean scale, boolean return_data, boolean faceDetection, boolean circleCrop, Bitmap btmp) {
Intent intent = new Intent(Intent.ACTION_GET_CONTENT, null);
intent.setType("image/*");
inten... | java android | [1, 4] |
5,800,708 | 5,800,709 | how to restart main activity while retaining some data | <p>This is my first app and I'm trying to write a simple Liar's Dice game. </p>
<p>I wrote everything in the main activity class, rolls random dice, textedit boxes to enter bids and buttons to bid and call. </p>
<p>So after the game runs, how do I get it to keep track of the score and run again? </p>
<p>I've tried m... | java android | [1, 4] |
4,525,546 | 4,525,547 | Is there a way to shorted this code? | <p>I have this javascript code that replaces the css class on mouse over. I'm wondering if there is way to have it shorten.</p>
<p>Here's my code.</p>
<pre><code>$(".mainMenu ul.homeMenu li").hover(function(){
if ($(this).find(".symbol").attr("class").indexOf("meetings") >= 0)
{
$(this).find(".sym... | javascript jquery | [3, 5] |
3,199,025 | 3,199,026 | Javascript variable problem | <p>I have a variable in javascript:</p>
<pre><code>var activeSearchButton = document.getElementById('<%=btnSearch.ClientID %>');
</code></pre>
<p>I want to set it like this:</p>
<pre><code><asp:TextBox ID="WFTo" runat="server" onchange="activeSearchButton = document.getElementById('<%=btnWFSearch.ClientI... | javascript asp.net | [3, 9] |
2,262,817 | 2,262,818 | Trying to delete multiple files from a single directory whose names match\contain a particular string | <p>I wish to delete image files. The files are named <code>somefile.jpg</code> and <code>somefile_t.jpg</code>, the file with the <code>_t</code> on the end is the thumbnail. With this delete operation I wish to delete both the thumbnail and original image.</p>
<p>The code works up until the <code>foreach</code> loop,... | c# asp.net | [0, 9] |
726,240 | 726,241 | Onchange Event in JavaScript or Jquery | <p>Please help me. I need to change a textbox value when i give value in another textbox. see i have three text box first one is Qty another Amount and third will be a Total Amount.
here i will give a value for Qty and amount. Now third textbox i mean Total amount will be appear automatically. </p>
<p>Please help me..... | javascript jquery | [3, 5] |
1,893,994 | 1,893,995 | Android CursorAdapters, ListViews and background threads | <p>This application I've been working on has databases with multiple megabytes of data to sift through. A lot of the activities are just ListViews descending through various levels of data within the databases until we reach "documents", which is just HTML to be pulled from the DB(s) and displayed on the phone. The iss... | java android | [1, 4] |
105,885 | 105,886 | jQuery click event not firing when appending new button | <p>When I click the 'Show' button the show listener is invoked and a new hide button is displayed. But why is the hide button not invoked when I then click 'Hide' ?</p>
<pre><code> $('.myCss').append('<input type="button" class="show" value="Show"/>');
$('.show').on('click', function () {
console.log('s... | javascript jquery | [3, 5] |
5,030,255 | 5,030,256 | jQuery: Fire click on event on a span | <p>I saw a post earlier today and have been playing around with: <a href="http://arashkarimzadeh.com/index.php/jquery/7-editable-jquery-plugin.html" rel="nofollow">http://arashkarimzadeh.com/index.php/jquery/7-editable-jquery-plugin.html</a></p>
<p>What I'd like to be able to do is when a span gets clicked, to fire th... | javascript jquery | [3, 5] |
900,164 | 900,165 | Creating Android magazine application with APPMK | <p>I'm try to make an Android magazine application. Until now, the best and the simplest way is using <strong>APPMK</strong> <a href="http://www.appmk.com/" rel="nofollow">http://www.appmk.com/</a>. and my questions are : </p>
<ol>
<li>Is it possible customize between using APPMK and coding in eclipse editor?</li>
<li... | java android | [1, 4] |
4,097,303 | 4,097,304 | Comparing parts of a byte[] to determine whether two byte[] could be the same | <p>I have a Cursor adapter where I potentially have a number of images in a grid setup. </p>
<p>When the <code>bindView</code> method runs it needs to complete very quickly and therefore as part of a performance/efficiency boost I would like to compare the images before I make any changes(so I don't start running my A... | java android | [1, 4] |
2,880,803 | 2,880,804 | Get variable from PHP to JavaScript | <p>I want to use a PHP variable in JavaScript. How is it possible?</p>
| php javascript | [2, 3] |
4,600,913 | 4,600,914 | How to use live method with zclip plugin? | <p>How to use live method with this -> <a href="http://www.steamdev.com/zclip/" rel="nofollow">http://www.steamdev.com/zclip/</a></p>
<p>Edit:</p>
<pre><code>$(document).ready(function(){
$('a#copy-description').zclip({
path:'js/ZeroClipboard.swf',
copy:$('p#description').text()
});
</code></pre>
<p>i need to use li... | javascript jquery | [3, 5] |
5,860,948 | 5,860,949 | Error function not invoked in AJAX using Jquery | <pre><code> $("#submit").click(function(){
$.ajax({
type: "POST",
url: "session.php",
data: "name=John123&location=Boston",
success: function(a, msg2){
$('#feedback').removeClass().addClass('success').text(a +' '+msg2).fadeIn('slow');
},
error: function(a,... | php jquery | [2, 5] |
5,435,012 | 5,435,013 | Want to show a message box using javascript | <p>Hi everyone I have a web form in which I am having a button on clicking which data back up is being taken, I used the following javascript :</p>
<pre><code><script language="javascript" type="text/javascript">
function showPleaseWait() {
document.getElementById('PleaseWait').style.display = 'block';... | c# javascript asp.net | [0, 3, 9] |
5,681,758 | 5,681,759 | jQuery/JS simulation | <p>I'm not an expert in jQuery or Javascript (I have only started with it recently), so this might sound like a silly question:
I have 4 tabs, all of which are clickable. So, I made 2 functions, 1 to actually execute on click, and one to only "simulate" the click, so I could change the tabs every 5 seconds. What I've d... | javascript jquery | [3, 5] |
326,020 | 326,021 | routing in javascript or php function | <p>I was wondering if there is a way of doing this:</p>
<p>let's say I'm calling this method:</p>
<p><code>object.segment1_segment2_segment3();</code></p>
<pre><code>// or
$object->segment1_segment2_segment3();
</code></pre>
<p>What you have to know is that segment1_segment2_segment3() is not necessarily an exi... | php javascript | [2, 3] |
2,145,008 | 2,145,009 | Having jQuery inside of an iframe modify the parent window | <p>i have a page which has an iframe.</p>
<p>in the iframe, I want jQuery to remove an element from the patent page, so I'm trying:</p>
<pre><code>parent.$('#attachment-134').remove();
</code></pre>
<p>But that doesn't work. Any ideas? thanks</p>
| javascript jquery | [3, 5] |
4,053,457 | 4,053,458 | Simple Android App Without XML | <p>I'm teaching a few colleagues Java with the intent to go into Android game programming. Is there a way to display a box on the screen, and when you touch it it changes colors, without creating an Activity (this is in Eclipse) and diving into the ugly world of XML?</p>
| java android | [1, 4] |
2,196,190 | 2,196,191 | Pushing a document.ready callback: is it possible? | <p>I already have a jQuery(document).ready fragment defined. Since I'm working on a large-scale modular project, I would like to allow components to push callbacks to the document.ready event in order to run their own code without modifying the global javascript file.</p>
<p>One viable way is to define an array of cal... | javascript jquery | [3, 5] |
88,211 | 88,212 | Deserialize a string that contains a repeating set of elements | <p>I'm getting the response string as follows:</p>
<pre><code>Navigator[sizenavigator:INTEGER (Size)
modifier:size
score:1.300855517 type:INTEGER unit:kB
hits:7744
hitsUsed:7744
ratio:1
min:65
max:66780
mean:3778
sum: 292599... | c# asp.net | [0, 9] |
3,108,438 | 3,108,439 | How to delay an inflate with a button | <p>Well I'm a new one in this word an I'm trying to delay an inflate because when you pressed a button an animation in other buttons happen and the inflate too.</p>
<p>But you cannot see animations because inflate comes quickly, so I want to delay the inflate like 2000ms so you can see first the animations and then th... | java android | [1, 4] |
3,137,504 | 3,137,505 | <type= "input" runat = "server"> | <p>I know that we have client side controls and we have server side controls. Client side controls are basic HTML controls with and all the other tags while server side controls are like <code><asp:Button></code> and <code><asp: Textbox></code>.</p>
<p>Now when I talk about something like I know that thi... | c# asp.net | [0, 9] |
4,544,054 | 4,544,055 | Getting window ScrollTop pixel per pixel | <p>I'd like to know if it is possible to scroll height (scrollTop) with 1 step increments.</p>
<p>Currently I'm using:</p>
<pre><code>$(window).scroll(function(e) {
console.debug($(this).scrollTop());
});
</code></pre>
<p>But when I scroll too fast, console shows me:</p>
<pre><code>0
1
2
150
350
....
</code></p... | javascript jquery | [3, 5] |
4,530,556 | 4,530,557 | jQuery -> check the visibility of an element | <p>I have a div element which will be shown/hidden in many places.
Is it possible if I do a </p>
<pre><code>$("#divtobetracked").hide();
</code></pre>
<p>or a </p>
<pre><code>$("#divtobetracked").show();
</code></pre>
<p>that another action is fired?
Because if .hide() of the element, a button should also be hidden... | javascript jquery | [3, 5] |
4,702,853 | 4,702,854 | List all session info | <p>I want to display all the session information of my asp.net page (aspx) in the page. How can I do that?</p>
<p>The programming language is C#.</p>
<p>Thanks for the help.</p>
<p>Best regards</p>
| c# asp.net | [0, 9] |
5,838,188 | 5,838,189 | Grabbing hash from URL? | <p>I want it so that if someone visits:</p>
<p><a href="http://www.site.com/#hash" rel="nofollow">http://www.site.com/#hash</a></p>
<p>It puts the data after the hash into the input box with the id <code>url</code></p>
<p>and then it submits the form.</p>
<p>Here is my code:</p>
<pre><code><form method="post"&g... | javascript jquery | [3, 5] |
416,907 | 416,908 | jquery and php relations | <p>how can i store jquery ajax result in a php variable?
i mean i want to get result of ajax jquery and store it in php variable and ECHO it later</p>
| php jquery | [2, 5] |
2,490,165 | 2,490,166 | Menu hover effect in Joomla Script | <p>i need script sucha as here: <a href="http://demo.opensourcecms.com/joomla/administrator/index.php" rel="nofollow">http://demo.opensourcecms.com/joomla/administrator/index.php</a></p>
<p>Admin Username: admin</p>
<p>Admin Password: demo123</p>
<p>Script as menu hover effect. </p>
<p>Where I find this script?</p>... | javascript jquery | [3, 5] |
5,337,233 | 5,337,234 | How to fire a custom intent? | <p>I have created a <code>BroadcastReceiver</code>. Now how can I launch my custom <code>Intent</code> to test the receiver? AFAIK I cannot use Android JUnit test since the test does not have the application <code>Context</code> needed to launch an <code>Intent</code>!</p>
| java android | [1, 4] |
837,853 | 837,854 | jQuery simple slider is not looping | <p>I have a simple slider for 5 different div tags, and a fixed ticker at the end of the page. It works fine but it's not looping.</p>
<p>*not: I got this code from a previous topic here (I am a beginner)</p>
<p>HTML:</p>
<pre><code><body>
<div id="slide1">text 1</div>
<div id="slide2">te... | javascript jquery | [3, 5] |
3,804,132 | 3,804,133 | Javascript's Confirm on RadioButtonList not working in FireFox | <p>Below is my <code>java-script</code> code,</p>
<pre><code>function show_confirm() {
var r = window.confirm("Are you sure to create invoice?");
if (r == true) {
return true;
}
else {
return false;
}
}
</code></pre>
<p>Used this <code>Radiobuttonlist</code>, <code>onclick= "ret... | javascript asp.net | [3, 9] |
5,308,041 | 5,308,042 | after modify script, sEcho result not same | <p>how to make the response result at <code>sEcho</code> become not zero?</p>
<pre><code>{"sEcho": 0,
</code></pre>
<p>i've been use this code but result still zero..</p>
<pre><code> $sOutput .= '"sEcho": '.intval($_POST['sEcho']).', ';
</code></pre>
| php jquery | [2, 5] |
892,184 | 892,185 | ASP.Net global error handler for all... but a few | <p>i want to implement a global error handler for my asp.net website.</p>
<p>I usually implement this in the global.asax by logging the error and redirecting to an error page.</p>
<p>So far so good, but in this case we have calls to asmx webservices from Jquery, and, sorry to say, Errors thrown in the asmx webservice... | c# asp.net | [0, 9] |
4,317,705 | 4,317,706 | what is the alternative class for AudioInputStream in java (Android)? | <p>About a year ago I started to built an application for android.
Now when I try to run it I get an exception about AudioInputStream class, After a short research that I did using GOOGLE I found out that android doesn't support this class anymore...
Is their any alternative for it?</p>
<p>This is the code that I wrot... | java android | [1, 4] |
1,239,963 | 1,239,964 | Why in JavaScript parent variable takes the value of child variable? | <p>Help me please with next problem. </p>
<pre><code>var a = _b; //_b and _c is arguments. _b is array of objects (length = 1), _c is integer value
if (a.length != 0)
{
$.each(a,function(k,v){
if (v.c!= _c)
a.splice(k,1);//here a becomes empty, but _b becomes empty too. i don't know why.
});
if (... | javascript jquery | [3, 5] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.