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,513,198 | 3,513,199 | Redirect via datagridView | <p>I am currently working in ASP.Net / C#. I am trying to make the server redirect to another page using via the rows in a datagrid, however, my code doesn't seem
to work. Any help would be appreciated. </p>
<p>
... | c# asp.net | [0, 9] |
5,308,572 | 5,308,573 | A Way Of Saying "For All Subclasses In My Project That Extend This Superclass"? | <p>Here's something that's got me a bit stumped but intrigued all the same. In my Android game I have various Levels that extend the superclass Level. What I am trying to do is build a levelDirectory (based on the Singleton DP) that essentially is an object that has a HashMap object within it that stores all the Level ... | java android | [1, 4] |
483,687 | 483,688 | Scroll down to Form DIV area? | <p>Every time I add an item - I want to scroll down to <strong>Add Item Form</strong> form (<code>#form_additem</code>) - how can that be done?</p>
<p>Example of HTML Code:</p>
<pre><code><div class="item"> 1 </div>
<div class="item"> 2 </div>
<div class="item"> 3 </div>
<div cl... | javascript jquery | [3, 5] |
3,747,801 | 3,747,802 | Why my page is refresed every time I click a empty link? | <p>I have a link like this:</p>
<pre><code><a hreflang="15" class="comment-show-link" href="">View/hide comments</a>
</code></pre>
<p>And then have this code to show/hide the content:</p>
<pre><code>$('.comment-show-link').click(function(e) {
$('#comment-show-'+$(this).attr("hreflang")).slideToggle('sl... | javascript jquery | [3, 5] |
5,662,673 | 5,662,674 | How to Iterate data from array inside another array in jquery | <p>i have an array inside another array like this in php </p>
<pre><code>Array
(
[common_search] => Array
(
[BusinessName] => Sun Shine Vision
[Address] => Amulia St Madhava Pharmacy Jn
[Phone] =>
)
[cache_table] => Array
(
... | php javascript jquery | [2, 3, 5] |
5,567,258 | 5,567,259 | How to get nested control's ClientID using JavaScript? | <p>Today I got an interview question as titled.</p>
<p>For example, a Update Panel contains a Panel, the Panel contains a TextBox. </p>
<p>How can I get the TextBox ClientID?</p>
<p>The only I could think of that is:</p>
<ol>
<li><p>We can predict the TextBox ClientID depends on the ClientID mode and use getElemen... | javascript asp.net | [3, 9] |
1,068,280 | 1,068,281 | Efficient paging in Web Application | <p>I'm new to paging in web applications. I searched the web and found lots of tutorial on paging for web site(Create new website in VS). I cant use the current method of enable paging in vs which can be done easily because its not efficient & retrieve the whole table of data from database.</p>
<p>Default paging—C... | c# asp.net | [0, 9] |
358,270 | 358,271 | A function to convert null to string | <p>I want to create a function to convert any null value e.g. from a database to an empty string.
I know there are methods such as if value != null ?? value : String Empty but is there a way to pass null to a method e.g.</p>
<pre><code>public string nullToString(string? value)
{
if(value == null) return empty;
... | c# asp.net | [0, 9] |
5,780,131 | 5,780,132 | javascript unterminated string constant | <p>I have the following function which I pass in a value, but this value is coming from the database. However I get the following javascript when doing the following: </p>
<pre><code>showrootcausedetails('showrootcause',true,'<%# eval("Root Cause Analysis").ToString() %>')
</code></pre>
<p>I know I have to esc... | c# javascript asp.net | [0, 3, 9] |
4,074,831 | 4,074,832 | Exception Unable to set property 'href' of undefined or null reference when | <p>The problem is this: I try to dynamically change the innerHTML and href of an LINk in a function <code>CheckCookie</code> which is executed in body - onload. Here is the function: </p>
<pre><code>function checkCookie()
{
var username = getCookie("username");
if (username != null && username != "")
... | javascript jquery | [3, 5] |
1,981,823 | 1,981,824 | How to do this in jQuery | <p>I have the following code:</p>
<pre><code>var tempIdx = document.getElementById('cityBuild').selectedIndex;
var tempBuilding = document.getElementById('cityBuild').options[tempIdx].value;
// Do stuff with tempBuilding
</code></pre>
<p>I spent some time trying to do it in jQuery under the assumption it'd be easier... | javascript jquery | [3, 5] |
3,741,032 | 3,741,033 | Single queue for jQuery animate() elements | <p>By default the jQuery queue that is created for animate() is done per element, I'm wondering if there is a way to create a single queue for all animations done with animate()? I.e. only one animation should be occuring at a time</p>
| javascript jquery | [3, 5] |
1,146,944 | 1,146,945 | Using jQuery and "if/else" to animate | <p>I'm back with another jQuery problem, woo! Here's what I'm trying to do, I have text field, and I want it's background to turn red if the user doesn't input anything, or turn green if something is entered. Both checks occur on "blur," and I'm using ".animate()." to change the background color. (I have jQuery-Color t... | javascript jquery | [3, 5] |
5,328,647 | 5,328,648 | Null Pointer Exception in my Listener | <p>I am making a call to my AsyncTask from my Fragment class, when i try to send the data back to my Fragment, i get a null pointer exception. </p>
<pre><code>public interface AsyncListner {
public void onLoadComplete(List<DocumentResponse> documents);
}
</code></pre>
<p>My Fragment class implements the... | java android | [1, 4] |
8,261 | 8,262 | I want a similar effect with the one from this website. Can it be done with jQuery? | <p>I need a jQuery effect something similar with the one from this website:</p>
<p>[site removed]</p>
<p>If you go hover the right menu (right of the slider), top is Visit SMWF you will see that the slider is changing. I want something similar.</p>
<p>Anyone knows a JQ plugin or at least can anyone share how to do i... | javascript jquery | [3, 5] |
3,674,432 | 3,674,433 | JQuery script conflict | <p>I am using a jQuery Lightbox for a gallery on a page with a jQuery Slideshow and menu bar, whilst the menu bar and Slideshow work ok, the Lightbox does not.</p>
<p>CONFLICT WITH LIGHTBOX
see <a href="http://concertorestaurant.creativeconnect.com.au/functions_gallery.html" rel="nofollow">http://concertorestaurant.cr... | javascript jquery | [3, 5] |
4,021,080 | 4,021,081 | jQuery hide image without $somestuff in title | <p>I am trying to code a piece where thousands of image thumbnails are on a page and the users want to search for them rapidly and repetatively. </p>
<p>So turned to trusty jQuery. I have come up with the following code: </p>
<pre><code>$(document).ready(function () {
$('input[name="search"]').keyup(function(e){
... | javascript jquery | [3, 5] |
5,204,911 | 5,204,912 | merge 2 classes into one class at runtime | <p>suppose i have Class A with some properties and Attributes, and Class B with the same, how can i merge these 2 class Properties and properties Attributes into 1 class at runtime, or better is how can i add these 2 classes into a a third class as properties of this new class with their Fields, Properties, Methods, e... | c# asp.net | [0, 9] |
125,812 | 125,813 | ClickListener and ListView Item Layout | <p>I have the following ClickListener on my ListView. My item layout is a RelativeLayout with 3 TextViews. I'm trying to return the value of the list item but I'm getting "android.widget.TextView@44ed....". What am I doing wrong?</p>
<pre><code> itemList=(ListView)findViewById(android.R.id.list);
itemLi... | java android | [1, 4] |
5,996,256 | 5,996,257 | Loop through 2 arrays in jquery and combine | <p>I have 2 arrays, one with cities, and another array with ID's...
I would like to loop both, and then output some HTML</p>
<p>Right now im only looping cities, and then appending some HTML to a as following:</p>
<pre><code>if ($jq(".area").length > 0) {
var region = $jq(".hiddenFieldRegion").val();
var... | javascript jquery | [3, 5] |
5,040,868 | 5,040,869 | How to replicate the "popup" messages seen in SE sites? | <p>StackOverflow and other sites in the SE Network have nifty things that pop up with messages, for example, when you click on an upvote link while not logged in. I'm not sure what this sort of thing is called, though.</p>
<p>I'm assuming that this is done with CSS somewhere, but looking at the source of the pages wit... | c# asp.net | [0, 9] |
3,797,565 | 3,797,566 | Inline statement keypairvalues | <p>I have the following HtmlLink:</p>
<pre><code>HtmlLink htmlLink = new HtmlLink();
htmlLink.Attributes.Add("href", "/style/" + category + ".css");
htmlLink.Attributes.Add("type", "text/css");
htmlLink.Attributes.Add("rel", "stylesheet");
</code></pre>
<p>Im trying to write it in a one line statement, but I dont... | c# asp.net | [0, 9] |
3,368,217 | 3,368,218 | Select All Elements that do not have a binding to a given function? | <p>If I assign a function to a variable <em>foo</em>, is there a way to select all elements that do not have a binding to <em>foo</em> given that they are assigned via a structure like <code>$('.elementsWithClass').click(foo)</code>?</p>
<p>My motivation here is we have ajax requests replacing parts of the DOM, and I ... | javascript jquery | [3, 5] |
1,412,493 | 1,412,494 | parallax with 1 image | <p>I want to use parallax effect with only 1 image. Can it be done?</p>
<p>Actually, it's not really parallax, I have one big image in the center of screen, so when I move my mouse to the left, I want the image slightly moves to the right, move mouse to the right, the image slightly moves to the left, move mouse up im... | javascript jquery | [3, 5] |
256,441 | 256,442 | In jQuery How to Call a Function When Images Loaded In a "Each & Load" Loop | <p>I am writing a little plugin like this:</p>
<pre><code>(function($){
$.fn.extend({
myplugin: function (callback) {
return this.each(function(){
$(this).one('load',function(){
// Manipulate Images
}) ;
}) ;
}
}) ;
})(... | javascript jquery | [3, 5] |
1,252,234 | 1,252,235 | How to determine whether the user has switched to another tab of the current browser | <p>I wish to determine using jquery or javascript that is the user has switched tab standing on the same browser?</p>
<p>I.e. if the user is currently standing on browser say mozilla-firefox tab no.1 , now he has opened another tab say tab no.2 , at that point a popup should appear , with the message "tab changed"</p>... | javascript jquery | [3, 5] |
2,340,526 | 2,340,527 | Convert this JavaScript code to jQuery | <p>I am new to jQuery, so I'm having trouble solving this. I want this converted to jQuery.</p>
<p><strong>JavaScript:</strong></p>
<pre><code>var el = document.getElementById("box");
el.style.backgroundColor = "#0000000";
var new_el = document.createElement("div");
new_el.innerHTML = "<p>some content</p>... | javascript jquery | [3, 5] |
2,477,803 | 2,477,804 | Emulate drag-and-drop using JavaScript | <p>I know that jQuery can programmatically trigger events on DOM elements that are listening to those events. For example <code>$el.click()</code> will trigger a click event on <code>$el</code> without having to physically click <code>$el</code> with the mouse.</p>
<p>Given two DOM elements <code>dom1</code> and <code... | javascript jquery | [3, 5] |
1,182,324 | 1,182,325 | is it possible creating a floor plan with clickable region and will be used as a web app?by floor plan i mean what architects use | <p>What tools could i use to create a web app with an interactive floor plan?by interactive i mean there are clickable regions in a floor plan.if you have any experience developing such web app could you point me to the right direction.thanks in advance</p>
| java php javascript jquery | [1, 2, 3, 5] |
57,517 | 57,518 | Populate an array to consist of all of the values in an html select list using jQuery | <p>I have an HTML select list (let's call it List A) that is dynamically populated with a list of values. I need to change another select list (List B) depending on the value of List A. That part, I can do. Ordinarily, the user selects <em>one</em> element of List A, and gets a List B contingent on List A. </p>
<p... | javascript jquery | [3, 5] |
207,284 | 207,285 | Javascript window.open Calling Twice | <p>I'm using this code in a php conditional if/else statement to open a new window.</p>
<pre><code>echo("<script type=\"text/javascript\">
<!--
window.open(\"http://www.example.com/index.php?$var\");
//-->
</script>
");
</code></pre>
<p>It's opening 2 windows instead of one, but only on my live site... | php javascript | [2, 3] |
3,190,280 | 3,190,281 | Cannot make a static reference to the non-static method | <p>I'm trying to insert string value from R.string resource xml file and i'm getting error message.</p>
<p>here is the Java code:</p>
<pre><code> public static final String TTT = (String) getText(R.string.TTT);
</code></pre>
<p>This is the error message:</p>
<pre><code>Cannot make a static reference to the non-... | java android | [1, 4] |
5,187,669 | 5,187,670 | jquery detecting when we are at the end of text in textarea | <p>I am just trying to learn jquery, and I was wondering how can you figure out when, given a bunch of text in a textarea, is the user at the end of textarea and tries to click down. For example, the last line of the text is asdf, and when the user is at that line, and presses down on the arrow key, i would like to get... | javascript jquery | [3, 5] |
3,161,947 | 3,161,948 | get the first tr that contains tds | <p>In jquery how do I get the first table row that contains <code><td>s</code></p>
<p>So far my code looks like this but its not working?</p>
<pre><code>$('#mytable tr').has('td:first').html();
</code></pre>
<p>thanks</p>
| javascript jquery | [3, 5] |
2,253,442 | 2,253,443 | How to programmatically detect if an object is a jQuery object? | <p>How can I programmatically detect if an object is a jQuery object? For example:</p>
<pre><code>// 1. declare some variables
var vars = [1, 'hello', ['bye', 3], $(body), { say: 'hi' }];
// 2. ??? : implement function that tests whether its parameter is a jQuery object
function isjQuery(arg) { /* ??? */ }
// 3. pro... | javascript jquery | [3, 5] |
4,944,773 | 4,944,774 | jquery - Add exception onclick | <p>I have the following input fields:</p>
<pre><code><input type="text" value="5" maxlength="12" id="qty" class="input-text qty" name="qty2050" tabindex="1">
</code></pre>
<p>and </p>
<pre><code><input type="text" value="0" maxlength="12" id="qty" class="input-text qty" name="qty2042" tabindex="1">
</cod... | javascript jquery | [3, 5] |
3,361,932 | 3,361,933 | jQuery .live('click') seems to only bind to the first element | <p>So I have a bunch of buttons on a page, interspersed with other HTML, that look like this:</p>
<pre><code><input class="add_new_task" type="submit" value="Add New Task">
<input class="add_new_task" type="submit" value="Add New Task">
<input class="add_new_task" type="submit" value="Add New Task">
... | javascript jquery | [3, 5] |
1,787,050 | 1,787,051 | PHP not support double | <p>Hi I have written one function which is giving diff out put in PHP and JAVA. Please help me to get same output in PHP too. below are that functions written in both languages.</p>
<p>function in JAVA </p>
<pre><code>public String getLat(String v_str, String strNS){
try
{
double lat = Intege... | java php | [1, 2] |
4,411,781 | 4,411,782 | JavaScript Split & jQuery .val() can I chain them? | <p>Here's a very simple question... can I add/chain the JS method <code>.split()</code> to jQuery's <code>.val()</code> method? For example...</p>
<pre><code>var myNewArray = $("#myString").val().split(",");
</code></pre>
<p>I seem to get <code>$("#myString").val().split</code> is not a function in Firebug? I though... | javascript jquery | [3, 5] |
4,955,732 | 4,955,733 | jQuery Make a Link in Active Status | <p>I am working on a HTML template, but I cannot touch the HTML code, I can only work on CSS and JS files. So I cannot in any way edit the HTML code.</p>
<p>What I am trying to achieve is to put some links in active status when jQuery or Javascript recognizes that the current page URL is the same one of the link I wan... | javascript jquery | [3, 5] |
715,001 | 715,002 | jQuery change() fires on Page Load | <p>This code fires on the page load, but not when the change event actually occurs. </p>
<pre><code>jQuery('select#order_note_type').change(function() {
random code here
});
</code></pre>
<p>I have to add that it is not inside the <code>ready</code> method. Do I need to bind it?</p>
<p>EDIT: I changed my code to be ... | javascript jquery | [3, 5] |
5,973,066 | 5,973,067 | jQuery JSON nested loops | <p>I have the following script:</p>
<pre><code>function drawDimensions(divid) {
$.getJSON('dimensions.json', function(data) {
$.each(data, function(index) {
var ppp = $('#' + divid).append("<div class='dTitle'><img src='images/cleardot.gif' />" + index + "</div><br>");
... | javascript jquery | [3, 5] |
3,103,741 | 3,103,742 | Android listing contacts sync sources | <p>Does anyone knows how to get the contacts sync sources in android? like google source, facebook source or from the phone contacts.</p>
| java android | [1, 4] |
5,327,073 | 5,327,074 | Get link value in html document with jQuery? | <p>Let's say I have a link in a table like:</p>
<pre><code> <td class="ms-vb" width="100%">
<a onfocus="OnLink(this)" href="/Lists/Business%20Divisions/DispForm.aspx?ID=2" onclick="GoToLink(this);return false;" target="_self">Train<img src="/_layouts/images/blank.gif" class="ms-hidden" alt="" width="... | javascript jquery | [3, 5] |
4,212,422 | 4,212,423 | Accessing siblings in jquery | <p>I want to access the sibling of a column :</p>
<pre><code> <tr>
<td>1</td>
<td>2</td>
<td>3</td>
</tr>
</code></pre>
<p>When i click over 3, how can i access 1?</p>
| javascript jquery | [3, 5] |
2,330,793 | 2,330,794 | Related to executing Java programs through Python | <p>I am using os.system to execute a java program through a python script.
I need to pass a file name to the java program as an argument.
I am not able to figure out how to pass the relative file location. What should be my reference for determining the relative location. I tried to use the location of the python scrip... | java python | [1, 7] |
745,403 | 745,404 | Use python to execute javascript on a given list of websites and output result to a csv | <p>I have an input file which contains a list of URLs. I am trying to execute a script on each of those URLs and output the result of that script to a CSV. </p>
<p>An example is trying to find if a given list of sites are using Google Analytics. The script below when run in the context of the page will return a JSON ... | javascript python | [3, 7] |
2,166,878 | 2,166,879 | Abstract question about Dom Object as Value Object in Javascript | <p>I've got an image gallery where each item in the gallery has a unique ID I'm using to tie it to my backend so that I can run DB actions etc. I'm using the data attribute to hold the 'imageid' on the parent div of each image for example: data-imageid="168"</p>
<p>The image gallery items have alot of nested divs so o... | javascript jquery | [3, 5] |
4,912,192 | 4,912,193 | Building an HTML table on the fly using jQuery | <p>Below is the code I use to build an HTML table on the fly (using JSON data received from the server).</p>
<p>I display an animated pleasewait (.gif) graphic while the data is loading. However, the graphic freezes while the JavaScript function is building the table. At first, I was just happy to make this happen (di... | javascript jquery | [3, 5] |
300,308 | 300,309 | Two docready() events are firing with jQuery.tabs(); | <p><strong>Problem:</strong> When the document is ready, jQuery will fire off the tabs function below. Then after tabs finishes, it fires the document ready function again. What would be a good approach to only trigger the document ready function once? Thanks!</p>
<pre><code>$(document).ready(function() {
$("#index-... | javascript jquery | [3, 5] |
107,690 | 107,691 | How To Update JQuery Progress Bar Value from a Variable | <p>I have a Problem Regarding the JQuery Progress Bar.</p>
<p>I Need to set the Value of the Progress bar with the Value stored in a Javascript Variable.</p>
<pre><code> $(document).ready(function ()
{
var text = $('.Gadget').find('input[name="Percentage"]').val();
$(function()
{
$( ".ProgressBar" ).prog... | javascript jquery | [3, 5] |
1,687,589 | 1,687,590 | jQuery Tree View and wp_list_pages | <p>I'm looking to use the <a href="http://www.dynamicdrive.com/dynamicindex1/treeview/index.htm" rel="nofollow">jQuery TreeView</a> script on wp_list_pages to get a nice collapsable-tree effect going. </p>
<p>The script requires that I add some classes to the list elements such as:</p>
<pre><code><ul id="red" clas... | jquery javascript | [5, 3] |
3,251,525 | 3,251,526 | How to blank the hidden field value from Jquery | <p>Assume that a hidden field </p>
<pre><code><input type="hidden" id="hdn" name="hdn" value="100" />
</code></pre>
<p>So i want to blank the value of hidden field using Jquery.
In javascript we can blank using this syntax</p>
<pre><code>document.getElementById("hdn").value = '';
</code></pre>
<p>but i want ... | javascript jquery | [3, 5] |
894,389 | 894,390 | How to rewrite this javascript code using only jQuery instead | <p>I am a beginner at jQuery, so I had a friend help me write some script for an effect I was having trouble with. Problem, is he is pretty much only familiar with Javascript and doesn't know how to translate this same script into jQuery. Is there a way to write this same code into jQuery?</p>
<pre><code>$(document).r... | javascript jquery | [3, 5] |
2,343,529 | 2,343,530 | My single-page scrolling website's links remain active after press and my navigation is broken until I scroll | <p>I created a single-page website that uses twitter's bootstrap for a fixed position nav bar at the top. I use some jquery plugins to slowly scroll the page. The site works fine on my desktop; however, a problem arises when opening the site on a mobile device. I have currently only tested it on my iPhone 4 at the m... | javascript jquery iphone | [3, 5, 8] |
16,193 | 16,194 | initialize then output in single line | <p><strong>PHP</strong></p>
<pre><code><?php
$x = 10;
echo $x = 20;
?>
</code></pre>
<p><br/>
<strong>c++</strong></p>
<pre><code>#include<iostream>
using namespace std;
int main(){
int x = 10;
cout << x = 20;
return 0;
}
</code></pre>
<p>Why in php initialize then ouput... | php c++ | [2, 6] |
911,542 | 911,543 | Android Include File Equivalent | <p>I have a menu that I want to implement on multiple activities. If I change the menu I don't want to have to update these everytime in every place</p>
<pre><code>onCreateOptionsMenu()
</code></pre>
<p>or</p>
<pre><code>onOptionsItemSelected()
</code></pre>
<p>Is there a way to include these sections in an activi... | java android | [1, 4] |
5,695,389 | 5,695,390 | How to perform javascript inside C# event | <p>I am inside an event and inside this event I want to have a javascript alert display a message to a user. But I cannot seem to get this to work.</p>
<pre><code>protected void dgvStaff_Deleting(object sender, Infragistics.Web.UI.GridControls.RowDeletingEventArgs e)
{
// Code stub
obj... | c# asp.net | [0, 9] |
2,188,401 | 2,188,402 | jQuery Analog Gauge | <p>I'm trying to get something like the <a href="http://dojotoolkit.org/reference-guide/dojox/widget/AnalogGauge.html#a-partial-circle-gauge-with-two-indicators-programmatic" rel="nofollow">Dojo Toolkit Analog Gauge widget</a>. I'm searching for a highly customizable jQuery plugin for analog gauge.</p>
<p>I found a l... | javascript jquery | [3, 5] |
2,159,562 | 2,159,563 | Best way of getting a a series of custom fields into an array? | <p>I've a series of custom fields attached to certain pages. These fields are named slide1, slide2, side3, slide4, slide5, slide6. </p>
<p>These are images which are going to be used as a slideshow (I'm using jflow slider for this - <a href="http://net.tutsplus.com/articles/news/using-the-wonderful-jflow-plugin-screen... | jquery php | [5, 2] |
5,410,217 | 5,410,218 | Handle/Grip bar convention | <p>Greetings,</p>
<p>Because textarea elements do not resize with jquery.touch ( <a href="http://plugins.jquery.com/project/touch" rel="nofollow">http://plugins.jquery.com/project/touch</a> ), I've put an textarea in a table where the first row allows the user to drag the table around and resize it with the textarea g... | jquery iphone javascript | [5, 8, 3] |
4,602,425 | 4,602,426 | what is the best practice of binding jQuery click event to each anchor tag on every row of a table | <p>There is a grid (just html table) that lists users and you can delete a specific user by clicking on delete link. The usual way I do is </p>
<pre><code><% foreach (var user in Model.Users) {%>
<tr >
<td align="right"><%= user.Name %></td>
<td><%= user.Level %></td>... | javascript jquery | [3, 5] |
1,748,150 | 1,748,151 | Jquery not functioning correctly (not waiting?) | <p>Here is my javascript:</p>
<pre><code> $('#Service').val("2");
$("#Service").change(); // Sets new options in subservice.
$('#Subservice').val("5");
//EDIT:
alert($('#Subservice').length); // Returns 1, when there are far more in it.
</code></pre>
<p>Service and Subservice are drop down boxes.</p>
<p>On ... | javascript jquery | [3, 5] |
4,585,641 | 4,585,642 | Problem with simple onClick action | <p>Simple code which is copied from web doesnt seem to be working. There is no action when i click button but text of it is correctly changed. What's wrong?</p>
<pre><code>package android.test;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
i... | java android | [1, 4] |
4,843,563 | 4,843,564 | Clean up dynamically created 'html elements' on page? | <p>I have javascript showing results from a search, and when the users click 'more' - more results are added, so on average there can be up to 1,000 results displayed on a session, with each result having 20kb images, so after about 100 results you can start to see the page get slower.</p>
<p>The images are currently ... | javascript jquery | [3, 5] |
4,886,389 | 4,886,390 | Error in Javascript code? | <p>What is wrong in this code? it shows an Syntax error in <code>eval(e.text); //run the script</code></p>
<pre><code> runScripts1: function(e) {
if (e.nodeType != 1) return false; //if it's not an element node, return
if (e.tagName.toLowerCase() == 'script') {
eval(e.text); //run the scr... | javascript jquery | [3, 5] |
3,543,047 | 3,543,048 | Button in an AlertDialog | <p>How would I set up the onClickListener for a button inside an alertDialog?
Do I just use the onClick of the whole activity or do I make a new one inside the alertDialog builder? </p>
<p>EDIT: Sorry I didn't make it clear first time but this isn't for the positive/negative buttons. This is for a button within a cust... | java android | [1, 4] |
876,175 | 876,176 | downloadable link in website | <p>How to create a downloadable link in a website.</p>
| asp.net javascript | [9, 3] |
5,350,279 | 5,350,280 | HTML elements loaded after page load not recognized by Javascript | <p>I've had this issue with two different projects and finally realized what it could have been on this most recent one. In both, I'm pulling in some dynamic text and a dynamically-valued button from SQL (in one project through a Python MVC, in the other through PHP), and I have an onclick function on the button that h... | javascript jquery | [3, 5] |
5,618,282 | 5,618,283 | Override default Android themes | <p>I've been able to override any themes that have names with "android:" prepended to them, but the Android themes.xml also defines properties that don't seem to be able to be overridden. For example:</p>
<pre><code><!-- Variation on the Light theme that turns off the title -->
<style name="Theme.Codebase" pa... | java android | [1, 4] |
29,547 | 29,548 | Is this function getting assigned as a method or already executed? | <p>Coming from C++ and Java, I am a beginner with Javascript. This code pattern confuses me (found in a jQuery Application):</p>
<pre><code>var opts = { drop : empty};
function drop(arg){
opts.drop(arg);
//do something
}
</code></pre>
<p>How I would read this:
The object <code>opts</code> is created and the... | javascript jquery | [3, 5] |
2,729,794 | 2,729,795 | jQuery tools tabs fade effect | <p>I used <a href="http://flowplayer.org/tools/demos/tabs/ajax-history.html" rel="nofollow">jQuery tools</a> to create a tabs setup, and I would like to incorporate the fade effect, but when I try to do so, it bombs out, here is my code:</p>
<pre><code>$(function() {
$("#flowtabs").tabs("#flowpanes > div", { hi... | javascript jquery | [3, 5] |
2,888,618 | 2,888,619 | Assign 100% height to a div with jQuery | <p>I have a similar problem like <a href="http://stackoverflow.com/questions/1128226/problem-using-jquery-to-animate-div-to-100-height">This</a></p>
<p>I want to animate a div, to a css property of 100% height.
This doesnt seem to work:</p>
<pre><code>$("#somediv").css('height', '100%');
</code></pre>
<p>Is there a ... | javascript jquery | [3, 5] |
1,274,198 | 1,274,199 | How to extend an object while ignoring null values? | <p>Say for example I have an object of</p>
<pre><code>var user = {
"Name": "Dan",
"Age": 27,
"Hobbies": null
};
</code></pre>
<p>which I would like to merge onto the following base object so that my user object will have all the required properties</p>
<pre><code>var base = {
"Name": null,
... | javascript jquery | [3, 5] |
3,002,146 | 3,002,147 | unterminated string constant javascript error when opening tiny box | <p>I am opening a url using tiny box by following code</p>
<pre><code> function openAddBranchPopup(siteurl)
{
TINY.box.show(siteurl+'/pages/dept.php',1,780,'',1);
}
</code></pre>
<p>but in internet explorer 8 and 9, i am getting "unterminated string constant" error. Please help.</p>
<p>Thanks</p>
| javascript jquery | [3, 5] |
2,911,898 | 2,911,899 | Can I add my caching lines to global.asax? | <p>Take the following lines of code that would work fine in a c# asp.net file:</p>
<pre><code>Response.Cache.SetExpires(DateTime.Now.AddSeconds(300));
Response.Cache.SetCacheability(HttpCacheability.Public);
</code></pre>
<p>Can I set these in some way in global.asax so that by default my entire application will supp... | c# asp.net | [0, 9] |
1,166,944 | 1,166,945 | How can I load an aspx page in another aspx page in a specific <div> tag | <p>I would like to update a certain part of the page with content from another *.aspx page, thus avoiding having to have just one (very) long page of code.</p>
<p>So: How can I load an aspx page in another aspx page in a specific tag, without having to reload the entire page.</p>
| c# asp.net | [0, 9] |
3,638,506 | 3,638,507 | .aspx code errors "Element 'xxxx' is not supported." | <p>I'm getting a bunch of these errors for my image buttons, link buttons, text boxes, and labels. These errors are in my .aspx code. Why am I getting so many?</p>
<pre><code><%@ Page Language="C#" AutoEventWireup="true" CodeFile="frmSearchPersonnel.aspx.cs" Inherits="frmSearchPersonnel" %>
<!DOCTYPE html... | c# asp.net | [0, 9] |
3,994,941 | 3,994,942 | Multiple PHP vars in a JavaScript onclick() problem | <p>I have the following php code </p>
<pre><code>$bigImageSrc = 'images/'.$prodXML->bottles->bottle[$i]->bigImage;
$text = $prodXML->bottles->bottle[$i]->title;
$title = $prodXML->bottles->bottle[$i]->text;
echo "<a href=javascript:void(0); onClick=showProduct('$bigImageSrc', '$text',... | php javascript | [2, 3] |
5,180,220 | 5,180,221 | How to get the keys from ContentValues? | <p>My ContentValues object has string keys, and I would like to get a String[] result having all the keys in it?</p>
<p>How do I iterate a ContentValues object?</p>
<p><strong>EDIT 1</strong></p>
<p>After getting two responses I came up with this, do you see problems with it?</p>
<pre><code> ArrayList<Str... | java android | [1, 4] |
2,748,689 | 2,748,690 | StringBuilder.Append with float | <p>StringBuilder.Append using float is truncating the value. What is it converting to and how can I stop it from truncating?</p>
<p>AttributeOrder is type float and I am losing precision when building the string.</p>
<pre><code>if ( AttributeOrder != 0 )
{
if ( Result.Length > 0 )
{
Result.App... | c# asp.net | [0, 9] |
1,869,832 | 1,869,833 | How to pass DataTable to Javascript | <p>How can I pass a DataTable element with a lot of rows, to Javascript ? </p>
<p>The idea is to allow me do a loop in my variable that receive this DataTable and recover the values.</p>
| c# javascript | [0, 3] |
3,061,028 | 3,061,029 | Changing IFrame src attribute | <p>I'm working with a few test pages and I'm having trouble loading the pages in to the IFrame with the src attribute using jQuery. All the pages are local.</p>
<p>Here are the scripts I've tried:</p>
<pre><code>$(document).ready(function () {
$("#button1").click(function () {
$("#iframeBox").attr("src", ... | javascript jquery | [3, 5] |
1,674,234 | 1,674,235 | how to get array of array in javascript | <p><strong>I'm creating graph and for this I need data in this form in javascript:</strong></p>
<pre><code>var currYear = [["2011-08-01",796.01], ["2011-08-02",510.5], ["2011-08-03",527.8], ["2011-08-04",308.48]]
</code></pre>
<p><strong>Data is coming from JSON</strong></p>
<pre><code>var total_click = JSON.parse(&... | javascript jquery | [3, 5] |
1,347,741 | 1,347,742 | ASP.NET dynamically insert code into head | <p>I'm working inside of a Web User Control (.ascx) that is going to be included in a regular web form (.aspx), but I need to be able to dynamically insert code into the head of the document from the User Control. In my Coldfusion days <cfhtmlhead> would do the trick. Is there an equivalent of this in ASP.NET or... | c# asp.net | [0, 9] |
3,165,252 | 3,165,253 | Is it possible to use javascript popup to accept input in php | <p>Is it possible to use javascript popup to accept input in PHP</p>
<pre><code><script type="text/javascript">
<!--
function popup(){
var answer = prompt ("What is your name ?","")
return answer
}
// -->
</script>
<?php
$value = echo "popup()"; // error
?>
</code></pre>
| php javascript | [2, 3] |
3,480,957 | 3,480,958 | How to create the view in android? | <p>Can someone tell me how should i create the above view <a href="http://www.google.com.sg/imglanding?q=dialog%20box%20android%20example&hl=en&sa=X&tbm=isch&tbnid=6GDKENa7dfWAPM%3a&imgrefurl=http://thedevelopersinfo.com/2009/10/22/email-sending-in-android/&imgurl=http://thedevelopersinfo.com/wp... | java android | [1, 4] |
2,472,407 | 2,472,408 | Get a File information that is open or not in physically path in asp.net C# | <p>I am facing a problem regarding when a file open at physically end then i will get information that file open or not (File like as .xml , .txt).</p>
<p>So how to get information regarding this file .</p>
<p>I am awaiting for a positive response.</p>
<p>Thanks,</p>
<p>Sanwar. </p>
| c# asp.net | [0, 9] |
4,803,722 | 4,803,723 | Apply mask a string in C# asp.net? | <p>Hi all in my project i want a currency in three formats,.</p>
<pre><code>1) ...999,999,999
2) ...999,999,999.00
3) ...999,999,99
</code></pre>
<p>The format is specified in mysql data table field. My project is in ASP.NET so I can't use MaskedTextBox . Code I tried:</p>
<pre><code>String.Format("{999,999,999}",ra... | c# asp.net | [0, 9] |
1,387,955 | 1,387,956 | Importing C++ enumerations into C# | <p>I'm currently working on creating a new C# project that needs to interact with an older C++ application. There is an error enumeration that already exists in the C++ app that I need to use in the C# app.</p>
<p>I don't want to just redeclare the enumeration in C# because that could cause sync issues down the line i... | c# c++ | [0, 6] |
2,131,314 | 2,131,315 | Trying to get a jquery script to hide an element when a user clicks outside the scope | <p>I am trying to implement a bit of code that Twitter use to toggle off the drop-down login box when a user clicks outside the scope of the drop-down box itself.</p>
<p>I am having a bit of trouble, currently if I click outside the scope of the element it works as expected but the same thing also happens when I click... | javascript jquery | [3, 5] |
483,017 | 483,018 | jQuery not replacing some text | <p>I've been working on a project that involves ajax; it's a planner for school assignments. When a button is pressed, it's supposed to change the text inside of 31 <code><textarea></code>'s (and one <code><span></code>) based on data it gets from the server. The thing is, textareas that have been changed a... | javascript jquery | [3, 5] |
1,078,483 | 1,078,484 | Is it possible to limit the user to upload an image with fixed dimension? | <p>Is there any Jquery Plugin to perform the image dimension operation on an image before being uploaded using uplodify. i want the plugin to check the image dimension with the fixed define size and then only process for uploading. </p>
<p>right now i am doing it with PHP function, instead of server side validation i ... | javascript jquery | [3, 5] |
1,784,575 | 1,784,576 | How to stop all worker threads in android application | <p>how to stop all running worker threads in an android application without stoping the main thread?</p>
<p>Any example for this?</p>
| java android | [1, 4] |
3,034,395 | 3,034,396 | converting date format using javascript | <p>I have a simple textfield with the type defied to be as date which attached with a jquery <code>datepicker()</code>. Now i have set the <code>dateFormat()</code> to be <code>dd-mm-yy</code>. All this works fine. But as i know MySql requires date in <code>yyyy-mm-dd</code>. So i was just wondering if i can convert th... | php javascript jquery | [2, 3, 5] |
2,647,980 | 2,647,981 | How to renamed Page_load to PageName_load in asp.net | <pre><code> Instead of page_load i want to write PageName_Load, how can i do
</code></pre>
<p>Recently this question was asked my the one of the company in interview</p>
<p>REgards
Praveen</p>
| c# asp.net | [0, 9] |
4,687,772 | 4,687,773 | How to kill session in jQuery function when I redirect to the logout page through jQuery? | <p>Hi all,
I have gone through this example to end session when user was inactive for some amount of time which works fine</p>
<p><a href="http://www.philpalmieri.com/js_sandbox/timedLogout/" rel="nofollow">http://www.philpalmieri.com/js_sandbox/timedLogout/</a></p>
<p>But when it redirects back to <code>logout</code... | jquery asp.net | [5, 9] |
1,348,774 | 1,348,775 | jQuery - Updating clicked image in jQuery.ajax().done() | <p>I have a few images, like</p>
<pre><code><img src="unstarred.png" class="unstarred-button" id="unstarred-1" />
<img src="unstarred.png" class="unstarred-button" id="unstarred-2" />
<img src="unstarred.png" class="unstarred-button" id="unstarred-3" />
<img src="unstarred.png" class="unstarred-bu... | javascript jquery | [3, 5] |
5,885,241 | 5,885,242 | Passing location data to another activity in Android | <p>I'm working on an Android application development and i'm stuck in this point:</p>
<p>I have 2 activities:
First one called CurrentLoc and it gets me the current position and after getting the position i click on a button that take me to activity number 2 which called Sms.</p>
<p>What i need to do is that i want t... | java android | [1, 4] |
2,534,105 | 2,534,106 | Compared effort when developing Android and iOS app | <p>Given:</p>
<ul>
<li>A desired application called APP wich will present 2 "forms" and will comunicate with a web server to call 3 Web Methods.</li>
<li>One developer with nearly equivalent expertise on iOS and Android platforms.</li>
<li>X: required effort to build APP for Android only.</li>
<li>Y: required effort t... | iphone android | [8, 4] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.