Unnamed: 0 int64 302 6.03M | Id int64 303 6.03M | Title stringlengths 12 149 | input stringlengths 25 3.08k | output stringclasses 181
values | Tag_Number stringclasses 181
values |
|---|---|---|---|---|---|
3,567,151 | 3,567,152 | C# to C++ 'Gotchas' | <p>I have been developing a project that I absolutely must develop part-way in C++. I need develop a wrapper and expose some C++ functionality into my C# app. I have been a C# engineer since the near-beginning of .NET, and have had very little experience in C++. It still looks very foreign to me when attempting to u... | c# c++ | [0, 6] |
1,298,572 | 1,298,573 | How do I make the number "0" display in a textbox? | <p>I have a decimal column that contains percentages. I'm converting these so that they display as their whole <code>#</code> counterparts. For example, if a value is <code>0.35</code> in the database, I'm displaying it as <code>35</code> in the textbox. However, some of the values are <code>0.00</code>, but don't d... | c# asp.net | [0, 9] |
2,450,778 | 2,450,779 | Using PHP within Javascript functions | <p>What is the best way to handle mixing PHP into Javascript? Should it not be done? Should it be done in a certain way? I am working on a project and I found the following javascript function: </p>
<pre><code>function getStuff() {
<?php
$stuff = "0:Select";
foreach (... | php javascript | [2, 3] |
1,628,474 | 1,628,475 | asp.NET - Exclude a Page from Sitemaster or make it follow a different Site Master | <p>I have two pages I want to exclude them from the sitemaster so I can add a check for the session in the sitemaster. I want to exclude them because I want that the 401.aspx page and another page can be accessed by anyone. But the rest should be checked for and authenticated. </p>
<p>Is this possible, and what is the... | c# asp.net | [0, 9] |
4,564,194 | 4,564,195 | Semaphore, run_once decorator, or something like it | <p>In some places we have to have only one instance of function running. </p>
<p>This code works for me: </p>
<pre><code>function example() {
var that = this;
if(that.running) {
return false;
}
that.running = true;
$.get(url, {}, function (data) {
that.running = false;
})... | javascript jquery | [3, 5] |
2,361,012 | 2,361,013 | Hiding Jquery modal dialog | <p>Jquery dialog script</p>
<pre><code> function SupplierGridPopup() {
var dlg = $("#divSupplierGrid").dialog({ bgiframe: true,
width: $(document).width(),
height: $(document).height(),
modal: true,
focus: function () { hideScrollBars(); },
open: function () { hideScrollBars... | jquery asp.net | [5, 9] |
414,576 | 414,577 | Javascript / jQuery design question re: performance | <p>Is there any performance / memory hit differential among the three following styles?</p>
<p>Exhibit A:</p>
<pre><code>var func = function() {
// do some magic
}
$("#div").somePlugin({someEvent: func});
</code></pre>
<p>Exhibit B:</p>
<pre><code>$("#div").somePlugin({someEvent: function() {
// do some ma... | javascript jquery | [3, 5] |
3,393,853 | 3,393,854 | Understanding jQuery's .eq() | <p>jQuery's <code>.eq()</code> is:</p>
<pre><code>eq: function( i ) {
return i === -1 ?
this.slice( i ) :
this.slice( i, +i + 1 );
},
</code></pre>
<p>What is the point of the first <code>+</code> in <code>+i + 1</code>?</p>
| javascript jquery | [3, 5] |
1,485,318 | 1,485,319 | using replaceWith on all child inputs JQuery | <p>Basically on .show() I've been trying to have all of the inputs convert to image tags with the img src equaling the original inputs value like this:</p>
<pre><code>var currentPage = $('.three_paj_els:visible');
var nextPage = currentPage.next('.three_paj_els');
var the_parent_div_id = currentPage.attr('id');
ne... | javascript jquery | [3, 5] |
4,458,869 | 4,458,870 | Uncaught SyntaxError: Unexpected identifier with .append() string | <p>I keep getting this error in the <code>$('#savetickets-list')</code> line. I want to dynamically add fields to a table, the table has the id in HTML.</p>
<pre><code><div class="savetickets-list">
</div>
</code></pre>
<p>In javascript I fill the table in a for loop</p>
<pre><code>for (var i = 0; i <... | javascript jquery | [3, 5] |
3,437,874 | 3,437,875 | What does function($) mean in javascript? | <p>I realize that the $ is just sort of a convention for naming variables pointing to jQuery objects, and is also the function for document.getElementById(), but does function($) mean anything?</p>
<p>Edit: I actually meant </p>
<pre><code>(function($) {
/* ... */
})(jQuery);
</code></pre>
<p>Sorry for the confu... | javascript jquery | [3, 5] |
2,385,380 | 2,385,381 | Use jQuery to scroll to the bottom of a div with lots of text | <p>I have a div with a scrollbar on the right when there is a lot of text in it. I tried to use this code to scroll to the bottom of a div when the page loads, but I am not having much luck. How can it be achieved?</p>
<p>Style:</p>
<pre><code>div.messageScrollArea{width:100%; max-height:300px; overflow:auto;}
</code... | javascript jquery | [3, 5] |
1,714,433 | 1,714,434 | in each loop selected index of select element are equal | <p>I have some select element in a page with css style set for them.I use this selector for select all them :</p>
<pre><code>$('.Field3')
</code></pre>
<p>and with each loop I want to get selected index of them,but when I change one of them selected item I get selected index set for all.</p>
<p>I create a jsFiddle f... | javascript jquery asp.net | [3, 5, 9] |
4,785,437 | 4,785,438 | implement specific file to a class in android | <p>I have developed an application in android. I have a file 'Constants.java' implemented to an activity. This file contains constant values for application. I need to change this constants file according to device resolution.</p>
<p>Is there a way where I can build a preprocessor, where in I can check the resolution ... | java android | [1, 4] |
3,530,121 | 3,530,122 | simplest possible .ajax-call to twitter search-api? | <p>I'm trying call twitter. What is the simplest working call to the twitter-search-api?</p>
<p>This is what I have tired. The call fails.
$.ajax({
dataType: 'json',
url: "http://search.twitter.com/search.json?q=skjutsgruppen&callback=?",
})</p>
| javascript jquery | [3, 5] |
4,192,886 | 4,192,887 | Event handler on multiple events | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/1646187/bind-multiple-events-to-jquery-live-method">Bind multiple events to jQuery 'live' method</a> </p>
</blockquote>
<p>I have the following function:</p>
<pre><code>$("td.delivered").click(function(... | javascript jquery | [3, 5] |
5,396,822 | 5,396,823 | Convert this JavaScript code to jQuery | <p>I am new to jQuery, so I'm having trouble solving this. I want this converted to jQuery.</p>
<p><strong>JavaScript:</strong></p>
<pre><code>var el = document.getElementById("box");
el.style.backgroundColor = "#0000000";
var new_el = document.createElement("div");
new_el.innerHTML = "<p>some content</p>... | javascript jquery | [3, 5] |
4,649,985 | 4,649,986 | How to make img draggable and wrap move too | <p>below code try to make img be draggable(regarding <a href="http://stackoverflow.com/a/10965447/1775888">this</a>), it works but I can't figure how to make if img move all wrap <code>drag_wp</code> move together. <a href="http://jsfiddle.net/cAeKG/8/" rel="nofollow">http://jsfiddle.net/cAeKG/8/</a> any suggestion? </... | javascript jquery | [3, 5] |
34,686 | 34,687 | adding a try catch around a large method call | <p>I have a web service that's pretty simple; something like this:</p>
<pre><code>public class LeadService : System.Web.Services.WebService {
[WebMethod(EnableSession = true)]
public string MyService(string TheIncomingData)
{
string ReturnData = "";
MyClass TheClass = new MyClas... | c# asp.net | [0, 9] |
2,486,212 | 2,486,213 | Creating Android magazine application with APPMK | <p>I'm try to make an Android magazine application. Until now, the best and the simplest way is using <strong>APPMK</strong> <a href="http://www.appmk.com/" rel="nofollow">http://www.appmk.com/</a>. and my questions are : </p>
<ol>
<li>Is it possible customize between using APPMK and coding in eclipse editor?</li>
<li... | java android | [1, 4] |
176,328 | 176,329 | Slide down and slide up div on click | <p>I am using the following code to open and close a div ( slide up/down ) using js</p>
<p>I have the slide down event attached to a button and the slide up event sttached to close text.</p>
<p>What I want is the button onclick to open and onclick again close the slide element.</p>
<p>Here is the JS</p>
<pre><code>... | javascript jquery | [3, 5] |
2,282,660 | 2,282,661 | game map problem, built using jquery | <p>I'm building a map for a browser game using jquery. Basically its a grid using divs to display background images for the map content. It uses large divs and then populates those larger divs with smaller ones(for the actual images) once you scroll closer to them. It uses a click and drag event deal.</p>
<p>Now every... | javascript jquery | [3, 5] |
5,543,169 | 5,543,170 | call javascript alert from java class | <p>How to call javascript alert from java class</p>
| java javascript | [1, 3] |
3,092,337 | 3,092,338 | asp.net range validator on textbox | <p>I have an <code>asp:textbox</code> with both required and range validators attached to it, where the code looks like this:</p>
<p>ASP:</p>
<pre><code><asp:TextBox ID="textBox1" runat="server" CausesValidation="true"></asp:TextBox>
<asp:RangeValidator ID="rangeValidator1" runat="server" ControlToVali... | c# asp.net | [0, 9] |
4,279,501 | 4,279,502 | Making browsers ignore the URL hash when the back button is clicked | <p>For example, if an user is on <a href="http://example.com" rel="nofollow">http://example.com</a>, then the user goes to <a href="http://example.com#comments" rel="nofollow">http://example.com#comments</a>. If the user clicks "back" on his browser, how can I make him "ignore" <a href="http://example.com" rel="nofollo... | javascript jquery | [3, 5] |
1,185,762 | 1,185,763 | JS/jQuery: How to highlight or select a text in a textarea? | <p>I don't want to highlight text (by changing background color to yellow - NO), I just want to select a portion of the text inside textarea, exactly as if the user clicked and hold the click then moved the mouse to highlight only a portion of the text</p>
<p>How to do that? is it possible?</p>
| javascript jquery | [3, 5] |
1,460,856 | 1,460,857 | DropDownList Dependencies and Selections Using jQuery | <p>I have 6 dropdownlist as shown below: </p>
<pre><code>option1
option2
option3
option4
option5
option6
</code></pre>
<p>When I change option1 I want to change option3 and option5. When I change option2 I want to change option4 and option6. These list can be in any number. Here is another example: </p>
<pre><code... | javascript jquery | [3, 5] |
2,790,621 | 2,790,622 | How to include DLLs to published application? | <p>In my solution I reference DLLs file from Libs folder. When I publishe application they don't copy to published folder. Is there anyway to make them to be copied too?</p>
| c# asp.net | [0, 9] |
1,262,507 | 1,262,508 | How to insert selected item text from checkedlistbox to gridview dynamically in asp.net | <p>My requirement is, i have a checkedlistbox, and i want the selected item should be inserted into the gridview using javascript, in grid i want only two columns i.e. selected item text and another is checkbox.</p>
| javascript asp.net | [3, 9] |
2,198,429 | 2,198,430 | jquery .live() with 'ready' event | <p>i want to do something with all the newly added divs (with some class) in the body, but i realize the .live() method does not support 'ready' eventType.</p>
<p>for example, this code works:</p>
<pre>
$('.new').live('click', function(){
$(this).css("background", "black");
}</pre>
<p>but the user have to click ... | javascript jquery | [3, 5] |
1,148,066 | 1,148,067 | execCommand justifycenter | <p>If I try to <code>execCommand("justifycenter"...</code> a paragraph on my page in Firefox, it doesn't work; it's giving me this crazy error:</p>
<blockquote>
<p>uncaught exception: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMNSHTMLDocument.execCommand]" nsresult: "0x800040... | javascript jquery | [3, 5] |
3,378,166 | 3,378,167 | TextChanged event not firing | <p>I have a GridView and a TextBox in one of its fields:</p>
<pre><code><asp:GridView ID="NTSBulkEditGridView" runat="server" AutoGenerateColumns="false" AllowSorting="true" Height="500px"
DataKeyNames="BookStem" OnRowDataBound="NTSBulkEditGridView_RowDataBound" DataSourceID="NTSSqlDataSource">
<Colum... | c# asp.net | [0, 9] |
5,702,527 | 5,702,528 | Accessing script block with jquery | <p>I have a script block, in the div element which is appended after html response. I want to access this block and call eval() function for this script. How can I access the script block.</p>
<p>I tried <code>$("#divId script")</code> , but it doesn't work.</p>
<pre><code><div id="divId">
<script type="... | javascript jquery | [3, 5] |
5,939,847 | 5,939,848 | How to show data in a DetailsView using a query string from anotehr page | <p>I have a page A with an EDIT LINK. When click it sends a parameter to a second page B, which contains a DetailsView in Edit mode.
Page B take care of editing the details.</p>
<pre><code>A.aspx?AuthorId=89
</code></pre>
<p>My problem is: I am not able to visualize the Right AuthorId passed from page A.aspx in the D... | c# asp.net | [0, 9] |
1,077,623 | 1,077,624 | How to see if two image sources are equal? | <p>I am trying to see if two images that the user clicked on are the same.
I have some code that retrieves the source of an image that was clicked on:</p>
<p><code>$('img').click(function() {
var path = $(this).attr('src');
});</code></p>
<p>I just need a way to compare two sources with each other.
I trie... | javascript jquery | [3, 5] |
3,294,155 | 3,294,156 | Gridview text box edit | <p>I have a textbox inside the gridview. IF i enter any non-numeric values it has to show error message. How to handle this in row edit event</p>
| c# asp.net | [0, 9] |
770,983 | 770,984 | Jquery "THIS".myFuntionName is unavailable when in ajax Success? but ok before | <p>can anyone help, i have an issue with the keyword this.. before entering the ajax call its available but when entering Success. my "this" is available but doesn't contain the same info i.e. a method i wish to call.. This example shows what i mean..</p>
<p>I would appreciate any help, this.isoDateReviver is availabl... | javascript jquery | [3, 5] |
980,910 | 980,911 | Is this jQuery? | <p>If you hover the images, an orange magnifier pops up.</p>
<p><a href="http://disqus.com/features/" rel="nofollow">http://disqus.com/features/</a></p>
<p>Clicking on the images opens a pop up.</p>
<p>Is that a jQuery plugin that does this and the orange magnifier on hover?</p>
| javascript jquery | [3, 5] |
2,289,258 | 2,289,259 | jQuery Back-to-Top + StickyFloat + Fade-In on Scroll | <p>I'm currently using <a href="https://gist.github.com/728487" rel="nofollow">jQuery Stickyfloat</a> for a "back to top" button on a page that has alot of content. It works perfectly, however, the link is visible at the top when the user goes to the page. I would like it to be hidden on page load and when the user scr... | javascript jquery | [3, 5] |
213,346 | 213,347 | asp.net button click w/ javascript "are you sure?" prior to post back | <p>i have a asp:button that will fire a delete and want to have a client side javascript are you sure pop-up prevent any accidents.</p>
<p>whats the javascript to handle this?</p>
| javascript asp.net | [3, 9] |
178,098 | 178,099 | Checking if a included javascript file is actually needed | <p>I'm more or less building a new design into some software and to retain the functionality of some of the page features I need to keep some of the javascript files the system uses; however it appears the software uses a global header to include all the <code>.js</code> files and to cut down on http requests I was onl... | php javascript | [2, 3] |
3,213,552 | 3,213,553 | How do I call this function on blur(), using JQuery? RESOLVED! | <p>I have this function, see below:</p>
<pre><code>function checkStartPrice (){
if ($('#StartingPrice')[0].value.length == 0){
alert("The 'Starting Price' cannot be left empty!");
return false;
} else {
var BuyItNowPrice = parseFloat($('#BuyItNowPrice').val());
var StartingPric... | javascript jquery | [3, 5] |
2,231,983 | 2,231,984 | How can i change image path on click for asp.net dynamic content | <p>I am using jquery for changing image path but its not working for asp.net dynamic content</p>
<p>The jquery function is<br></p>
<pre><code>$('img.selection').click(function () {
this.src = 'images/selected_img.png';
});
</code></pre>
<p>This function is not post backing in to the C#, so am not getting changed im... | c# jquery asp.net | [0, 5, 9] |
786,725 | 786,726 | How to check if a thread is finished inside a OnClickListener | <p>I have a OnClickListener, like this one:</p>
<pre><code> submit.setOnClickListener(new OnClickListener() {
if(connected) {
final ProgressDialog pd = ProgressDialog.show(this, "", "Please Wait..", true);
new Thread() {
... | java android | [1, 4] |
4,276,086 | 4,276,087 | jQuery - open new window on page load | <p>How do I open a new browser window on page load w/ jQuery?</p>
<p>Thanks!</p>
| javascript jquery | [3, 5] |
3,143,412 | 3,143,413 | How can I create a module to allow only admins to access the website? | <p>Sometimes I need to block access on a website, but I don't want to block access for administrators so they should be able to see the website and for that I guess I need to make a module.</p>
<p>How can I make a module like that?</p>
<p>This is the code I have. I just don't know where I should place it.</p>
<pre><... | c# asp.net | [0, 9] |
2,414,256 | 2,414,257 | How to display only 3 table cells per row when looping through a collection | <p>I am looping through a collection, and generating a htmltable.</p>
<p>I want to only display a maximum of 3 table cells per row.</p>
<p>I need some help with that logic.</p>
<p>My code so far is displaying 1 item per row.</p>
<pre><code>HtmlTable table = new HtmlTable();
HtmlTableRow row;
HtmlTableCell cell;
fo... | c# asp.net | [0, 9] |
2,675,024 | 2,675,025 | how to create new line between dateformat | <p>i m creating date format like this :</p>
<pre><code>SimpleDateFormat sdf =new SimpleDateFormat("MMM d, EEE, h:mm a");
</code></pre>
<p>i need a new line between date, month and time something like this </p>
<pre><code>thus ,sep 6
4:25pm
</code></pre>
<p>so i made the following changes :</p>
<pre><code>SimpleDat... | java android | [1, 4] |
718,274 | 718,275 | I need to break a string at 30 characters, and insert a - and newline | <p>I need to insert a BR tag at the 30th position of a string if it is longer then 30.
Also, if the 29th position is not a space i.e. " " then I need to insert a - character and THEN insert a BR tag.</p>
<p>I am having issues with getting this to work, specifically detecting the space character.</p>
<p>I tried the wb... | c# asp.net | [0, 9] |
1,160,145 | 1,160,146 | Loading PNGs with BitmapFactory.decodeFile is randomly very slow | <p>In my app, I use BitmapFactory.decodeFile to load .png files that are the size of the screen. Sometimes the .png files will load in roughly 0.5 seconds. Occasionally, they will take about 10 or 15 seconds to load on a Droid phone which is a horrifically long time to ask the user to wait. As the user can pick any fr... | java android | [1, 4] |
680,358 | 680,359 | jQuery trigger an element's event | <p>My question is same as this <a href="http://stackoverflow.com/questions/7999806/jquery-how-to-trigger-click-event-on-href-element">one</a></p>
<p>I also faced the same problem which is <code>href</code> not triggered for event 'clicked'
.Then I changed to <code>alt</code> and element is <code>span</code> . Here is ... | javascript jquery | [3, 5] |
3,716,274 | 3,716,275 | How to compare two arraylist? | <p>I have two <code>ArrayList</code>. Each is of size 100000. I want to compare them and count matched elements.</p>
<p>Here's my code:</p>
<pre><code>for (int i = 0; i < mArryLst2.size(); i++) {
if (ArryLst1.contains(mArryLst2.get(i))) {
matchedPixels++;
}
}
</code></pre>
<p>Here comparison... | java android | [1, 4] |
3,204,817 | 3,204,818 | PHP to connect to external site and perform some action | <p>I have my site called myDomain.com which has a PHP file called myDomainFile.php</p>
<p>Now inside this file (when it gets called), can I write code to connect to external site (otherDomain.com)
I need to login to otherDomain.com using some Username/Password, navigate to dashboard.php, which has a form (with one tex... | php javascript | [2, 3] |
2,280,886 | 2,280,887 | what the meaning of plus operator in this JQUERY scripts | <p>I want to ask mean of plus operator in this script +i+ in the follow:</p>
<pre><code>i=0;
// next line in scripts write this code :
$('.container[data-id='+i+']').hide(); // +i+ what the meaning of it
</code></pre>
<p>Need Help thanks a TON</p>
| javascript jquery | [3, 5] |
5,723,019 | 5,723,020 | onChange="document.myform.submit() and PHP while loop | <p>I have the following code and on it's own works fine, but I need to have it in a PHP while loop as there may be hundreds of records. This does not work, meaning it does not submit the form.</p>
<p>Any help with this code, or other ideas that will work are appreciated. It also needs to write to a mysql DB the new va... | php javascript | [2, 3] |
4,762,037 | 4,762,038 | retrieve selected value in row using javascript | <p>I've a table with multiple rows, each row has a drop down list. I am new to javascript and is unable to retrieve the selected value from the row. Any idea how can it be done? Thanks in advance.</p>
<p>Code:</p>
<pre><code>function chng_page(serialNum, rowid)
{
alert(rowid);
alert(serialNum);
var select... | php javascript | [2, 3] |
4,155,137 | 4,155,138 | Passing URL parameter with JavaScript | <p>I have some JavaScript that creates Forward and Back buttons. However, I need to pass a parameter in the URL (<code>?id=$idd</code>):</p>
<pre><code><a href="javascript:submitForm('mainForm','back');" title="Go back to the kit home page" style="float: left;"><img src="images/back.gif" alt="Go back to the k... | php javascript | [2, 3] |
5,718,981 | 5,718,982 | Javascript - I'd like to show the checkbox check before a long running function runs | <pre><code><input type="checkbox" onclick="myFunc()" />
</code></pre>
<p>myFunc is somewhat long running, about a second, and the browser shows the check for the checkbox AFTER the function completes. This causes lots of issues with users.</p>
<p>I'd like the check to show up immediately and then the onlick fun... | javascript jquery | [3, 5] |
3,966,862 | 3,966,863 | Unlock screen programatically and show activity | <p>I have one activity and its in foreground while screen is locked. This activity has a button, and when its pressed it should bring CALL LOG activity to the foreground, but instead i only got unlock screen activity ( see pic below ). But if i unlock that screen, my first activity showing is CALL LOG, but it should be... | java android | [1, 4] |
5,659,642 | 5,659,643 | textarea into array javascript | <p>myList contains the following values:</p>
<blockquote>
<p>value1<br>
value2<br>
value3 </p>
</blockquote>
<pre><code>function showArray() {
var txt = $("#myList").text();
var textread = txt.split('\n');
var msg = "";
for (var i = 0; i < textread .length; i++) {
msg += i + ": " + textread [i]... | javascript jquery | [3, 5] |
3,002,558 | 3,002,559 | Problems upgrading jquery 1.4.2 to 1.5.1 | <p>I'm trying to upgrade from jquery 1.4.2 to 1.5.1 and I'm getting the following error:</p>
<p>Uncaught Syntax error, unrecognized expression: [rel*=address:] </p>
<p>I can't figure out what it's related to. Any ideas?</p>
| javascript jquery | [3, 5] |
1,549,259 | 1,549,260 | How to maintain tab order after postback | <p>The requirement is for some calculation to happen on entering a value in the textbox and since calculation is same ontextchanged is linked to the same event.
When I tab out it neatly goes to next control and does a postback to Calculate.</p>
<p>Now after the postback and the server side is called and executed, the ... | c# asp.net | [0, 9] |
1,009,953 | 1,009,954 | Find element with specified z-index | <p>How to find HTML element(-s) with <code>z-index</code> = 10 for example?</p>
| javascript jquery | [3, 5] |
869,697 | 869,698 | Determine final size of element wrapper before jQuery effect (e.g. slideDown) | <p>Can anyone tell me if (and how) jQuery determines the final size of an element that is animated with the built-in effects functions like <code>slideDown()</code>?</p>
<p>To give a practical example <a href="http://jsfiddle.net/GgCLa/" rel="nofollow">http://jsfiddle.net/GgCLa/</a>:</p>
<p>CSS:</p>
<pre><code>#wrap... | javascript jquery | [3, 5] |
506,692 | 506,693 | Showing a formatted elapsed time | <p>On my upload file page I want to show an elapsed time (how long the user has been uploading the file for) in this format: <code>00:26</code>, which would be 26 seconds. <code>17:34</code> would be 17 minutes 34 seconds, etc.</p>
<p>How could I do this? I have an event that gets called when the upload starts so I ca... | javascript jquery | [3, 5] |
3,251,727 | 3,251,728 | Update a control's value from a static class in ASP.NET | <p>Say that I have an ASP.NET page with a Label control and the following static class which executes a scheduled job:</p>
<pre><code>public static class Job
{
// The Execute method is called by a scheduler and must therefore
// have this exact signature (i.e. it cannot take any paramters).
public static ... | c# asp.net | [0, 9] |
5,912,783 | 5,912,784 | reterive sitemap from database | <p>How to reterive sitemap from databse in asp.net?Can somebody can provide any link which explain the process.</p>
| c# asp.net | [0, 9] |
2,793,582 | 2,793,583 | Is something similar possible in C++ | <p>Here is some sample jave code. Is this possible in C++ too?</p>
<pre><code>public class Example {
public static void main(String args[]){
int[][] a = new int[3][];
a[0] = new int[]{1};
a[1] = new int[]{1,2};
a[2] = new int[]{1,2,3};
display(a);
}
}
</code></pre>
| java c++ | [1, 6] |
2,320,927 | 2,320,928 | DataGrid - How to display the content of a hidden TemplateField on mouseover | <p>i'm using a DataGrid to display informations (e.g. names and addresses of bookstores), and i want to display the opening hours in a tooltip onmouseover. The information i want to show onmouseover is in a TemplateField which Visible porperty is set to false.</p>
<p>How can i achieve that? Must i use javascript and c... | c# asp.net | [0, 9] |
2,264,584 | 2,264,585 | How to change a device's screen orientation from service in android? | <p>Is it possible to change the device's orientation from portrait to landscape from a running service? I have searched but I couldn't find anything negative or positive</p>
| java android | [1, 4] |
2,825,084 | 2,825,085 | Linkbutton click event does not work inside gridview | <p>I have a webpage where I have a gridview. I have populated the gridview on page load event.</p>
<pre><code>protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
loadGridView();
}
}
</code></pre>
<p>This is the load gridview method.</p>
<pre><code>private void loadGridV... | c# asp.net | [0, 9] |
4,608,859 | 4,608,860 | Client side & server side at the same event (onselectedindexchanged) | <p>I have this drop down list. is it possible to call a javascript function and the server side function at the same time from the onselectedindexchanged event?</p>
<pre><code><asp:DropDownList ID="drpPartGroup"
runat="server"
Height="19px"
Width="169px"
... | javascript asp.net | [3, 9] |
6,018,464 | 6,018,465 | How to check if 'this' has a specific attribute? | <p>I want to check if the element I click (this) has a specific attribute, as a condition in the if clause.
Is it possible to do this with JavaScript or jQuery?</p>
<p>Thanks</p>
| javascript jquery | [3, 5] |
309,219 | 309,220 | JQuery Check if a checkbox is checked checking only working onload | <p>I am trying to check if a checkbox is checked or not at all times but I'm only getting alerted when the page loads and not at any time when the status has changed.</p>
<p>Here is the code:</p>
<pre><code><script type="text/javascript">
$(function(){
if ($('#myCheckBox').is(':checked')) {
... | javascript jquery | [3, 5] |
1,800,820 | 1,800,821 | jQuery submit() not firing when triggered from live() | <p>I'm trying to get the form <code>#url_form</code> to be submitted when a URL is pasted into <code>#video_url</code>. The <code>.loading</code> class is added correctly, but the form still isn't being submitted.
Here's the code:</p>
<pre><code> $(document).ready(function(){
$("#url_form").live("paste", "#video_url... | javascript jquery | [3, 5] |
1,476,896 | 1,476,897 | mp3 cutter android | <p>Following code is working fine for me. Since I am working with android ,I can't use audiostream class.</p>
<pre><code> File correct = new File("data1.mp3");
File file =new File("data.mp3");
correct.createNewFile();
FileInputStream in = new FileInputStream(file);
... | java android | [1, 4] |
824,208 | 824,209 | SQLite query failing | <p>I have android code with an SQLite update query which works ok with Android 2.1 but seems to give a constraint error with 2.3. Might the SQLite not be compatible with 2.3 and how can I tell which version of SQLite I am using?</p>
| java android | [1, 4] |
4,827,384 | 4,827,385 | Div Click on Image / Slide to new div possible with JQuery? | <p>I am looking for some way to click on an image or link on a Div and it will slide to another div without changing to height...so something like the below</p>
<pre><code><div id="div1">
<img src="image.jpg" onclick="slide_to_other_div" />
</div>
<div id="div2" style="display:none">
<p>... | javascript jquery | [3, 5] |
1,639,576 | 1,639,577 | Copy Onclick event of an element | <p>hi to all i have an interesting question </p>
<p>is it possible to copy onclick event of an element like this</p>
<pre><code>$('#ElementId').attr('OldOnClick',$('#ElementId').attr('OnClick'));
</code></pre>
<p>Please guide me if there is any way of doing this.</p>
<p>i am trying to disable click event of all ele... | javascript jquery | [3, 5] |
2,984,212 | 2,984,213 | How do I add/remove a class in a <div> when it already has classes | <p>How do I add/remove a class from a div when it already has one or more classes?</p>
<pre><code><div class="class1 class2" id="id1">some text</div>
$("#id1").toggleClass("class3"); // doesn't work
$("#id1").toggleClass(" class3"); // doesn't work
</code></pre>
<p>Do I have to parse the string?</p>
| javascript jquery | [3, 5] |
157,298 | 157,299 | reference asp server controls from client side | <p>this question might sound silly to some but i just had to make sure.</p>
<p>iv'e got a control which is not visible (visible = false)
i want it to become visible under certain conditions for instance onmoueover of a certain textbox ,</p>
<p>can i perform client side events such as this on server controls ?</p>
... | javascript asp.net | [3, 9] |
1,036,151 | 1,036,152 | Inflating a view throws Resources$NotFoundException on physical device | <p>The exact error:</p>
<pre><code>07-16 18:34:41.729: ERROR/AndroidRuntime(28347): android.content.res.Resources$NotFoundException: Resource ID #0x7f030001
07-16 18:34:41.729: ERROR/AndroidRuntime(28347): at android.content.res.Resources.getValue(Resources.java:892)
07-16 18:34:41.729: ERROR/AndroidRuntime(28... | java android | [1, 4] |
700,889 | 700,890 | Pure java video endcoding/decoding libraries | <p>Does anyone know of any video encoding/decoding libraries written entirely in java?
Bonus points if it works on Android.</p>
<p>I'm trying to write a video decoding application for android, where I have access to the frame level decoding functions (which is absent in the android API MediaPlayer class)</p>
| java android | [1, 4] |
1,321,311 | 1,321,312 | Android - recognizer results null... need to put them into cursor () | <p>I need the results from recognizer in my cursor statement below:</p>
<pre><code> if (requestCode == check && resultCode == RESULT_OK){
ArrayList<String> results = data.getStringArrayListExtra(RecognizerIntent.EXTRA_RESULTS);
lv.setAdapter(new ArrayAdapter<String>(this, android.R... | java android | [1, 4] |
3,509,190 | 3,509,191 | How to get Parent page URL by Javascript? | <p>I have a scenario where Im opening a modal window dailog from Page1.aspx. Now after opening the modal window dialog If a user copies a URL and tries to open that window dialog directly from the browser. The modal window dialog shouldn't open directly. It should open ONLY from Page1.aspx. How do I check if user has n... | javascript asp.net | [3, 9] |
5,137,501 | 5,137,502 | Flash contents are not getting hidden in Chrome | <p>I have asp.net page on which i showed Flash Contents using:</p>
<pre><code><object id="FlashFile" width="800" height="240">
<embed src="images/animation.swf" type="application/x-shockwave-flash" width="800"
height="240"></embed>
</object>
</code></pre>
<p>and after clicking some linkbutton... | javascript asp.net | [3, 9] |
801,297 | 801,298 | is using the $() shortcut in jQuery bad practice? | <p>I was recently listening to a podcast which made a comment on using <code>$()</code> vs using <code>jQuery()</code>. It was stated that every time <code>$()</code> was used a new object would be created and when <code>jQuery()</code> was used this was not the case. I google'd around but couldn't find anything on thi... | javascript jquery | [3, 5] |
5,504,400 | 5,504,401 | Ajax and MVC 4 ( post request) | <p>I want to send a simple string ( which is xml ) to a controller . I don't know why the breakpoint in Visual Studio is not hit.</p>
<p>Here is the jQuerry code :</p>
<pre><code>$.ajax({
type: "POST",
url: "BasicWizard/show",
data: "xml="+xmlResult,
success: function (... | c# jquery | [0, 5] |
3,821,528 | 3,821,529 | making audio fade on click event | <p>In my game I want the background music to fade away when the "start-btn" is clicked. At the moment it works, but only if the music has been playing for a short period of time. If you leave the music to play for a while it doesn't seem to fade away when the button is clicked.</p>
<pre><code>$(".start-btn-wrapper").c... | javascript jquery | [3, 5] |
409,241 | 409,242 | Can we display Hyperlink from Javascript alert on ASP.NET Page? | <p>I have the following text that needs to be displayed from Javascript ALert.</p>
<p>I am wondering if we can display the hyperlink from the alert itself?</p>
<pre><code>alert('User already exists in the system, please <a href='../Login.aspx'>login</a>');
</code></pre>
<p>Appreciate your responses</p>
... | c# asp.net javascript | [0, 9, 3] |
2,234,616 | 2,234,617 | Read data of post method in PHP | <p>I am requesting to PHP server as below code snippet </p>
<pre><code>StringEntity stringEntity = new StringEntity(myString, "UTF-8");
httppost.setEntity(stringEntity);
httppost.addHeader("Accept", "application/xml");
httppost.addHeader("Content-Type", "application/xml");
</code></pre>
<p>Now I want to read that xm... | java php android | [1, 2, 4] |
5,752,709 | 5,752,710 | Bind data on calendar every MonthChange | <p>I am working on an asp .net project which has a Calendar control inside. When the calendar is loaded i have in th DRender function a dataset which binds on the current month the appropriate data. When i change the month how can i bind the data?. For ex: </p>
<pre><code> protected void CalendarDRender(object ... | c# asp.net | [0, 9] |
1,042,100 | 1,042,101 | JQuery / Javascript Image Replace | <p>I am trying to do a very simple image replace of the Twitter widget logo to a logo I specify. How can I do this, please note that the twitter logo has NO ID or class on it, so I am not exactly sure how I can do a replace, it may have to loop through each of the images and then only replace the one that matches.</p>
... | javascript jquery | [3, 5] |
436,749 | 436,750 | How to respond to mouse button clicks in Javascript? | <p>I want to be able to write code to respond (seperately) to the following events:</p>
<ol>
<li>Right hand click</li>
<li>Left hand click</li>
<li>Middle button click (optional - nice to have but I can live without this).</li>
</ol>
<p>Is there an inbuilt way in Javascript that I can respond to these events, or do I... | javascript jquery | [3, 5] |
5,721,918 | 5,721,919 | Can't find Database namespace in System.Data.Entity in ONE file | <p>I have no idea. I just created a Global.asax and I'm just trying to use System.Data.Entity.Database and it has no idea what I want.</p>
<pre><code>using System;
using HROpenEnrollment.Model;
using System.Data.Entity;
using HROpenEnrollment.Data.EntityFramework;
namespace HROpenEnrollment
{
public class Global : Sy... | c# asp.net | [0, 9] |
5,300,938 | 5,300,939 | How to get the selected Date from the calendar control? | <p>I am creating a DatetimePicker User control. I just want to know how to get the selected date of the calendar (asp.net control) control using jQuery. I used this code, but it's wrong.</p>
<pre><code>$(document).ready(function() {
$(".UserCalender").click(function () {
var a = $('.CalenderDiv:selected')... | asp.net jquery | [9, 5] |
1,850,117 | 1,850,118 | How I can detect change on Select, which is called from code? | <p>I want to trigger .change() on select, if I change option in select element by code.</p>
<p>I take example from jQuery documentation and added my hook to link, which after click change selected option in select. And problem is if user click on that link, then change function doesn't react.</p>
<p><a href="http://a... | javascript jquery | [3, 5] |
1,005,986 | 1,005,987 | Checking file size during upload and stopping upload exceeding file size limit with javascript? | <p>Is there a way to use javascript or jquery to check the progress of a file upload (i.e. how many bytes or kb the server has received) and to cut off the upload if it exceeds a certain limit, showing the user a warning/error message? Thank you.</p>
| javascript jquery | [3, 5] |
5,046,465 | 5,046,466 | How to make a delete confirmation that need a minimum of 1 record to be deleted? | <p>I need help on making a delete confirmation that need a minimum of 1 record to be deleted.
I'm still confused on making it. I think there's something wrong in my javascript code. Any help would much be appreciated. Thanks</p>
<p>here's the php code:</p>
<pre><code>enter code here
<script src="javascript.js" ty... | php javascript | [2, 3] |
3,209,464 | 3,209,465 | c14n with Android | <p>Is there a way to make an xml in canonical form on android?</p>
<p>The canonicalizers from some apache projects don't work as they depend on some javax.xml.* packages which aren't available on android.</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.