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 |
|---|---|---|---|---|---|
3,948,679 | 3,948,680 | PHP Conditions in Javascript code | <p>I need to add a PHP condition inside some javascript code like this:</p>
<pre><code><script>
$(document).ready(function() {
<?php if (some condition) {
$('#myID').show();
}
});
</script>
</code></pre>
<p>Is this possible?</p>
| php javascript jquery | [2, 3, 5] |
2,060,446 | 2,060,447 | Check if an element exists in the DOM | <p>The following snippet is not working for me. Basically I want to check if there is an input element with the name "documents[]" and the value item.id and return void.</p>
<p>I thought this line would do it: <code>$("input [name='documents[]'][value='"+item.id+"'") != false</code>. </p>
<p>However the statement ret... | javascript jquery | [3, 5] |
18,312 | 18,313 | Any solution to use non-guessable links in a program? | <p>I've been looking for a file hosting site to host my files and my friend offered me a premium account on Box.net.</p>
<p>The problem in this host site (and on many others) is that the links arent guessable, they cant be predicted. That means: If you upload 2 images called "1.jpg" and "2.jpg", the links aren't like ... | c# java javascript | [0, 1, 3] |
2,290,610 | 2,290,611 | Get me off the JavaScript postback Failboat | <p>I've got to call two js functions, setfocus on textbox and stop a postback from occuring on single buttonclick. I think I got it if I could only intercept the postback. My js skills are on par with weaksauce. </p>
<p><strong>test case</strong></p>
<pre><code><%@ Page Language="C#" AutoEventWireup="true" Co... | javascript asp.net | [3, 9] |
2,610,420 | 2,610,421 | how to load many words on screen and scroll | <p>I'm doing an app on android (upon a book on app)
I want to ask how I can load many words (same as a page of book).
Thanks</p>
| java android | [1, 4] |
2,620,374 | 2,620,375 | Is there a way to execute external Javascript from PHP when Javascript is disabled client side? | <p>I am using PHP to generate a dynamic web form that uses an external (to my site) javascript file to set a hidden form input value. My form submits to my own PHP page before reposting to an external site. The external site requires this hidden value for any submission.</p>
<p>Many of the browser that are using my fo... | php javascript | [2, 3] |
3,979,624 | 3,979,625 | Using Scroll by for mobile devices | <p>I have a site that I'm building a mobile version for. I would like to be able to scroll the page down a bit when the page loads so I can hide the address section at the top of the page. I'm used to using window.scrollBy to move the page around, but it doesn't seem to work correctly on the mobile version.</p>
<pre... | javascript jquery | [3, 5] |
55,619 | 55,620 | How to set height and width of the Icon of a Key on Keyboard | <p>I created my <code>Keyboard</code>. I need to show <code>icon</code> on one <code>Key</code>. </p>
<pre><code> Keyboard.Key key;
key = this.getKeys().get( 0);
Drawable icon = context.getResources().getDrawable( iKeyIcon); // iKeyIcon - id of my file resource with icon
key.icon = icon;
</code></pre>
<p>How can ... | java android | [1, 4] |
2,503,678 | 2,503,679 | Start Slideshow On Image Load | <p>I've got a simple slideshow I'm creating using jQuery for a Peruvian client at <a href="http://www.hostalandenes.com/" rel="nofollow">www.hostalandenes.com</a>. We have a relatively unique problem here in Peru that the internet tends to be extremely slow, and I think the slideshow looks cheesy when it starts and the... | javascript jquery | [3, 5] |
2,720,701 | 2,720,702 | The process cannot access the file because it is being used by another process | <p>I am getting binary data from a SQL Server database field and am creating a document locally in a directory my application has permissions. However I am still getting the error specified in the title. I have tried numerous suggestions posted on the web including those suggested in previous posts on Stackoverflow. I ... | c# asp.net | [0, 9] |
4,679,425 | 4,679,426 | Capture the Window Screen for few minutes using ASP.net | <p>"Through out the question I just talk only on the client side using asp.net"</p>
<p>My requirement is to "Capture the window screen for few minutes and store it as video of any format."</p>
<p>For example if I want to capture the screen of the window and store in some jpeg or gif format, I can use the system.windo... | c# asp.net | [0, 9] |
4,812,659 | 4,812,660 | how to display date value into the textbox from opened window | <p>when i click on link, a window opened with datetime picker, i want to select the date and display into one textbox using java script.</p>
| c# asp.net javascript | [0, 9, 3] |
2,312,431 | 2,312,432 | Escape char problem while generating JavaScript page through Java code? | <p>I am generating <a href="http://en.wikipedia.org/wiki/JavaScript" rel="nofollow">JavaScript</a> pages through <a href="http://en.wikipedia.org/wiki/Java%5F%28programming%5Flanguage%29" rel="nofollow">Java</a> code like:</p>
<pre><code>FileOutputStream fs=new FileOutputStream("C:\\Documents and Settings\\prajakta\\D... | java javascript | [1, 3] |
4,739,248 | 4,739,249 | Async postback doesn't cause document.ready to be executed | <p>I've had to implement some changes to a user control that's used in a couple of pages. The user control contains some JQuery to handle a paging task (displays 3 months of data and hides 9 at a time). When the control is loaded, it will automatically display the current quarter and executes this code in $(document).r... | asp.net jquery | [9, 5] |
3,232,406 | 3,232,407 | Jquery slidedown if statement not comparing $(this) | <p>I have a list of buttons to be clicked on. I want a div to slide down if the link that is clicked is new, but if it is the same one that was last clicked, I just want the div to slide up.</p>
<p>So my code is:</p>
<pre><code>var $lastflyout = '';
$('.links-text a').each(function(){
$(this).click(function(){
... | javascript jquery | [3, 5] |
5,972,078 | 5,972,079 | How to autoscroll to the end of iframe using JavaScript (or jQuery)? | <p>I have the following code:</p>
<pre><code><iframe id="preview" onLoad="scrollToBottom()"></iframe>
</code></pre>
<p>My objective - When the frame reloads, the "scrollToBottom()" function is triggered, which will take the user to the end of the iFrame (instead of the beginning of the frame, which is by ... | javascript jquery | [3, 5] |
2,732,674 | 2,732,675 | How to convert C++ code into java | <p>I am trying to convert C++ code to Java but am stuck at the following line</p>
<pre><code>memcpy(cmd->CommandData+2, &m_UnitData[i].Value, 2);
</code></pre>
<p>I also use cpp to java converter but it does not change anything here. <code>CommandData</code> and <code>UnitData</code> are byte arrays in my Java... | java c++ | [1, 6] |
4,656,661 | 4,656,662 | OnGenericMotionListener doesn't seem to be working | <p>This is really weird all other listeners work like onClick etc.. but this listener doesnt seem to be working, heres my code:</p>
<pre><code>public class HeloActivity extends Activity implements OnGenericMotionListener{
/** Called when the activity is first created. */
@Override
public void onCreate(Bund... | java android | [1, 4] |
3,026,378 | 3,026,379 | Click action on Focused DIV | <p>I have a div with tabindex attribute set to '-1' so it can gain focus on mouse click.</p>
<pre><code><div tabindex='-1'></div>
.div:focus{//some style}
</code></pre>
<p>I want to do something with Jquery when the user clicks the div but only if it is selected (after second click).</p>
<pre><code>$('d... | javascript jquery | [3, 5] |
4,064,272 | 4,064,273 | Registering Javascript with ScriptManager is working inconsistently | <p>I'm developing an ASP.NET page. Currently there is no AJAX on the page. in the code behind for different button click events, I am registering the script below. The purpose of the script is to scroll the window to a particular anchor tag. The method is as follows:</p>
<pre><code>public void RegisterAnchor(string an... | javascript asp.net | [3, 9] |
1,423,988 | 1,423,989 | jQuery load function can't won't load | <p>I've been working on this <a href="http://orchidaberdeen.com/" rel="nofollow">website</a> for quite some time now and i've encountered a bug that is trumping me at every point.</p>
<p>The problem is in the gallery section of the site. When a user clicks on the circle the website splits open to reveal more thumbnail... | javascript jquery | [3, 5] |
1,220,882 | 1,220,883 | Deleting a directory | <p>I'm having some major trouble deleting directories. I'm working building a ADMIN tool to delete directories that my clients create but then ask to delete them. You would think this is simple:</p>
<pre>
<code>
using (var context = Impersonator.LogOn(user, password, domain))
{
try
{
dir = new Direct... | c# asp.net | [0, 9] |
4,498,102 | 4,498,103 | why I used layoutinflater in android? | <p>I am a beginner developer in Android:</p>
<p>Could you explain what <code>layoutinflater</code> does and can you explain what it is used for in general and especially in this code?</p>
<p>I have this code :</p>
<pre><code> private class MyPagerAdapter extends PagerAdapter {
public int getCount() {
re... | java android | [1, 4] |
5,068,789 | 5,068,790 | C# Application and sql database on server | <p>I want to make an application in c# windows form but I want my database will be hosted on the server. Anyone please help me out how can I access my database using c# windows form application and insert data on the database which is hosted on the web server. Thanks </p>
| c# asp.net | [0, 9] |
1,264,991 | 1,264,992 | scrolling issue jcover flip | <p>I am using jcover flip on my facebook application. On dragging the scroll bar towards the right first it scrolls back few images and then goes scrolls to right on scroll, due to which few images on extreme right do not get displayed.</p>
<pre><code><script>
jQuery( document ).ready( function(){
jQuery( '#... | php javascript jquery | [2, 3, 5] |
2,044,600 | 2,044,601 | How to clear browser history oan clear cache? | <p>I have a login page and a home page. User can log in from the login page to the home page using a username and password. What i want to achieve is :</p>
<p>1) When user log out from home page he/she should not be able to come again to the home page by clicking the back or forward button in the browser.</p>
<p>2) I... | c# javascript asp.net | [0, 3, 9] |
4,603,586 | 4,603,587 | Handling board game fields with a loop? | <p>This is my first question here. I am writing a simple game on Android (my first one). It is a board game with 64 fields. Now every time one field is clicked something needs to be done. I figured a way to do it in this way:</p>
<pre><code>switch(v.getId()) {
case R.id.field1:
...
...
...
}
</code></pre>
<p>It is wo... | java android | [1, 4] |
299,447 | 299,448 | Bind List<Dictionary<string,string>> to DropDownList | <pre><code>var dict = new Dictionary<string,string>();
dict.Add("A","123");
dict.Add("B","456");
dict.Add("C","789");
dict.Add("D","000");
var list = new List<Dictionary<string,string>>(); //pretty much like a DataTable
list.Add(dict); //more than one dict in the list
//ddl is a dropdownlist
ddl.Data... | c# asp.net | [0, 9] |
4,230,710 | 4,230,711 | Android super.setContentView() in a method causes error? | <p>Why would calling super.setContentView() </p>
<p>in a method cause the android process to terminate unexpectedly?
but when I remove it it works fine?</p>
<pre><code>package com.example.debuggingTest;
import android.app.Activity;
import android.os.Bundle;
import android.view.MotionEvent;
import android.view.View;
... | java android | [1, 4] |
4,393,330 | 4,393,331 | How to show User name after login when not present in DB? | <p>On my website master page there are 2 divs- div_login and div_welcome. By default login div is visible and welcome div is hidden. When user fills his/her login details then div_login gets hide and welcome div appears. I am fetching data from web-service. On welcome div I want to give first name and last name of the ... | c# asp.net | [0, 9] |
1,667,931 | 1,667,932 | jQuery change events on docready | <p>I want to run part of a function when the page initially loads, but the majority of the <code>change</code> event should only run when the target is then subsequently interacted with.</p>
<p>The problem is that the two events are not unrelated - on page load I want to show certain divs, and then I want a click acti... | javascript jquery | [3, 5] |
5,849,471 | 5,849,472 | Android: Compare two Maps keys, if keys are equal create new object | <p>I have two <code>LinkedHashMap<String, MyType></code> where keys can be common (say key from first map can be "key" and key from second map can be also "key". I need to compare this two maps and when keys are equal I want create new object where <code>firsMapEntry.getValue()</code> <code>secondMapEntry.getValu... | java android | [1, 4] |
5,003,307 | 5,003,308 | empty() then run the rest of the funtion | <p>I have some json that's loaded into <strong>li.ui-state-default</strong> pending user entry. </p>
<p>The user can then enter a new entry. I want it to empty <strong>li.ui-state-default</strong> everytime a new entry is loaded but it seems to just stay empty.</p>
<pre><code>//data for DOM
var timeout = '';
$('.call... | javascript jquery | [3, 5] |
4,205,623 | 4,205,624 | accessing class that creates list from database | <p>I have the following Class which basically creates a list of categories (called commands, I know it's weird)</p>
<p>Here is CommandDB.cs</p>
<pre><code>using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;
using System.Data.Common;
using System.Data.Sql;
using Syst... | c# asp.net | [0, 9] |
1,419,635 | 1,419,636 | What is better to use several AsyncTask or HandlerThread(Pipeline Thread)? | <p>Is it good approach to have one <code>HandlerThread</code> in app for making different time spending actions,like,for example,sorting or maybe even for working with web/file streams?
What is better to use for such purposes: several <code>AsyncTask</code>'s, several <code>Thread</code>s or one <code>HandlerThread</co... | java android | [1, 4] |
5,296,629 | 5,296,630 | How to maintain state of a Textbox in headertemplate of TemplateField in a GridView? | <p>I have a Gridview in which I have added a TemplateField,
which contains TextBox and a Imagebutton in HeaderTemplate,</p>
<p>When I click on the Imagebutton the textbox becomes blank.</p>
<p>I wonder how do I save state of the textbox?</p>
<pre><code> <asp:TemplateField>
<HeaderTemplate>
... | c# asp.net | [0, 9] |
2,284,067 | 2,284,068 | The type is deprecated | <p>I am using an AbsoluteLayout for a Activity and have it defined in a xml file.</p>
<p>I added this line of code because I am trying to add a list of buttons dynamically and I get the following warning.</p>
<pre><code>private AbsoluteLayout layout = (AbsoluteLayout) findViewById(R.id.viewsaved);
The type Absolute... | java android | [1, 4] |
1,434,844 | 1,434,845 | Hide a div based on a select input box | <p>I was helped with some code <a href="http://jsfiddle.net/K9zGP/13/" rel="nofollow">here</a>. I tweaked it to try and hide a whole div instead of an element. It was only a small tweak but I seem to have done something to stop it working.</p>
<p>HTML</p>
<pre><code><input type="text" name="text-708" value="" clas... | javascript jquery | [3, 5] |
2,893,750 | 2,893,751 | virtual table every instance get's on or every object? | <p>i have read about this metrial and i am still dont understand it's core
e.g: </p>
<pre><code>public static void Main()
{
person []p = new person[]{new student(),new worker()};
}
public class person
{
public void f1() { }
public virtual void f2() { }
}
public class student:person
{
public overrid... | c# c++ | [0, 6] |
3,002,947 | 3,002,948 | Font picker Implementation | <p>I want to implement a font and color picker in my project. I implemented the color picker, I got it the code, but still I don't get the code to implement the font picker. Does any one know?</p>
<p>Thanks in advance.</p>
| php javascript | [2, 3] |
1,662,154 | 1,662,155 | Loading jQuery multiple times in the same page | <p>I'm implementing a plug-in that's embeddable in different sites (a la Meebo, Wibiya), and I want to use jQuery. Problem is, the site I'm embedding to, may already have a jQuery script loaded.</p>
<p>The question is, what's the best approach for this kind of problem:</p>
<ol>
<li><p>Should I just check if jQuery is... | javascript jquery | [3, 5] |
208,600 | 208,601 | Application no longer works in lower android versions after setting android:targetSdkVersion | <p>After I set android:targetSdkVersion to 15, application doest work in 1.6 emulator.
It throws java.lang.VerifyError.</p>
<p>Edit:
The app is crashing because I'm calling invalidateOptionsMenu, which came in API 11. Now even I check before calling it (if (VERSION.SDK_INT >= 11)). It still throws same error.</p>
| java android | [1, 4] |
899,832 | 899,833 | Running JavaScript in PHP file | <p>I made a simple login using JavaScript, but record the username in a PHP session.It's a simple web chat, so I want when the chat page is loaded the user to be forced to pick an username, but after that I want to store that info ina a PHP session and if the page is reloaded for some reason to do a check if $_SESSION[... | php javascript | [2, 3] |
2,349,076 | 2,349,077 | XMLHttpRequest cannot load Origin null is not allowed by Access-Control-Allow-Origin | <p>I have a code.html file containing the following code.</p>
<pre><code> $.ajax({
type: "POST",
datatype: "JSONP",
url: "path",
success: function(msg){
var e = document.createElement("div");
e.id ... | php javascript | [2, 3] |
4,387,133 | 4,387,134 | download images dynamically with jquery in any container | <p>after searching google i got a code which works but this code download all the images at a time</p>
<h2>code is</h2>
<pre><code><script type="text/javascript">
$(document).ready(function () {
$("table[id*=dgImages] img").each(function () {
$(this).attr("src", $(this).attr("original"));
... | jquery asp.net | [5, 9] |
211,606 | 211,607 | Asp.net web app shows me as the logged in user on someone elses pc | <p>OK, I really don't know what to search for this, so hopefully someone can help me.</p>
<p>I've just published an asp.net web application, and after much messing about finally got it to load in my browser.</p>
<p>The issue however is that when I got my mate who is sitting next to me to open the site in his browser,... | c# asp.net | [0, 9] |
5,672,680 | 5,672,681 | jquery grabbing different id in document.ready | <p>I am writing a small script that will query a database for a title and whilst you enter your title it brings back suggestions.</p>
<p>I have found an example and managed to create one as below:</p>
<pre><code><head>
<title>Match Form/title>
<script type="text/javascript" src="jquery.js"></s... | php jquery | [2, 5] |
2,103,183 | 2,103,184 | Using "~" in a path resolves as C:\ | <p>I'm trying to implement a server control that frobs a couple of files inside the web directory of an ASP.NET site. I'm using VS Web Dev Express 2008 as my IDE. When I call <code>HttpContext.Current.Request.ApplicationPath</code> to get a path to the web root so I can find those files, it returns C:. What the heck?</... | c# asp.net | [0, 9] |
338,821 | 338,822 | How to set the width of a layout in Android? | <p>Is there Any way to set the width of the Layout.</p>
<p>Because most of the time it doesn't work?</p>
| java android | [1, 4] |
4,197,354 | 4,197,355 | How to iterate through each row and collect data | <p>Rows (id='row_property_'+number) in table contain four columns :</p>
<ol>
<li>select element (id='multiple_object_type_'+number)</li>
<li>input type="text" (id='multiple_instance_id_'+number)</li>
<li>nested table (id='table_properties_'+number)</li>
<li>input type="button"</li>
</ol>
<p>How to iterate through eac... | javascript jquery | [3, 5] |
3,243,358 | 3,243,359 | Is it possible to read the DOM and an HTML table with jQuery and Javascript? | <p>Have the user provide a URL.</p>
<p>Open the URL (no need to display) and parse the DOM (read only, of course). Pull elements out of an HTML table and write to a text file?</p>
<p>If so, can I get some pseudo code or a list of the jQuery selectors needed to make this happen?</p>
<p>Thanks in advance!</p>
| javascript jquery | [3, 5] |
3,589,548 | 3,589,549 | Hide everything between 2 h2 tags? | <p>I have the following html snippet;</p>
<pre><code><h2>Headline 1</h2>
<p>Lorem ipsum bla bla</p>
<p>Lorem ipsum bla bla</p>
<p>Lorem ipsum bla bla</p>
<h2>Headline 2</h2>
<p>Lorem ipsum bla bla</p>
<h2>Headline 3</h2>
<p>Lor... | javascript jquery | [3, 5] |
2,057,437 | 2,057,438 | Disable a button (in a data list) after a single click by user | <p>I want to disable the button that is contained in a data list row. Is it possible to disable the button after it has been clicked once by the user? If so, can someone please suggest how I can achieve that.</p>
<pre><code><asp:DataList ID="DataList1" runat="server" DataKeyField="Qno" OnItemCommand="DataList1_OnIt... | c# javascript asp.net | [0, 3, 9] |
3,566,767 | 3,566,768 | Stopping autoslide of a slider programatically | <p>I have made a slider jquery plugin. The slider starts automatically in autoplay, but when the mouse hovers the slider it stops. There's a function for this, of course.</p>
<p>My problem comes when i have a movie inside one of the slides. if the movie is playing, i want to stop the autoplay completely even if the mo... | javascript jquery | [3, 5] |
2,232,901 | 2,232,902 | Javascript alternative to jquery html() | <p>How would you write this jQuery method</p>
<pre><code>$('body').html(node);
</code></pre>
<p>for setting html to node in Javascript?</p>
<p>thank you</p>
| javascript jquery | [3, 5] |
1,368,697 | 1,368,698 | How to get inner tr tag using JQuery? | <p>I am trying to grab documentnumber attribute from the tr tags inside tbody, and save it in an array.</p>
<p>Below is the html , I am working on</p>
<pre><code><tbody class="line-item-grid-body">
<tr data-group-sequence-number-field-index="" data-sequence-number-field-index="1" documentnumber="80" docu... | javascript jquery | [3, 5] |
4,734,121 | 4,734,122 | jquery selector slow when 1000+ elements with 450Mhz machine | <p>I got something like this which contains about 1000 dom elements</p>
<pre><code> <table id="tableId">
<tr class="selected"><td>Text 1</td></tr>
<tr><td>Text 2</td></tr>
...
<tr><td>Text 500</td></tr>
</table>
</co... | javascript jquery | [3, 5] |
1,662,310 | 1,662,311 | How To write a server side script using jsp and java and How to run it? | <p>I am new to this technology, I dont no how to write a server side program and how to run before jsp page start to load. Any one can you please guide me how to do it?</p>
<p>Thanks in Advance,
Ver</p>
| java javascript | [1, 3] |
3,196,241 | 3,196,242 | gridview_RowCommand firing two times | <p>I am performing database update call by clicking on a button which resides on a gridview.
It works fine it updates the database properly but the problem is that when i refresh the page it again perform the same operation(db update) i.e again call the RowCommand Event of Gridview. </p>
<p>Here is my short code view... | c# asp.net | [0, 9] |
4,068,392 | 4,068,393 | Save base64 encoded image into the file in PHP | <p>I have the following code : </p>
<pre><code><?php
header('Content-Type: image/png');
$data = "iVBORw0KGgoAAAANSUhEUgAAAuAAAAI8CAYAAACwIh5dAAAgAElkZJgRCXxOAuIPzzTlg......";
define('UPLOAD_DIR', '/home/Desktop/image.png');
$img = $data;
$img = str_replace('data:image/png;base64,', '', $img);
$img = str_repl... | php jquery | [2, 5] |
1,236,871 | 1,236,872 | Javascript confirm box blocks background | <p>I have a button in a GridView, and when it is clicked it triggers the </p>
<pre><code>protected void GridView_RowCommand(object sender, GridViewCommandEventArgs e)
</code></pre>
<p>event. In there I have some logic and at the end I am registering some javascript that generates a pop up. The issue I am having is th... | c# javascript asp.net | [0, 3, 9] |
542,284 | 542,285 | External looping of the variable | <p>How could I best loop the data through a variable that's nested inside a 'while' loop but it's called outside of it ? Like in this example:</p>
<p>PHP:</p>
<pre><code> $fr_q2 = mysqli_query($connect,"SELECT * FROM friends WHERE username ='".$_SESSION['user']."'
ORDER BY id DESC");
while ($rowsPicFr2 = mysqli_... | php javascript | [2, 3] |
5,452,981 | 5,452,982 | How to disable asp.net after click? | <p>I want to disable a server side asp.net button control after click for some seconds & then fire a server side event. I am trying to use setTimeout but if I use setTimeout the server side event is never fired. Can anybody help?</p>
<pre><code> <script type="text/javascript">
function disableBtn(btnId... | javascript asp.net | [3, 9] |
2,961,216 | 2,961,217 | How to handle single event for multiple Link button in c# asp.net | <p>I have A|B|C|D.....|Z link buttons on web forms . Now i have to add single event in code behind to handles all link buttons. How to do with C# asp.net</p>
| c# asp.net | [0, 9] |
3,586,649 | 3,586,650 | Validate expression is not working in Internet Explorer 6 while working fine in I.E 8 and 9 | <p>I have a change password page and on this page I have a regular expression validator as shown below</p>
<pre><code> <asp:RegularExpressionValidator ID="StrongPasswordValidator" runat="server" ControlToValidate="txtNewPassword"
Display="Dynamic" ErrorMessage="New password must be from... | javascript asp.net | [3, 9] |
4,657,498 | 4,657,499 | Java/Android class dependencies | <p>So I've inherited a rather large Android project. I'm trying to pull out the parts of the app that are no longer needed. Trouble is, there isn't anything I can remove that doesn't cause hundreds of compilation errors. Every class references so many other classes that it's almost impossible to remove anything. For... | java android | [1, 4] |
1,199,804 | 1,199,805 | Adding optgroup in select menu | <p>I have a jQuery code which will create <code>select</code> from a <code>ul li menu</code>. I want to add <code>optgroup</code> from parent menu, but don't know how to. Here is my code:</p>
<pre><code>// Create the dropdown base
jQuery("<select />").appendTo("#module-menu");
// Create default option "Go to...... | javascript jquery | [3, 5] |
5,396,212 | 5,396,213 | What is the scope of a 'var' declared inside a function? | <p>Could someone clarify for me please... I've read that creating a variable using reserved word 'var' makes that variable public but how can that be if the variable was created inside a function: </p>
<pre><code>$('#timeIn').timepicker({ 'scrollDefaultNow': true });
$('#timeIn').on('change', function() {
... | javascript jquery | [3, 5] |
5,096,169 | 5,096,170 | Post a UTF-8 string to a servlet using jquery | <p>I'm trying to POSt a UTF-8 string to my servlet (hosted in TomCat) but the string read on the server side is not UTF-8. I've verified via firebug that the ajax header's content-type has the utf-8 encoding set. I'm posting "MÉXICO" to the server but I'm receiving "MÉXICO".</p>
<pre><code>$.ajaxSetup({
scriptC... | java javascript jquery | [1, 3, 5] |
809,926 | 809,927 | How to get current compass reading android 2.1 | <p>How do I get the current compass reading in android 2.1? I know that I can initiate a listener and receive updates but I do not need constant updates I only need it to get the compass orientation when the user clicks a button.</p>
<p>Also what is the most accurate way to get the compass orientation? </p>
<p>Lastl... | java android | [1, 4] |
4,106,447 | 4,106,448 | How to attach class onClick event using JavaScript? | <p>I have a full AJAX page with elements that act like buttons (with events like <code>onclick="$('#workcont').load('pages/mypage.html #m3-to-12');"</code>). The elements being referenced are <code><li></code> and <code><tr></code> (in a table). </p>
<p>How do I attach event handlers to add the class <code... | javascript jquery | [3, 5] |
2,544,546 | 2,544,547 | AlertBox - Error occured while executing doInBackground() | <pre><code> public class IdAsync extends AsyncTask<String, Void, Void> {
AlertDialog alertDialog = new AlertDialog.Builder(MainClass.this).create();
protected Void doInBackground(String... params) {
.
.
alertDialog.setTitle("Reset...");
alertDialog.setMessage("R u sure?");
... | java android | [1, 4] |
2,090,885 | 2,090,886 | Pressing Escape Key on Open File Dialog Fires a JavaScript Key Press | <p>I have an HTML dialog set to remove itself when the escape key is pressed. I have a file field in the HTML dialog. If a user is using the system file dialog to select a file for the file field in the HTML dialog and presses escape, that event closes the system dialog and also passes the escape key event to the brows... | javascript jquery | [3, 5] |
5,414,875 | 5,414,876 | Hide DataPager if Pages = 1 | <p>How do I hide the DataPager if there is only one page. I don't know how todo this but maybe in the DataPager Events I have a asp:Button when clicked it gets records of course but sometimes there will be only one record and I need to hide the pager if there is one record so it could be done on postback but I don't kn... | c# asp.net | [0, 9] |
4,376,123 | 4,376,124 | how to create rar/zipfile and download | <p>Hi frnds can anyone tel me how to Create a Zip File Using PHP?
Actually i am having 10 files with boxes,if i select more than one check box that files should get zip/rar and i am able to save that in some path..</p>
<p>Please can anyone help in this solution as i am new to php</p>
| php javascript | [2, 3] |
2,543,364 | 2,543,365 | Focus on textfield and place marker at end of text with JS | <p>Following js look for the textfield q in queryform and focus it:</p>
<p><strong>js:</strong></p>
<p><code>if($("#queryform").length){
document.queryform.q.focus();
}</code></p>
<p><strong>html:</strong></p>
<pre><code><form id="queryform" name="queryform" action="" method="post"><input type=... | javascript jquery | [3, 5] |
2,596,261 | 2,596,262 | How do you store the visibility of a form into a variable in jquery? | <p>how do we check whether a input box is visible or not....then store its state into variable to be outpu via alert ?</p>
<p>right now i'm using and i think it wrong. can any body help ?</p>
<pre><code><input type="hello" name="hello" value="" style="visibility:hidden"/>
function testhideinput(){
... | javascript jquery | [3, 5] |
5,070,822 | 5,070,823 | Event listener, alert when jQuery is defined | <p>How do I create an alert after jQuery is loaded and fully usable?</p>
| javascript jquery | [3, 5] |
1,018,905 | 1,018,906 | jQuery Ajax call No element found issue | <p>I am getting a javascript error on firefox 3.5, when trying to call an ajax method.</p>
<p>Please find the error below:</p>
<pre><code>XML Parsing Error: no element found Location: moz-nullprincipal:{1a2c8133-f48f-4707-90f3-1a2b2f2d62e2} Line Number 1, Column 1:
^
</code></pre>
<p>this is my javascript function:... | javascript jquery | [3, 5] |
4,771,584 | 4,771,585 | $.getJSON trigger select change event | <p>I'm trying to add categories to a drop down list using jQuery Ajax. When an option is selected I would like to load the subcategories.</p>
<p>The problem that I'm facing is that the addition of options to the drop down list by the Ajax function seems to trigger the change event as well. How can I avoid this or rewr... | javascript jquery | [3, 5] |
629,565 | 629,566 | Generate a form from an object in ASP.NET | <p>Are there any tools available for ASP.NET that will let you generate a form from an object.</p>
<pre><code>CoolLibrary.GenerateFormFromObject(myObject);
</code></pre>
<p>I can imagine using reflection to bind to various controls, and using the type of fields to determine what type of control to generate (ie if <co... | c# asp.net | [0, 9] |
605,560 | 605,561 | Flexible enable/disable logging in Android app | <p>For performance wise, some people suggest use the following method, e.g.</p>
<pre><code>public class MyActivity extends Activity {
private static final String TAG = "MyApp";
private static final boolean D = true;
@Override public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceS... | java android | [1, 4] |
2,847,564 | 2,847,565 | How to handle the Close Button click event on my popup window using jquery | <p>I have this code in my Master page.</p>
<pre><code>PopUpWindow = function (titles, message) {
document.getElementById('window').innerHTML = message;
$("#window").dialog({
resizable: true,
height: 140,
title: titles,
width: 500,
message: "something here",... | javascript jquery | [3, 5] |
1,685,973 | 1,685,974 | java generics and c++ templates | <p>I am little confused on how templates in c++ and generics in java work. it would be helpful if someone explained me how this java code will be c++:</p>
<pre><code>public class Box<T> {
private T t;
public void add(T t1) {
this.t = t1;
}
public T get() {
return t;
... | java c++ | [1, 6] |
2,629,007 | 2,629,008 | Generate Total Price, multiple products on one page | <p>I'm trying to generate the total price on a one page store.</p>
<p>I have different products on the same page laid out like this within a foreach:</p>
<pre><code><input type="hidden" name="price_<?=$product_id?>" value="<?=$product_price?>" />
<input type="text" name="<?=$product_id?>" v... | php jquery | [2, 5] |
3,091,418 | 3,091,419 | How to combine Activities on Android? | <p>I have an a Java Android app that calls different activities. I thought this was how you would go about doing some object encapsulation (these three different activities show different screens but all relevant to the function of the program). </p>
<ol>
<li>The first is the main GUI and main page of the App.</li>
<l... | java android | [1, 4] |
1,145,922 | 1,145,923 | Android TextView cannot be resolved | <p>Hello iam getting a problem now with android text view, saying it cant be resolved to a type and i cant fully follow.
here is my code</p>
<pre><code>i mport android.app.ListActivity;
import android.os.Bundle;
import android.widget.TextView;
public class HttpLTC extends ListActivity {
TextView httpStuff;
@Overri... | java android | [1, 4] |
4,263,606 | 4,263,607 | how to get dropdown selecteditem in server side when I have set options using javascript | <p>I have set options on dropdownlist using javascript and cant able to get selectedItem. Any idea?</p>
| c# javascript asp.net | [0, 3, 9] |
1,705,393 | 1,705,394 | How can I load another usercontrol from a visible usercontrol, who is available in the Default.aspx? | <p>How can I load another usercontrol from a visible usercontrol, who is available in the Default.aspx? </p>
<p>I select in that case a name of page from a DropDownList. </p>
<p>After this event the visible usercontrol will be replaced by the selected usercontrol.</p>
<p>The source in Default.aspx</p>
<pre><code>&l... | c# asp.net | [0, 9] |
5,956,845 | 5,956,846 | Can I use php in javascript? | <p>Begginer's question.</p>
<p>Can I use PHP in javascript?</p>
<p>For example in jquery,</p>
<pre><code>...
...
triggers.eq(1).post('<?php admin/categories/delete/'. $list['id']; ?>);
</code></pre>
| php javascript | [2, 3] |
4,337,221 | 4,337,222 | How to get the parameter value from URL in Jquery? | <p>Hi all i have an url where i need to get an parameter from the url</p>
<pre><code> var URL="http://localhost:17775/Students/199/Kishore"
//here from the url i need to get the value 199
</code></pre>
<p>this is what i had been trying but the value is null here </p>
<pre><code> function getURLParameter(name) ... | javascript jquery | [3, 5] |
3,381,533 | 3,381,534 | Is there any way to make an email's subject bold? | <p>I am sending email using C#.NET, for which I am using <code>System.Net.Mail.MailMessage</code> class. I want to make a portion of the email's subject bold. Is there any way to do it?</p>
| c# asp.net | [0, 9] |
4,623,803 | 4,623,804 | how to do a getElementById on an ASP.NET control | <p>I have an element on my page.</p>
<pre><code><asp:Button ID="buttonToFind" runat="server" OnClick="SomeProcess" />
</code></pre>
<p>In javascript I'm trying to find this control using:</p>
<pre><code>document.getElementById("buttonToFind");
</code></pre>
<p>However it can't seem to find the control. My und... | javascript asp.net | [3, 9] |
2,548,010 | 2,548,011 | Script not running jquery .each | <p>This is a snippet from a puzzle game I'm trying to develop. The problem is it stops working after <code>each()</code> of jquery is called. Please help me figure out the problem. Thanks in advance.</p>
<pre><code> function setTotalInPositionPieces()
{
$("#board").children('div').each(function(index, e... | javascript jquery | [3, 5] |
1,864,982 | 1,864,983 | recognize which span tag triggered javascript function in div | <p>I have a div html element that has a click event set on it inline (not the way I want to do it but legacy code). See here</p>
<pre><code><div class="myDiv" onclick="triggerJavascript();" id="myDiv">
<span id="text1">Text 1<span>
<span id="text2">Text 2<span>
<span id="text3">Tex... | javascript jquery | [3, 5] |
4,887,032 | 4,887,033 | add image dynamiacally based on count in ASP.NET | <p>suppose I have 5 check boxes. Based on number of check box checked I have to add image and hyper-link to images. (i.e if I have checked 2 check box I have to load only 2 image and link to those 2 loaded images, in-case of 3 check box checked, 3 images needs to be loaded and link to those 3 loaded images).</p>
<p>Is... | c# asp.net | [0, 9] |
4,185,653 | 4,185,654 | C# Pager issue with dropdown | <p>I have create a ajax pages custom control with previous and next link and now when I am adding a drop down to the controls it is not working as desired..</p>
<p>I have used the code form <a href="http://www.flixon.com/Articles/Custom-ASPNET-Data-Pager-Control-22.aspx" rel="nofollow">http://www.flixon.com/Articles/C... | c# asp.net | [0, 9] |
796,943 | 796,944 | Using jquery how can I remove a DIV if it's contents are empty? | <p>I'm looking for a way to remove the following empty div using jquery.</p>
<p>The following div is output sometimes without content inside it. For display reasons I need to remove it when it's empty.</p>
<pre><code><div class="field-group-format group_call_to_action_aside div group-call-to-action-aside box yello... | javascript jquery | [3, 5] |
898,577 | 898,578 | Output page not rendered correctly | <p>I created a page with some controls on it. When I put "<% label.Text = "changed";%>" after the definition of Label, Label's text value is not rendered after the page is executed. Why?</p>
<pre><code><div>
<tagprefix:MD ID="CC" runat="server" />
<asp:TextBox runat="server" ID="TextBox... | c# asp.net | [0, 9] |
5,544,169 | 5,544,170 | disable default behaviour of Internet Explorer | <p>I am using asp.net C#.</p>
<p>I have one html input field, and 3 image buttons (asp.net controls)</p>
<ul>
<li><p>ImageButton 1 = perform delete operation</p></li>
<li><p>ImageButton 2 = perform Edit operation </p></li>
<li><p>ImageButoon 3 = perform duplicate operation</p></li>
</ul>
<p>My problem occurs when 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.