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,309,404 | 4,309,405 | how can i get the source address of an uploaded file in asp.net c# | <p>I need the actual location of the file that i have just uploaded via a file upload control in asp.net. I've tried using </p>
<pre><code>string fileName = Path.GetFullPath(fUpldGetDoc.PostedFile.FileName);
</code></pre>
<p>but this returns</p>
<pre><code>C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\ang... | c# asp.net | [0, 9] |
2,528,660 | 2,528,661 | Showing/hiding the next div on mouseover of the previous div | <p>This is my php code:</p>
<pre><code>echo '<div class="code" rel="$url">$title</div>
<div class="tip">Copy and open site</div>';
</code></pre>
<p>the above is a loop's echo result. Namely, there maybe 0->n like the following html structure</p>
<pre><code><div class="code" rel="...."&... | php jquery | [2, 5] |
4,943,393 | 4,943,394 | Drop-down OnChange | <p>i need help about how i can run a MySQL query (using PHP) everytime, when Drop-down is changed,the query is this one :
<code>$sql = "TRUNCATE TABLE rabid_ratings";
$re = mysql_query($sql) or die(mysql_error());</code></p>
<p>So i dont need to pass any variables, just run it when drop-down is changed. Thank you guy... | php javascript | [2, 3] |
1,093,314 | 1,093,315 | Jquery multiple forms in same page | <p>I have the following dynamically generated HTML</p>
<pre><code><div id="1">
<form name = "inpForm">
<input name="FirstName" type="text"/>
<input type="submit" value="Submit"/>
</form>
</div>
<div id="2">
<form name = "inpForm">
<input name="FirstName" type="text"/... | javascript jquery | [3, 5] |
5,125,711 | 5,125,712 | text assign to textbox onclik hyperlink | <p>i have problem on jquery onclick. when onclick happen on a link text box value should fill with the some hard coded text.</p>
<p>ex </p>
<pre><code> $('#linkBase').click(function() {
$('#txtFormula').val("txnword");
});
</code></pre>
<p>problem is i want to rep... | javascript jquery | [3, 5] |
4,035,453 | 4,035,454 | Cross Browser Mouse Follow? | <p>My client has requested that they they want a football to follow the mouse on their site. Totally stupid if you ask me, but he's determined to get it done.</p>
<p>Problem is all the scripts I have found are old school and are not cross browser.</p>
<p>Does anyone know of a solution either in JavaScript or jQuery t... | javascript jquery | [3, 5] |
3,002,619 | 3,002,620 | IPhone application development in java? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/1193524/can-we-run-java-applictions-on-iphone">Can we run Java applictions on iPhone?</a> </p>
</blockquote>
<p>Does IPhone4 supports Java? Can we write any app using Java for IPhone?</p>
| java iphone | [1, 8] |
64,629 | 64,630 | Sequence multiplication in c# | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/3754582/is-there-an-easy-way-to-return-a-string-repeated-x-number-of-times">Is there an easy way to return a string repeated X number of times?</a> </p>
</blockquote>
<p>In Python you can multiply sequences like... | c# python | [0, 7] |
2,463,422 | 2,463,423 | how can I check to see if my <select> element contains the multiple attribute | <p>hi I have tried many options to check if the multiple attribute is set in my select box but none have worked. I am trying to determine if the current select box that I am getting values from is a multiple select so far this is what I have tried:</p>
<pre><code>if($(":select[multiple]").length){
alert("wo... | javascript jquery | [3, 5] |
2,013,210 | 2,013,211 | Check what holds in [object Object] in jQuery | <p>I am using a jQuery plugin which returns the object, for example using the below code.</p>
<pre><code>onSuccess: function(data, status){
alert(data);
}
</code></pre>
<p><strong>returns [object Object]</strong> </p>
<p>as it is returning the object i would like to know how do i check all the contents that hold... | javascript jquery | [3, 5] |
5,551,438 | 5,551,439 | pass a javascript via ajax and process with php | <p>I need to pass a javascript object , info is a javascript object.</p>
<pre><code>register.php?t="+accessToken+"&u="+info
</code></pre>
<p>in php i tried to change </p>
<pre><code>$data = $_GET['u'] ;
var_dump($data);
</code></pre>
<p>It's not working help me to slove,</p>
| php javascript | [2, 3] |
2,985,713 | 2,985,714 | selecting field text with javascript | <p>I am using the below code to select a fields text with JavaScript but it doesn't quite work:</p>
<pre><code>//auto select that fields text for easy COPY
var content = parent.document.getElementById('share_field_<?php echo $id; ?>');
content.focus();
content.select();
</code></pre>
<p>Field to select:</p>
<... | php javascript | [2, 3] |
3,636,173 | 3,636,174 | How to remove a live submit event in jQuery? | <p>I have two forms on our site #footer_leads and #footer_leads2 and i have a live submit event but need to verify a few things before the form gets summitted so i have this code</p>
<pre><code>$('#footer_leads2, #footer_leads').live('submit', function(e){
e.preventDefault();
console.log('again'); ... | javascript jquery | [3, 5] |
5,324,789 | 5,324,790 | How do I convert several web pages into one pdf document? | <pre><code>public FileResult Download()
{
var doc = new EO.Pdf.PdfDocument();
EO.Pdf.HtmlToPdf.ConvertUrl("http://www.google.com/", doc);
var ms = new MemoryStream();
doc.Save(ms);
ms.Position = 0;
return new FileStreamResult(ms, "application/pdf")
{
... | c# asp.net | [0, 9] |
1,963,001 | 1,963,002 | set value to hidden input with jquery | <pre><code><INPUT Type="hidden" value="" name="testing" />
</code></pre>
<p>I'm trying this : </p>
<pre><code>var test = $("input[name=testing]:hidden");
test.value = 'work!';
</code></pre>
<p>But its not working =\ What's wrong with my code ?</p>
| javascript jquery | [3, 5] |
1,983,291 | 1,983,292 | How to call move right or left in Waterwheel Carousel using jquery? | <p>I am new to jquery and I want to move my Waterwheel Carouselc <strong>left /right</strong> from buttons </p>
<p>suppose I have a button for right movement How can I do this code using Waterwheel Carousel function?
I have tried the following code :</p>
<pre><code>$("#waterwheelcarouseldefault").waterwheelCarousel... | javascript jquery | [3, 5] |
2,275,835 | 2,275,836 | "Invalid postback or callback argument" after new deployment | <p>Recently deployed a project into production and have run into the "Invalid postback or callback argument" error. We haven't encountered this in testing at all and after some research have found that the problem occurs in the following situation:</p>
<ol>
<li>Old version is published and accessed.</li>
<li>New versi... | c# javascript asp.net | [0, 3, 9] |
2,195,255 | 2,195,256 | How can I use the information that's returned after an ajax .fail? | <p>I set up the following:</p>
<pre><code>$.ajax({
cache: false,
url: "/Admin/Contents/GetCitiess",
data: { accountID: AccountID }
})
.done(function (data) {
city.html(data);
})
.fail(function (jqXHR, textStatus, errorThrown) {
ajaxOnFailure(jqXHR, textStatus, errorThrown);
... | javascript jquery | [3, 5] |
110,491 | 110,492 | PHP and Javascript code needed to check if form fields are not empty | <p>Javascript needed to prevent form submit if any of field is empty. all my form fields start names start with name=add[FieldName] those are the fields that need checking.</p>
<p>PHP, backend check before submiting to database double check to make sure all $POST are not empty</p>
| php javascript | [2, 3] |
192,840 | 192,841 | Why cant i output HTML code? | <p>I'm trying to output HTML on my webpages by doing </p>
<pre><code> <p>
@Server.HtmlEncode(elem.Text.ToString().Replace("[BR]", "<br />"));
</p>
</code></pre>
<p><code>[BR]</code> is my coded <code><br /></code> since i wont/cant save html directly. However, the problem is that when ... | c# asp.net | [0, 9] |
2,086,550 | 2,086,551 | aspx GridView filter with javascript | <p>I'm using Asp.net with c# code, VS 2010.
I have a page with a gridview which shows a members list. I would like to use javascript without any ajax to filter the rows in the grid as the user type. For example if the user typed "Jo" then the rows with "John" and "Jonny" will stay and the other ones will be filtered ou... | c# javascript | [0, 3] |
3,908,426 | 3,908,427 | How do I position an element with jQuery | <p>jQuery provides a way to get the position of an element:</p>
<pre><code>var position = myElement.position();
</code></pre>
<p>However, this function is read only.</p>
<p>Is there a way to set the position of my element?</p>
| javascript jquery | [3, 5] |
3,837,243 | 3,837,244 | When to use Request.UrlReferrer and when Request.ServerVariables["HTTP_REFERER"]? | <p>Both returns the incoming url, Just to know When to use <code>Request.UrlReferrer</code> and when <code>Request.ServerVariables["HTTP_REFERER"]</code> and why?</p>
<p>Currently, in one of my application Urlreferrer is working in my local machine but its not working when went live?</p>
<p>Additionally, its most app... | c# asp.net | [0, 9] |
2,296,470 | 2,296,471 | Let object "invoke" function in JavaScript | <p>I wasn't sure of the title, but I hope you will be able to help me.</p>
<p>I want to use kinda the same pattern that jQuery uses for their event handlers, like click/hover/blur etc, where you use <code>this</code> inside the event handler to get the object.</p>
<p>How do I accomplish this?</p>
<pre><code>// The e... | javascript jquery | [3, 5] |
2,643,187 | 2,643,188 | Stop recursion and start over | <p>I have the following function, that is called once in my program. When there is no user interaction it starts over again and again by recursion when the array is printed out. But when a user clicks on a link the function shall be stopped first (no more output from the array) and then be started again with new parame... | javascript jquery | [3, 5] |
5,631,817 | 5,631,818 | Revealing div using jQuery show() - what happens for those with JS disabled? | <p>I have a module on my website that loads quite strangely, so I want to hide the div while the page loads, then reveal it on document ready. The following (simplified) code works just fine:</p>
<pre><code><div class="slideshow" style="display:none;">
This div should be hidden during load
</div>
<sc... | javascript jquery | [3, 5] |
1,342,235 | 1,342,236 | List assets in a subdirectory using AssetManager.list | <p>My application has an assets directory in which I've dumped a bunch of text files I need to load at runtime.</p>
<p>I have a directory full of assets of a particular type (i.e., "assets/subdir") and I want to load all of the files in this directory, one at a time.</p>
<p>I have code like this:</p>
<pre><code>
Ass... | java android | [1, 4] |
1,288,478 | 1,288,479 | capturing f5 keypress event in javascript using window.event.keyCode in window.onbeforeunload event is always 0 and not 116 | <p>i am creating an MVC application.There was a neccessitity to make a variable in a session to null upon closing of the application (i.e. window/tab) but not upon refreshing the application.
I tried it through the following code.</p>
<pre><code><script type="text/javascript">
window.onbeforeunload =... | javascript jquery | [3, 5] |
952,260 | 952,261 | Android - using Java generics to return ArrayList of derived class | <p>I have an android app with a Business Object (let's call it SuperClass) that has several derived classes (let's call them DerviedClassA, DerivedClassB etc). Each object has a constructor which takes a Cursor object with multiple rows and assigns appropriate properties based on the <em>current row in the cursor</em><... | java android | [1, 4] |
916,130 | 916,131 | How to get a field value in a DetailView | <p>i am trying to get access to a field in a detailview and display it in a label. Note, i have converted the field into a templdate field. I am not getting anything in the Output label. what am i doing wrong here? thanks</p>
<pre><code>if (this.DetailsView1.DefaultMode == DetailsViewMode.Edit)
{
... | c# asp.net | [0, 9] |
2,098,175 | 2,098,176 | PHP code fails in main server | <p>I have integrated a Pop up window(new browser window) control on click of a link. It works
really well on local server(PHP 5.3) but not in the main server(PHP 5.1)</p>
<p>Here's the Javascript code to pop up window</p>
<pre><code>window.open ('http://www.xyzsite.com/edo/hints.php?Para1='+hin, '', 'width=250,height... | php javascript | [2, 3] |
2,892,618 | 2,892,619 | Email formating using System.Net.Mail smtpclient | <p>How do I format the body of the email so it doesn't look so old school :)
I've tried sending html through it, but it just comes out as html in the body of the email.</p>
<p>Thanks for any help and assistance, cheers!</p>
| c# asp.net | [0, 9] |
120,347 | 120,348 | Using $(this) in setTimeout(); | <p>I want to set timeouts dynamically in jQuery. The dynamically set timeout functions need to use $("this"), but I can't seem to get it working.</p>
<p>An exmple:</p>
<pre><code>$("div").each(function(){
var content = $(this).attr('data-content')
setTimeout("$(this).html('"+content+"')",$(this).attr('data-de... | javascript jquery | [3, 5] |
5,884,263 | 5,884,264 | Why is this javascript function running without being called? | <pre><code>$(document).ready(SetupButtonClicks());
function SetupButtonClicks() {
$('#btnJavaPHP').click(DoPHPStuff());
}
function DoPHPStuff() {
//stuff
}
</code></pre>
<p>I have this code in my javascript file, when I debug it I see it call <code>SetupButtonClicks()</code> like it should but after that is ... | javascript jquery | [3, 5] |
58,117 | 58,118 | javascript test if div has text in it | <pre><code>1. <div id="div_Msg"> Test the div </div>
2. <div id="div_Msg"> </div>
</code></pre>
<p>In the first instance there is the text in the div. In the second instance there is no text. Using javascript how can it be tested if a div has text in it.</p>
| javascript jquery | [3, 5] |
1,222,439 | 1,222,440 | How to Open the dialog pop up in my Controller code | <p>I have this div in my master page.</p>
<pre><code> <div id="UICancelChanges" title="Are you sure?" style="display: none;">
Your changes have not been saved. Are you sure you want to CANCEL ?
</div>
</code></pre>
<p>On click I am just opening Jquery dialog popup window..</p>
<pre... | javascript jquery | [3, 5] |
265,023 | 265,024 | How do you display a JavaScript alert from PHP? | <p>I don't code in PHP, but I have this form which I pulled off the web and its working great:</p>
<p>What I would like to do is somehow add some code in here that can fire up a JS script, simple alert box, saying "Thank you form is submitted". After the form was received by this mailer.php file.</p>
<pre><code><?... | php javascript | [2, 3] |
1,766,408 | 1,766,409 | Post large data in C# | <p>I have the following scenario</p>
<ol>
<li>Have a web browser control which uses the Navigate method to call a web page. I have the need to post a large number of elements via FORM POST. The number of elements can be either 40-100 elements.</li>
</ol>
<p>Is it advisable to encode this and send it via the the Navig... | c# asp.net | [0, 9] |
4,320,002 | 4,320,003 | Displaying multiple images with image control in asp.net 3.5 | <p>I want to display all the images from given directory. For that i have given image controls to display images, but i want to display images control with that url automatically as per images in that directory. Suppose in my directory 5 images are present then 5 image controls should be display in my button click even... | c# asp.net | [0, 9] |
5,907,680 | 5,907,681 | Starting Android app on hotkey? | <p>I have such question, can I start my android app, via pressing, for example, home button for three times, or something. I'm interested in starting up, exactly, using hardware buttons (home, back, menu, volume +/-, power, camera ...) ?? Any ideas??</p>
| java android | [1, 4] |
1,992,334 | 1,992,335 | bar chart in php,jquery | <p>i want to make bar chart,but i want to write dynamic text on bar itself.</p>
| php jquery | [2, 5] |
2,351,096 | 2,351,097 | Microsoft JScript runtime error: Could not complete the operation due to error c00ce514 | <p>I wrote a file download code but i get this error when i start it in my projects. Only this code works perfectly fine. But in complex project this error occurred. Can you help about it ?
Here is download code</p>
<pre><code>string fileUrl = @filePath + "\\" + _DownloadableProductFileName;
string newFile... | c# asp.net | [0, 9] |
1,225,040 | 1,225,041 | getting a value along with html markup returned by Ajax in Jquery | <p>I use the following to retrieve some html using Jquery:</p>
<p>index.php</p>
<pre><code>$.post(
'get-products.php',
$("#offerForm").serialize() + '&lastid=' + highest,
function(data) {
$('#demo').html(data);
}
</code></pre>
<p>Is it possible to also retrieve a value of a... | javascript jquery | [3, 5] |
2,582,911 | 2,582,912 | Exception java.lang.ClassCastException when query contacts | <p>I was trying to get the contacts using a query through the ContactsContract
The following code throws an exception.
java.lang.ClassCastException.</p>
<pre><code>public class ContactManager extends Activity{
ArrayList<String> contactsList = new ArrayList<String>();
@Override
public void onCr... | java android | [1, 4] |
2,202,713 | 2,202,714 | Android/Java - Find text and replace in WebViewClient | <p>I have a WebViewClient that opens in a dialog which i can capture when the URL changes, but on certain URL's I would like to replace certain text but I cant seem to figure out how to get the text of the current webpage that has been loaded so I can search and replace that text.</p>
| java android | [1, 4] |
5,948,624 | 5,948,625 | Jquery click() function not recognising when a link is clicked | <p>I have a very simple JavaScript operation which is just not working. I'm using the twitter-bootstrap CSS, and am attempting to implement the close of the close message box. I have my code here:</p>
<p><a href="http://jsfiddle.net/YQgpe/" rel="nofollow">http://jsfiddle.net/YQgpe/</a></p>
<p>HTML</p>
<pre><code><... | javascript jquery | [3, 5] |
508,218 | 508,219 | manipulate css on multiple spans with javascript | <p>I am trying to manipulate spans based on what is contained in them. on my company's ecommerce site there are two spans that contain the price of an item and the sale price of an item. not all items have sale prices. problem is the original price span is shown with the text-decoration set to line-though regardless of... | javascript jquery | [3, 5] |
5,860,827 | 5,860,828 | How to refresh currentpage with specific querystring value (c#) | <p>I have a problem with a simple error notification when I delete a specific product.</p>
<p>I have one page products.aspx
I have 2 categories
- Mobile (cat 1)
- Net (cat 2)</p>
<p>When i delete a specific product from a specific category I have a notification coming up "your product has been deleted..."... | c# asp.net | [0, 9] |
2,941,964 | 2,941,965 | Not able to download image using HttpURLConnection | <p>I am trying download file <a href="http://images.anandtech.com/doci/5434/X79%20Extreme9Box_575px.jpg" rel="nofollow">http://images.anandtech.com/doci/5434/X79%20Extreme9Box_575px.jpg</a></p>
<p>but not able to download it using HttpUrlConnection, ImageIO.read and even in php using file_get_contents.</p>
<p>I am no... | java php | [1, 2] |
2,559,938 | 2,559,939 | Where can I find a Java to C# converter? | <p>I needed to convert a Java 1.5se app to C# 2.0.</p>
<p>Does anyone know of a tool (preferably free/open source) to do this?</p>
| c# java | [0, 1] |
3,775,579 | 3,775,580 | Can't set element ID in JavaScript, it's always undefined | <p>I want to have a function that generates ID's on the fly for a given jquery object, if it doesn't have one already. These ID's should then be used in future requests.</p>
<p>I came up with the code below, but it doesn't work. The ID's are never set. The commented out alert statement below always return undefined.</... | javascript jquery | [3, 5] |
5,931,492 | 5,931,493 | Javascript is working fine but not in jQuery | <p>This code works fine for me in Javascript.</p>
<pre><code>function check_u() {
var errormessage = document.getElementById("errorname");
var user = document.forms["login"]["user"].value;
if (user == null || user == "") {
errormessage.innerHTML = "Please enter your user id";
} else {
e... | javascript jquery | [3, 5] |
3,056,751 | 3,056,752 | restrict end date using start date in jquery | <p>below snippet belongs to select two dates, i have to add another feature for that i.e, end date selection should be limited for one day greaterthan start date </p>
<pre><code>$(function() {
$( "#fromDate" ).datepicker({
defaultDate: "+0",
changeMonth: true,
changeYear: true,
numb... | javascript jquery | [3, 5] |
1,763,895 | 1,763,896 | append PHP in jquery | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/7016701/creating-jquery-ajax-requests-to-a-php-function">Creating jQuery AJAX requests to a PHP function</a> </p>
</blockquote>
<p>How can i write PHP in Jquery </p>
<p>is there is a way to do this </p>
<pre><... | php jquery | [2, 5] |
5,842,085 | 5,842,086 | jquery is select selected | <p>Ok, first off this isn't to find a value of a select boxes selected option. But its along the lines there of. I have a function I am working on that will check to see if the value selected matches that of the one being compared to from somewhere else, where if the match is found it does one thing if not it does anot... | javascript jquery | [3, 5] |
22,823 | 22,824 | Getting commands from string input | <p>I have a program which gets commands as a string. Each character in the string represents a command. An example of command is given below</p>
<pre><code>OBIPC
</code></pre>
<p>O - Open a file</p>
<p>B - Make the text in Bold</p>
<p>I - Make the text in italics</p>
<p>P - Print the text</p>
<p>C - Close the fil... | c# c++ | [0, 6] |
593,335 | 593,336 | jQuery image swap on hover | <p>When you hover over the Dharma arrow image in my sample link, it's meant to replace the bunny picture with the same you're hovering.</p>
<p>I was doing it <a href="http://jsfiddle.net/Kyle_Sevenoaks/3ehnB/" rel="nofollow">here at jsFiddle.net</a></p>
| javascript jquery | [3, 5] |
1,101,380 | 1,101,381 | Android webview with jquery not working | <p>i'm trying to combine some code of jquery on my application webview.</p>
<p>i'm saving on my assets folder the files:
1. jquery-1.8.1.js
2. a.js
3. b.js</p>
<p>all those files working together.</p>
<p>im getting html code from server and i'm saving it on file on the sd-card, that file called test.html.</p>
<p>be... | javascript android jquery | [3, 4, 5] |
1,598,495 | 1,598,496 | Javascript: displaying fancy alerts with javascript file | <ul>
<li>I have an Javascript file(<code>handler.js</code>) while is basically an ajax request/response cycle</li>
<li>On receiving data, I do <code>alert(data)</code> and it works fine</li>
<li>I want to show fancy alerts like one in Jquery, how can I create fancy alerts from with in <code>handler.js</code>?</li>
</ul... | javascript jquery | [3, 5] |
914,311 | 914,312 | How to Delete a file using asp.net? | <p>to all
i write the code in asp.net using c# to delete the file in my computer, but it is not deleting please help me thank u. this is my code, i write in button click event</p>
<pre><code> string path = "E:\\sasi\\delt.doc";
FileInfo myfileinf = new FileInfo(path);
myfileinf.Delete();
</co... | c# asp.net | [0, 9] |
2,083,109 | 2,083,110 | jQuery .nextUntil() equivalent | <p>I need an alternative for jQuery's <code>.nextUntil()</code>. I'm currently using <code>jQuery 1.3.1</code> and updating it is out of the question :(</p>
<p>I have this HTML:</p>
<pre><code><h4>...</h4>
<p>...</p>
<p>...</p>
<p>...</p>
<h4>...</h4>
<p&... | javascript jquery | [3, 5] |
2,094,167 | 2,094,168 | if condition onclick - jQuery | <pre><code>$('.product-nav li a').click(function() {
$('.product-nav li').removeClass('active');
$(this).parent().addClass('active');
if( $(this).hasClass('tshirts') ){
$('product').hide();
$('.product.tshirt').show();
}
});
</code></pre>
<p>.. active class is assigned correctly but the products are no... | javascript jquery | [3, 5] |
5,594,846 | 5,594,847 | Why doesn't my find and replace code work properly? | <p>I need to find and .replaceWith some text, for example:</p>
<blockquote>
<p><strong>absdef</strong> replace with <strong>111111</strong></p>
<p><strong>abcdefgiop</strong> replace with <strong>22222222</strong></p>
</blockquote>
<p>But when my text looks like </p>
<blockquote>
<p>abcdef, abcdefgi</p>
</b... | javascript jquery | [3, 5] |
3,685,859 | 3,685,860 | jQuery keydown/keypress not working right | <p>So I haven an input:</p>
<pre><code><input type="text" name="in" />
</code></pre>
<p>And I need to get the current <code>value</code> of the input as I type, the problem that I face is, if I type <code>pass</code> and I do a console.log what I will get will be <code>pas</code> missing the last character; but... | javascript jquery | [3, 5] |
3,379,599 | 3,379,600 | Button to close application if user does not accept terms | <p>ok I've search all over the web for a solution to this. </p>
<p>I'm a newbie so please bear with me.</p>
<p>I have a application that requires a user to agree to a EULA which is a activity that I created. I have a accept and cancel button, when the accept button is pressed it stores data inside the sharedpreferenc... | java android | [1, 4] |
100,713 | 100,714 | Get width of control with not set width | <p>I have gridview and chart below it.</p>
<p>I want gridview stretch depending on number of columns (not set width) and after that to assign that width to chart.</p>
<p>If I do:</p>
<pre><code>chart.Width = gridview.Width.Value;
</code></pre>
<p>I get 0.0 pixels.</p>
| c# asp.net | [0, 9] |
5,754,410 | 5,754,411 | Set textbox value inside grid | <p>Anyone know how to set value textbox inside grid when edit mode is on?
1. i have textbox name aggregation :
2. i just want to set some value to those textbox when edit mode is on by button. so i have button :
3. i need to define those code in javascript ex setValue() :</p>
<pre><code>function setValue() {
var ... | javascript asp.net | [3, 9] |
4,970,468 | 4,970,469 | Adding list controls to panel in c# | <p>I have a panel .
in my Db i have a list of persons ..
for each person in run time i add different attributes under them .
i want all the persons to be list as a list (separate list for each person ) . i will add values later . </p>
<p>here is my .aspx code</p>
<pre><code> <asp:Panel ID="DR_list" runat="serve... | c# asp.net | [0, 9] |
3,827,759 | 3,827,760 | Downloading and decompress a zip-file in the background? | <p>I need to download a zip file and unpack it, in the background (in an AsyncTask I'd imagine).</p>
<p>As it is now, I've got a DefaultHTTPClient set up, and a ZipInputStream ready to go, but here's where I am stuck - I have no idea how to use these two together. Here's the relevant code in the AsyncTask:</p>
<pre><... | java android | [1, 4] |
4,128,660 | 4,128,661 | how do I send data from one php file to another? | <p>I have a button on a file test.php</p>
<pre><code><?php
$url="http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
?>
<input type="button" name="btn" value="Download" onclick="alert('<?php echo $url; ?>')">
</code></pre>
<p>when the file is clicked, it alerts the page's url.</p>
<p>I have ano... | php javascript jquery | [2, 3, 5] |
4,561,313 | 4,561,314 | Javascript object array comparison | <p>I have two array of objects in javascripts. Like <code>arr1[] = {emp1,emp2,emp3}</code> where inturn <code>emp1</code> has <code>emp1.name</code> and <code>emp1.address</code> as property. </p>
<p>Something like </p>
<pre><code>arr1={object {name='a',address='b'} {name='c',address='d'} {name='e',address='f'} }.
... | javascript jquery | [3, 5] |
54,234 | 54,235 | Best way to create master page that has menu and links but displays main content from other pages | <p>I've got a bunch of asp pages that I'm upgrading to asp.net. I'm trying to figure out a good way to achieve the following:</p>
<p>I basically wan't a portal page that has a menu bar and links to other sites in the company intranet but instead of redirecting to the other site when the link is clicked, it loads the p... | c# asp.net | [0, 9] |
2,924,891 | 2,924,892 | How to put js link? | <p>I have link with jQuery post action:</p>
<pre><code>$.post('my_url', {
'pid': pid,
'name': $('input#nametxt').val()
}, function(data){
$('#list').append(data);
});
</code></pre>
<p>Respose from server is for example:</p>
<pre><code><li>My custom name <a href="javascript:add_another('23');">... | javascript jquery | [3, 5] |
5,061,307 | 5,061,308 | How the method resolution and invocation works internally in Python? | <p>How the methods invocation works in Python?
I mean, how the python virtual machine interpret it.</p>
<p>It's true that the python method resolution could be slower in Python that in Java.
What is late binding?</p>
<p>What are the differences on the reflection mechanism in these two languages?
Where to find good re... | java python | [1, 7] |
1,111,962 | 1,111,963 | jQuery: How does functions works just by dots (.) | <p>Since I learned jQuery I've always wondering how does jQuery execute a function after another just by adding dots <code>.</code> (dont know it real name, sorry for that);</p>
<pre><code>$("#somediv").fadeIn("fast").css("background","blue");
</code></pre>
<p>When fade effect finished then the CSS function execute. ... | javascript jquery | [3, 5] |
2,472,528 | 2,472,529 | Automatic Java to C++ conversion | <p>Has anyone tried automatic Java to C++ conversion for speed improvements? Is it a maintenance nightmare in the long run?
Just read that is used to generate the HTML5 parsing engine in Gecko <a href="http://ejohn.org/blog/html-5-parsing/" rel="nofollow">http://ejohn.org/blog/html-5-parsing/</a></p>
| java c++ | [1, 6] |
6,026,657 | 6,026,658 | Inserting PHP variable value in Javascript file | <p>I have a JavaScript file which has a hard coded BASEURL variable, this value is then used by other functions in the file.
I would like for this url value to be set dynamically so that I don't need to manually change it for different installs. Is it possible to insert a PHP variable value into a JavaScript file?</p>
| php javascript | [2, 3] |
3,279,768 | 3,279,769 | Javascript Date manipulation | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/1187824/finding-date-by-subtracting-x-number-of-days-from-a-particular-date-in-javascrip">Finding date by subtracting X number of days from a particular date in Javascript</a> </p>
</blockquote>
<p>I have a <a h... | javascript jquery | [3, 5] |
4,282,793 | 4,282,794 | Removing rows that do not contain search-term with jQuery | <p>I'm using the following JQuery to filter rows on a datatable, which works fine...</p>
<pre><code>yuiDtFilter = function(tableDivId, filter) {
//custom jQuery function defines case-insensitive fn:Contains, use default fn:contains for case-sensitive search
jQuery.expr[':'].Contains = function(a,i,m){
... | javascript jquery | [3, 5] |
5,803,323 | 5,803,324 | How to prevent the auto Scroll Event while loading new HTML contents? | <p>I am using window.scroll() function for appending more html contents to the DIV holder while scrolling . I am loading 10..10 each on each scroll event. But after loading the first 10 contents, the document size increasing and accordingly the browser automatically scrolls and calling the loadContent function and appe... | javascript jquery | [3, 5] |
2,063,115 | 2,063,116 | 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] |
1,446 | 1,447 | How do I pass a Linked List of custom objects between activities in an android application? | <p>I need a linked list of custom objects when trying to bundle it I do not see a putObjectLinkedList method is there an easy way of doing this or must implement the Parcable interface in my custom object?</p>
| java android | [1, 4] |
4,859,474 | 4,859,475 | Is it possible to trigger a click event on hover? | <p>General javascript question here, which would also be good to know how(if possible) to do in jquery.</p>
<p>Can you trigger a click event when hovering over an item?</p>
<p>I know there will be people asking why, but please just humour me.</p>
<p>Many thanks,
C</p>
| javascript jquery | [3, 5] |
1,240,710 | 1,240,711 | Select td elements if checkbox is on | <p>I have this table, from which i'd like to select all the <code>td</code> elements value if the checkbox is <code>checked</code> and then put all the elements in some array or string, so that i can transfer it to server side.</p>
<pre><code><table id="tableDg">
<tbody>
<tr>
<td><in... | javascript jquery | [3, 5] |
3,228,291 | 3,228,292 | Binding DataList to Dictionary | <p>I have a Dictionary I want to bind to a DataList. But I also want to use the Dictionary's Key value for the DataList's DataKeyField property. Is this possible?</p>
| c# asp.net | [0, 9] |
2,986,407 | 2,986,408 | Crystal reports repeating the items when i am using the query with dataset | <p>I am new to crystal report. At the time of binding the data from dataset to the crystal report showing twice or thrice.</p>
<p>I am using SQL 2005 and VS 2008.</p>
<p>i checked in SQL and dataset also at the time of debugging but in dataset only i am having 5 records but in my crystal its showing 10 records.</p>
... | c# asp.net | [0, 9] |
4,322,671 | 4,322,672 | How to use .append on a jQuery .load() function | <p>I'm trying to append the data being called rather than replacing it but I'm not sure why .append isn't working.</p>
<pre><code> $('.incoming3').load('t3.html #test3').append;
</code></pre>
| javascript jquery | [3, 5] |
2,843,125 | 2,843,126 | JavaScript timer jump ahead | <p>Hi guys please check this code, first part from innit, second is my timer function. Thanks alot!</p>
<p>I set up a timer for 15min. Save the time in cookies and read saved time on init</p>
<pre><code>var cc=readCookie("agreement");
var ct=readCookie("secondsleft");
if (ct == null || ct == '') {
secondsleft = ... | javascript jquery | [3, 5] |
822,115 | 822,116 | Automatically showing div on mouseover | <p>This is probably a simple problem I'm having, but for the life of me, I can't seem to figure it out. If any of you could help me with this, I would be much obliged.</p>
<p>I'm using JQuery to make a menu appear when a user hovers over a certain div. The menu will be displayed on the top left of the div.
I got this ... | javascript jquery | [3, 5] |
1,607,232 | 1,607,233 | Retrieve within Cookies from C# to jquery | <p>Hello guys i have this problem of getting lastGuestInsertedId from C# cookies in a code behind file to another web form that retrieve lastGuestInsertedId values by jquery and then show the value by alerting. Any ideas?</p>
<p>C# codes</p>
<pre><code> HttpCookie GuestCookie = new HttpCookie("GuestCooki... | c# jquery | [0, 5] |
779,209 | 779,210 | Caching the blur event using jQuery | <p>I need to do something when a blur event is fired from a text box.</p>
<p>The problem is the blur event is also fired when the user presses the "Enter" key
and when the mouse is clicked somewhere else.</p>
<p>I need to do some specific action when the mouse is clicked somewhere else; how would I do it?</p>
| javascript jquery | [3, 5] |
4,223,711 | 4,223,712 | Finding the referring url that brought a user to my site | <h3>Duplicate:</h3>
<blockquote>
<p><a href="http://stackoverflow.com/questions/772780/finding-previous-page-url">Finding previous page Url</a></p>
</blockquote>
<p><hr /></p>
<p>How do I find the referring url that brought a user to my site in ASP.NET?</p>
<p><hr /></p>
<h3>See Also:</h3>
<blockquote>
<p><a ... | c# asp.net | [0, 9] |
4,823,363 | 4,823,364 | How to be a jQuery no.conflict expert? | <p>How to be a jQuery no.conflict expert?</p>
<p>I mostly face jQuery conflict errors with Prototypes JS. and I'm nota jquery expert.</p>
<p>Can I still solve all conflict problems. how to get expertize to solve conflict issues.</p>
<p>How to know whole code is jquery. what if simple javascript and jquery code mixed... | javascript jquery | [3, 5] |
4,478,306 | 4,478,307 | databinding directly to a sqldatasource | <p>in Asp.net C# I'm simply tring to bind a control to a sqldatasource that returns ONE record (one row).</p>
<pre><code><asp:SqlDataSource ID="sqldatasource1" runat="server"
ConnectionString="<%$ ConnectionStrings:ApplicationServices %>"
SelectCommand="SELECT * FROM [Data_Events] WHERE ([Entry_ID] = @Entry_I... | c# asp.net | [0, 9] |
1,946,835 | 1,946,836 | Where can I store user details from a database so I can pull the information on every page? | <p>When a user logins, I want to be able to store all his profile information so I can display, for example, his email on different pages of my website, but I don't want to have to keep querying the database for every time I want to display his email. How would I go about doing this?</p>
<p>Thanks!</p>
| c# asp.net | [0, 9] |
977,149 | 977,150 | Auto fill the values in login form of another website | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/7030426/auto-login-to-other-sites-php-script">auto login to other sites php script</a> </p>
</blockquote>
<p>I need to open login to many other websites frequently.
So I want to save my time of entering login id... | php javascript | [2, 3] |
2,988,209 | 2,988,210 | In Javascript a dictionary comprehension, or an Object `map` | <p>I need to generate a couple of objects from lists in Javascript. In Python, I'd write this:</p>
<pre><code>{key_maker(x): val_maker(x) for x in a_list}
</code></pre>
<p>Another way to ask is does there exist something like <code>jQuery.map()</code> which aggregates objects? Here's my guess (doesn't work):</p>
<pr... | javascript jquery python | [3, 5, 7] |
6,012,759 | 6,012,760 | Html is rendered event | <p>I'm appending some code to my page using jQuery AJAX calls. This code is a mix of html and javascript. But I want javascript to be executed only when html part is ready. But what event is raised when appended html is rendered?</p>
<p>Here is an example:</p>
<pre><code><table id="sampleTable">
...
</tab... | javascript jquery | [3, 5] |
231,603 | 231,604 | Uncaught TypeError: Property '$' of object [object global] is not a function? | <p>I am getting the following error</p>
<blockquote>
<p>Uncaught TypeError: Property '<code>$</code>' of object [object global] is not a function
in line 2:</p>
</blockquote>
<p>Using the following code:</p>
<pre><code>$(document).ready(function() {
$('#tabs > ul').tabs({ fx: { opacity: 'toggle' } });
... | javascript jquery | [3, 5] |
2,238,879 | 2,238,880 | Check if all checkbox is selected == false in asp.net | <pre><code>foreach(Listitem item in CheckboxList1.Items)
{
if(item.Selected == true)
{
return true;
}
}
return false;
</code></pre>
<p>Is there a better way to check if all checkbox selected is false?</p>
| c# asp.net | [0, 9] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.