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,632,234 | 3,632,235 | Keep Checking until True | <p>Basically, I have a form that is handled by a CMS which I cannot edit it's javascript, but I more or less want to add in a "Loading" or "Sending" message to my users. For example. </p>
<p>Currently, the default form once submitted, will append a html success message to a div called 'success' once sent, but basicall... | javascript jquery | [3, 5] |
2,930,461 | 2,930,462 | Event Handlers not working after DOM manipulation | <p>On page load I bind Event Handlers with content which is hidden on at the time of page load. </p>
<p>If users clicks on the button, the hidden content is pulled and replaces the main content of the page, Now the event Handlers which were initially binded do not work.</p>
<p>HTML code on Page load </p>
<pre><code>... | javascript jquery | [3, 5] |
6,369 | 6,370 | to copy folders from local machine to folder in server | <p>to copy folders from local machto copy the complete files and folders , from local machine , i.e,
folder/directory path which is selected by user has to be completely[all
files within the path is be selected] is to be pasted/copied into
folder which is in webserver where the web application has been hosted.
ine to... | c# asp.net | [0, 9] |
5,082,145 | 5,082,146 | Jquery - check to see if selector ends with number | <p>How can I check selector to see if he is ending with number?
JS code:</p>
<pre><code>if(!$(this).val())
{
$('label[for^=image], input[id^=image], input[name=time]').remove();
}
</code></pre>
<p>I tried adding <strong>/d/</strong>, but it does not work (</p>
<blockquote>
<p>$('la... | javascript jquery | [3, 5] |
138,792 | 138,793 | How do I get user input into an EditText field | <p>I am building a larger app and I made this small one just to figure out how to accomplish getting text from user input however it is not working. If I create a string reference at the Text property of my EditText field it works ok. If I leave it blank and enter the text into the field when the application runs in my... | java android | [1, 4] |
3,911,682 | 3,911,683 | Routable Url in asp.net with .HTML gives 404 error in hosted server | <p>I have Routable url for my site <a href="http://www.indiatimepass.info" rel="nofollow">http://www.indiatimepass.info</a> it works fine in url is without any "." (dot) but if i add a "." (dot) in url it gives me no page found error.</p>
<p><a href="http://www.indiatimepass.info/link/11/welcome.html" rel="nofollow">h... | c# asp.net | [0, 9] |
197,083 | 197,084 | store selected value of multiple list box items in asp.net | <p>I have a listbox control data bound to a data source and I want to be able to get the value of each selected item so that I can use that information to form an insert query for another table. In other words be able to select a few items out of the returned list and get the selected value of each. I tried using a for... | c# asp.net | [0, 9] |
5,780,832 | 5,780,833 | If a nested element fires an event, dont let the container handle it | <p>I have a div that contains another div.
If the user clicks the inner div I only want the eventhandler attached to this element get executed. Right now first the eventhandler of the inner element and then that of the outer element gets executed. Is there a way to change this?</p>
<pre><code> <html>
<he... | javascript jquery | [3, 5] |
3,840,434 | 3,840,435 | How do I add validation to a GridView field? | <p>I have gridview as follows:</p>
<pre><code><asp:GridView runat="server" ID="gvOverrideData" AutoGenerateColumns="false" AlternatingRowStyle-BackColor="LightGreen" Width="800" OnRowEditing="OverrideGrid_OnRowEditing" OnRowCancelingEdit="OverrideGrid_OnRowCancelingEdit" OnRowUpdating="OverrideGrid_RowUpdating">... | c# asp.net | [0, 9] |
1,945,859 | 1,945,860 | does python gives interactivity as javascript? | <p>I want to add interactivity like clicks, hover, onpage load() to a webpage, if i use python for generating xhtml, will python give essential flavors like javascript??</p>
<p>I'm bit confused and starter in python for web development, so is there need to include old javascript into python or the python only can hand... | javascript python | [3, 7] |
2,352,514 | 2,352,515 | Page_load in asp.net | <p>In asp.net, when working on web app, there is a function called 'Page_Load', which is empty. Is this called everytime the page is loaded? What if I remove this function? Essentially what is the main purpose of Page_Load? </p>
<p>Many Thanks.</p>
| c# asp.net | [0, 9] |
2,986,968 | 2,986,969 | how to get expiration date of local windows account? | <p>I need to create C# method like this :</p>
<pre><code> void deleteExpiredAccounts(String Account,dateTime expirationDate)
{
if(expirationDate == DateTime.Now)
{
DirectoryEntry localDirectory = new DirectoryEntry("WinNT://" + Environment.MachineName + ",computer");
DirectoryEntrie... | c# asp.net | [0, 9] |
5,758,725 | 5,758,726 | Dynamic Slidedown effect using jQuery reading data from a table | <p>I want to list some records from the table in a ASP.NET page. For each record, I want to display some data and at the same time, provide a button for them to click. I want to show a “CLICK TO VIEW BUTTON” If they click on the button, I want to have a box slide down (using jQuery) to display the other details for th... | asp.net jquery | [9, 5] |
736,245 | 736,246 | How to set the calendar dates unselectable accordingly to the dropdownlist users select? | <p>How do i set the calendar dates unselectable accordingly to the name in the DropDownList the users select? In other words, each name in the DropDownList will have different unselectable dates set and i tried to use the following codes to execute my program but it seems to be not working. How do i do so?</p>
<pre><c... | c# asp.net | [0, 9] |
1,555,390 | 1,555,391 | read values from form post in jquery or javascript | <p>i have a form which when submitted goes to login page of another site and After the authentication is verified, the user is redirected back to my site and i receive from post values of: TOKEN and Address information.</p>
<p>I want to get the TOKEN and address information sent in post on the page to which i am redir... | javascript jquery | [3, 5] |
3,196,794 | 3,196,795 | Use set values not random ones for these variables in JQuery? | <p>This demo creates markers at random points on map:
<a href="http://gmap3.net/examples/pan-to-markers.html" rel="nofollow">http://gmap3.net/examples/pan-to-markers.html</a></p>
<p>Whats the smallest modification I can make to the demo code so I can specify the longitude and latitude of the points instead of having t... | javascript jquery | [3, 5] |
3,989,633 | 3,989,634 | Authentication token storage | <p>I want to secure every call to my web service via a token.</p>
<p>first the user is authenticated and a authentication token is generated then the token is added to the http runtime and finally the token is then sent to the client (asp.net c# pages)</p>
<p>here is the problem: i want to send the token to every sub... | c# asp.net | [0, 9] |
1,788,001 | 1,788,002 | JavaScript - return false from function is not working? | <p>I m calling a javascript function on asp.net button client click and want to prevent post back. function works but it do not stop to be posted back. My Javascript is:</p>
<pre><code>function User2Check()
{
var user2id=document .getElementById("txtP2UserName");
var user2password=document .getElem... | javascript asp.net | [3, 9] |
589,684 | 589,685 | Jquery .live function suddenly not working anymore | <p>I was using jquery .live function to detect when the user was pressing some special keys (arrows, etc.): </p>
<pre><code>$('.TextBox1').live('keydown', function(e) {
var keyCode = e.keyCode || e.which;
if (keyCode == 40) {
e.preventDefault();
... | javascript jquery | [3, 5] |
1,242,966 | 1,242,967 | eval objects property | <p>i have the following two objects</p>
<pre><code>public partial class ProgramObj
{
public int id;
public PersonObj myPerson;
}
public class PersonObj
{
public int id;
public string full_name;
}
</code></pre>
<p>I am assigning a list of ProgramObj's to a repeater from a SqlDataReader</p>
<pre><code>progr... | c# asp.net | [0, 9] |
1,683,973 | 1,683,974 | Dynamically change an element's top position based on height | <p>I have three divs that are set to popup on li:hover using CSS. I want these divs to hover at the same level above their parent li regardless of the height of their content. In order to do so, I'm trying to use jquery to calculate the div's height, then set a negative top value equal to the height of the div. Here's ... | javascript jquery | [3, 5] |
5,300,281 | 5,300,282 | jQuery: Adding HTML inside a dynamic list | <p>Hi I have a piece of jquery that dynamically creates an unordered list:</p>
<pre><code>var get_url = "<?php echo base_url(); ?>index.php/notes/get/"+<?php echo $id;?>;
$.get(get_url, function(data) {
$.each(data,function(index, arr)
{
var opt = $('<li />');
opt.text(arr['body'])... | javascript jquery | [3, 5] |
4,932,494 | 4,932,495 | Creating a JQuery Modal Form | <p>I am new to JQuery. I am looking through the documentation and demos, but can't find an answer to what I'm looking for.</p>
<p>I have a button. Onlick, I would like to pass a 2 passes to a modal form. Onload, I would like the an AJAX call to start in the form. The AJAX call will return a json object from a PHP ... | javascript jquery | [3, 5] |
3,159,838 | 3,159,839 | Uncaught TypeError: Cannot read property 'top' of undefined | <p>I have some jQuery code like this</p>
<pre><code>$(document).ready(function(){
$('.content-nav a').on('click',function(){
var str = $(this).attr("href");
var the_id = str.substr(1);
$("#container").animate({ scrollTop: $(the_id).offset().top }, 1000);
});
});
</code></pre>
<p>When I ... | javascript jquery | [3, 5] |
1,284,392 | 1,284,393 | Problems with php var_dump | <p>I am trying to var_dump a string just to cross check that it contains all the checked options from a checkbox list. here is my code</p>
<pre><code> var checked = '';
$('.tblEmailSettings input:checkbox:checked')
.each(function(index,value){
checked += $(this).val(... | php javascript jquery | [2, 3, 5] |
2,868,914 | 2,868,915 | why get unexpected error? | <pre><code><?php
$title = $_POST['title'];
$date = $_POST['date'];
$time = $_POST['time'];
$channel = $_POST['channel'];
mysql_connect("localhost","root","");
mysql_select_db("imammuda");
$sql=mysql_query("insert into Program (ID, Title, Date, Time, Channel) values ('NULL', $title, $date, $time, $channel);
mysql_cl... | java php android | [1, 2, 4] |
71,988 | 71,989 | I have created a login for my asp applocation but evertime I login it does not redirect me to the secure folder | <p>When I login in my asp App I configured that it should take me to the Forms- Secure area. I added the role in the membership so that only Admin can see this option. But when I login with admin it requiers me to login again. Its like not recoginizing Im logged in.</p>
<p>THanks!!!!</p>
| c# asp.net | [0, 9] |
2,041,587 | 2,041,588 | Using JavaScript to Modify a Page on the Fly based on <select> contents | <p>So, I've got a form and within that form is a <code><select></code>. Based on what that select is(what <code><option></code> is selected), I want the contents of the form to change on the fly(i.e. before the user clicks anything else).</p>
<p>For example, if the user selects the <code>Photo Upload</code... | php javascript | [2, 3] |
4,547,923 | 4,547,924 | ASP.NET Default.aspx | <p>The resource cannot be found.</p>
<p>Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly. </p>
<p>Requested URL: /Customer/Reser... | c# asp.net | [0, 9] |
1,057,797 | 1,057,798 | jQuery + setTimeout() + clearTimeout() not working in IE7 & 8 | <p>This works in Firefox and Chrome but not in IE.</p>
<p>In Internet Explorer the timers are not being cleared out and it appears each time update_slideshow() is called a new timer is created.</p>
<pre><code>// slideshow params
var currentSlide = 1;
var numSlides = 4;
var pause = false;
function pause_show(bool){
... | javascript jquery | [3, 5] |
3,040,068 | 3,040,069 | java.lang.NoClassDefFoundError on android | <p>i am doing an application-email sending without user interaction. so that i got coding from the following <a href="http://stackoverflow.com/questions/2020088/sending-email-in-android-using-javamail-api-without-using-the-default-built-in-a/2033124#2033124">link</a>. here i got <strong>java.lang.NoClassDefFoundError</... | java android | [1, 4] |
5,664,928 | 5,664,929 | boost::python: compilation fails because copy constructor is private | <p>i use boost::python to wrap a C++ class. This class does not allow copy constructors, but the python module always wants to create one. </p>
<p>The C++ class looks like this (simplified)</p>
<pre><code>class Foo {
public:
Foo(const char *name); // constructor
private:
ByteArray m_bytearray;
};
</code>... | c++ python | [6, 7] |
2,027,784 | 2,027,785 | Develop an application Module wise in asp.net? | <p>How to develop an application in asp.net module wise In which we can add new module and remove existing module dynamically? Or
Suppose we create an asp.net web application. how to convert that application in an module so that the application will work as a module of another application. </p>
| c# asp.net | [0, 9] |
4,972,697 | 4,972,698 | DropDownList in my masterpage gets bind every time childpage loads - How can I avoid that binding? | <p>I have a DropDownList in Masterpage that I fill on Page_Load() event but when child page loads , this DropDownList is binding again because its in Page_Load() event and selected value in this list is lost. Is there any way I can avoid this repeated binding in Masterpage?</p>
<p>I'm passing the selected value from D... | c# asp.net | [0, 9] |
4,964,307 | 4,964,308 | Android horizontal text scroll - automatic and by gesture | <p>I'm relatively new to Android programming, and I need a control that holds text and scrolls automatically. Now, I know about the "marquee" in the TextView control and it works fine for what it's intended, but that approach has two problems.</p>
<p>1) I need the text to scroll regardless of its length, i.e. if the t... | java android | [1, 4] |
3,854,754 | 3,854,755 | How may I obtaining value of label element using substring in label's for attribute using jQuery? | <p>I am trying to obtain the value of label elements using jQuery (or javascript). The only search term I have is a substring of the label element's for attribute. In the example code shown below, this would be 'Okuku'.</p>
<pre><code><label class="required" for="Nigeria-Osun-Okuku">The Township of Okuku</lab... | javascript jquery | [3, 5] |
5,349,369 | 5,349,370 | ImageView getLocationtOnScreen android | <p>I am trying to get the coordinates of the image on the screen. I currently have an ImageView within an activity. I understand that the getLocationOnScreen() method can only be called once the layout has been created, so calling this method within the oncreate function would return [0,0]. But I do not know how to get... | java android | [1, 4] |
1,495,642 | 1,495,643 | How to add using keyword to multiple assignments | <p>My code is </p>
<pre><code> SqlDataAdapter adapter;
if (string.IsNullOrEmpty(Lk_proc))
{
using (adapter = new SqlDataAdapter("SELECT *fromtbl, _sqlConn))
{
adapter.SelectCommand.CommandType = CommandType.Text;
}
... | c# asp.net | [0, 9] |
3,549,426 | 3,549,427 | can not read object property in javascript | <p>Trying to hide the left / right navigation text by listening to object & its properties.</p>
<p>working example : <a href="http://jsfiddle.net/ylokesh/9EyEu/29/" rel="nofollow">http://jsfiddle.net/ylokesh/9EyEu/29/</a></p>
<p>But, getting following error " Uncaught TypeError: Cannot call method 'hide' of undef... | javascript jquery | [3, 5] |
2,031,620 | 2,031,621 | jQuery keeps adding display: block to my table row | <pre><code>var str = '<tr class="task_row"><td>data.name</td><td>data.description</td></tr>';
$(str)
.hide()
.insertAfter($(clicked_item)
.parent()
.parent()
.parent()
.next()
... | javascript jquery | [3, 5] |
2,593,002 | 2,593,003 | how to add and remove a class in jquery every 4 seconds | <p>for some reason, this isn't adding and removing a new class on elements with the class of post, every 4 seconds. jquery loads correctly, as does this. chrome shows no errors with the code.</p>
<pre><code>$(document).ready(function(){
$('.post').addClass('display').delay(4000).removeClass('display');
});
</code>... | javascript jquery | [3, 5] |
5,422,138 | 5,422,139 | Insert data into report viewer dynamically from code | <p>I have reportviewer control and want to insert data through c# code, how can i insert?</p>
| c# asp.net | [0, 9] |
2,676,748 | 2,676,749 | Pre load images from an ajax request before displaying them? | <p>I'm using jQuery to load html content which contains images, the problem is that i don't want the effect of blinking on images due to loading, to achieve that i need to pre load images inside the response body before inserting it to guarantee a smooth update.</p>
<p>Current Code:</p>
<pre><code>$.ajax({
url: 'hell... | javascript jquery | [3, 5] |
2,824,297 | 2,824,298 | How to pass multiple condition to find function in Jquery | <p>I want to pass multiple conditions to Jquery find function
e.g</p>
<pre><code>$(selector).find("input[type='text',id='txtId']") //this is not a right way
</code></pre>
<p>what is the solution? </p>
| jquery asp.net | [5, 9] |
3,677,106 | 3,677,107 | Checkbox won't change value with javascript | <p>I have 2 check boxes where only one or none may be checked.
Since I can't do a postback I tried this with Javascript.
The Javascript finds the element (tested it with an alert).
But the value won't change.</p>
<p>Any Idea how I can do this with Javascript?</p>
<p>The Javascript:</p>
<pre><code>function mrcAndNbbF... | javascript asp.net | [3, 9] |
2,131,870 | 2,131,871 | jQuery trigger action when a user scrolls past a certain part of the page | <p>Hey all, I need a jQuery action to fire when a user scrolls past certain locations on the page. Is this even possible with jQuery? I have looked at .scroll in the jQuery API and I don't think this is what I need. It fires every time the user scrolls, but I need it to fire just when a user passes a certain area.</p>
| javascript jquery | [3, 5] |
1,084,532 | 1,084,533 | Confused about global variable not updating | <p>I have the following code:</p>
<pre><code>var clickCount = 1;
var slideCount = $('div.slide').length;
$('a#next-button').click(function() {
if(clickCount < slideCount) {
$('div.slide').animate({"left":"-=" + slideWidth}, 'slow');
clickCount = clickCount + 1;
}
});
$('p').text(clickCount... | javascript jquery | [3, 5] |
2,992,394 | 2,992,395 | jQuery tab and tab content show up when clicked ? | <p>My webpage is at <a href="http://www.sarahjanetrading.com/js/resume" rel="nofollow">http://www.sarahjanetrading.com/js/resume</a></p>
<p>All the HTML, CSS and jQuery code + images are available there for anyone to access.</p>
<p>My issue is that currently my jQuery code makes the tabs show the tab-content when I c... | javascript jquery | [3, 5] |
4,459,827 | 4,459,828 | how to use update in detail view | <p>There is button Update in detail veiw which automatically transform the column to textbox can any body tell me where to code the update code;in .aspx or in .aspxcs</p>
| c# asp.net | [0, 9] |
2,162,002 | 2,162,003 | Change MenuItem text in ASP.NET / C# | <p>I have an ASP Menu like this:</p>
<pre><code><asp:Menu ID="NavigationMenu" runat="server"
EnableViewState="False" IncludeStyleBlock="False"
Orientation="Horizontal" meta:resourcekey="NavigationMenuResource1">
<Items>
<asp:MenuItem NavigateUrl="~/Default.aspx" Text="<% MenuIt... | c# asp.net | [0, 9] |
5,634,694 | 5,634,695 | javascript working in firefox or crome not ie | <p>I have the following lines of code in my .js file</p>
<pre><code>$(triggers.restart).live('click', function (e) {
e.preventDefault();
plugin.method.startQuiz(this);
});
</code></pre>
<p>The code is working fine in firefox or chrome but not in ie. Any points??</p>
<p>Thanks in advance...</p>
| javascript jquery | [3, 5] |
5,862,510 | 5,862,511 | Converting toggleClass('hidden') to .toggle() with animation | <p>My first implementation of my personal learning project of dynamically generated webpages and JQuery project utilized checkboxes and toggle("slow") and toggle("fast"). However, being new to CS altogether, managing the state of checkboxes got q bit complex for my first project. So I switched solely to <code><lab... | javascript jquery | [3, 5] |
29,848 | 29,849 | Can we get the return value of a PHP file from ASP.NET? | <p>My company currently has a Linux server setup with a basic site that uses PHP to process some files and return data to the user.</p>
<p>Eventually, my boss wants me to remake it in .NET. But first, he wants me to just create a frontend for the PHP files.</p>
<p>It looks like all of the PHP files take parameters a... | php asp.net | [2, 9] |
2,341,386 | 2,341,387 | jQuery value to name | <p>In jQuery I have a dropdown called <code>#selected_studio</code>. In that drop one I have a <code><option></code> with <code>value="studio_17</code> and says <code>Testing...</code> if you look at the drop down in the browser. I want to read the "Testing..." text no matter if selected or not, just by knowing t... | javascript jquery | [3, 5] |
5,167,389 | 5,167,390 | how to read javascript array in php | <p>I'm trying post a javascript array using jquery $.post method to php and use array values in mysql query.</p>
<pre><code>$.post("test.php", { 'celvalues[]': celValues }});
</code></pre>
<p>where values for array celvalues is assigned.
So how to read this array in php?</p>
| php jquery | [2, 5] |
4,396,745 | 4,396,746 | Scan a file folder in android for file paths | <p>So i have a folder at "mnt/sdcard/folder" and its filled with image files. I want to be able to scan the folder and for each of the files that is in the folder put each file path in an arraylist. Is there an easy way to do this?</p>
| java android | [1, 4] |
3,631,373 | 3,631,374 | detect new notification jquery | <p>JS:</p>
<pre><code>$(function() {
$('.click_hide li').click(function() {
var $list = $("ul.system_messages"),
$this = $(this);
$this.slideUp('fast', function() {
$this.remove();
});
});
$('.click_show li').click(function() {
if ($('.click_hide li').is(":visible")) {
$('.c... | php jquery | [2, 5] |
3,593,512 | 3,593,513 | Some rendering issues with jQuery's .animate() | <p>I have some CSS that renders correctly normally when it's not being animated but doesn't render correctly when animated. Some clipping that should occur does not during the animation but snaps back as soon as it finishes.</p>
<p><img src="http://i.stack.imgur.com/cD8Rp.png" alt="enter image description here"></p>
... | javascript jquery | [3, 5] |
4,802,085 | 4,802,086 | Splitting text file in android | <p>I am developing an android app and i need it to read a text file. Once it has read the text file I need to <code>save certain parts</code> to a database.
The text file contains the following:</p>
<pre><code>Title - Hello
Date - 03/02/1982
Info - Information blablabla
Title - New title
Date - 04/05/1993
Info - New... | java android | [1, 4] |
2,933,081 | 2,933,082 | Copy File in local Network | <p>This is a web application
I have 2 pc's: A: 192.168.1.200 and B: 192.168.1.201, I want copy from A to B, this code working is single pc, but it's not working in network.</p>
<pre><code>protected void Button1_Click(object sender, EventArgs e)
{
string sourcePath = @"D:\Source\";
string[] filePaths = Direc... | c# asp.net | [0, 9] |
2,261,089 | 2,261,090 | jQuery fadeIn/fadeOut race conditions? | <p>I'm trying to handle a menu, where when you hover over an item, a box fades in, another item, another box fades in:</p>
<pre><code>$( '.all' ).fadeOut( 'fast', function() { $( '#item' ).fadeIn( 'fast' );
</code></pre>
<p>but sometimes when you use the mouse too fast, multiple things show up or everything goes bye ... | javascript jquery | [3, 5] |
2,254,430 | 2,254,431 | android:how to get javascript executed html on javacode? | <p>I want to get html from web-site to parse. But i don't have any good ways. I tried
selenium, but it can't run on android without erroring.</p>
<p>htmlunit/ is also. Webview/ i want not to appear the browser. so i set view.GONE to webview.
then how to get html from webview?</p>
<p>Please teach me good way to g... | javascript android | [3, 4] |
1,954,268 | 1,954,269 | ~ 'MachineToApplication' beyond application level ~ What does this error means? | <p>What should i do when this error prompt my screen</p>
<p>In VS2008 Express Edition</p>
<ol>
<li>C:\Users\ami\Desktop\MyAddressBookasd\MyAddressBook\UpdateTheRecord.aspx: ASP.NET runtime error: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error... | c# asp.net | [0, 9] |
5,381,428 | 5,381,429 | Object ... has no method 'append' -Need help quick | <p>I am currently attempting to write a function that applies unique ids to list item dynamically by ticking checkboxes, though I have encountered a problem, when appending the unique id to the list item I get the following error message in the console:</p>
<pre><code>Uncaught TypeError: Object SpTU 4, 183:false<br... | javascript jquery | [3, 5] |
4,238,339 | 4,238,340 | Get jQuery slider values from DB | <p>I have a database with these tables</p>
<pre><code>company
==========
id | name |
==========
1 | C1 |
2 | C2 |
3 | C3 |
position
=================
id | level | name |
==================
1 | 1 | SE |
2 | 2 | SE1 |
3 | 3 | SE2 |
4 | 1 | SA |
5 | 2 | SA1 |
3 | 3 | SA2 ... | javascript jquery | [3, 5] |
5,289,559 | 5,289,560 | A jQuery 'if' condition to check multiple values | <p>In the code below, is there a better way to check the condition using jQuery?</p>
<pre><code>if(($('#test1').val() == 'first_value')||($('#test2').val() == 'second_value') && ($('#test3').val()!='third_value')|| ($('#test4').val()!='fourth_value'))
</code></pre>
| javascript jquery | [3, 5] |
4,654,558 | 4,654,559 | Finding CheckBox control in Gridview | <p>I have two template fields in my data gridview. One template field is a CheckBox with ID="AttendanceCheckBox" and the other template field is a Label which is bind to the StudentID field in the Student Table.</p>
<p>What is the C# code for finding the CheckBox in the Gridview?
Also I need to add the value (StudentI... | c# asp.net | [0, 9] |
996,953 | 996,954 | Hover over image to get popup with Flash player embedded with .NET | <p>Not sure if this is possible but here is what I would like to do:</p>
<p>I have a dropdown list and when a user selects an item i would like to show a thumbnail of document. Easy enough.</p>
<p>Now when a user hovers over the document I would like to show a small popup that could display the actual document. The p... | asp.net jquery | [9, 5] |
5,800,889 | 5,800,890 | How should I convert Java code to C# code? | <p>I'm porting a Java library to C#. I'm using Visual Studio 2008, so I don't have the discontinued Microsoft Java Language Conversion Assistant program (JLCA).</p>
<p>My approach is to create a new solution with a similar project structure to the Java library, and to then copy the java code into a c# file and convert... | c# java | [0, 1] |
687,912 | 687,913 | How to access a string using a dynamic string name in android (similar to eval in javascript)? | <p>I'm trying to access string variables using dynamic names depending on what position my gallery is at. To get the value of a string using a fixed name I use the following which is fine (the string is called pic1info):</p>
<pre><code>String strTest = getResources().getString(R.string.pic1info);
</code></pre>
<p>M... | java android | [1, 4] |
2,173,166 | 2,173,167 | Compare jQuery Arrays with multiple DOM elements | <p>Consider this:</p>
<pre><code><div class="test">one</div>
<div class="test">two</div>
<script>
var i1 = $('.test');
var i2 = $('.test');
console.log( i1 == i2 );
console.log( i1 === i2 );
console.log( i1.is(i2) );
</script>
</code></pre>
<p>They all print <strong>false</stro... | javascript jquery | [3, 5] |
2,654,010 | 2,654,011 | jQuery bind all events on object | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/5848598/how-all-events-of-dom-element-can-be-bind">How all events of dom element can be bind?</a> </p>
</blockquote>
<p>I have an object that gets events triggered against it.</p>
<p>How do I bind all the event... | javascript jquery | [3, 5] |
43,849 | 43,850 | Closing Navigation onClick of any area of the screen | <p>I have a dropdown navigation which opens onClick.</p>
<p>What I want to happen is, that once the ul is open, I want it to close whenever the user goes to open any of the other dropdowns or clicks anywhere away from the dropdown.</p>
<p>At the moment, You have to specifically click the parent li to close the dropdo... | javascript jquery | [3, 5] |
1,922,177 | 1,922,178 | Escaping single-quotes javascript | <p>I think the below problem is something to do with escaping strings, but i'm hoping someone will confirm that.</p>
<p>i need to append event.id to the submit value like so: /Events/Edit/ + event.id. There is definitely content in the event.id property as it displays correctly the second time i use it.</p>
<pre><c... | javascript jquery | [3, 5] |
4,314,180 | 4,314,181 | adding two ranges with range number to Drop Down List | <p>I am getting Range1 and Range2 from database. Dataset is like below.</p>
<p>Range1 Range2 </p>
<p>AB100 XY200</p>
<p>AB300 XY400</p>
<p>AB500 XY600</p>
<p>I have to bind these ranges to a Drop Down List as list items includung range number in my application.</p>
<p>So list item should be l... | c# asp.net | [0, 9] |
3,059,061 | 3,059,062 | Check if first time someone goes to asp.net website? | <p>Hello I am creating a basic counter that adds +1 everytime someone accesses the website. The problem is it adds 1 everytime someone goes to another page on the site, not when the person goes to the site for the first time, making the data very inaccurate (ex. One user that accesses the site may go to 8 different pag... | c# asp.net | [0, 9] |
3,215,237 | 3,215,238 | JQuery : Add row after the third row of a table | <p>I have a string as 'new row'.I have a table which as 5 rows.I want to add this string after the third row of my table.How i do this using jQuery or javasript. </p>
| javascript jquery | [3, 5] |
5,431,823 | 5,431,824 | How do I bind a "data appended" event in js / jquery? | <p>At the moment, I have a piece of code looking like this:</p>
<pre><code>$("#somediv").append(data);
somethingToDoAfterDataAppended();
</code></pre>
<p>It seems that the data is appended asynchronously, therefor the next function is not necessarily invoked after data is actually appended.</p>
<p>I was thinking abo... | javascript jquery | [3, 5] |
5,392,847 | 5,392,848 | how do i use a class without instantiating it? | <p>I have class:</p>
<pre><code>static class GetRole
{
public static string OfUser(string username)
{
string result="None";
foreach (string key in WebConfigurationManager.AppSettings)
{
if (WebConfigurationManager.AppSettings[key].Contains(usernam... | c# asp.net | [0, 9] |
3,081,107 | 3,081,108 | ASP.NET c# get screen width in pixels | <p>I am trying to retrieve width of my browser in pixels but for some reason I am getting back 640, my resolution is at 1240.</p>
<p>Code I am using is <code>Request.Browser.ScreenPixelsWidth</code></p>
<p>Does anyone knows why it returns 640 always or if there is another way for me to get the width of the browser up... | c# asp.net | [0, 9] |
2,114,149 | 2,114,150 | Pass 2 arguments to check box | <p>In <a href="http://www.cleancode.co.nz/blog/279/checkbox-repeater-event-handling-argument" rel="nofollow">this</a> example they are passing only 1 argument. Wat if I wanna pass two ?</p>
<p>When I was using Link Button I was using the two Command arguments like <a href="http://stackoverflow.com/questions/4263489/ne... | c# asp.net | [0, 9] |
4,749,974 | 4,749,975 | Custom System.Collections.Generic.Contains For Testing Custom Object | <p>How can I rewrite or is there a way to writing my own custom function that simulates the Custom System.Collections.Generic.Contains but only factors in certain Public Properties of a Custom Object?</p>
<p>For example if I have a custom Object with Properties Name and ID, I would like my Unique Value List to contain... | c# asp.net | [0, 9] |
3,107,068 | 3,107,069 | jquery how to observe any change in the dom for a specific selector | <p>I have a function that looks for the existence and count of the class .dirty on a webpage. It would have to start at a certain point but at that point, I'd like for jQuery to observe for css changes in the DOM and rerun this function. Is this possible? Could I use <code>on()</code> for this? Like:</p>
<pre><code>$(... | javascript jquery | [3, 5] |
3,357,775 | 3,357,776 | Pre render event in asp.net | <pre><code>protected void rgStateTax_PreRender( object sender, EventArgs e )
{
if( rgStateTax.MasterTableView.IsItemInserted )
{
foreach( GridItem item in rgStateTax.Items )
{
item.Visible = false;
}
}
if( rgStateTax.EditItems.Count > 0 )
{
foreach( Gr... | c# asp.net | [0, 9] |
4,169,123 | 4,169,124 | Radio button does not return selected value | <p>i am using radio button list control in asp.net.
i m trying to get selected value on button click Event
but,i m getting <code>Empty string</code> and i want it without javascript.</p>
<p>How can i do this?</p>
<pre><code><asp:RadioButtonList ID="RadioButtonList1" EnableViewState="true" runat="server"
Wid... | c# asp.net | [0, 9] |
3,301,448 | 3,301,449 | my simple animate function not working | <p>my html is:</p>
<pre><code><html>
<body>
<button id="widthPlus">increase </button>
<div id="bod"> hai </div>
<img id="tree" src="http://www.rangde.org/newsletter/nov11/images/real_tree.png" width="350"/>
</body>
</html>
</code></p... | javascript jquery | [3, 5] |
473,560 | 473,561 | Scrolling to bottom of the page when link clicked? | <p>I am opening jQuery dialog when a link is clicked. Dialog is opening fine, but the page is scrolling down to page so I can't see the dialog until I scroll up. How to can I avoid this?</p>
<pre><code><script language="javascript" type="text/javascript">
$(document).ready(function () {
jQuery("#... | c# javascript jquery asp.net | [0, 3, 5, 9] |
1,460,900 | 1,460,901 | How to replace preview of post with full content using jQuery / Javascript? | <p>In a php variable <code>$preview</code> I save about 4 lines of a post without any tags. In the <code>$full</code> I save full of the post with tags.</p>
<p>This is what I used to have, an expand/collapse toogle <a href="http://fiddle.jshell.net/r4F8Q/22/" rel="nofollow">http://fiddle.jshell.net/r4F8Q/22/</a> when ... | javascript jquery | [3, 5] |
3,436,431 | 3,436,432 | Not able to load certain part of page using jquery | <p><p>Hi, I have a html page with a div tag that is being populated dynamically using javascript. Now, I have to open only the contents of the div tag in another page and I am not able to do that. I have tried using iframes, jquery load etc. but nothing is working.<br/>Either the whole page is displayed or the empty di... | javascript jquery | [3, 5] |
471,710 | 471,711 | ASP.net saving hidden divs state | <p>I have a hacked up drop down box which displays and hides certain divs.</p>
<pre><code><div id="dropDownMenu" onclick="showMenu();">Option 2
<ul>
<li onclick="showDiv('div1');">Option 1</li>
<li onclick="showDiv('div2');">Option 2</li>
<li onclick="showDiv('div3'... | javascript asp.net | [3, 9] |
2,156,818 | 2,156,819 | What's the opposite of jQuery `.get()`? | <p><code>.get()</code> converts a jQuery object to a DOM element that Javascript can use without jQuery.</p>
<p>If I have a DOM element, how can I convert it to a jQuery object?</p>
| javascript jquery | [3, 5] |
5,307,239 | 5,307,240 | Access an asp:hiddenfield control in JavaScript | <p>What is the best way to access an ASP.NET HiddenField control that is embedded in an ASP.NET PlaceHolder control through JavaScript? The Visible attribute is set to false in the initial page load and can changed via an AJAX callback.</p>
<p>Here is my current source code:</p>
<pre><code><script language="javas... | asp.net javascript | [9, 3] |
615,515 | 615,516 | How do i split into a block of 3? | <p>I want to separate a set of 3 numbers with a comma and set the value to a textarea, i have tried this but it just brings the values concatenated like this "5.685.685.85", i want it to appear like this "5.68, 5.68, 5.85"</p>
<pre><code>var once = window['tma'+kj].toFixed(2);
for (var li=0; li<once.length; ++li) {... | javascript jquery | [3, 5] |
4,191,996 | 4,191,997 | How does Android accelerometer (Java in general) handles call back listeners? | <p>This question is basic for Java, not android. If the code that is inside listener interface does some complex calculations, what happens for callbacks given by the system. In Android accelerometer readings are collected in onSensorChanged(SensorEvent event).
If I want to process "event" data and that its called arou... | java android | [1, 4] |
4,759,550 | 4,759,551 | Can't seem to access image files and other files in an ASP.net solution | <p>I have a page file with an Ultrawebgrid that has an image on its cell. The source of that image is located on a folder which is still part of the solution. However, when I have set its location and execute the program, all it displays is the error image (x). I have checked and validated that the image is still on th... | c# asp.net | [0, 9] |
2,312,083 | 2,312,084 | How would you tackle this php/mysql | <p>I am building a dynamic (food) menu system for a website. Users will be able to add and remove menu items as they like and alter price etc. If the menus were static then I would have a static form for example </p>
<pre><code><form id="order_form" action="order.php" method="POST" class="form">
<ul>
<l... | php javascript | [2, 3] |
2,477,361 | 2,477,362 | How to handle AsyncTask failure | <p>Is there a specific way to handle failure in an AsyncTask? As far as I can tell the only way is with the return value of task. I'd like to be able to provide more details on the failure if possible, and null isn't very verbose.</p>
<p>Ideally it would provide an onError handler, but I don't think it has one.</p>
<... | java android | [1, 4] |
5,024,078 | 5,024,079 | Which one is better performance to use for .click in the below list | <blockquote>
<p>Please vote for me which one in the below list is better?</p>
</blockquote>
<p>I have HTML:</p>
<pre><code><div id="container">
<button class="btn">Click Here 1</button>
<button class="btn">Click Here 2</button>
<button class="btn">Click Here 3</but... | javascript jquery | [3, 5] |
4,729,768 | 4,729,769 | JS/jQuery: how many character occurance in textarea | <p>Assuming:
str value = 'This is some text';</p>
<p>I want to count how many 't' occurrences, how to do that?</p>
| javascript jquery | [3, 5] |
4,064,160 | 4,064,161 | android post https request through HtttpClient apache | <p>I've created complete method that executes https and returns an answer as a string.</p>
<pre><code> public static String makeHttpsRequest(String url) throws ClientProtocolException, IOException {
SchemeRegistry schemeRegistry = new SchemeRegistry();
schemeRegistry.register(new Scheme("https", SSLSocketFa... | java android | [1, 4] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.