Unnamed: 0 int64 302 6.03M | Id int64 303 6.03M | Title stringlengths 12 149 | input stringlengths 25 3.08k | output stringclasses 181
values | Tag_Number stringclasses 181
values |
|---|---|---|---|---|---|
5,293,583 | 5,293,584 | What's the difference between these two approaches to class initialization? | <p>I'm new to Android. Can someone explain the difference between these two approaches to class initialization?</p>
<pre><code>jamba = new JambaApplication();
jamba = (JambaApplication) getApplication();
</code></pre>
| java android | [1, 4] |
4,196,603 | 4,196,604 | Delete old divs if there are more than 20 | jQuery | <p>I need some help with my jQuery script.
I have a page that refreshes every 10 seconds and new divs from a feed are getting appended at.</p>
<p>My script counts the divs and removes the last div when there are more than 20 divs. This works fine if the feed just appends 1 div at a time. But the feed can also append m... | javascript jquery | [3, 5] |
5,387,944 | 5,387,945 | JQuery - How to change individual letters of the text on hover | <p>I'm trying to search a way how to make a function to change individual letters of the text on mouseover/hover and then changing it back when the mouse is off. </p>
<p>I have found a lot of ways how to do it in general and easy way, but I'm trying to do it in a <strong>NICE and FLUID</strong> way. Something like <st... | javascript jquery | [3, 5] |
4,158,092 | 4,158,093 | How to make Android emulator boot faster | <p>I'm currently stuck with using Atom CPU desktop for my Android app development. What are the ways to improve its boot time. When running the emulator I can see that the number of cores used by the emulator is just one, I'm running the emulator from within the Eclipse ADT plugin. </p>
<ul>
<li>How can I make the emu... | java android | [1, 4] |
171,497 | 171,498 | <asp:Button> not work properly : the action effect not run every once i press the button with my simple search? | <p>I have long table with a lot of cells
i make simple to find the specific cell and make it's background yellow like highlighting
The code is ok but when i press the search button once go to the searched cell and once after 2 times go to the searched cell .. i don't know what affect on the button action </p>
<p>the... | c# asp.net | [0, 9] |
3,230,444 | 3,230,445 | Showing more text with jquery | <p>I am looking for a way to show more or less text. I want to show 600 characters by default and if show more is clicked it will show 600 more characters and then if clicked again shows 600 more until there are no more characters. I also would like a show less button to collapse the text back to its default 600 charac... | javascript jquery | [3, 5] |
4,780,600 | 4,780,601 | Basic Javascript: onclick event not working | <p>Given this simple javascript function:</p>
<pre><code>function update_cart() {
alert("--update--");
document.form1.command.value="update";
document.form1.submit();
}
</code></pre>
<p>and this button at the bottom of my form:</p>
<pre><code><input type="submit" value="Update" onclick="update_cart()" />
</cod... | php javascript | [2, 3] |
4,749,843 | 4,749,844 | How to populate the TableLayout with ImageView dynamically in android jdk? | <p>I've a <code>TableLayout</code> element in my <code>main.xml</code>:</p>
<pre><code><TableLayout android:id="@+id/TableLayout01" android:layout_width="wrap_content" android:layout_height="wrap_content"></TableLayout>
</code></pre>
<p>I don't want to hardcode the <code>ImageView</code> in <code>main.xml... | java android | [1, 4] |
5,523,319 | 5,523,320 | How do you randomly generate X amount of numbers, between the range of Y and Z in JavaScript? | <p>For example I would like to generate 5 <strong>unique</strong> numbers between 1 & 10. The results should be 5 numbers from 1 to 10(for example 2 3 4 8 10).</p>
| javascript jquery | [3, 5] |
556,812 | 556,813 | start a jquery function over | <p>Is it possible to start a function over, based on an <code>if</code> statement, in JQuery or Javascript? Something like how <code>return functionname();</code> is to PHP?</p>
<p>For example</p>
<pre><code>function awesomestuff {
//do stuff;
//do stuff;
if(x == 1) { //start function over }
//do stuff;
... | javascript jquery | [3, 5] |
578,306 | 578,307 | Create an online directory for the contact application | <p>I'd like to create an online directory like the Facebook or Company LDAP ones.</p>
<p>I didn't find any documentation on the Android Developer website or here on Stack Overflow. Is this a private API ? I found <a href="https://market.android.com/details?id=fr.prados.contacts" rel="nofollow">an application which doe... | java android | [1, 4] |
5,806,309 | 5,806,310 | Global javascript function | <p>I have a method which detects broken links with a .imageclass class like so:</p>
<pre><code>$('.imageclass').one('error', function() {
alert('broke');
});
</code></pre>
<p>That I want to be used in several files.<br> How would I go about doing this?<br>
I've tried using a separate js file with:</p>
<pre><cod... | javascript jquery | [3, 5] |
5,677,834 | 5,677,835 | overwrite the preventDefault() in another method | <p>I have a this call</p>
<pre><code><a onclick="facebookLogin();" class="facebook_btn_homepage" href="/signup">
<img src="/images/facebook_btn2.png?1280194712" alt="Facebook_btn2"></a>
$('.facebook_btn_homepage').click(function(event){
event.preventDefault();
});
</code></pre>
<p>b... | javascript jquery | [3, 5] |
4,066,363 | 4,066,364 | how to wait until Array is filled (asynchronous) | <p>I have an array which is filled asynchronous and contains 28 items. I want to wait until the array is filled with all items.</p>
<pre><code>function checkIfFinished(){
return(Results.length >= 28);
}
var isfinished = false;
while(isfinished){
if(checkIfFinished()){
returnResults();
isfin... | javascript jquery | [3, 5] |
1,829,344 | 1,829,345 | What is the difference between “this”, “$this” and “$(this)”? | <p>What is the difference between these three forms:</p>
<pre><code>this
$this
$(this)
</code></pre>
| javascript jquery | [3, 5] |
72,223 | 72,224 | Syncing Android and Server | <p>I don't know what this is called, but it is something like syncing android application and a Web server. Examples are RSS Feeds and Weather Forecast</p>
<p>Does anyone know the concept behind developing application? I mean how do you sync the Android phone with a web server. Is there any programming needed in the s... | java android | [1, 4] |
3,158,724 | 3,158,725 | Wrapping an Element using Pure JavaScript ! | <p>I have a series of <code>div</code> tags on my page & I want to wrap them all into a container. </p>
<pre><code><div class = "c" >blah blah </div>
<div class = "c" >blah blah </div>
<div class = "c" >blah blah </div>
</code></pre>
<p>I want to wrap all the above tags into a ... | javascript jquery | [3, 5] |
1,651,512 | 1,651,513 | HTMLEditor (From AJAXToolkit) Check if content is empty | <p>I have an HTMLEditor in my aspx file with id = "txtText"</p>
<p>I am trying to write a JQuery function which checks if the content of the editor is empty.</p>
<p>I originally had:</p>
<pre><code>function check()
{
if($('#txtText').val() == '')
{
return false;
}
return true
}
</code></pre>... | jquery asp.net | [5, 9] |
918,854 | 918,855 | Javascript Call PHP in Sister Folder | <p>I have the following tree:</p>
<pre><code>root
-js_src
-php_src
-images
</code></pre>
<p>Now, how do i reliably call the PHP files from the Javascript? The PHPs are located in the <code>php_src</code> folder while the javascript is in the <code>js_src</code> folder.</p>
| php javascript | [2, 3] |
5,627,571 | 5,627,572 | Get culture based on language | <p>How can I get culture based on language ?
For example if I will pass language = CHS it will retrieve zh-CN based on National Language Support (NLS) API Reference: <a href="http://msdn.microsoft.com/en-us/goglobal/bb896001.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/goglobal/bb896001.aspx</a></p>
<p>I bel... | c# asp.net | [0, 9] |
1,019,999 | 1,020,000 | How can I insert my own JavaScript into page? | <p>I'm using Internet Explorer as the default browser. (Firefox is not an option). </p>
<p>There are some web apps that I like but whose layout and workflow does not quite agree with me. </p>
<p>Given that I am merely a visitor to the website, is it possible to insert <a href="http://jquery.com/" rel="nofollow">jQu... | javascript jquery | [3, 5] |
695,998 | 695,999 | Trying to understand this code (pub/sub library) | <p>This is Peter Higgins's pub sub library: <a href="https://github.com/phiggins42/bloody-jquery-plugins/blob/master/pubsub.js" rel="nofollow">https://github.com/phiggins42/bloody-jquery-plugins/blob/master/pubsub.js</a></p>
<pre><code>(function (d) {
var cache = {};
d.publish = function (topic, args) {
... | javascript jquery | [3, 5] |
3,180,605 | 3,180,606 | Combine relative baseUri with relative path | <p>I'm looking for a clean way to combine a relative base Uri with another relative path. I've tried the following, but <code>Uri(Uri, string)</code> and <code>UriBuilder(Uri)</code> require absolute Uris (throwing InvalidOperationException: This operation is not supported for a relative URI).</p>
<pre><code>// where ... | c# asp.net | [0, 9] |
1,192,577 | 1,192,578 | Android error when trying to connect to database using php | <p>Hi Guys i am trying to get city names from datbase using android php and mysql but code is not working,here is my code</p>
<p>pleas help me</p>
<p>this is the server side code</p>
<pre><code>PHP SERVER CODE
<?php
mysql_connect("HOST","USER","PASSWORD");
mysql_select_db("DATABASE");
$sql=mysql_query("select * ... | php android | [2, 4] |
3,251,779 | 3,251,780 | javascript function is not invoked at the first time onclick | <p>I have a following code:</p>
<pre><code>$this->content->text .=
'<div id="gv_block_div">
<a href="javascript:void(0)" onclick="pop('.htmlspecialchars($jsonObject).', \''.$root.'\', '.$userid.')">Click Here</a>
</div>';
return $this->content;
</c... | php javascript | [2, 3] |
1,577,196 | 1,577,197 | How to load Jquery.js if not already loaded ? | <p>I need to check if I need to load JQuery OR it is already loaded by another page !? </p>
<p>How can I check this on client side ?
I want to have something like this:</p>
<pre><code><script >
if jquery-1.6.2.js isExist then
{return}
else // somehow
load (<script src="../js/jq/jquery-1.6.2.js">&... | javascript jquery | [3, 5] |
117,980 | 117,981 | Access method in class library | <p>I've moved a class in my project into a class Library in the same solution. I've added a reference in the web project to the class library.</p>
<p>How do I access the methods in the class library?</p>
| c# asp.net | [0, 9] |
2,506,869 | 2,506,870 | 500 internal server error in joomla ckeditor | <p>First of all thanks.</p>
<p>I have installed ckeditor in my joomla and it's working fine, except the uploading section. I got an error message
" 500 internal server errors
The request was not completed. The server met an unexpected condition.</p>
<pre><code>mydomain/plugins/editors/ckfinder/core/connector/php/con... | php javascript | [2, 3] |
4,169,472 | 4,169,473 | javascript regex pattern with a variable string not working | <p>I am trying to create a function that will pass some parameters to a regex script:</p>
<pre><code>function classAttributes( classString, className ) {
var data;
var regex = new RegExp(className+"\[(.*?)\]");
var matches = classString.match(regex);
if ( matches ) {
//matches[1] refers to opt... | javascript jquery | [3, 5] |
971,165 | 971,166 | Javascript for loop error | <p>This is what I have:</p>
<pre><code>function get_bad_changelist_authors() {
var changelistAuthorDivs = $('div.bad_changelist_author');
var changelistAuthors = [];
for (var div in changelistAuthorDivs) {
changelistAuthors.push($(changelistAuthorDivs[div]).text());
}
return changelistAuthors;
}... | javascript jquery | [3, 5] |
1,875,039 | 1,875,040 | What is the best way to generate html code after receiving json data from an ajax request using a template library? | <p>I am doing something like this, but its a bit pain to style. Is there any other way like using templates? </p>
<pre><code> <div id="resultpanel"></div>
<script>
function parseData(jsonresults){
var results = JSON.parse(jsonresults);
jQuery("#resultpanel").empty();
... | javascript jquery | [3, 5] |
4,761,839 | 4,761,840 | Android: Make list navigation callback fire on selection of the same list item | <p>I am currently using a list menu in my action bar with code as follows:</p>
<pre><code>Context context = getSupportActionBar().getThemedContext();
ArrayAdapter<CharSequence> list = ArrayAdapter.createFromResource(context, R.array.locations, R.layout.sherlock_spinner_item);
list.setDropDownView... | java android | [1, 4] |
3,841,804 | 3,841,805 | jQuery change button attributes | <p>I have a button like this:</p>
<pre><code><input type="button" name="btn" id="btn" value="Proceed"/>
</code></pre>
<p>After all processes and get the expected result, I need to apply some changes on this button.</p>
<ol>
<li>Change the value of this button.</li>
<li>Add something to direct the current page ... | javascript jquery | [3, 5] |
2,532,401 | 2,532,402 | How can I access the lock-screen's owner-information of an Android device? | <p>I have CyanogenMod installed on my phone in one of the settings menus, it allows me to set some owner information that is displayed on the Lockscreen. Here's a screenshot:</p>
<p><img src="http://i.stack.imgur.com/5fVuP.jpg" alt="enter image description here"></p>
<p>I've seen a lot of questions regarding this but... | java android | [1, 4] |
2,789,351 | 2,789,352 | Check if object is a jQuery object | <p>Is there a fast way of checking if an object is a jQuery object or a native javascript object?</p>
<p>example:</p>
<pre><code>var o = {};
var e = $('#element');
function doStuff(o) {
if (o.selector) {
console.log('object is jQuery');
}
}
doStuff(o);
doStuff(e);
</code></pre>
<p>obviously, the co... | javascript jquery | [3, 5] |
1,203,223 | 1,203,224 | jQuery and JavaScript | <p>Is it necessary to learn JavaScript before jQuery?</p>
| javascript jquery | [3, 5] |
935,490 | 935,491 | How exchange data between each page in ASP.NET and C# | <p>I'm new to ASP.NET and C# and I want to create simple webapp. How can I exchange data from a form between different webpage? Like for example, I'm inputing a data in a form from my page1.aspx, then I want to go to a different page, like page2.aspx, then I want to click the back link button to go to the page1.aspx bu... | c# asp.net | [0, 9] |
4,847,414 | 4,847,415 | Progress Bar using JQuery | <p>I want to show a progress bar in my page using JQuery. If i hardcoded the value as 10 means, in the progressbar " 10% Completed " should be displayed. How to do this..Please guide me...</p>
| javascript jquery | [3, 5] |
1,282,336 | 1,282,337 | Execute javascript function from java | <p>I want to know if it's possible to execute a javascript function from java. Basically I have a javascript function to which I want to pass a string and then get the output from that function.</p>
<p>If it's possible, how do I accomplish it?</p>
<p>EDIT - </p>
<p>I couldn't find a solution to this, what I did was ... | java javascript android | [1, 3, 4] |
1,894,877 | 1,894,878 | Adding data from dropdown to a string | <p>I have a URL with query string <br/>
(example: <a href="http://www.example.com/?page=index&opr=sales-current&pageno=1" rel="nofollow">http://www.example.com/?page=index&opr=sales-current&pageno=1</a>)<br/></p>
<p>I need to change "opr" value from "sales-current" to "sales-[dropdown value]" using jav... | javascript jquery | [3, 5] |
514,785 | 514,786 | Has anyone implemented/imitated the new gawker/lifehacker/gizmodo Layout in Javascript | <p>I'd like to implement the same layout as Gawker sites; <a href="http://lifehacker.com/" rel="nofollow">lifehacker</a> and <a href="http://gizmodo.com/" rel="nofollow">gizmodo</a>.</p>
<p>If anyone can suggest a good starting point.</p>
<p>--I use JupiterIt JavascriptMVC extensively.</p>
| javascript jquery | [3, 5] |
1,734,643 | 1,734,644 | What are the most important optimizations in Java code on Android? | <p><br>
I am just starting out programming on Android. </p>
<p>What is the most computationally expensive Java constructs to avoid when programming an Android App? </p>
<p>Of cause every algorithm costs instructions, but what about use of Method calls, Object references, Interfaces, Collections and such? What do I ... | java android | [1, 4] |
198,315 | 198,316 | remove characters in string after specific occurance | <p>Hoping you guys can help me out, I have a dynamic url and I need some javascript to basically trim the string after the specific occurance of a character.</p>
<p><strong>EXAMPLE:</strong></p>
<p>I have this url</p>
<blockquote>
<p>Assessment/testdir2/TestDIR3/lecture slides 1as.pdf</p>
</blockquote>
<p>and I n... | javascript jquery | [3, 5] |
2,791,986 | 2,791,987 | $("#but0_0").attr(...) works but $(hid).attr(...) does not work when hid === "#but0_0" | <p>On Safari 4.0, I have a check that prints "????" if hid === "#but0_0"</p>
<p>Works:</p>
<pre><code>$("#but0_0").attr("onmousedown",function(){alert("Aha!");});
</code></pre>
<p>Doesn't work:</p>
<pre><code>var id = "but"+y+"_"+x;
var hid = "#"+id;
if (hid === "#but0_0") console.debug("????");
$(hid).attr("onmous... | javascript jquery | [3, 5] |
640,346 | 640,347 | Parsing Hyperlinks from a webpage | <p>I have written following code to parse hyperlinks from a given page.</p>
<pre><code> WebClient web = new WebClient();
string html = web.DownloadString("http://www.msdn.com");
string[] separators = new string[] { "<a ", ">" };
List<string> hyperlinks= html.Split(separators, StringSplitOpti... | c# asp.net | [0, 9] |
3,961,214 | 3,961,215 | read individual img src from folder contents into HTML | <p>I am trying to write some simple code, but I am not sure what to use, javascript or PHP.
I have some structured HTML docs and I want to insert an image from a folder into each img src attribute.
So basically I would need to read in the contents and then insert each one, one by one.</p>
<pre><code><div class="sli... | php javascript | [2, 3] |
3,062,151 | 3,062,152 | javascript syntax and jQuery source | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/3090284/for-the-function-function-ive-seen-it-with-the-word-jquery-in-it-why">For the function (function($){})(), I’ve seen it with the word jQuery in it, why is that?</a> </p>
</blockquote>
<p>Can someone... | javascript jquery | [3, 5] |
4,146,143 | 4,146,144 | What's the difference between "click" and "onclick" when creating an element with jQuery? | <p>What's the difference between</p>
<pre><code>$("<a>", {
"id" : "myId",
"text" : "my link",
"href" : "#",
"onclick" : function() { return false; }
);
</code></pre>
<p>and</p>
<pre><code>$("<a>", {
"id" : "myId",
"text" : "my link",
"href" : "#",
"click" : function() { re... | javascript jquery | [3, 5] |
5,917,695 | 5,917,696 | JQuery .post() not returning data | <p>I am trying to pass parameters to the <a href="http://www.tinypaste.com/" rel="nofollow">TinyPaste</a> API. I have the following JQuery script in an HTML file,</p>
<pre><code>$.post("http://tinypaste.com/api/create.json",
{
"paste": "This is test paste",
"title": "Test",
"is_code": 0,
"is... | javascript jquery | [3, 5] |
757,287 | 757,288 | Beginning Programmer Interested in Android - Should I Start with Java? | <p>I'm a beginner in programming. My experience so far is only in Actionscript 2 and 3. So I have a basic understanding of declaring variables, loops, arrays, if/then, do/while... I'm wanting to move to developing for Android phones so I'm wondering what suggestions people have for where to go next. Should I jump right... | java android | [1, 4] |
989,512 | 989,513 | Get day from date in javascript | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/495644/how-to-get-the-day-from-a-particular-date-using-javascript">how to get the day from a particular date using javascript</a> </p>
</blockquote>
<p>Is there function like date("N", strtotime($date)) but in j... | javascript jquery | [3, 5] |
4,035,040 | 4,035,041 | Android DateTime Picker Application please help us | <p>Once a time has been chosen, the AM/PM setting is correct on consecutive runs, but I don't know how to set it to the proper AM/PM. in android Dialog box ie.(timepicker ).If anybody knows Please help me</p>
| java android | [1, 4] |
1,201,618 | 1,201,619 | Alternate of Class.forName("XYZClass") in JavaScript | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/9462881/create-instance-of-class-using-reflection-in-javascript">Create instance of “Class” Using “Reflection” in JavaScript</a> </p>
</blockquote>
<p>Java has <code>Class.forName("XYZCla... | java javascript | [1, 3] |
3,739,620 | 3,739,621 | jQuery Split where numeric number occur | <p>I have a string like </p>
<p>this-is-my-0-string.
this-is-my-new-1-string-occur.</p>
<p>i want to break string where number occurs</p>
<p>like </p>
<p>this-is-my , 0 , string </p>
<p>and this-is-my-new,1, string-occur</p>
<p>in common words i need to break my string where numbers occur. number is any from 0, ... | javascript jquery | [3, 5] |
1,026,858 | 1,026,859 | check if Special characters is Chinese or English | <p>Now my app needs to check the input. I can recognize whether the input is Chinese, English or a number, but there are also special characters in Chinese and English. How to check this?</p>
<p>there is different between Special characters in Chinese mode and English mode,like this:</p>
<pre><code>chineseMode: , 。
... | java android | [1, 4] |
3,864,598 | 3,864,599 | How to display particular message like alert message in asp.net3.5 c# | <p>i have one form after clicking save button form redirecting to another page, but before redirecting another page it should display message like "Your data has been saved successfully".
What should i do?
Asp.net c#
Thsnk you.</p>
| c# asp.net | [0, 9] |
5,814,697 | 5,814,698 | Is is possible to bind a submit() function before any existing onsubmit/submit? | <p>I have a form with an <code>onsubmit</code> attribute. I need to bind a new submit event and I need this one to be executed before any existing submit functions.</p>
<p>The following code demonstrates the problem.</p>
<pre><code><!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
... | javascript jquery | [3, 5] |
631,810 | 631,811 | Is it possible to place 2 buttons in List view | <h2>ListView</h2>
<h2>[Text] [Button 1][Button 2]</h2>
<h2>[Text] [Button 1][Button 2]</h2>
<p>... (and so on) ...</p>
<p>Button 1 should be like Check Box and other button which allows to redirect on other page</p>
<p>Is above mentioned thing possible??</p>
<p>Thanks in advance..</p>
| java android | [1, 4] |
3,020,121 | 3,020,122 | how do I access this class | <pre><code>import android.content.Context;
import android.content.SharedPreferences;
import android.net.Uri;
public class LoadSettings
{
public static void LoadMySettings (Context ctx)
{
SharedPreferences sharedPreferences = ctx.getSharedPreferences("MY_SHARED_PREF", 0);
String strSavedMem1 = sharedPreferences.getS... | java android | [1, 4] |
5,929,884 | 5,929,885 | Select JQuery elements that have some value set by data() | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/2891452/jquery-data-selector">jquery data selector</a> </p>
</blockquote>
<p>I have several elements with class 'connection_name'. Each one of these elements has a unique id bound to it using the data() JQuery ... | javascript jquery | [3, 5] |
1,501,305 | 1,501,306 | List.Add() thread safety | <p>I understand that in general a List is not thread safe, however is there anything wrong with simply adding items into a list if the threads never perform any other operations on the list (such as traversing it)?</p>
<p>Example:</p>
<pre><code>List<object> list = new List<object>();
Parallel.ForEach(tra... | c# asp.net | [0, 9] |
1,355,587 | 1,355,588 | weird behavior of JS functions in an if statement, WHY? | <p>Why the following code will return <em>“obvious”</em>, <em>“surprise!”</em> (and lastly <em>“how come?”</em>). It should return <em>"expected"</em>, isn't it?<br>
In the first <code>if</code> we used anonymous functions, in the second we used 'named' functions.</p>
<pre><code>var a = 5;
if (a == 5) {
var b = ... | javascript jquery | [3, 5] |
4,841,496 | 4,841,497 | Request types on iPhone || Android? | <p>Is it possible to send GET, POST, PUT and DELETE requests from iPhone || Android applications to a third party server?</p>
<p>I want to build a web service to reuse on all 3 platforms (3rd being the web app itself).</p>
| iphone android | [8, 4] |
4,913,901 | 4,913,902 | Change a CSS selectors child on hover in jQuery | <p>With this basic jQuery code below, how would I make the on <code>mousout</code> change the item back to <code>display:none</code>? </p>
<p>Also can this be improved?</p>
<p>Any help please</p>
<pre><code>$(".image").hover(function() {
$(this).children(".image p").css({ display: 'inline' });
});
</code></pr... | javascript jquery | [3, 5] |
1,245,644 | 1,245,645 | What does Request[" "] mean? | <p>I came accross this unusual thing, and I'm not sure what it is.</p>
<p>There is a place in the code where I found :</p>
<pre><code>if(IsPostBack == false)
{
string strInterior = Request["xmlString"];
}
</code></pre>
<p>I have one javascript page which is using xml http object ajax (The project is in <em>asp.n... | c# javascript asp.net | [0, 3, 9] |
4,936,350 | 4,936,351 | Python and Android | <p><a href="http://code.google.com/p/android-scripting/" rel="nofollow">This</a> link says that it is indeed possible to write code in <strong>Python</strong> and use it for app development in <strong>android</strong> platform. I would like to know what the catch is when using Python and not Java. Is there any comprom... | android python | [4, 7] |
4,621,724 | 4,621,725 | Which Android platform to choose when installing the Android SDK? | <p>After installing the Android SDK, I noticed that I need to choose the platform, i.e. Android 1.3 all the way upto 4.1 individually.</p>
<p>My question is, does this mean if I create an app, I have to create it on each and every platform individually?</p>
<p>I am a total noobie to Android development...</p>
| java android | [1, 4] |
1,938,785 | 1,938,786 | Py_Initialize fails - unable to load the file system codec | <p>I am attempting to put together a simple c++ test project that uses python 3.2. The project builds fine but Py_Initialize raises a fatal error:</p>
<pre><code>Fatal Python error: Py_Initialize: unable to load the file system codec
LookupError: no codec search functions registered: can't find encoding
</code></pre>
... | c++ python | [6, 7] |
3,808,001 | 3,808,002 | Exposing OnclientClick function in user control asp.net C# | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/943171/expose-and-raise-event-of-a-child-control-in-a-usercontrol-in-c-sharp">expose and raise event of a child control in a usercontrol in c#</a> </p>
</blockquote>
<p>I have user control with one html input bu... | c# asp.net | [0, 9] |
4,019,028 | 4,019,029 | calling a php from javascript as src file | <p>i have a question
when a .php file called as a javascript what dose this mean? and when this is needed to be used ?</p>
<p>ex:</p>
<pre><code><head>
<script src="dir/myphpfile.php" type="text/javascript"></script>
</head>
</code></pre>
| php javascript | [2, 3] |
3,232,336 | 3,232,337 | to draw graph with mysql data | <p>I need to draw a line graph with mysql data which has two columns. some one help me with a sample code.</p>
| java javascript | [1, 3] |
480,620 | 480,621 | Object reference not set to an instance when modifying an existing cookie in code behind | <p>In the line "Response.Cookies...", I get an object reference not set to an instance of an object. Is there a way to fix this and use a timer in my ASPX code behind?</p>
<pre><code>protected void Page_Load(object sender, EventArgs e)
{
object o = new object();
TimerCallback timercallback = new TimerCallbac... | c# asp.net | [0, 9] |
2,864,065 | 2,864,066 | jquery element selection | <p>I know I can select elements using the following syntax, but what other ways are available? I didn't know what to search for when trying to determine others. Also, are there ways to select elements via wildcard characters?</p>
<pre><code> //Selection by the element's ID
$('#mybutton').on('click', function (e) {... | javascript jquery | [3, 5] |
5,439,809 | 5,439,810 | The false element in a Logical operation | <p>I wish to know if there's some way to know which is the elemnet of a logic operation is false?<br>
Example. </p>
<pre><code>if( String.IsNullOrEmpty(obj1) || (String.IsNullOrEmpty(obj2) )
throw("...............");
</code></pre>
<p>How can I kown which one of those is the empty one? </p>
| java c# | [1, 0] |
2,116,085 | 2,116,086 | Logic Problem between Main Class and Thread Class | <p>Hy!!</p>
<p>I make a new <code>Object</code> from a <code>Thread</code> Class. There is a Http-Post in the run method with a result string.</p>
<p>My Question:</p>
<p>How is it possible to notify the main class that the download finished?</p>
<p>MFG</p>
| java android | [1, 4] |
2,289,151 | 2,289,152 | How do I get the cumulative height of a series of images? | <p>I'm attempting to use JS and PHP to dictate whether or not some navigation is visible or not. First, I get the cumulative height of a series of images. Then I compare this height to the height of their container. If the height of the images is greater, the navigational divs should display.</p>
<p>This almost wor... | php javascript jquery | [2, 3, 5] |
2,406,194 | 2,406,195 | How to use Global Varabile in Aspx file? | <p>Say I have a global class:</p>
<pre><code> static class GlobalOfficeSetting
{
public static bool PatientRegistation_DialogOnly = true;
}
</code></pre>
<p>Or let's say if I store the global variable in below instead:</p>
<pre><code>Application("PatientRegistation_DialogOnly") = true
</code></pre>... | c# asp.net | [0, 9] |
4,444,008 | 4,444,009 | Simple 'if' with 'or' statement | <p>I'm having trouble figuring why this isn't working...</p>
<pre><code>if (index != 10 || index != 0) {
</code></pre>
<p>If <code>index = 0</code> the function is still allowed in, why?</p>
| javascript jquery | [3, 5] |
1,800,852 | 1,800,853 | Form validation with jQuery and php | <p>I have a form which I'm validating using jQuery and php. So basically if the php echoes "input must be filled" the jQuery should put a red border around that input, but the thing works only after submitting the form two times.<br>
I explain: if I submit with input unfilled the php file echoes "input must be filled"... | php jquery | [2, 5] |
1,404,592 | 1,404,593 | Passing variables between functions | <p>I have two functions, one that makes an Ajax request when the user loads the page, and one that will run every 5 or so seconds to update something. Using the first function, I can output a variable that I need to use in the second function. </p>
<pre><code>function insert_last_ten() {
$.ajax({
url: 'free... | javascript jquery | [3, 5] |
3,554,657 | 3,554,658 | How to edit values of GridView with AutoGenerateColumns="true" in C# ASP.Net? | <p>I have a simple <code>Gridview</code> with <code>AutoGeneratecolumns=true</code>, which binds data from different tables on each execution as per requirement. There are different number of columns on each table,that's why i'm not using "<code>asp:TemplateField</code>" or "<code>asp:BoundField</code>".</p>
<p>Is the... | c# asp.net | [0, 9] |
1,688,522 | 1,688,523 | Jquery .get and .push into an array gives an empty string | <p>Can anyone tell me why the below gives me an empty string?? When I console.log(contentArray) in the .get callback function it spits out the data but when I try to do it where it is in the code below it wont work.</p>
<pre><code>sectionArray = [];
contentArray = [];
$(function(){
if (index == 1){
$('men... | javascript jquery | [3, 5] |
1,586,294 | 1,586,295 | onhashchange IE8 browsing | <p>On a page that I'm making at the moment I have anchor tags that link to #'s and on hash change of the page I want to hide one div and show the other.
This works fine on all browsers I've tested on other than IE8. Chrome, Firefox and IE9 and IE 10 all work fine.
I'm looking for the best way to achieve this. A fix wou... | javascript jquery | [3, 5] |
5,246,627 | 5,246,628 | how to get exact 3 months ago date and time from today's date and current time using C# | <p>I want to get data from database which is saved from past 3 months for that i have current date and time but how to calculate 3 months ego date and time, SO that i can pass these 2 dates in the query and get the data which was saved between these dates</p>
| c# asp.net | [0, 9] |
2,211,005 | 2,211,006 | Datediff getting the date inbetween 2 dates and bind it to a gridview | <p>I have a table with 'dateborrowed' and 'datereturned' column. What I want to do is I want to get the value in between 'datereturned' and 'dateborrowed' and bind it to another column in another table. Also how can I do it using datediff function? I'm still learning it in the meantime. Any help would be greatly apprec... | c# asp.net | [0, 9] |
5,608,313 | 5,608,314 | Access object in main.xml | <p>I'm trying to create a widget, but I can't access the main.xml elements from the code. If I had an activity, I could use findViewById, but in this case it won't work. </p>
<p>How can I access an element in main.xml from widget?</p>
| java android | [1, 4] |
3,754,514 | 3,754,515 | stradus jquery plugin parameter links | <p>I have a question i'm using stradus jquery player to play soundcloud content from my site it has different parameters one of them is link </p>
<pre><code> <script type="text/javascript">
$(document).ready(function(){
$stratus({
auto_play: true,
download: false,
links: 'http://soundclo... | php jquery | [2, 5] |
4,267,070 | 4,267,071 | How to optimize my javascript? | <p>I have inherited a piece of code which has a series of functions like the following:</p>
<pre><code>$("#data[User][notify_one_day_out]").change(function () {
$("#updatenotificationsform").submit();
}
$("#data[User][notify_one_month_out]").change(function () {
$("#updatenotificationsform").submit();
}
</co... | javascript jquery | [3, 5] |
4,555,380 | 4,555,381 | Android MyLocationOverlay vs LocationManager/LocationListener | <p>I am building an Android application that shows the user his/her current location (using MyLocationOverlay), and I am also using a LocationManager/LocationListener to get the user's location every 15 seconds, which is then used to query a web service and in return I plot points using an ItemizedOverlay.</p>
<p>This... | java android | [1, 4] |
2,057,304 | 2,057,305 | ASP.net composite control with an attribute that can contain multiple values of an enum type | <p>I'm building a composite control textbox that contains the ability to run some business rule validation on the client (via generic jquery validation methods attached on render) and server side (via C# validation code). I created an enum type with the available business rules that can be validated (denoted with the ... | c# asp.net | [0, 9] |
4,299,907 | 4,299,908 | How to effectively use jQuery 1.8 - examples? | <p>We are using jQuery on our websites - but I dont think we are effectively using it with a lot of duplicated code, etc. Im looking for examples of websites that do it right or documentation/books to explain to right way or a better way?</p>
| javascript jquery | [3, 5] |
6,016,539 | 6,016,540 | Delete Gridview Row with Jquery | <pre><code><asp:CommandField ShowDeleteButton="True" />
</code></pre>
<p>How can I link a simple jquery method to the delete button which just asks for user confirmation and returns (true or false) if user is sure he want to delete record in gridview or not?</p>
| jquery asp.net | [5, 9] |
594,179 | 594,180 | This appears to be a class on a Javascript event. What is it? | <p>I just ran across some jQuery that looks like this:</p>
<pre><code>$('.add-row').live('click.add', function() {
// do something
}
</code></pre>
<p>This appears to be binding to the <strong>'click.add'</strong> event. I use custom events myself and think they're awesome, but doing <code>git grep</code> on our ... | javascript jquery | [3, 5] |
2,495,504 | 2,495,505 | inserting textbox value to sql server using c# | <p>I need to add a text box value to SQL Server database table. Below is my code:</p>
<pre><code>private void button1_Click(object sender, EventArgs e)
{
string str = "Data Source=.\\SQLEXPRESS;AttachDbFilename=|DataDirectory|\\timetablesystem.mdf;Integrated Security=True;User Instance=True";
SqlConnection con... | c# asp.net | [0, 9] |
1,637,858 | 1,637,859 | JQuery function to select checkboxes | <p>I need a function that accepts a parameter with its id example a div
and after that loops inside the div to look for checkboxes and if there is/are any checks if its value is checked and returns true if every checkbox is checked returns false.</p>
| asp.net javascript jquery | [9, 3, 5] |
5,116,864 | 5,116,865 | How to insert a new item in a listbox and then setfocus on the listbox new item on a button click event in C# | <p>I have a listbox which populated from using a datatable. I have a Add button in my page. On clicking the add button I want to insert a blank row in the listbox. This can be done easily by </p>
<pre><code>ListBox_Admin.Items.Add("");
</code></pre>
<p>after this is done I want to select this item as in setfocus on t... | c# asp.net | [0, 9] |
4,720,848 | 4,720,849 | how to save webpage in android sdcard or in device memory | <p>How to save Web page in android?
I have create one application in which I have load web page in android web view using URL.</p>
<p>I want to save that page using menu bar option and stored in device memory in sd card. I dont have any id to do this i am new in android.</p>
<p>So please tell me code for this or els... | java android | [1, 4] |
2,271,856 | 2,271,857 | Changing image source of list of image tags and replacing it with specific list | <p>I need to replace a list of image src in a div tag.
For instance :</p>
<pre><code><!-- language-all: lang-html -->
<div id="Listofimages">
<img src="images\2page_img_3.jpg">
<img src="images\2page_img_3.jpg">
<img src="images\2page_img_3.jpg">
</div>
</code></pre>
... | javascript jquery | [3, 5] |
4,974,200 | 4,974,201 | How to grab an image tag from html via jquery | <p>So I have a data set that is returning something like this in the variable entry.content:</p>
<pre><code><p style="float:right;margin:0 0 10px 15px;width:240px"> <img src="http://citysportsblog.com/wp-content/uploads/2011/09/RagnarNE.jpg" width="240"> </p><p>Have you heard of the epic advent... | javascript jquery | [3, 5] |
4,824,039 | 4,824,040 | what will be the value of byte b=(byte)0x8A if printed? | <p>What will b return ? </p>
<pre><code>byte b = (byte)0x8A;
System.out.println("Value"+b);
</code></pre>
<p>What will it print? And when does the value will return a negation?</p>
| java android | [1, 4] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.