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,824,105 | 4,824,106 | how to send parameters with file in android | <p>I am uploading image in android. Currently my code only uploads file but I also want to send some parameter. I am trying following</p>
<pre><code>FileInputStream fileInputStream = new FileInputStream(sourceFile);
URL url = new URL(upLoadServerUri);
conn = (HttpURLConnection) url.openConnection(); //... | java php android | [1, 2, 4] |
2,638,220 | 2,638,221 | Deleting Gridview rows using Javascript | <p>I have a javascript function to clear my form which includes a gridview, I previously tried another way to delete the rows without postback but somehow when I tried to add a new row, all the previous bounce back. Maybe I am using viewstate to maintain my gridview, not too sure but below is what I am doing which work... | javascript asp.net | [3, 9] |
358,658 | 358,659 | confirmation box before closing page | <p>Is it possible to have a confirmation box before closing the page and not on every page load or navigating away but the confirmation box will just appear when the user closes the window?</p>
| javascript jquery | [3, 5] |
458,707 | 458,708 | jquery: $(window).scrollTop() but no $(window).scrollBottom() | <p>I want to place an element to the bottom of the page whenever the user scrolls the page. It's like "fixed position" but I can't use "position: fixed" css as many of my clients' browser can't support that.</p>
<p>I noticed jquery can get current viewport's top position, but how can I get the bottom of the scroll vie... | javascript jquery | [3, 5] |
2,860,076 | 2,860,077 | How do I run a python file that is read into a std::string using PyRun | <p>I am embedding Python into my C++ program, and have used PyRun_SimpleString quite effectively but now am having trouble.</p>
<p>What I have done is loaded a python.py file a std::string but am now having troubles running it. PyRun_SimpleFileEx didn't seem to do the trick either so some help would be great!</p>
<pr... | c++ python | [6, 7] |
745,877 | 745,878 | Pass a value from one page to another use button or link and code? | <p>In asp.net, C#, I actually want 3 conditions on a particular click to delete a record:
1. Ask for confirmation
2. Redirect to another page
3. Pass the id of the record to be deleted internally(not present in any text field or anything) to the next page whose record has to be deleted</p>
<p>If i use a link i an fulf... | c# asp.net | [0, 9] |
3,683,454 | 3,683,455 | Javascript URL Location | <p>I want to check to see if part of my url location have this in it:
?TEST=NEWJERSEY</p>
<p>How do i write that?</p>
| javascript jquery | [3, 5] |
5,520,786 | 5,520,787 | How to determine Browser type from Server side using ASP.NET & C#? | <p>I want to determine the browser type in code-behine file using C# on ASP.NET page.</p>
<p>If it is IE 6.0, I have to execute certail lines of code.</p>
<p>Can anybody provide code sample.</p>
<p>Appreciate your help.</p>
<p>Thanks</p>
| c# asp.net | [0, 9] |
3,536,690 | 3,536,691 | how to set a style to a linkbutton in grid as deletebutton for enable and disable effects | <p>I have a linkbutton in grid as a deletecolumn. I disable it when a user doesn't have permission to delete records, but when the button is disabled or enabled its appearance is the same. I need to set a style to change it's appearance when it's enable state is changed. Here is my code:</p>
<pre><code> LinkButton lbD... | c# asp.net | [0, 9] |
5,949,906 | 5,949,907 | Unable to debug a ResourceNotFoundException | <p>I'm having a little trouble trying to debug a <code>Resources$NotFoundException</code>. I'm trying to add items from an enum to a <code>AlertDialog</code> dynamically:</p>
<p>Here's the code from my <code>Activity</code>:</p>
<pre><code>final ArrayList<CharSequence> lstChoices = new ArrayList<CharSequence... | java android | [1, 4] |
276,628 | 276,629 | In JQuery how do I get the DIV that the mouseover/mouseenter came from? | <p>I need to get the div that the mouse was previously on before it entered the element.</p>
<p>How do I get this in JQuery?</p>
| javascript jquery | [3, 5] |
3,883,969 | 3,883,970 | javax authentication failed | <p>I am trying out an email app on android.I take the username and password first<br>
then on the next activity i take the recipiend address subject and msg and send the email.
I get the error <strong>JavaX authentication failure</strong>.Here is my Mail authentication and sending code.OnClick function of the send butt... | java android | [1, 4] |
4,596,744 | 4,596,745 | How to adjust 3 ImageViews in a LinearLayout | <p>I defined a LinearLayout:</p>
<pre><code><LinearLayout
android:id="@+id/top_menu"
android:layout_width="fill_parent"
android:orientation="horizontal"
android:background="@drawable/backrepeat"
android:layout_height="wrap_content" >
<ImageView
android:id="@+id/topLeft"
... | java android | [1, 4] |
4,876,102 | 4,876,103 | Getting the username from LDAP - Can you tell me what's wrong? | <p>I'd like to ask you how can i dinamically get a username from ldap. As you can see below, i entered the username 'smith2'</p>
<pre><code>$_SERVER["REMOTE_USER"] = 'smith2';
$param = $_SERVER["REMOTE_USER"]
</code></pre>
<p>And I can get his first name, like this:</p>
<pre><code>$ldap1 = new ldapl;
$fname=$ldap1-&... | php javascript jquery | [2, 3, 5] |
5,094,338 | 5,094,339 | Target child UL with jQuery | <p>I have an unordered list on my page containing lists within each LI. </p>
<p>Currently they're all set to display none, but on click Id like to toggle the display setting. </p>
<p>Ive written the following only I cant seem to get it too work, has anybody an idea of where im going wrong?</p>
<pre><code>//Product r... | javascript jquery | [3, 5] |
4,289,435 | 4,289,436 | Invoking a function with jsonp | <p>I have some html5 postMessage code:</p>
<pre><code> window.addEventListener("message", FA.recieveMessage, false);
</code></pre>
<p>That listener invokes this function:</p>
<pre><code>FA.recieveMessage = function(e){
if (e.data == "closeFA"){
console.log("Type of data: "+e.data);
}
};
</code></pre>
... | javascript jquery | [3, 5] |
3,661,227 | 3,661,228 | Need help with jQuery conditional that removes container element based on matched text | <p>here is my markup:</p>
<pre><code> <div>
<h3>Title</h3>
<ul class="eventslist">
<li>This event would be discarded</li>
<ul>
<li>...</li>
<li>...</li>
... | javascript jquery | [3, 5] |
1,028,217 | 1,028,218 | In jQuery, what's the difference between text() and innerHTML? | <p>I have div elements and hold text/string inside them, then I try to iterate them, and text() doesn't work, but innerHTML work just fine.</p>
<pre><code>var arr = $('div.elm');
$.each(arr, function(i,j){
alert(j.text()); // it's not working
console.log(j.text()); // nothing's in log
alert(j.innerHTML);... | javascript jquery | [3, 5] |
3,471,319 | 3,471,320 | C++ to Java Code Conversion | <p>I have in C++</p>
<pre><code>r.bits[k] &= 0xFF ^ msk;
</code></pre>
<p>So in Java </p>
<pre><code>r.bits[k] = r.bits[k] & 0xFF,
</code></pre>
<p>but what is the meaning of the caret symbol? <code>msk</code> also will contain hexadecimal values.
I know the caret symbol is a type of pointer in C++ but not... | java c++ | [1, 6] |
1,827,276 | 1,827,277 | use asp.net to re-order images in server | <p>I have an asp.net website where people can upload their image files.
I have code to upload multiple files at once.</p>
<p>I also have a requirement where I need to populate a List
that lists image file names in order.</p>
<p>So after a user uploaded 10 image files, he should be able to arrange pictures in any orde... | jquery asp.net | [5, 9] |
5,999,573 | 5,999,574 | How to access hidden field from usercontrol | <p>I have a hidden variable in my aspx page i.e mainpage.aspx</p>
<pre><code><asp:HiddenField runat="server" id="hdnCommonvCode" />
</code></pre>
<p>mainpage.aspx contains tabcontainer control. On each tab an usercontrol is added. If i try to access this hidden field <code>alert($find("<%=hdnCommonvasCode.Cl... | javascript asp.net | [3, 9] |
3,523,652 | 3,523,653 | Foursquare website feed clone? | <p>Hey, I really like the way foursquare's website feed is built.</p>
<p>Does anyone know how to build it in jQuery?</p>
<p><a href="http://foursquare.com/" rel="nofollow">http://foursquare.com/</a></p>
<p>thanks,</p>
| javascript jquery | [3, 5] |
5,426,768 | 5,426,769 | What is the best way to display string items stored in Enumerable<string> object? | <p>This may seem an easy question, but is there a best way in terms of the method or syntax for displaying items stored in an Enumerable object of type string in a TextBox? (and other controls)</p>
<p>I have the following code:</p>
<pre><code> if (CategoryTypes.Count() >= 1)
{
foreach (var categor... | c# asp.net | [0, 9] |
1,454,849 | 1,454,850 | What is the purpose of (win) in javascript? | <p>I have the following code:</p>
<pre><code> $.modal({
content: '<p>Are you sure you want to delete?</p>',
title: 'Delete confimation',
maxWidth: 500,
buttons: {
'Yes': function(win) {
win.closeModal();
},
... | javascript jquery | [3, 5] |
2,910,136 | 2,910,137 | Function treats string as single value instead of parsing | <p>I'm using a tags plugin that takes input like this just fine:</p>
<pre><code>$(this).tagHandler({
assignedTags: [ 'test','from','reddit' ]
});
</code></pre>
<p>If however I create a variable named tags that is a string:</p>
<pre><code>tags = "'test','from','reddit'";
</code></pre>
<p>And attempt to use it in ... | javascript jquery | [3, 5] |
1,632,793 | 1,632,794 | Storing values returning from a function in Java for Android | <p>I have a function <code>getString(i,j)</code> returning string value for every i,j and I wish to store it in some data structure. Below is the code.</p>
<pre><code>for(int i=0; i<16; i++)
for(int j=0; j<16; j++)
Log.d(TAG,this.objNew.getString(i,j));
</code></pre>
<p><code>objNew</code> is the object... | java android | [1, 4] |
1,117,619 | 1,117,620 | I have a block of code that works and I wanted to ask what exactly is happening here? | <p>The semicolon (;) at the end of the code is the thing which is got me lost.</p>
<pre><code>private View.OnClickListener onSave = new View.OnClickListener() {
public void onClick(View v) {
EditText name=(EditText)findViewById(R.id.name);
EditText address=(EditText)findViewById(R.id.addr);
... | java android | [1, 4] |
3,469,920 | 3,469,921 | Reading a text file with jQuery | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/1981815/jquery-read-a-text-file">jquery - Read a text file?</a> </p>
</blockquote>
<p>I want to read a local text file, using jQuery. So I try this:</p>
<pre><code>$.get('file_to_read.txt', function(data) {
... | javascript jquery | [3, 5] |
1,402,304 | 1,402,305 | ASP.NET Role Management | <p>I am new at ASP.NET and developing my first web based application at ASP.NET.I should do role management.There are three kinds of folder in project;
1.ADMIN
2.MEMBER
3.ANOYNOMUS
I wanna set the roles at web.config side.How can I do it at web.config?
I couldn't find useful info at web, about the database side of this... | c# asp.net | [0, 9] |
441,127 | 441,128 | Automatiacally Generating text input and dropdown select on click using javascript/Jquery | <p>I am trying to build a system like when any user clicks on an "Add" button, it creates two text fields and two drop down selects automatically. I searched on google for the tutorial but all I have managed to find is only how to add text fields, but I need to add Select drop down with remove option.</p>
<p>I have so... | javascript jquery | [3, 5] |
4,854,331 | 4,854,332 | jQuery loaded within a Javascript ( js ) file | <p>This is a very simple script that should load jQuery. I can see in the Firebug Scripts tab that jquery is loading but I get '$ is not defined" errors when I try to use it. Can anyone help me understand what's wrong?</p>
<pre><code>//function to add scripts
function include(file)
{
var script = document.createE... | javascript jquery | [3, 5] |
1,617,542 | 1,617,543 | Pop up window in asp.net? | <p>How can i bring up my messages in a pop up window with asp.net-C#?
im cool with javascript !
Is there any idea related with c#?</p>
| c# asp.net | [0, 9] |
25,320 | 25,321 | Javascript find text on page | <p>I need to run a search and replace on HTML similar to the following... I need to have "Find Next" "Replace" and "Replace All" options.... the trick is that I need to run an AJAX request to update the values in the database for each field once the value is replaced.</p>
<p>The only trouble I'm running into is that I... | javascript jquery | [3, 5] |
372,875 | 372,876 | Call a Javascript Function with Jquery | <p>I have two functions in Javascript:</p>
<pre><code>function getWindowWidth(){
var x = 0;
if (self.innerHeight){
x = self.innerWidth;
}else if (document.documentElement && document.documentElement.clientHeight){
x = document.documentElement.clientWidth;
}else if (document.body){
x = document.body.clientWidth... | javascript jquery | [3, 5] |
3,731,357 | 3,731,358 | need a beginners android project to work on | <p>I have an itch to do development on android. I know some JAVA (just learned it) and I want to develop a simple android app for my phone or for an android tablet that I have (simple Chinese 7" tablet that I purchased off eBay).</p>
<p>Is there a simple tutorial that I can follow that will get me up to speed?</p>
| java android | [1, 4] |
1,138,060 | 1,138,061 | How to get the Id of an object which is added in codebehind using javascript | <p>Example:i am assigning this in .cs page</p>
<pre><code> HiddenField hdnCharacter = new HiddenField();
HiddenField hdnMaxCharsError = new HiddenField();
Label lblMaxChrs = new Label();
lblMaxChrs.ID = "lblMaxchrs";
hdnMaxCharsError .ID = "hdnMaxCharsError ";
hdnCharater.ID = "hdnCh... | javascript asp.net | [3, 9] |
1,482,494 | 1,482,495 | Is it possible to create a html file using JQuery? | <p>Is it possible to create a html file and save it to a directory using JQuery?</p>
| javascript jquery | [3, 5] |
5,428,045 | 5,428,046 | how can we assign a javascript array from mysql database with the help of php? | <p>I would like to know if we can select data from the database using php and assign it to a javascript array?
if so what would be the syntax?</p>
<p>I wrote the code below but it is not working</p>
<pre><code>$js_array = "[";
$result = mysql_query("SELECT item_name FROM tbl_item");
while( $row=mysql_fetch_array($re... | php javascript | [2, 3] |
5,907,260 | 5,907,261 | How to add text to a textarea with jquery or javascript | <p>Basically the function will be similar to the "quote" function on most forums. I need to click a button to grab some text and paste that into a textarea box.</p>
<p>I've tried some things and they work, however, they don't work with everything. For example, they don't work when the text that I need to grab has whit... | javascript jquery | [3, 5] |
4,023,214 | 4,023,215 | Window width and resize | <p>I would like to calculate the number of icons e.g. 50px depending on the width of the window for a menu.
So I started with: </p>
<pre><code>$(window).width();
</code></pre>
<p>While loading the page with document ready function the width will be given. OK!</p>
<p>Now I would calculate the right amount of icons w... | javascript jquery | [3, 5] |
3,326,189 | 3,326,190 | Change margin value on table with value from a variable with jQuery? | <p>I select some tables using this:</p>
<pre><code>$('.StatusDateTable').each(function() {
var statusLight = $(this).find(".StatusLight").attr("src");
statusLight = statusLight.substring(33).slice(0,-9);
if (statusLight == "Blue") {
var columns = Math.abs((start - end)-1);
var columnWidth = 40;
var margin... | javascript jquery | [3, 5] |
1,319,502 | 1,319,503 | computer name of user along with ip address | <p>hi i am trying to get the ip address and computer name of my users . i am able to get ip address but computer name i am not getting , i tried these codes. </p>
<pre><code>$ip=$_SERVER['REMOTE_ADDR'];
gethostbyaddr($_SERVER['REMOTE_ADDR']);
$_ENV['COMPUTERNAME'];
</code></pre>
<p>except ip address nothing worke... | php javascript | [2, 3] |
4,161,815 | 4,161,816 | (Code Review) Java if statement involving logical and(&&) operator | <p>I have started programming a few weeks ago in java/android. I want to write a small tic tac toe game as an android app but I'm having trouble with my method that will check for the winner. It is as follows:</p>
<pre><code> public void checkForWinner() {
if( taken[0] && taken[3] && taken[6]... | java android | [1, 4] |
547,220 | 547,221 | Why children function doesn't work? | <p>I have the following markup:</p>
<pre><code><div class="entityClass" ...
<div class="linksClass" ...
<img class="collapseClass"
</code></pre>
<p>I'm trying using JQuery to get the <code>img</code> child:</p>
<pre><code>// _this is entityClass div
var image = $(_this).children(".collapseClas... | javascript jquery | [3, 5] |
3,576,557 | 3,576,558 | jQuery validation field by range | <p>How can I validate field by range?</p>
<p>I use additional-methods, but i don't know how providing parametr with range to my validation method via HTML.</p>
<p>Something of a<br />
<code><input type="text" class="rangeField" rel="[10, 20]" /></code></p>
<p>It's nice, if i can make a difference between integ... | javascript jquery | [3, 5] |
2,791,099 | 2,791,100 | Defining Types on Class declaration? | <p>Im relatively new to Java, and I recently came across a syntax that I have never seen before.</p>
<pre><code>public class loadSomeData extends AsyncTask<String, Integer, String>{ etc..}
</code></pre>
<p>The part that confuses me is the stuff between the <> brackets. I understand what each of the Types are... | java android | [1, 4] |
350 | 351 | What is the difference between xxx.tostring() and (string)xxx? | <p>whats the difference in the two string methods below?</p>
<pre><code>string str1 = dr["RAGStatusCID"].ToString();
string str2 = (string)dr["Description"];
</code></pre>
| c# asp.net | [0, 9] |
1,821,329 | 1,821,330 | jquery: how to find an element which is comming 2 elements before current element | <p>i have a markup which look like this:</p>
<pre><code><h3>Paragraf3-dummytext</h3>
<p>
<a name="paragraf3">
Quisque id odio. Praesent venenatis metus at tortor pulvinar varius. Lorem ipsum dolor sit
</a>
</p>
</code></pre>
<p>what i want to do is to find all 'a' tags with 'name'... | c# javascript jquery | [0, 3, 5] |
4,427,800 | 4,427,801 | break from .each jquery | <p>how can i break from jquery each with out <code>return FALSE</code>.</p>
<p>consider the following</p>
<pre><code>function check_quantity(){
var _q = $(".quantity");
_q.each( function(){
if( some_condition ){
break; // I WANT TO BREAK HERE AND NEED TO RETURN A TRUE INSTEAD OF F... | javascript jquery | [3, 5] |
1,378,009 | 1,378,010 | JQuery Find Elements By Background-Color | <p>Trying to access the Selected row of a GridView by using JQuery to find the row with the background-color attribute set to the SelectedRowStyle background color. That color is #FF6600. I've tried</p>
<pre><code>var row = $("tr").find().css("background-color", "#FF6600");
</code></pre>
<p>But that just sets all the... | jquery asp.net | [5, 9] |
3,054,334 | 3,054,335 | why cant the php function wait for the click instead | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/8239891/function-running-automatically-instead-of-a-click">function running automatically instead of a click</a> </p>
</blockquote>
<p>Hi Guys I am trying so many ways of accomplishing something, I would like th... | php javascript jquery | [2, 3, 5] |
3,794,510 | 3,794,511 | Jquery Cloning a Menu of HTML Buttons | <p>I am trying to clone a series of buttons on the bottom of my app. I want the user to have access to the menu when they are scrolled all the way down as well. </p>
<p>the problem arises when i add event handlers to the buttons using their ID. It seems the duplicate IDS are not working. The first instance of the menu... | javascript jquery | [3, 5] |
4,521,102 | 4,521,103 | how to response.write bytearray? | <p>This is not working:</p>
<pre><code>byte[] tgtBytes = ...
Response.Write(tgtBytes);
</code></pre>
| c# asp.net | [0, 9] |
1,219,942 | 1,219,943 | Is there an easy way to convert C# classes to PHP? | <p>I am used to writing C# Windows application. However I have some free hosted PHP web space that I would like to make use of. I have a basic understanding of PHP but have never used it's object oriented capabilities.</p>
<p>Is there an easy way to convert C# classes to PHP classes or is it just not possible to write... | c# php | [0, 2] |
4,810,793 | 4,810,794 | Java to C# Conversion | <p>I have below Java code. I need to convert this code to C#.</p>
<pre><code>public void updateZeroPointLast(BigDecimal bdID) {
if (!qdsErosionElSave.isOpen()) {
qdsErosionElSave.open();
}
// Locate the row to update
DataRow dr = new DataRow(qdsErosionElSave, "EL_ID");
dr.setBigD... | c# java | [0, 1] |
661,915 | 661,916 | Can't get JavaScript to read an ID as a variable name | <p>What I'm trying to do is have an input field to edit some information. I'm setting it up so that as each field is changed (a combination of text boxes and checkboxes), AJAX updates the information and shows the changes in a profile box (server load is low, not concerned about efficiency here). If the user hits Escap... | javascript jquery | [3, 5] |
2,001,800 | 2,001,801 | New Intent wont start first time | <p>I have 3 intents
A->B->C</p>
<p>from C to get back to A you bring up the menu and click home. This finishes B and C and opens A which in the manifest is set as a singletask.</p>
<p>This all works perfectly, but when I try to open B from A again I have to click twice on the button that starts B. Whereas when the ap... | java android | [1, 4] |
4,732,841 | 4,732,842 | Get class input with closest | <p>I want to get class <code>.mGMZs</code> in input <code>name=age</code> with <code>.closest</code>, I try it in following demo but i doesn't work as expected, how can I fix it?</p>
<pre><code><div class="age">
<div class="column">
<input name="age[0][]" class="mGMZs" placeholder="Age(Getin... | javascript jquery | [3, 5] |
1,737,054 | 1,737,055 | FLAG_ACTIVITY_CLEAR_TOP hangs before clearing all activities? | <p>I have an activity stack like this A -> B -> C. I am launching activity A with clear top from C. Now what happens is it will finish C instantly, then it will resume A, then about 2 seconds later it will finish B. I am confused what is causing this two second delay before killing activity B.</p>
| java android | [1, 4] |
1,837,247 | 1,837,248 | Javascript Call from ASP.NET GridView - Parameter not getting passed | <p>I use a jQuery popup window to show a new page with a parameter in the query string.</p>
<pre><code> <script language="javascript" type="text/javascript">
function ShowProfile(clickedItem) {
$.fn.colorbox({ html: '<iframe SCROLLING="Yes" frameborder="0" src="SiteVP.aspx?siteid="' + cli... | javascript asp.net jquery | [3, 9, 5] |
2,831,939 | 2,831,940 | Hyperlink a column in gridview | <p>I'm using boundfield to display columns:</p>
<pre><code><Columns>
<asp:BoundField DataField=”AccountCode” HeaderText=”Account Code”>
<ItemStyle Font-Size=”Large” />
</asp:BoundField>
<asp:BoundField DataField=”AccountName” HeaderText=”Account Name”
FooterText=”Enter Fo... | c# asp.net | [0, 9] |
1,518,017 | 1,518,018 | update JS Var on chaging of a php var | <p>I got this prob. In a web page I have a DIV that display a counter ( a PHP variable, $count). I have also a JS function that change the INNERHTML property of the DIV. I'm not able to change the js var on the changing of the PHP one.</p>
<p>HTML</p>
<pre><code><DIV id="counter">0</DIV>
</code></pre>
<p... | php javascript | [2, 3] |
889,133 | 889,134 | How to run/execute form in a PHP page loaded in another using Javascript .load() without refreshing the parent PHP page? | <p>Sorry for the very long title but it's exactly what I'm looking for.</p>
<p>I have a PHP page (let's call it the parent page) that loads another (the child page) in one div with the following code:</p>
<pre><code>$("#compose_inputandoptions").load("compose_inputandoptions.php");
</code></pre>
<p>In the child page... | php javascript jquery | [2, 3, 5] |
3,782,933 | 3,782,934 | 'System.Web.UI.WebControls.ListItem' in Assembly is not marked as serializable | <p>I have made a property, which looks like below.</p>
<pre><code>public ListItem[] DropDownListItems
{
get { return (ListItem[])ViewState["DropDownListItems"]; }
set { ViewState["DropDownListItems"] = value; }
}
</code></pre>
<p>And this is how i assign it values</p>
<pre><co... | c# asp.net | [0, 9] |
3,010,890 | 3,010,891 | put extras in tabs | <pre><code>public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
TabHost tabHost = (TabHost) findViewById(R.id.tabhostscreen_tabhost);
mLocalActivityManager = new LocalActivityManager(this, false);
... | java android | [1, 4] |
2,093,341 | 2,093,342 | Change image source if file exists | <p>I have <a href="http://jsfiddle.net/rcebw/3/">http://jsfiddle.net/rcebw/3/</a></p>
<p>The point of this is I will have numerous of these <code>inlinediv</code> divs. Each one has 2 divs inside it, one which holds an image and one which holds a link. These are generated dynamically from a list of the subsites on ano... | javascript jquery | [3, 5] |
591,323 | 591,324 | Communication issue between PHP and jQuery | <p>I have a page generated from PHP like this:</p>
<pre><code><?php
//In my original code, this is retrieved from databas..
$users = array(
array('id'=>1, 'login'=>'login1', 'email'=>'email1')
);
foreach($users as $user){
echo '<tr><td>'.$user['login'].'</td... | php jquery | [2, 5] |
4,358,465 | 4,358,466 | The variable name '@VarName' has already been declared Issue | <p>I am inserting multiple items into table based on a selection from drop down list. When I select one item from the drop down then everything works fine but when I select multiple items then I get this error</p>
<pre><code>The variable name '@CompName' has already been declared. Variable names must be unique within... | c# asp.net | [0, 9] |
4,542,422 | 4,542,423 | Wrap Each * on a Page Using jQuery | <p>I need to wrap each asterisks on a page with <code><span class="red"></span></code>. The few things I've tried don't work. I think what this boils down to is that I need to search the page for a specific character, and I can't figure out how to do that.</p>
| javascript jquery | [3, 5] |
5,260,512 | 5,260,513 | Disable onbeforeunload for links | <p>How can I disable onbeforeunload for links?</p>
<pre><code>var show = true;
function showWindow(){
if(show){
alert('Hi');
return "Hi Again";
}
}
$('a').click(function(){
show = false;
});
window.onbeforeunload = showWindow;
</code></pre>
<p>This is what I have, but it still... | javascript jquery | [3, 5] |
5,396,020 | 5,396,021 | trigger 'click' after selected an option? | <p>I have select box which load addresses form via ajax. So user can select previous saved address. Inside address form , another select box which lists 'States'. A shipping is calculated based on 'States' select box change.</p>
<p>I want to trigger a change after loading addresses. I used this code</p>
<pre><code>$(... | javascript jquery | [3, 5] |
1,413,596 | 1,413,597 | Calling some javascript method from a java class | <p>i want to call a javascript method from a servlet... is it possible??</p>
<p>i have heard of something called mozila rhino but cannot understand its use, do any 1 has any idea???</p>
| java javascript | [1, 3] |
2,634,593 | 2,634,594 | How to make a JSON object? | <p>I want to create the following JSON object, as seen from a console log:</p>
<pre><code>Object
. member: Object
. id: 8286
</code></pre>
<p>I've been trying:</p>
<pre><code>'member' :[{'id': 8286}]
</code></pre>
<p>but get the following error: "Uncaught SyntaxError: Unexpected token :"</p>
<p>What am... | javascript jquery | [3, 5] |
711,476 | 711,477 | Resize photo taken by camera to fit screen | <p>I'm attempting to make an app that displays the photo after its taken.
The issue is I can't seem to scale the bitmap with the same aspect ratio to the screen.</p>
<p>I've tried imageView.setScaleType(ScaleType.FIT_XY); but it doesn't keep the ratio.
Nor does any of the Android:Scale.</p>
<p>What can I do?</p>
| java android | [1, 4] |
2,422,718 | 2,422,719 | how to remove header information from mp3 file? | <p>is there anyway to remove header information from mp3 file such that mp3 file can't be played?</p>
<p>regards,
hitendrasinh gohil</p>
| java android | [1, 4] |
4,025,648 | 4,025,649 | Sending JavaScript variable to PHP | <p>I have to send a value that is stored in a JavaScript variable to a PHP page. The PHP page is in a different folder than the JavaScript page.</p>
<p>This JavaScript variable is in a method that fires when we click a button. </p>
<p>How can I send that variable value to the PHP page?</p>
<p>(This is an Eclipse pro... | php javascript | [2, 3] |
4,287,827 | 4,287,828 | Creating my own dynamic (provider like) classes: Best approach? | <p>I'm not sure if this is the best place to post this question but I can't seem to find much on it (I guess my google-foo is weak).</p>
<p>Let's say I have a website that sells products. These products go into my database, and are processed in various ways. Recently we've decided that our website wants to sell third ... | c# asp.net | [0, 9] |
2,053,510 | 2,053,511 | Set focus to validation summary? | <p>Hi I have an aspx page, where there are 2 validation summaries. One for master (at the top of page) & one for details (at the bottom). </p>
<p>On details validation, the focus just shifts on top of the page and not on my validation summary in details section. How to do this ? Any clue guys ?</p>
| c# javascript asp.net | [0, 3, 9] |
4,348,796 | 4,348,797 | IE8 with jQuery width | <p>I am trying to set a width dynamically on a div. This is correctly working with Safari, Chrome and Firefox but not in IE8. This is using jQuery UI for the slider function. Here is my code so far:</p>
<pre><code>var ourStoryPosts = $(".ourStory .grid_12mod").children();
var ourStoryLength = ourStoryPosts.length;
... | javascript jquery | [3, 5] |
3,528,646 | 3,528,647 | Execute an ASP.net method from JavaScript method | <p>I have a javascript method looks like this</p>
<p>JSMethod(JS_para_1,JS_para_2)
{
......
,,,,,
}</p>
<p>and I have an ASP.NET method like this</p>
<p>ASP_Net_Method(ASP_Para_1,ASP_Para_2)
{
....
,,,
}</p>
<p>Now I want to call this ASP_Net_Method from my JSMethod by passing some parameters over there..</p>
| c# asp.net javascript | [0, 9, 3] |
5,547,469 | 5,547,470 | Debug mode in a library | <p>I have an Android application with several "Log.d" calls along the code in order to following the events of the app.
In order to enable or disable the debug messages I call the Log with</p>
<pre><code> if (MyApp.debug) Log.d("Doing something");
</code></pre>
<p>Where MyApp.debug is a final boolean that I change be... | java android | [1, 4] |
3,053,724 | 3,053,725 | Changing button text of gridview | <p>I have a grid view which contains a button in a template field. I want to change the button text when the button click event is completed. Can somebody send me a sample code.</p>
<p>Thanks in advance</p>
| c# asp.net | [0, 9] |
5,491,707 | 5,491,708 | JavaScript dynamic parameters | <p>I have following code (html,js,jquery) snippet (<a href="http://jsfiddle.net/MUScJ/2/" rel="nofollow">http://jsfiddle.net/MUScJ/2/</a>):</p>
<pre><code><script type="text/javascript">
function someFunc(){
html = '';
z = 1;
for(i=0; i<5; i++){
html += '<input type="button" value="... | javascript jquery | [3, 5] |
1,632,217 | 1,632,218 | Checking input box whether it is focused or not | <p>I want to change the appearance of the web page according to an input is focused or not, If it is not focused, it will display something and if it is focused, replace something with another things simultaneously.How can i do that that?Can it be done with PHP?
Thanks</p>
| php javascript | [2, 3] |
4,663,573 | 4,663,574 | How to stop SharePoint from writing JavaScript code over and over? | <p>I'm using PIE.js to force IE7 to use CSS3 styles. However, whenever an element on my SharePoint page contains the class that PIE is supposed to style, it actually inserts the code into the html when rendered. Then upon editing the page, the code is added again on top of the old code. So at first I start with a simpl... | javascript jquery | [3, 5] |
672,412 | 672,413 | jquery: not selector problem? | <p>The following snippet applies a #breadcrumb hash to each link once it's clicked. That works fine.</p>
<pre><code>$('#main a').live('click',function() {
$(this).attr('href', $(this).attr('href') + "#breadcrumbs");
});
</code></pre>
<p>Now I want to make sure that happens just if a link does not already hav... | javascript jquery | [3, 5] |
3,004,517 | 3,004,518 | What is the Java equivalent of creating an anonymous object in C#? | <p>In C#, you can do the following:</p>
<p><code>var objResult = new { success = result };</code></p>
<p>Is there a java equivalent for this?</p>
| c# java | [0, 1] |
5,690,094 | 5,690,095 | Passing a string to a onItemClick-function | <p>I have a listview and when you click an item in the list I repopulate the list with some other data. The problem I have is to pass a string inside a onItemClick so I can use it there. How can I do that?</p>
<pre><code> private void asdf(int myInt, String myString) {
Bla bla bla bla...
... | java android | [1, 4] |
2,698,109 | 2,698,110 | colors.xml resource does not work | <p>I created a colors.xml file in my Android app under /res/values/colors.xml. The contents are...</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="Green">#00ff00</color>
</resources>
</code></pre>
<p>I try to update the background of my a TableRow usin... | java android | [1, 4] |
5,056,067 | 5,056,068 | make textbox work like dropdown box | <p>I am trying to replicate the functionality I have on a dropdown box that allows a user to select a tag and then return articles related to this term,.</p>
<p>The textbox needs to accept a search term and work in the same way. I have tried everything I can think of but I am getting zero results.</p>
<p>To replicate... | php javascript | [2, 3] |
4,064,084 | 4,064,085 | How to pass multiple arguments in CommandArgument in GridView? | <p>I was working on asp.net gridview control.Now I need to edit some row data.For that I was using this code:</p>
<pre><code> <asp:LinkButton ID="btnEdit" Text="Edit" runat="server" CommandName="QuickEdit" OnClick="btnEdit_Click"
CommandArgument ='<%# ((CheckBox)(((GridViewRow) Container).Cells[4].Controls[0]... | c# asp.net | [0, 9] |
1,964,779 | 1,964,780 | Should I make a local variable $this when accessing $(this) multiple times? | <p>Example:</p>
<pre><code>$("#footer-create-nav li").click(function () {
var $this = $(this);
$this.addClass('footer-create-active');
$this.siblings().removeClass('footer-create-active');
return false;
}
</code></pre>
<p>vs how alot of my code looks:</p>
<pre><code>$("#footer-create-nav li").click(f... | javascript jquery | [3, 5] |
4,034,449 | 4,034,450 | How can I use jQuery to move a div across the screen | <p>I need to make multiple divs move from right to left across the screen and stop when it gets to the edge. I have been playing with jQuery lately, and it seem like what I want can be done using that. Does anyone have or know where I can find an example of this?</p>
| javascript jquery | [3, 5] |
3,690,715 | 3,690,716 | jQuery - getting final URL after all redirects | <p>I'm trying to get the final URL after all redirects happen. There are a few situations I'm trying to resolve:</p>
<p>1) no redirect (trivial)
2) 302 redirect
3) JS injected redirect. Page loads, waits for 2 seconds and then redirects.
4) combination of 2 and 3</p>
<p>I'm thinking that opening up a child window and... | javascript jquery | [3, 5] |
4,551,602 | 4,551,603 | Capture clicking on a checkbox's title in jQuery | <p>I'd like to listen on the event of a user clicking on a checkbox's title (in addition to the checkbox itself). How can this be done?</p>
| javascript jquery | [3, 5] |
4,330,299 | 4,330,300 | Error in callback rate with CountDownTimer? | <p>I have been building a small darkroom timer application, as I learn Android and java.<br>
Ended up using CountDownTimer, as it does most of the work for me. :{)<br>
However, I ran into what looks like an error in the class. </p>
<p>My initial structure used the onTick() callback to decrement my time counter, and u... | java android | [1, 4] |
2,267,022 | 2,267,023 | Input textbox with Watermark hint and submitted value | <p>I have an html Input box to enter value used to run a PHP script.
The value can also be passed using the URL and GET.</p>
<p>Now I would like to have a watermark hint in my textbox.
I used the code from this gentleman:
<a href="http://www.drewnoakes.com/code/javascript/hintTextbox.html" rel="nofollow">http://www.dr... | php javascript | [2, 3] |
4,977,958 | 4,977,959 | how can i get particular text using jquery | <p>how can i get only the cheque number(<code>AA12GH56</code>) not the other texts, here is my code:</p>
<p>HTML:</p>
<pre><code><p>your cheque number is :AA12GH56 <br /> your bank credit balance is :32,999</p>
</code></pre>
<p>Javascript:</p>
<pre><code>$(document).ready(function(){
$('p').clic... | javascript jquery | [3, 5] |
3,657,285 | 3,657,286 | Nested loop in JavaScript/jQuery not working | <p>Im calling a for loop inside a for loop and its not working, here's the code : </p>
<pre><code>function PopulateMonths() {
for (var m = 0; m < 12; m++) {
var $month = $('.d-month').clone();
$month.find('.d-header').text(m);
$month = PopulateDays($month);
$month.appendTo('#diary').show();
$mo... | javascript jquery | [3, 5] |
2,680,481 | 2,680,482 | Unable to retrieve value of the gridview column after making it invisible | <p>I have a gridview say gv1 . Which has 5 columns. I bind the gridview on the change of a dropdown selection. After binding I make the 4th(gv1.column[3]) and 5th(gv1.column[4])column visible false.</p>
<pre><code>gv1.Columns[3].Visible = false;
gv1.Columns[4].Visible = false;
</code></pre>
<p>I am unable to access t... | c# asp.net | [0, 9] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.