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,986,387 | 3,986,388 | JQuery selector - full or optimized scan? | <p>Code example:</p>
<pre><code>$JK("body *").each(function() { ... });
</code></pre>
<p>Will JQuery fill the elements' array first before calling <code>each()</code> or there is kinda <code>LINQ</code>-style optimization, so that <code>function</code> will be called during the DOM tree traversal? I guess that this o... | javascript jquery | [3, 5] |
4,547,164 | 4,547,165 | Asp.net detailsview - get data after update | <p>I have a web page with an editable DetailsView. After it is (successfully) edited, I need to use some of the edited fields to update some other tables in the database (in the code behind). I tried to use the DetailsView.DetailItem in the DetailsView_ItemUpdated event code, but the DetailItem isn't available any mo... | c# asp.net | [0, 9] |
63,261 | 63,262 | Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80070005 | <p>i didn't find Microsoft word document under the "Control Panel - Administrative Tools - Component Services - Computers - My Computer - DCOM Config" then how to grant the permissions for microsoft word and excel </p>
| c# asp.net | [0, 9] |
3,765,307 | 3,765,308 | Hide element depending on value of if/else statement not working | <p>I have a Rails app that uses the <a href="https://developer.linkedin.com/documents/sign-linkedin" rel="nofollow">LinkedIn Javascript API</a> to authenticate users. What I'd like to do is hide an element depending on whether the user is signed up or not. I've tried a few things:</p>
<ul>
<li>Put the code with the if... | javascript jquery | [3, 5] |
5,317,417 | 5,317,418 | Creating a textfield which takes values based on the first character | <p>I have a textfield. If we enter a number for the first character, the textfield should only accept numbers. Otherwise if the first character is a letter, then the textfield should accept only letters. I am trying to achieve this in jQuery/Javascript.</p>
| javascript jquery | [3, 5] |
1,720,721 | 1,720,722 | How to move to code in codebehind from javascript | <p>I have a gridview .When i click on one row in it i have to go to javascript which is like this.</p>
<pre><code> <script type="text/javascript" language="javascript">
function GetDetails(rowNo)
{
document.getElementById('hidRowNo').value = rowNo
do... | c# asp.net | [0, 9] |
74,577 | 74,578 | findviewbyid returns null in a dialog | <p>I have a custom dialog and when I try to get the value of an EditText it returns null.</p>
<p>This line returns null</p>
<pre><code>EditText et = (EditText)findViewById(R.id.username_edit);
</code></pre>
<p>Here is the code in its entirety.</p>
<pre><code>protected Dialog onCreateDialog(int id) {
switch (id)... | java android | [1, 4] |
2,936,490 | 2,936,491 | How to get number of words on a web page? | <p>I need to get total number of WORDS on a web page. I know about the <code>System.Net.WebClient</code> class. But it's <code>DownloadString()</code> method return the whole HTML markup where as what I need is only the TEXT so that I can figure out the number of words.</p>
<p>Any ideas/suggestions welcome.</p>
| c# asp.net | [0, 9] |
3,879,393 | 3,879,394 | Scroll text div on hover and return to first element | <p>How to replace "home" button with another text when I hover by mouse on it instead of it repeating itself?</p>
<pre><code><ul class="topnav">
<li><a href="#">Home</a></li>
</ul>
jQuery(function($) {
$('.topnav li').find('a[href]').parent().each(function(span, li){
... | javascript jquery | [3, 5] |
1,278,945 | 1,278,946 | Draw image using mouse | <p>I need to create a web page where i can draw a image using mouse (similar to paint).is it possible in c# ,asp.net or silver light please help</p>
| c# asp.net | [0, 9] |
4,569,828 | 4,569,829 | Replace text inside a div without affecting any HTML tags inside of it | <p>I see that this has been asked many times. But, unfortunately I have not come across a straight forward solution. Most solutions revolve around multiple nodes within the div.</p>
<p>So here's problem. I have the following markup:</p>
<pre><code><div class="test">Text1<span></span></div>
</c... | javascript jquery | [3, 5] |
3,072,407 | 3,072,408 | Capture all links including form submission | <p>I am wondering how to capture all links on a page using jQuery. The idea being similar to Facebook. In Facebook, if you click on a link it captures the link and loads the same link using ajax. Only when you open a link in new tab etc. will it load the page using regular call.</p>
<p>Any clue on how to achieve such ... | javascript jquery | [3, 5] |
2,842,382 | 2,842,383 | Bold text in a text area? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/3322895/bold-text-in-textarea">bold text in textarea</a> </p>
</blockquote>
<p>My user is typing in a textarea, using js they have the ability to make url links within this area, is there a way to bold the text ... | javascript jquery | [3, 5] |
1,416,807 | 1,416,808 | Removing $() jQuery wrapper to just get raw JS element | <p>Random <em>just out of curiosity</em> question:</p>
<p>Let's say for whatever reason I get an element back from a function </p>
<pre><code>$(element)
</code></pre>
<p>But I want to remove the <strong>$( __ )</strong> jQuery wrapper to leave the regular DOM Element:</p>
<pre><code>element
</code></pre>
<p><stron... | javascript jquery | [3, 5] |
3,646,999 | 3,647,000 | Use checkbox to set val() for field | <p>Total N00b here, I have a long form wizard that needs one step to be dynamically shown/hidden dependant on a radio button. All is cool with the code thus far.</p>
<pre><code>function checkRb () {
if($(this).is(":checked")){
//yes
$("#do_frick").val("step5");
//alert ("yeah");
}else {
... | javascript jquery | [3, 5] |
926,246 | 926,247 | Android and jQuery Problem (might also be an asp.net issue?) | <p>Hello I'm programming an Web-Application with asp.net and jQuery (parts of it in jQueryMobile).
I can't use the loading-animations of jQueryMobile as they don't work with my aspx sites. So i implemented my own loading animation on several pages. Which looks like so:</p>
<pre><code><script type="text/javascript"&... | jquery asp.net android | [5, 9, 4] |
3,913,488 | 3,913,489 | When page loads display 1st image text - hide all other text | <p>I have created <a href="http://techavid.com/design/test3.html" rel="nofollow">this page</a> and when you load the page you see there are 3 images. The sun image is focused(in color), while the others are greyed out until clicked. That is how it should be for the images.</p>
<p>Also when you load the page you see un... | javascript jquery | [3, 5] |
3,379,019 | 3,379,020 | Attemp at jquery refreshing a div and php | <p>I'm trying to refresh a div with jquery that loads the time which is generated with php. </p>
<p>I've read some of the articles on jquery that were already on here and tried using those to refresh my div, but I failed.</p>
<pre><code>echo '<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<m... | php jquery | [2, 5] |
2,871,686 | 2,871,687 | Monitor the progress of an input stream / httpclient.exectute | <p>I'm trying to get the progress of an Apache HTTP Client Execute method. Is it possible to either</p>
<ol>
<li>Get the mount of input stream that has been read by the execute method
or </li>
<li>Monitor the execute process using some internal method either by percent or amount of data sent?</li>
</ol>
<p>The code b... | java android | [1, 4] |
2,436,695 | 2,436,696 | Javascript data models in jQuery | <p>Recently I've been using ExtJs and its data stores to load data and bind them to a datagrid.</p>
<p>What I'm trying to work out is the best way of doing that using jQuery (+any plugin) and javascript.</p>
<p>I've got a series of plugins that used a known object to render themselves. This is fine, although the def... | javascript jquery | [3, 5] |
1,939,353 | 1,939,354 | How to get input id of datepicker in c#? | <p>I am using datapicker jquery but it is not able to get Input Id in C#.If i give runat=server ,i can call the input id in c#,but it does not work in page. Can anyone help me for that, I am new to Dnn. Any answer would be appreciated. Thank you.</p>
<pre><code>enter code here
<div class="demo">
<p>Date: ... | c# javascript asp.net | [0, 3, 9] |
2,093,051 | 2,093,052 | How to show a web page in full screen mode without statusbar and addressbar in all browsers? | <p>How to show a web page in full screen mode without statusbar and addressbar in all browsers and it should not show the taskbar also.</p>
| c# javascript asp.net jquery | [0, 3, 9, 5] |
5,261,505 | 5,261,506 | PHP transfer files from server to server in LAN | <p>So, I have 5-6 pages of requirements. I'm trying to build this application in PHP based on the requirements.</p>
<p>I want to transfer files from one server to the other server in LAN, and then send a shell command to the other server to find out if the file has been transferred successfully.</p>
<p>In php, I can ... | java php | [1, 2] |
5,243,752 | 5,243,753 | How to create Intent using a string to launch another activity? | <p>The first activity in my app needs to load a small amount of data from a text file. Two strings and an integer.</p>
<p>Once I load the data, I want to use one of the strings to create an intent, that will launch the next activity.</p>
<p>The current activity will not be able to have a hard-coded reference like so... | java android | [1, 4] |
3,523,534 | 3,523,535 | compare sql date to javascript date | <p>Is there an easy way to compare a sql dateTime to a javascript date time so that the two can be compared easily?</p>
<p>Are there built in javascript functions as I cant edit the sql</p>
| javascript jquery | [3, 5] |
4,776,714 | 4,776,715 | Code in onActivityResult() not executed | <p>I've got an android application that I want to open a different activity then my main one after a fresh install.</p>
<p>I tried this using startActivityForResult() and SharedPreferences. Here is my code:</p>
<p>main activity:</p>
<p>public class ONTTMainActivity extends Activity {</p>
<p>static final int REQUEST... | java android | [1, 4] |
4,182,521 | 4,182,522 | onCreateContextMenu | <p>I can seen to understand what I am doing wrong here.</p>
<pre><code>public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) {
super.onCreateContextMenu(menu, v, menuInfo);
AdapterView.AdapterContextMenuInfo info = (AdapterView.AdapterContextMenuInfo)menuInfo;
Map<String, S... | java android | [1, 4] |
76,267 | 76,268 | Trigger event automatically once per 24h / per user in ASP .NET Application | <p>What selection of solution do I have if I want to launch particular piece of code for logged in user, <strong>but not more often then once per day</strong> (it can change in the future to run once per 6 hours though). I though about setting a cookie that will store a date when code was launched the last time, but I ... | c# asp.net | [0, 9] |
1,573,185 | 1,573,186 | Am I learning programming right? | <p>So I am at a faculty of computer science and was a bit occupied with some issue and have to speed up things a bit. But I still want to be able to learn the languages good, not just fast.</p>
<p>We were teached c, then oop in c++ in the first year. Now, we are being teached java. I started reading <a href="http://ww... | java c++ | [1, 6] |
83,169 | 83,170 | Insert content of child of selector into another element on hover | <p>I would like to add the content of a hidden span that is nested in an "a" element into another element on the page. Ideally, I'd like the content of the span injected into the other element, not the span tags themselves.</p>
<pre><code><script type="text/javascript">
$(document).ready(function() {
... | javascript jquery | [3, 5] |
746,867 | 746,868 | How to focus main web page after opening a new window? | <p>I want to be able to focus the original page after opening a new window/tab, the same way as it's done on this website: <a href="http://www.vouchercodes.co.uk/laredoute.co.uk" rel="nofollow">http://www.vouchercodes.co.uk/laredoute.co.uk</a></p>
| javascript jquery | [3, 5] |
5,841,012 | 5,841,013 | jQuery function only inside a specific div ID | <p>I have the following function that I only want to run inside <code><div id="imgWrapper"></code></p>
<p>I have tried a few things with parent but I cannot seem to figure this out. </p>
<pre><code> <script type="text/javascript" language="javascript">
$(document).ready(
function () {
... | jquery asp.net | [5, 9] |
5,068,187 | 5,068,188 | Android Loop Images | <p>How do i loop this array, so that I do not have to write out 100 lines of images. I know it's simmple</p>
<pre><code>private String[] pics = {
//want to loop these
Constants.BASE_URL+"/bg/a/A1.jpg",
Constants.BASE_URL+"/bg/a/A2.jpg",
Constants.BASE_URL+"/bg/a/A3.jpg",
Constants.BASE_... | java android | [1, 4] |
3,621,434 | 3,621,435 | Multiple JQuery actions based on timer | <p>I have a testimonial box that has the testimonial within it, and then I have icons indicating whom provided the testimonial underneath. Connected to the box and right above the icon is a little arrow that can be generated via CSS or an image.</p>
<p>Every 5 seconds, it should change the testimonial content via a fa... | javascript jquery | [3, 5] |
5,339,713 | 5,339,714 | Can't $_POST values from disabled Radio buttons | <p>I have two pages, in the first page I submit the form which contains Radio buttons.</p>
<p>From the second page, I try to read the responses from the Radio buttons using the $_POST.</p>
<p>The problem is when I hit submit, the $_POST in the second page reads NULL.
But when I'm not disabling the Radio buttons in th... | php javascript | [2, 3] |
5,487,607 | 5,487,608 | Android SDK - java not found | <p>This problem was asked many times, but none of solutions doesnt help me.</p>
<p>I am using <code>Windows 7 SP1 (x64)</code>, <code>JDK 1.7.0_03 (x86)</code>, <code>JRE 7 (x86)</code> and <code>Android SDK Tools r16</code>.</p>
<p>When I install <code>Android SDK Tools</code> it says -</p>
<blockquote>
<p>Java S... | java android | [1, 4] |
4,812,987 | 4,812,988 | Open excel file in asp.net | <p>I am trying to open a Excel(.xls) file from asp.net.The code i am using is given here.It is showing a save as dialog box which i don't want .Please help me !!!</p>
<pre><code> Response.ContentType = "application/xls";
Response.Flush();
Response.WriteFile(fileName);
Response.End();
</code></pre>
| c# asp.net | [0, 9] |
3,657,851 | 3,657,852 | Creating a for each loop on multitple letters using jquery | <p>im working on an mobile web application, which uses data from a .jsp page in the same directory. I made it possible to get formdata and put it in a variable using jQuery's .val().</p>
<p>now i have created an array of the input, and want to loop it using the $.each.
Only problem is when i try to create the loop, it... | javascript jquery | [3, 5] |
3,766,496 | 3,766,497 | javascript error with label | <p>I have a function as follows:</p>
<pre><code>function textNext(element, num) {
document.getElementById("lblContent").innerHTML = "hello";
}
</code></pre>
<p>However, the text of the <code>lblContent</code> label won't change when the function is called. </p>
<p>What am I doing wrong?</p>
<p>btw : lblContent ... | javascript asp.net | [3, 9] |
289,399 | 289,400 | Android Custom button with imageview and textview inside? | <p>I'm looking to create a custom button. This button ideally would have an image on the left and a textview on the right. How would I accomplish this?</p>
| java android | [1, 4] |
1,015,562 | 1,015,563 | Passing Javascript variable to PHP not working | <p>I am trying to pass the value of a javascript variable to a php variable.</p>
<p>This is my code but it's not passing anything...</p>
<pre><code> <script>
var newVar = "2000";
<?php $value ?> = newVar;
</script>
</code></pre>
<p>Sorry, I need to javascript variable to be passing into ... | php javascript | [2, 3] |
4,400,953 | 4,400,954 | Populating data based on users selection | <p>How do you populate data coming from SQL server based on users request?</p>
<p>Example:</p>
<p>I have a page with about 50 links(all user links) and I want to be able to have the user click on their link and bring another page(template I believe) with all their data. The catch here is that I don't want to create 5... | c# asp.net | [0, 9] |
4,720,925 | 4,720,926 | How to handle javascript events from a native android application? | <p>I have a native android application using which, I want to track the javascript events and method calls while an HTML page runs in the browser on Android phone. So basically, whenever a function-call/event is triggerred in javascript on a web-page in the browser, I want the browser to notify the native application a... | java javascript android | [1, 3, 4] |
2,897,990 | 2,897,991 | jQuery $.each multiple div names | <p>Hello following problem,
i need the id attribute string for each div in a loop how i can make this ?</p>
<pre><code><div id="3r23r32_ProgressBar" class="upload-progress-bar"></div>
<div id="gfdgfdgfd_ProgressBar" class="upload-progress-bar"></div>
</code></pre>
<p>Here is my sample jquery c... | javascript jquery | [3, 5] |
3,912,184 | 3,912,185 | Select child of earlier clicked item in jQuery | <p>I have clicked on a div. In this div is an image:</p>
<pre><code><div class="grid_2 shareContent" id="facebook_45">
<a href="#">
<img class="facebook"
src="http://roepingen.kk/skins/admin/default/images/social/facebook.png"
alt="Facebook not shared" width="32px... | javascript jquery | [3, 5] |
1,412,696 | 1,412,697 | counting from textbox,asp.net | <p>How can I count characters in a TextBox using ASP.NET(C#)?</p>
| c# asp.net | [0, 9] |
5,306,180 | 5,306,181 | Total number with jquery | <p>How can total the number of characters between the <code>p</code> tags with jQuery?</p>
<p>I try as:</p>
<p><strong><a href="http://jsfiddle.net/TPFkF/" rel="nofollow">DEMO</a></strong></p>
<p>html:</p>
<pre><code><b>1</b>
<b>1</b>
<b>1</b>
</code></pre>
<p>js:</p>
<pre><cod... | javascript jquery | [3, 5] |
4,341,325 | 4,341,326 | Set margin for html body dynamically by obtaining viewport width | <p>I am trying to set margin of the id:main dynamically by obtaining viewport width. I have numerous blocks of same width in the page. So, i want to fit as many blocks as possible and centre them by dynamically calculating the remaining width. the block is of size 240px, 20px of padding </p>
<p>I have tried two codes,... | javascript jquery | [3, 5] |
736,191 | 736,192 | jQuery, Uncaught TypeError | <p>I have some javascript code on my webpage that is loading some divs onto the page. I also want to add onmouseenter, and onmouseleave event handlers to each div. I am using jquery to add these handlers, but i get the error:</p>
<blockquote>
<p>"Property '$' of object [object DOMWindow] is not a function"</p>
</blo... | javascript jquery | [3, 5] |
3,639,670 | 3,639,671 | Get values of a textbox changed by javascript | <p>strange bug:</p>
<p>i have an ajax datepicker added to a text box of my form.</p>
<p>i submit the form.. and I could receive all values excepting those of the datepicker checkboxes.</p>
<p>why is the .Text property empty of this elements?</p>
<p>Thanks</p>
| c# asp.net javascript | [0, 9, 3] |
4,204,393 | 4,204,394 | Passing variables from php to javascript (Safely) | <p>I have been struggling with this kind of problem for a while now, and cannot seem to find any information or sample code to transfer some data between PHP and JavaScript.
I saw many ways to do it, but not safely. What I mean exactly is , when you transfer some variable data between the systems, it is directly shown... | php javascript | [2, 3] |
3,898,672 | 3,898,673 | How can i change the background color or apply an color to an Item in Drop down list | <p>Hi all i am having a drop down list with some items now while checking the items from the list and if that item exists in the drop down i would like to apply color for that particular item.</p>
<p>Assume i have my drop down as follows</p>
<pre><code> 123
1234
12345
</code></pre>
<p>Now if i found <code... | c# asp.net | [0, 9] |
3,654,681 | 3,654,682 | Making grid set size no matter how many words are in it | <p>I have a list of 3 letter words that dynamically generate a grid. </p>
<p>The problem is I need a 6x6 grid, and if there is not enough words in the list to facilitate a 6x6 (12 words) then it won't be the size needed, and only be a grid as big as the words in it. </p>
<p>How can I make it so it always produces a 6... | javascript jquery | [3, 5] |
2,947,689 | 2,947,690 | Displaying DOM element events and their handlers | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/2623118/inspect-attached-event-handlers-for-any-dom-element">Inspect attached event handlers for any DOM element</a> </p>
</blockquote>
<p>Is there a tool - such as a browser extension, jQuery console script, bo... | javascript jquery | [3, 5] |
5,595,815 | 5,595,816 | It scrolls to the top of the page after clicking | <p>I have this code to switch a switching button image:</p>
<pre><code>$("#invio_scatola_on, #invio_scatola_off").click(function(){
$("#invio_scatola_off").toggle();
$("#invio_scatola_on").toggle();
});
</code></pre>
<p>when it is executed, the browser goes to the top of the page. why?</p>
| javascript jquery | [3, 5] |
4,601,093 | 4,601,094 | How to Upload User Profile image and show it | <p>i am working on a project in which i have registration form in which i want to upload a user image . i have done upload work and store it in a folder. but i am confused how to show it when user open his account. please give idea in c# regards.</p>
| c# asp.net | [0, 9] |
1,041,818 | 1,041,819 | javascript countdown clock | <p>im trying to write a countdown clock to a certain day in js. I have the following which works if i output it to the page but I cant seem to write it to a div using innerhtml?</p>
<p>Can anybody see where im going wrong? </p>
<pre><code>today = new Date();
expo = new Date("February 05, 2012");
msPerDay = 24 * 60 * ... | javascript jquery | [3, 5] |
1,219,364 | 1,219,365 | embedded video in asp:ListView | <p>I've a <code>Link</code> field. The sample value of <code>Link</code> like this : <code>https://vimeo.com/62941191</code></p>
<p>I want to bind <code>Link</code> in <code>asp:ListView</code> and show video inside it. Don't know how to show video. Can somebody tell me?</p>
| c# asp.net | [0, 9] |
1,193,231 | 1,193,232 | Can you explain this jQuery method? | <p>Trying to understand how jquery works under the covers, what's the difference between:</p>
<p>jQuery.fn and jQuery.prototype</p>
<pre><code>jQuery = window.jQuery = window.$ = function( selector, context ) {
// The jQuery object is actually just the init constructor 'enhanced'
return new jQuery.fn.init( ... | javascript jquery | [3, 5] |
2,354,944 | 2,354,945 | DropdownList with Multi select option? | <p>I have a DropDownList as following</p>
<pre><code><asp:DropDownList ID="ddlRoles" runat="server" AutoPostBack="True" Width="150px">
<asp:ListItem Value="9" Text=""></asp:ListItem>
<asp:ListItem Value="0">None</asp:ListItem>
<asp:ListItem Value="1">Ranu</asp:ListItem>
<as... | c# asp.net | [0, 9] |
3,123,304 | 3,123,305 | error message in asp.net c# | <p>if you please help me out i can not find out whats wrong with the above code since i am learning on my own asp.net c# with the above code:</p>
<pre><code>protected void Button1_Click(object sender, EventArgs e)
{
try
{
Response.Write("<script>");
Response.Write("alert('Organizer added!... | c# asp.net | [0, 9] |
5,301,158 | 5,301,159 | Highlight table row with some background color | <p>I am using rails3 and on my page i am iterating a loop which have some records and i want when </p>
<p>user click on some row its color will be green and when he again click some row its color will </p>
<p>be green and the color of previous highlighted row should be none.</p>
<p>Thanks in advance</p>
<p>My code ... | javascript jquery | [3, 5] |
2,640,271 | 2,640,272 | JQuery: How to AutoComplete "City, State"? | <p><strong>Question</strong>: How can you use the <a href="http://docs.jquery.com/Plugins/Autocomplete">JQuery Auto-Completion plugin</a> to suggest a location (<code>"City, State"</code>) for an input field?</p>
<p>Meaning, someone wants to type in <strong>"Chicago, IL"</strong> ... so they begin typing <code>"Chi"</... | javascript jquery | [3, 5] |
390,302 | 390,303 | Is it possible to read a PHP session using Javascript? | <p>I am using cakePHP 1.26.<br/>
In a controller, I got a function which contains these lines of code:<br/></p>
<pre><code>$this->Session->write('testing', $user);
$this->Session->read('testing');
</code></pre>
<p>Now the system wrote a session and stored on the server.
Is it possible to use Javascript or... | php jquery | [2, 5] |
4,401,664 | 4,401,665 | How to pass javascript prompt value to a view | <p>Is there a way to pass a js popup value directly to a python/django view, or is necessary to capture this value with a javascript function and then do an ajax call?</p>
<p>For example:</p>
<pre><code><form>
<input type="text" name="name"/>
<input type="submit" id="submit"/>
</form>
... | javascript jquery python | [3, 5, 7] |
606,735 | 606,736 | why an object created in the code behind is not available in the aspx page? | <p>I have a simple question. When we create an object in the code behind(".aspx.cs"), why is it not available in the aspx page.</p>
<p>For example, if I have a class(present in another .cs file and not in the code behind) and in that class I have a property declared, lets say "Name". </p>
<pre><code>namespace BLL.SO
... | c# asp.net | [0, 9] |
3,280,711 | 3,280,712 | How to improve performance of inserting text into an HTML element? | <p>In Firefox, I am inserting text into ~500 DIVs using this code:</p>
<pre><code>$(".divs").text("default"); // ~500 DIVs
</code></pre>
<p>On my computer, this consistently takes <strong>9ms</strong> <em>if the DIVs are empty</em>. However, this same code consistently takes <strong>18ms</strong> <em>if the DIVs alre... | javascript jquery | [3, 5] |
5,754,905 | 5,754,906 | What JavaScript/JQuery syntax is this? | <p>I have no idea how to search for this so I'm asking here.</p>
<p>I've inherited a project and no one that's here knows what this syntax trick is called.</p>
<p>There's a select drop down change event that will call a function if one or another specific value is selected from among the list.</p>
<pre><code>$('#acc... | javascript jquery | [3, 5] |
3,108,581 | 3,108,582 | .Net Control Library Embeded CSS and Web.Config Page theme | <p>I have one control library which built runtime custom infobox control. </p>
<p>There is one CSS file embedded in this control library which works properly for my few modules. But, in one of my module it loads WebResource.axd in the client browser but unable to apply classes over any control. I have opened AXD file... | c# asp.net | [0, 9] |
4,644,905 | 4,644,906 | Special character on Http Request | <p>I am new to Android platform and trying to establish a http request but My Url contains some special characters So it is throwing an Exception.How to Avoid this problem.I did same thing In i-phone Using
[mystring stringByAddingPercentEscapesUsingEncoding: NSUTF8StringEncoding]</p>
| java android | [1, 4] |
248,091 | 248,092 | Passing parameters stored in Javascript Object to jQuery .load page | <p>I am using Ben Alman's jQuery BBQ to get the current page Querystring and Hash Values and storing them in a Javascript object using the following code:</p>
<pre><code>var params = $.deparam.querystring();
var paramsHash = $.deparam.fragment();
</code></pre>
<p>These are all being set correctly; if I <code>console.... | javascript jquery | [3, 5] |
5,329,016 | 5,329,017 | JavaScript: Assign an object to another object | <p>I'm trying to assign the local var <code>UgcItems</code> to <code>uploadedItems</code> but when I try to return the value I get <code>undefined</code>. If I put the <code>console.log</code> inside of the <code>.getJSON</code> then I get the appropriate value. The problem with that is that the scope is inside of th... | javascript jquery | [3, 5] |
49,636 | 49,637 | Android - Black Screen after clicking BACK in an Activity with an AltertDialog after Search Activity | <p>I have an Activity which displays an alert dialog priot to the content.
Also a search activity is called before this activity.</p>
<p>Now when i press back on this activity i am lead to a black screen (which i assume is eighter because of the dialog [unlikely] or from the search activity). Only when i press BACK tw... | java android | [1, 4] |
1,078,501 | 1,078,502 | JavaScript Namespace with jQuery | <p>How do you manage namespace for a custom JavaScript library depends on jQuery?</p>
<p>Do you create your own namespace, say <code>foo</code> and add your objects there? e.g. <code>foo.myClass, foo.myFunction</code></p>
<p>Or do you add your objects to jQuery's namespace? e.g. <code>jQuery.myClass, jQuery.myFunctio... | javascript jquery | [3, 5] |
506,940 | 506,941 | Jquery: Adding toggle action to drop down menu | <p>I am trying to create my own drop down navigation that expands when an arrow is clicked (for now just a > within a span)</p>
<p>My script cycles through a series of <code><li></code>s and checks if any have a child <code><ul></code> within them. If a <code><ul></code> is detected it then appends <... | javascript jquery | [3, 5] |
5,842,245 | 5,842,246 | calling php file from jquery at specific interval | <p>i have following variables in jquery</p>
<pre><code>var uemail="abc@domain.com,xyz@domain.com,gty@domain.com";
var subj="test message";
var text="<b>This is Email Body Text</b>";
</code></pre>
<p>i have one PHP file named "email.php" to send email</p>
<pre><code><?php
$email =$_GET['email'];... | php javascript jquery | [2, 3, 5] |
4,911,396 | 4,911,397 | PHP code to open new resized window | <p>I am not very well versed in PHP code, but I have an overall goal I hope someone can help me with. I have this code snippet from my site:</p>
<pre><code>$show = false;
if($this->_general['post_ci_linkedin_show'])
{
$url = urlencode(get_permalink($post->ID))... | php javascript | [2, 3] |
1,438,071 | 1,438,072 | GridView Databinding and Paging | <p>What is the best way to retrieve records from the database?
Currently we are grabbing all of them, caching them, and binding them to our GridView control. We incorporate paging using this control.
So what would be better? Retrieving all the records like we are currently doing, or just retrieving the records needed ... | c# asp.net | [0, 9] |
2,497,805 | 2,497,806 | Suggestions for a menu application (PHP & Javascript) | <p>I'm currently building a menu application for my final year project at university.</p>
<p>And would like to forum ideas for how I will display the order being placed, back to the customer....</p>
<p>A few ideas i have is using a normal textarea for example when a menu choice is clicked</p>
<pre><code>document.get... | php javascript | [2, 3] |
3,957,597 | 3,957,598 | Why is .val() not a function? | <p>I have a dynamic form where the user provides a name and description:</p>
<pre><code><label>Name</label><br />
<input type="text" name="name[]" maxlength="255" /><br />
<label>Description</label><br />
<textarea name="desc[]"></textarea><br />
</cod... | javascript jquery | [3, 5] |
2,146,691 | 2,146,692 | Mapping variables from a string formula | <p>I have a textarea where user can create a dynamic formulas using dropdown lists(for operators, variables etc) like this:</p>
<pre><code>basic / workingDays * attendingDays
</code></pre>
<p>where values of <code>basic</code>, <code>workingDays</code>, <code>attendingDays</code> are saved in database. I want to map ... | c# asp.net | [0, 9] |
5,180,336 | 5,180,337 | Help passing GET data to a php file in the same location as my Java applet | <p>I have a java applet trying to pass some GET data to a php file in the same directory as my applet. When I start a url connection to the file.php and pass the data, I don't get anything, however when I append the full URL in front of the PHP file, it works.</p>
<p>Here's what I have:</p>
<pre><code>URL sp = new UR... | java php | [1, 2] |
5,246,029 | 5,246,030 | Changing Android Device name in code | <p>I am trying to change the name of the Android Device that my program that is currently running on because the name of the device will contain information that is relevant when it communicates with other phones. The name of the phone will be constantly changed as phone scans for other phones and calculates informatio... | java android | [1, 4] |
153,787 | 153,788 | Why does an AJAX call sometimes redirect the page? | <p>I have a page that contains 3 iframes, the top header, left navigation and the content iframe.</p>
<p>(this is a legacy application).</p>
<p>The page that contains the 3 iframes makes an jQuery AJAX call to a page: </p>
<p><code>/users/getNotifications.aspx</code></p>
<p>Sometimes (I believe when I am not logge... | javascript jquery asp.net | [3, 5, 9] |
4,068,920 | 4,068,921 | How to check the existance of a value from asp designer page? | <p>I'm getting a list of string from db like:</p>
<pre><code>AddCustomer,
AddUser,
ListCustomer,
ListUser
</code></pre>
<p>These are the prefix of asp pages.
I need to hide and show certain pages in the page. Following is the html snippet:</p>
<pre><code><li>Customer Management
<ul>
... | c# asp.net | [0, 9] |
5,797,946 | 5,797,947 | Key events on a custom android View object | <p>I have a class that extends <code>View</code> and I wish to add some effects for <code>onKeyDown</code> events so I can change the colour of the item etc.</p>
<p>I have the following code in my class:</p>
<pre><code>@Override
public boolean onKeyDown(int keyCode, KeyEvent event) {
Log.v("keydown", "event");
... | java android | [1, 4] |
5,004,811 | 5,004,812 | Validation check with jQuery | <p>In my aspx page, am using some validation controls like required field validator, if I click on save button If the particular field is empty, the validation error fires.</p>
<p>And if I fill that particular field and give tab out, that validation error automatically disappears. My query here is, is it possible to d... | jquery asp.net | [5, 9] |
3,087,733 | 3,087,734 | Start view drag after adding to parent | <p>Okay so I am working with 2 separate views in android, one that has a list of things (We will call this the listview, this is a linear layout contained in a horizontal scroll view), and another that shows a display of items (the mainview). The idea is that when you long press on something from the list, it adds a vi... | java android | [1, 4] |
2,117,932 | 2,117,933 | set a particular option in a select box using jquery | <p>I'm unable to perform the desired event.</p>
<pre><code> <?php
include_once 'includes/db.php';
$result = mysql_query('SELECT country,code FROM countries') or die(mysql_error());
echo '<select id="CountryCode">';
echo '<option value="Select">Select</option>';
... | javascript jquery | [3, 5] |
1,854,777 | 1,854,778 | fire .change with keyup and keydown | <p>I have the following which works as long as I use the mouse to select an option from the selectbox, or use keyboard arrow keys to select the option, but when using the keyboard, the change event does not fire until I press enter on the keyboard.</p>
<p>How would I detect a change using the keyboard arrow keys witho... | javascript jquery | [3, 5] |
5,924,592 | 5,924,593 | ASP.NET Learning Path for a PHP Programmer | <p>I'm a beginning PHP programmer with little real-world experience (haven't even graduated yet), but I'd like to learn ASP.NET to possibly qualify for twice as many jobs in web development as opposed to knowing just PHP and having seen far too many <code>!== false</code> I love the idea of working with a strongly-type... | php asp.net | [2, 9] |
3,552,936 | 3,552,937 | Replace the first line of a file in android | <p>Hello
In my android application i would like to replace my first line of a txt file with some other data.
Is there any way that i can do this.</p>
<p>Please let me know your valuable suggestions.</p>
<p>Thanks in advance :)</p>
| java android | [1, 4] |
4,549,551 | 4,549,552 | dropdownlist bind datatext field with a calculation | <p>I have a datatable with one column that is taken from DB</p>
<pre><code>DataTable dt = ent.GetDataTable();
</code></pre>
<p>I am binding it to dropdownlist with </p>
<pre><code>ddl.Datasource = dt;
ddl.datatextfield = "Test";
ddl.DataBind();
</code></pre>
<p>Now i want multiply each value in that column by 1000 ... | c# asp.net | [0, 9] |
1,903,310 | 1,903,311 | not entering in Jquery function | <p>I am pretty new to jquery, my problem is that I have done jquery function in a page which inherits from master page. For some reason the function is totally ignored as if there is nothing and the page is loaded without any script. </p>
<p>Do I need to do something in the page load in the code behind? Underneath I a... | c# jquery | [0, 5] |
4,510,275 | 4,510,276 | Sometimes imagebutton click event not fired | <p>I have a method that add's an onclick event too an imagebutton.
But sometimes you have to press the button multiple times before the "pop-up" window opens.
Any idea why this happens?</p>
<p>this is my code were I add the event to my imagebutton:</p>
<pre><code>private void AddProjectDetails()
{
ImageBu... | c# asp.net | [0, 9] |
4,927,717 | 4,927,718 | web-development: how to display an increasing number of messages? | <p>I want to build a website that display changing text-messages.</p>
<p>The server gets the text-messages from a DB.
I wanted to grab a chunck of msgs, shufle them and send them to the client to present each of them. When the client is done with the current chunck he asks the server for the next chunck.</p>
<p>can ... | c# javascript asp.net | [0, 3, 9] |
2,899,123 | 2,899,124 | AndroidHttpClient cannot be resolved to a type | <p>I'm very new to Android development (just started today), and also very new to Java development, although I've been programming C# for several years.</p>
<p>I'm trying to make an HTTP request using the <a href="http://developer.android.com/reference/android/net/http/AndroidHttpClient.html" rel="nofollow"> AndroidHt... | java android | [1, 4] |
2,077,686 | 2,077,687 | c# control names | <p>Is there a way to control how .Net sets the <code>Name</code> and <code>ID</code> property of my controls? I have some radio buttons for which I need the name to be the same. However if I set the <code>ID</code> property of the radio button control it sets the <code>Name</code> and the <code>ID</code>. I see no w... | c# asp.net | [0, 9] |
2,711,349 | 2,711,350 | Find uppercase substrings and wrap with acronym tags | <p>For example replace the string <code>Yangomo, Congo, DRC</code> with <code>Yangomo, Congo, <acronym>DRC</acronym></code>. There may potentially be mulitple uppercase substings in each string. I assume some form of regex?</p>
<p>Thanks.</p>
| javascript jquery | [3, 5] |
1,789,754 | 1,789,755 | C# equivalent of Java instance initializer | <p>In <code>Java</code> instance variables can be initialized by an initialization block as shown below:</p>
<pre><code>class Example {
private int varOne;
private int varTwo;
{
// Instance Initializer
varOne = 42;
varTwo = 256;
}
}
</code></pre>
<p>Is there an equivalent cons... | c# java | [0, 1] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.