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 |
|---|---|---|---|---|---|
4,130,148 | 4,130,149 | Background Process without UI - android | <p>I have an application Android and I need update the data without UI (Background Process)
I haven't idea about it</p>
<p>Help me</p>
| java android | [1, 4] |
1,520,100 | 1,520,101 | Change value of field | <p>i got some confusion in String Replacement. i have string like </p>
<pre><code>CustomerEmailID=fake; NavigatePageValue=0; IsCustomerInsertSucess=asdewewew;
</code></pre>
<p>in this string i need to change value of <code>IsCustomerInsertSucess</code> to others. but i am confuse that how can i </p>
<p>i have try wi... | java android | [1, 4] |
2,270,744 | 2,270,745 | How to Create Generic Get Custom WebConfig Section Extension Method | <p>i have the following Code to get a Custom Webconfig Section</p>
<pre><code>Configuration config = WebConfigurationManager.OpenWebConfiguration
(System.Web.Hosting.HostingEnvironment.ApplicationVirtualPath + "/ExternalConfig");
Sample1Section myHandler =
(Sample1Section)config.GetSection("settin... | c# asp.net | [0, 9] |
5,844,871 | 5,844,872 | How can I capture "undefined" in javascript? | <p>I'm working on going through all values in a form but I keep getting undefnined then my values show up. I'm dynamically creating the form so I think the undefined maybe coming from the blank field.</p>
<p>Here's the code I'm using to get all the elements:</p>
<pre><code>//try to get all elements
var output;
$(thi... | javascript jquery | [3, 5] |
890,554 | 890,555 | 100% Percentage splitted at the number of checked boxes using javascript | <p>I have a list of costs for a building (buildings are generated on the fly with PHP from a db):</p>
<pre><code>Building
[ ] Susilo 2A-13
[ ] Susilo 2A-12
</code></pre>
<p>I want it to look like this</p>
<pre><code>Building
[ ] Susilo 2A-13 (0%)
[ ] Susilo 2A-12 (0%)
</code></pre>
<p>when nothing selected, and lik... | php javascript jquery | [2, 3, 5] |
1,554,825 | 1,554,826 | how to update a cart with product details selected thourgh selects or radio's | <p>here is an example:</p>
<p><a href="http://store.apple.com/us/configure/MC375LL/A?mco=MTc0Njg1NzE" rel="nofollow">http://store.apple.com/us/configure/MC375LL/A?mco=MTc0Njg1NzE</a></p>
<p>each radio button looks something like this:</p>
<pre><code><input type="radio" value="065-0338" name="option.aperture" id="... | php jquery | [2, 5] |
4,593,154 | 4,593,155 | How to redirect current tab on submit using javascript? | <p>I does a small example to learn javascript and php.
I try window.open() and window.location() but it opens a new tab and the current tab still redirects to "login.php"</p>
<pre><code><html>
<head>
<script type = "text/javascript">
function checksubmit(form){
... | php javascript | [2, 3] |
4,743,332 | 4,743,333 | PullToRefreshListView not supported in Android Jelly Bean | <p>I had implemented the PullToRefreshListView from <a href="https://github.com/johannilsson/android-pulltorefresh" rel="nofollow">johan</a> in an app which works great on every other version of Android except the new Jelly Bean. Does anyone know what might be the reason for this or if there exists a solution to this p... | java android | [1, 4] |
5,201,020 | 5,201,021 | jquery, change jqueryui dialog box content from a ajax call in the webpage | <p><a href="http://jqueryui.com/" rel="nofollow">jqueryui</a> is used to show a dialog box, then if there is a click the 'dialog_insider' on the dialog box ,not on the flat (correct wording?) webpage , an ajax call will be made. The file in the called through the ajax
html:</p>
<pre><code><div id="dialog" style="... | javascript jquery | [3, 5] |
1,518,925 | 1,518,926 | Jquery index removal with var rather than number | <p>I am trying to remove a value of a certain index from a select </p>
<p>This works.....</p>
<pre><code> $(".myselect option:eq(0)").remove();
</code></pre>
<p>this does not......</p>
<pre><code> var item = 0;
$(".myselect option:eq(item)").remove();
</code></pre>
<p>How come?</p>
| javascript jquery | [3, 5] |
825,747 | 825,748 | passing parameters with conditionally | <p><strong>Update:</strong></p>
<p>i have a dropdownlist with seven different optins like (date, subject, press, cia, media...) and user will select one of the item from the dropdownlist and click on search button to get the results.</p>
<p>here is my repository class GetInquires method which accepts 7 parameters but... | c# asp.net | [0, 9] |
828,604 | 828,605 | ASP.Net Javascript integration | <p>I am trying to use the following script in asp.net:</p>
<pre><code><script language="javascript" type="text/javascript">
function checktext() {
var txt = document.getElementById('tbComments');
if (txt.Text.Length > 0) {
alert('Thank you for submitting feedback.');
... | asp.net javascript | [9, 3] |
2,663,690 | 2,663,691 | In Java, how to convert a String to JSON Object? | <p>The string is like so:</p>
<pre><code>[{"Id":287,"Name":"aaaaaaaa","ProjectType":"GP"}, ... snip ...]
</code></pre>
<p>This STRING is not JSON yet since it is a string even though it was served up as JSON.</p>
<p>I am trying to convert that to a structure that I can work with in my Java app.</p>
<p>Can somebody ... | java android | [1, 4] |
989,587 | 989,588 | displays the message box two times in a row | <p>I have a problem with making message box. Here is the code:</p>
<pre><code><? php
echo "<script language=\"Javascript\"> \ n";
echo "Confirmed = window.confirm ('Are you sure you want to store data ?');";
echo "if (confirmed)";
echo "{";
echo "window.confirm ('Do you want to add any more data');";
e... | php javascript | [2, 3] |
5,936,910 | 5,936,911 | Redirect and count down, jquery onclick | <p>Here is our current code:</p>
<pre><code>$('#click').click(function(e){
var country = $("#country").val();
$this = $("#conv");
$this.css({"text-align":"center","font-size":"18px"});
$this.html("<div style='margin-top: -4px;'>We're sorry but this website is not available in your country <str... | javascript jquery | [3, 5] |
1,381,840 | 1,381,841 | JavaScript: How to efficiently replace all values of an object without replacing the object | <p>I have a number of objects collected in an array. The same objects are also attached to certain DOM elements for various reasons. From time to time I need to update one of these objects. The easiest way to do this is to find the object in the array with the same id property as the one I got new values for through AJ... | javascript jquery | [3, 5] |
5,403,536 | 5,403,537 | Changing button text of gridview | <p>I have a grid view which contains a button in a template field. I want to change the button text when the button click event is completed. Can somebody send me a sample code.</p>
<p>Thanks in advance</p>
| c# asp.net | [0, 9] |
2,432,568 | 2,432,569 | How to pass String from 2 activities to one? | <p>I have two activitys with lists.</p>
<p>One for tablet's and one for regular density phones.
When an item in the list is clicked it launches the same activity for either activity with list's.</p>
<p>The problem is when an item is clicked i have getter and setter class that gets the URL for a particular item and p... | java android | [1, 4] |
2,547,349 | 2,547,350 | Compared to C#, Java's final is similiar to const or readonly | <p>Wondering if compared to C#, java's final is more similar to which? const or readonly?</p>
| c# java | [0, 1] |
6,784 | 6,785 | Reading and Writing PHP operation in C#? | <p>I want to convert the following PHP operation to C# code, could anyone please help me to convert this to C#.</p>
<pre><code>$swfaddr = $absolutepath."/components/flash/".$slug.".swf";
$swf = fopen($swfaddr, "w");
fwrite($swf, file_get_contents($game['swf_url']));
$thumbaddr = $absolutepath."/components/images/".$sl... | c# php | [0, 2] |
3,781,199 | 3,781,200 | need Help on storing data | <p>Im my application i have one page which shows lots of records in gridview and i also have one dropdown(html control ) in that page. User can select one or more records from gridview and need to select anyone option from dropdow.After that user need to click submit button(Html button not a server control).
Based upo... | c# asp.net | [0, 9] |
2,475,914 | 2,475,915 | Stop double click event on element with single click event | <p>I have a JSFiddle here which lays out my problem: <a href="http://jsfiddle.net/Paddy/86YSN/7/" rel="nofollow">http://jsfiddle.net/Paddy/86YSN/7/</a>.
It's a very simple marquee- the little white boxes simply move to the next/previous slide when clicked.</p>
<p>If you double click one, things go wrong, and a slide g... | javascript jquery | [3, 5] |
1,524,255 | 1,524,256 | PHP Reading the content between tags | <p>If there are multiple hyperlinks in a webpage, How do I recognize them using JavaScript? Also, how do I store the content of the hyperlink in a variable, so that the data stored in the variable will be used the query a database and populate results in another webpage?</p>
<p>For example there are many links in the ... | php javascript | [2, 3] |
4,111,367 | 4,111,368 | JavaScript: Cross-browser "browser plugin" detection | <p>I'm looking for a script that will allow me to detect if a user has Windows Media Player installed, or Quicktime, or Flash, or Silverlight...</p>
<p>Ideally, this would be jQuery plugin, but any script will do.</p>
<p>Do you know of one you can recommend?</p>
| javascript jquery | [3, 5] |
4,508,797 | 4,508,798 | jQuery: How to make keyboard Event do the same on click event together | <p>I need to make click event and arrow right make the same event</p>
<p>So instead of this repeated code</p>
<pre><code>$('#foo').on('click',function() {
//do something
});
$(document).keydown(function(e){
if (e.keyCode == 39) {
//do the same thing above
}
});
</code></pre>
<p>How should i do it?</p>... | javascript jquery | [3, 5] |
3,588,633 | 3,588,634 | Understanding what appears to be an instantiation of a method | <p>I am currently trying to understand how well regarded lightbox, ColorBox, works so that I can attempt to make a development to it. However I am struggling with a couple of concepts within the code. The following is where I am stuck:</p>
<p>I have the following function being declared:</p>
<pre><code>publicMethod =... | javascript jquery | [3, 5] |
3,498,704 | 3,498,705 | Android color picker - updating color array | <p>I'm trying to create a color picker for Android that looks like a minimalistic version of Gimp's. So, it has a hue slider and a rectangle with saturation/value variants of a color chosen in hue slider.</p>
<p>Question: what is the best way to create the rectangle?</p>
<p>Right now, I'm creating an 200x200 array of... | java android | [1, 4] |
3,652,945 | 3,652,946 | How to get proper values from Polar heart rate monitor | <p>My android application is getting data from Polar Heart Rate Monitor through Bluetooth connection.
My problem is that I am getting such a string:
��������������������������������������������������</p>
<p>My code for getting the data:</p>
<pre><code> final Handler handler = new Handler();
final byte delimiter ... | java android | [1, 4] |
722,222 | 722,223 | how to get stronly typed local resource file? | <p>i really love the idea of it as i can create a folder for my user control, and make sub folder images, css, and put local resource file, so the whole thing is contained in one folder, and that makes it really efficient for me (management wise).
but the bugger is you cant get intellisence like global resource, so is ... | c# asp.net | [0, 9] |
2,999,294 | 2,999,295 | PHP function_exists/class_exists equivalent in C# | <p>I am looking for an alternative of these two functions in asp.net/c#.</p>
<pre><code>if(function_exists('foo'))
{
$returned = foo($bar);
}
if(class_exists('foo'))
{
$fooclass = new foo($bar);
}
</code></pre>
<p>Thanks in advacne.</p>
| c# php asp.net | [0, 2, 9] |
4,449,333 | 4,449,334 | Client Side Javascript input prompt box | <p>I have a web application: When the user presses "Search", he has to input some other value and then according to that value, some other code is run.</p>
<pre><code> protected void btnSearch_Click(object sender, EventArgs e)
{
ClearGridViewEmp();
//Does table contain encrypted column... | c# asp.net | [0, 9] |
5,790,895 | 5,790,896 | Static vs member field revisited, need advice | <p>I need an advice on piece of functionality that I am ought to implement. The scenario is that we haven an HttpHandler which servers to intercept file uploads. In the handler, I need to persist a large dictionary of strings inside the memory. The dictionary might be as large as 100 entries. I am wondering whether it ... | c# asp.net | [0, 9] |
204,317 | 204,318 | jquery fadein broken | <p>I dont knwo why the Jquery fade in is not working for my content div</p>
<p>HTML:</p>
<pre><code><div id="content">
<div id="logo">
<img src="images/blue.jpg" alt="logo" />
</div>
<div id="form">
<form action="controler.php" method="p... | javascript jquery | [3, 5] |
4,094,282 | 4,094,283 | executing code every 24h, but only if app is opened | <p>I want to execute specific code in my app every 24h.</p>
<p>I know how to use AlarmManager but problem is I don't want that code to be executed if app isn't running.</p>
<p>I want it to be executed when app starts but only if 24h has passed after last execution.</p>
<p>It doesn't matter if more 24h has passed</p>... | java android | [1, 4] |
2,801,988 | 2,801,989 | cookie with php and javascript | <p>Can I edit a cookie created by javascript with php and vice versa</p>
<p>is a cookie a cookie basically?</p>
| php javascript | [2, 3] |
5,553,283 | 5,553,284 | jquery error with return bool value | <p>I am a newbie to javascript and i cant return the boolean value of the function.. i am validating the textboxes for null and return false if its empty help please?</p>
<pre><code>validateForm : function() {
$('.requiredField :input').each(function(){
if ('input[type=text]'){
if($(this).val()... | javascript jquery | [3, 5] |
4,053,792 | 4,053,793 | How to format DropDownList's ListItem from code behind? | <p>The following is not working. It shows as unformatted text. </p>
<pre><code>ListItem li = new ListItem();
li.Attributes.Add("style", "font-style:italic");
li.Text = "Select product";
li.Value = "0";
ddlProducts.Items.Add(li);
</code></pre>
| c# asp.net | [0, 9] |
5,735,907 | 5,735,908 | Deleting a directory | <p>I'm having some major trouble deleting directories. I'm working building a ADMIN tool to delete directories that my clients create but then ask to delete them. You would think this is simple:</p>
<pre>
<code>
using (var context = Impersonator.LogOn(user, password, domain))
{
try
{
dir = new Direct... | c# asp.net | [0, 9] |
2,684,443 | 2,684,444 | Error : "Uncaught Typeerror: cannot read property 'innerHTML' of null" when appending a new <script> to div | <p>In below fiddle I am receiving this error :
Uncaught TypeError: Cannot set property 'innerHTML' of null </p>
<p>Looking at the code it the error seems to be thrown here : </p>
<pre><code>_$("pds-answer6343621").innerHTML=y6343621
</code></pre>
<p>I think this is occuring because the script is executing before th... | javascript jquery | [3, 5] |
2,037,755 | 2,037,756 | Dynamic user controls null, but cannot create them during page_init | <p>I have a winforms based website.</p>
<p>This site has a page that contains a repeater.</p>
<p>The repeater contains a number of items, each of which contains a number instances of a user control.</p>
<p>The number of instances varies for each item in the repeater.</p>
<p>Normally, if I was dynamically creating a... | c# asp.net | [0, 9] |
4,762,516 | 4,762,517 | Pass Value of clicked button from one page to another page Input field | <p>Weird question this, going round in circles.</p>
<p>I have 2 pages.</p>
<p>Page 1. Has a button on it. Like</p>
<pre><code><form action="goto_page_2.php"><p class="longdesc"><span class="spanBold">Scrap Collections in North Lakes:</span><br />
<button class="readViewMoreBtn"... | php javascript | [2, 3] |
2,570,187 | 2,570,188 | Why does focus() not work the way it seems like it should? | <pre><code><DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" dir="ltr" lang="en">
<head>
<script src="../js/third_party/jq142unmin.js"></script>
<scrip... | javascript jquery | [3, 5] |
194,619 | 194,620 | How can I find the sessionState ticket? | <p>In web.config there is a parameter:</p>
<pre><code><authentication mode="Forms">
<forms timeout="50"/>
</authentication>
</code></pre>
<p>I can find how long is left by this code:</p>
<pre><code> if (Page.User.Identity.IsAuthenticated)
{
FormsIdentity id = (FormsIdentity)Page.User.I... | c# asp.net | [0, 9] |
300,614 | 300,615 | Why does changing the minSdkVersion of my application change the color of the text in my tabs? | <p>Why does changing the minSdkVersion of my application change the color of the text in my tabs? Am I doing something wrong?</p>
<p>I recreated the problem using the <a href="http://developer.android.com/resources/tutorials/views/hello-tabwidget.html" rel="nofollow">Hello Tab Widget</a>. By adding
<code><uses-sdk ... | java android | [1, 4] |
1,004,640 | 1,004,641 | Java and C++ - String | <p>I have a Java Client and C++ server. All values are sent as byte array. The numeric values are received fine but the string values when stored in char array in C++, have special characters like new page or new line feed at the end of the value. Can someone suggest a solution to the problem?</p>
| java c++ | [1, 6] |
1,978,203 | 1,978,204 | Jquery get previous value in jquery | <p>I get the script for selecting the previous selected value in list box from <a href="http://stackoverflow.com/questions/9326494/jquery-get-the-pervious-selected-value-in-listbox">Jquery get the pervious selected value in listbox</a></p>
<p>It is fine for the individual select boxes.</p>
<p>I have multiple select ... | php jquery | [2, 5] |
3,787,575 | 3,787,576 | Jquery Dynamically created(appendTo) Input renders disabled | <p>Im trying to create an input when the user click on a link.</p>
<p>This function here makes the magic:</p>
<pre><code>var editTitulo = function(id) {
if($('#lis'+id).length > 0) {
var divTitulo = $('#lis'+id).find('div.titulo:first');
var conteudo = divTitulo.find('span').first().html().tri... | javascript jquery | [3, 5] |
5,873,624 | 5,873,625 | making link disappear from window.open pop up | <p>I have link that opens a window, with <code>window.open("mytest.aspx");</code> the problem i am having is that when they close that pop up window I need to hide that link on the parent page. So basically, how can I hide the link (which is an anchor) on the parent page from the pop up that was opened with window.open... | c# javascript asp.net | [0, 3, 9] |
4,317,908 | 4,317,909 | dynamically generate text areas w/ unique id's based on checkbox inputs | <p>I am working on a program for my company to process different product types and create files.</p>
<p>I have a form that will eventually grow to close to 150 checkbox options over the course of a few months. I'm trying to get input on the best way to do this and save me time in the long run.</p>
<p>So for example ... | php javascript jquery | [2, 3, 5] |
5,487,085 | 5,487,086 | Why is jQuery.ajax() Calling my Objects Functions? | <p>I'm having an issue where jQuery.ajax() is calling my data objects functions. For example, I have an object structure similar to the following:</p>
<pre><code>var TestFactory = (function () {
var _id;
var _attributes;
return {
createObject: function (objectId) {
var value = null;
... | javascript jquery | [3, 5] |
1,360,688 | 1,360,689 | Showing warning with timeout when opening external links | <p>I want that when a user clicks on any external link (identified by either particular id or class) on my site then he should get a popup with a counter of 10 seconds, after 10 seconds the popup should close and the user should be able to access the external URL. How can this be done? I'm able to show a warning like b... | javascript jquery | [3, 5] |
5,356,204 | 5,356,205 | Code to calculate no.of days between two dates | <p>C# Code to calculate no.of days between two dates...I have start date in one textbox and end date in another textbox and i need to get no. of days between the two dates and to be displayed in third textbox and it should exclude holidays and weekends(saturday and sunday).</p>
| c# asp.net | [0, 9] |
4,899,629 | 4,899,630 | javascript/jquery remove or delete option from select | <p>I need to delete an option from a select in certain circumstances.</p>
<p>Basically:</p>
<pre><code>if(mystatement == true)
{
//remove item with id 'option1' from select of id 'select1'
}
</code></pre>
<p>Anyone know the code for me to achieve this?</p>
<p>Many thanks.</p>
| javascript jquery | [3, 5] |
3,417,151 | 3,417,152 | How to rate-limit ajax requests? | <p>There are several divs and handler to send ajax requests when they are clicked. My problem is that i don't know how to force my handler not to exceed limit of 1 request per 30 seconds.</p>
<p>Appreciate your help!</p>
| javascript jquery | [3, 5] |
2,104,812 | 2,104,813 | Append text to element value | <p>I multiply the integer value of 3 textboxes and display the result in a 4th textbox.</p>
<p>Before the value is displayed I want to check if the value contains any decimals, like 99.95. If it doesn't then the script shall append .00 to the value (99.00).</p>
<pre><code><script type="text/javascript">
$(docum... | javascript jquery | [3, 5] |
5,954,514 | 5,954,515 | Determine image size in pixels using javascript | <p>I want to compare image before uploading to be of x by y pixels within file upload control in asp.net
How can I get image size in File Uploader in pixels using javascript? </p>
| javascript asp.net | [3, 9] |
2,799,117 | 2,799,118 | how to read values from a price range slider(jquery) | <pre><code>$( "#minValue" ).val($( "#slider-range" ).slider( "values", 0 ));
$( "#maxValue" ).val( $( "#slider-range" ).slider( "values", 1 ) );
</code></pre>
<p>How to read values when slider sliding ?</p>
<p><code>minValue->minimum</code> value of slider when slider sliding</p>
<p><code>maxValue->maximum</co... | javascript jquery | [3, 5] |
2,374,499 | 2,374,500 | C# Telerik RadGrid subtract one automatically from column quantity when I press refresh | <p>I am using a Telerik RadGrid in ASP.Net framework. I create Buy procedure and when I press (Buy) it must subtract 1 from the column quantity. It works correctly but if I press F5 or refresh, it continues subtracting 1 by 1. Every refresh subtracts 1 from the quantity. How can i prevent that? <a href="http://i.s... | c# asp.net | [0, 9] |
5,042,393 | 5,042,394 | how can i open a excel inside a web browser? | <p>I need to open a excel in web browser when click a button.how to do that in asp.net </p>
| c# asp.net | [0, 9] |
1,851,656 | 1,851,657 | When to use $ and when not to | <p>I have selected a control using the following variable</p>
<pre><code>var txt = $("#text1");
</code></pre>
<p>Now when I have to handle events on the textbox, do I have to reference it as $(txt) or txt will do</p>
<pre><code>$(txt).keydown(function() {})
</code></pre>
<p>or</p>
<pre><code>txt.keydown(function()... | javascript jquery | [3, 5] |
1,480,588 | 1,480,589 | What is wrong with my IF logic? | <p>I am writing a Javascript and dont know how to form the loop</p>
<pre><code> if (value < 25){
$(selector).css({ 'background': 'Red' });
} else if (value > 25 && value < 75){
$(selector).css({ 'background': 'Orange' });
}else... | c# javascript asp.net | [0, 3, 9] |
4,866,629 | 4,866,630 | jQuery show ax external PHP page in a DIV | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/6634903/how-to-show-a-page-where-a-div-is-with-jquery">How to show a page where a DIV is with jQuery</a> </p>
</blockquote>
<p>Hello I have a DIV in the page index.html:</p>
<pre><code><div id="form"><... | php jquery | [2, 5] |
4,410,015 | 4,410,016 | Selecting text on-the-fly from textbox leaves out last character in javascript | <p>I'm trying to get the text from a textbox as a user types, so that I can parse it and display information accordingly as the user enters a command. However, it seems as though the function I'm writing is getting the text from the box before the letter is entered into the text box. How do I prevent the function from ... | javascript jquery | [3, 5] |
4,920,970 | 4,920,971 | How to use javascript variables in jquery selectors | <p>How do I use the javascript variables as a parameter in a jquery selector?</p>
<pre><code><script type="text/javascript">
$(function(){
$("input").click(function(){
var x = $(this).attr("name");
$("input[id=x]").hide();
});
});
</script>
<input type="text" id="bx... | javascript jquery | [3, 5] |
1,956,892 | 1,956,893 | In Web Development - What ASP.net can do that PHP cannot do? | <p>Just thinking if it's necessary to learn ASP.net.</p>
<p>Also, which is faster to develop? If I learn ASP.net now..</p>
<p>I will be using one of those languages for my first Web Application.</p>
<p>thanks!</p>
| php asp.net | [2, 9] |
2,259,147 | 2,259,148 | Session and Thread in ASP.NET | <p>I have a ASP.NET website where a thread is responible for doing some code retrived from a database queue.</p>
<p>Is it possible to get access to the Session or pass that as a parameter ?</p>
<p>My current code looks a follows:</p>
<pre><code>MediaJob nextJob = GetNextJobFromDB();
CreateMedia media = new CreateMe... | c# asp.net | [0, 9] |
316,270 | 316,271 | Random String in PHP | <p>Hello i want to generate random string in php with repetition like Ag7hlA. is there anyway to do it i am trying this</p>
<pre><code><?php
function random_string($length)
{
$length = (int) $length;
if ($length < 1) return '';
$base = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz123456789";... | php javascript | [2, 3] |
131,087 | 131,088 | how to delete a column in a datatable by a single line in C#? | <p>i have a data table 'A' in a data set with data and i need to get data to another data table 'B' from the data table 'A' without the first column of the data table 'A'</p>
<p>basically i need to drop the first column of the data table and merge it to the second data table.</p>
<p>but this should be done using a si... | c# asp.net | [0, 9] |
1,555,091 | 1,555,092 | Slider Plugin to use Single Image instead of several | <p>I want to implement the following slider into my website: <a href="http://simplewpthemes.com/demo/theme/?wptheme=MahasoliTribune" rel="nofollow">http://simplewpthemes.com/demo/theme/?wptheme=MahasoliTribune</a></p>
<p>Now, as you can see, the slider consists of 5 images. I want to use a single image, but the image ... | javascript jquery | [3, 5] |
2,862,731 | 2,862,732 | Loop through 2 arrays in jquery and combine | <p>I have 2 arrays, one with cities, and another array with ID's...
I would like to loop both, and then output some HTML</p>
<p>Right now im only looping cities, and then appending some HTML to a as following:</p>
<pre><code>if ($jq(".area").length > 0) {
var region = $jq(".hiddenFieldRegion").val();
var... | javascript jquery | [3, 5] |
3,211,448 | 3,211,449 | Process of execution for a program on android | <p>This is to avoid misconceptions in my mind. Please correct the first one and answer second. </p>
<ol>
<li><p>As I know for a simple program in java, a compiler compiles the source code to a Byte code which is interpreted by a virtual machine at <code>run time</code>. Byte code can be understood only by <code>JVM</c... | java android | [1, 4] |
1,550,766 | 1,550,767 | How make JQuery intellisense work in aspx file? | <p>I know how to make the intellisense work in a .js file using this <code>"/// <reference path="jquery-1.3.2-vsdoc.js</code>" />" but how to make it work in an aspx file.</p>
<p>I writing some jquery code in the page html itself and want to make the intellisense work there</p>
| asp.net jquery | [9, 5] |
5,235,022 | 5,235,023 | ClientScript.RegisterStartupScript in footer | <p>Can we call:</p>
<pre><code>ClientScript.RegisterStartupScript(typeof(Page), "KyAUIDFCS", "<script language='javascript' type='text/javascript'>slidershow();</script>");
</code></pre>
<p>in user control, how can we implement this let me know because there page object in usercontrol. Are there any alter... | c# asp.net | [0, 9] |
519,103 | 519,104 | Reduce jQuery functions | <p>Is there a way to reduce jQuery to functions that I need.</p>
<p>In this case, I only want to use getJSON with the callback function. I don't need anything else of jQuery. Is there any way to cut this out?</p>
<p>Thanks,
Mike</p>
| javascript jquery | [3, 5] |
6,015,781 | 6,015,782 | jqueryte rich text editor [img src] | <p>I'm trying to use this rich text editor: <a href="http://jqueryte.com" rel="nofollow">jqueryte</a>
The problem is that it does not create the image link as it supposed to;
Anyone knows about this issue? Or I'm doing something wrong...</p>
<p>This is the <a href="http://jqueryte.com/demos" rel="nofollow">live demo</... | javascript jquery | [3, 5] |
1,243,885 | 1,243,886 | ArrayList creation: (some object) cannot be stored in an array of type java.lang.Object[] | <p>Usually, the code block works perfect. On very rare occasions though, the "new ArrayList" throws an Exeption <strong>my.namespace.CacheEntry cannot be stored in an array of type java.lang.Object[]</strong>.</p>
<p>Checking Google, someone else seemed to get this exception on an Acer A500 with 3.1 (which is the devi... | java android | [1, 4] |
4,973,431 | 4,973,432 | How to save pages with unique names? | <p>i am using C# and sql database. In db is stored information about items - id, name, etc.</p>
<p>Now i have a page to show items, that i use as a template and pass Item id in the url like /Item.aspx?id=223.
I would like to create pages for every item and save them to folder like /Items/Red-Book.aspx.
Any suggestions... | c# asp.net | [0, 9] |
1,664,156 | 1,664,157 | The base class includes the field 'btnLogin', but its type (FoodOrder.App_Code.LinkButtonDefault) is not compatible | <blockquote>
<p>The base class includes the field
'btnLogin', but its type
(FoodOrder.App_Code.LinkButtonDefault)
is not compatible with the type of
control
(FoodOrder.App_Code.LinkButtonDefault).</p>
</blockquote>
<p>aspx:</p>
<pre><code><%@ Register Namespace="FoodOrder.App_Code" TagPrefix="ac1" %>... | c# asp.net | [0, 9] |
4,348,569 | 4,348,570 | Ensure that the next function starts when the previous is complete. Keep all of the target elem's registered events disabled until the job is done | <p>I have this markup:</p>
<pre><code><span class="click">click</span>
<div><span>first child</span>, <span>second child</span>, <span>third child</span></div>
</code></pre>
<p>After clicking ".click" (let's call it "target"), I want:<br>
1. add " done" html... | javascript jquery | [3, 5] |
1,836,959 | 1,836,960 | Why am I losing the Session here? | <p>I have a page with a button that when I click, it retrieves data from a database and stores it into a datatable and binds it to a GridView. This datatable is stored in a Session variable. I also have a button that exports specified columns from the datatable to an excel file, but when I click the export button a s... | c# asp.net | [0, 9] |
4,587,371 | 4,587,372 | jquery/js - i have a bunch of values (strings). i want to send it to another url via POST, how do i do this? | <p>i have this (simplified)</p>
<pre><code><script>
dataToSend = 'dummy data here';
function sendIt() {
//code here
}
</script>
<a href='#' onclick='sendIt();'>Click here to send data</a>
</code></pre>
<p>what would i need to put in sendIt() to do a POST submit (not ajax, i want the use... | javascript jquery | [3, 5] |
2,746,156 | 2,746,157 | what the meaning of plus operator in this JQUERY scripts | <p>I want to ask mean of plus operator in this script +i+ in the follow:</p>
<pre><code>i=0;
// next line in scripts write this code :
$('.container[data-id='+i+']').hide(); // +i+ what the meaning of it
</code></pre>
<p>Need Help thanks a TON</p>
| javascript jquery | [3, 5] |
1,334,401 | 1,334,402 | How can I hook up a row delete button to my GridView_RowDeleted event? | <p>I have created a <code>GridView</code> and set its header:</p>
<pre><code><asp:GridView ID="ProductsGridView"
DataSourceID="ProductsDataSource"
AllowPaging="True"
AutoGenerateColumns="False"
runat="server" CellPadding="4" ForeColor="#333333" GridLines="None"
AutoGenerateDeleteButton="True"... | c# asp.net | [0, 9] |
2,565,929 | 2,565,930 | How to add space for Label text dynamically in asp.net | <p>Hi all i am trying to add an image dynamically to a <code>Label</code> as follows which works fine, but i would like to add a <code>space</code> after the image and i would like to write mt required text i tried as follows but i am unable to find space between image and text </p>
<pre><code>Label1.Text = "<img s... | c# asp.net | [0, 9] |
3,773,602 | 3,773,603 | making a set of objects drag together with jquery | <p>I have a jquery object which has a bunch of things in it.</p>
<pre><code>var $item = $();
$("div.t2").click(function(){
$item = $item.add(this);
$(this).css("background-color","red");
});
</code></pre>
<p>Now i want to move the items all togeher fluidly, maintaining their relationship to each other.</p>
<... | javascript jquery | [3, 5] |
4,277,772 | 4,277,773 | Android - Override method from higher API version and supporting lower API version | <p>I'd like to listen for a long key press in my Android application, and from Android 2.0 there is a method</p>
<pre><code>public boolean onKeyLongPress(int keyCode, KeyEvent event)
</code></pre>
<p>to override. But what can I do if my app absolutely has to support API 4 (Android 1.6)? I know that I can call API met... | java android | [1, 4] |
5,299,232 | 5,299,233 | Should I make a local variable $this when accessing $(this) multiple times? | <p>Example:</p>
<pre><code>$("#footer-create-nav li").click(function () {
var $this = $(this);
$this.addClass('footer-create-active');
$this.siblings().removeClass('footer-create-active');
return false;
}
</code></pre>
<p>vs how alot of my code looks:</p>
<pre><code>$("#footer-create-nav li").click(f... | javascript jquery | [3, 5] |
5,355,398 | 5,355,399 | export gridview data to pdf | <p>its throwing error like document has no pages.</p>
<p>i have written code like this.</p>
<pre><code>protected void Button4_Click(object sender, EventArgs e)
{
Response.ContentType = "application/pdf";
Response.AddHeader("content-disposition","attachment;filename=GridViewExport.pdf");
Response.Cache.Set... | c# asp.net | [0, 9] |
6,016,253 | 6,016,254 | What does '!!' do in Javascript? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/784929/what-is-the-operator-in-javascript">What is the !! operator in JavaScript?</a> </p>
</blockquote>
<p>Seen in jQuery's <a href="https://github.com/jquery/jquery/blob/master/src/ajax.js" rel="nofollow" titl... | javascript jquery | [3, 5] |
1,677,359 | 1,677,360 | How to efficiently send large files from the database to the browser? | <p>In my web application I am working with files. Some files are very large. I use <code>Response.Write()</code> to write the file to the browser. This goes well for the smaller files, but for large files this can take a while and the bandwidth is fully used. </p>
<p>Is it possible to split large documents and send it... | c# asp.net | [0, 9] |
4,391,497 | 4,391,498 | Java Script Undefined Error in mozilla? | <p>I use the following Javascript function.It will not work.It will give the <strong>Undefined Error</strong> in the following line, <code>c= row.cells[0].innerText.strip();</code></p>
<pre><code>function a()
{
var table = getServerObject("b");
var row,c;
for (var i = 2; i < table.rows.length - 1; i++)... | javascript asp.net | [3, 9] |
5,708,406 | 5,708,407 | Run custom Javascript whenever a client-side ASP.NET validator is triggered? | <p>Is there a way to run some custom Javascript whenever a client-side ASP.NET validator (RequiredFieldValidator, RangeValidator, etc) is triggered? </p>
<p>Basically, I have a complicated layout that requires I run a custom script whenever a DOM element is shown or hidden. I'm looking for a way to automatically run t... | asp.net javascript | [9, 3] |
5,616,364 | 5,616,365 | beforeSend, error return from php page | <p>I have an ajax with beforesend, but if an error occurs on page data.php, with feedback, "erro1" prostrate an alert warning that rushed to a user error in this request.</p>
<p>I would be very grateful for the help.</p>
<p>Code.</p>
<pre><code>$.ajax({
type: 'post',
url: 'data.php',
data: 'add=1',
beforeSen... | javascript jquery | [3, 5] |
200,370 | 200,371 | Fixed header navigation and scrollTo() next/previous elements | <p>First off I use this code to make the navigation bar always stay fixed;</p>
<p>After adding CSS position absolute:</p>
<pre><code>var yOffset = $("#header").offset().top;
$(window).scroll(function() {
if ($(window).scrollTop() > yOffset) {
$("#header").css({
'top': 0,
'positi... | javascript jquery | [3, 5] |
4,281,413 | 4,281,414 | How do I convert Byte Array response from WebClient to Xml? | <p>I am calling a third party service and they send the response as Xml. However, as I am using WebClient to call the service the response I get is a byte array. </p>
<pre><code>var client = new WebClient();
var result = client.UploadValues(post_url, data);
</code></pre>
<p>result is a byte array. How do I convert it... | c# asp.net | [0, 9] |
4,240,520 | 4,240,521 | Targeting plain text with jQuery | <p>I'm trying to isolate (and then manipulate) quote block formatted in common newsreader and email-client manner.</p>
<p>The HTML:</p>
<pre><code><p>
Hello there!
<br />
I'm great, how are you?
<br />
<br />
Someone wrote:
<br />
> Greetings,
<br />
> How... | javascript jquery | [3, 5] |
5,633,362 | 5,633,363 | How to return a value from a inner class? | <p>My code is here:</p>
<pre><code>public static boolean showConfirmationDialog(Context context, String title, String dialogContent) {
AlertDialog.Builder builder = new AlertDialog.Builder(context);
builder.setIcon(android.R.drawable.ic_dialog_alert);
builder.setTitle(title);
builder.se... | java android | [1, 4] |
1,967,266 | 1,967,267 | How do I stop the page from reloading when clicking on tabs? (jQuery) | <p>I am have an issue with the page reloading. I have written a simple jQuery script that will tab through content. You can see it in action here: <a href="http://www.jonathanmaloy.com/tabstack/" rel="nofollow">http://www.jonathanmaloy.com/tabstack/</a></p>
<p>The problem is that the page reloads and starts back at th... | javascript jquery | [3, 5] |
2,125,203 | 2,125,204 | Call a javascript function from c# static method | <p>I am using the below client script in aspx code behind to call a javascript function. But the below client script in public static method so i got the error in registerstartupscript first argument.My older post is here <a href="http://stackoverflow.com/questions/14978332/call-non-static-function-from-static-function... | c# asp.net | [0, 9] |
1,181,032 | 1,181,033 | get the first tr that contains tds | <p>In jquery how do I get the first table row that contains <code><td>s</code></p>
<p>So far my code looks like this but its not working?</p>
<pre><code>$('#mytable tr').has('td:first').html();
</code></pre>
<p>thanks</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.