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,304,277 | 1,304,278 | dynamic image source? | <p>I'm entirely new to jQuery and am trying to use a plugin carousel, however it is a bit confusing. I have it installed now, and I am trying to get rid of it's bottom scroll bar and automate it. The code to make enable auto according to the manual is: </p>
<pre><code><script type="text/javascript">
jQuery(... | javascript jquery | [3, 5] |
2,960,019 | 2,960,020 | IF container "x" does not contain div "n"? JS | <p>I was wondering if its possible to make an <code>IF</code> statement, where if a container (parent div) contains/does not contain a certain div....</p>
<pre><code><div class="parent" id="x">need to check if div id "n" is here....</div>
</code></pre>
<p>So, <code>IF</code> the parent container ("<code>x... | javascript jquery | [3, 5] |
954,363 | 954,364 | UNC path not working with $ | <p>I have a unc path like this:</p>
<pre><code>var path =@"\\\\Server001\R$\XYZ";
</code></pre>
<p>When I use Directory.Exists(path) I am always getting false but the path does exists in the system.
The actual result should be true.I am getting true if I give path =@"\\Server001\XYZ", but when the path contains R$ it... | c# asp.net | [0, 9] |
1,451,696 | 1,451,697 | Wrap certain word with <span> using jquery | <p>I have the following <code>div</code>:</p>
<pre><code><div id="query" style="width:500px; height:200px;border:1px solid black"
spellcheck="false" contenteditable="true"></div>
</code></pre>
<p>where Clients can write their <code>SQL</code> queries. What I was trying to do is wrap words the client en... | javascript jquery | [3, 5] |
1,785,502 | 1,785,503 | Display only HTML links jQuery | <p>I have a url and I want to display only the html links or URLs using jQuery.</p>
<p>Thanks
Jean</p>
| php jquery | [2, 5] |
1,902,779 | 1,902,780 | Remember login information | <p>I would like to let the user register once and from that moment he won't need to login every time he open the app.
How would I do that?should I save the login information on the device and load it every time he tries?is it safe?maybe save only his id and then load his info from the mysql db?</p>
<p><strong>EDIT</st... | java android | [1, 4] |
4,535,660 | 4,535,661 | Why we use if, else if instead of multiple if block if the body is a return statement | <p>I am always in the habit of using if, else-if statement instead of multiple if statements. </p>
<p>Example:</p>
<pre><code>int val = -1;
if (a == b1) {
return c1;
} else if (a == b2) {
return c2;
} ...
...
} else {
return c11;
}
</code></pre>
<p>How does it compare to example 2:</p>
<pre><code>if (a == ... | java c++ | [1, 6] |
1,879,166 | 1,879,167 | jquery selector for div with class | <p>I tried this below. I think the return Object of <strong>$("div.tab_select")[0]</strong> isn't a jQuery Object, but I can't even use pure javascript method.</p>
<p>Is there any way to make it jQuery Object? for instance <strong>$($("div.tab_select")[0])</strong>..I know this's silly;</p>
<p>Thank you for reading.<... | javascript jquery | [3, 5] |
3,297,304 | 3,297,305 | Getting already selected text | <p>By using following code I am getting the selected text's startindex and the selected text itself. I am storing them in a local database. I am changing the selected text background color to yellow.</p>
<pre><code>var mainDiv = document.getElementsByTagName("body")[0];
var sel = getSelectionCharOffsetsWithin(mainDiv)... | javascript jquery | [3, 5] |
1,217,247 | 1,217,248 | JQuery Animation Question | <p>I have created a jquery animation that can be seen by clicking the <strong>Preview</strong> button on top:</p>
<p><a href="http://jsbin.com/anayi3/edit" rel="nofollow">http://jsbin.com/anayi3/edit</a></p>
<p>I have used the <code>slideDown</code> animation method. The problem is that all items slide down together.... | javascript jquery | [3, 5] |
88,107 | 88,108 | How can I submit a web form by clicking keyboard button? | <pre><code><form action="page.php" method="post">
<input type="text" name="some_text" />
<input type="submit" name="some_submit" /
</form>
</code></pre>
<p>I want to submit this form by pressing defined keyboard button. I wonder how to do it. If it was just an <code><a></code> elemen... | php javascript | [2, 3] |
2,686,198 | 2,686,199 | Cookie missing when called in a class | <p>Good day..! I have some issue getting the value of my cookie when called in a class.. </p>
<p>here's my code in my default.aspx.. I can retrieve the value on the when inside the aspx page</p>
<pre><code> HttpCookie myCookie = new HttpCookie("SAMPLE");
myCookie["value"] = HttpUtility.UrlEncode(value);
myCooki... | c# asp.net | [0, 9] |
2,074,290 | 2,074,291 | Tables: selected rows and loop through column JQuery&JavaScript | <p>I have two questions :)</p>
<ol>
<li><p>Im using Jquery to select table rows and checkbox in the first column, how can I make 2 and 7 columns not clickable. I mean if you click 7 column's cell, it will not select checkbox and will not add 'selected' class.</p>
<pre><code>$('#tableID tbody tr')
.filter(':has(:c... | javascript jquery | [3, 5] |
2,176,033 | 2,176,034 | jQuery Submit and the Heisenberg Effect | <p>I am trying to do a form.submit that will call a non-static event on the server side and force a full postback; however, I am encountering an example of the Heisenberg Effect. If I put a breakpoint on line 3 of code below, the code-behind gets the message and the submit works. If I put the breakpoint on line 4 inste... | jquery asp.net | [5, 9] |
5,706,771 | 5,706,772 | Problem with loop on IE8 | <p>Hi i have this javascript function</p>
<pre><code>function test(){
var count = 0;
var date1 = $('#alternatestartdate').val();
var date2 = $('#alternateenddate').val();
var startDate = new Date(date1);
var endDate = new Date(date2);
... | javascript jquery | [3, 5] |
1,161,639 | 1,161,640 | jQuery.parseJSON vs JSON.parse | <p><code>jQuery.parseJSON</code> and <code>JSON.parse</code> are two functions which perform the same task. If jQuery script is loaded, would using <code>jQuery.parseJSON</code> be better than <code>JSON.parse</code> in terms of performance?</p>
<p>If yes, why? If no, why not?</p>
| javascript jquery | [3, 5] |
4,940,385 | 4,940,386 | Resetting setTimeout object if exists | <p>When somebody clicks my checkboxes, from a long list of checkboxes, I want to show the number of selected checkboxes in a little popup element. My problem is, the little popup element should disappear 5 seconds after the <strong><em>last</em></strong> click, which is OK for one checkbox being clicked, but if I quick... | javascript jquery | [3, 5] |
2,215,138 | 2,215,139 | Get externally referenced class attributes to be local and inline? | <p>I have a webpage that works and all is swell. It is coded using mostly good practises of external css files and minimal inline styles/code. All is well.</p>
<p>Now however, I want to send that page via HTML text only, such as in an email. So there should be no external references to external sites at all. Meaning I... | javascript jquery | [3, 5] |
4,685,555 | 4,685,556 | Copy div content to textarea and preserving code | <p>I made this demo: <a href="http://jsfiddle.net/69nxx/6/" rel="nofollow">http://jsfiddle.net/69nxx/6/</a></p>
<pre><code><div contenteditable="true">
<span title="&lt;test&gt;">abc &lt; &amp;lt;</span> <span></span>
</div>
</code></pre>
<p>I wish to get ... | javascript jquery | [3, 5] |
1,078,165 | 1,078,166 | jquery .slideToggle wait till all other <li> are closed | <p>Hi all I use a php script to pull the names of the products from a mysql db and display them into a list, each list has 4 sub list elements that are displayed and hidden (toggled) via jquery. my issue is if i move my cursor from on product to the next then it starts opeing that products <code><li></code> eleme... | php jquery | [2, 5] |
1,854,376 | 1,854,377 | Click event only works on first click after pageload | <p>I use this popup plugin for jquery and get some strange behaviour. I have contacted the creator but got no answer and would like to ask here if there is any general problem with my code.</p>
<p>The setup:
Regular html links that open a page in a new tab (for JS disabled users).</p>
<p>The js below to catch the lin... | javascript jquery | [3, 5] |
4,046,365 | 4,046,366 | How to allow people to download songs from my website without opening dialogue box | <p>I have a code which is static. I want to convert it into dynamic so that user can download any song which they want. I am using a <code>default1.aspx</code> page. And here <code>1.mp3</code> is the static link. Please write the code to convert it into dynamic. </p>
<pre><code>protected void Page_Load(object sender,... | c# asp.net | [0, 9] |
4,654,425 | 4,654,426 | Add space after each fourth + sign | <p>I have such a text for example: </p>
<p>"A01+B02+C03+D04+E05+F06+G07+H08+I09+J10+K11+L12+M13+N14+O15+P16"</p>
<p>I would like to add a space after each fourth '+' sign.</p>
<p>This is because if the text is too long in the grid's cell in my page, then it's simply cut off. So I'm thinking to simply wrap the string... | c# asp.net | [0, 9] |
5,086,625 | 5,086,626 | converting normal date to epochtime | <p>I was trying to use a graph plugin which only accepts input dates of format "<code>1196463600000</code>" which i guess is epoch timestamp. but my date format is in the format "<code>2005-01-01</code>" , I have searched a lot to find a way to convert the normal time format to epoch, bt could nt find any.. is the time... | javascript jquery | [3, 5] |
5,634,676 | 5,634,677 | jQuery Parent Class Attribute | <p>I want to add a slide up affect with jQuery to a DIV when a link inside of the DIV is clicked, but the problem i am running into is the class of the DIV's are defined by a loop. So, i can't define the DIV class in the jQuery line, because each DIV class is different and i cannot determine ahead of time what they are... | javascript jquery | [3, 5] |
5,784,996 | 5,784,997 | firefox onclick event | <p>This onclick function:</p>
<pre><code>VVi".$row['id'].".onclick = function() {
alert('1');
var ResultI = '".$row['id']."';
location.href='visuals.php?ResultI=' + ResultI + '&pg=' + pgi + '&vid=false';
};
</code></pre>
<p>Cannot be called on firefox... I tried it on chrome and opera, and everything... | php jquery | [2, 5] |
5,205,781 | 5,205,782 | search json numbers | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/18082/validate-numbers-in-javascript-isnumeric">Validate numbers in JavaScript - IsNumeric()</a> </p>
</blockquote>
<p>I have the following (working) code that searches for the string "type 1" in my <code>Json</... | javascript jquery | [3, 5] |
5,142,009 | 5,142,010 | JavaScript error with html form submit | <pre><code>function formv(frm){
alert(frm.username.value);
document.myform.submit();
}
<form action="http://localhost/CI/index.php/scontr/logs" method="post" name="myform">
<fieldset>
<table>
<tr>
<td>UserID:</td>
... | php javascript | [2, 3] |
3,588,007 | 3,588,008 | Send a value to an iframe | <p>I have a php program that uses a POST value to start it. I want to run the program my other website using an iframe. I have a form linking to the page the runs the iframe using a POST method. I there anyway to get the iframe to read the post rather than it's parent?</p>
<p>Otherwise is there a way to send a value t... | php javascript | [2, 3] |
1,970,369 | 1,970,370 | How can two variables both be a JQuery object, yet .css property not work on one of them? | <p>In the following code, how can <code>thebody</code> and <code>app.body</code> both be a JQuery object, yet setting the <code>.css</code> property on <code>thebody</code> works but does not work on <code>app.body</code>?</p>
<pre><code>var app = app || {};
app.show = function(html) {
this.baseElement.html(html)... | javascript jquery | [3, 5] |
5,209,746 | 5,209,747 | how to hide and show div from javascript using jquery | <pre><code> <script type="text/javascript">
function toggleDiv()
{
if (document.getElementById("searchByRegn_ChkBox").checked)
{
$("#showHideDiv2").show();
$('#showHideDiv').hide();
}
... | javascript jquery | [3, 5] |
1,580,417 | 1,580,418 | how to relate a category with subcategory and display in gridview using databind in asp.net using c#? | <p>how to relate category with subcategory and display the data in grid view with databound from database in asp.net?</p>
<pre><code> protected void Page_Load(object sender, EventArgs e)
{
{
if (Page.IsPostBack == false)
bind();
}
}
private void bind()
{
string ... | c# asp.net | [0, 9] |
3,143,146 | 3,143,147 | keep DIV displayed if mouse hover over it | <p>I have the following jQuery code (take from another question somewhere here):</p>
<pre><code>$(document).ready(function(){
$("#profile_dropdown").mouseenter(function(){
clearTimeout($(this).data('timeoutId'));
$("#profile_dropdown_content").fadeIn("slow");
}).mouseleave(function(){
v... | javascript jquery | [3, 5] |
5,649,866 | 5,649,867 | how to put javascript variable in php echo | <p>I want to add javascrept variable to php echo </p>
<pre><code>arr[i]='<?php echo $winner[javascript variable]; ?>';
</code></pre>
<p>Thanks </p>
| php javascript | [2, 3] |
308,333 | 308,334 | Implementing a highlight feature for a live search in JavaScript/JQuery | <p>I'm trying to implement a highlighting feature for a livesearch.</p>
<p>What I do is, send an ajax request with an token the user looks for. I receive an html text containing a table.</p>
<p>So I thought I could use a simple regex, looking for the users token and then surround it with a span, but I am receiving so... | javascript jquery | [3, 5] |
4,929,491 | 4,929,492 | passing data from php simple dom parser to jquery | <p>I have this simple script : </p>
<pre><code><?php
include_once("simple_html_dom.php");
$content = file_get_html('http://en.wikipedia.org/wiki/Myst');
?>
</code></pre>
<p>What I'm trying to do is find a way to send this to a jquery script ....would I need to do a $.ajax GET in jquery? What would I need to ad... | php jquery | [2, 5] |
4,569,673 | 4,569,674 | Browser "back" button directs to particular page | <p>How can I set the "back" button in somebody's browser to direct to a particular URL? I just want the back button to send back to the home page if on a different page.</p>
| javascript jquery | [3, 5] |
5,605,134 | 5,605,135 | Calling a jquery function on row click of Asp.Net Gridview | <p>I am using <code>Asp.Net/C#</code> in my project , in one of my pages I have a <code>GridView</code> and I am using the following line to handle row click </p>
<pre><code>e.Row.Attributes.Add("onclick", "location='Default.aspx?id=" + e.Row.Cells[0].Text + "'");
</code></pre>
<p>This is working fine , however I hav... | jquery asp.net | [5, 9] |
1,229,433 | 1,229,434 | Use JQuery/JS to eagerly load a bunch of MIDI file URls and cache them to be played on demand | <p>Is it possible to have a webpage where on buttonClick, JQuery goes fetches a certain few URLs to MIDI files, and instead of them playing automatically, they are played on demand ?</p>
<pre><code><a href="bach.mid">Bach</a>
<a href="beethoven.mid">Beethoven</a>
</code></pre>
<p>I want to be... | javascript jquery | [3, 5] |
2,784,605 | 2,784,606 | release background drawable in onpause | <p>What is the proper way to release a drawable and manage it's lifecycle in an activity? I'm trying to clear my bitmap because i see some memory related crashes.</p>
<p>I do:</p>
<pre><code>private static bitmap;
public void onResume() {
view.setBackgroundDrawable( new BitmapDrawable(getResources(... | java android | [1, 4] |
836,390 | 836,391 | PullToRefreshListView not supported in Android Jelly Bean | <p>I had implemented the PullToRefreshListView from <a href="https://github.com/johannilsson/android-pulltorefresh" rel="nofollow">johan</a> in an app which works great on every other version of Android except the new Jelly Bean. Does anyone know what might be the reason for this or if there exists a solution to this p... | java android | [1, 4] |
5,875,979 | 5,875,980 | Totalling checked checkboxes amidst changes | <p>I have a page with many checkboxes, each of which are tied to a product with a price. I'm trying to use jQuery to give a real-time readout of the 1) number of products, and 2) total price of the user's selections.</p>
<p>This <em>should</em> be very easy: I would have done something like:</p>
<pre><code>$(input).c... | javascript jquery | [3, 5] |
4,094,680 | 4,094,681 | Detect the browser tab switching/ browser minimising using javascript | <p>I am trying to code my own versions of popular games such as minesweeper, snake etc using JavaScript. Some of the games require timer, so I wonder is it possible to detect whether user switched to another tab or minimized the browser so I can put the game on pause mode? Thanks for any help provided!</p>
| javascript jquery | [3, 5] |
3,361,066 | 3,361,067 | pdf2image.dll license file missing | <p>1) in my code i am using PDF2Image.dll file to convert pdf to images.in uncompile version it work perfect but when i publish the website and try to convert an image to pdf, it say no license found.
2) I am using cutewebui ajax uploader to upload files to server. it is the same problem with it. It works fine but whe... | c# asp.net | [0, 9] |
6,061 | 6,062 | JS Browser Loading animation | <p>How to stop browser load animation. I use hidden i frames and refresh them very often, and I don't want users to see annoying load animation and progress bar.</p>
| javascript jquery | [3, 5] |
5,877,401 | 5,877,402 | How to navigate through an array of urls as list of links and with previous/next links? | <p>I have an array of urls that I want to display one by one in an iframe. The user will navigate to each URL by clicking a link in a list of the URLs or by clicking the previous/next links. What is the best way to do this? Working code snippets would be very very appreciated.</p>
<p>I'm posting as few details as poss... | javascript jquery | [3, 5] |
2,946,902 | 2,946,903 | Keep only first 20 entries in string | <p>I have a string that contains calculations. Each entry has a space in between the next. How do I keep only the most recent 20 entries? </p>
<pre><code>Label2.text += TextBox1.Text + "+" + TextBox2.Text + "=" + Label1.Text + " ";
</code></pre>
<p>Output is:</p>
<p>20+20=40 40+20=60 60+20=80 </p>
| c# asp.net | [0, 9] |
1,702,839 | 1,702,840 | semantic difference between ASP and C#? | <p>Forgive me for my ignorance on this subject, but I'm a relatively seasoned php programmer who's had no experience in any other Web programming languages, except some Ruby.</p>
<p>I've been told some time ago that ASP and ASP.NET are somewhat equivalent to PHP since they perform basically the same tasks,i.e. handle ... | c# php asp.net | [0, 2, 9] |
2,543,185 | 2,543,186 | jQuery.html() - The JavaScript code is executed but disappears | <p>I am developing a small editor to add widgets (HTML, CSS and Javascript) to a site.</p>
<ul>
<li>The user types into a field the widget code.</li>
<li>When validating, the code of the widget is added to the page.</li>
<li>The user can edit the code (which is retrieved from the DOM).</li>
</ul>
<p>Except that I hav... | javascript jquery | [3, 5] |
3,515,591 | 3,515,592 | Merging 2 audio files sequentially in android? | <p>how can merge two audio files to a single file in android platform.
that is if i have two audio files namely A and B.Please give me the code to create a new audio file C that is appended by B after A.
Is there any need to convert the audio files to byte/short array ??...</p>
<p>i did like this but it plays 1st fil... | java android | [1, 4] |
1,575,672 | 1,575,673 | How does YouTube do its "live streaming" comments on videos? | <p>Example: if you go to a video on YouTube.com and click "Show comments in real time" (or something like that), the comments start to show in real time. How do they do this and how would I be able to efficiently duplicate this feature (preferrably using PHP and JavaScript)?</p>
<p>Thanks!</p>
| php javascript | [2, 3] |
3,845,454 | 3,845,455 | always want to keep first digit of my textfield as 0 | <p>hi guys i have a html form where i have a textfield which is having capabilities to enter two digits the first digit is autopopulated to be 0 and i donot want users to change that hows that possible using javascript or jQuery or anything else.</p>
| javascript jquery | [3, 5] |
5,485,427 | 5,485,428 | How to use ORM in android | <p>I have to use ORM in android. I have read about the ORM from that I have understood that It is layer between Front end and Back End Database. Can any one please tell what is mean by ORM and how to use in android program. What is the advantage to use the ORM. </p>
| java android | [1, 4] |
989,062 | 989,063 | All except closest | <pre><code><div class="container">
<a href="#" class="trigger">Click</a>
<div class="inner">one</div>
</div>
<div class="container">
<a href="#" class="trigger">Click</a>
<div class="inner">two</div>
</div>
$('.trigger').click(func... | javascript jquery | [3, 5] |
2,491,488 | 2,491,489 | Unterminated string constant error in asp.net | <p><img src="http://i.stack.imgur.com/AgLfj.jpg" alt="enter image description here"></p>
<p>Got this error while call the function</p>
<pre><code> static public void DisplayAJAXMessage(Control page, string msg)
{
string myScript = String.Format("alert('{0}');", msg);
ScriptManager.RegisterStartupScript(page,... | c# javascript asp.net | [0, 3, 9] |
1,631,817 | 1,631,818 | difference between two strings in python/php | <p>I'm looking for an easy way to compare two similar strings and output the difference
for instance if I have</p>
<p>"abcdefghijklmnop"
and
"abcdefghi"</p>
<p>the function would output </p>
<p>"jklmnop"</p>
<p>I need to know how to do this in both php and python</p>
| php python | [2, 7] |
4,734,380 | 4,734,381 | How to modify my jQuery script to add a math function and pass the result? | <p>You can find my jQuery in this fiddle <a href="http://jsfiddle.net/qSkZW/9/" rel="nofollow">http://jsfiddle.net/qSkZW/9/</a> where the value changes based on your dropdown selection.</p>
<p>What I need is to multiply the selected quantity with a PHP variable. For example when<code>$price = '10';</code> and you sele... | php javascript jquery | [2, 3, 5] |
2,490,851 | 2,490,852 | NullPointerException when trying to read Genre from ID3v1 Tag | <p>I'm trying to read the Genre Tags from mp3 files using the Beaglebuddy and JaudioTagger libraries, and I get a NullPointerException pointing at:</p>
<p>When using Beaglebuddy its caused by:</p>
<pre><code>songs.add(mp3.getMusicType().toString());
</code></pre>
<p>Or when I use JaudioTagger, its caused by:</p>
<p... | java android | [1, 4] |
3,203,431 | 3,203,432 | get current page in C# | <p>For instance if I have <a href="http://www.mywebsite.com/about.aspx" rel="nofollow">http://www.mywebsite.com/about.aspx</a>. Store about.aspx (or whatever page we're on) in a variable. Also need this to work even if there is information after the page in the url such as a query string.</p>
| c# asp.net | [0, 9] |
673,123 | 673,124 | How this Tabs tutorial works? | <p>I am trying to run this <a href="http://www.jankoatwarpspeed.com/examples/dynamic_tabs/" rel="nofollow">Dynamic Tabs tutorial</a>. After i went through the javascript, i came to know that there is no, <code>$("#tabs").tabs()</code>. </p>
<p>But till this time, i was using <code>$("#tabs").tabs()</code> to create ta... | javascript jquery | [3, 5] |
350,380 | 350,381 | How to close a window/activity after a certain amount of inactivity | <p>I'm designing a music player app for Android that will feature pop-up controls. I'm currently trying to get these controls to close after a certain period of inactivity but there doesn't seem to be a clearly documented method of doing this. So far I have managed to cobble the following solution together using a few ... | java android | [1, 4] |
409,097 | 409,098 | How to add the ListActivities to the ViewPager in android? | <p>I am preparing the Swipe by using ViewPager. In my application display the 4 ListActivities by using ViewPager.I Know how to add the views in ViewPager but I dont Know how to add the ListActivity in my app.
Please help me..................</p>
<pre><code> private class MyPagerAdapter extends PagerAdapter {
... | java android | [1, 4] |
410,896 | 410,897 | Download using WebClient - IIS Basic Authentication | <p>I am using this to download html content from a site published on IIS:</p>
<pre><code>using (var client = new WebClient())
{
client.Credentials = CredentialCache.DefaultCredentials;
string html = client.DownloadString("http://site.com");
}
</code></pre>
<p>But when the IIS is set to Basic Authentication thi... | c# asp.net | [0, 9] |
2,644,962 | 2,644,963 | find the corresponding entries between PHP array and JSON object | <p>I have two arrays</p>
<pre><code><?php
$x=array('store1'=>'A','store2'=>'B' ,...);
?>
</code></pre>
<p>and </p>
<pre><code><script type='text/javascript'>
var x={"srote1": [12,13],"store2":[20,23] ....};
</script>
</code></pre>
<p>what is the optimal way to find the corresponding entri... | php javascript jquery | [2, 3, 5] |
1,860,979 | 1,860,980 | On what factors should we opt Java or .Net technology for a windows application? | <p>I am quite aware of both java and C# .Net .when i try to create a new windows application which are the factors that decide which technology should be opted?
I know of one thing ,for great and faster UI development Visual studio helps a lot.</p>
| c# java | [0, 1] |
4,727,631 | 4,727,632 | Smarten up my jquery tabbed browsing | <p>I've put together a very simple tabbed browser which you can see here
<a href="http://jsfiddle.net/zandergrin/sN2Eu/" rel="nofollow">http://jsfiddle.net/zandergrin/sN2Eu/</a></p>
<p>I'm just wondering if there was a way to smarten up the script so that all the numbering is handled automatically - ie I can add a new... | javascript jquery | [3, 5] |
661,160 | 661,161 | Dropdown output | <p>I am using the following code to populate a second dropdown based on a selection made from the first dropdown. First, a project is chosen from the first dropdown, then the second one populates with iterations if a member was assigned to that project. At the moment, the second combobox displays a blank value if the m... | c# asp.net | [0, 9] |
5,317,572 | 5,317,573 | How to handle onActivityResult in a custom dialog class | <p>I am trying to create a custom dialog class that inherits from Dialog that will allow the user to choose a contact. I can get the contact choose to show up just fine by using:</p>
<pre><code>this.getOwnerActivity().startActivityForResult(...);
</code></pre>
<p>The problem is that this calls the onActivityResult() ... | java android | [1, 4] |
2,630,637 | 2,630,638 | Need to add another onClick event | <p>I have a checkbox, that is styled using onclick handler.</p>
<p>The issue I have is , I also want to fire a div simultaneously.. to display hidden message.</p>
<p>Kind of like: checkbox ( tick to go featured )</p>
<p>If ticked show featured div, else hide.</p>
<p>Code I have is:</p>
<pre><code><span id="chec... | javascript jquery | [3, 5] |
635,628 | 635,629 | JQuery Click by code from another click | <p>I have this code:</p>
<pre><code><label style="display: inline; " for="default">
<img class="ful" src="http://www.mysite.com/default.png" />
<input style="display:none" id="default" name="selected" type="radio" value="template" onclick="SubmitValue();" />
</label>
</code></pre>
<p>I need to... | javascript jquery | [3, 5] |
1,052,981 | 1,052,982 | Which each to use? | <p>It is my understanding that the following two uses of each do the same thing. Is one preferred over the other? My objective it to create a table with the returned data. Thanks</p>
<pre><code>$.get('getList.php',
function (data)
{
$.each(data, function(i, value) {console.log(value);})
$(data).each(function... | javascript jquery | [3, 5] |
491,176 | 491,177 | Converting to Datetime issue | <p>I am trying to convert this content into DateTime.</p>
<pre><code> DateTime dtmNextPayment = Convert.ToDateTime(DateTime.Now.AddMonths(1).Month.ToString() + "/" + DateTime.Now.Day.ToString() + "/" + DateTime.Now.AddYears(1).Year.ToString());
</code></pre>
<p>Here, i get an exception "String was not recognized as a... | c# asp.net | [0, 9] |
1,365,948 | 1,365,949 | get an element position using jquery | <p>I'd like to find an element position using JQuery. Not the X and Y position using .position .</p>
<p>For exemple</p>
<pre><code><ul>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
</ul>
</code></pre>
<p>And the js</p>
... | javascript jquery | [3, 5] |
2,483,246 | 2,483,247 | Why make a method volatile in java? | <p>Why would a method be made volatile? How does making a method volatile change the method's behavior? </p>
<p><strong>Edit:</strong> I did a toString() on a Method object returned by a class object (Java Reflection). The return string had a volatile modifier against the method name along with public visibility and v... | java android | [1, 4] |
2,841,412 | 2,841,413 | How can I pass a variable as the value for jQuery .attr? | <p>Using <a href="http://api.jquery.com/attr/" rel="nofollow">jQuery attr()</a> what would be the proper syntax to pass a variable in as the value. What I am trying to do is :</p>
<pre><code>var under700 = 'image.jpg'
$('.two_images img').attr('src', (under700) );
</code></pre>
<h2>Edit</h2>
<p>Judging from the re... | javascript jquery | [3, 5] |
4,201,754 | 4,201,755 | Increment variable on click jquery | <p>i´m working on an interactive Infographic. Basically there are is a number of circles flying around. I try to change the amount of circles by clicking on a button, therefor I want to increase the <strong>variable d</strong> by 1 on click, to get an other element from the array. But it doesnt´t work. Any ideas?</p>
... | javascript jquery | [3, 5] |
1,806,655 | 1,806,656 | how to get email inbox of multiple accounts in one application/service (like unified inbox)? | <p>I have tried calling native Email client in android as well as K-9 mail but it shows account list first.then in particular account I am able to get inbox,but i want all inbox in one folder(unified inbox-like in k-9 mail or something related to)so that when i open application,it should show me inbox of accounts that ... | java android | [1, 4] |
5,984,153 | 5,984,154 | not all code paths return a value Error | <p>I'm getting an Compilation Error with my CS file. I have a method that creates a JSON object of the user credentials.</p>
<pre><code>public string CreateLoginjson(string strErrorType, bool blIsAuthenticated)
{
StringBuilder sbLoginJson = new StringBuilder();
if (blIsAuthenticated)
... | c# asp.net | [0, 9] |
2,972,348 | 2,972,349 | making asynchronous calls with jquery | <p>I have a function called <code>checkStatus(x)</code> where x is Id. How can I call this function n times asynchronously ? Without being dependent one on another to completed and for another to start?</p>
<p>I'm using jquery</p>
<p><strong>EDIT:</strong></p>
<p>I'm not sure if I used the correct term, but here is ... | javascript jquery | [3, 5] |
3,007,949 | 3,007,950 | Jquery to populate input or textarea | <pre><code><div id="example"></div>
<script type="text/javascript">
jah = "<p>Browser CodeName: " + navigator.appCodeName + "</p>";
jah+= "<p>Browser Name: " + navigator.appName + "</p>";
jah+= "<p>Browser Version: " + navigator.ap... | javascript jquery | [3, 5] |
310,150 | 310,151 | image upload in file system on server in asp.net3 using c# | <p>i am trying to upload image and store it in file system in asp.net using c#.
i am using this code </p>
<pre><code> if (FileUpload1.HasFile)
{
if ((FileUpload1.PostedFile.ContentType == "image/jpeg") ||
(FileUpload1.PostedFile.ContentType == "image/png") ||
(FileUpload1.PostedFile.C... | c# asp.net | [0, 9] |
569,583 | 569,584 | jQuery plugin for uploading/preview multiple images | <p>Does anyone know about a jQuery plugin that I can use for uploading mutiple images and previewing them before submitting?
Thanks a lot!</p>
| javascript jquery | [3, 5] |
5,448,771 | 5,448,772 | show a string of my div and append | <p>How do I show a string representation of my div emptied then append to it?</p>
<pre><code> var x = $('#myDiv').outerHTML();
x = x.empty().append('<h1>test</h1>');
//result must look like <div id="myDiv"><h1>test</h1></div>
</code></pre>
| javascript jquery | [3, 5] |
5,906,739 | 5,906,740 | Need to modify the SelectCommand parameter for SqlDataSource from C# | <p>I have a SqlDataSource that I am trying to modify in C# ASP.NET from my code behind page. The code in the page is:</p>
<pre><code><asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:TEST_SERVER %>"
ProviderName="<%$ ConnectionStrings:TEST_SERVER.P... | c# asp.net | [0, 9] |
4,664,808 | 4,664,809 | Array value count javascript | <p>How can I count the array depending on the value..
I have an array with this value..</p>
<pre><code>var myArr = new Array(3);
myArr[0] = "a";
myArr[1] = "a";
myArr[2] = "b";
</code></pre>
<p>I need to count the array depending on the value</p>
<p>Array with Value A is 2
Array with value B is 1</p>
<p>Thanks!</p>... | javascript jquery | [3, 5] |
1,040,632 | 1,040,633 | How to get the selected value and key from an html dropdown list in javascript on php | <pre><code> <select id="facetList" style="width:120px;" class="text ui-widget-content ui-corner-all">
<?php
foreach($claAddArray as $k => $v)
{
echo "<option value=\"$k\">$v</option>";
}
?>
</select>
$("#btnSubmit").click... | php javascript jquery | [2, 3, 5] |
5,038,683 | 5,038,684 | clear input with particular type attribute | <p>this:</p>
<pre><code>$("#registrant input").val('');
</code></pre>
<p>will clear all the <code><input></code> inside the div <code>#registarnt</code>.</p>
<p>But, how can i exclude the input with particular type? (like "submit")</p>
| javascript jquery | [3, 5] |
4,000,343 | 4,000,344 | Interop Best Practices: Should I use Static Class, or Normal Classes | <p>I have a front end C# that needs to call a C++ back end. So interop is needed. </p>
<p>I have an "interop layer", that converts the C# data structure into C++ structure, and do all the memory freeing grunt work. </p>
<p>My question is, should I write this interop layer as a <em>static</em> class, or should I wrap ... | c# c++ | [0, 6] |
5,604,321 | 5,604,322 | the IndexOf() method returns -1 all the time | <p>i have two data tables with the same structure</p>
<p>the first one has one row of the second one</p>
<p>the second one has set of rows </p>
<p>what i want is to get the row which comes next to the row of the first data table in the second data table.</p>
<p>the first data table his name is :: temp</p>
<p>the s... | c# asp.net | [0, 9] |
1,809,041 | 1,809,042 | asp.net confirm delete action conditionally | <p>In a Asp.net page I have a grid of departments that is displayed with checkboxes that can be checked to delete departments. If the selected record(department) has child records (Employees) I need to confirm the delete - otherwise I will delete the records without confirmation.
What is the standard and most elegant w... | jquery asp.net | [5, 9] |
2,698,351 | 2,698,352 | How can I access td Id in aspx.cs page of asp.net c#? | <p>I have used this code but it doesn't work.</p>
<pre><code>HtmlGenericControl T1 = (HtmlGenericControl)Page.FindControl("T1");
T1.Visible = false;
</code></pre>
<p>Error Is:</p>
<pre><code>Object reference not set to an instance of an object
</code></pre>
| c# asp.net | [0, 9] |
2,657,563 | 2,657,564 | JQuery: Hover function, how to add a delay | <p>I have some JQuery that pops up a JQuery Dialog (<a href="http://docs.jquery.com/UI/Dialog" rel="nofollow">http://docs.jquery.com/UI/Dialog</a>) box when you hover over an image like so:</p>
<pre><code> $(document).ready(function() {
$("img").hover(function() {
$("#dialog").dialog();
});
});
<... | javascript jquery | [3, 5] |
4,341,060 | 4,341,061 | Android java source explanation | <pre><code>txtFar.setText(result.getProperty(0).toString());
</code></pre>
<p>In general<br>
Can anyone tell me what the above line is saying.<br>
Left the objects txtFar & result.</p>
<p>Any idea?</p>
<p>Thanks for your precious time!</p>
| java android | [1, 4] |
4,529,443 | 4,529,444 | Android android.graphics.Bitmap.checkPixelsAccess error | <p>I see this error being reported via flurry, but have no idea what it could relate to or how to find where the error could be in my Android code.</p>
<pre><code>class java.lang.IllegalArgumentException
Msg: android.graphics.Bitmap.checkPixelsAccess:823 (x + width must be <= bitmap.width())
</code></pre>
<p>Does ... | java android | [1, 4] |
3,253,213 | 3,253,214 | Strange code in jQuery sources: var !== var ? x : y; | <p>Recently I found one weird line in the jQuery sources (last version 1.9.1, Sizzle package, line 129 <code>funescape</code> function):</p>
<pre><code>funescape = function( _, escaped ) {
var high = "0x" + escaped - 0x10000;
// NaN means non-codepoint
return high !== high ? // <--- LINE 129
... | javascript jquery | [3, 5] |
5,435,264 | 5,435,265 | JQuery - Toggling divs with only selectors | <p>If I have html such as:</p>
<pre><code><ul id="tags">
<li>
<a href="#">Toggle</a>
<div>Content1</div>
</li>
<li>
<a href="#">Toggle</a>
<div>Content2</div>
</li>
</ul>
</code></pre>
<... | javascript jquery | [3, 5] |
4,164,597 | 4,164,598 | Can you set a asp.net web user control property using jQuery? | <p>Can you set a asp.net web user control property using jQuery </p>
| asp.net jquery | [9, 5] |
3,860,534 | 3,860,535 | Downloading remote image via php (securely) | <p>PHP:</p>
<p>Any ideas where I could find a script similar to what stackoverflow uses? Or would it be easy to make something like that myself? I'm sure downloading the image is not a problem, but I'm more worried about security. I'm building an user avatar upload/remote upload system.</p>
<p>Jquery:</p>
<p>The rea... | php jquery | [2, 5] |
3,874,701 | 3,874,702 | javascript image resize doesn't work in ie8 | <p>My company's new web layout depends on an image being 150px wide. The previous design required the images to be 125px tall. So all the images have different widths based on their width/height ratio. I put some javascript together to resize the images to fit in their space until our interns get around to sizing the i... | javascript jquery | [3, 5] |
30,021 | 30,022 | When using a handler how do I write a log once per rountrip? | <p>Ive written a http handler to plug into our sites that I want to be able to write the </p>
<pre><code>HttpContext.Current.Request.UrlReferrer
</code></pre>
<p>to a table only once per rountrip for basically page logging.</p>
<p>The full code is:</p>
<pre><code> void context_AcquireRequestState(object sender, ... | 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.