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,782,059 | 3,782,060 | how to make my application support for all devices resolution | <p>I have develop an app which runs very well in my emulator and in my Samsung device. But when I test it in the Motorola emulator, which I have downloaded in my android SDK, it doesn't work. Can anyone help me out to figure this problem of supporting multiple devices?</p>
| java android | [1, 4] |
5,160,500 | 5,160,501 | How to keep an animation consistant after page load | <p>i have a project that should feel like a super smooth ajax driven page which loads content dynamically but is in reality a normal answer with a page load.</p>
<p>In this project its important to have a sliding effect of the left sidebar. It slides out if the mouse leaves the sidebar and slides in if the mouse enter... | javascript jquery | [3, 5] |
2,702,331 | 2,702,332 | $_SESSION not available when using jqUploader | <p>I am using PHP and jQuery for an uploader. I am having a huge problem though and would like some input as to how best handle these two together.</p>
<p>I am using a PHP session variable that I am using to change the filename after the jquery uploader has finished. The jquery "url" is pointing to a PHP function that... | php jquery | [2, 5] |
3,273,299 | 3,273,300 | How to escape quotes inside an inline javascript function | <p>My function is running perfectly without using class in appended <code>div</code> but when I try to add a <code>class</code> on the element it is not working.</p>
<pre><code><head>
<script type="text/javascript">
function showt(id){
$('body').append(id)
}
</script&... | javascript jquery | [3, 5] |
1,393,857 | 1,393,858 | jQuery - :nth-child() or eq() pattern possible? | <p>I need to select 1st, 4th, 7th, 10th, 13th, 16th etc</p>
<p><a href="http://jsfiddle.net/caRxA/" rel="nofollow">http://jsfiddle.net/caRxA/</a></p>
| javascript jquery | [3, 5] |
1,164,204 | 1,164,205 | How do I access an input field text with jQuery? | <p>I am trying to use the typeWatch plugin for jQuery. I have this javascript:</p>
<pre><code> <script type="text/javascript">
$(document).ready(function() {
var options = {
callback: function() { alert("a-ok! " + $(this).text); },
wait: 333,
highlight: true,
captureLength: ... | javascript jquery | [3, 5] |
3,830,947 | 3,830,948 | data manipulate on tree structure by jQuery | <p>Below is tree structure and i want to have second tree structure by jquery.</p>
<pre><code><ul>
<li data-id="1">
<ul>
<li data-id="2">
<ul>
<li data-id="6"></li>
</ul>
</li>
... | javascript jquery | [3, 5] |
4,076,628 | 4,076,629 | Android app development - Uri.parse - want not open browser | <p>I have an Android program. I want to send request to a website, after which I need the server to run a command without going to the browser. </p>
<p>Is this possible? For example, at some point, my code is something like this:</p>
<pre><code>Intent intent1 = new Intent(Intent.ACTION_VIEW,Uri.parse("http://xxxxxxx)... | java android | [1, 4] |
3,326,222 | 3,326,223 | How to define function parameter with jQuery | <p>i have some syntax problem... This is my little script:</p>
<pre><code>$('.basket_details, .advanced_search_panel, .producers_major_panel').hover(function () {
mouse_is_inside = true;
}, function () {
mouse_is_inside = false;
});
$("body").mouseup(function () {
if (mouse_is_inside) {
$('.advance... | javascript jquery | [3, 5] |
464,392 | 464,393 | how to set a variable for external javascript file after the js file is defined? | <p>I'm using jQuery Mobile Ajax navigation feature, And I need to change a variable that is defined inside external js file, So I <strong>can't</strong> put my definition <strong>before</strong> I load that js file...</p>
<p>So, How to change value of a variable for external javascript file after the js file is define... | javascript jquery | [3, 5] |
4,789,446 | 4,789,447 | How would you program a form filling helper | <p>My work often requires to fill out forms, so I would like to program a "form filling helper". Something that fills out formfields which it recognizes with data from a database. </p>
<p>I thought about a solution with javascript. So my system calls a webpage and devides it into 2 frames. The first gives me the data ... | php javascript | [2, 3] |
4,480,404 | 4,480,405 | How to show milliseconds in count down timer javascript | <p>I have a javascript code that displays a count down timer from 5 minutes.</p>
<p>This is the code</p>
<pre><code>var mins
var secs;
function cd() {
mins = 1 * m("05"); // change minutes here
secs = 0 + s(":00"); // change seconds here (always add an additional second to your total)
redo();
}
function... | javascript jquery | [3, 5] |
298,748 | 298,749 | Check the value of the field in HH:MM format | <p>I have a field which should take input in format HH:MM (it can be <code>00:01</code>, <code>01:19</code>, <code>25:00</code>, <code>99:34</code>, <code>123:12</code>) </p>
<p>So before submitting the form I need to check whether the value is in any of the above formats else throw an error message .</p>
<p>The fiel... | javascript jquery | [3, 5] |
2,934,326 | 2,934,327 | Converting C# function to PHP | <p>Is there anyone of you who could help me a bit with this?
I have a small method in C#, that I would like to convert to PHP.
Unfortunately my knowledge of PHP is very limited.
I'm hoping someone could give me some clues of how to do this.
Just to say it, I am not looking for someone to do it for me, just help me get ... | c# php | [0, 2] |
646,646 | 646,647 | How to update time using JS client side | <p>I want to update the time shown on the records li or divs on a page.
I have put the time of creation of this record in a hidden field with each record.</p>
<p>example:</p>
<pre><code># Hi what are you doing?
5 minute ago. <hidden id='1' value='1345888475'>
# Akon song is good
10 minute ago <hidd... | php javascript | [2, 3] |
4,840,748 | 4,840,749 | Why does the browser get stuck in this javascript loop? | <p>I can't spot why the browser hangs and gets caught in the first for loop in this function, arguments.length doesn't print a console.log either.</p>
<p>Here is the click function passing the colorpicker's own id then the variable other properties to be changed:</p>
<pre><code>$('#colorSelector3').click(function(){
... | javascript jquery | [3, 5] |
4,204,270 | 4,204,271 | Android execute code on variable change | <p>I alter a variable on different button clicks, (i.e. inside the onclick listener for multiple buttons) and I have a textview that is suppose to show this variable, but remains outside the listener code.</p>
<p>The textview doesnt update the variable, so I am thinking i possibly need an 'onclick' handler version fo... | java android | [1, 4] |
4,247,139 | 4,247,140 | How to detect/stop a user opening a new browser window? | <p>This is in context to an ASP.Net application. The application makes use of a specific data which is set for a page. After this data has been set all the operations from this page onwards use the set data. </p>
<p>The problem is that if the user opens another tab with a competing data it overwrites the older data fo... | javascript jquery asp.net | [3, 5, 9] |
4,312,955 | 4,312,956 | How to extend list of objects to automatically update property based on position in list | <p>Let's say I have a class Car like this: </p>
<pre><code>class car
{
string model;
int position;
}
</code></pre>
<p>Position is a number from 1 to n, which basically reflects position in the list.
if I have two cars in list they will have positions 1 2.
Now, I'd like to reorder those cars in list in the UI a... | c# asp.net | [0, 9] |
4,528,429 | 4,528,430 | unbound prefix error on animation list | <p>I get a unbounded prefix error from this xml file named rm_anim.xml. It is for a background resource for using an AnimationDrawable.</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<resources>
<animation-list android:id="ram_anim" android:oneshot="false">
<item and... | java android | [1, 4] |
3,387,968 | 3,387,969 | updating second updatepanel using checkbox in first updatepanel | <p>I have two UpdatePanels. One <code>UpdatePanel</code> has a <code>CheckBox</code> and a <code>UserControl</code>. UserControl has some <code>TextBoxes</code>. In other updatepanel, there are few <code>Labels</code>. </p>
<p>I have added javascript function to checkbox to hide/show it. I am using Javascript to avoid... | c# asp.net | [0, 9] |
5,269,165 | 5,269,166 | selectall() property in C# for textbox control | <p>I know, there is a property for textbox control in windows form, called selectall().</p>
<p>I am trying to achieve the same in my web app, for a textbox, once it recieves the focus(), i am trying to select all the text in the textbox.</p>
<p>I know, i can write some jquery for this, but, is there any other easier ... | c# asp.net | [0, 9] |
930,877 | 930,878 | jQuery class: append html with a call to a function in the class | <p>Greetings fellow stackoverflowers,</p>
<p>I'm working on a jQuery class where I have a function that appends some html code to a container.</p>
<pre><code>this.displayOptions = function(property, container) {
for (var i = 0; i < this[property + 'Count']; i++) {
$(container).append('<a href="#" on... | javascript jquery | [3, 5] |
4,100,459 | 4,100,460 | login page in sql server 2005 | <p>Am running asp.net applications with c#.I have developed a login page and gave database connection with sql server 2005.Now I want to check the usename and password in my databse.Only if that both matches my page have to redirects to the next page.Can some suggests the code?</p>
| c# asp.net | [0, 9] |
5,132,978 | 5,132,979 | Converting some c++ array code to c# | <p>I'm having some trouble converting the following code from c++ to c# because of pointers.</p>
<p>Basically I have a </p>
<pre><code>STATE** State;
States = new STATE* [max_states];
for (int i=0; i < max_states; i++) {
States[i] = new STATE(max_symbols);
}
</code></pre>
<p>If this was some double array I wou... | c# c++ | [0, 6] |
2,375,147 | 2,375,148 | jQuery calendar, doesn't work properly | <p>I try to implement jQuery calender at my homepage: This is the way I do it:</p>
<pre><code><!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>jQuery UI Datepicker - Default functionality</title>
<script src="jquery-1.7.1.js"></script>
<script src... | javascript jquery | [3, 5] |
710,746 | 710,747 | How to display a page only for the first time in asp.net | <p>I am developing an application using Asp.Net.My question is whether there is any solution to display a page only for the first time.i.e when the user logs in for the first time it should ask to change the password but when the user logs in after changing the password it should not display the changepassword page ins... | c# asp.net | [0, 9] |
2,764,000 | 2,764,001 | What is more efficient: listeners or functions in jquery | <p>I have been using Jquery alot lately an was wondering if I should use listeners or functions for my clicks.</p>
<p>Normally I do the following:</p>
<pre><code><head>
<script type="text/javascipt">
function buttonclicked() {
alert("You Clicked it");
}
</script>
</head>
<... | javascript jquery | [3, 5] |
2,568,806 | 2,568,807 | javascript search and replace prefix zero | <p>i have few numbers like </p>
<p>0011,0101,0123,1234,5245,0052,3265,0047,0124</p>
<p>How replace prefix zero only,</p>
<p>like no number should start with zero ,</p>
<p>exactly like </p>
<p>0011 should be 11 ,
0101 should be 101 ,
0123 should be 123</p>
<p>How to do this ?</p>
<p>Is ther any javascript functio... | javascript jquery | [3, 5] |
2,181,816 | 2,181,817 | Media Gallery realisation in php | <p>need to provide an "add from existing" functionality for uploaded images. What is a basic approach to do that? Thought of displaying a modal window but thought that if there will be a lot of images it will definitely pull back the performance. Had anybody a similar task? Thanks.</p>
| php jquery | [2, 5] |
749,146 | 749,147 | How to swap element on screen with JavaScript | <p>I have multiple 'li' elements:</p>
<pre><code>$(".my_lis")
</code></pre>
<p>with on the page I want to shuffle them around with JavaScript (I'm using JQuery). How to do that?</p>
| javascript jquery | [3, 5] |
5,775,524 | 5,775,525 | Add an attribute on focus | <p>What is the best way to add an attribute to an <code><input /></code> on focus using js / jQuery?</p>
<p>Right now, off the top of my head, I would think</p>
<pre><code>$(document).ready(function(){
$('input').focus(function(){
$(this).attr(attributeHere);
});
});
</code></pre>
<p>Is that co... | javascript jquery | [3, 5] |
3,073,892 | 3,073,893 | Caps and Shift key using jquery/javascript | <p>I am facing a problem. I have to identify my Caps Lock is on or not?</p>
<p>If my caps lock on then i have to tell user that your caps on. but the problem is if some one press <kbd>shift</kbd> + <kbd>A</kbd> then it should behave normally.i think key events of <kbd>Caps Lock</kbd> on + <kbd>a</kbd> equal to <kbd>S... | javascript jquery | [3, 5] |
4,204,720 | 4,204,721 | fading a paragraph in word by word using jquery? | <pre><code> <p class="example">i want to split this paragraph into
words and fade them in one by one</p>
</code></pre>
<p>the jquery/js:</p>
<pre><code>$(document).ready(function() {
var $txt = $(".example")
,$words = $txt.text()
,$splitWords = $words.split(" ");
$txt.hide();
... | javascript jquery | [3, 5] |
4,718,384 | 4,718,385 | scroll page when scroll on div | <p>I have a div, when I scroll on div, page should scroll, how can I achieve this?
Div has z-index higher than other page elements, it's on top of all page elements</p>
<p>Using javascript or jQuery, anything?</p>
<p>Edit: DIV is the top most element, other elements have lower z-index. Now top DIV is longer than view... | javascript jquery | [3, 5] |
4,194,974 | 4,194,975 | Removing READONLY attribute from textbox using client side code | <p>I have a multiline textbox that by default, is set to ReadOnly. I would like a button on the page to change the control to allow it to be edited. I would like this code to run on the client side because the page renders slowly and I'd like to avoid the post back. </p>
<p>The problem I'm having is the javascript cod... | asp.net javascript | [9, 3] |
2,947,635 | 2,947,636 | How to load a javascript file and run a javascript method in java? | <p>I'm using <a href="https://github.com/chjj/marked" rel="nofollow">marked</a> on the client side to render markdown code to html.</p>
<p>But now I need to do the same thing on the server side which is Java. In order to get the exact same html code, I have to use marked other than other java markdown libraries.</p>
... | java javascript | [1, 3] |
4,717,481 | 4,717,482 | Symbol cannot be resolved | <p>Android Java project, minimal code to reproduce the problem:</p>
<p><code>Constants.java</code>:</p>
<pre><code>package alex.restaurantfinder;
public class Constants {
public static final String LOGTAG = "...";
}
</code></pre>
<p><code>ReviewCriteria.java</code>:</p>
<pre><code>package alex.restaurantfinder... | java android | [1, 4] |
5,034,187 | 5,034,188 | Manually resetting jquery stars plugin after ajax form submit | <p>I am currently using the <a href="http://www.fyneworks.com/jquery/star-rating/" rel="nofollow">jQuery Stars plugin</a> on my rails application. I am using ajax to submit a form that includes these stars so after a successful submit the page does not reload and the stars do not reset. How can I clear these persistent... | javascript jquery | [3, 5] |
2,742,406 | 2,742,407 | Jump to an anchor link on function complete in jQuery? | <p>I have a simple slidetoggle function that opens onclick. What I'd like to do is jump the user down to the bottom of the page following the opened div. Basically, wait for the slidetoggle to complete - then imagine clicking my jump link to pull the viewport down. Here's my code.</p>
<pre><code> $('#clickme').click... | javascript jquery | [3, 5] |
4,569,524 | 4,569,525 | Creating dynaimc controls in c# and placing them in html | <p>I have an datatable which I would like to use to generate controls i.e.
<strong>textbox, checkbox, dropdown</strong></p>
<p>From the datatable I need to create those controls using c#, can any one help me out in syntax. How do I go ahead and bind these controls in HTML tags?</p>
| c# asp.net | [0, 9] |
4,694,350 | 4,694,351 | Trying to create a select option | <p>Im not sure if this site is only with asp, but I am trying to create a form in which the child fields are disabled or enabled based on whether you chose one or the other. I was able to do it with a checkbox, but i want it to work with the drop down select value. here is the link and the script below:</p>
<p><a hr... | javascript jquery | [3, 5] |
3,034,435 | 3,034,436 | jQuery .live and page refresh issue | <p>Why this code fails to prevent a page refresh?</p>
<pre><code>$('a').each(function() {
var me = $(this);
var mytarget = me.attr('href');
var is_link_to_self = mytarget.indexOf("index.php");
if(is_link_to_self !== false) {
me.live('click', function() {
$('#content').load(mytarget)... | javascript jquery | [3, 5] |
4,339,339 | 4,339,340 | javascript ClearTimeout with jquery droppable out | <p>I have this code </p>
<pre><code> var expandTimerId=0;
$(".droppable").droppable({
tollerance : 'pointer',
greedy : true ,
hoverClass : 'dropHover',
drop : _onDropItem,
over: _onDragOver,
... | javascript jquery | [3, 5] |
2,083,624 | 2,083,625 | Encode and Decode in c# asp.net? | <p>i am using Encoding and decoding :</p>
<p>For Encoding:</p>
<pre><code>private string EncodeServerName(string ServerName)
{
byte[] NameEncodein = new byte[ServerName.Length];
NameEncodein = System.Text.Encoding.UTF8.GetBytes(ServerName);
string EcodedName = Convert.ToBase64String(NameEncodein... | c# asp.net | [0, 9] |
287,955 | 287,956 | How to make an image x% bigger in JavaScript (with jQuery) | <p>I thought this ought to be a straightforward thing to do, but I don't see a clear way to do it.</p>
<p>I would like to make it so that when a user hovers the mouse over an image, the image becomes 10% bigger and then returns to its original size when the user moves the mouse away.</p>
<p>I think that I will want t... | javascript jquery | [3, 5] |
1,443,311 | 1,443,312 | I want my program to do what android does when on call and close to face. | <p>I know that this is similiat to this question
<a href="http://stackoverflow.com/questions/3018716/android-turn-off-screen-when-close-to-face">android: turn off screen when close to face</a>
and many others. But I could't find any working solution. </p>
<p>So I have a program that plays audio. I listen to proximity ... | java android | [1, 4] |
3,544,247 | 3,544,248 | Save an arraylist to cache file and retrieve it | <p>I want to create two methods. The one should store and arraylist to the cache and the other should retrieve the arraylist from the cache. The code that I've tried is the following:</p>
<pre><code>public class ByteConverter<T> {
public byte[] write_to_byte_array(ArrayList<T> list,File file){
// wri... | java android | [1, 4] |
3,163,980 | 3,163,981 | clone & live function with context parameter jquery 1.4 | <p>I have few div HTML elements and i am cloning it with a <code>clone(true)</code> option as i want to copy the events also.</p>
<p>Now the case there are certain click events in my HTML div blocks and while crating events i use context parameter also like</p>
<pre><code>var $block ="<div class='task-create-conte... | javascript jquery | [3, 5] |
381,081 | 381,082 | call a javascript method in another .js file | <p>what is the rule around calling functions from one js to another ? I thought that this worked but i am not running into issue (figured it out through firefox) that a function in another js file doesn't seem to be recognized in my first js file.</p>
<p>Is there some rule around ordering or some trick you have to do... | javascript jquery | [3, 5] |
5,144,998 | 5,144,999 | delete table row with effect | <p>On <a href="http://summer-festivals.cloudfoundry.com/artistSubscription/list" rel="nofollow">this page</a>, if you click the unsubscribe button on the first row (Madonna), the rows beneath slide up reasonably nicely. But if you then delete the new first row (Radiohead), the image on the remaining row (U2) jumps unpl... | javascript jquery | [3, 5] |
902,725 | 902,726 | How to set the function to make user click the table header to change sorting order | <p>I want to let user click the table header to sort the table, but can just set the ascending order, can not set the descending order in the same table header. following is the function I used, </p>
<pre><code>function sortBy(sKey)
{
document.sortResultsForm.sSortBy.value=sKey;
document.sortResultsForm.submit(... | php javascript | [2, 3] |
4,998,393 | 4,998,394 | What doen $f mean in jquery scripts? | <p>I see the function $f being used in a number of jquery related scripts, but I can't find a description of what this means anywhere.</p>
<p>Example</p>
<pre><code>var iframe = document.getElementById(iframe_id);
this.player = global.$f(iframe);
</code></pre>
<p>Can anyone point me to documentation?</p>
| javascript jquery | [3, 5] |
1,342,270 | 1,342,271 | When are ALL the cases when the onSaveInstanceState() method called? | <p>All the sources I read have all mentioned couple of cases and concluded with "a few other cases". What are ALL the cases when the onSaveInstanceState method called in a View/Activity? </p>
| java android | [1, 4] |
3,295,862 | 3,295,863 | How can I add dashes (custom formatting) inside a string of numbers? | <p>I have a site where users enter a numeric code of 10 numbers:</p>
<pre><code>xxxxxxxxxx
</code></pre>
<p>When displaying this value (read from the database), I want it to display in this format:</p>
<pre><code>xxxx-xxxx-xx
</code></pre>
<p>How can I do this with PHP or jQuery?</p>
| php jquery | [2, 5] |
49,722 | 49,723 | focus div element | <p>Concept: Focus the div when user click the Comment link. There was two link in my php page. one is <code>comment link</code> and another one is <code>readmore link</code>. The two link goes to the same page but i want to <code>focus the div element</code> when click comment link .</p>
| javascript jquery | [3, 5] |
1,161,305 | 1,161,306 | using sha1prng in both android and windows giving different sequences | <p>I have used sha1prng in both my android program and java program as the pseudo ramdom number generator algorithm. I seeded both of them with the same value. <br><br>
But the sequesnce generated in android is different from the one generated in java. Why is this happening and what is the solution to this problem?</p>... | java android | [1, 4] |
3,220,519 | 3,220,520 | showing new window pop up to center |
function open1() {
window.open('http://www.pageresource.com/jscript/jex5.htm','ddsfa','width=400,height=200');
}
<p>Hello</p>
<p>I want show this popup to center when click on "Hello"</p>
| php javascript | [2, 3] |
4,711,168 | 4,711,169 | Trying to port python code to Java but getting different results | <p>I'm sure I'm making a rookie mistake with java(this is actually my first program). I am trying to port some working python code I made into java(as a learning/testing exercise to learn a bit of the differences) but I'm getting different results between the two. </p>
<p>My program takes a list of data and generates... | java python | [1, 7] |
4,458,186 | 4,458,187 | Difference between jQuery code structures | <p>What is the difference between these jQuery code structures, or is there no difference.
Are they both an alias for <code>$(document).ready(function(){</code> and if so, why the dollar in the first code snippet?</p>
<pre><code>jQuery(function($){
// stuff
});
</code></pre>
<p>AND</p>
<pre><code>$(function() {... | javascript jquery | [3, 5] |
4,808,302 | 4,808,303 | Embedding server side javascript frameworks in a Java desktop application? | <p>I've read that it's possible to embed Rhino into your Java application. Narwhal is also built on top of it by default and I was directed to <a href="http://narwhaljs.org/" rel="nofollow">http://narwhaljs.org/</a> which actually no longer exists.</p>
<p>I would love to know of anything similar to nodejs,ringojs whic... | java javascript | [1, 3] |
5,519,217 | 5,519,218 | Set each data id and assign it to href | <p>I am running the following code as I am trying to get each <code>.fotorama</code> id first and then assign each of them as each <code>.nav</code> link href. </p>
<pre><code>$(".fotorama").each(function(){
id = $(".fotorama", this).data("id");
$(".nav li a").attr("href", '#'+ id);
});
</code></pre>
<p>T... | javascript jquery | [3, 5] |
5,283,427 | 5,283,428 | The most optimized way to load a big table through javascript | <p>Basically I am looking for loading a 1000 row X 100 column table through javascript most effciently .<a href="http://jsfiddle.net/zAVLV/2/" rel="nofollow">This fiddle</a> uses the DomDocumentFragment to achieve this. It works fast enough in chrome and FireFox but is slow in IE . Can some one spot the reason of bei... | javascript jquery | [3, 5] |
382,885 | 382,886 | Jquery group by td with same class | <p>I have the current table data:</p>
<pre><code><table>
<tr class="Violão">
<td>Violão</td>
<td class="td2 8">8</td>
</tr>
<tr class="Violão">
<td>Violão</td>
<td class="td2 23">23</td>
</tr>
<tr class="Guitarra">... | javascript jquery | [3, 5] |
1,746,549 | 1,746,550 | How does this order page work? | <p><a href="https://markup-service.com/order/create" rel="nofollow">https://markup-service.com/order/create</a></p>
<p>How does that form work ? The javascript source code is compressed and cant be decompressed at least as far as i know.</p>
<p>I need help building a similar page, and any insight on how to replicate ... | javascript jquery | [3, 5] |
4,361,516 | 4,361,517 | How to handle both Quick Search Box results and recent suggestions for search? | <p>I'm trying to implement both <a href="http://d.android.com/guide/topics/search/adding-recent-query-suggestions.html" rel="nofollow">recent suggestions</a> and <a href="http://d.android.com/guide/topics/search/adding-custom-suggestions.html" rel="nofollow">custom suggesions</a> in global search in the same applicatio... | java android | [1, 4] |
3,816,518 | 3,816,519 | Nothing being added to generic List<string> Add method | <p>Code for Property in JobQuote class:</p>
<pre><code> public class JobQuote
{
// Properties
private List<string> _jobfilenames;
public List<string> JobFileNames
{
get
{
if (_jobfilenames != null)
return _jobfilenames;
else
{
_jobfilenames = new List... | c# asp.net | [0, 9] |
5,975,164 | 5,975,165 | create a custom asp.net control | <p>how do i create an asp.net list box with a click event?</p>
| c# asp.net | [0, 9] |
1,273,187 | 1,273,188 | Show field if true, hide field if false? | <p>Want to have a notification box displayed if amount in fieldA is higher than amount in fieldB.</p>
<p>Currently have some code working but the notification box toggles on and off not depending on the actual amount.</p>
<p>What am I missing?</p>
<p>jquery:</p>
<pre><code>
$(document).ready(function() {
$('#... | javascript jquery | [3, 5] |
3,198,522 | 3,198,523 | Parsing JSON key with colon in it | <p>Consider this JSON string:</p>
<pre><code>{
"title": "value1",
"link": "value2",
"media:info": "value3"
}
</code></pre>
<p>I know how to parse title and link, but the parser isn't accepting media info because of the colon in the middle I think. Does anyone have any ideas?</p>
| java android | [1, 4] |
5,585,976 | 5,585,977 | jQuery click(function() not working but plain Javascript working just fine | <p>THIS IS THE FULL SCRIPT</p>
<p><a href="http://goo.gl/HoCxk" rel="nofollow">http://goo.gl/HoCxk</a></p>
<p>I have a problem with this function:</p>
<pre><code> $('.message').click(function(){
alert("it works");
var clicked_msg=$(this);
$('#current_message').html(clicked_msg.attr("id"));
});
</code>... | javascript jquery | [3, 5] |
455,519 | 455,520 | Javascript in browser bar vs in content script - 'die' doesn't work | <p>I'm trying to run a javascript command in a content script using Personalized-Web (a Chrome extension). I'm new to javascript & jquery, but I've found that entering this code:</p>
<pre><code>javascript:jQuery("div.photo-container").die();
</code></pre>
<p>into my browser bar on a particular page achieves the ... | javascript jquery | [3, 5] |
2,195,017 | 2,195,018 | jQuery set initial speed of fadein | <p>I want this div to load instantly on page load (or thereabouts) and then automatically refresh every 10 seconds.
This is what I have, which refreshes every 10 seconds but doesn’t load instantly.</p>
<p>Can I set the initial refresh to say 100ms and then after that refresh every 10 seconds?</p>
<pre><code><scri... | javascript jquery | [3, 5] |
977,126 | 977,127 | Remove Attributes onmouseover and onmouseout | <p>I am trying to make use of JQuery's remove attribute like this:</p>
<pre><code>$('#rom-img_1').removeAttr('mouseover');
$('#rom-img_2').removeAttr('mouseout');
</code></pre>
<p>However, it does not remove the effects of the events as the events are still triggered on mouseover and on mouseout. I have tried adding ... | javascript jquery | [3, 5] |
2,710,112 | 2,710,113 | How does Omegle work? | <p>Sorry for the vague question, but Omegle has exactly what I want for my site. It's the bare chat system. You send and receive messages instantly. I've spent today looking for a shoutbox method, but all I could find were people saying to use MySQL and javascript intervals to keep checking. Omegle updates instantly wi... | php javascript | [2, 3] |
875,484 | 875,485 | How to restart an AsyncTask or avoid if RUNNING | <p>I am Developing an App that parses data from HTML. One of the data that is parsed is an integer that increases over time and rather than constantly requesting the data I would like to have a task that intervals the integer. Due to the fact that I need the value updated into a TextView I decided to go with an AsyncTa... | java android | [1, 4] |
1,272,711 | 1,272,712 | Recording video from camera Java Android | <p>I require the abilty to record MP4 video at High (720 x 480) or Low (360 x 240) on the devices running Android 2.2 (or above) or Android 3.0 and above.Currently I can record on all devices but the resolution varries on each device and I can not figure out how to force each device to record at the resolutions stated ... | java android | [1, 4] |
369,028 | 369,029 | Polymorphic function as event callback | <p>I need to pass this function as a callback to DOM event</p>
<pre><code>var fooo = function() {
$(this).append("foo");
fooo = function() {
$(this).append("bar");
};
};
$("#hover").hover(fooo);
</code></pre>
<p>This example should append "foo" and then "bar"s, however it doesn't work. What am I doing wr... | javascript jquery | [3, 5] |
361,985 | 361,986 | Best way to package a class for use in another app? | <p>I've written an Android app wich various abstract classes that perform useful functions. These functions could be leveraged in other apps.</p>
<p>I want to share a class module with another programmer, but I don't want to share the source code. I would like to share a .class file but I'm not sure how to do the foll... | java android | [1, 4] |
1,746,522 | 1,746,523 | android how to create event with google account you want? | <p>i want to create a calendar event in my application, here is the code</p>
<pre><code>public class GoogleCalendarsActivity extends Activity {
/** Called when the activity is first created. */
private static final String ACCOUNT_NAME = "xxx@gmail.com";
private static final String INT_NAME_PREFIX = "priv";
@Override... | java android | [1, 4] |
4,749,860 | 4,749,861 | How can I get date and time formats based on Culture Info? | <p>What I want is..
If culture is en-US then</p>
<pre><code>string dateFormat="MM/dd/yyyy";
string timeFormat="24.00 hrs";
</code></pre>
<p>If culture is en-GB then</p>
<pre><code>string dateFormat="dd/mmyyyy";
string timeFormat="24.00 hrs";
</code></pre>
<p>and so on for other countries..</p>
<p>Now how do I ge... | c# asp.net | [0, 9] |
3,356,672 | 3,356,673 | reference asp server controls from client side | <p>this question might sound silly to some but i just had to make sure.</p>
<p>iv'e got a control which is not visible (visible = false)
i want it to become visible under certain conditions for instance onmoueover of a certain textbox ,</p>
<p>can i perform client side events such as this on server controls ?</p>
... | javascript asp.net | [3, 9] |
5,923,147 | 5,923,148 | 'Object doesn't support this property or method' IE8 throwing jquery error | <p>I get this error on the page when I load my website on IE8,</p>
<p>Message: Object doesn't support this property or method
Line: 1025
Char: 5
Code: 0
URI: <a href="http://www.domain-name.com/../default/js/jquery.wt-rotator.js" rel="nofollow">http://www.domain-name.com/../default/js/jquery.wt-rotator.js</a></p>
<p>... | javascript jquery | [3, 5] |
325,147 | 325,148 | Android unzip not a directory issue | <p>I am trying to unzip a zip file which is stored in the raw folder. Code is as follows</p>
<pre><code>try
{
File myDir = new File(getFilesDir().getAbsolutePath());
File newFile = new File(myDir + "/imageFolder");
if(!newFile.exists())
{
newFile.mkdir();
... | java android | [1, 4] |
3,838,649 | 3,838,650 | How to launch email intent with an attached image | <p>I am trying to launch an email intent with an attached jpg.</p>
<p>I did:</p>
<pre><code>Intent intent4 = new Intent(Intent.ACTION_SENDTO,
Uri.fromParts("mailto", "testemail@gmail.com", null));
startActivity(intent4);
</code></pre>
<p>this launches the email activity.</p>
<p>But when I try to add DataAndType (... | java android | [1, 4] |
3,170,410 | 3,170,411 | jquery OnHoverOver and OnHoverOut | <p>I have an asp.net animation extendeer like this:</p>
<pre><code>aspext:AnimationExtender ID="extender" TargetControlID="Panel1" runat="server">
Animations>
OnLoad>StyleAction Attribute="backgroundColor" Value="red" />/OnLoad>
OnClick>StyleAction Attribut... | jquery asp.net | [5, 9] |
2,869,925 | 2,869,926 | Find text between two characters and for each, do something | <p>I have a file full with text in the following format:
(ignoring the fact that it is CSS) I need to get the string between the two | characters and each time, do something:</p>
<pre><code><div id="unused">
|#main|
#header|
.bananas|
#nav|
etc
</div>
</code></pre>
<p>The code I have is this:</p... | javascript jquery | [3, 5] |
2,925,737 | 2,925,738 | jquery: how to ignore immediate children() and go deeper until match specified element? | <pre><code>$(this).parent().parent()
.children(this.attr("tagName").toLowerCase())
.css("background-color", "yellow");
</code></pre>
<p>xpath: </p>
<pre><code>/html/body/div/table/tr/td/b/a
</code></pre>
<p><code>$(this).tagName</code> is Anchor <code><a></code></p>
<p>the problem with this is that children()... | javascript jquery | [3, 5] |
5,761,544 | 5,761,545 | Preview Image without Upload to my server | <p>Hello how i can preview Image without upload to my server in asp.net C# and when i see the image i should press upload to upload to server.</p>
| javascript asp.net | [3, 9] |
4,966,251 | 4,966,252 | How do I make a div slide up and disappear in JQuery? | <p>And just...poop, HTML gone. How do I do that? thanks.</p>
<p>I know about .hide() , but..I want permanently gone (for that one page), and slide up.</p>
| javascript jquery | [3, 5] |
1,453,117 | 1,453,118 | jquery.grep unexpected behavior | <p>I've run into an interesting discovery using jquery.grep and was wondering if anyone knows why this is happening. In my code, I am using grep to filter out certain items from an array and then assign the results back to the original array for more filtering. </p>
<p>E.g. </p>
<pre><code>orderedGroups = jquery.gr... | javascript jquery | [3, 5] |
4,605,251 | 4,605,252 | How to manage phone settings like text to speech settings with your code | <p>i am developing a Text-to-Speech application. in my application i have settings which allows user to select language, manage the volume and speech rate..
i was able to manage the volume by using the <code>AudioManager</code>..
now my only problem is the language and speech rate, i dont have any idea how to manage t... | java android | [1, 4] |
1,000,895 | 1,000,896 | TrackballGestureDetector instantiation | <p>I am developing some location-based apps on android and using google maps, currently struggling for how can I obtain an object instance for the TrackballGestureDetector class which is part of the google maps API?</p>
<p>Appreciating any help in that regard;
Hass.</p>
| java android | [1, 4] |
5,685,673 | 5,685,674 | javascript if else statement | <p>i'm trying to make images on my site a bigger size if you click on them. <br/>i want to undo the enlarged view if you click on the picture again.</p>
<pre><code>$("img").click(function(){
var grown = 'false';
if (grown == 'true') {
$(this).animate({width: 300, height: 200}, 1000 );
var gro... | javascript jquery | [3, 5] |
4,381,880 | 4,381,881 | what is the difference between the below two syntaxes? | <p>1.</p>
<pre><code> $(function () {
function foo() { return true; }
log(bar()); // getting error
var bar = function() { return true; };
});
</code></pre>
<p>2.</p>
<pre><code>$(function () {
function foo() { return true; }
log(bar()); ... | javascript jquery | [3, 5] |
1,820,995 | 1,820,996 | Android open specific folder with gallery | <p>I've tried to open android 4.1 gallery with following code:</p>
<pre><code>String folderPath = Environment.getExternalStorageDirectory().toString() + "/" + GalleryHelper.FOLDER_NAME;
// Uri targetUri = MediaStore.Images.Media.EXTERNAL_CONTENT_URI.buildUpon().appendQueryParameter("bucketId", GalleryHelper.BUC... | java android | [1, 4] |
3,981,023 | 3,981,024 | Why is the label not changing color using RegisterClientScriptBlock? | <p>I have an aspx page defined as follows:</p>
<pre><code><html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<script type="text/javascript" language='javascript'>
function changecolor() {
var lbl = document.getElementById('lblDisplayDat... | c# asp.net javascript | [0, 9, 3] |
4,008,758 | 4,008,759 | How do I grab several elements and wrap them in a div using jquery? | <p>I am familiar with <code>wrap()</code> and <code>innerWrap()</code>, which grabs every div and individually wraps each instance of the div in a <code>wrap()</code> parameters. IE:</p>
<pre><code><div class="wrap me"></div>
<div class="wrap me"></div>
<div class="wrap me"></div>
<... | javascript jquery | [3, 5] |
529,499 | 529,500 | what are the advantages of C# over Python | <p>I like Python mostly for the great portability and the ease of coding, but I was wondering, what are some of the advantages that C# has over Python?</p>
<p>The reason I ask is that one of my friends runs a private server for an online game (UO), and he offered to make me a dev if I wanted, but the software for the ... | c# python | [0, 7] |
1,734,812 | 1,734,813 | object Key in javascript class/dictionary? | <p>I have a Javascipt object which I use as dictionary</p>
<pre><code>var obj={
xxx:'1'
yyy:'2'
}
</code></pre>
<p>However -
xxx and yyy should be a jQuery <strong>object</strong>.</p>
<p>something like :</p>
<pre><code>var obj =
{
$('#div1'):'1' ,
... | javascript jquery | [3, 5] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.