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,947,679 | 1,947,680 | jQuery - calling function with parameters inside method | <p>I'm wondering how is possible to call a function with parameters inside a method.
I have 2 functions and i'd like to call function deleteCode() when clicked on list element which is created by addCode() function.
I'm sure the solution is really simple, but i just can't see it right now.
Many thanks!</p>
<pre><code... | javascript jquery | [3, 5] |
1,194,715 | 1,194,716 | javascript access xmlhttprequest | <p>I am returning xmlhttprequest and am trying to access xmlhttprequest.responseText</p>
<p>I can use console.log and see the value of xmlhttprequest.state, but when I try to see the value of xmlhttprequest.responseText nothing comes up. Here is the responseText I get when I log the xmlhttprequest object.</p>
<pre><c... | javascript jquery | [3, 5] |
1,430,624 | 1,430,625 | How to create list of color on Java, Android? | <p>I need to create Spinner for list of colors. I will take selected item, get selected color and set this color for another elements. I want to set list of colors in .xml, because I have a few spinners, and want to create resource for it. But if I create a simple list of key -pair , in code I have to create many block... | java android | [1, 4] |
693,325 | 693,326 | Android stop mediaplayer when preparingAsunc | <p>How can I stop media player during loading when I'm using mediaplayer.prepareAsunc(), (after setting path of radiostream).. when I'm finishing activity, it's start playing, after loaded.. how can I stop it during loading? without System.exit(0) method?</p>
| java android | [1, 4] |
566,925 | 566,926 | Porting from xAMP to an MS solution | <p>Recently I had to replace the system we use to create timecards and keep track of employee attendance at our branch. When I first took on this project I was given no requirements and so I proposed making the new system as a webapp using Apache, PHP and MySQL which was accepted. I still have a few features to write ... | php asp.net | [2, 9] |
4,958,063 | 4,958,064 | strange enum problem in c# | <p>I have this enum:</p>
<pre><code>public enum SupportedISOCurrencySymbol { DKK = 208, EUR = 978, NOK = 578, SEK = 752 }
</code></pre>
<p>I save the value for an order in the approved_orders table, Currency field.</p>
<p>I populate the sql insert query with a parameter like:</p>
<pre><code>cmd.Parameters.AddWithVa... | c# asp.net | [0, 9] |
1,321,488 | 1,321,489 | force screen output before a Thread.sleep | <p>If I try to do a screen output (Toast or setContentView) before a Thread.sleep it will not be displayed until after the sleep (or all the sleeps in the thread). This means that if I do an output after the Thread.sleep it will overwrite the first output. If I so a forceLayout on the View before calling the Thread.s... | java android | [1, 4] |
398,583 | 398,584 | I Need An App For My Ecommerse WebSite - Looking For Background Info | <p>I have an eCommerce website that serves a small business. Customers are asking for a mobile app. I built the website myself (html, javascript, VB.net, ASP.net) and I'm constantly tweaking it as we are a new concept and sort of feeling our way forward. I'm not really a programmer - I just taught myself what I need... | android iphone | [4, 8] |
5,996,640 | 5,996,641 | Skipping lines in android java strings | <pre><code> Giveaway Updates - v1.0.0 ------------------------------------- Application has been created---------------------------------------
</code></pre>
<p>I checked the application in the emulator. There is exactly 4 dashes in the same line as giveaway updates in which i wanted to only have giveaway updates th... | java android | [1, 4] |
1,314,932 | 1,314,933 | all text inputs are blank when validating | <p>My question is that how can I get the validation message to appear if there is any blank text input per question?</p>
<p>Here is a fiddle so you can test it: <a href="http://jsfiddle.net/cbyJD/87/" rel="nofollow">http://jsfiddle.net/cbyJD/87/</a></p>
<p>Below is the validation() function code:</p>
<pre><code>func... | javascript jquery | [3, 5] |
3,489,063 | 3,489,064 | update not working | <pre><code>protected void Page_Load(object sender, EventArgs e)
{
txtHidden.Text = Request.QueryString["YKcode"];
Display();
}
private void Display()
{
SqlDataReader reader;
SqlConnection con = new SqlConnection("Data Source=Localhost;Initial Catalog=MLC000022;User ID=sa;Password=Adama6DaY; Integrated ... | c# asp.net | [0, 9] |
5,094,624 | 5,094,625 | Multiplying doubles. Answer keeps rounding | <p>Im trying to multiple a double price variable with a int item quantity variable.</p>
<p>Currently I am having an issue with the correct format to display the result of the calculation. for example:</p>
<p>I have twi items in my database, one has a price value of 2.99, the other 4.00. Each item quantity is 1. this ... | c# asp.net | [0, 9] |
5,724,505 | 5,724,506 | Combining two or more 3gp and mp4 files into a single file | <p>In my project, there is a scenario to combine two or more 3gp or mp4 files into a single file.<br>
I succeeded to combine avi and wmv files using <a href="http://splicer.codeplex.com" rel="nofollow">Splicer</a> from CodePlex</p>
<p>But my requirement is to combine 3gp and mp4 files.
I am using asp.net (c#).</p>
<p... | c# asp.net | [0, 9] |
5,092,220 | 5,092,221 | jQuery reset setInterval timer | <p>My Jquery:</p>
<pre><code>function myTimer() {
var sec = 15
var timer = setInterval(function() {
$('#timer').text(sec--);
if (sec == -1) {
clearInterval(timer);
alert('done');
}
} , 1000);
}
$("#knap").click(function() {
myTimer();
});
$("#reset").click(function() {
/... | javascript jquery | [3, 5] |
3,637,978 | 3,637,979 | PHP devs that moved to Python, is the experience better? | <p>I'm planning on moving to Python and I have a couple of additional questions along with the title:</p>
<ol>
<li>did you have more fun with python?</li>
<li>are you as productive as when you're using PHP?</li>
<li>what made you change to python?</li>
<li>Would you do a project again in PHP? If so, why?</li>
</ol>
<... | php python | [2, 7] |
4,035,964 | 4,035,965 | Trying to edit value of TextView on LongClick -- Almost working | <p>I have two elements (TextView) in my XML layout that when a LongClick is pressed it will prompt the user to enter in a new value and then when the DONE button is clicked it should show the newly inputed value to the tvScoreHome using setText().</p>
<p>When I do a Long Click on the mentioned element the edit field a... | java android | [1, 4] |
2,746,064 | 2,746,065 | Why does my sliding content keep going after one time? | <p><a href="http://roseannebarr.tumblr.com" rel="nofollow">This is my blog</a>, and if you sit for a couple seconds and watch the "Audio" tile, it moves. Another tile appears that says "cat". "Cat" will slide to the left and "Audio" will reappear, and then "Audio" will slide back to the left. However, after this, Audio... | javascript jquery | [3, 5] |
4,569,505 | 4,569,506 | News section snipits | <p>I have created a news section for a website I'm working on. I'd like to show the first few words of the article then a link to the rest. I'm kicking myself because I remember a few months ago seeing an article on exactly how to do this, but I have no idea where I found it. </p>
<p>I know how to grab the first so ma... | c# asp.net | [0, 9] |
5,711,944 | 5,711,945 | jquery ui Autocomplete causing error with headers | <p>I'm getting an error when trying to redirect. It only started after I installed a search box with autocomplete. When I pull the bit of code out, the page redirects properly again. I know it isn't my php.ini settings.</p>
<p>This is the error I'm getting:</p>
<blockquote>
<p>Warning: Cannot modify header informat... | php javascript jquery | [2, 3, 5] |
2,631,450 | 2,631,451 | Passing javascript parameter from codebehind error | <p>I use this script to call a javascript from codebehind.</p>
<pre><code>ClientScript.RegisterStartupScript(this.GetType(), "Exist", "<script language='javascript'>ConfirmRedirect('" + url + "','" + msg + "');</script>", true);
</code></pre>
<p>and my javascript code is</p>
<pre><code>function ConfirmRe... | javascript asp.net | [3, 9] |
4,625,122 | 4,625,123 | Hide the span with a class name jquery | <p>I am stuck on what to do when hiding a span that has a certain class name. I can't use <code>this</code> because it refers to the input. Here is my script:</p>
<pre><code>//uncheck all checkboxes
$("input[type=checkbox]").prop("checked", false);
$("input[type=checkbox]").each( function (index) {
$(this).addC... | javascript jquery | [3, 5] |
4,881,326 | 4,881,327 | Sending multiple PHP files with AJAX | <p>Usually when I want to create new content in a php file and implement it somewhere in my site I do something like this (JS and PHP):</p>
<pre><code> case 'someCasename':
...
include_once 'file.php';
break;
...
success: function(data){
$("#idSelector").html(data);
}
</code></pre>
<p>and the new ... | php jquery | [2, 5] |
1,634,103 | 1,634,104 | Send two request simultaneously 1st request with C# WebClient and 2nd request with Ajax | <p>hey guys,
i have a page in asp.net c#, in that im doin' some video upload functionality, so my video upload code is in <code>Page_Load()</code> method and i'm using <code>WebClient</code> to upload a video file.
and i have a <code>animated gif</code> image on page</p>
<p>Now the problem is when <code>Page_Load()</c... | c# asp.net | [0, 9] |
1,682,828 | 1,682,829 | how to get the latest files added to android phone | <p>Hi I would like to get the latest files added to the android sdcard using usb file transfer. I am using file.lastModified() to search for new files. But if a folder with bunch of files is transferred from laptop/other means to android phone. The folder and its files, their last modified value did not change in the a... | java android | [1, 4] |
4,377,061 | 4,377,062 | moving more web presentation logic to javascript via jQuery | <p>I am building a new web based application in asp.net. Our backend has existing WCF/REST services that are returning JSON. I also have a JavaScript library that wraps up calling/consuming these JSON services for me client-side. This enables the app to make client-side AJAX calls and do things like a client-side re... | asp.net javascript jquery | [9, 3, 5] |
1,786,276 | 1,786,277 | Track File Download hits/count in ASP.Net | <p>Is there a way to inherently/manually log the number of times a specific file is accessed in an ASP site. For instance, I've got a few .mp3 files I have on my server and I would like to know how many times each file has been visited.</p>
<p>What's the best way to track this?</p>
| c# asp.net | [0, 9] |
227,735 | 227,736 | what is the best strategy to handle messages between UI code (Activities) and business logic code | <p>I'm looking the best way to Implement the messages and notifications between activities and the business logic code, I used listeners but I had to register and unregister to avoid that activity do any thing while it is not active.have any body use better strategy </p>
| java android | [1, 4] |
1,657,856 | 1,657,857 | How to hide Login and Register button after login by user? | <p>I'm working on a school project. I'm able to login user successfully who registered. But when he/she loged-in how can I hide <code>Login</code> and <code>Register</code> page link. I'm using <code>css</code> and <code><ul></code> for them. And after <code>sign-out</code> how can I show them again.<br>
Here is ... | c# asp.net | [0, 9] |
2,541,718 | 2,541,719 | jquery submit - change input value before post | <p>I am trying to change the value of an input textbox before submitting a form using something like the following:</p>
<pre><code>$('#form1').submit(function () {
$('#MyTextBox').val('test');
});
</code></pre>
<p>However, when debugging the btnSubmit_Click method on the server side, both Request.Form[MyTextBox.... | jquery asp.net | [5, 9] |
5,232,747 | 5,232,748 | How to convert sql time to hh:mm AM/PM? | <p>I have time tag as a created_on="1324987878" ,i want to time as a 5:41 PM.</p>
| java android | [1, 4] |
5,898,409 | 5,898,410 | how can I calculate number of options tag when I get the select box with $this | <p>I have a question as to how can I calculate number of options tag when I get the select box with $this.</p>
<p>Like that:</p>
<pre><code> $("select[name=rabetas]").click(function(){
var $this = $(this);
</code></pre>
<p>And...?</p>
<p>how can I do this?</p>
| javascript jquery | [3, 5] |
3,981,242 | 3,981,243 | Some sort of an array to create multiple Step Form? | <p>a nice member here helped me out to create a form which adds steps as you go. I modified it a bit to allow you to change the answers to some of those questions by clicking a change button. Of course, I realized my limits and applied it to only the first question, and badly...
The way I was approaching this was to gi... | javascript jquery | [3, 5] |
3,188,582 | 3,188,583 | What are some best practices for transporting data from PHP to Javascript? | <p>My projects are becoming more and more JS heavy. The issue is that most of my data is on the server side (PHP). What are some clean ways for transporting this data over to the client side (code samples for extra brownie points)? </p>
<p>Some ways I am considering - which of these are best?:</p>
<p>1) Use php to "e... | php javascript | [2, 3] |
3,957,550 | 3,957,551 | How to fade all body/document except this active tab? | <p>I have a simple dropdown navigation. How can I fade the entire document when a list item is hovered in this case but still keep the list item and it is children at full opacity?</p>
<p>What can I add to this simple code?</p>
<pre><code>$("#menu > li:has(ul)").hover(function(){
$(this).find('ul:first').c... | javascript jquery | [3, 5] |
2,736,286 | 2,736,287 | No validation functionality when using System.Net.Mail | <p>It seems that when I configure my email settings in the code behind for a contact page the validation controls no longer work. I have required field validation and regular expression validation to validate email addresses. Validation works on click event before I insert email configurations which requires me to use ... | c# asp.net | [0, 9] |
129,619 | 129,620 | How to pass query in a dynamically created linkbutton in asp.net | <p>I wanna to pass query in a dynamic link button. I can add it dynamically but unable to pass query on that. Apart from that LinkButton_onClick handler is not working.</p>
<p>Pls tell me how to proeed?</p>
| c# asp.net | [0, 9] |
5,949,180 | 5,949,181 | show Label Back Color Name on Item Click | <p>I have a DataList with a Label which shows some colors for a Product. I want these Colors to be clicked and Print Name of the Color. Here is how i am showing colors using a DataList. When User Clicks a label The Name of the color should show(i.e Red, Black) and also go in the Database against that Product. Please Gu... | c# asp.net | [0, 9] |
1,007,115 | 1,007,116 | Find whether an element contains in a jquery selector | <p>Let say I have, </p>
<pre><code><a id="a123"></a>
</code></pre>
<p>Now I need to check whether $("a") selector contains $("#a123") element.</p>
| javascript jquery | [3, 5] |
5,000,634 | 5,000,635 | Java Protected method in an Interface? | <p>i am trying to create a interface where its methods are protected or only visible to the class that implements it.</p>
<p>The issue is this. i have two classes that do more or less the exact same thing but with different parameters and behaviour, but the actual steps it takes is identical.</p>
<p>i was thinking ok... | java android | [1, 4] |
2,762,817 | 2,762,818 | Get the value of a hidden column in a gridview with javascript | <p>I have a function (below) that works wonderful but now I need to hide the column 'CustomerID' which gives me the value for var CustomerID = grid.rows[i].cells[1].innerText; If I hide this column the function no longer works well it works but it's grabbing the wrong value. Can anyone help with this?</p>
<p>The hidde... | javascript asp.net | [3, 9] |
3,595,360 | 3,595,361 | Loading message and setTimeout | <p>I have the following script:</p>
<pre><code>$(function() {
$(".message").hide();
function simulate_ajax_call()
{
$.ajax({
url: "/echo/json/",
success: function(){
alert("done");
$(".message").empty().html("done");
$(".messa... | javascript jquery | [3, 5] |
440,639 | 440,640 | Margin/Padding of the stars in a RatingBar (or position and size)? | <p>I try to make an custom RatingBar for my Application which has a different image for each of the 4 stars.
With the following onDraw method it works quite good on my mobile.</p>
<pre><code>public class MyBar extends RatingBar {
private int[] starArrayColor = { R.drawable.star_1_color, R.drawable.star_2_color, R... | java android | [1, 4] |
4,030,432 | 4,030,433 | extract the ajax response in jQuery? | <p>How can i extract the returned response of the ajax response? to catch the response i should write:</p>
<pre><code>$.post('server.php',{x : 9}, function(response){
alert(response);
});
</code></pre>
<p>Now, how can i take the " response " out of the function(){} ?, because it doesn't exist outside .. and i wan... | javascript jquery | [3, 5] |
329,712 | 329,713 | jQuery ajax load a page with an automatic download | <p>I have a page that produces a PDF and automatically downloads the file. </p>
<p>I have to submit some variables to the page for the PDF be produced. Right now I have it submitting a form using jQuery like this <code>$("#expForm").submit();</code>. I am submitting form jQuery because I have to apply some logic befor... | javascript jquery | [3, 5] |
4,963,033 | 4,963,034 | How can stop change event? | <pre><code>var InDate = trim($(".inDate").val());
if (InDate == '') {
$(".inDate").val(dateDisplayFormat);
}
//Bind date picker
daymarker.bindElement(".inDate",
{
onSelect: function(date) {
$(".inDate").trigger('change');
},
dateFormat:jsDateFormat
});
$(".... | javascript jquery | [3, 5] |
2,769,851 | 2,769,852 | extract and show album art of mp3 file in android | <p>I'm trying to implement a small mp3 player on android. So far so good, but I cant implement the following feature:</p>
<p>When playback of the file starts, check the file, get the artwork and display it.
(the artwork is embedded)</p>
<p>I've seen several libraries which claim to be capable of doing so, but I did n... | java android | [1, 4] |
2,565,132 | 2,565,133 | remembering what $(this) is | <p>I have the following script which changes a jquery made object's color to blue:</p>
<pre><code>$(".objects_list").live('click', function(event)
{
$(this).css("color", "blue");
});
</code></pre>
<p>How do I remember what $(this) is so I can change the color again but from a different function or from an event o... | javascript jquery | [3, 5] |
4,384,347 | 4,384,348 | Button updates its own OnClientClick and then executes that? | <p>I am a .NET newb so please bear with me.</p>
<p>I am working on an online store. It requires the visitor to choose quantities they want and then click a button to choose a date for those items (tours). </p>
<p>I have two buttons - one reads their choices and updates the OnClientClick value of the other and when ... | c# javascript asp.net | [0, 3, 9] |
4,722,870 | 4,722,871 | How can I pass a variable as the value for jQuery .attr? | <p>Using <a href="http://api.jquery.com/attr/" rel="nofollow">jQuery attr()</a> what would be the proper syntax to pass a variable in as the value. What I am trying to do is :</p>
<pre><code>var under700 = 'image.jpg'
$('.two_images img').attr('src', (under700) );
</code></pre>
<h2>Edit</h2>
<p>Judging from the re... | javascript jquery | [3, 5] |
5,752,155 | 5,752,156 | Implementing Voting Up and Down Arrows | <p>I am looking for a method in which allows a user to press up and down on two sets of arrows like the ones here and a number gets implemented within. When user presses on the up arrow they get a positive number and when the user presses down they get a negative number exactly like the ones here. </p>
<p>Are there an... | jquery asp.net | [5, 9] |
2,485,959 | 2,485,960 | Is there a way to hide javascript code? | <p>I have this script that starts with <code><script></code> and finishes with <code></script></code></p>
<p>People can actually see it if they go to the source code of the page.</p>
<p>Is there a way to avoid that? I mean to make that code invisible as if it where PHP?</p>
| php javascript | [2, 3] |
3,923,863 | 3,923,864 | Get auto incremented div id so that it can be used with ajax to return a value back to php | <p>Using mysql_query results to create an html form like below with auto incremented prefixed value for div ids: </p>
<pre><code><div id="favorite'.$count.'">
<form action="javascript:void(0);" method="post">
<input type="hidden" name="sec" value="'.$ident_inpt.'"/>
<input type="hidden" ... | javascript jquery | [3, 5] |
4,121,761 | 4,121,762 | How do I reference the "title" given the id? | <pre><code>var data = {};
data.event = [
{
"id":"998",
"title":"Foo",
"thumb":"",
"source":""
},
{
"id":"999",
"title":"Bar",
"thumb":"",
"source":""
}
]
</code></pre>
<p>Given that id=998 I need to extract the value of the "title" and I'm a bit lost as to the proper syntax.</p>
| javascript jquery | [3, 5] |
3,158,312 | 3,158,313 | jQuery ajax on multi-step form | <p>Hi everyone I'm trying to incorporate jQuery AJAX on my multi-step form so that it updates a certain div to the one on the process.php page but it keeps loading the results on a new page. How can I get it to update the div without refreshing the page?</p>
<p>This is the jQuery code I'm using:</p>
<pre><code>$.ajax... | php jquery | [2, 5] |
287,677 | 287,678 | Jquery Div sort and order =) | <p>The problem i have is i need to group certain divs together and reorder them, and if it was all animating it would be cool. Please see below:</p>
<pre><code><div id="away">Some Content</div>
<div id="online">Some Content</div>
<div id="offline">Some Content</div>
<div id="away... | javascript jquery | [3, 5] |
5,848,811 | 5,848,812 | add incrementing class to images inside a div | <p>Okay I dont think anyone has covered this yet.</p>
<p>I have a div with x amount of images inside it. I need to add the class 00x to each image where the x starts at 1 and goes up everytime for each image. I have tried doing this with a for in statement however cant seem to make it work. I am using the jquery libra... | javascript jquery | [3, 5] |
4,505,966 | 4,505,967 | javascript file is returning an error log that Im not sure about | <p>One of my javascript files is returning an error log on the following line</p>
<pre><code>if(strinput.indexOf('<?')>-1||strinput.indexOf('!xml')>-1||strinput.indexOf('xml')>-1)
</code></pre>
<p>and the error is</p>
<pre class="lang-none prettyprint-override"><code>[20-Apr-2012 14:06:32] PHP Parse erro... | php javascript jquery | [2, 3, 5] |
2,320,395 | 2,320,396 | Javascript wrong alert order | <p>I have a javascript call like this:</p>
<pre><code>usernameTest('queijo');
alert('a');
</code></pre>
<p>The function <code>usernameTest()</code> is working and, for debugging, it alerts the string "t" or "f".</p>
<p>Why, when I load this page, the first alert shown is "a" and only after "t" or "f"? (Btw, jQuery i... | javascript jquery | [3, 5] |
2,352,413 | 2,352,414 | Javascript demo hosting | <p>I have a blog <a href="http://justgagan.wordpress.com/" rel="nofollow">http://justgagan.wordpress.com/</a>, where I want to show some demo of my javascript's scripts. I know I could do this with tweaking my example for WordPress, but it will increase my pages load time, since I had to add this on body. Is there any ... | javascript jquery | [3, 5] |
771,479 | 771,480 | Cannot use php tag in javascript tag | <p>I'm trying to use php tag in a javascript function. But unfortunately its not working. I even used <code><?php</code> but still not working. I checked php.ini file and there the short tag is already enabled.</p>
<p>Any sort of suggestion will be appreciated. </p>
| php javascript | [2, 3] |
3,271,044 | 3,271,045 | Best way to incorporate javascript in php? | <p>This is the way I am currently doing it. </p>
<pre><code> <?php
//show footer
echo "<script type='text/javascript'>\n";
echo "alert('Congrats');\n";
echo "</script>";
?>
</code></pre>
<p>Is there a better way than just to echo it?</p>
| php javascript | [2, 3] |
163,217 | 163,218 | ASP.Net codebehind can't access component from page? | <p>For an unknown reason, I have 1 page that I can't access by ID to any of the component.</p>
<p>Here is some informations. The page use asp:Content because the website use MasterPage. Inside the asp:Content, this page has a asp:FormView with some data that I cannot access from the CodeBehind.</p>
<p>Here is the Pag... | c# asp.net | [0, 9] |
2,647,636 | 2,647,637 | Exchanging messages between UI Thread and Background Networking Thread | <p>I am currently working on an android app just for personal use. The app communicates with a server by TCP sockets. If the user makes an input it needs to be sent immediately. Also there can be messages from the server at any given time which need to be shown on the UI. For all the networking stuff I have a backgroun... | java android | [1, 4] |
16,506 | 16,507 | How to update drop down values with postback(Client Side) in asp.net c# | <p>I have one radio button list and one drop down list inside the modal popup extender in my asp.net web application.Two radio buttons are there in the radio button list such as r1,r2. Drop down list having values like A,B,C,D,E,F. I need when I select r1 it will fills the values A,B,C in the Drop down list. When I sel... | c# asp.net | [0, 9] |
1,311,263 | 1,311,264 | PHP convert javascript when echo | <p>I have following PHP echo statement:</p>
<p><code>echo "<td><a href='delete-news.php?deleteID=".$id." onclick='return confirm('Really delete?');'>Delete</a></td>";
</code></p>
<p>which is convert to html as: </p>
<p><code><td class="last-td nth-8"><a delete?');'="" confirm('really... | php javascript | [2, 3] |
5,677,618 | 5,677,619 | The server tag is not well formed.(databinder.eval) | <p>I am trying to working the following code.</p>
<pre><code> <asp:DataGrid ID="Grid" runat="server" DataKeyField="KeyID" CssClass="grid"
...
<asp:CheckBox runat="server" ID="checkBox-<%#DataBinder.Eval(Container.DataItem,"KeyID")%>" AutoPostBack="false"></asp:CheckBox>
</code></pre>
<p>When I ... | c# asp.net | [0, 9] |
2,606,725 | 2,606,726 | use jQuery to ask if div got a background image? | <p>Is it possible to use jQuery to check if #page has got a background image - #page could look like this:</p>
<pre><code><div id="page" style="background-image: url(xxx)"></div>
</code></pre>
<p>if it contains a background image, it should add a class to #page</p>
| javascript jquery | [3, 5] |
3,157,092 | 3,157,093 | How to fetch Android Market data when there is no API? | <p>As far as I can tell, there is no API (official or unofficial) to access information about Apps on the Android Market (info such as Title, Icon, Description, Downloads, Comments, etc..) However, there are a few <a href="http://androidstats.com/" rel="nofollow">websites</a> that have managed to compile this informati... | java android | [1, 4] |
5,557,934 | 5,557,935 | How to dynamically show further information with jQuery and PHP? | <p>I have list of courses from MySQL and when I click the course it should display the correct course description to the right and again when I click the next course, the previous should hide and get the current click course description, Here is the code I did</p>
<p>jQuery</p>
<pre><code>$(document).ready(function()... | php jquery | [2, 5] |
5,281,280 | 5,281,281 | A asp.net page that tracks changes of a web page? | <p>An asp.net page that tracks a web page changes.
and if any changed occurred then it should send mail to my mailbox which I have configured using smtpclient.</p>
<p>I've coded for this task, but don't know where to place the code which section is executed always? Is there any possibility for this? </p>
<p>If not, t... | c# asp.net | [0, 9] |
4,597,258 | 4,597,259 | how to show random values in textarea, such as every time page load it will show different message in a textarea | <p>how to show random values in textarea, such as every time page load it will show different message in a textarea with jquery. i have a list of phrases and i want to load each phrase in textarea on page load.</p>
| php jquery | [2, 5] |
1,282,695 | 1,282,696 | Find control from html to c# in asp.net | <p>I have problem that how to get html control id in c# code behind page.??
thanks in advance......</p>
| c# asp.net | [0, 9] |
4,854,395 | 4,854,396 | Get ClientID in Javascript | <p>I have a javascript file that Select a button using jQuery and check it for validation.the code is:</p>
<pre><code>$(document).ready(function () {
$('#<%= btn_Insert.ClientID %>').on("click", function (event) {
if (Validate() != true) {
event.preventDefault();
}
});
function Validate() {
... | javascript jquery asp.net | [3, 5, 9] |
3,349,846 | 3,349,847 | Deciding on User Control to Use at Runtime | <p>I have 2 user controls defined on a page:</p>
<pre><code><%@ Register Src="Foo.ascx" TagName="FooControl" TagPrefix="acme" %>
<%@ Register Src="Bar.ascx" TagName="BarControl" TagPrefix="acme" %>
.
.
.
<acme:FooControl ID="myFoo" runat="server" Visible="false" />
<acme:BarControl ID="myBar" runa... | c# asp.net | [0, 9] |
5,280,481 | 5,280,482 | how to get the rating value on click on stars | <p>i am using jquery rating plugin.
in all examples they have a submit button near to rating stars.
so that submit button do this.form.serialize.
but i want to save the rating to db without clicking on the submit button.
i am not giving submit button to users.
if anybody has done this already can you help me please.
th... | javascript jquery | [3, 5] |
1,807,536 | 1,807,537 | Check the current Row is a data row or not | <p>I have a gridview with 10 rows i am displaying 6 rows in each page i have a text box and and image button in each row when i click the image button all the functionalities are working but when i click the page index it is displaying an error in row command how can i check whether the row type is data row or not in g... | c# asp.net | [0, 9] |
2,643,920 | 2,643,921 | How to know if a Date is within the same day of other date | <p>If I have a two Dates in Java (Android) (Date1 and Date2), how can I know if the Date2 is within the same day of the Date1? (Note: not if the Date2-Date1 < 24 hours). Some examples (suppousing same month and year)</p>
<pre><code> Date1: day=14 hour=00:00 Date2: day=14 hour=00:00 --> Result TRUE
... | java android | [1, 4] |
2,178,759 | 2,178,760 | Member method consting in Java? | <p>In C++, a member method can be const if it does not modify the class. For example:</p>
<pre><code>class Foo {
public:
float getValue() const;
};
</code></pre>
<p>Is there something similar I must do in Java classes? How exactly does consting work in Java? (Aside from adding the final keyword before a member vari... | java c++ | [1, 6] |
1,794,666 | 1,794,667 | Select by next instance of class with jQuery | <p>I'm looking to convert a function that selects by id to select the next instance of a given class. </p>
<p>Here is the code.</p>
<pre><code>function swap3(oldDivId, newDivId) {
var oldDiv = document.getElementById(oldDivId);
var newDiv = document.getElementById(newDivId);
oldDiv.style.display = "none";
newDiv.styl... | javascript jquery | [3, 5] |
4,287,125 | 4,287,126 | How can i parseFloat a php var inside javascript | <p>I need to parseFloat this then to replace the dot with a comma:</p>
<pre><code>sum="<?php echo substr($_tarif_membre,0,-2).'.'.substr($_tarif_membre,-2,2) ?>" * $('#tarif_membre').val()
total_total= sum.replace('.',',')
$('#total_total').val(sum)
</code></pre>
<p>if i dont multiply the php echoed variable b... | php javascript | [2, 3] |
268,176 | 268,177 | Loading welcome animation only once jquery/php | <p>In my site i have a welcome animation (created with jquery) which runs when any one opens my website (<strong>www.mysite.com</strong>). Then the same user going to anther page in my site for example <strong>www.mysite.com/about</strong> then click back to home (<strong>www.mysite.com</strong>) the animation again sh... | php jquery | [2, 5] |
168,496 | 168,497 | Jquery plugin not working | <p>I am very new to jQuery. I am trying to use a plugin called Searchable Dropdown, that I got from here: <a href="http://jsearchdropdown.sourceforge.net/" rel="nofollow">http://jsearchdropdown.sourceforge.net/</a>
. but I cannot figure out how to make it work.. What am I doing wrong?</p>
<pre><code><head>
<s... | php jquery | [2, 5] |
2,688,081 | 2,688,082 | how to maintain timestamp in various countries | <p>I have a problem with timestamp.Let me tell you suppose a user uploads a picture somewhere in USA at 4.30 am and if another user sees this picture in japan.It would show 4.30 am as the date saved in database would be 4.30 am but it should be 4.30 pm to the japanese people, as they are 12 hours faster than america.<... | php javascript | [2, 3] |
669,458 | 669,459 | using an asp.net literal inside the <title> element | <p>This is such a simple scenario that I can't see what can possibly be going wrong. I'm using asp.net 4.0 (haven't tried older versions)</p>
<pre><code><title>Welcome to Page: <asp:Literal ID="Literal1" runat="server">
</asp:Literal></title>
</co... | c# asp.net | [0, 9] |
4,600,779 | 4,600,780 | What's the best JQuery book? | <p>I am a good javascript/asp.net developer, but i am just starting to learn JQuery,
Whats the best book to learn JQuery?
Books i like their style:
Complete reference
How to program</p>
| javascript jquery asp.net | [3, 5, 9] |
1,819,967 | 1,819,968 | Can't loop through elements created by jquery | <p>I've added a bunch of links to a div like this:</p>
<pre><code>$('#links').append('<a href="http://example.com/">Example</a>');
</code></pre>
<p>But when I try to loop through them with <code>$('#links a').each</code> it only finds the links that are already there in the HTML.</p>
<p>What am I doing w... | javascript jquery | [3, 5] |
3,746,921 | 3,746,922 | Getting part of referring url with jquery | <p>I'm trying to set a cookie with a value that is made up of part of a referring url. The referring url looks something like:</p>
<pre><code>http://webct.university.ac.uk/webct/urw/lc715920578061.tp721521425061/courseMenu.dowebct?
</code></pre>
<p>and I need to extract:</p>
<pre><code>lc715920578061.tp721521425061
... | javascript jquery | [3, 5] |
5,771,079 | 5,771,080 | How to rewite javascript function with php | <p>I have a script.I will show sample.</p>
<pre><code> <form>
<textarea id='input'></textarea>
<input onclick="convert()" value="go function" />
<textarea id="output"></textarea>
</form>
<script type="text/javascript" >
function convert() {
src = doc... | php javascript | [2, 3] |
1,779,890 | 1,779,891 | jQuery addEventListener not working as intended | <p>I have the following code:</p>
<pre><code>$('.uiModalWrapper').live('click', function() {
var modal = $(this).find('.uiModal');
modal.addClass('shake');
modal.addEventListener('webkitAnimationEnd', function() {
... | javascript jquery | [3, 5] |
1,383,188 | 1,383,189 | extract value from spinner and use it to calculations -- NullPointerException | <p>I want to use the "value" from the spinner.</p>
<p>When the user makes the choice i want to use that value in order to do some calculations.</p>
<p>My problem is :</p>
<p>1) How to get properly the value (item).I am using sth like "item.MyOnItemSelectedListener ==0".</p>
<p>2) What the value should be?For examp... | java android | [1, 4] |
3,794,201 | 3,794,202 | JQuery/PHP - Only showing a button for Administrator account | <p>I have a web site which allows users to logon to a control panel that allows users to change content of the web site.</p>
<p>When creating the users you can set the account type: (PHP)</p>
<p>i.e. <code>UserAccount::get_accounttype() == 1</code> full access</p>
<p>and <code>UserAccount::get_accounttype() == 0</co... | php jquery | [2, 5] |
2,479,630 | 2,479,631 | Convert existing C++ (.h and .cpp) files to java for Android | <p>I am developing for Android under Eclipse. I have some c++ (.h and .cpp) files that I wish to use in my Android application. I have read <a href="http://home.pacifier.com/~mmead/jni/cs510ajp/index.html" rel="nofollow">Programmming in C/C++ with the Java Native Interface</a> and now I know how to make .so file and im... | java c++ android | [1, 6, 4] |
3,804,946 | 3,804,947 | Triggering full screen in browser with JavaScript | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/1125084/how-to-make-in-javascript-full-screen-windows-stretching-all-over-the-screen">How to make in Javascript full screen windows (stretching all over the screen)</a> </p>
</blockquote>
<p>Currently I tried to... | javascript jquery | [3, 5] |
1,688,003 | 1,688,004 | Select next element in the page source using jQuery | <p>I have an arbitrarily deep list of the form:</p>
<pre><code><ul>
<li></li>
<li>
<ul>
<li></li>
</ul>
</li>
</ul>
</code></pre>
<p>I am trying to build a function "nextElement" that returns a jQuery selector.</p>
<p>The first time the function i... | javascript jquery | [3, 5] |
5,404,481 | 5,404,482 | 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] |
4,237,461 | 4,237,462 | loop through numbered class and append shortened url | <p>I am using a bitly script to shorten urls and insert the resulits into a span tag.</p>
<p>Using jquery, how would I loop through the following list ids and replace the long url with the shortened one.</p>
<pre><code><ul class="vertical-list list-parent">
<li id="license_key_0">
<div class=... | javascript jquery | [3, 5] |
5,906,428 | 5,906,429 | Do jQuery and JavaScript have different namespaces? | <p>I have this code in jQuery..</p>
<pre><code>$(document).ready(function(){
var fieldCounter = 0; ...
</code></pre>
<p>I have a jQuery function that increments this value.</p>
<p>This works, but I can't access this value on the page from a non-jQuery function? The reverse is also true, if I scope it in JavaScrip... | javascript jquery | [3, 5] |
5,132,637 | 5,132,638 | Javascript does not take hidden text box value? | <p>I am using this javascript function to show different popups if location count varies. Here the txthiddenloccount value is null if the txtbox's visibility is false. If the visibility is true, it works fine. What strange is this??? Can someone help me out. </p>
<pre><code>function isPageValid()
{
var validated = Pag... | c# javascript asp.net | [0, 3, 9] |
420,744 | 420,745 | Javascript to Jquery, add text in input onclick | <p>How can I change this javascript code to JQuery.</p>
<pre><code><script type="text/javascript">
function addTextTag(text){
document.getElementById('text_tag_input').value += text;
}
</script>
</code></pre>
<p>When a user click the link text automaticaly is added in input.</p>
<p>This... | javascript jquery | [3, 5] |
5,380,665 | 5,380,666 | Webview not loading javascript | <p>I have loaded an html to the webview. I want to increase the font size of the p tag dynamically. For that I made a javascript and loaded after loading the html. But it is not working. What may be the problem??</p>
<p>Thanks in advance</p>
<pre><code>mWebView.getSettings().setJavaScriptEnabled(true);
mWebView.... | javascript android | [3, 4] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.