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 |
|---|---|---|---|---|---|
1,745,302 | 1,745,303 | Redirecting Application-Level Error Handler | <pre><code>protected void Application_BeginRequest(object sender, EventArgs e)
{
const int maxFileSizeKBytes = 10240; //10 MB
const int maxRequestSizeKBytes = 305200; //~298 MB
if (Request.ContentLength > (maxRequestSizeKBytes * 1024))
{
Response.Redirect(".aspx?req... | c# asp.net | [0, 9] |
1,790,287 | 1,790,288 | Resizable div doesn't stay within containment parameter | <p>When resizing the middle div, it will not stay within the <code>containment</code> parameter on the right boundary of the grid, and it will not resize to the left.</p>
<p><a href="http://jsfiddle.net/dKuER/8/" rel="nofollow">http://jsfiddle.net/dKuER/8/</a> (clear example, updated)</p>
<p><strong>HTML</strong></p>... | javascript jquery | [3, 5] |
1,923,868 | 1,923,869 | tag cloud filter | <p>I have a div that contains many spans and each of those spans contains a single href.</p>
<p>Basically it's a tag cloud. What I'd like to do is have a textbox that filters the tag cloud on KeyUp event.</p>
<p>Any ideas or is this possible?</p>
<p>Updated question: What would be the best way to reset the list to s... | javascript jquery | [3, 5] |
3,677,342 | 3,677,343 | Block characters from input text field, mirror input into span or div | <p>I have some html</p>
<pre><code><input type="text" name="name" value="" id="name">
<div id="preview"></div>
</code></pre>
<p>The rules for entry into the field:</p>
<ul>
<li>Letters A-Z a-z 0-9 space and dash, no other characters allowed<br /></li>
<li>Entry of forbidden characters should do not... | javascript jquery | [3, 5] |
1,861,804 | 1,861,805 | Jquery - Click Coordinate on Page | <p>Probably such a simple question, but after reading a few tutorials and other posts on stackoverflow, I couldn't get what I was looking for. Essentially what I want is easy, using the .click() function in jQuery, I want to click a specific X, Y, location on the page. All I found were tutorials on how to find coordina... | javascript jquery | [3, 5] |
4,124,914 | 4,124,915 | jQuery access to 'this' object with events and triggers | <p>I have two classes orchestrated by a main class and I would like to know how to gain access to the correct 'this' object when events are fired among these classes. Here's what I have:</p>
<pre><code>// My main class that orchestrates the two worker classes
function MainClass()
{
this.workerOne = new ChildWorker... | javascript jquery | [3, 5] |
3,670,320 | 3,670,321 | Controlling C++ Output from Python Script | <p>I have a bit of an issue here. I have a Python script which calls binaries compiled from C++. The Python script has its own set of outputs (to standard out and error), which are easily disable-able. The C++ binaries have their own set of outputs (to standard out and error, among others) as well; the source can be... | c++ python | [6, 7] |
1,628,116 | 1,628,117 | jQuery remove appended element | <p>I'm trying to have a form fade away then show a message "connecting your call" then after 3 seconds the "connecting your call" message fades away and after 30 seconds the form comes back. The form is hiding and coming back just find I just can't figure out how to make the dynamic appended tag fade. Any suggestions ... | javascript jquery | [3, 5] |
5,679,694 | 5,679,695 | Using jQuery.get() to measure client bandwidth | <p>I am using the following script do determine the downlink bandwidth of a user to serve content accordingly:</p>
<pre><code> var bandwidthCheckStart = new Date().getTime();
var bandwidthCheckEnd;
$.ajax({
url: xBandwidthCheckFile,
async: false,
cache: false,
success: functi... | javascript jquery | [3, 5] |
1,497,284 | 1,497,285 | Why my code doesn't work on Internet Explorer? | <p>Why my code doesn't work on Internet Explorer:</p>
<p><img src="http://i.stack.imgur.com/p0aYq.png" alt="enter image description here"></p>
<p>64 line start here:</p>
<pre><code>$(function () {
$('#id_laufzeit_bis').datepicker().on('changeDate', recalculate_deadline);
$('#id_kuendigungsfrist').change(reca... | javascript jquery | [3, 5] |
2,126,224 | 2,126,225 | How to find and remove attirbutes in cloned item using jquery? | <p>I trying to clone a div content with below code.</p>
<pre><code>var clonedItem = $("#cloneableSchoolTab").clone();
clonedItem.find(".clonableSchool").addClass("clonedSchoolTab" + schoolTabCount );
$("#clonedSchoolTabsContainer").append(clonedItem);
</code></pre>
<p>First line gets the whole target item. But, the e... | javascript jquery | [3, 5] |
5,128,960 | 5,128,961 | jQuery - Selecting element after current position | <p>What I want to do is select the next element below where I am on the page. I want to do this to create a "View next post" function. So, if I am past the beginning of post 2, then I want the function to take me to post 3. Conventional jQuery will ask me which child to use of the parents and by default use the first i... | javascript jquery | [3, 5] |
668,992 | 668,993 | How to write code below as jquery? | <p>How can I write the code below as a jquery:</p>
<pre><code>var imagefile = document.getElementsByClassName("fileImage");
var filename = imagefile.files[0];
</code></pre>
<p>I attempted this below but it says it is not defined even though I have already stated file input's class is 'fileImage'.</p>
<pre><code>var ... | javascript jquery | [3, 5] |
2,779,823 | 2,779,824 | Overwriting paddingLeft in a LinearLayout on Android | <p>i am currently making one android application, i moded title bar, so all content for title bar is holded in window_title.xml where i have LinearLayout set: paddingLeft="5dip" . And now i need to load one imageView on the right side of this titleBar how i am able to some kind of overwrite this paddingLeft i cant dele... | java android | [1, 4] |
4,838,045 | 4,838,046 | How to pass data from Java applet to client side python script? | <p>I have a python script which does various number-crunching jobs and now need to put a graphical front-end on it (a molecular editor in which a user draws a compound to pass to the script) to allow others in the lab to use it more easily. The available editors are Java applets, standalone Java or written in JavaScri... | java javascript python | [1, 3, 7] |
4,475,456 | 4,475,457 | Simple jQuery assignment | <p>I have a on change method defined for my drop-down as follows - </p>
<pre><code>$("[name=engine]").change( function() {
var selectedIndex = $(this).val() ;
var selectedValue = $("#engine option[value=333]").text()
alert("Change..." + selectedIndex + " - "+ selectedValue);
});
</code></pre>
<p>Here in... | javascript jquery | [3, 5] |
160,571 | 160,572 | jQuery: too much recursion on .focus() | <p>I am using the jQuery <code>.focus()</code> method to focus on an element through a remote script in asp.net. I am getting an error about too much recursion.</p>
<p>What am I doing wrong?</p>
<p>asp.net code : </p>
<pre><code>Response.Write("<script>$('#ledger_name').focus();</script>");
</code></pre>... | javascript jquery asp.net | [3, 5, 9] |
5,868,657 | 5,868,658 | Adding floats with javascript | <p>I'm using jQuery, and I want to sum up the values in my table column, everything seems to work fine, but my value is returned a string with all the values added like: <code>123.5013.0012.35</code></p>
<p>How can I sum these properly?</p>
<pre><code>var totals
$(".add").each(function(i) {
totals += parseFloat($(... | javascript jquery | [3, 5] |
3,665,300 | 3,665,301 | Why my Dialog box isn't working | <p>This is the code I am trying and not working, nothing comes up at all</p>
<pre><code><script type="text/javascript" src="jquery/jquery.min.js"></script>
<script type="text/javascript" src="jquery/jquery-ui.min.js"></script>
<script type="text/javascript">
function HandleIt()
{
... | c# javascript jquery asp.net | [0, 3, 5, 9] |
5,823,979 | 5,823,980 | JQuery - DIV-Content-Change should be another URL | <p>after the user logged in, the project-url is root/inside/. The site has 4 different main-sections, which will be displayed in a div via Ajax. The url does not change, after clicking on the links. How can i do it, that the url changes like this after clicking on the links for the main sections:</p>
<pre><code>root/i... | javascript jquery | [3, 5] |
4,287,032 | 4,287,033 | strange behaviour of static method | <p>I load a js variable like this:</p>
<pre><code>var message = '<%= CAnunturi.CPLATA_RAMBURS_INFO %>';
</code></pre>
<p>where the static string CPLATA_RAMBURS_INFO i put like:</p>
<pre><code>public static string CPLATA_RAMBURS_INFO = "test";
</code></pre>
<p>I use it very well in this method.</p>
<pre><code... | c# asp.net javascript | [0, 9, 3] |
5,648,015 | 5,648,016 | jQuery - Lose labels text on Postback | <p>I'm filling some labels using jQuery AJAX and it's working properly (i'm getting the values through webservices). But after that, i'm firing and Button click to get that values but in debugging the labels are empty.</p>
<p>I think it's because the values are losing in PostBack.</p>
<p>Is there anyway to keep those... | c# jquery | [0, 5] |
5,365,310 | 5,365,311 | Create new cookie to edit its value | <p>I know that you can't edit incoming cookies. I have a cookie that I just need to read..nothing more but I have a need to remove some characters from its value so that I can parse it. How can I do this? I don't need to send the modified new cookie back in the response, it's just for my server-side consumption and ... | c# asp.net | [0, 9] |
5,483,101 | 5,483,102 | Async Task Can it partially run? | <p>It is definitely working as postData sends to my site and forwards an email which it is doing. But loadingDialog does not execute ( it may be but it is a very quick process). The last process sentdialog is not executing as it brings up a new dialog saying sent and is not happening.
I have this script for the async</... | java android | [1, 4] |
322,128 | 322,129 | Why it skips the if block | <p>Apology for another newbie question. I have this block of code in my MainActivity should check the users and returns an appropriate activity based on the if else statement. Problem is that it skips the if block and I can't figure out why. All I know is that the getID function works fine on other classes. Thank you f... | java android | [1, 4] |
5,268,474 | 5,268,475 | Find all asp:textboxes that are textmode=password and change display to none | <p>Is there a way to find all asp:textboxes where textmode=password and change their display to none or do I need to give them all a class?</p>
<p>Thanks</p>
| javascript jquery | [3, 5] |
1,171,408 | 1,171,409 | Disable gridview refresh after SQL insert? | <p>I'm using a gridview and SQL data source .</p>
<p>After I'm inserting information in data table if I refresh the page the query is executed again and if I refresh it again it will execute again.</p>
<p>Is there any way to disable refresh or make the events unique to be executed only once when the event is raised w... | c# asp.net | [0, 9] |
1,142,097 | 1,142,098 | Append Trakt.tv API | <p>I'm trying to query trakt.tv for my latest activity, but I only get a blank screen on proceeding with this script using jquery-1.4.4.js:</p>
<pre><code> $(document).ready(function(){ // on document load
show_trakt();
});
function show_trakt() {
var user = 'INSERT_USERNAME';
var akey = 'INSERT_API_KEY... | javascript jquery | [3, 5] |
4,154,103 | 4,154,104 | Jquery - Validating Email | <p>I do NOT want to use the Jquery attachment to the field. <strong>I just want a function I can call and pass in a value and get back a result on if it is a valid email.</strong> JQuery documentation seems to indicate this is possible but the documentation falls short on examples outside of attaching it to the field.<... | javascript jquery | [3, 5] |
3,856,380 | 3,856,381 | Embed open source libraries or plugins in a jQuery plugin | <p>When building a jQuery plugin, do you think it's bad practice to embed the source of another plugin or library that it depends on?</p>
<p>It seems to me that it's a better way to go than requiring users to do multiple <code><script src="..."></code> calls or compressing the multiple source files themselves.</... | javascript jquery | [3, 5] |
225,860 | 225,861 | Calling ASP.NET Code Behind function from JavaScript | <p>Is it possible to call ASP.NET codebehind function from JavaScript.</p>
| javascript jquery asp.net | [3, 5, 9] |
197,747 | 197,748 | onclick depending on where the view is | <p>I want to make something appear depending on where the view is on a tablet for example :
so i know i need to use ontouch listener like this :</p>
<pre><code>.setOnTouchListener(new OnTouchListener() {
public boolean onTouch(View v, MotionEvent event) {
// TODO Auto-generated method stub
... | java android | [1, 4] |
2,370,015 | 2,370,016 | Orientation change and Notification | <p>I want to implement the following scenario:</p>
<p>When a user presses the Home key a Notification is displayed in the Status bar and the App is normally hidden. When user taps the Notification App is normally restored.</p>
<p>Here is my code for this:</p>
<pre><code>private int NOTIFICATION = R.string.local_serv... | java android | [1, 4] |
675,387 | 675,388 | get value of an attribute of the clicked element | <pre><code><ul id='langs'>
<li data-val='en'>english</li>
<li data-val='fr'>francais</li>
<li data-val='it'>italiano</li>
</ul>
</code></pre>
<p>when the user clicks on any of these <code><li></code> I want to <code>alert()</code> it's data-val attribute v... | javascript jquery | [3, 5] |
6,033,082 | 6,033,083 | Accessing a inner div value in javascript, with no ids to help | <p>I have following structure</p>
<pre><code><div onClick="javascript:Myfunction('value');">
<div title="Mytitle"> </div>
</div>
</code></pre>
<p>Can I access in the javascript Myfunction, the title of the inner div.
There are no ids here.</p>
| javascript jquery | [3, 5] |
390,912 | 390,913 | How to Add a Div and text in side the div in aspx using C# | <p>How to Add a Div and text inside a div in .aspx file using C#.
I want to add a textbox for typing comment or query and a button to post that text/query.
to the server.
After redirect that page should get data from DB and Show on that page.
same as(all Forms)
like stackoverflow, we type Question, and submit it, can ... | c# asp.net | [0, 9] |
3,355,510 | 3,355,511 | calling same function after timeout malfunctioning | <pre><code>$(document).ready(function () {
tabSlideOut()
}
function tabSlideOut() {
$('.slide-out-div').tabSlideOut({
//----
});
</code></pre>
<p>Want call tabslideout hide after 3 second showing the success or error message so i call it after timeout , </p>
<pre><code>setTimeout(function () { tabSlideOut(); ... | javascript jquery asp.net | [3, 5, 9] |
360,908 | 360,909 | Variable's value not retained in the method of a class | <p>In ASP>Net using C#, I declared a variable as member of the class as follows:</p>
<pre><code>public class sales: System.Web.UI.Page
{
string type=null;
}
</code></pre>
<p>And i have an Image Button in my UI for which I've defined the event called</p>
<pre><code>protected void ImageButton2_Click(object sender, Ima... | c# asp.net | [0, 9] |
4,799,050 | 4,799,051 | Using a dynamic variable within a for statement | <p>I would like to dynamically create and reference some variables on the fly, but i'm not understanding how to.</p>
<p>Here is what I would think 'should' work, but I know doesn't.</p>
<pre><code>var weeks = 4;
for(i=0; i<weeks.length;i++){
var 'week_'+i = valueFromXML;
}
function wtFn (){
'week_'+i.splic... | javascript jquery | [3, 5] |
2,796,850 | 2,796,851 | Change margin value on table with value from a variable with jQuery? | <p>I select some tables using this:</p>
<pre><code>$('.StatusDateTable').each(function() {
var statusLight = $(this).find(".StatusLight").attr("src");
statusLight = statusLight.substring(33).slice(0,-9);
if (statusLight == "Blue") {
var columns = Math.abs((start - end)-1);
var columnWidth = 40;
var margin... | javascript jquery | [3, 5] |
957,044 | 957,045 | Avoid data redundancy in ASP.NET page | <p>I have an asp.net page which uses a listview to show 2 columns of data.
The first column has just labels and the second one has dropdowns.</p>
<p>My concern is, the dropdowns in second column has same items 100% of the time, they never change and since it is databound, and datasource to these dropdown is also same.... | c# asp.net | [0, 9] |
5,804,537 | 5,804,538 | Example of use GetRolesForUser(); | <p>I need to check in conditional logic if a user has more that one role associated.
Script should work like:
If a user has 1 role CODE OK
If a user has more that 1 role CODE ERROR</p>
<p>The method is
GetRolesForUser();</p>
<p>But I do not know how to use it, could you please give me a sample of code? how to impleme... | c# asp.net | [0, 9] |
2,485,120 | 2,485,121 | while using maskededitextender all links in master page will disabled in asp.net | <p>I have a text box in my content page of asp.net webapplication. I masked the text box with maskededitextender with date format dd/MM/yyyy. I use custom validator to validate the text box. While entering wrong date format in text box like MM/dd/yyyy(12/23/2011) it will throw validation message "Incorrect date format"... | c# asp.net | [0, 9] |
3,659,054 | 3,659,055 | In a browser extension, how do I click a specific button of an alert? | <p>So...</p>
<p>I need to click <code>[Stay on this page]</code> automatically in such a prompt:</p>
<blockquote>
<p>Confirm navigation: [Leave this page] [Stay on this page]</p>
</blockquote>
<p>The code that invokes this is </p>
<pre><code>$(window).bind('beforeunload', function() {
return 'Leave page?';
//... | javascript jquery | [3, 5] |
1,677,092 | 1,677,093 | passing variable javascript into php | <p>I want to pass a variable javascript into variable php. I can't use $_GET or $_POST because is all loaded by the method load in jquery and I don't have any form or possbility to implement it.
This is my code:</p>
<pre><code><script type="text/javascript">
var id= "test";
</script>
<?php $_SESSION['... | php javascript | [2, 3] |
946,159 | 946,160 | Style formatting | <pre><code><marquee style = "color: Red; font-size: 24px;">
<?php for($i = 0; $i < 50; $i++)
{
echo $symbol[$i];
echo "\t";
echo $chng[$i];
echo "\t\t\t";
}?>
</marquee>
</code></pre>
<p>I need to change the color of text based on the value of <em>$chng[$i]</em>. i.e. ... | php javascript | [2, 3] |
3,511,884 | 3,511,885 | How to change the button with a spinner in actionbar to loading? | <p>I have a webview and want to listen its loading event and I have a refresh button on my actionbar. </p>
<p>How to change the button to a spinner programmatically?</p>
| java android | [1, 4] |
2,178,496 | 2,178,497 | Intent problem, return value (Android) | <p>I have an application that open an other class using intent : </p>
<pre>
private void createRepository(){
Intent j = new Intent(this, Repository.class);
startActivityForResult(j, ACTIVITY_CREATE);
}
</pre>
<p>In Repository.class we have the <strong>onActivityResult</strong> method :</p>
<pre>
... | java android | [1, 4] |
364,586 | 364,587 | jQuery select first child three levels deep | <p>I have the following HTML structure:</p>
<pre><code><div class="s1>
<div class="s2">
<span class="span1">
<span>text</span>
</span>
</div>
</div>
</code></pre>
<p>Currently I am selecting the most nested span with the following selectors:</p>
<pre><code>$(... | javascript jquery | [3, 5] |
2,878,777 | 2,878,778 | How to make those dynamic anchor links with jQuery? | <p>I've recently discovered a website which does something really cool! Example:</p>
<ul>
<li>There are two links "Cat" and "Dog". </li>
<li>There are two DIV containers, id="catImage" and id="dogImage"</li>
<li>The initial URL looks like <a href="http://mysite.com/#cat" rel="nofollow">http://mysite.com/#cat</a></li>
... | javascript jquery | [3, 5] |
775,976 | 775,977 | Issue converting a string value to an int | <p>Below is a snippet of my code.</p>
<pre><code> private String makeDayCode(String unlockCode, String code) {
// TODO Auto-generated method stub
int intUnlockCode = 0;
int[] newDateArray = new int[8];
Log.v (LOG_TAG, "tick ");
SimpleDateFormat s = new SimpleDateFormat("... | java android | [1, 4] |
1,700,452 | 1,700,453 | Which technique is better? | <p>Which technique is better:</p>
<pre><code><span onclick="dothis();">check</span>
</code></pre>
<p>or:</p>
<pre><code><span class="bla">check</span>
<script type="text/javascript">
$('.bla').click(function(e) {} );
</script>
</code></pre>
<p>Are there any differences accord... | javascript jquery | [3, 5] |
2,042,326 | 2,042,327 | Make delete button procedurally | <p>I have HTML:</p>
<pre><code><button id='pusher'>pusher</button>
<ul id="sortable">
<li>things here</li>
</ul>
</code></pre>
<p>And JavaScript:</p>
<pre><code>$(".del").click(function(e) {
$(this).parent().remove();
});
$("#pusher").click(function(e) {
var text = ... | javascript jquery | [3, 5] |
1,062,999 | 1,063,000 | Explain Java Notation 'new' with bracketed code | <p>I see this notation, a new operator with a class name and then bracketed code, occasionally in Android examples. Can someone explain this? In the example below, <em>PanChangeListener</em> is a class (or maybe an interface) and 'new' creates an instance, but what role does the bracketed code play with respect to th... | java android | [1, 4] |
2,021,418 | 2,021,419 | Registering a script multiple times | <p>In the code behind, I register a startup script as below:</p>
<pre><code> string strFunctionName = "ShouldAdd";
sb.Append(strFunctionName + @"((blnShouldAdd ? "true" : "false") + ", true);");
ScriptManager.RegisterStartupScript(this, this.GetType(), "shouldAdd", sb.ToString(), true);
</code></pre>
<p>This pi... | c# asp.net | [0, 9] |
2,645,433 | 2,645,434 | Javascript calendar not working | <p>My JavaScript calender is working in IE but it is not working in Mozilla.</p>
<p>My code:</p>
<pre><code> <table>
<tr style="height: 5px;">
<td>
<asp:TextBox ID="txtBorderedDate" runat="server" CssClass="TextBoxMandatory" Enabled="false"></asp:TextBox>
</td>
... | asp.net javascript | [9, 3] |
5,020,096 | 5,020,097 | Dalvik VM vs Sun JVM | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/230193/what-can-you-not-do-on-the-dalvik-vm-androids-vm-that-you-can-in-sun-vm">What can you not do on the Dalvik VM (Android’s VM) that you can in Sun VM?</a> </p>
</blockquote>
<p>What ever interviews i ... | java android | [1, 4] |
4,264,219 | 4,264,220 | Why Dead Code Warning? | <p>i have: </p>
<pre><code> if (Constants.IS_LIVE_MOD == false)
account = Constants.OM_ACCOUNT;
else
account = "abc";
</code></pre>
<p>i am getting a dead code warning on 'else'. Why is it so and wat is the solution for it. Please help.</p>
| java android | [1, 4] |
971,532 | 971,533 | Jquery dynamic TextBoxes with Request.form Iteration | <p>i am Adding multiple TextBoxes with Jquery in my Application, then in code behind file i want can access the values by Request.form[name]. I want o iterate these textboxes and read values of whatever Text is entered by the user, so i can store it in database.
any idea how can i save the value of these textboxes in D... | c# jquery asp.net | [0, 5, 9] |
851,435 | 851,436 | How to invoke browser without losing browsing state? | <p>I have written an activity that has 2 image buttons (1 for messaging and another for browser). On click on each will start messaging and browser android activities respectively.</p>
<p>My question is: whenever I start my app and click on any of the buttons say browser button for example, and after it starts the and... | java android | [1, 4] |
1,546,587 | 1,546,588 | Jquery: How to window.open() with no valid href? | <p>I have web page on which I display a lot of summary information. I would like to be able to, by clicking a right button or link, to open up a new window and display the underlying data.</p>
<p>For many reasons I cannot request the underlying data again from the server once the summary information page is generated<... | javascript jquery | [3, 5] |
365,208 | 365,209 | selectbox value calculation | <p>I want to do a calculation between selectbox values. The problem with my code is that the first part of the calculation only gives me <code>0</code>, which Motherboard value*quantity. the second part works fine which Chassis*quantity. My formulas is <code>motherbord*Quanity+chassis*quantity</code>. </p>
<p>Here is ... | php javascript | [2, 3] |
5,155,323 | 5,155,324 | thread problem in suspend() and resume() | <p>hi all
i doing a stop watch. for pause i use Thread.suspend() and resume i use Thread.resume(). but the resume is not resume the work.
code:</p>
<pre><code>pause(){
shouldRun = false;
currentThread.suspend();
}
resume(){
shouldRun = true;
currentThread.resume();
}
</code></pre>
<p>while(shouldRun... | java android | [1, 4] |
4,368,554 | 4,368,555 | Take href of an anchor in a container and apply it to image | <p>I have a list of DIV's that all contain a piece of text, an image, and an anchor.</p>
<p>With Javascript/jQuery, is it possible to take the href of the anchor, and wrap the image in anchor tags with that link? </p>
<p>I know this is a strange requet, Ive made a fiddle...</p>
<p><a href="http://jsfiddle.net/fFgwb/... | javascript jquery | [3, 5] |
754,173 | 754,174 | Is it possible to iterate through JSONArray? | <blockquote>
<p><strong>Possible Duplicates:</strong><br>
<a href="http://stackoverflow.com/questions/3408985/json-array-iteration-in-android-java">JSON Array iteration in Android/Java</a><br>
<a href="http://stackoverflow.com/questions/1568762/jsonarray-with-java">JSONArray with Java</a> </p>
</blockquote>
<... | java android | [1, 4] |
6,026,972 | 6,026,973 | Using SqlDBType.Decimal in Prepared Statement C# | <p>am using a Prepared Statement in C#. </p>
<pre><code> SqlCommand inscommand = new SqlCommand(supInsert, connection);
inscommand.Parameters.Add("@ordQty", SqlDbType.Decimal,18);
inscommand.Prepare();
u = inscommand.ExecuteNonQuery();
</code></pre>
<p>The above code throws below Exception:</p>
<p><em>SqlCommand.... | c# asp.net | [0, 9] |
2,140,430 | 2,140,431 | How do I create an ASP.NET website to search MLS or IDX listings? | <p>How do I create an ASP.NET website to search <a href="http://en.wikipedia.org/wiki/Multiple_Listing_Service" rel="nofollow">MLS</a> or <a href="http://en.wikipedia.org/wiki/Internet_Data_Exchange" rel="nofollow">IDX</a> listings for a real estate website? I'm assuming there is a C# library to do this? I'm curious a... | c# asp.net | [0, 9] |
1,169,628 | 1,169,629 | Writing to a file | <p>I am extracting content from a web page using JS/JQuery and want to write the data to a comma separated file. I know javascript doesn't really support file io and I'm trying to avoid setting up a local apache server just to process the content to a file. Is there an easier way to do this?</p>
| javascript jquery | [3, 5] |
3,944,320 | 3,944,321 | jQuery map splitting the value of input | <p>jQuery map is returning : <code>data:["1", "8", "5", ".", "9", "0"]</code> when the input <code>val</code> is <code>185.90</code> - <strong>why the value is being splited?</strong> </p>
<p>The code:</p>
<pre><code>var $cel = $.map(
$('td:nth-child(' + (i + 2) + ') input').each(function() {
$(this).val();
... | javascript jquery | [3, 5] |
1,178,699 | 1,178,700 | String is undefined | <p>I've got the following property in the code-behind of my .aspx:</p>
<pre><code> protected string CurrentProductView
{
get
{
string viewName = string.Empty;
viewName = Enum.GetName(typeof(ProductView), currentProdView);
return viewName;
}
}
</cod... | c# javascript jquery | [0, 3, 5] |
4,371,847 | 4,371,848 | JQuery .append not appending to textarea after text edited | <p>Take the following page:</p>
<pre><code><html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js" type="text/javascript"/>
</head>
<body>
<div class="hashtag">#one</div>
<div class="hashtag">#two&l... | javascript jquery | [3, 5] |
1,729,572 | 1,729,573 | How to check if there exists at least one li element with attr = something? | <p>So I want to check if there is any li element that has a attribute of "data-foo" and its value is "bar".</p>
<p>Would this work? :</p>
<pre><code>if ($('li[data-foo=bar]'))
{
//exists
}
else
{
//does not exist
}
</code></pre>
<p>Thanks</p>
| javascript jquery | [3, 5] |
5,553,421 | 5,553,422 | tableDnD - enabling drag / drop for only one <td> in a <tr> | <p>I'm using Denis' outstanding tableDnD jquery plugin.
I would like to allow users to drag/drop rows but only when their mouse is within a particular td within the row.</p>
<p>So far I've tried two methods:(note that the var "tr" contains the jquery row element I'm operating on. the td id="queue_position" is the one ... | javascript jquery | [3, 5] |
2,262,033 | 2,262,034 | Convert File object to byte array | <p>I am developing an application which I capture videos in it. I am saving the recorded videos to the phone. What I want to do is to convert the saved files to byte arrays.</p>
| java android | [1, 4] |
2,186,094 | 2,186,095 | Populating ArrayAdapter - type String[] | <p>I'm new to Java and Android development and i'm stucked while trying to populate an ArrayAdapter to creating a ListView. The code below works perfectly:</p>
<pre><code> String name[] = {"a","b","c",
"d","e"};
this.setListAdapter(new ArrayAdapter<String>(this,
R.layou... | java android | [1, 4] |
1,691,653 | 1,691,654 | How to create a tracking script with js and php? | <p>I want to create a simple tracking script to give to my clients. Something similar with GA but very basic.</p>
<p>The requirements are
<li> give the clients a single and simple js script like google Analytics does
<li> make most of the logic inside the js file loaded by 3th party sites from the main site
<li> coll... | php javascript | [2, 3] |
3,267,176 | 3,267,177 | How to limit users from entering english characters in a textbox | <p>Do I need to use regex to ensure that the user has typed in English? All characters are valid except non English characters.</p>
<p>How do I validate this textbox?</p>
| c# asp.net javascript | [0, 9, 3] |
2,123,221 | 2,123,222 | How to prevent simultaneous login with same user on different pcs | <p>We have a build a intranet application where users have to login to do certain tasks...
We have to make sure that no "application user" is logged in more than once at the same time.</p>
<p>So what I do at the moment is that I store the current asp .net session id in the database and then i compare at every page loa... | c# asp.net | [0, 9] |
3,843,864 | 3,843,865 | How to run separate application from Android button click | <p>I tried to add two buttons in my Android application to select an application from separate two applications Order system and Inventory system.As shown in the image.</p>
<p><img src="http://i.stack.imgur.com/PslmY.jpg" alt="enter image description here"></p>
<p>I have implemented these two applications as separate... | java android | [1, 4] |
5,511,078 | 5,511,079 | Android: assets alternative | <p>I'm using <strong>assets</strong> as standard <strong>icons storage</strong> but now I have request that these icons should be <strong>updated</strong> for some cases. I know that I can't touch assets, so do you have any suggestions where to store them?? These files should be <strong>pre-installed</strong> and <stro... | java android | [1, 4] |
5,252,518 | 5,252,519 | How to select all values in drop down list by clicking a button using jQuery? | <p>How to select all values in drop down list by clicking a button using jQuery in JavaScript?</p>
<p>Thanks in advance</p>
| javascript jquery | [3, 5] |
4,582,149 | 4,582,150 | checking if location.hash exists | <p>I have a carousel that I can change the location of with an integer value.
<br>What I'd like to do is take the hash, remove the <code>#</code> symbol and store that value in a variable which I can later use in a function.</p>
<p>I've pasted the code below, which for some reason just won't work.</p>
<pre><code>var ... | javascript jquery | [3, 5] |
71,773 | 71,774 | Which Language I Should Learn After Python? | <p>I'm 14. I'm currently learning Python Language. Now What Should I Learn After Python ? Here are the options:</p>
<ol>
<li>C++0x</li>
<li>C# or .Net</li>
<li>Java or any other like Scala, Groovy, etc.</li>
<li>D</li>
</ol>
<p>Sorry For First Post. Plz Help me this time.</p>
| java c++ python | [1, 6, 7] |
1,449,633 | 1,449,634 | Why does my function get called twice in jQuery? | <p>I have the following jQuery</p>
<pre><code>$('img[title*=\"Show\"]').click(function() {
//$e.preventDefault();
var position = $('img[title*=\"Show\"]').parent().position();
$('#popover').css('top', position.top + $('img[title*=\"Show\"]').parent().height() + 150);
console.log(p... | javascript jquery | [3, 5] |
258,465 | 258,466 | How to change the value of two hidden fields with the same id and name jquery? | <p>I have this fields</p>
<pre><code><input type="hidden" id="uidhcdm" name="uidhcdm" value="0">
<input type="hidden" id="uidhcdm" name="uidhcdm" value="0">
</code></pre>
<p>and i am using a function called change val </p>
<pre><code>function changeval(x,val)
{
$('#'+x).val(val);
}
</code></pre>
<p... | php jquery | [2, 5] |
2,784,806 | 2,784,807 | Internet Speed measurement(3G) with geolocation in a single thread | <p>I have to find out internet speed (upload/download) with geo-location and put it into a database. What is the method to find out the upload/download speed and location?</p>
| java android | [1, 4] |
5,064,566 | 5,064,567 | Android --- Connecting activities and services | <p>I have this basic design in mind:</p>
<ul>
<li>A main activity will offer a choice of sub activities and also create a Bluetooth service.</li>
<li><p>The Bluetooth service will reads and buffer live data from a Bluetooth connected device. Enough data , at a fast enough rate (100 to 1000 sps ) so that I don't think ... | java android | [1, 4] |
5,676,689 | 5,676,690 | Loading effect using jQuery | <p>Can anyone help me with any method, jQuery functions/plugins or so on which can give a loading effect similar to this site <a href="http://www.big.dk/" rel="nofollow">http://www.big.dk/</a>??</p>
<p>I'll be loading lots of images and I want to load it the way the site above is doing.</p>
| javascript jquery | [3, 5] |
1,043,961 | 1,043,962 | How I access HttpContext.GetGlobalResourceObject() in javascript(.js) file which is used in my application? | <p>I am using javascript file for validtion. Now I have to localize that javascript file. I want to HttpContext.GetGlobalResourceObject() in .js file. Can I use HttpContext.GetGlobalResourceObject() in my .js file? Is there any other option to locaize javascript file.</p>
| c# javascript asp.net | [0, 3, 9] |
5,882,640 | 5,882,641 | Flipping around a div using Javascript | <p><a href="http://lab.smashup.it/flip/" rel="nofollow">Flip</a> is a great JQuery plugin for flipping blocks, but it doesn't preserve the background while it animates the flip.</p>
<p>For example, <a href="http://i.stack.imgur.com/3j46N.png" rel="nofollow">I have this pretty background here</a>, before I flip. <a hre... | javascript jquery | [3, 5] |
5,331,848 | 5,331,849 | Iterating thru an array using javascript for | <p>How do I iterate thru an array like this using 'for' in jquery. This one has me totally lost. I cant figure how to get those values out from an array like this and I cant change the way the array is done.</p>
<pre><code>//Php
$errors['success'] = false;
$errors['#errOne'] = "Enter a valid username";
$errors['#e... | javascript jquery | [3, 5] |
2,939,453 | 2,939,454 | Trying to toggle a panel whilst changing the icon to 'view more' and 'view less' | <p>I've just started learning jQuery/javascript, so this might seem like a really basic question, but it's annoying me nevertheless.</p>
<p>I have a panel of 6 <code><li></code>s, 3 of which are hidden until clicking on the 'view more' link at which point the panel toggles to reveal the other 3. The icon is chan... | javascript jquery | [3, 5] |
5,191,237 | 5,191,238 | allow only .25, .50 and .75 in a text box | <p>I am working on a web application and using javascript to restrict or round off a value. Whenever I enter any decimal value in a textbox, it should be rounded off to .25, .50, .75, or .00. any idea how to do that? Even if am able to enter only .25, .50, .75 and .00 is also fine... but how to restrict for only these ... | javascript jquery | [3, 5] |
3,658,091 | 3,658,092 | Add reset to defaults button to asp form but avoid postback | <p>I have a couple of fields on a form that will be populated with default values. I would like to put a button that will allow me to reset those fields to their default values if they have been modified. However I would like to avoid the postback so that I don't have data being sent to the database.</p>
<p>Is it poss... | javascript asp.net | [3, 9] |
1,954,936 | 1,954,937 | Javascript code not being called in asp.net code behind | <p>I have a block of code (posted below) where if the first IF clause is satisfied, the app does not call the javascript('MyPortfolioItemExists()') function. Instead, it exits the function and goes on to process other code lines. </p>
<pre><code>If drPortfolio.HasRows Then
Dim p As Page = CType(System.Web.HttpCon... | javascript asp.net | [3, 9] |
2,840,761 | 2,840,762 | Jquery: shake effect not working | <p>Sorry to be a pain, but im really frustrated this isn't working for me at all</p>
<pre><code>$(document).ready(function(){
$('.wrap').effect("shake", { times:3 }, 300);
});
</code></pre>
| javascript jquery | [3, 5] |
1,120,190 | 1,120,191 | Find value from one UserControl to anoter Usercontrol | <p>I have a page in that Page I have <strong>2 usercontrols uc1 and uc2</strong>
I have one property <strong>PageID</strong> on the <strong>Usercontrol uc1</strong>, now I have a button on uc1 on that button's click event I am doing some database process and that will return the PageID, now I want to access this PageID... | c# asp.net | [0, 9] |
994,734 | 994,735 | Jquery onclick event | <p>I have a link</p>
<pre><code><a id="special_link" href="" onclick="" >Link</a>
</code></pre>
<p>Is it possible to use Jquery in the onclick part and apply something to the current element?</p>
<p>Something similar with : </p>
<pre><code>$("#special_link").html('test');
</code></pre>
<p>Update : </p... | javascript jquery | [3, 5] |
5,191,072 | 5,191,073 | Error free JQuery/Javascript is not working in Firefox 4 or Chrome | <p>Code: <a href="http://dpaste.org/Oerz/" rel="nofollow">http://dpaste.org/Oerz/</a></p>
<p>The page looks as it should, with the title, 5 paragraphs and buttons all appearing. Each button is supposed to make a small alteration to a specific elements styling. </p>
<p>Currently no action occurs when any of the button... | javascript jquery | [3, 5] |
2,676,529 | 2,676,530 | Error parsing attribute 'enableEventValidation': Type 'System.Web.UI.Page' does not have a public property named 'enableEventValidation' | <p>Not seen this error discussed previously here (see subject line), maybe someone has run into the same problem.
I have <code>enableEventValidation = "False"</code> set for the <code><page></code> tag in my web.config file.
As I try to build my web app project on VS2010, I receive this error , rendering me unabl... | c# asp.net | [0, 9] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.