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,066,505 | 1,066,506 | Replace last match in string | <p>Before a problem My string is in this format:</p>
<pre><code>string filePath ="F:/jan11/MFrame/Templates/feb11";
</code></pre>
<p>I repalce <code>TnaName</code> like this:</p>
<pre><code>filePath = filePath.Replace(TnaName, ""); //feb11 is TnaName
</code></pre>
<p>It's work.But I have a problem when <code>TnaN... | c# asp.net | [0, 9] |
1,422,862 | 1,422,863 | How can i extract the data that required from web page | <p>Hi all as per the requirement i am having i would like to extract the data from this site</p>
<p><a href="http://loving1.tea.state.tx.us/lonestar/Menu_dist.aspx?parameter=101902" rel="nofollow">http://loving1.tea.state.tx.us/lonestar/Menu_dist.aspx?parameter=101902</a></p>
<p>I would like to extract the data that ... | c# asp.net | [0, 9] |
2,104,986 | 2,104,987 | JavaScript passing the Value to php query | <p>this is my first post here and hopefuly someone will help me fix this problem. I have this mysql query:</p>
<pre><code>$query_history = "
SELECT ProductProvider AS NameSS, type, StoreOpinionDate AS dating
FROM cd_stores
WHERE UserFID = '".$row_Profile['UserFID']."'
... | php javascript | [2, 3] |
5,921,645 | 5,921,646 | maskedextender and calenderextender in asp.net | <p>I am new person in asp.net. I have one text box and one calender image button in my asp.net application. I use the masked extender to display date in the textbox like yyyy-mm--dd. Also i use the calender extender for the purpose of clicking image button it will show the date in the textbox. I use the following code.... | c# asp.net | [0, 9] |
5,893,092 | 5,893,093 | NullPointerException with simpleAdapter in android | <p>I am using a simpleAdapter to create a listview, however I get this error:</p>
<pre><code>Caused by: java.lang.NullPointerException
at com.tab.Activity.onCreate(Activity.java:36)
</code></pre>
<p>and this the code that I am using:</p>
<pre><code>ArrayList<HashMap<String,String>> list = new ArrayList&l... | java android | [1, 4] |
944,970 | 944,971 | how to verify password which is store in database as a hash value? | <p>I want to store password in an encrypted form. I have used sha256.
My code is as below</p>
<pre><code>public static string ComputeHash(string plainText)
{
int minSaltSize = 4;
int maxSaltSize = 8;
Random random = new Random();
int saltSize = random.Next(minSaltSize, maxSaltSize)... | c# asp.net | [0, 9] |
2,656,378 | 2,656,379 | Finding ID with Multiple ASP UserControl using JavaScript | <p>I have an ASP usercontrol name <code>ListItem</code>. Each <code>ListItem</code> has 2 ASP controls on it : a label <code>lblIndex</code> and a button <code>btnAction</code></p>
<p>On my page, I load 10 <code>ListItem</code> into a panel and set <code>lblIndex</code> on each ListPanel an appropriate index.</p>
<pr... | c# javascript asp.net | [0, 3, 9] |
143,179 | 143,180 | How to find the indices of duplicate values in an array after running a count for duplicate? | <p>I am aware that similar questions to this have been asked, but I have looked through these and am absolutly baffled as to a) how they work, and b) how I could adapt them to fit my purpose. I have therefore started a new question.</p>
<p>I have an array of only 4 indices, each index holds a number. My aim is to find... | javascript jquery | [3, 5] |
3,834,814 | 3,834,815 | Adding/Removing Checkbox Values into TextArea | <p>I scoured the the site and found a few examples, I got close but not close enough.
I have 2 checkboxes and if a user checks them they are placed in the textarea, if the user removes the check. the value is removed. I want to keep cursor position too.</p>
<p>I am able to add but its still clunky. </p>
<p>My fiddle... | javascript jquery | [3, 5] |
1,083,215 | 1,083,216 | getting a result from startActivityForResult | <p>i've a code that will get a image from the gallery and then set a gridSize with it. </p>
<p>the main code that will send android to the SizeSelection class.</p>
<p>PuzzleAcitivity:</p>
<pre><code>if( resultCode == RESULT_OK) {
Intent gridSizeIntent = new Intent();
gridSizeIntent.s... | java android | [1, 4] |
110,156 | 110,157 | C# and ASP - Setting a command argument, then command argument disappearing | <p>I'm trying to use a gridviewcommand to delete an entry in the gridview (as well as from the datacontext), but I want to ask the user to confirm or not first. I have a seperate linkbutton to execute the delete code using the ID of the item in the row that the user clicked the delete button in. </p>
<p>When the user ... | c# asp.net | [0, 9] |
5,062,572 | 5,062,573 | Did anyone use the Opensudoku java library? | <p>How to create sudoku puzzles using Opensudoku library? And how can I create puzzles with different difficulty levels using this library? Can I get a sample code of sudoku that use this library? </p>
| java android | [1, 4] |
2,951,120 | 2,951,121 | Load javascript function after other function | <p>I have two functions. I'd like <code>moduleList()</code> to load AFTER <code>reloadModules()</code>:</p>
<pre><code>reloadModules();
moduleList();
function reloadModules() {
$.get(v2_settings_url + 'v2_nav/', null, function(responseText) {
$('#dock ul').html(responseText).parent().fadeIn();
});
... | javascript jquery | [3, 5] |
4,756,571 | 4,756,572 | How to get the value which is selected in gridview? | <p>When I click on a row I should get the value on which the user is clicked </p>
<p>How do I get that?</p>
| c# asp.net | [0, 9] |
3,275,005 | 3,275,006 | Cant access object via variable? | <p>I have a javascript object defined as follows:</p>
<pre><code>var tabs = {
'nav_tweet_search':'tweet-panel',
'nav_shopping_cart':'cart-panel',
'nav_stats':'stats-panel'
};
</code></pre>
<p>Im trying to access some values using a variable in another function. However, i am getting <code>undefined</code>... | javascript jquery | [3, 5] |
834,778 | 834,779 | Play youtube video when clicking on a preview image, php and javascript | <p>I originally was using this javascript to make a preview image play a youtube video on a click event:</p>
<pre><code>$(document).ready(function(){
$("#feature_content").click(function(){
var iframe = "<iframe />";
var url = "http://www.youtube.com/embed/SERIAL_NUMBER?autoplay=1&autoh... | php jquery | [2, 5] |
1,160,584 | 1,160,585 | How to Convert An Enter Key Press Into A Tab Key Press For Web Pages | <p>The enter key press should work like a Tab key press.The enter key press for TextArea and Submit Button should work as usual.Focus should skip from the next element when the next field is disabled/readonly.</p>
<p>thanks,</p>
| javascript jquery | [3, 5] |
5,373,532 | 5,373,533 | android Service to detect that home screen is on | <p>Can I write an service in android which detects that we are on home screen and Toast a message. I want to detect that control is currently on home screen.</p>
<p>Let me know if possible.</p>
<p>Thanks,
Pravin</p>
| java android | [1, 4] |
961,837 | 961,838 | jQuery onchange select option | <p>Let's say I have this HTML:</p>
<pre><code><select id='list'>
<option value='1'>First</option>
<option value='2'>Second</option>
<option value='3'>Third </option>
</select>
<input type ="text" id="text"/>
</code></pre>
<p>and then this JavaScript</... | javascript jquery | [3, 5] |
5,973,988 | 5,973,989 | Pop up window in asp.net | <p>I have a send message button and on clicking that I open a website in a new page which has a panel and has few labels and a send button inside the panel. I want to make that panel a pop up on the same window and the source page should be in the background blurred. how to make a pop up in the same window. Please hel... | c# asp.net | [0, 9] |
4,230,409 | 4,230,410 | How can I make this div slide up and down hover effect? | <p>I want to create a <code><div></code> animation very much like this site: <a href="http://www.weareinstrument.com/about/" rel="nofollow">http://www.weareinstrument.com/about/</a>. When you hover over the darker grey boxes and the images at the bottom of the screen they seem to slide up and down depending if yo... | javascript jquery | [3, 5] |
5,643,238 | 5,643,239 | How to get relative position of a draggable item when dropped? | <p>I have the following:</p>
<pre><code> $(function() {
// Make images draggable.
$(".item").draggable({
// Find position where image is dropped.
stop: function(event, ui) {
// Show dropped position.
var Stoppos = $(this).position();
$("div#stop").text("STOP: \nLeft: "+ Sto... | javascript jquery | [3, 5] |
4,365,582 | 4,365,583 | transfer data in functions ? Javascript | <p>how can i transfer certain data in function like <code>test()</code>;</p>
<p>I saw some people did this like putting the data in the brackets like test(data);</p>
<p>When the function executes it will use the data
for example:</p>
<pre><code>$('#element').click(function(){
test(somedata);
});
function text();... | javascript jquery | [3, 5] |
774,172 | 774,173 | Disabling LinkButton doesn't disable the click event in javascript | <p>I want to disable a <code>LinkButton</code> clink on the client site.</p>
<pre><code>objLinkButton.disabled = true;
// or
objLinkButton.disabled = -1;
</code></pre>
<p>This disables the link but I am still able to click on the link and do PostBack.</p>
<p>Is there any way I can disable the link.</p>
<p>Code:</p... | c# asp.net javascript | [0, 9, 3] |
902,426 | 902,427 | detect back button click in browser | <p>I have to detect if a user has clicked back button or not.
For this I am using </p>
<pre><code>window.onbeforeunload = function (e) {
}
</code></pre>
<p>It works if a user clicks back button. But this event is also fired if a user click F5
or reload button of browser. How do I fix this?</p>
| javascript jquery | [3, 5] |
1,865,045 | 1,865,046 | Executing math equation in Android | <p>I need to be able to handle a math equation such as "(45+9)/8" in my app. I wanted to just eval it using JavaScript, but realized that I can't use javax.script in Android. So, I found WebView, but I'm having a bit of trouble using it. Most of the examples refer to using an external page with the JS code, or using "j... | java javascript android | [1, 3, 4] |
4,211,138 | 4,211,139 | Can I call a variable from my .NET codebehind page in the actual aspx? | <p>Say in my codebehind .cs file, I set a variable:</p>
<pre><code>protected void Page_Load(object sender, EventArgs e)
{
int x = 2;
}
</code></pre>
<p>I want to display this dynamically in my aspx page. But this code won't work:</p>
<pre><code><% Response.Write(x); %>
</code></pre>
<p>How can i accomplis... | c# asp.net | [0, 9] |
2,651,984 | 2,651,985 | Unable to get GPS coordinates on Android | <p>I am trying to obtain the GPS coordinates with the following code:</p>
<pre><code>public class conTest extends Activity implements LocationListener{
TextView headerText;
BufferedReader in = null;
private LocationManager lm;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanc... | java android | [1, 4] |
3,303,769 | 3,303,770 | Problems converting from an object to XML in java | <p>What I'm trying to do is to convert an object to xml, then use a String to transfer it via Web Service so another platform (.Net in this case) can read the xml and then deparse it into the same object. I've been reading this article: </p>
<p><a href="http://simple.sourceforge.net/download/stream/doc/tutorial/tutori... | java android | [1, 4] |
4,219,955 | 4,219,956 | How to separate data received from $.get() callback function | <p>I have this:</p>
<pre><code><div ><span id="compareResult"></span>&nbsp;&nbsp;<span id="result"></span></div>
$.get(
'data.php',
{ valA: $(this,'option:selected').val() , valB:$(this,'option:selected').val()},
function(childData){
$('#resu... | php jquery | [2, 5] |
2,047,665 | 2,047,666 | Random Text From jQuery Array | <p>I am trying to make an array of strings and then pluck a random string and place it in a div with class "quote". Below is my current code.</p>
<pre><code>$(document).ready(function() {
var quotes = new Array("foo", "bar", "baz", "chuck");
var randno = Math.floor ( Math.random() * quotes.length );
$('.q... | javascript jquery | [3, 5] |
4,628,003 | 4,628,004 | $(element).data("dataAtribute") vs $(element).hasClass("className") | <p>Which is quicker in jQuery?</p>
<p>$(element).data("dataAtribute") vs $(element).hasClass("className")</p>
<p>Thanks in advance?
Sniffer</p>
| javascript jquery | [3, 5] |
2,808,125 | 2,808,126 | Make fields non editable using javascript | <p>How can I set a div as non editable with its id or class using jQuery or JavaScript after submission?</p>
<pre><code>$('#id').attr("disabled",true);
</code></pre>
<p>is not working for a div.</p>
| javascript jquery | [3, 5] |
129,185 | 129,186 | How can I lock(freeze) a div into a jquery application? | <p>I made a jquery application, and I want to add a watermark (a small picture in the top-left corner) to it for the free version. I'm struggling to make as hard as possible for the users to remove it using javascript. I'm loading that image into a div and position it with a high value for it's z-index property, so it'... | javascript jquery | [3, 5] |
2,774,014 | 2,774,015 | How read a local xml file in android | <p>I am trying to read a local xml file from res/xml/myxml.xml
This is the xml,</p>
<pre><code><?xml version="1.0" encoding="utf-8" ?>
<Books>
<Number id ="1">
<Description>This is science book.
</Description>
</Number>
<Number id = "2">
<Description>T... | java android | [1, 4] |
3,719,193 | 3,719,194 | Force keydown event to fire only once per keyCode | <p><strong>Situation</strong>: I have a <code>keydown</code> handler with a <code>switch</code> for what key is pressed, fairly standard stuff, but when any key is held down the <code>keydown</code> event fires repeatedly (rather than just once when the key is actually pressed).</p>
<p><strong>Why it's a problem</stro... | javascript jquery | [3, 5] |
4,360,948 | 4,360,949 | how to jquery replace space also | <pre><code>$(this).html().replace("0 days","");
</code></pre>
<p>i want to replace "0 days" to become "". Currently the above statement will replace "0" to "" . that is not what i want. i want to replace entire statement "0 days"</p>
| javascript jquery | [3, 5] |
3,796,672 | 3,796,673 | detect click inside iframe | <p>i wanna detect click INSIDE iframe not onclick on iframe itself i tried onclick event u must click on iframe itself to trigger function i even tried addeventlistener to window or document nothing work as if the iframe isn't there the function never triger when i click inside iframe :( plz help</p>
| javascript jquery | [3, 5] |
3,795,545 | 3,795,546 | Getting the first table cell value in a column with jQuery | <p>I have a table with some values. The first row and first column contain values of such called vertical and horizontal sizes respectfully. What I need to do is to click on a table cell and get the horizontal and vertical values for that clicked table cell. What it basically means - get the value of first table cell i... | javascript jquery | [3, 5] |
1,529,344 | 1,529,345 | What causes this error? The TargetControlID of <CheckBoxControlName> is not valid. The value cannot be null or empty | <p>I have searched on the net for this error, but there doesn't appear to be alot on it.</p>
<pre><code>The TargetControlID of 'CheckBoxControlName' is not valid. The value cannot be null or empty.
</code></pre>
<p>Does anyone know of the main causes for this error?</p>
| c# asp.net | [0, 9] |
1,670,628 | 1,670,629 | jQuery multiple callbacks to one callback counting calls | <p><strong>I need just one callback at the and of multiple callbacks. With a simple "class" MultiCallback that count the calls it seems to be solved.
But the fadeIn function of jQuery calls mCallback just once.</strong></p>
<p>It have to call mCallback 3 times. That happens by using a callback function directly insi... | javascript jquery | [3, 5] |
3,394,935 | 3,394,936 | ARRAY of method functions | <p>Is it posible to store functions in an array in java?
Like for example..</p>
<pre><code>public void getMyname(){
// do something here;
}
public void getLastname(){
//do something here;
}
Array arr = {getLastName,getMyname};
</code></pre>
<p>Like that? if so is it right?</p>
| java android | [1, 4] |
3,306,412 | 3,306,413 | get Unique info for a machine in asp.net | <p>So i have a aspx that gets IP Addresses. but if i have multiple machines coming from an IP address I need some info that will distinguish each machine differently. </p>
<p>What would you use?</p>
| c# asp.net | [0, 9] |
3,372,417 | 3,372,418 | Multiple javascripts not collaborating together properly | <p>I'm new here, I'm a self-taught web designer who frankly have no knowledge of any javascript or jquery. However, I'm able to follow instructions and use plug-ins of course :)</p>
<p>I've been trying to search for a solution for the problem I'm experiencing currently.</p>
<p>I have a multiple js plug-ins and I thin... | javascript jquery | [3, 5] |
2,925,406 | 2,925,407 | Get the values according to the rearranged unordered list in a textbox | <p>I want to arrange values in a text field according to the order of the list items in an unordered list.
List is as following:-</p>
<pre><code><ul id="sort">
<li>1</li>
<li>2</li>
<li>3</li>
<li>4</li>
<li>5</li>
</ul>
</code... | javascript jquery | [3, 5] |
4,402,607 | 4,402,608 | How to retrieve a value from js file? | <p>Basically my question is <strong>How do you get the value of a variable inside a js file.</strong></p>
<p>E.g</p>
<pre><code>var now = (new Date() - 0);
other_var = 'Whats up';//how to pull the value of the other_var which is 'Whats Up'
key.embed();
</code></pre>
<p>How do get the value of the <code>other_var</... | php javascript | [2, 3] |
2,203,782 | 2,203,783 | Java calendar method | <p>Why does this keep returning 0? </p>
<pre><code>Calendar calendar = Calendar.getInstance();
calendar.get(Calendar.HOUR_OF_DAY)?
</code></pre>
| java android | [1, 4] |
5,731,135 | 5,731,136 | Redirecting to another page with jQuery works in IE, but not Firefox, Safari | <p>I wrote this jQuery code:</p>
<pre><code><script type="text/javascript">
$.ajax({
url: "http://www.mysite.com/login.aspx",
context: document.body,
success: function(html) {
$('body').append(html);
}
});
</script>
</code></pre>
<p>It works in I... | javascript jquery | [3, 5] |
1,093,422 | 1,093,423 | Where does this code go? | <p>Ok, hopefully this will be my last question. The code I have can be previewed working just fine over here: <a href="http://jsfiddle.net/adeneo/PT523/3/" rel="nofollow">http://jsfiddle.net/adeneo/PT523/3/</a></p>
<p>So, when you type in na picture one changes, ma= the second one changes etc</p>
<p>But when I put i... | javascript jquery | [3, 5] |
2,122,423 | 2,122,424 | how to get value from java script then store in php variable | <blockquote>
<p><strong>Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/2338942/access-a-javascript-variable-from-php">http://stackoverflow.com/questions/2338942/access-a-javascript-variable-from-php</a></p>
</blockquote>
<p>hi</p>
<p>i want get value from java script, then i will use the va... | php javascript | [2, 3] |
705,898 | 705,899 | Getting a div's "scrollWidth" when it has an absolute positioned child-div | <p>I have a problem getting the width of a div's content (of the content, not the div itself).</p>
<p>The usual approach would be Javascript's <code>scrollWidth</code> property, I think.</p>
<p>The problem: within this div, another div is positioned absolute and has a negative <code>right</code> value (-350px). I can... | javascript jquery | [3, 5] |
5,294,918 | 5,294,919 | adding tow events | <p>i have an form which will send some data to an php file , then return some results as example:</p>
<pre><code><form action"<?php $_SERVER['PHP_SELF']?>" method="post" id="data">
<input type"text" name="first_name"/>
<input type="text" name="last_name"/>
</form>
</code></pre>
<p>th... | php javascript jquery | [2, 3, 5] |
2,696,649 | 2,696,650 | Chrome brings the integer value for $('.abc').css("top"); | <p>The following javascript code returns two different values for Chrome and Firefox for the same page element.</p>
<pre><code>$('.abc').css("top");
</code></pre>
<p>Chrome returns: <strong>114px</strong><br>
while Firefox returns <strong>114.1230px</strong></p>
<p>I've tried this several times on the same page and ... | javascript jquery | [3, 5] |
1,545,152 | 1,545,153 | Using variables in Asp.NET Control Attributes in Html View | <p>I wonder if there is any way to do this:</p>
<pre><code><asp:Label ID="lblSomething" runat="server" Visible="this.ShowLabel"/>
</code></pre>
<p>and in the code behind:</p>
<pre><code>public bool ShowLabel {get;set;}
</code></pre>
<p>I know some of you may ask me why I need it but I find this approach clean... | c# asp.net | [0, 9] |
5,161,063 | 5,161,064 | Passing values between asp.net page and to GA server using JavaScript | <pre><code>protected void Button_Click(object sender, CommandEventArgs e)
{
Response.Redirect("EnterSession.aspx?session=" + e.CommandArgument.ToString());
}
</code></pre>
<p>the above code pass the session_id as query string to EnterSession.aspx</p>
<p>and I have the following c# related ... | c# javascript asp.net | [0, 3, 9] |
1,045,061 | 1,045,062 | Is this a javascript array with objects in it? | <p>Square brackets is an array, and curly brackets are objects correct?</p>
<p>What exactly is this data structure:</p>
<pre><code>Some.thing = [ {
"swatch_src" : "/images/91388044000.jpg",
"color" : "black multi",
"inventory" : {
"F" : [ 797113, 797114 ],
"X" : [ 797111, 797112 ]
},
"images" : [ {
... | javascript jquery | [3, 5] |
1,469,653 | 1,469,654 | If statement for Jquery / Javascript | <p>Here's what I'm trying to achieve:</p>
<p>I have a div that switches between fixed and absolute positioning depending on the scroll position. I have an example that works but I noticed that it's a little slow because it constantly changes the position on each and every pixel of scroll. So I thought that adding an a... | javascript jquery | [3, 5] |
5,222,065 | 5,222,066 | where does object reside in c#? | <p>i am a java programmer and i know in java objects are stored on heap. Just for curiosity wanted to where does objects reside in c#. </p>
| c# java | [0, 1] |
3,934,615 | 3,934,616 | Can I create script tag by jQuery? | <p>I want to create a script tag by jQuery.</p>
<p>I use the following code:</p>
<pre><code>$("<body>").append("<script></script>");
</code></pre>
<p>It doesn't work.
What will you do to acheive it?</p>
| javascript jquery | [3, 5] |
1,627,664 | 1,627,665 | Using an application in Landscape mode also? | <p>I've an application running successfully, the application runs only in portrait mode only, if i'm going to change this to landscape, it's also possible to change. But, it won't never come to portrait mode. How can i use these (portrait & landscape) in same time? Is it possible? Thanks in advance.</p>
| java android | [1, 4] |
1,131,201 | 1,131,202 | How to check window close event in php, in an "if" condition? | <p>How can I check if the user is closing the window after filling in one or more forms (parts) of a multipart form, but not all the parts.</p>
<p>I have to send the data collected from all/some parts of multipart form to the external server.</p>
<p>One condition is that, I can send the data to the external server on... | php javascript | [2, 3] |
5,826,876 | 5,826,877 | Dynamic Page Replacing Content causing flickering page | <p>In searching I couldn't find anyone with a similar issue. I'm trying to implement: <a href="http://css-tricks.com/6336-dynamic-page-replacing-content/" rel="nofollow">http://css-tricks.com/6336-dynamic-page-replacing-content/</a> -- I also posted this in their forums as well. </p>
<p>You can see my problem in actio... | php jquery | [2, 5] |
4,477,183 | 4,477,184 | How can i know if all <img> loaded in div using jQuery | <p>How can i know if all loaded in div using jQuery</p>
<p>i want to do this after load all img in #slider div</p>
<pre><code>var imgHeight = $("#slider img").height();
alert(imgHeight);
</code></pre>
| javascript jquery | [3, 5] |
3,716,249 | 3,716,250 | giving null pointer when using InputMethodManager imm = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE); | <p>Hi I'm trying to input this piece of code to hide the soft keyboard on the android, but it's returning a null pointer.</p>
<p>code:</p>
<pre><code>public void testSetTestEnvironment (){
solo.clickInList(4);
solo.clickOnMenuItem(ConfigVariables.CATALOGSERVER);
assertTrue(solo.searchText(ConfigVariables.... | java android | [1, 4] |
4,924,007 | 4,924,008 | Javascript: adding the print function to the body element | <p>I need to implement a print page functionality with the following restrictions:</p>
<ul>
<li>i cannot have a print view (no print.jsp to point to)</li>
<li>i cannot rely on print.css alone (because i have to move stuff around a lot in the DOM to get the page i want to print)</li>
</ul>
<p>So i implemented this lit... | javascript jquery | [3, 5] |
695,568 | 695,569 | How to read android sim contacts and phone contacts separately | <p>I want to read all sim contacts and phone contacts separately in Android. I searched for this and found lots of people having problem with this and I couldn't find any solution yet. I fond some answer <a href="http://stackoverflow.com/a/4409453/559185">here</a>, but it doesn't work for me.
When I test this it give m... | java android | [1, 4] |
5,826,906 | 5,826,907 | Length of an object filled with objects? | <p>I've got an object filled with objects and I want to know how many items are in it. How can I do this with JS? Also running jQuery in the page. </p>
<p><img src="http://i.stack.imgur.com/8Wnhz.png" alt="enter image description here"></p>
| javascript jquery | [3, 5] |
2,808,562 | 2,808,563 | Select form option on page load | <p>I would like to select the option contained within a php variable on page load.</p>
<pre><code><?php
$pre = 78;
?>
<select id="form8" name="form8">
<option value="15">15</option>
<option value="25">25</option>
<option value="64">64</option>
<option value="78">7... | php javascript jquery | [2, 3, 5] |
4,605,431 | 4,605,432 | Convert function from JS to PHP | <p>I have a function in javascript and it works just fine, but now I need same function in PHP and it has very strange behavior. It seems to me that functions are identical, still I missed something and cannot find it.</p>
<p>borders, neighbors are pre-defined arrays and base is predefined string.</p>
<p><strong>Java... | php javascript | [2, 3] |
109,856 | 109,857 | Interested in writing a computer game to improve my programming | <p>I've been trying to think of a good project to improve my programming skills. I'm heavilly interested in finance, but getting the data isn't so easy, therefore I thought I would try to make a simple computer game. The problem I have is I am not very 'graphics' savy. To be honest I dont know much about computer graph... | java c++ | [1, 6] |
1,493,932 | 1,493,933 | the IndexOf() method returns -1 all the time | <p>i have two data tables with the same structure</p>
<p>the first one has one row of the second one</p>
<p>the second one has set of rows </p>
<p>what i want is to get the row which comes next to the row of the first data table in the second data table.</p>
<p>the first data table his name is :: temp</p>
<p>the s... | c# asp.net | [0, 9] |
453,437 | 453,438 | Including a single javascript file on multiple domains | <p>I have multiple domains with multiple copies of jQuery.js in separate subfolders. I want to consolidate them so there's only one, and so there's no reference in one domain to another so I can use the same one for work and personal.</p>
<p>Furthermore, I don't want to use symbolic links because I'll be moving serve... | php javascript jquery | [2, 3, 5] |
1,129,499 | 1,129,500 | Differentiate jquery and javascript | <p>How can we differentiate <code>jquery</code> and <code>javascript</code>.?<br>
Where we can use <code>jquery</code> not <code>javascript</code> and vice-versa.?</p>
| javascript jquery | [3, 5] |
644,725 | 644,726 | Why aren't $.put() and $.delete() native in jQuery? | <p>We were having a discussion internally here at work about jQuery having built-in support for $.get() and $.post(), but not for $.put() and $.delete(). </p>
<p>Some think that its to keep the js library size smaller. Others think that its not a feature that is often asked for, so is left to plugin developers to make... | javascript jquery | [3, 5] |
4,654,597 | 4,654,598 | How two start two different events at different time? | <p>Here is my code:</p>
<p>public class SplashScreen extends Activity {</p>
<pre><code>private ImageView poweredByImage;
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
this.requestWindowFeature(Window.FEATURE_NO_TITLE);
this.getWindow().setFlags(WindowManager.Layout... | java android | [1, 4] |
1,955,365 | 1,955,366 | Prevent background Activity from being killed? | <p>I have an app that has a list of menu items. When you click a menu item it opens a corresponding activity. Now in that new activity when you click the back button and return to the main list, that activity gets killed and it does not return to its past state when you start it again.</p>
<p>My question is, is it pos... | java android | [1, 4] |
773,098 | 773,099 | Javascript AJAX call to Jquery Call | <p>In order to have my code written almost fully written in Jquery, I want to rewrite an AJAX call in Jquery.</p>
<p>It's a call from a webpage to a Tomcat servlet.</p>
<p>Similar code of my present situation:</p>
<pre><code>var http = new XMLhttpRequest();
var url = "http://example.com/MessageController?action=send... | javascript jquery | [3, 5] |
5,596,980 | 5,596,981 | ASP Login template custom drop down list | <p>I am using the standard authentication (using AD) with the <code>asp:login</code>.
I would like to add Dropdown List to the login template (elements would be retreived from the DB).
However if I just simply add: </p>
<pre><code><asp:DropDownList ID="ddlDomain" runat="server"/>
</code></pre>
<p>It is not ac... | c# asp.net | [0, 9] |
2,734,134 | 2,734,135 | Easy way to remove ghost text default value on submit | <p>The script code below makes ghost text </p>
<pre><code>$('.ghost-text').each(function(){
var d = $(this).val();
$(this).focus(function(){
if ($(this).val() == d){
$(this).val('').removeClass('ghost-text');
}
});
$(this).blur(function(){
if ($(this).val() == ''){
... | javascript jquery | [3, 5] |
5,681,746 | 5,681,747 | How To Pass a PHP Variable To Javascript | <pre><code><html>
<head>
<?php
$your_name=$_POST['name'];
?>
<script language="javascript">
function fash(at1,at2)
{
alert(at1+at2);
}
</script>
</head>
<body>
<?php
echo $your_name;
echo '<script language="javascript">fash("the key is: "+'<?php echo $your_name;... | php javascript | [2, 3] |
63,053 | 63,054 | Compare lists after one is dropped | <p>I working on a page in which I need to drag items from one list, drop them in a drop zone, then compare the order in which they were dropped with an answer key using a submit button. Basically a very simple drag and drop quiz. My problem is figuring out the best way to accomplish this. I know a small amount of JQuer... | php jquery | [2, 5] |
4,469,370 | 4,469,371 | need help understanding this code | <p>this code in book <a href="http://rads.stackoverflow.com/amzn/click/1935182323" rel="nofollow">jQuery in action</a> page 131</p>
<p>i don't understand </p>
<p><em><strong>.trigger('adjustName');</em></strong></p>
<p>what is adjustName</p>
<p>and Simple explanation for trigger()</p>
<p>thanks :)</p>
<pre><code>... | javascript jquery | [3, 5] |
643,200 | 643,201 | serializing session object in json string | <p>I built a strongly typed session object that looks like this:</p>
<pre><code>class MySession
{
public string UsedID {get;set;}
public List<int> ListOfInt {get;set;}
public List<string ListOfString {get;set;}
.....
}
</code></pre>
<p>I'm currently using InProc session so when a page loads, I write:... | c# asp.net | [0, 9] |
2,871,680 | 2,871,681 | create a CalendarView with my own properties | <p>hello I'm a beginner in android programming and I have a small problem with the CalendarView, I try to change the properties by changing the color of the numbers of days but it does not really change. Does anyone can help me please.</p>
| java android | [1, 4] |
742,369 | 742,370 | Good advice for coming to javascript (from Python) | <p>I am coming to JavaScript, from Python. </p>
<p>I want to write testable, modular JS code, and want advice on tools, best practices and the like. I know about:</p>
<ul>
<li><a href="http://www.jslint.com/" rel="nofollow">JSLint</a> (and the existence of <a href="http://javascript.crockford.com/" rel="nofollow">D... | javascript python | [3, 7] |
3,856,503 | 3,856,504 | Is there means for synchronizing data of my application and MS Outlook? | <p>I have been developing Android applicatiom which should get dates from MS Outlook calendar. I can't find information/tutorials about how I can do it using USB connection. Please, tell me, is there any means for my task? Is there any tutorials how can I do it programmatically? </p>
| java android | [1, 4] |
6,008,247 | 6,008,248 | JavaScript -- take a picture of a website | <p>On my website I want to load an image that is an exact picture of what you would see on your screen if you were scrolled to the top of a target website -- just a snapshot with no functionality behind it. So if I ran this code with an NY Times article an image of the article's page would be returned. How do I do th... | javascript jquery | [3, 5] |
3,623,530 | 3,623,531 | How to prevent execution of event handler? | <p>I wish to authenticate a user each time they click a button. If the user is logged out, and they attempt to click on a button, they are redirected home.</p>
<p>However the code after <code>validate()</code> is executes before the user is redirected home. In this example the popup always displays before the user i... | php javascript jquery | [2, 3, 5] |
2,863,103 | 2,863,104 | how to make my application support for all devices resolution | <p>I have develop an app which runs very well in my emulator and in my Samsung device. But when I test it in the Motorola emulator, which I have downloaded in my android SDK, it doesn't work. Can anyone help me out to figure this problem of supporting multiple devices?</p>
| java android | [1, 4] |
3,363,348 | 3,363,349 | Make first and last column not clickable | <p>I have a table being generated in an ASP.net web app. The table has 4 columns. Currently each cell of each row can be clicked to get more detailed info. However, I do not want the first and the last cell in each row to be clickable. How can I make it so that only the first second and third cell can be clicked?</p>
... | c# javascript asp.net | [0, 3, 9] |
3,379,328 | 3,379,329 | Is there a way to do a 'scoped' add() in jQuery? | <p>The main jQuery method takes a second optional argument to provide context for the search.
eg </p>
<pre><code>$(".setA", ancestorOfSetsA);
</code></pre>
<p>However, the jQuery <code>add()</code> method does not accept this context argument. What I am trying to accomplish is:</p>
<pre><code>$(".setA", ancestorOfSe... | javascript jquery | [3, 5] |
4,414,756 | 4,414,757 | ASP.NET Adding Javascript to page if page not secure | <p>I'm trying to add some share this javascript in between the head tags of an asp.net page but only if the page is not secure (!Request.IsSecureConnection). How do I get the code in the head tags to check for secure connection and then write the javascript if not secure. I've tried using <% %> blocks and RegisterSt... | asp.net javascript | [9, 3] |
4,009,035 | 4,009,036 | How to replace part of one text field with a value from another text field in jQuery? | <p>I am trying to use jQuery to update a URL (in a text field) dynamically based on the user typing a value in another field.</p>
<p>Here's what I've got so far: <a href="http://jsbin.com/isiqus/10/edit" rel="nofollow">http://jsbin.com/isiqus/10/edit</a></p>
<p>It works for the first trigger of the keyup event, but n... | javascript jquery | [3, 5] |
658,844 | 658,845 | Hide submit button after server validation | <p>I have found this online:</p>
<pre><code>function submitButtonClick(button) {
if (typeof (Page_ClientValidate) == 'function') {
if (Page_ClientValidate() == false) {
return false;
}
}
button.style.display = 'none'; // disable won't work
retur... | javascript asp.net | [3, 9] |
1,941,601 | 1,941,602 | How to get data from serverside from JavaScript in vs2010 | <p>I call another page with an id, which returns the data based on id. I need the result value in JavaScript.</p>
<p>Then I need to bind the result to current page content area and display it to the user.</p>
<p>Initially, the user clicks one link in current page, then the id of the link should be passed to another p... | c# javascript asp.net | [0, 3, 9] |
5,114,476 | 5,114,477 | onclick second click | <p>New to asp.net, I am having a problem on a website I am creating, I am using a master page to build my pages. I am trying to change the css class of a li tag using the onclick event in linkbuttons: </p>
<pre><code><asp:LinkButton runat="server" id="AboutButton" OnClick="about_click" PostBackUrl="about.aspx">... | c# asp.net | [0, 9] |
128,949 | 128,950 | How to include array content in HTML? | <p>I have this code</p>
<pre><code>var users = result.users; // array
$("#dialog:ui-dialog").dialog("destroy");
$("#dialog-confirm").dialog({
resizable: false,
height: 140,
modal: true,
open: function() {
$(this).children('div.dialog-text').replaceWith("<b>New text goes here</b>");
... | javascript jquery | [3, 5] |
5,809,438 | 5,809,439 | Is it possible to change form attr name dynamically? | <p>I have one form which it's dynamic depends on parameters. the form name attribute should be different for each dynamic built form. Is there a way how to change form name attribute?
or sufficient work around?</p>
<p>this way is not working or I'm missing something</p>
<pre><code><form action="get" name="oldname"... | javascript jquery | [3, 5] |
767,759 | 767,760 | Having problem with jQuery Countdown? Function serverSync: serverTime | <p>serverSync: serverTime Function return value from server but I have checked both server and client time both are same.When i called server to sync with server it will not display countdown. help me ?</p>
<pre><code> $(function() {
var shortly = new Date();
var newTime = new Date('April 9, 2010 20... | c# asp.net jquery | [0, 9, 5] |
615,595 | 615,596 | jquery get indexes of all items in a list from a select box | <p>I have a select box like:</p>
<pre><code><select name="blah" id="meh">
<option value="1">Car</option>
<option value="2">Horse</option>
<option value="3">Van</option>
</select>
</code></pre>
<p>I then have some Json like:</p>
<pre><code>[Object { id="1", label="Car"... | javascript jquery | [3, 5] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.