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 |
|---|---|---|---|---|---|
4,721,875 | 4,721,876 | .NET website lightweight framework | <p>I'm looking for lightweight framework to build my custom website. Originally I'd love to get a platform that implements user registration, login, logout and probably account management at some point.
The thing is I don't want to have any "extras" there and I don't want to develop sign-up/login part again...</p>
<p>... | c# asp.net | [0, 9] |
5,561,401 | 5,561,402 | String evaluation function in JavaScript | <p>Is there any built-in function in JavaScript like <code>eval</code> built-in function in Python?
notice: <code>eval</code> function take an equation as string and returns result. for example assume variable <code>x</code> is 2, then <code>eval("2x+5")</code> returns 9. </p>
| javascript python | [3, 7] |
5,319,495 | 5,319,496 | How can i pass $.ajax object to another function? | <p>This function will be using in general ajax calss:</p>
<pre><code>function f_AjaxFunction(_param) {
var objectWillReturn;
$.ajax({
type: "POST",
contentType: "application/json; charset=utf-8",
url: 'WS/wsGenral.asmx/f_QueryAndGetResultAsJson',
data: "{_sParam:'" + _param + "'... | javascript jquery | [3, 5] |
4,986,202 | 4,986,203 | Find the next input field and set focus if it is empty- jquery | <p>i have form with many input fields like this,</p>
<p><a href="http://jsfiddle.net/WPDF9/1/" rel="nofollow">http://jsfiddle.net/WPDF9/1/</a></p>
<p>i am trying to loop the element which has name distanceSlabCost </p>
<pre><code>$(":text[name^=distanceSlabCost]").each(function(i){
var curTxtBox = $(this);
... | javascript jquery | [3, 5] |
5,539,173 | 5,539,174 | Basic API that returns longitude and latitude from an address using JavaScript or PHP | <p>I am quite new to JavaScript and I am looking for a basic API or function that I can feed an address as a string value and it returns me the longitude and latitude of that address. I have a series of addresses in a DB and I want to add the longitude and latitude values for each of them.</p>
<p>Thanks</p>
| php javascript | [2, 3] |
361,339 | 361,340 | jQuery alternative for document.activeElement | <p>What I wanted to do is figure out whenever the user is engaged with an INPUT or TEXTAREA element and set a variable flag to true... and set that flag to false immediately after the user is no longer engaged with them (ie. they've clicked out of the INPUT/TEXTAREA elements). </p>
<p>I used jQuery's docuemnt.ready fu... | javascript jquery | [3, 5] |
1,522,808 | 1,522,809 | TopLeft & Bottom right longitude and lattitude value of MapView in Android SDK | <p>I am implementing a map based Android application. In that I am trying to get display the pins at TopLeft and Bottom right. The following is my code that I tried. But I am not able to display it. Can you please suggest a way to get these cordinate.</p>
<pre><code>public GeoPoint topLeft(GeoPoint mapCenter, int lats... | java android | [1, 4] |
5,762,743 | 5,762,744 | Stop method execution until another activity finished | <p>Good day to everyone!</p>
<p>I need to stop method execution until another activity will end.
At the moment I'm trying to do it in this way:</p>
<pre><code> private boolean isPausedWhileSplash;
public void showSplashWorldChangeAd(String oldWorldName, String newWorldName) {
overridePendingTransition(R.anim.... | java android | [1, 4] |
5,420,293 | 5,420,294 | jQuery DatePicker and .NET- one calendar control but multiple instances on one .aspx page | <p>Scenario: I have an .aspx page containing multiple collapsible panels. Each panel represents a different report. To run a report, you click a panel and the report's user controls will appear. The date range control I created could be contained "within" more than one panel. </p>
<p>The code below does not work in... | asp.net jquery | [9, 5] |
3,252,888 | 3,252,889 | Javascript variables within attributes | <p>With php it's easy to do something like this</p>
<pre><code><?
$x = "Joe";
echo "My name is $x";
?>
</code></pre>
<p>But I'm having trouble doing something similar with javascript</p>
<pre><code>var div = document.createElement("DIV");
x="SomeValue";
div.setAttribute("id", (x));
div.setAttribut... | php javascript | [2, 3] |
2,575,441 | 2,575,442 | Is it possible to run Android apps in JVM? | <p>I am trying to run symbolic testing on Android apps to collect some information, for example, the execution tree. Thus I want to run it in JVM instead of the emulator because there are a lot of existing symbolic testing tools for Java applications. </p>
<p>I tried to run HelloAndroid which is a sample app outputtin... | java android | [1, 4] |
1,790,758 | 1,790,759 | How to return a value from a inner class? | <p>My code is here:</p>
<pre><code>public static boolean showConfirmationDialog(Context context, String title, String dialogContent) {
AlertDialog.Builder builder = new AlertDialog.Builder(context);
builder.setIcon(android.R.drawable.ic_dialog_alert);
builder.setTitle(title);
builder.se... | java android | [1, 4] |
1,730,872 | 1,730,873 | % characters unexpectedly added in the middle of filename or folder name | <p>I have web search form, When i submit my search in the search box,
The result are returned but with contains % in the file name.
for example. the original file name is abc.jpeg, so the result returned will be a%bc.
or if a folder is found with, so its the same for the folder name.
if a folder name is jack, in the re... | c# asp.net | [0, 9] |
1,218,557 | 1,218,558 | Javascript to find a certain text | <p>I have a table whose values are displayed from a database but on the 8th row second column it displays a value i.e. 8 which is a Canadian province i.e. 'Ontario' now i want the name of the province instead of the values. This is what the old site used and therefore, i do not want to change the data in the database ... | javascript jquery | [3, 5] |
983,083 | 983,084 | Validate entered number to be integer or "half" | <p>I am getting input from the user and it needs to be either a whole number or some multiple of <code>0.5</code>.</p>
<p>For example, <code>7</code>, <code>23</code> and <code>5.5</code> are all valid but <code>3.1</code> and <code>2.7</code> are not.</p>
<p>In other words, if the user keys in <code>2.3</code>, ther... | javascript jquery | [3, 5] |
5,966,291 | 5,966,292 | sending an arraylist back to the parent activity | <p>i am trying to pass an arraylist back to my parent activity</p>
<p>Here is the simple code.</p>
<pre><code>private ArrayList<Receipt> receipts = new ArrayList<Receipt>();
Intent data = new Intent();
data. // what to do here?
setResult(RESULT_OK, data);
//************************************
</cod... | java android | [1, 4] |
2,771,448 | 2,771,449 | Configuration files per enviroment | <p>I'm working on a project with several environments (Local,Development,Main,Prod,Live) that have several config files (Web, ConnectionStrings Windsor, Smtp, Appsettings, Nlog, etc).</p>
<p>The current strategy used is to have one of these config for each branch and to maintain the configs by hand and not to merge an... | c# asp.net | [0, 9] |
3,975,584 | 3,975,585 | jQuery Selecting elements by dynamic name with square brackets (fiddle incl) | <p>How can I make this fiddle work:
<a href="http://jsfiddle.net/gAHwW/" rel="nofollow">http://jsfiddle.net/gAHwW/</a></p>
<pre><code>function $escape(string) {
return string.replace(/\\(\[|\]\\)/g,'\\\\$1');
}
$(function() {
$('input[type="button"]').click(function() {
alert($escape( $(this).attr('i... | javascript jquery | [3, 5] |
3,259,430 | 3,259,431 | New to C# and trying to use a global variable | <p>Is it possible to use global variables in C#? I'm coming from mainly a PHP background so variables are either accessible everywhere or just a <code>global</code> definition away.</p>
<p>My main issue is I have a <code>User</code> class that I built myself to wrap around the current <code>users</code> table on my c... | c# asp.net | [0, 9] |
4,572,960 | 4,572,961 | Is there an UriAgilityPack / UrlAgilityPack? | <p>I'm always trying to figure out some url/uri methodology with asp.net to manipulate a uri/url.</p>
<p>It'd be nice to have:</p>
<pre><code>UriAgilityPack uri = new UriAgilityPack("http://some.com/path?query1=value1");
</code></pre>
<p>or</p>
<pre><code>UriAgilityPack uri = new UriAgilityPack().LoadSiteRelative("... | c# asp.net | [0, 9] |
4,265,517 | 4,265,518 | How to remove all endRequest handlers in PageRequestManager? | <p>How to remove all endRequest handlers in PageRequestManager?</p>
| c# asp.net | [0, 9] |
533,637 | 533,638 | Events lost after popup window from colorbox | <p>I'm using colorbox in asp.net
but after popup show and close it .if i want like ie:logout i can't it is located to the popup location not doing the event.and this problem happen in chrome .in IE and Firefox when i click logout nothing happen.</p>
<p>Need help</p>
| jquery asp.net | [5, 9] |
2,584,000 | 2,584,001 | jQuery .length() speed implications | <p>Whenever I want to find if an element exist in the DOM I use the following code.</p>
<pre><code>if($('#target').length){
// do stuff.
}
</code></pre>
<p>This works well and I use it quite a lot on client sites.</p>
<p>Question:
How fast is this method? What are the speed implications when this is used a lot i... | javascript jquery | [3, 5] |
5,412,075 | 5,412,076 | JQuery function won't fill textarea after it is edited | <p>I have an issue with a textarea which is filled dynamically out of a database by userinput.</p>
<p>All works fine, but as soon as the content of the textarea is edited, it won't update itself after the next function call.</p>
<p>I already stumbled over this <a href="http://stackoverflow.com/questions/4722914/jquer... | php jquery | [2, 5] |
456,151 | 456,152 | Appending a css class to a textbox javascript | <p>Is it possible to add the css class named <strong>color</strong> to the textbox define inside the javascript below?</p>
<pre><code><script type="text/javascript">
newTextBoxDiv.after().html('<label>Colors and price: #'+ counter + ' : </label>' + '<input name="colors[]" value="" >');
</... | php javascript | [2, 3] |
2,398,796 | 2,398,797 | Calling a server side method in client side in asp.net | <p>This is the JavaScript that I have to use in my ASP.NET page, how to change it so that it works in ASP.NET?</p>
<pre><code><script type="text/javascript">
window.onload = function ()
{
/**
* These are not angles - these are values. The appropriate angles are calculated
... | c# asp.net | [0, 9] |
2,084,482 | 2,084,483 | Is there a more elegant way to write this? | <pre><code>$(function () {
$('#button').click(function () {
$('html, body').animate({
scrollTop: $(document).height()
},
400);
return false;
});
$('#top').click(function () {
$('html, body').animate({
scrollTop: '0px'
},
400);
return false;
});
});
</code><... | javascript jquery | [3, 5] |
360,588 | 360,589 | Javascript jQuery replace a variable with a value | <p>I have this line of Javascript jQuery code</p>
<pre><code>$.post('/blah', { comment_id: 1, description: ... });
</code></pre>
<p>However, what I really need is the ability to change <code>comment_id</code> to something else on the fly, how do I make that into a variable that I can change?</p>
<p><strong>EDIT</str... | javascript jquery | [3, 5] |
4,975,277 | 4,975,278 | Need help automate iPhone keyboard input throught javascript | <p>I am trying to automate iPHone UI testing throught JavaScript.</p>
<p>I am in a compose mail page and I need to enter email-id in the TO,CC & BCC fields. I have the focus in TO field and keyboard is displayed. To field is UIATextField, however the usual way of entering data into textfield is not entering the da... | javascript iphone | [3, 8] |
1,332,003 | 1,332,004 | Switching xml string files | <p>I am working on a bilingual app menu. I am currently at a dilemma on how I would be able to switch the languages easy. At first I thought I could use String.xml file to store the data passed out in English then later on Chinese and just switch xml string file for a chinese menu but the String.xml can only use a uniq... | java android | [1, 4] |
2,751,122 | 2,751,123 | JS show hide feild diappear when clicking submit | <p>I have a php form which has a dropdown list and a text which show and hide based on drop down list value. The problem is when I click submit button and there is validation error the onload function work and the text hide ,,, it should stay visible or invisible depending on the drop down list.</p>
<p>Here is what Im... | php javascript | [2, 3] |
3,849,488 | 3,849,489 | basic question: creating a button (or anything) | <p>I'm relatively new to Android development and Java (learning both simultaneously sort of...). </p>
<p>My question is: if I set up a button in main.xml, I still need to actually create the button in my Activity, right? Like the XML just controls the look of the button, but you need to actually create a button by doi... | java android | [1, 4] |
1,925,985 | 1,925,986 | Jquery delegation on jquery collection/domRef but selector string | <p>I have a scenario where I have actual dom reference to dom element and want to delegate event to that dom reference.</p>
<pre><code>var domRef = $('.selector');
// I want something like this.
$(document).on('click', domRef, function() {
});
</code></pre>
<p>I know it makes no sense to use it this way in the above... | javascript jquery | [3, 5] |
2,584,321 | 2,584,322 | C# coding for colours not working completely | <p>I have a pie chart and I wanted 3 specific colours there i code this: but only the red colour is displayed. Instead of green it display blue. Instead of the yellow is a dark gold colour. Is this code correct? If so why are the colours not displayed correctly?</p>
<pre><code>foreach(PatientAllergy alrg in inpatientA... | c# asp.net | [0, 9] |
5,128,001 | 5,128,002 | How do I find out how many times a function is called with javascript/jquery? | <p>Perhaps an odd question but here it goes: I have a function which I call periodically and within that function I need to know which iteration I'm in, or how many times the function has been called. A simplified version of the problem: </p>
<pre><code>jQuery( document ).ready( function(){
setInterval( "myFunctio... | javascript jquery | [3, 5] |
3,081,569 | 3,081,570 | Freetextbox Problem | <p>I tried to use firefox but my <a href="http://freetextbox.com/" rel="nofollow">freetextbox</a> didn't work. However, when I use IE6 it works properly. I tried to use google chrome and an updated version of IE and it's also working. Has anyone else had this problem? Is it a bug?</p>
| c# asp.net | [0, 9] |
4,512,543 | 4,512,544 | How to create Fibonacci Sequence in Java | <p>I really suck at math. I mean, I REALLY suck at math.
I'm trying to make a simple fibonacci sequence class for an algorithm I'll be using. I have seen the python example which looks something like this:</p>
<pre><code>a = 0
b = 1
while b < 10:
print b
a, b = b, b+a
</code></pre>
<p>The problem is that ... | java python | [1, 7] |
2,114,025 | 2,114,026 | Get element from string | <p>I have a large string in a variable that includes a whole bunch of HTML tags.</p>
<p>I want to get the value of a hidden input field within the string and store it in its own var.</p>
<pre><code><input type="hidden" value="WantThis" />
</code></pre>
<p>Can anyone help me out at all?</p>
| javascript jquery | [3, 5] |
4,170,171 | 4,170,172 | How Do I Store A PHP Variable In JS For Use With jQuery? | <p>I'm wondering where I would put code to take a variable from PHP (used in numbering classes) and store it in a variable that jQuery can access?</p>
<p>Here is an example:</p>
<pre><code>$(".object1-22").hover(function(e){
$(".object2-22").show();
}, function(e) {
$(".object2-22").hide();
});
</code></pre>
... | php jquery javascript | [2, 5, 3] |
3,650,658 | 3,650,659 | Completing jQuery animations on page unload | <p>Is there a way to perform a jQuery animation before a user navigates away from a page by clicking on a link, or clicking the back/forward buttons. </p>
<p>It seems like doing the animation in response to an unload event would be sure to cover all the conditions under which a user may leave a page. </p>
<p>However,... | javascript jquery | [3, 5] |
1,722,869 | 1,722,870 | How to select all textareas and textboxes using jQuery? | <p>How can I select all textboxes and textareas, e.g:</p>
<pre><code><input type='text' />
</code></pre>
<p>and</p>
<pre><code><textarea></textarea>
</code></pre>
<p>on a page and have the property <code>style.width="90%";</code> applied to them?</p>
| javascript jquery | [3, 5] |
1,006,754 | 1,006,755 | How to compare Integer with integer array | <p>i am new to android. I want to know how to compare Integer with integer array. There is a set of integer array (Ex) array_int={1,2,3,4} and single integer int i=2, here i want to compare both integers,and in case if single integer appears in array integer, i want to break the process. </p>
<pre><code>for(i=0;i<... | java android | [1, 4] |
5,508,873 | 5,508,874 | How to send SMS from asp.net application | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/1125332/sms-from-our-site">sms from our site</a> </p>
</blockquote>
<p>I want to send SMS from my asp.net application. Suppose there will be 2 text boxes in my UI, one for mobile or cell phone number and another... | c# asp.net | [0, 9] |
292,663 | 292,664 | virtual function | <p>what are virtual functions? what is pure virtual function? please explain with example</p>
| java c++ | [1, 6] |
1,538,477 | 1,538,478 | jQuery - Animation when page changes | <p>I have this website: <a href="http://www.heinesiebrand.nl/demo/" rel="nofollow">http://www.heinesiebrand.nl/demo/</a></p>
<p>When the user is on the 'Home'-page, it sees a quote on top of the page. When you go to another page, that disappears. This now happens in a 'hard' transition, and i want to smooth that up us... | javascript jquery | [3, 5] |
4,653,839 | 4,653,840 | KCfinder: How to allow public folder | <p>I'm using KCfinder with CKeditor all works good, I have sessions enabled to allow uploading into a users private folder, but how can I show the public folders to the user as well. </p>
<p>Here is my session code that I use. </p>
<pre><code><?php
$_SESSION['KCFINDER'] = array();
$_SESSION['KCFINDER']['disab... | php javascript | [2, 3] |
797,290 | 797,291 | Disable a function | <p>I have a tooltip that I want to disable. It is from <a href="http://cssglobe.com/post/1695/easiest-tooltip-and-image-preview-using-jquery" rel="nofollow">this site</a> and is basically set and called as follows:</p>
<pre><code>this.tooltip = function(){....}
$(document).ready(function(){
tooltip();
});
</code></pr... | javascript jquery | [3, 5] |
3,272,367 | 3,272,368 | Sync multiple tracks in android | <p>I invest my few days but not getting the correct answer.</p>
<p>I am developing an application in which 12 tracks should executes parallely and they are, but my problem is that the start time is not same.</p>
<p>Actually my question is about to sync my 12 tracks. All the tracks start at one time, there should not ... | java android | [1, 4] |
23,643 | 23,644 | How to make something like stackoverflow's similar title search | <p>*<em>UPDATE:</em>*I've already answered my question. But you can still give me advise and i'll take your answer as selected</p>
<p>NOTE: If you don't need to know what I want to do with the codes, just skip the first several paragraphs and directly see the codes and tell me why they doesn't work without error.</p>
... | php javascript | [2, 3] |
3,451,768 | 3,451,769 | Jquery .next() help | <p>I use the following code to hide and show a box on a bunch of search results. Each result has its own toggle and box to show and hide. The problem I have is that clicking any one of the toggles will show and hide ALL of the boxes on the page and NOT just the box for the one result. How can I do this?</p>
<p>Thanks<... | javascript jquery | [3, 5] |
3,470,421 | 3,470,422 | What language should I write my 2D game in? | <p>I'm thinking of writing a game. It's inspired by Minecraft/Terraria (but don't worry it will be different). </p>
<p>My main question is what language I should write it in -- it'll be relatively simple graphics, more like Terraria than Minecraft. I know Java relatively well and Minecraft is written in it, but C++ s... | java c++ | [1, 6] |
3,295,186 | 3,295,187 | Android Clock Application: acceses which existing libraries? | <p>I am trying to use the existing alarm clock code available <a href="http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android-apps/2.2_r1.1/com/android/alarmclock/ClockPicker.java" rel="nofollow">here</a>
Does anyone know what layers in the android framework are used/touched upon in this a... | java android | [1, 4] |
128,901 | 128,902 | Redirecting on a single search result? | <p>When a user does a search on my website, and there is only one entry, then I want to redirect the user to the search result. The current way that I am doing this is poor. Here is how I am currently doing this:</p>
<p>If there is only one search result on the search result page, then I render a hidden input with an ... | php javascript jquery | [2, 3, 5] |
461,115 | 461,116 | how to call python code in javascript to display bar chart | <p>i have written python code which gives me i/p to chart(json data) but i am not getting how to get these data in my javascript.</p>
<p>i want to display it in google app engine</p>
<p>i want to do it in same way as we can do it with PHP.</p>
| javascript python | [3, 7] |
2,226,818 | 2,226,819 | get set access in javascript object literals | <p>Using object literals for the first time and it seems I don't quite understand them right. What I need is private variables with the scope of the object and therefore accessible to all functions in the object literal.</p>
<p>Here's the issue:</p>
<p>I have a simple object literal for a map object</p>
<pre><code>v... | javascript jquery | [3, 5] |
1,657,221 | 1,657,222 | get the details of child checkbox while clicking on the parent checboxes | <p>I have set of checkboxes with select all and deselect all options... Is it possible to get the details( id, class, name) of the child checkboxes associated each main checkbox while clicking on select all option..</p>
<p><a href="http://jsfiddle.net/nBh4L/2/" rel="nofollow">http://jsfiddle.net/nBh4L/2/</a></p>
<pre... | javascript jquery | [3, 5] |
3,101,501 | 3,101,502 | Prevent user from chaning tokens within input box | <p>How to prevent the change of certain elements, tokens, within a textarea with javascript or jquery? For instance I have this string in an input</p>
<p>this is normal text {this can't be changed 1}. This is more text. {This can't be changed 2 }. And some more text</p>
<p>If a user tries to change text within th... | javascript jquery | [3, 5] |
3,104,849 | 3,104,850 | How to acces it from a different class | <p>Ok I kinda got stucked on the basics.I have a method in class that shows a notification in the notification bar. I tried to make it static but if I make it static,some functions won't work.</p>
<p>So if I have the following function in x.class,how can I access it from y.class? Because I tried with static,and with o... | java android | [1, 4] |
4,930,814 | 4,930,815 | How to change javascript code to Jquery? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/10828381/how-to-convert-javascript-code-to-jquery-code">How to convert Javascript code to Jquery code?</a> </p>
</blockquote>
<p>I need to convert this javascript code to Jquery?</p>
<p><code>eval("document.for... | javascript jquery | [3, 5] |
3,886,712 | 3,886,713 | Hiding routeparameters from URL when using RouteTable | <p>I'm using a <code>RouteTable</code> and I'm looking to hide the routeparameters from the URL. The relevant code is:</p>
<pre><code>RouteTable.Routes.Add("EditItem", new Route("{editMode}/{itemId}.aspx", new PageRouteHandler("~/EditPage.aspx")));
</code></pre>
<p>And the code that refer to that page is:</p>
<pre><... | c# asp.net | [0, 9] |
3,783,302 | 3,783,303 | countdown bar android example | <p>any help to display this simple countdown on progress bar?</p>
<pre><code>new CountDownTimer(30000, 1000) {
public void onTick(long millisUntilFinished) {
mTextField.setText("seconds remaining: " + millisUntilFinished / 1000);
}
public void onFinish() {
mTextField.setText("done!");
}
}.start();
<... | java android | [1, 4] |
1,787,540 | 1,787,541 | Aid with this isue | <p>Here is my camera class:</p>
<pre><code>public void setPosition( float x, float y )
{
positionX = x;
positionY = y;
}
public void applyTransform(GraphicsContext c)
{
c.getCanvas().translate(-getPositionX(), -getPositionY());
c.getCanvas().scale(getScale(), getScale());
}
public RectF getCamRect(in... | java android | [1, 4] |
1,736,674 | 1,736,675 | Differences between C++ and Java compilation process | <p>I have high level idea on the differences between C++ and Java compilation. But, I want to really understand and dive deep. can you suggest any references or blogs ?</p>
| java c++ | [1, 6] |
4,368,254 | 4,368,255 | not able to shuffle a JSONArray | <p>I am trying to shuffle a JSONArray and a get a subset(JSONArray). So for example if my JSONArray has 5 entries, I want to generate a JSONArray with random 3 entries out of 5 in it.
Below is the code for shuffling the JSONArray. Problem is that the output JSONArray has backslash() characters introduced before every ... | java android | [1, 4] |
2,649,253 | 2,649,254 | jQuery prevent stop() from giving fixed height to element | <p>I have the following lines of code:</p>
<pre><code>$(".product-list .product").hover(function() {
$(this).find('.product-description').stop().slideDown("slow");
}, function() {
$(this).find('.product-description').stop().slideUp("slow");
})
</code></pre>
<p>Now the problem is, when I move fast enough, and ... | javascript jquery | [3, 5] |
4,636,380 | 4,636,381 | how to check wifi or 3g network is available on android device | <p>Here, my android device supports both wifi and 3g. At particular time which network is available on this device. Because my requirement is when 3g is available I have to upload small amount of data. when wifi is available entire data have to upload. So, I have to check connection is wifi or 3g. Please help me. Thank... | java android | [1, 4] |
1,447,800 | 1,447,801 | Using JQuery, how can I make a field editable, but user can't type? | <p>I have a field that has a date control popup when the user clicks in it. The problem is, that the user can also enter invalid dates.</p>
<p>Is there a way using Javascript to leave the field editable, but prevent the user from typing any numbers?</p>
| javascript jquery | [3, 5] |
1,118,618 | 1,118,619 | Canvas.DrawCircle inverting circle when radius is < 1 | <p>I'm having some trouble with the following code, it appears to drawn the circle inverted (inside out). If I change the radius parameter from 0.25f to 1.0f then it does draw a circle. </p>
<pre><code> /* this changes the scale to 0 to 1 */
float scale = (float) getWidth();
canvas.save(Canvas.MATRIX_SAVE... | java android | [1, 4] |
3,805,722 | 3,805,723 | Android. Call system dialog | <p>Is there a way to open the system dialog <code>settings->location & security->Install from SD card</code> programmatically from my application? </p>
| java android | [1, 4] |
2,213,775 | 2,213,776 | Running a javascript function that is in an external .js file from within the script? (attached by src=) Using PHP | <p>I'm using PHP code to generate the tag in the tags of my webpage.</p>
<p>I'm using PHP so that if a particular GET variable has been set (in this case, 'savedsearch') it runs a functions from the external javascript file I'm attaching to the web page.</p>
<p>Here's the code I'm using:</p>
<pre><code><?php
//... | php javascript | [2, 3] |
2,939,534 | 2,939,535 | Android UI Thread | <p>i am using threads to do few tasks. and after that i want to access the main thread via runOnUiThread(). but how to determine whether that ui thread still running or not?</p>
| java android | [1, 4] |
778,822 | 778,823 | Android memory leak tool? | <p>Is there any good visual tool which can be used to detect memory leaks in Android?</p>
| java android | [1, 4] |
3,924,402 | 3,924,403 | Check for required exact keyword(s) in text (javascript) | <p>I need to be able to check for required keyword(s).</p>
<p>Here's what i'm currently using:</p>
<pre><code> // Check for all the phrases
for (var i = 0; i < phrases.length; i++) {
if (value.toLowerCase().indexOf(phrases[i].toLowerCase()) < 0) {
// Phrase not found
missingPhrase... | javascript jquery | [3, 5] |
4,986,312 | 4,986,313 | Make a path for create a file in Java (Android) | <p>Given a File object how can I create the path for saving it?</p>
<p>I tried file.mkdirs() but for example if the file's path is:</p>
<pre><code>/mnt/sdcard/downloads/myapp/temp/song.mp3
</code></pre>
<p>it also creates a folder named "song.mp3" inside temp.</p>
<p>How can I do it correctly?</p>
| java android | [1, 4] |
1,640,421 | 1,640,422 | Event not firing on dropdown list when disabled | <p>This client side script is being added to buttons in our existing codebase. It basically shows a pop-up that the system is busy whenever a long running process is occuring. this works fine for buttons, however the btn.disabled = true line causes the SelectedIndexChanged event to never fire(when using it on a button,... | asp.net javascript | [9, 3] |
2,145,512 | 2,145,513 | Javascript: How to hijack input type=submit on click behavior? | <p>I got a button:
</p>
<p>Whenever I click on it, it submits to a form.</p>
<p>I want to hijack this behavior, so when I click, it calls a JS function instead. How do I do this? I added:</p>
<pre><code>$('input.submit').live('click', addFood);
</code></pre>
<p>The problem is it still submits to the form. When I re... | javascript jquery | [3, 5] |
3,634,073 | 3,634,074 | How can I detect DOM ready and add a class without jQuery? | <p>I want to rewrite this line without using jQuery so it can be applied quicker (and before the downloading of the jQuery library). The line is...</p>
<pre><code>$(document).ready(function() { $('body').addClass('javascript'); });
</code></pre>
<p>If I added it to the <code>html</code> element instead, would I be ab... | javascript jquery | [3, 5] |
1,019,176 | 1,019,177 | FadeOut, Replace HTML & FadeIn | <p>I'm having a few issues getting a simple JQuery function to work that fades an element out, replaces the image within and fades back in again.</p>
<p>My function looks like this:</p>
<pre><code>function nextPage() {
$("#leftPage").fadeOut("slow", function() {
$("#leftPage").html="<img src='p... | javascript jquery | [3, 5] |
1,529,920 | 1,529,921 | jQuery selector does not work on dynamic created content in ie7 and ei8 | <p>I have this elements on my site which are added dynamically on jQuerys document.ready function.</p>
<p>The problem is that I can't select those element using regular jQuery selectors. The JavaScript runs fine in ie9 and other browsers. I think the reason why it does not work is because the content that I'm trying t... | javascript jquery | [3, 5] |
518,548 | 518,549 | When and why to 'return false' in javascript? | <p>When and why to 'return false' in javascript?</p>
| javascript jquery | [3, 5] |
650,461 | 650,462 | Continuation of Count difference between two numbers | <p>I have <a href="http://jsfiddle.net/vQnHz/5/" rel="nofollow">this Example</a> which does not work in IE, but works in all other browsers can you take a look. What is the problem here?
Note: This is a continuation of <a href="http://stackoverflow.com/questions/7117875/count-number-of-days-between-2-dates-in-javascrip... | javascript jquery | [3, 5] |
5,197,779 | 5,197,780 | How to translate java "?" operator in C#? | <p>I would like to know the translation of this java code in C#</p>
<pre><code>n = (length > 0) ? Math.min(length, buffer.length) : buffer.length;//Java code
</code></pre>
<p>Can it be equivalent to this in C# ?</p>
<pre><code>if(length >0)
{
n = Math.min(length, buffer.length);
}
else
{
n = buffer.lengt... | c# java | [0, 1] |
5,422,954 | 5,422,955 | Adding src attribute to <script> | <p>I have this: </p>
<pre><code>script_url = 'http://externaldomain.com/script.js'
div_id = 'div'+Math.floor(Math.random() * 1000000);
document.write('<div id="'+div_id+'"><scr'+'ipt id="banner-to-load"></scr'+'ipt></div>')
</code></pre>
<p>After DOM is ready i do this: </p>
<pre><code>$('#ba... | javascript jquery | [3, 5] |
254,383 | 254,384 | JQuery function to select checkboxes | <p>I need a function that accepts a parameter with its id example a div
and after that loops inside the div to look for checkboxes and if there is/are any checks if its value is checked and returns true if every checkbox is checked returns false.</p>
| asp.net javascript jquery | [9, 3, 5] |
5,971,198 | 5,971,199 | Temporary disabling a Submit Button | <p>I have a form which upload a big file to server. Something like this:</p>
<pre><code><form id="myform" action="myaction.php">
<p>
<!--fields -->
</p>
<input type="submit" class="submit" value="Send" />
</form>
</code></pre>
<p>I need to prevent the user resubmit the f... | javascript jquery | [3, 5] |
1,367,773 | 1,367,774 | ASP.Net How do I execute a dynamic JavaScript and prevent a postback | <p>I have and ASP button and 2 Labels.</p>
<pre><code><asp:Button runat="server" ID="btnHide" />
<asp:Label runat="server" ID="lblName"></asp:Label>
<asp:Label runat="server" ID="lblPosition"></asp:Label>
</code></pre>
<p>I have created a dynamic JS script.</p>
<pre><code>string jsbtnHi... | c# javascript asp.net | [0, 3, 9] |
4,858,948 | 4,858,949 | How to return false in javascript function from JQuery calling [web method] in asp.net | <p>So in default.aspx I have the code</p>
<pre><code> <script type="text/javascript">
function validateForm()
{
test();
//here should return true or false and exit validateForm so not to run InsertUpdateData()
InsertUpdateData()
}
</script>
<... | c# javascript jquery asp.net | [0, 3, 5, 9] |
392,994 | 392,995 | Start a phone call from a service | <p>I am trying to write an android service, to amongst other things, start a phone call. I have got the service to do other things: listen on network, accept a connection, process text and respond with text. I am now trying to set up a call.</p>
<p>So far I have, the bit to set up the call is it the extra unnecessary ... | java android | [1, 4] |
2,767,026 | 2,767,027 | c# - Click on link to create a table? | <p>Hmmm not sure how to exactly ask this. </p>
<p>What i want to do is to be able to click on a link called surname and then below i want a table generated with a list of everyone with that surname from the database.</p>
<pre><code><input type="text" id="surname" name="surname" size="10" /><a href="javascrip... | c# javascript jquery asp.net | [0, 3, 5, 9] |
792,134 | 792,135 | Javascript/jQuery to resize randomly the pictures on load? | <p>Instead of creating thumbnails for my images, I would like to show the original images in my page. For viewing purposes, I still need to resize these images but instead of adding a <code>width:200px</code> on them, I want to display each image in a div container but with size randomly chosen from three choices.</p>
... | javascript jquery | [3, 5] |
3,951,643 | 3,951,644 | "super of super" in extented classes (alter variable in super class of super class) | <p>The question is more Java, but I want to implement it in Android:</p>
<p>Suppose there are 3 or more classes extending each other:</p>
<pre><code>class A {
...
int color;
...
}
class B extends A {
...
}
class C extends B {
...
// I want to alter color of class A inside here
}
</code></pre... | java android | [1, 4] |
933,370 | 933,371 | Convert ASP.net source code to PHP | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/1291985/how-to-convert-php-source-code-to-asp-net-code">How to convert Php source code to Asp.net code</a> </p>
</blockquote>
<p>Can we convert ASP.net source code into PHP .</p>
<p>Any helpful answered much ap... | php asp.net | [2, 9] |
4,726,932 | 4,726,933 | Want to change image src of ImageButton using javascript on client click | <p>I tried this first which is not working:</p>
<pre><code><asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="minus.gif" OnClientClick="this.src='plus.gif';"/>
</code></pre>
<p>Another method:</p>
<pre><code><asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="minus.gif" OnClientClick=" retu... | javascript asp.net | [3, 9] |
1,176,414 | 1,176,415 | How to respond without html in asp.net | <p>Easy question perhaps.</p>
<p>Okay, I have a post to my page and need to respond with one string. </p>
<p>in php, you could simply do something like this:</p>
<pre><code><?php
die ("test");
</code></pre>
<p>then you can place this page on a webserver and access it like this:</p>
<pre><code>localhost/test.php... | c# asp.net | [0, 9] |
3,419,346 | 3,419,347 | asp.net pass sender to server with jquery | <p>I want to call a C# function in my aspx.cs file with jQuery. The function looks like:</p>
<pre><code>protected void Fill(object sender, EventArgs e) { ...do s.th. with sender... }
</code></pre>
<p>in the function im getting my control I want to work with by doing a cast on the sender. How to pass the sender to ser... | c# asp.net | [0, 9] |
4,817,614 | 4,817,615 | progressdialog preventing contentview switch? | <p>Whenever I attempt to set content view after dismissing the progress dialog I get an error like... </p>
<p>04-13 14:40:38.043: WARN/System.err(801): android.view.ViewRoot$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views.
04-13 14:40:38.073: WARN/Input... | java android | [1, 4] |
3,481,885 | 3,481,886 | Dynamically change MasterPage and ContentPlaceHolderID of asp content tag? | <p>I have a page which initially inherited from MastePage.master . And I want to use the same page but with different masterpage(MasterPage2.master) at some other place in my project. For that I am using the following code.</p>
<pre><code>private void Page_PreInit(object sender, EventArgs e)
{
if (Request.... | c# asp.net | [0, 9] |
1,940,127 | 1,940,128 | How can I implement a countdown timer in an ASP.NET page? | <p>I want to show a countdown timer on the top right corner of my ASP page. It should start from 00:00:30 and decrement it to 00:00:00. Then it again start from 30 sec. </p>
<p>Can anyone help me?</p>
| javascript asp.net | [3, 9] |
1,079,496 | 1,079,497 | trigger failure in jquery trigger | <pre><code>$(document).ready(function(){
jQuery("#but1").bind("click",function(e){
alert(e.name);
});
jQuery("#but1").trigger({name:'Dmy', surname:'My'});
});
</code></pre>
<p>The alert fails to pass the data, why is that?!? the alert says 'undefined'. </p>
<p>What am I doing wrong, why I fail... | javascript jquery | [3, 5] |
1,754,132 | 1,754,133 | Validation on confirming Alert | <p>Script</p>
<pre><code><script language="javascript" type="text/javascript">
function FinalFunction() {
//Your First Script
return confirm('Are you sure about to submit the test?');
}
</script>
<asp:Button ID="Button1" runat="server" Text="Button" OnClientClick="javascrip... | c# javascript asp.net | [0, 3, 9] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.