Unnamed: 0 int64 302 6.03M | Id int64 303 6.03M | Title stringlengths 12 149 | input stringlengths 25 3.08k | output stringclasses 181
values | Tag_Number stringclasses 181
values |
|---|---|---|---|---|---|
5,980,960 | 5,980,961 | c# where to place "using" for every page? | <p>If I have a </p>
<pre><code>using MyProject.language;
</code></pre>
<p>literary needs to place on every single page.</p>
<p>My question is, is there a place that I can place the "using" just once, for every page of the project.</p>
<p>Thanks.</p>
| c# asp.net | [0, 9] |
821,399 | 821,400 | jQuery attribute selector unrecognized expression error | <p>I'm using the following code to select the list item for current page from a navigation unordered list, but I keep getting an unrecognized expression error on <code>'a[href$="{server-relative URL}"]'</code></p>
<p>I've checked matching quotes/brackets that other questions mention, and the link will not contain char... | javascript jquery | [3, 5] |
5,815,243 | 5,815,244 | How can i pass checkbox data to Textarea using javascript | <p>This is my javascriptcode</p>
<pre><code>function AddContactPhoneNo()
{
$("input[name='contact_id[]']:checked").each(function(){
var opt_value = $(this).parent().parent().children('.contacts_firstname_01_contacts').text();
var opt = "<option value='" + opt_value + "'>" + opt_value + "&... | php javascript | [2, 3] |
3,909,116 | 3,909,117 | Asp.net Source Code Compare Software | <p>I want to compare two asp.net sources and find different could you introduce me a software inside or outside of visual studio ? </p>
| c# asp.net | [0, 9] |
2,998,542 | 2,998,543 | how to convert byteArray into bitmap image to show in an imageview in android? | <p>i have the following code for this purpose in my app but it do nothings and halts the application</p>
<pre><code>bmImage.setImageBitmap(BitmapFactory.decodeByteArray(byteImage2, 0, byteImage2.length));
</code></pre>
| java android | [1, 4] |
1,795,905 | 1,795,906 | Periodically check an element of a web page | <p>How to implement a web service that periodically checks if an element of a web page (say, <code><div id="contentlist"></code>) has changed; then if there is a change, send a notification to an email address?</p>
<p><strong>Update</strong></p>
<p>There is one issue. The web page is dynamically generated, so i... | php javascript | [2, 3] |
3,020,562 | 3,020,563 | Unable to get value of textarea | <p>Here is my code:</p>
<pre><code><script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
<div id="container">
<textarea name="message' id="myarea">This is it</textarea>
<br/>
<input type="button" id="savebutton" value="Go" /> <p id="fuck"></p>
</di... | javascript jquery | [3, 5] |
2,515,901 | 2,515,902 | Passing parameters to another domain website's page in javascript without opening it | <p>i am trying to develop a website in .net which will generate ads images. and i can place that images link in any website.then i want to track the no.of views and clicks on that image with the url and other information of the websites where i have placed the ads. now i want to integrate the javascript code to third p... | javascript asp.net | [3, 9] |
1,506,460 | 1,506,461 | I'm a beginner programmer , where to start? | <p>I have started learning programming for about 6 months , I used java , python and c.
but I'm confused a little bit , don't know where to start .
I'm sick of tutorials so I want to learn programming by building projects or to join a project where I can improve my programming skills .
I tried to use the OpenCV librar... | java python | [1, 7] |
4,883,065 | 4,883,066 | What technologies to use for Terminal-ish Text based RPG? | <p>I want to create an old school simplistic Text based RPG. No inventory, no fighting, just finding the right way through a dungeon.</p>
<p>There will be a describing paragraph about each "room" and there will be choices depending on the room. IE, If there's two doors, you can choose which to go through, or if there... | php javascript jquery | [2, 3, 5] |
3,761,481 | 3,761,482 | "Controller" to Master Page (C#/MVC 4) | <p>I will have a user's menu that is present in all pages of my application. This menu will contain some logic and data from database. My question is: the navigation menu is on my shared _Layout.cshtml and I need to apply some logic behind this. So, how can I do this? Can I create a "MasterPageController"?</p>
<p>Than... | c# asp.net | [0, 9] |
5,837,739 | 5,837,740 | key arrow navigation on ul li not on input form | <p>I would like to add arrow key navigation for ul li item on my page using jquery, however on the same page there is a form with input text. Problem is the input text also catch the key arrow event. How to go about so only the ul li container catch these event, not others. Thanks in advance.</p>
| javascript jquery | [3, 5] |
5,404,051 | 5,404,052 | remove rows of a table except the first 2 | <p>How can i do that?</p>
<p>thanks</p>
| c# asp.net | [0, 9] |
5,979,729 | 5,979,730 | one button two actions | <p>i want to submit data from one button in the databse and the same button should export
the CSV of the databse, i tried but it doesn't work only dat is being sent
i have two buttons </p>
<pre><code><div class="mws-form-item large">
<input type="submit" class="button" name="submit1" value="Generate Serials"... | php javascript jquery | [2, 3, 5] |
5,769,294 | 5,769,295 | Multiple autosuggest fields, filters depending on previous results | <p>I'm trying to figure out a method to see if it is possible to have one text field value (the result of a mysql query of an autosuggest field) be used as a filter for another mysql query for another autosuggest field. As in first field autosuggests a country, and the second field would autosuggest a city based in tha... | php javascript | [2, 3] |
1,452,900 | 1,452,901 | allow only .25, .50 and .75 in a text box | <p>I am working on a web application and using javascript to restrict or round off a value. Whenever I enter any decimal value in a textbox, it should be rounded off to .25, .50, .75, or .00. any idea how to do that? Even if am able to enter only .25, .50, .75 and .00 is also fine... but how to restrict for only these ... | javascript jquery | [3, 5] |
2,340,899 | 2,340,900 | How to add my custom View to layout in xml? | <p>There is the following xml:</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<com.ulnda.calendarappl... | java android | [1, 4] |
5,773,985 | 5,773,986 | sorting xml in javascript/jquery | <p>I was trying to sort some xml with jquery, but this code doesn't affect the actual xml or not returning a sorted result.</p>
<p>Anything wrong with this code?</p>
<pre><code>$(xml).find('Tag').get().sort(function(a, b) {
return $(a).find('Name').text() < $(b).find('Name').text() ? -1 : 1;
});
</code></pre>
| javascript jquery | [3, 5] |
5,581,924 | 5,581,925 | How to get a server-side variable into JavaScript | <p>I want to pass a value to this JavaScript from the database (using datareader in asp.net(C#)).</p>
<p>The script is from <a href="http://www.dynamicdrive.com/dynamicindex14/leftrightslide.htm" rel="nofollow">http://www.dynamicdrive.com/dynamicindex14/leftrightslide.htm</a></p>
<p>I need to set a pass value in the ... | asp.net javascript | [9, 3] |
1,438,159 | 1,438,160 | Sitemap node link not working? | <p>Not sure why, but this is how the sitemap is setup (top portion of it for brevity). All of the child links work fine, but the main one (default.aspx) doesn't do anything when clicked on. Hovering shows the proper link however.</p>
<pre><code> <siteMapNode url="~/" title="MainTitle">
<siteMapNode ur... | c# asp.net | [0, 9] |
298,487 | 298,488 | Whats wrong with my site's code? | <p>I may be a bit burned out, but is there something wrong with where I put the code on my site?</p>
<p>Live on my site, not working at all
<a href="http://japaneselanguagefriend.com/apptest.html" rel="nofollow">http://japaneselanguagefriend.com/apptest.html</a></p>
<p>Here it is on JSfiddle working just fine.
<a hr... | javascript jquery | [3, 5] |
164,294 | 164,295 | How can I view an object with an alert() | <p>I tried to do a debug but I am having problems. Now I try with <code>alert()</code>. For example I want to see the value of:</p>
<pre><code>var product = { ProductName: $('!Answer_Response[0]').val(),
UnitPrice: $('#Price').val(),
Stock: $('#Stock').val()
};
</code>... | javascript jquery | [3, 5] |
2,714,111 | 2,714,112 | Detecting if a listener has be registered | <p>how can i detect if a new listener has been registered for any widget in my android app. Is there a place where i can intercept the listener when its being registered ?</p>
| java android | [1, 4] |
1,700,630 | 1,700,631 | jQuery append not completing before next statement? | <p>I have a survey-type form that's being populated from a web database on the client. I can populate the questions fine, but then I try to go through and trigger the click event where there is an existing answer (edit scenario), I'm finding that the new elements are not yet in the DOM so this doesn't work. Here's th... | javascript jquery | [3, 5] |
239,472 | 239,473 | Design pattern to support last-in callbacks (e.g. handling hashchange) | <p>On my web page, I have multiple independent plug-ins (for lack of a better word) that all interact with the <code>location.hash</code> of the browser. (I have a bit of code that keeps their work separated, but that's irrelevant to this question.) For example, I have:</p>
<pre><code>// file1.js
$(window).bind('hashc... | javascript jquery | [3, 5] |
2,005,432 | 2,005,433 | clear interval if criteria not met | <p>In a nut shell, I need to clear an interval for a function called <code>newsCheck</code> if the users not on the home page. Seems simple enough, i thought so too. This is causing me huge problems. I use a history api which is why the interval would not clear on page reloads and changes.</p>
<p>Here's what I have wi... | javascript jquery | [3, 5] |
1,229,854 | 1,229,855 | null is null or not an object javascript error | <p>I have a div which has flash(Open flash chart) inside it . When I try to remove child divs with <code>$("#mydiv").children().remove()</code> it shows a javascript error in IE 8:</p>
<blockquote>
<p>null is null or not an object javascript error</p>
</blockquote>
<p>If the same div when there is no flash works f... | javascript jquery | [3, 5] |
5,940,484 | 5,940,485 | How do I create an object in TimerTask in Android? | <p>I'm trying to make the canvas draw some pictures in a fixed period of time. It's like an item showing on the screen and it disappears after 5 seconds. Then after another 3 seconds, a new item is drawn and last for another 5 seconds.
I used Timer and TimerTask as below</p>
<pre><code> public class PowerUpMaking e... | java android | [1, 4] |
2,917,036 | 2,917,037 | Trouble with .attr('title') | <p>I am trying to retrieve the title attribute and replace the current paragraph text with it. Everything else about my script is working perfectly. The title attribute is coming back as "undefined". I am new to javascript and I have looked all over for answers... nothing that I am seeing so far. </p>
<p><strong>JS:</... | javascript jquery | [3, 5] |
2,861,302 | 2,861,303 | javascript: how to loop through date object | <p>I'm not sure how to ask this, but is there a way to get the current local full year and then create a loop to get the last 18 years and print them to the screen?</p>
<p>Here is what I've tried...</p>
<pre><code>function allYears(){
var d = new Date();
var y = d.getFullYear();
var years = '';
for(var i=0; i... | javascript jquery | [3, 5] |
648,729 | 648,730 | Android using data out of datepicker | <p>Im trying to get the Day / Month / Year from my datepicker. I have the problem that the Month en the day never is correct. I give you the code below. The month is correct but it fails when the month is december. The day is never correct.</p>
<pre><code> public class myOnDateChangedListener implements OnDateChang... | java android | [1, 4] |
5,151,517 | 5,151,518 | Hide/show a icon depending upon the location.search? | <p>Let us say i have a page <a href="http://www.abc.com/xyz.html" rel="nofollow">http://www.abc.com/xyz.html</a> and i am going to access this page in two ways</p>
<ol>
<li>simple as it is </li>
<li>I will append some stuff to the url e.g. <a href="http://www.abc.com/xyz.html?nohome" rel="nofollow">http://www.abc.com/... | javascript jquery | [3, 5] |
4,331,245 | 4,331,246 | Get image size using JQuery/ javascript | <p>please tell me how to get image size of all images in the page using jquery or javascript</p>
| javascript jquery | [3, 5] |
1,298,890 | 1,298,891 | How to upload files to ftp using asp.net and C#? | <p>I tried to upload image through ftp using asp.net & c# but it doesn't work.
Please guide me to solve the issue asap.</p>
<pre><code>try
{
//host name
//string ftphost = "fubar.walnut.com";
string ftphost = "fubar.walnut.com";
//file path
... | c# asp.net | [0, 9] |
4,629,626 | 4,629,627 | How to enable javascript in asp.net webforms | <p>i am trying to use javascript events in asp.net webforms. but events for input controls like textfield, such as onClick, onFocus,onBlur, dont appear. do i need to change my directive:</p>
<pre><code><%@ Page Title="" Language="C#" MasterPageFile="~/YourGuruMaster.master" AutoEventWireup="true" CodeFile="AskQuest... | c# javascript asp.net | [0, 3, 9] |
3,643,508 | 3,643,509 | javascript: how to judge a function name exists? | <p>Is it possible to judge if a function names exists before calling it?</p>
| javascript jquery | [3, 5] |
1,930,957 | 1,930,958 | Stop executing JavaScript | <p>I have:</p>
<pre><code>$('body').data('data1', '<script type="text/javascript">console.debug('execute');</script><div>example</div>');
</code></pre>
<p>and:</p>
<pre><code><div id="content"></div>
</code></pre>
<p>when I do:</p>
<pre><code>$(document).ready(function () {
... | javascript jquery | [3, 5] |
2,630,119 | 2,630,120 | Possible defect with jQuery ':checked' selector (finding checked checkbox when there are none) | <p>Found a strange thing. The following code is supposed to set a default value for a UI element based on whether one of a group of checkboxes (all having attribute name="privacy") is checked (in say, a form postback). If there is no value in the HTML sent by the server (the form is not a postback), the default value s... | javascript jquery | [3, 5] |
2,858,160 | 2,858,161 | what is sprintf in c#? | <p>what does this c++ code look like in c#?</p>
<pre><code> sprintf(ff, "\\\\.\\%s", device);
</code></pre>
| c# c++ | [0, 6] |
3,510,637 | 3,510,638 | Can I make the force open select in save/download dialog box? | <p>I use ASP.NET and C# to create file content from binary value</p>
<pre><code>FileStruct currentFile = null;
File file = new File();
currentFile = file.GetFile(FileID, strTableCode);
Response.ContentType = currentFile.ContentType;
Response.OutputStream.Write(currentFile.FileContent, 0, currentFile.FileContent.Leng... | c# asp.net | [0, 9] |
5,917,966 | 5,917,967 | Custom Query Dynamic Data Application | <p>I am trying to use a Dynamic Data Application and having issues with customizing a query. Everything scaffolds wonderfully, however, I want to be able color code the main Parent table when a Child Objects Property is a certain value. Normally I would just iterate over the data using LINQ however, all the information... | c# asp.net | [0, 9] |
5,622,027 | 5,622,028 | How to set focus on a view when a layout is created and displayed? | <p>Currently, I have a layout which contains a Button, a TextView and an EditText. When the layout is displayed, the focus will be automatically put on the EditText, which will trigger the keyboard to show up on Android phone. It is not what I want. Is there any way that I can set the focus on TextView or on nothing wh... | java android | [1, 4] |
4,088,587 | 4,088,588 | disabled control being reenabled but still not posting back contents to server | <p>I have a couple of radio buttons that are controlling text entry into a textarea.</p>
<pre><code><tr id="trTextNote" runat="server">
<td colSpan="2"></td>
<td class="IndentedCell" noWrap colSpan="2">
<asp:textbox id="txtIncludeNote" runat="server" Width="352px" Height="46px" T... | javascript asp.net jquery | [3, 9, 5] |
3,546,238 | 3,546,239 | How can I determine if a string only contains spaces, using javascript? | <p>How can I determine if an input string only contains spaces, using javascript?</p>
| javascript jquery | [3, 5] |
3,043,465 | 3,043,466 | how to decode url param with c# | <p>how to decode url param to string with c#, e.g. my.aspx?val=%2Fxyz2F</p>
| c# asp.net | [0, 9] |
4,989,715 | 4,989,716 | null reference with and if statement c# | <p>I am just want to check for empty text boxes and change the text the boxes if they are null in RowEditing event. I just can't figure this out. Of course the some of the boxes will be empty when the Grid is populated. The other question is am I placing this in the right event? </p>
<p>Here is the row editing event :... | c# asp.net | [0, 9] |
1,650,672 | 1,650,673 | How can I browse the local network from a web client using C#? | <p>Our web client needs a way to browse the local network and select location for file storage. This will then be returned to the webpage as a UNC name.</p>
<p>On a native client this easily accomplished by using Shell32 functions.</p>
<p>I've looked at ASP FileUpload, but that returns the file vs. a specific direct... | c# javascript | [0, 3] |
1,965,475 | 1,965,476 | Should we refer to objects by their interfaces in Android platform | <p>I use to the advice given by Joshua Bloch's Effective Java, <code>Item 52: Refer to objects by their interfaces</code>.</p>
<p>However, in most of the sample code comes with Android, I realize the following code is quite common.</p>
<pre><code>private ArrayList<Integer> mPhotos = new ArrayList<Integer>... | java android | [1, 4] |
2,300,686 | 2,300,687 | Which one is better approach window.parent.location.href or window.top.location | <p>I am working in a project where I have to redirect on Error Page in a particular scenario. For that I have created Error.aspx page. Right now I am using
window.top.location.href = "../Error.aspx" and it generate <a href="http://localhost/app_web/Error.aspx" rel="nofollow">http://localhost/app_web/Error.aspx</a>
and... | javascript jquery | [3, 5] |
2,424,231 | 2,424,232 | Gridview itemTemplate control enable/disable using jQuery | <p>here is my code in asp.net... when it renders the code i have a <code>[checkbox]</code> with <code>[dropdownlist]</code> by default all the dropdownlist disabled when the page loads by doing like this:</p>
<pre><code>var $ddls = $('select');
$ddls.prop("disabled", true);
</code></pre>
<p><strong>my question</stro... | jquery asp.net | [5, 9] |
3,599,109 | 3,599,110 | the 'username' does not exist in the current context | <p>I am making a Login Page with ASP.Net using C#... and i have put my html code in <strong>Login.aspx</strong> page . that contains a textbox named username but when I give reference of my textbox in Login.aspx.cs to make the validations on this text box ... as </p>
<pre><code>if(string.IsNullOrEmpty(username.Text))
... | c# asp.net | [0, 9] |
5,903,130 | 5,903,131 | id for each element showing undefined or 0 not being assigning different id's | <p>I'm trying to assign a id to each link in my list like this,</p>
<pre><code>for (var j = start; j < stop; j++) {
link = linkBase + json[j].relatedItemId;
$('#citations').append('<li><a href="' + link + '" id="num" + j>' +
json[j].title + '</a></li>');
alert($('... | javascript jquery | [3, 5] |
3,636,924 | 3,636,925 | Is there a way to shorten this code? | <p>Is there a shorter way (cleaner way really) to do the following code of mine?</p>
<pre><code>if (whichToCheck == 1) {
if ($('#input_3').val().length) {
$('#error1').css('display', 'none');
$('#error1').css('visibility', 'hidden');
hasErrors = false;
} else {
$('#error1').css(... | javascript jquery | [3, 5] |
1,912,534 | 1,912,535 | Add control/event dynamically doesn't work | <p>Any help would be appreciated --</p>
<p>here is my aspx code -</p>
<pre><code><div id="div_Detail" class="div_det" runat="server" />
</code></pre>
<p>and in my code behind -</p>
<pre><code>protected void Page_Load(object sender, EventArgs e) {
LoadDetail();
}
private void LoadDetail() {
HtmlTable tb... | c# asp.net | [0, 9] |
2,096,343 | 2,096,344 | How to make the image bounce from all the sides of the emulator screen | <pre><code> public class GraphicsView extends View implements OnTouchListener{...}
public void onDraw(Canvas canvas){
Paint pint = new Paint();
pint.setColor(Color.BLUE);
pint.setStrokeWidth(5);
canvas.drawBitmap(pic,an.getX2(),an.getY2(),null);
//ca... | java android | [1, 4] |
1,806,309 | 1,806,310 | Get Checkbox Value Using jQuery | <p>I want to display an error message or success message depending whether a textbox value is empty or has a value.</p>
| javascript jquery | [3, 5] |
1,810,922 | 1,810,923 | java.lang.outofmemoryerror on create bitmap | <p>I receive big image (png, >30Mb) and create bitmap for it. And get java.lang.OutOfMemoryError. I try to catch such exception:</p>
<pre><code>try {
Bitmap bmp = BitmapFactory.decodeStream(someStream);
} catch (OutOfMemoryError e) {
;
}
</code></pre>
<p>With 2.2 SDK it works well. But with 2.3 app fails with... | java android | [1, 4] |
590,131 | 590,132 | Select all elements except a div and its contents | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/1467226/jquery-target-all-except">jQuery: Target all except ___?</a> </p>
</blockquote>
<p>I've got a script that detects clicks on every element on the page. I'd like that to run on everything except a specific... | javascript jquery | [3, 5] |
989,125 | 989,126 | call c++ function from javascript function | <p>I am developing a IE plugin using ATL/COM using C++ in VS10.
I successfully inserted JavaScript code in page.
My Script runs on click event. It works fine.
Now, I want when the method in javascript called(on click), I want it
call C++ function passing argument.</p>
<p>Thanks in advance.</p>
| javascript c++ | [3, 6] |
1,544,615 | 1,544,616 | How to get current time for different time server in java? | <p>i have three time server,time-nw.nist.gov, time1.ucla.edu ,time.ien.it
now how can i get current time for all this server in java/android?</p>
| java android | [1, 4] |
4,614,668 | 4,614,669 | JQuery click event not working correctly after class change | <p>I have JQuery script similar to this:</p>
<pre><code>$('.follow_link').click(function(){
// Do some stuff
$(this).removeClass();
$(this).addClass("unfollow_link");
});
$('.unfollow_link').click(function(){
// Do some stuff
$(this).removeClass();
$(this).addClass("follow_link");
});
</code></pre>
<p>My... | javascript jquery | [3, 5] |
4,005,568 | 4,005,569 | How to get UL's if child attribute using jquery? | <p>i want to know how to get Unorderedlist's first child className. I know the UL's ID. How can i find it with jQuery?</p>
<p>Thanks in Advance!!</p>
| javascript jquery | [3, 5] |
5,779,477 | 5,779,478 | How to change WebView Height? | <p>I load in WebView some table from res.
These tables have a different size.
How do I change the size of the height of the WebView content?</p>
<p>I tried:</p>
<pre><code>LayoutParams params = new LayoutParams(LayoutParams.WRAP_CONTENT,
LayoutParams.WRAP_CONTENT);
... | java android | [1, 4] |
2,198,433 | 2,198,434 | Panel set to hidden and then visible loses textbox values | <p>I hope I can explain this properly.</p>
<p>I have a grid that is part of our 3rd party shopping cart software. This grid has a row of quantity text boxes into which the customer enters how many of each thing they want to buy.</p>
<p>I put this grid inside a panel so I can set it on or off with</p>
<pre><code>myP... | c# asp.net | [0, 9] |
5,637,363 | 5,637,364 | Webview - spaces in IMG SRC | <p>I have a ton of HTML files that have roughly 1000 images combined. Most have spaces in their names.</p>
<p>I am loading these HTML files with </p>
<pre><code>webView.loadDataWithBaseURL(url, data, "text/html", "UTF-8", null);
</code></pre>
<p>Also, the "Src" attribute is prepended with</p>
<pre><code>file:///an... | java android | [1, 4] |
2,062,867 | 2,062,868 | '$' is undefined javascript error | <pre><code><script type="text/javascript">
$(function() {
$('#WaterMark').draggable(
{
start: function(e, ui) {
},
cursor: 'move',
zIndex: 2700,
revert: 'invalid'... | jquery asp.net | [5, 9] |
46,219 | 46,220 | Detect which dropdown selected and return its value and ID | <p>I have few drop-down boxes. Is there any way to detect which dropdown was changed using jquery ?</p>
<pre><code><form id="products">
<select id="Ram">
<option value="0">4 GB</option>
<option value="1">8 GB</option>
</select>
<select id="Hdd">
<option v... | php javascript jquery | [2, 3, 5] |
1,071,847 | 1,071,848 | How to acces a flag set in sql server into business logic | <pre><code>public int InsertCompanyDetailsInformation(int companyId, int bankId, int accountNo, string accountType)
{
int rowsAffected = -1;
int returnValue;
try
{
SqlConnection con = DBProvider.GetDbConnection();
using (con)
... | c# asp.net | [0, 9] |
3,595,163 | 3,595,164 | Mismatch data within intents | <p>I have an issue with mismatch data between putting data to intent and reading it.
In my service I'm creating notification and adding parameters to the intent.
When i see the notification the paramters is ok. But when I open the notification the parameters act wired. I get true parameters in my system but no the once... | java android | [1, 4] |
2,677,117 | 2,677,118 | Executing Java programs through Python | <p>How do I do this?</p>
| java python | [1, 7] |
2,966,872 | 2,966,873 | What will decode "email%2540yahoo.com" value in PHP? | <p>My variable with javascript looks like this:</p>
<pre><code>var email = encodeURIComponent($('input[name=\'email\']').val())
</code></pre>
<p><code>email</code> is clearly being encoded and is producing this when sent to server: <code>email%2540yahoo.com</code></p>
<p>What function in PHP will decode this value p... | php javascript | [2, 3] |
16,648 | 16,649 | translation did not work with ajax poupup extender | <p>I had translation solution in my website and I added code to translate datalist headers to arabic language this in dealer list page, also I added popup extender that ask user to register to see the dealer list data, If user put username and password the datalist worked well and headers translated well, but when user... | c# asp.net | [0, 9] |
971,477 | 971,478 | JQuery/javascript how do I get the ID of an object? | <pre><code>function cat() {
this.getMyID = function() { alert(this.id); } ;
}
var bob = new cat();
// I want it to say 'bob'
bob.getMyID();
</code></pre>
<p><a href="http://jsfiddle.net/n7eHj/" rel="nofollow">http://jsfiddle.net/n7eHj/</a></p>
<p>alerts undefined, any ideas?</p>
<p>I'll elaborate, this is w... | javascript jquery | [3, 5] |
1,872,862 | 1,872,863 | Check anchor tags color | <p>If I have anchor tags as follows:</p>
<pre><code><a href="link1.html" class="none_standard_links">link one</a><br />
<a href="link2.html" class="none_standard_links">link two</a><br />
<a href="link3.html" class="none_standard_links">link three</a><br />
<a h... | javascript jquery | [3, 5] |
4,131,999 | 4,132,000 | How can I notify my application that one file was deleted from the SDCard (Android)? | <p>I am saving a few songs in a playlist (in my application database). When a particular song is deleted from the SDCard which already exists in the playlist, how can I reflect the changes in my database?</p>
| java android | [1, 4] |
1,038,173 | 1,038,174 | Dynamically change the HTML <img> src attribute using Java Script or JQuery | <p>I need to change the html img src value dynamically from the value from hidden text field using Jquery or Java script.</p>
<pre><code><p><img id="yui_img" height="333" width="345"></p>
function onImgChange()
{
document.getElementById('yui_img').src=document.getElementById('addProductLinksCreateF... | javascript jquery | [3, 5] |
3,862,622 | 3,862,623 | javascript find value from array based on associative array key value | <p>I have an associative array:</p>
<pre><code>var array1 = {
a1: {
id: "box1",
title: "box 1"
},
a2: {
id: "box2",
title: "box 2"
},
a3: {
id: "box3",
title: "box 3"
}
};
</code></pre>
<p>I then have another array which has references to the fir... | javascript jquery | [3, 5] |
5,285,214 | 5,285,215 | Get value from GridView when a button is clicked | <p>I have a GridView , and the GridView has an item template. Now I need to get the value of the first cell which contains the value I need but I have tried the following and does not work, it eturns a ""</p>
<pre><code> int id = Convert.ToInt32(GridView.Rows[index].Cells[0].Text);
</code></pre>
<p>Here is the code I... | c# asp.net | [0, 9] |
5,070,203 | 5,070,204 | Editing globals inside of a jquery request | <p>I'm using JQUERY to parse a XML file, while at it, I'm writing into multipple arrays. Now my big troubles is to pass the results of the arrays outside the script.</p>
<pre><code><script type="text/javascript">
//....
var ProjectList = new Array();
var N = 0;
var ID = [];
var A = [];
$.get("urlaub.xml", fun... | javascript jquery | [3, 5] |
5,696,471 | 5,696,472 | How to send bufferedImage from JAVA to PHP | <p>I am kinda noob with JAVA. Here's my problem :</p>
<p>I am trying to take a screenshot of my JAVA application and send it to a PHP page.
With the code i Have, The img file of the screenshot is created by the PHP but when you open it it's all black minus a small line of gibberish white/black;</p>
<p>Did i miss some... | java php | [1, 2] |
3,589,713 | 3,589,714 | How to find the elapsed time between send and receive data? | <p>I am using the System.Timers.Timer class. And I enable when I send a message and disable when I receive the message. How do I calculate how much time has elapsed. I have set the interval as 1 sec </p>
<p>Basically I retransmit data after 1000 sec again if I do not recive an ACK. I retransmit 5 times max until I ge... | c# asp.net | [0, 9] |
1,078,332 | 1,078,333 | Using FontSelector to change font family | <p>I am using jQuery font selector plugin posted here</p>
<p><a href="http://www.fullfatcode.com/2011/04/10/jquery-font-selector-version-2/" rel="nofollow">http://www.fullfatcode.com/2011/04/10/jquery-font-selector-version-2/</a></p>
<p>It's all good, except, I want to do something when the actual font is selected. A... | javascript jquery | [3, 5] |
5,293,759 | 5,293,760 | socket Exception..Bad file number | <p>I have made an client server programe(Socket connection) to transfer images in android,when client connect to server socket than it write image bytes to client output stream,whent i read<br>
client input stream and convert input stream to bitmap,it returns null or skia decoder return null,when i check bytes are rece... | java android | [1, 4] |
1,365,875 | 1,365,876 | How to assign null value to Hidden variable in javascript? | <p>I have a hidden input variable called str.</p>
<p>I am assigning "abc" value to it.</p>
<p>Then I try to assign null value or let's say null reference to it. But I couldn't.</p>
<p><strong>Edit</strong></p>
<p>part of code.</p>
<p>Hidden Field...</p>
<pre><code><input id="str" name="str" type="hidden" value... | javascript jquery | [3, 5] |
955,916 | 955,917 | Fetching javascript output using php | <p>For example i have this code in js.php</p>
<pre><code><script type="text/javascript">
document.write(Math.random());
</script>
</code></pre>
<p>This gives output the random number, forexample: <code>0.123123123123</code></p>
<p>Now, I have fetch.php
I tried this code:</p>
<pre><code><?
echo file_... | php javascript | [2, 3] |
3,012,435 | 3,012,436 | Moving a Div to the Y position of a hovered Div (JQuery) | <p>My question is simple..</p>
<p>I have a grid of images on the left, and on the right, I have a "slider box".</p>
<p>When I hover over an image on the grid, I want the slider box to move to the Y position of the image I've hovered over, so they line up horizontally. What would be the best way to achieve this?</p>
| javascript jquery | [3, 5] |
3,963,957 | 3,963,958 | how to get 1 hidden field among several within div | <p>i have 3 hidden fields in 1 div. when I have reference to this div, how to get 1 of the hidden fields in this div.</p>
| javascript jquery | [3, 5] |
5,007,839 | 5,007,840 | Combine jQuery object with new selector | <p>How would you do a similar function as rsplak's answer here <a href="http://stackoverflow.com/a/7079032/1330629">http://stackoverflow.com/a/7079032/1330629</a> but include a defined variable in this? For example, I have a variable defined so that I'm not querying the DOM repeatedly, such as: <code>var $StartDateTime... | javascript jquery | [3, 5] |
4,145,316 | 4,145,317 | Best way to control page titles on a large website in ASP.NET | <p>We have a fairly large website with several master pages. Right now the titles are being controlled by Session variables in individual pages and set by the master page. The code is bad and needs to be redone. With the current system, since the master page is executed last, we can't completely overwrite the page t... | c# asp.net | [0, 9] |
3,163,884 | 3,163,885 | What is the best way to remove/skip an item from collection | <p>what is the best way to remove/skip an item from collection object</p>
<pre><code>List<Person> personList = new List<Person>()
personList = dao.GetData(123);
personList = personList.Select(x => x.Comment... ????
</code></pre>
<p>resultset:</p>
<pre><code>"GCE"
Not available
"" //... | c# asp.net | [0, 9] |
2,989,456 | 2,989,457 | Update contents of a comment thread without disturbing 'add comment' | <p>how do i refresh the contents of a div 'comment thread' without disturbing users input on the text field.Like in <code>Facebook</code> comment section ? I am using <code>Php</code>, <code>Jquery</code>, <code>Javascript</code>.</p>
<pre><code>var auto_refresh = setInterval(
function autorefresh()
{
... | php javascript jquery | [2, 3, 5] |
3,911,683 | 3,911,684 | $(window).scroll not accurate, when scrolling fast | <p>I'm trying to manipulate element's position, so between certain page scroll position, his css is changed.
Take a look at this simple example: <a href="http://jsfiddle.net/6RtTX/8/" rel="nofollow">http://jsfiddle.net/6RtTX/8/</a></p>
<p>The problem is - <code>$(window).scroll</code> is not so accurate, so if i scrol... | javascript jquery | [3, 5] |
4,074,971 | 4,074,972 | How do I from a JSON object convert to form of elements? | <p>I have a JSON object as <code>{a: 1, b: 2, c: [4, 5, 6], d: {x: 7, y: 8, z: [9, 0]}}</code>, how do I convert it to a form of elements?</p>
<p>I want to convert to this:</p>
<pre><code><input type="hidden" name="obj[a]" value="1"/>
<input type="hidden" name="obj[b]" value="2"/>
<input type="hidden" ... | javascript jquery | [3, 5] |
2,200,651 | 2,200,652 | JQuery inline dialog | <p>Is there an easy way to convert a standart popup dialog into an inline dialog?</p>
| javascript jquery | [3, 5] |
1,627,385 | 1,627,386 | Selecting radiobuttons populated within asp.net RadioButtonList with jQuery | <p>Hello and thanks in advance for the communal help I always find here. I have been tinkering around with what should seem a pretty straight forward task even for a jQuery newb as myself.
I have a radiobuttonlist control bound to a collection:</p>
<pre><code><asp:RadioButtonList ID="radBtnLstPackageSelector" runat... | asp.net jquery | [9, 5] |
2,496,761 | 2,496,762 | Going from PHP to C/C++ & Java & beyond | <p>I've been a LAMP developer for 5+ years. I have learned quite a bit on my own, but I feel like my "context" as a software developer is limited (ie. I can only create scripts & web applications). Ultimately I'd like to be able to create a range of applications from daemons to desktop apps. Additionally I'd like t... | java php c++ | [1, 2, 6] |
3,810,862 | 3,810,863 | Safari doesn't notice site change/back button doesn't change page | <p>I have a Drupal website which also has a mobile section. I even tried linking the back button to a whole new website and it still doesn't do what it should. I'm sure the code is correct though:</p>
<pre><code><a id="backButton" class="button" href="http://www.stackoverflow.com"></a>
</code></pre>
<p>Do... | php javascript | [2, 3] |
2,132,167 | 2,132,168 | How to use an int from another class? | <p>Im trying to use an integer, that Im using in one class and also use the SAME int in a different class.
I forgot, what do I have to do for that?</p>
<p>static? implements? extends? what?</p>
<p>Best regards,</p>
<p>For simplicity:</p>
<pre><code> public class ETBetaActivity extends Activity implements View.... | java android | [1, 4] |
2,573,312 | 2,573,313 | How to remove an element slowly with jQuery? | <p><code>$target.remove()</code> can remove the element,but now I want the process to be down with some feel animation,how to do it?</p>
| javascript jquery | [3, 5] |
5,318,519 | 5,318,520 | Get the upload progress | <p>My upload method as below:</p>
<pre><code>private void upload(String Server, String FilePath, String SavePath, String NewName) {
String end = "\r\n";
String twoHyphens = "--";
String boundary = "*****";
try {
URL url = new URL(ActionUrl);
HttpURLConnection con = (HttpURLConnection) url.openConnection();
con.setDoIn... | java android | [1, 4] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.