Unnamed: 0 int64 302 6.03M | Id int64 303 6.03M | Title stringlengths 12 149 | input stringlengths 25 3.08k | output stringclasses 181
values | Tag_Number stringclasses 181
values |
|---|---|---|---|---|---|
1,288,205 | 1,288,206 | jQuery reset buttons | <p>I have a player I am working with that has the ability to add JS event listeners so that you can control the player using jQuery or any other method of JS.</p>
<p>I have a bunch of play buttons in a list next to a list of audio files. When one clicks the play button, the play button hides and a pause button appears... | javascript jquery | [3, 5] |
566,608 | 566,609 | How do I listen for specific button presses, and home view user interactions? | <p>My application listens for user input from the touchscreen and the buttons, but I would like to listen for interaction with specific items in the homescreen view. So, for example, I need to listen for the user to tap the menu button, and then to produce output. Is there a paramater I can pass through the onClick()... | java android | [1, 4] |
4,500,455 | 4,500,456 | Combat system in JQuery | <p>i would like to create a pretty simple combat system in JQuery, for a browser game. The idea is that i have combat statistics ( i already have that ), and i want to represent them back to the user in a nice graphical manner.</p>
<p>If you have played the game shakes and fidget, you can already see what i'm asking. ... | javascript jquery | [3, 5] |
4,499,520 | 4,499,521 | jQuery select by input name | <p>I have this input:</p>
<pre><code><tr><td class="forms">Price:</td><td><input type="text" name="price" size="30"/></td></tr>
</code></pre>
<p>How can I call this input?</p>
<p>Example: With this code I call to the id:</p>
<pre><code>$("#numberclasses").change(function() ... | javascript jquery | [3, 5] |
1,523,506 | 1,523,507 | How to create public and private members? | <p>I'm a bit confused, how can I create public and private members.</p>
<p>My code template so far is like:</p>
<pre><code>(function()){
var _blah = 1;
someFunction = function() {
alert(_blah);
};
someOtherFunction = function() {
someFunction();
}
}();
</code></pre>
| javascript jquery | [3, 5] |
4,777,864 | 4,777,865 | Making Properties of a object as Nullable type? | <p>Is that a good practice when i need to pass DBnull by properties.To make them as a nullable type. Cause when we need to Pass Null value to Backend by our Variables.We made them as Nullable.But is This okay With Properties also.</p>
| c# asp.net | [0, 9] |
2,393,428 | 2,393,429 | ASP.Net - Call Method from markup that includes data-binding | <p>I have a user control in C# in ASP.NET. This user control has a method in the code-behind that is defined as follows:</p>
<pre><code>protected string GetGreeting(string name)
{
if (String.IsNullOrEmpty(name))
{
return "Hello";
}
else
{
return "Hello " + name;
}
}
</code></pre>
<p>My markup look... | c# asp.net | [0, 9] |
823,322 | 823,323 | How do i only allow a text box to only have numbers and the following percent symbol? | <p>I am currently building an application and I want a javascript or jquery condition that only allows numbers to be entered into the text box and/or the following percent but i am not sure how to obtain this... I found <a href="http://stackoverflow.com/questions/469357/html-text-input-allow-only-numeric-input">this</a... | javascript jquery | [3, 5] |
4,661,601 | 4,661,602 | Issue, echoing HTML with script in it, in need of third ' " | <pre><code><?php
echo '
<input type="file" name="image_path" style="visibility:hidden;" id="image_file">
<div class="input-append">
<input id="photoCover" class="input-large" type="text">
<a class="btn" onclick="$('input[id=image_file]').click();">Browse</a>
</div>
<sc... | php javascript | [2, 3] |
2,923,732 | 2,923,733 | Unordered List item <Li>'s not able to retain class when given programatically | <p>Asalamualikum(May Peace be on you) , My Problem is that I am trying to change the class of li item when its item is clicked . I succeed in that but problem is that class is given to li item but its not able to retain class.</p>
<p>My html and jquery is like this </p>
<pre><code>$(document).ready(function () {
... | jquery asp.net | [5, 9] |
5,023,792 | 5,023,793 | jQuery - text field value change after jquery auto complete select event | <p>Simple text field change after jquery auto complete select event. I want to split the data and display it in other text fields. I am trying this. This doesn't change any values at all. What do I need to change here? </p>
<pre><code>$(function() {
$("#term").autocomplete({
source: function (request, response) ... | javascript jquery | [3, 5] |
3,069,980 | 3,069,981 | select loses focus when mouse is over options | <p>I am trying to do a hover effect as follows:</p>
<pre><code><div>Some Text</div>
</code></pre>
<p>should be substituted by a <code><select></code> upon mouseover. as soon as the mouse leaves that select it should display either the value previously displayed or the new selected value.</p>
<p>Unf... | javascript jquery | [3, 5] |
847,242 | 847,243 | Web Application Architecture (ASP.NET 3.5,JavaScript) | <p><strong>hey all ,</strong></p>
<p>background -</p>
<p>I'm using an activx that allow me to access some information on the client side,</p>
<p>By using the activex events and callback i'm updating server side from client.</p>
<p>i wrote a user control that register all activex's events so when one of the events o... | asp.net javascript | [9, 3] |
181,093 | 181,094 | accessing an id within another id jquery | <p>Here's what I'm trying to do. I'm trying to get a block of code written in div then modify some of the div/id to different names and so I can send them to the form with unique names. Any ideas on how to do this?
My idea right now is to first set the variable to to the div that I'm copying then access the other div's... | javascript jquery | [3, 5] |
2,539,325 | 2,539,326 | Android 1.5/1.6 issue with style and autogenerated R.java file | <p>I'm having strange issue with R.java file and styles defined in my resources.</p>
<p>Here's some code:</p>
<p>In res/values/strings.xml:</p>
<pre><code><style parent="android:Theme.Dialog" name="PopupWindowStyle">
<item name="android:windowBackground">@drawable/bg1</item>
<item name="android:... | java android | [1, 4] |
4,381,676 | 4,381,677 | How do I access public properties when sharing webforms codebehind for user control | <p>I am trying to make an ascx control that can be templated by our front-end developers by just making a new .ascx and pointing to that specific .ascx in that instance. However, I am having issues with accessing properties in shared code-behind scenarios.</p>
<p>I have the following code behind that's shared</p>
<p... | c# asp.net | [0, 9] |
5,084,206 | 5,084,207 | Checkbox onChange submit problem if checked | <p>The purpose is to have a checkbox, that if clicked, will send via post where I will update the db. The user can check back and forth to set or unset active status.</p>
<p>This works perfectly:</p>
<pre><code><form name='form".$value['id']."' action='./filter_edit.php' method='post'><input type='checkbox' ... | php javascript | [2, 3] |
1,890,149 | 1,890,150 | Multiple document.write from external scripts | <p>I have a URL that generates a document.write method that inserts another JS.</p>
<p>Example:</p>
<pre><code>http://domain.com/scriptONE.js
</code></pre>
<p>Generates</p>
<pre><code>document.write('http://domain.com/scriptTWO.js');
</code></pre>
<p>How can I use jQuery to insert the second document.write to a di... | javascript jquery | [3, 5] |
457,546 | 457,547 | jQuery PHP Refresh Content | <p>I'm looking for a way of refreshing a PHP include using jQuery.</p>
<p>I had a go but needed to re-include the database config file which isn't what I wanted.</p>
<p>Is there a nice easy way of including and auto refreshing a file every 10 seconds?</p>
<p>Any help would be great,</p>
<p>Thanks!</p>
| php jquery | [2, 5] |
4,696,877 | 4,696,878 | I am unable to use crystal report? | <p>I am unable to use crystal report?
i have a file crystalreport1.rpt and a crystalreportviewer.</p>
<p>I am unable to create the object of crystalreport1.rpt.</p>
<p>crystalreport1 cr=new crystalreport1(); //not able to create object of crystalreport1.rpt</p>
<pre><code> //CrystalReportViewr1.ReportSource = ds;
... | c# asp.net | [0, 9] |
516,452 | 516,453 | Using Javascript/JQuery and getting undefined var when the page loads | <p>I have this Javascript/JQuery code:</p>
<pre><code><script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script type="text/javascript">
name = $("#name").val();
alert("Name: " + name);
</script>
</code></pre>
<p>And this ... | javascript jquery | [3, 5] |
3,568,514 | 3,568,515 | How prevent click event? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/4589964/jquery-disable-click">jquery - disable click</a> </p>
</blockquote>
<p>How can I prevent a click event of a button's selector when is pushed? If there are some buttons. I want to lock the event of the bu... | javascript jquery | [3, 5] |
4,841,919 | 4,841,920 | Prevent users to click RadioButton | <p>In my form I have some TextBoxes. Once the value of TextBox is changed then corresponding RadioButton will be selected. But I want to prevent users from changing the value of RadioButton.
I tried disabling like this.</p>
<pre><code> optA.Attributes.Add("disabled", "disabled");
</code></pre>
<p>But this script gre... | javascript asp.net | [3, 9] |
5,306,965 | 5,306,966 | Why does jQuery.fn display [] in the console? | <p>I am trying to understand how jQuery is coded. </p>
<p>They have an object:</p>
<pre><code>jQuery.fn = {
//key value pairs
}
</code></pre>
<p>But if I type <code>jQuery.fn</code> in the browser console, it just returns <code>[]</code> and not the object itself. Does anyone know why?</p>
| javascript jquery | [3, 5] |
5,790,413 | 5,790,414 | Writing on SDCard Problem - Android | <p>I'm trying to write a file to my SDcard in my HTC Hero phone. I create the File in my SDCard using:</p>
<p>File = new File(path.getAbsolutePath(), "Filename.txt");</p>
<p>where path is the path to my externalStorageDirectory (i.e. \sdcard)</p>
<p>When I log the path of this file, it does say \sdcard\filename.txt<... | java android | [1, 4] |
1,607,666 | 1,607,667 | jQuery/Javascript - how to detect that image was re-loaded | <p>I have a several actions that can be taken on the screen that would cause image to be re-loaded via Ajax call (non-jQuery). I need a way to detect that image has been reloaded so that I can attach event handler to the image again. How can I do this?</p>
| asp.net javascript jquery | [9, 3, 5] |
6,000,627 | 6,000,628 | Dynamic creation of divs | <p>I want to create dynamic divs in a ASP.NET application.</p>
<pre><code>protected void Page_Load(object sender, EventArgs e)
{
List<produkt> produkte = Repository.GetProductsRanged(0, 9).ToList();
}
</code></pre>
<p>As you can see, there is a of products (10 elements) and I want to put some of there attri... | c# asp.net | [0, 9] |
2,747,368 | 2,747,369 | ASP.net form getting JS error | <p>I have an ASP.NET form (C#) but which I click this button that should execute a JS method I get the error "Microsoft JScript runtime error: 'document.getElementById(...)' is null or not an object"</p>
<p>This is odd because it should work:</p>
<pre><code> <asp:LinkButton ID="btnDriverPopulate" ru... | javascript asp.net | [3, 9] |
252,461 | 252,462 | JQuery Progress bar implementation | <p>I found this Jquery progress bar function and I want to simply use it to show the progress bar while my web page is loading. Since my page is loading a bit slow, it serves as a reminder to the user that the page hasn't stopped loading. Below is the javascript and css part. Now how to implement it in the html part? W... | javascript jquery | [3, 5] |
1,984,521 | 1,984,522 | Android - Remove data from SDCard | <p>My application use the SDCard to store data (about 100 Mb of stuff). I would like to delete these file when the application is deleted through the application manager and offer a way to clear the data from there (like the Google Apps does). Any ideas ? </p>
| java android | [1, 4] |
5,476,092 | 5,476,093 | jQuery function not working on one page only | <p>Hi I have a smooth scrolling jQuery function that works on all pages but one. The link to the page that does not work is below. The blue 'Free Tests' link in the subnav is the one not working. Has anyone had this odd problem before, and what could be causing it?</p>
<p><a href="http://tinyurl.com/c364wwx" rel="nofo... | javascript jquery | [3, 5] |
141,970 | 141,971 | Invoking a method when the back button is pushed on Android | <p>I am programming an Android application. I would like to invoke a certain method once the user pushes the "back" button. I want the program to work on all versions of Android, so I cannot use onBackPressed(). I tried the following piece of code (in the class MyView extends View):</p>
<pre><code>@Override
public boo... | java android | [1, 4] |
3,718,392 | 3,718,393 | $(window).bind('hashchange', function () -- advice needed | <p>does this look like the best way to get the #value out of the url on change, it does work but just wondering if there was a better way.</p>
<pre><code>$(function () {
$(window).bind('hashchange', function () {
var hash = window.location.hash;
var map = {
one: 1,
two: 2,
... | javascript jquery | [3, 5] |
1,203,441 | 1,203,442 | Is there a way to find a matching element in two arrays? | <p>I have two arrays of strings :</p>
<pre><code>"bob marley", "bob dylan", "bob harris"
</code></pre>
<p>and</p>
<pre><code>"alfred hitchcock", "matt damon", "bob marley"
</code></pre>
<p>How would I compare these two arrays and find that Bob Marley exists in both?</p>
| javascript jquery | [3, 5] |
3,650,627 | 3,650,628 | Adding values of multiple text box values | <p>I have multiple text boxes with a class name <code>.paymentamount</code>.i want to add all values of text boxes of the same class but i am getting error nan.Code is this</p>
<pre><code>function paymentData()
{
$('.paymentamount').keyup(function(){
var amountSum=0;
$('.paymentamount').each(functi... | javascript jquery | [3, 5] |
6,033,435 | 6,033,436 | jQuery not working in Chrome and IE | <p>I'm working on a Wordpress theme.
On the header I check if this is the first visit (the user just entered the website).</p>
<p>If this is the first visit, an animation appears. Animation = a sidebar appears in the middle of the page, in some miliseconds it opens and the page appears.
In the code, ub_sb_closed_on_hp... | php javascript jquery | [2, 3, 5] |
3,234,732 | 3,234,733 | How do you access the DOM node in jquery inside of a javascript variable? | <p>I have the following html</p>
<pre><code><div id="list_item_template"><li><a href="#">Text</a></li></div>
</code></pre>
<p>and javascript:</p>
<pre><code>var item = $("#list_item_template").clone();
</code></pre>
<p>What I want to do is access the inner <code><a></code> ... | javascript jquery | [3, 5] |
4,649,429 | 4,649,430 | jquery how to combine two selectors to second function of single toggle event | <p>If I have a regular toggle function bound to a click event</p>
<pre><code>$('#work-content a').toggle(
function() {
// first click stuff
}, function() {
// second click stuff
}
);
</code></pre>
<p>But, I also need to bind <code>$(document).click</code> event to the second function someh... | javascript jquery | [3, 5] |
4,780,337 | 4,780,338 | How do i make a allocation table? | <p>I have build a grid of div's as playground for some visual experiments. In order to use that grid, i need to know the x and y coordinates of each div. That's why i want to create a table with the X and Y position of each div.</p>
<p>X:0 & Y:0 = div:eq(0), X:0 Y:1 = div:eq(1), X:0 Y:2 = div:eq(2), X:0 Y:3 = div:... | javascript jquery | [3, 5] |
427,420 | 427,421 | Jquery: Is there some way to make val() return an empty string instead of 'undefined' for an empty list? | <p>With Jquery, is there some way to make val() return an empty string instead of 'undefined' when called against an empty list of elements?</p>
<p>E.g., I have this code:</p>
<pre><code>var x = $('#my-textbox-id').not('.watermark').val();
</code></pre>
<p>The idea is that I want to get the value of my textbox, but ... | javascript jquery | [3, 5] |
783,094 | 783,095 | Loop through form checkboxes for dynamic list of checkboxes | <pre><code>elm = ('cbProducts' + suffix);
_ctl = document.forms[0].elements[elm];
</code></pre>
<p>This works when there are more than 1 checkbox in my list.
But when there are only 1, _ctl is undefined.</p>
<p>Would rather use jQuery if possible and have something like:</p>
<pre><code>elm = ('cbProducts' + suffix).... | javascript jquery | [3, 5] |
1,259,263 | 1,259,264 | How can I skip key in object loop | <p>I was wondering if there is any way to skip key in object loop. If I have:</p>
<pre><code>obj = {
key1 : [ 1, 2, 3 ],
key2 : [ 4, 5 ],
key3 : []
}
</code></pre>
<p>how can I skip, for example, the empty one. Because I want to <code>join()</code> the not empty arrays in that object, and filter them. If I j... | javascript jquery | [3, 5] |
5,149,133 | 5,149,134 | How to hide/show multiple objects in Jquery? | <p>I want to hide/show items and show them again if requested. </p>
<p>I am using the following code to do it. But it slows down the page if i do it few times.</p>
<pre><code>for(i=0;i < 9; i++)
$('.myBetSingleBox').eq(i).css({'display':''});
</code></pre>
<p>Is there a way to do it without slowing down the pa... | php javascript jquery | [2, 3, 5] |
2,414,903 | 2,414,904 | How do i get selected radiobuttonlist in asp.net? | <p>I am using following code for a radiobuttonlist with default value of yes.</p>
<pre><code> <asp:RadioButtonList ID="RadioButtonList1" runat="server" onselectedindexchanged="radiobtnlist_SelectedIndexChanged">
<asp:ListItem Selected="True">YES</asp:ListItem>
<asp:ListItem>NO</asp:L... | c# asp.net | [0, 9] |
3,696,395 | 3,696,396 | Header navigation to history php | <p>I generally use <code>header("location:xyz.php")</code> but this time I want to navigate to history. I have more than 10 pages from where user navigate to single file and I want to navigate him back to history that is out of 10 pages. If it is button I use <code>history.go(-1);return false;</code> So using this at p... | php javascript | [2, 3] |
2,613,208 | 2,613,209 | What's the equivalent of Java's Thread.sleep() in Javascript? | <p>What's the equivalent of Java's <code>Thread.sleep()</code> in Javascript?</p>
| java javascript | [1, 3] |
3,686,393 | 3,686,394 | Member turns to undefined | <p>I've developed a jQuery plugin which has default options:</p>
<pre><code>$.fn.incromentor.defaults = {
max : 65355,
min : 0
};
</code></pre>
<p>In the initialization of the plugin, I merge the user options with plugin default options using <code>$.extend</code></p>
<pre><code>function init( $elm, options )
... | javascript jquery | [3, 5] |
1,171,164 | 1,171,165 | what is the best practice to do the following using jquery/javascript? | <p>So I am just trying to add some functions to hover. the below does about the same thing except the one with the for loop i have the target stored in an array. I actually have a few questions.</p>
<ol>
<li>is this the correct use of stopPropagation?</li>
<li>what's the best practice for doing something like this? </... | javascript jquery | [3, 5] |
129,930 | 129,931 | Rechange ID with Javascript | <p>Hello:) Im a javascript newbie and I'm trying to change a div ID with a script.
I have a div with the id "change", and onClick I would like to change the ID "changed", and that I could do, but I would like to click again, and it will return to receive the ID "change". Can you help me?</p>
<p>This is how I did:</p>
... | javascript jquery | [3, 5] |
3,895,125 | 3,895,126 | javascript how to dynamically update a variable | <p>I have an html form that triggers a function to change a value, reference: <a href="http://jsfiddle.net/ZvuMh/3/" rel="nofollow">http://jsfiddle.net/ZvuMh/3/</a>
How can I use <code>avalue</code> dynamically in another function?</p>
<p>HTML:</p>
<pre><code><select id="sort_post_date">
<option value="... | javascript jquery | [3, 5] |
5,498,360 | 5,498,361 | jQuery: html() returning empty string | <p>If I use firebug and type <code>$("<p>").html()</code> into the watch window, I get an empty string back. My guess is because the <code>$("<p>")</code> hasn't been rendered to the document. How can I get the markup for <code>$("<p>")</code> before it's added to the DOM?</p>
| javascript jquery | [3, 5] |
1,932,680 | 1,932,681 | Open a file using javascript, client-side | <p>In my application I want to open a file that exists on a client machine. I created two applications: desktop and web application. When the user installs the desktop application there are some files which is copied to its installation path, and I want to open those files from my web application via javascript.</p>
| javascript asp.net | [3, 9] |
4,674,377 | 4,674,378 | From PHP to ASP.net/C#? | <p>I know this may seem like a common question on SO but I could not really find anything in particular to my exact question. </p>
<p>Just throwing some of my thoughts so far out there, PHP is super super easy and FAST to code in, I do not know C# or how to use ASP.net, I would like to learn it and studying some of i... | c# php asp.net | [0, 2, 9] |
1,817,947 | 1,817,948 | autoTab and allowed only numbers | <p>is there any easy way of implementing two feature 1) auto tab and 2) allowed only numbers</p>
<p>i have a SSN box below as soon as the user enter three digits will skip to the next .. so on and so forth.....</p>
<pre><code> <TR>
<TD nowrap><b>Social Security Number</b></TD>
... | javascript jquery | [3, 5] |
5,292,079 | 5,292,080 | Change Input to Upper Case | <p>JS: </p>
<pre><code><script type="text/css">
$(function() {
$('#upper').keyup(function() {
this.value = this.value.toUpperCase();
});
});
</script>
</code></pre>
<p><strong>HTML</strong></p>
<pre><code><div id="search">
<input type="radio" name="table" class="table" va... | javascript jquery | [3, 5] |
2,259,966 | 2,259,967 | I Need to initialise PHP variable inside the javascript function? | <p>The above code is an javascript function . I need to initialise PHP variable in the else part</p>
<pre><code>function validate() {
if(document.loginForm.vuser_login.value==""){
alert("Login Name name cannot be empty");
document.loginForm.vuser_login.focus();
return false;
} else if (... | php javascript | [2, 3] |
5,747,336 | 5,747,337 | Receiving data from Android in a ASP.NET web site | <p>I wrote an Android app that sends data to an ASP.NET web site. When I test the app, I get the error:</p>
<blockquote>
<p>Connection to <code>https://localhost:1863</code> refused.</p>
</blockquote>
<p>How do I solve this problem? Also, how do I go about storing this data into <a href="http://en.wikipedia.org/wik... | android asp.net | [4, 9] |
5,528,485 | 5,528,486 | How to build Query dynamically using asp.net3.5 and c#.net | <p>i need create query dynamically in my .cs page. Actually what happens in my application is user can pass the column name and Table names from the page. by using those parameters(columns and tables) we need build Select query . we need retrieve those values from database and show in text format to user.there may mult... | c# asp.net | [0, 9] |
4,496,744 | 4,496,745 | passing multivariables to new page via gridview select | <p>I have a gridview where i want to pass two different ID when i select a row to a new page.
I need them to be two different variables so i dont want to bind them together.</p>
<p>Currently, the way i am doing it with link select the values of SUBMITTEDJOBAPPLICATION & the
JOBAPPLICATIONID variables are the same(... | c# asp.net | [0, 9] |
206,001 | 206,002 | Managing ajax calls with jQuery Deferred object | <p>I have to check the availability of internet access in a device at a given point of time. So, I am making an ajax call to the server to load a tiny image. I came across jQuery Deferred and tried to use it.</p>
<pre><code>var spacer = "some url";
var getImage;
var connectionAlive;
function checkOnline(spacer) {
... | javascript jquery | [3, 5] |
4,587,788 | 4,587,789 | check if URL contains some text (javascript) | <p>how can i use javascript/jQuery to check if a URL contains a specific link/text.</p>
<p>for example :<br>
A user browse to my site and his URL is : "http//www.mywebsite.com/userprofile/abc&from=home"<br><br>
I have set a variable and its value is "http//www.mywebsite.com/userprofile/abc" , i want to know how to... | javascript jquery | [3, 5] |
4,343,733 | 4,343,734 | Unknown inflate error with android | <p>Hi i'm having a problem with my android app. The problem is when i try to set up new view.</p>
<pre><code> public View getView(int position, View convertView, ViewGroup parent) {
View v = convertView;
if (v == null) {
try{
LayoutInflater vi = (LayoutInflater) getSystemService... | java android | [1, 4] |
5,397,333 | 5,397,334 | Removing a child div from a parent div in jquery | <p>I am trying to delete the child element in the dom from its parent using jquery.</p>
<p>Here is the code snippet.</p>
<pre><code>$('#delete').live('click' , function() {
var strchild = m.split("/",2)[1];
var c = group.children(strchild);
c.remove();
});
</code></pre>
<p>strchild contains the id of t... | javascript jquery | [3, 5] |
953,996 | 953,997 | How do i trigger a lightbox when certain text is selected using jQuery? | <p>Ok so i have this </p>
<pre><code><select class="something">
<option value=''>
Select a Project
</option>
---
</option>
<option value="/projects/2">test</option>
<option value="/projects/3">test2</option>
<option value="/projects/4">test7<... | javascript jquery | [3, 5] |
3,774,248 | 3,774,249 | Displaying Parent/Children name with indent | <p>i have an object that have parent/children relationship.</p>
<p>below is shorter version of what i have but the below is the core props</p>
<pre><code>public class Company
{
Name {get;set;}
List<Company> ChildCompany {get;set;}
}
</code></pre>
<p>displaying something like this:</p>
<pre><code>-----ABC... | c# asp.net | [0, 9] |
3,996,708 | 3,996,709 | How to use a javascript strings object | <p>I'm having a problem utilizing my language files. </p>
<p>Currently, I have a language file where I have an object like</p>
<pre><code>var strings {
title: "Title",
subtitle: "Subtitle"
};
</code></pre>
<p>In my html currently, I'll have something like</p>
<pre><code><div id="title">Title</div&g... | javascript jquery | [3, 5] |
5,438,687 | 5,438,688 | Can i create an array that has multiple objects and then manipulate that array throughout my script? | <p>I have created an array of jquery objects that I want to hide when a particular click event is triggered. Instead of looping through the contents of the same array for each click event can I transform the array into a single object or something that I can just attach a method on to?</p>
<p>I have a current fiddle h... | javascript jquery | [3, 5] |
2,083,858 | 2,083,859 | ArrayList Limit to hold 10 Values | <p>I am using an <code>ArrayList</code> within my code which gets populated by a <code>EditText</code> field but I am wanting to limit the <code>ArrayList</code> so it can only hold 10 values. After 10 values have been added if another tries to get added I just need it to not add into the <code>Array</code>. Anyone got... | java android | [1, 4] |
3,499,167 | 3,499,168 | jQuery: copying element attributes to another attribute of the same element | <p>I've got a list of links, all in the same class, each with a custom argument ("switch-text"). My script should copy the text of the custom argument to the text of each link and replace it ("Pick A" should become "Pick A Please").</p>
<p>It works fine with only 1 link, but when I add several, they all get switched t... | javascript jquery | [3, 5] |
4,118,076 | 4,118,077 | How to populate infinite scroll with images from 1 directory? | <p>I have a <code><div id="content" class="clearfix"></div></code> which self populates with a list of image urls from a separate directory on my server. </p>
<p>Here is the live URL for the site : <a href="http://ilovesmallies.com/forum/showcase.php" rel="nofollow">http://ilovesmallies.com/forum/showcase... | javascript jquery | [3, 5] |
1,331,621 | 1,331,622 | having a lookup form in asp? | <p>OK. Normal winform thing that I do all the time but now in asp.net. You have a browse button on Form A and you open a new form B. For example you have user click on a browse button to select list of friends. User clicks on the button, picks one or more friends and then presses select. you then add them to the or... | c# asp.net | [0, 9] |
5,935,400 | 5,935,401 | which language is better for my application? | <p>I want to design a professional software.
Features :</p>
<ol>
<li>Direct Connection with SQL</li>
<li>HTML code editing and build</li>
<li>Search among thousands of content files (Advance search)</li>
<li>Artificial intelligence (Simple)</li>
<li>Compress/Extract files</li>
<li>Create a Private file Extension</li>
... | c# c++ | [0, 6] |
659,245 | 659,246 | C# ASP.Net WebForm Membership Extra User Details (Profile) | <p>I'm learning how to use the ASP.net membership, when a user registers they just create a username and password, however i want to create a page on my website called "profile" where they can fill in extra details such as firstname, lastname, date of birth ect. However i don't see where i can place this in the asp.net... | c# asp.net | [0, 9] |
1,201,880 | 1,201,881 | jquery: Exiting function | <p>I am doing animation in jquery. I have a looping picture moving from left to right of the webpage. I used following code:</p>
<pre><code> function run() { $("#run").animate({ left: "980px" }, 250).animate({
left: "-600px" }, 0); setTimeout("run()", 250);
}
</code></pre>
<p>I want to stop the loop(OR break th... | javascript jquery | [3, 5] |
1,490,127 | 1,490,128 | Block HTML tags in posts | <p>Forums on the internet can block people from posting HTML tags in their posts. how is that done in php? I mean HTML tags show up as is in the tweets on twitter and in the comment space on Facebook? How is that done?</p>
| php javascript | [2, 3] |
1,350,439 | 1,350,440 | Row Databound issue when changing Container.DataItem value in a gridview | <p>I am using a gridview to display on a buttonClick in asp.net using c#.</p>
<pre><code> DataSet dsnew = new businessLogic.Biz().getData();
if (dsnew != null && dsnew.Tables[0].Rows.Count > 0)
{
DataView myDataView = new DataView();
myDataView = dsnew.Tables[0].DefaultView;
grdDetail.Data... | c# asp.net | [0, 9] |
5,155,905 | 5,155,906 | How to convert C++ code into java | <p>I am trying to convert C++ code to Java but am stuck at the following line</p>
<pre><code>memcpy(cmd->CommandData+2, &m_UnitData[i].Value, 2);
</code></pre>
<p>I also use cpp to java converter but it does not change anything here. <code>CommandData</code> and <code>UnitData</code> are byte arrays in my Java... | java c++ | [1, 6] |
1,209,438 | 1,209,439 | Where is the path "file:///android_asset/" documented? | <p>There's a number of pages on the Internet talking about the "file:///android_asset/" path (sometimes with an <em>s</em> appended to the end...) for accessing the assets folder. I am unable to find any kind of official or trustworthy documentation on this path/feature.</p>
<p>Is there any proper documentation for th... | java android | [1, 4] |
1,048,459 | 1,048,460 | How to Convert event object to string in JavaScript? | <p>I am trying to get which event is occured :: </p>
<pre><code>function getEvent(){
alert(window.event);
}
</code></pre>
<p>I am getting below event object. I want it in string to compare. if event onclick event then I want to do the action. how can I get it in string? or how can I convert event object to string... | javascript jquery | [3, 5] |
527,335 | 527,336 | Android is there any way to only rotate one component were other component in same layout will not rotate | <p>I want the content of <code>webview</code> vertical to horizontal as device rotate, but not the other components.
I mean button below the webview should not rotate, </p>
<p>So i am trying to rotate the content of <code>webview</code> vertical to horizontal or vice versa but cant do it .</p>
<p>Is there any way to... | java android | [1, 4] |
2,042,958 | 2,042,959 | Inside OnClickListener I cannot access a lot of things - how to approach? | <p>Inside an OnClickListener I cannot access most variables "outside" of the scope, like this:</p>
<pre><code>findViewById(R.id.Button01).setOnClickListener(new OnClickListener()
{
@Override
public void onClick(View v)
{
Intent mainApps = new Intent(Intent.AC... | java android | [1, 4] |
5,593,786 | 5,593,787 | Development tools | <p>What programming language are windows applications begin built with these days? from what I can see when looking at job descriptions, Java and C# are mostly used for web applications. I found a couple of companies looking for a c# winforms developer but the job also includes some web development as well. I think th... | c# java | [0, 1] |
868,047 | 868,048 | Android TableLayout group dynamic radioButtons | <p>How can I group all dynamic created radioButtons into one group?</p>
<pre><code>while (cursor.moveToNext()) {
TableRow row = new TableRow(this);
// CheckBox chk = new CheckBox(this);
RadioButton radioBtn = new RadioButton(this);
// chk.setText(cursor.getString(cursor.getColumnIndex("from_text"... | java android | [1, 4] |
4,990,007 | 4,990,008 | UIpagecontrol in android | <p>can anyone tell me that how can i use UIpagecontrol control of iphone by using it we can scroll horizontally any page.like this</p>
<p><a href="http://cocoawithlove.com/2009/01/multiple-virtual-pages-in-uiscrollview.html" rel="nofollow">http://cocoawithlove.com/2009/01/multiple-virtual-pages-in-uiscrollview.html</a... | android iphone | [4, 8] |
4,760,514 | 4,760,515 | click mouse position with scroll in javascript | <p>I have code to get x-y coordinates when the browser scrolls:</p>
<pre><code>left1 = window.event.clientX + document.body.scrollLeft + document.documentElement.scrollLeft;
top1 = window.event.clientY + document.body.scrollTop + document.documentElement.scrollTop;
</code></pre>
<p>This is working in IE7, but not in ... | javascript asp.net | [3, 9] |
1,798,493 | 1,798,494 | remove class from current group | <p>The easiest way to see the problem is checking the code here: <a href="http://www.studioimbrue.com/beta" rel="nofollow">http://www.studioimbrue.com/beta</a></p>
<p>What I need to do is once a thumbnail is clicked, to removed the "selected" class from all other thumbnails that are in this same or without removing ... | javascript jquery | [3, 5] |
3,898,815 | 3,898,816 | How to indent particular row in datagridview | <p>I have a gridview and and I am creating it dynamically, I get parent and child tables records and binding the data to a single data grid view. I need to indent the row which is from child table a bit to the right so that i can differentiate the record from parent record.</p>
<pre><code>private void CreateDynamicGri... | c# asp.net | [0, 9] |
2,749,797 | 2,749,798 | Save string from jQuery's `$.get` | <p>I'd like to load some content from an URL, to use it in my code. I tried closures and this:</p>
<pre><code>function getStringFromURL(url) {
var getter = function() {
this.result = "undef";
this.func = function(response) {
this.result = response;
};
};
var x = new getter();
$.get(url, x.fun... | javascript jquery | [3, 5] |
1,946,866 | 1,946,867 | How can I insert a prefix for all jQuery selectors? | <p>I need extended main jQuery function to insert a prefix before any selector passed to it.</p>
<p>For example</p>
<pre><code>jQuery.prefix = '#newBody ';
jQuery('.content')
</code></pre>
<p>would be the same as </p>
<pre><code>jQuery('#newBody .content')
</code></pre>
<p>I tried running this code</p>
<pre><code... | javascript jquery | [3, 5] |
4,234,510 | 4,234,511 | Faster/better: Fetch a few JSON-objects with PHP or JavaScript | <p>Personally I would do this with PHP but maybe someone has an pro/contra for doing this with JavaScript:</p>
<ul>
<li>I (will) fetch a few song details (about ten per page load) from Soundcloud</li>
<li>afterwards the statistic (played this week/total, liked this week/total etc.) will be displayed in a table</li>
</... | php javascript | [2, 3] |
251,272 | 251,273 | Using CodeBehind to change the LoginView | <p>I am wondering if there is a way to do this? I'm using windows authentication, and I have a list of groups the user belongs to. I then want to determine which loginview to use based on which group(s) they are part of. Because everyone accessing the site will be required to be logged in anyway the LoggedInTemplate an... | c# asp.net | [0, 9] |
3,474,374 | 3,474,375 | What is the fastest way to deal with large arrays of data in Android? | <p>could you please suggest me (novice in Android/JAVA) what`s the most efficient way to deal with a relatively large amounts of data? </p>
<p>I need to compute some stuff for each of the 1000...5000 of elements in say a big datatype (x1,y1,z1 - double, flag1...flagn - boolean, desc1...descn - string) quite often (onc... | java android | [1, 4] |
5,568,366 | 5,568,367 | how to use FFT to filter a 50Hz noise from a data array? | <p>Suppose I have a data array from an ECG like this one</p>
<p><a href="http://joachim.behar.perso.neuf.fr/Joachim/ECG_tuto_1/ECG_filters_basics/ecg_sample.txt" rel="nofollow">http://joachim.behar.perso.neuf.fr/Joachim/ECG_tuto_1/ECG_filters_basics/ecg_sample.txt</a></p>
<p>and I need to filter a 50Hz noise out of i... | java android | [1, 4] |
5,966,834 | 5,966,835 | how to prevent web page refreshing | <p>I have a "CaptchaControl" in a webusercontrol, when i click refresh link for the captcha code, the page refresh too. how can i prevent it?</p>
<pre><code><cc:CaptchaControl ID="captcha" CssClass="toppading" runat="server" CharCount="5" ImageUrl="~/images/CapchaImage.jpg" />
<asp:LinkButton CssClass=... | c# javascript asp.net | [0, 3, 9] |
5,939,510 | 5,939,511 | Both side Sync database from sqlite to website | <p>I hv apps that sync db from sqlite to sqlserver in website. bt the prbm is that i need to sync both side(server side and phn side). Means when user insert/update/delete any data from web it reflect in phn and also when any changes made phn's db it reflect on website.</p>
<p>Curretly im using simple method. which ma... | android asp.net | [4, 9] |
732,256 | 732,257 | Cannot read parameters from Msxml2.XMLHTTP ajax call | <p>I cannot read parameter in PageHandler when using Msxml2.XMLHTTP ajax call.</p>
<pre><code>function InvokeHandler() {
InitXmlHttp();
xmlhttp.onreadystatechange = XMLHttpRequestCompleted;
xmlhttp.open("GET", "BookmarkletHandler.ashx?target=ww1", true);
xmlhttp.send();
}
</code></pre>
<p>I ... | c# asp.net | [0, 9] |
969,360 | 969,361 | Passing dynamic value via param | <p>I am using this plugin <a href="http://valums.com/ajax-upload/" rel="nofollow">http://valums.com/ajax-upload/</a>.
I am using this code :</p>
<pre><code>var uploader = new qq.FileUploader({
// pass the dom node (ex. $(selector)[0] for jQuery users)
element: document.getElementById('file-uploader'),
// ... | javascript jquery | [3, 5] |
1,288,526 | 1,288,527 | Allocating and deallocating event on a button | <p>I am busy having a problem with allocating a new event to an existing button that was created in the designer.</p>
<p>Now here is the button that was created prior to runtime which is inside the modalpopupexteder5 -</p>
<pre><code><asp:Button runat="server" ID="btnClose" Text="Close" OnClick="btnClose_Click" /&... | c# asp.net | [0, 9] |
3,847,368 | 3,847,369 | Eventhandling in ascx usercontrols | <p>What is best practises for communicating events from a usercontrol to parent control/page i want to do something similar to this:</p>
<pre><code>MyPage.aspx:
<asp:Content ID="Content1" ContentPlaceHolderID="MainContentPlaceholder" runat="server">
<uc1:MyUserControl ID="MyUserControl1" runat="server"
... | c# asp.net | [0, 9] |
5,489,051 | 5,489,052 | my hover function in jquery it's not working | <p>i am trying to append p tag with some text and i trying to show alert message when hover that p tag content but here it's not working here is my code:<a href="http://jsfiddle.net/sureshpattu/37TUN/" rel="nofollow">code</a></p>
| javascript jquery | [3, 5] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.