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 |
|---|---|---|---|---|---|
2,403,477 | 2,403,478 | Can I change a asp control from image handler? | <p>I have an asp page with a button on it that uses an image handler to show a jpg. Can I disable a button on the page from the image handler base on what image is loaded. for example if c:/x.jpg is loaded, disable the button.</p>
<p>Thanks
Charles</p>
| c# asp.net | [0, 9] |
1,580,597 | 1,580,598 | Back button press twice before quitting app | <p>How can I configure the back button to be pressed twice before the app exits? I want to trigger </p>
<pre><code>@Override
public void onBackPressed() {
//custom actions
//display toast "press again to quit app"
super.onBackPressed();
}
</code></pre>
| java android | [1, 4] |
3,840,859 | 3,840,860 | Video Ad (show video then ad) | <p>Doe's anyone know how I can replicate this? I'd like to show an a promo code after the video plays on my website.</p>
<p>Like the current chipotle facebook ad.</p>
<p><a href="http://apps.facebook.com/videocoupon/" rel="nofollow">Facebook Ad</a></p>
| php jquery | [2, 5] |
1,202,933 | 1,202,934 | Calling Javascript function | <p>Extending a website I didn't build. I want to be able to call the ShowWindow proc with a parameter. How would I do that? New to JQuery and Javascript.</p>
<pre><code>default.aspx
<script type="text/javascript" src="/scripts/jquery-1.2.6.js"></script>
<script type="text/javascript">
$(document).r... | javascript jquery | [3, 5] |
4,184,858 | 4,184,859 | Android - Internet Activity doesn't cease after app closes | <p>QA Keeps reporting a bug where after closing the app internet activity is still going. We stream video. They say after the app closes, the streaming doesn't stop because the network activity icon on the top status bar remains on for a minute after the app closes. I have checked all my streams and logs and there i... | java android | [1, 4] |
3,532,600 | 3,532,601 | Disable a button on click | <p>I have a button control. Once the user clicks on it, the click event should fire and then the button should get disabled. How can I do this? I have the option to use JQuery or JavaScript or both.</p>
<p>Here is my button declaration:</p>
<pre><code><asp:Button
ID="Button1"
runat="server"
Text="Click Me... | asp.net javascript jquery | [9, 3, 5] |
2,816,034 | 2,816,035 | Asp.net + C#: Copy DataColumn from tableA to table B | <p>I would like to copy DataColumn from tableA to table B:</p>
<p>As I think it should be like this:</p>
<blockquote>
<p>TableA in perdefined.</p>
<p>DataColumn[] dataColum = new
DataColumn[TableA .Columns.Count];</p>
<p>TableA .Columns.CopyTo(dataColum, 0);</p>
<p>DataTable TableB = new DataTable(... | c# asp.net | [0, 9] |
5,765,105 | 5,765,106 | lock screen with browser page | <p>I am developing a online examination project on core PHP. I want that when candidate giving exam then he see only that web page. he can't see any thing else like below taskbar of operating system, can't close the browser on time of exam.</p>
<p>How can i do this? please help me.</p>
| php javascript jquery | [2, 3, 5] |
3,472,388 | 3,472,389 | which language / tool to use | <p>Here's the situation:</p>
<p>I need to develop a desktop tool that will take in an input from Oracle (text) and it's output is a print of a layout generated by that tool.</p>
<p>The tool needs to be fast and able to print easily and not much extra software required on client PC's which ALL run Windows.</p>
<p>Now... | c# java | [0, 1] |
749,923 | 749,924 | How to detect control+click in Javascript from an onclick div attribute? | <p>I need to know if the user is clicking or CONTROL CLICKING a div element..
i have seen examples on how to do it using event listeners.. but my codes are already set in place, and is using an on-element <strong>onclick</strong> method.. </p>
<p>HTML</p>
<pre><code> <div id='1' onclick='selectMe()'>blah</d... | javascript jquery | [3, 5] |
2,864,241 | 2,864,242 | Communication issue between PHP and jQuery | <p>I have a page generated from PHP like this:</p>
<pre><code><?php
//In my original code, this is retrieved from databas..
$users = array(
array('id'=>1, 'login'=>'login1', 'email'=>'email1')
);
foreach($users as $user){
echo '<tr><td>'.$user['login'].'</td... | php jquery | [2, 5] |
4,338,543 | 4,338,544 | How to change content of a div which toggles another div? | <p>My HTML is like this:</p>
<pre><code><div>
<div class="action">Show details</div>
<div>Some hidden details</div>
</div>
</code></pre>
<p>My current JS is this:</p>
<pre><code>$(".action").click(function(e) {
e.preventDefault();
$(this).next("div").slideT... | javascript jquery | [3, 5] |
1,441,463 | 1,441,464 | Get the HTML that makes up an element in Jquery or Javascript? | <p>How do I get the HTML that makes up an element using Jquery or Javascript?
For example if I have an element that looks like </p>
<pre><code><div id="theDivIWant" class="aClassName" style="somestyle: "here"></div>
</code></pre>
<p>I can grab a reference to it using </p>
<p>var x = document.getElementBy... | javascript jquery | [3, 5] |
5,005,127 | 5,005,128 | displaying images in a slider | <p>I want to know is there an easy way in order to be able to place images in a loop as below in like a slider? The user sees first image in a slider and then by using arrows for example, be able to slide to next to next or previous image. If user is on last image and wants to go on next image, it displays the first im... | javascript jquery | [3, 5] |
4,911,695 | 4,911,696 | call function using if statement | <p>I want to be able to call a function within an if statement.</p>
<p>For example:</p>
<pre><code>var photo = "yes";
if (photo=="yes") {
capturePhoto();
}
else {
//do nothing
};
</code></pre>
<p>This does nothing though. The function is clearly defined above this if statement.</p>
<p>Edit: Wow, downboat... | javascript jquery | [3, 5] |
4,047,190 | 4,047,191 | Javascript/jquery not working on my site | <p>I'm creating a site, tested out on my local server and it worked fine, but once I moved it over ot my host anything to do with javascript/jquery on the page just refuses to work :/</p>
<p><a href="http://www.neuromanga.com/mangaReader1.0.php?cid=1" rel="nofollow">http://www.neuromanga.com/mangaReader1.0.php?cid=1</... | javascript jquery | [3, 5] |
2,914,683 | 2,914,684 | Math.pow JS vs. PHP | <p>I need help to "translate" this snippet to PHP from JS.</p>
<p>The original JS code is this:</p>
<pre><code>result = A * ( B / 1200 ) /
( 1 - 1 / Math.pow( 1 + ( B / 1200 ), C * 12 ) ) * D;
</code></pre>
<p>I need this code in PHP. I try with this, but it gives me a different result:</p>
<pre><code... | php javascript | [2, 3] |
1,130,165 | 1,130,166 | Why does my variable change values? | <p>I have a simple <a href="http://jsfiddle.net/a9kG8/3/" rel="nofollow">jsfiddle</a> where I get the value of a div. </p>
<p>In the <code>$(document).ready(function(){})</code> section I get the text of the div just fine. When I try to use that value later on in a function, the value changes (unless I add <code>.inne... | javascript jquery | [3, 5] |
4,580,741 | 4,580,742 | jquery extract <meta property="og:url" | <p>is it possible to extract the meta data from a page loaded via ajax.</p>
<p></p>
<p>I tried $("meta") as my selector but it doesn't work?</p>
<p>Any help would be greatly appreciated.</p>
<p>A</p>
<p>this is my code</p>
<pre><code>$.ajax({
url: obj
,success: function(responseText){
var $response=$(respo... | javascript jquery | [3, 5] |
5,065,512 | 5,065,513 | Window operations with JQuery? | <p>I want to open a new window with width 600 and height 300</p>
<p>Does jquery have a function to do it ? </p>
| javascript jquery | [3, 5] |
5,911,599 | 5,911,600 | Accesing contents of res/raw programatically (Android) | <p>I'm working on an app for Android with a few other people, and the primary content is specified by our designers as text files in a certain file format, which we then parse, process, and serve in the app. We're currently storing them in <code>res/raw</code>.</p>
<p>This makes things great for the designers because... | java android | [1, 4] |
748,342 | 748,343 | enable disable textbox inside a table when checkbox checked | <p>I am using jQuery. How to enable or disable textbox inside a table when checkbox checked.
This is my edit.cshtml.</p>
<pre><code> <table id="scDetails" class="dataTable">
<thead>
<tr>
<th>RItem</th>
<th>ICheck... | javascript jquery | [3, 5] |
5,764,638 | 5,764,639 | jquery detecting and removing an element clicked | <p>I have a hierachy of DIVs with classes associated but not IDs. How can I remove the item being clicked?</p>
<pre><code><div>
<div class="minibox" onclick="remove_me()">Box1</div>
<div class="minibox" onclick="remove_me()">Box1</div>
<div class="minibox" onclick="remove_m... | javascript jquery | [3, 5] |
2,859,950 | 2,859,951 | How to set a var to true or false using .val() | <p>I have a textbox, I need to check if the textbox is empty and set a variable accordingly to true or false.</p>
<p>my code at the moment print the value of the textbox.</p>
<pre><code>var isDateTimEndEmpty = dateTimeEnd.val() == null ? true : false;
</code></pre>
<p>what am I doing wrong here?</p>
| javascript jquery | [3, 5] |
5,012,342 | 5,012,343 | Replacing Link Button and label with check boxes | <p><a href="http://stackoverflow.com/questions/4263489/need-help-with-repeater">This</a> is my repeater in GUI and code behind ..I need to replace the 'Make Default' linkbutton with a Check Box now. What I want to do is that When user Checks the checbox, the Default value is set to TRUE in DB , Also when a check box is... | c# asp.net | [0, 9] |
4,434,787 | 4,434,788 | How to prepend number with zero | <p>I have the below script running and the following logcat report as at the moment it is not working. Could someone help me get this working and if possible also explain what I am doing wrong.</p>
<pre><code> Calendar calendar = Calendar.getInstance();
sdf = new SimpleDateFormat("mm");
NValue = ... | java android | [1, 4] |
461,020 | 461,021 | Postback Error? | <p>I wonder why if anyone has idea of this error?
My ASP.Net page was working fine when publish on my Win7 IIS7 and on another Server 2008 IIS7, but today when I do the same one for another Server 2008, all the ajax postback gives this error:</p>
<pre><code>#Exception Message:
Exception of type 'System.Web.HttpUnhand... | c# asp.net | [0, 9] |
2,254,979 | 2,254,980 | Jquery submit form error | <p>I have a form which I want to submit upon button click which is outside the form, here is my HTML :</p>
<pre><code><form id="checkin" name="checkin" id="checkin" action="#" method="post">
<input type="text" tabindex="100" class="identifier" name="identifier" id="identifier">
<input type="subm... | javascript jquery | [3, 5] |
4,382,533 | 4,382,534 | .html not working as intended | <pre><code>$('#clicker').click(function () {
collegeArray = ["Harvard", "Yale", "Princeton"];
alert(collegeArray.length);
for (var i = 0; i < collegeArray.length; i++) {
var divIdName = 'college' + i + 'Div'; //manuplating name of each div generated dynamically
var newdiv = document.createElement('div')... | javascript jquery | [3, 5] |
1,798,275 | 1,798,276 | run jquery on php page open | <p>I have a jquery notification bar script that im using. I don't know the first thing about jquery and javascript, but anyway, heres the code:</p>
<pre><code><script src="jquery.bar.js" type="text/javascript"></script>
<script>
$("#msgup").bar({
color : '#FFFFFF',
background_col... | php jquery | [2, 5] |
4,569,136 | 4,569,137 | response.end method causing session variable to expire | <p>I am storing the returned sql resultant rows in a session variable ... so that I need not to query again and again</p>
<pre><code>Session["ds"] = datasetname;
</code></pre>
<p>Everything is fine but when I am doing export to excel ... where at last after the export is completed I am calling the method in try/catch... | c# asp.net | [0, 9] |
3,872,238 | 3,872,239 | Datepicker works in IE error in Firefox or Chrome | <p>Web form with date picker, one of the fields is cdate , I use jsdatepick for this field.</p>
<pre><code><script type="text/javascript">
window.onload = function(){
new JsDatePick({
useMode:2,
target:"cdate",
dateFormat:"%d-%M-%Y"
};
</script>
<f... | php javascript | [2, 3] |
193,551 | 193,552 | How to reload page every 5 second? | <p>Hi I am converting one layout to html , once I make the changes in code html/css then every time I have to hit F5. is there any simple javascript/ jQuery solution for this. </p>
<p>like i add the script and its reload the whole page every 5(or specific time)</p>
<p>thanks</p>
| javascript jquery | [3, 5] |
5,808,251 | 5,808,252 | Mask input for time(`01:55`) | <p>I want mack a mask input for time(<code>01:55</code>) without use plugin,as only accept to user typed four number, (i mean, when user type number <code>01</code> put after it this <code>:</code> and next user type <code>55</code>), how is it?</p>
<p>This is my code that not work:</p>
<pre><code><input name="tex... | javascript jquery | [3, 5] |
2,941,376 | 2,941,377 | jQuery - get the selected options of a listitem collection? | <p>I have fields that a user would enter and i would pass it into jQuery and pass to a web service. </p>
<p>I can get textboxes values by:</p>
<p>var name = $("#MainContent_txtName").val() </p>
<p>The problem I'm having is a multi-select that comprises of a list item collection.
If I was to do this server side, I ... | javascript jquery asp.net | [3, 5, 9] |
3,815,163 | 3,815,164 | How to make our app resolution free | <p>We have to display many TextView on canvas with proportion to screen resolution.How we can define the textSize and any ImageView size corresponding to Screen resolution so that they can display ratio wise.</p>
| java android | [1, 4] |
3,088,871 | 3,088,872 | jquery detect coordinate of top of page after scrolling | <p>I have a 'back button' that I would like to stick to the header until you scroll past a certain point (so I have it absolutely positioned but would like it positioned 'fixed' when you scroll past the header).</p>
<p>Kinda like the 'GAMEHQ' section does here: <a href="http://scores.espn.go.com/mlb/preview?gameId=311... | javascript jquery | [3, 5] |
2,323,301 | 2,323,302 | Busy spinner while retrieving data | <p>I would like to add a busy spinner while retrieving data from a Mysql database.
The code is written in PHP.
The problem is that it takes too long time to get back the result from Mysql database and I would like that the user get some indication that something is happening.</p>
<p>Is there a way to do that?</p>
<p>... | php jquery | [2, 5] |
2,755,467 | 2,755,468 | Passing array values from php to javascript data returns only one value | <p>This function works fine, but it only returns one value. What I'm missing here?</p>
<p>Here's my code:</p>
<pre><code> <script type='text/javascript'>
$(function () {
<?php
//Get the names and id's
$get_info=mysql_query("select * from table where id = '1'");
if($get_info){
while($row_info=mysql_fetch_a... | php javascript | [2, 3] |
4,906,904 | 4,906,905 | display partial data as and when got | <p>I use jquery and php for my website. I am facing a problem. After page load, i send all the data after formatting to client and display it using jquery. mine is a products website. So i display 10 products per page. so displaying 10 products per page. Is there a way to send partial data to client and display it as a... | php jquery | [2, 5] |
1,209,362 | 1,209,363 | Make the scrollbar fixed to bottom even while appending content to it | <p>For better understanding I am trying to implement chatbox with smooth transition of previous (upper) chat messages.</p>
<p>Here is the <a href="http://jsfiddle.net/eEEGE/" rel="nofollow">http://jsfiddle.net/eEEGE/</a></p>
<p>When I click "Add" I want all the number 1 - 9 slide up and append 10-12 below it.</p>
<p... | javascript jquery | [3, 5] |
2,446,046 | 2,446,047 | How can I have a button be disabled with jQuery but also run server code once it's been clicked? | <p>I have a button that will execute a stored procedure. After it's been clicked, I want it disabled so that the user can't click it multiple times. However, once it's been clicked, I also want to run some C# on the server side through an <code>onclick</code> event. As of right now, all my code does is disable the b... | c# jquery asp.net | [0, 5, 9] |
2,690,725 | 2,690,726 | JQuery Datepicker issue - asp.net | <p>I have used JQuery within my asp.net page. JQuery is working fine. I could see the calendar and can pickup the date. The problem is that when the page is postbacked the value is lost. Am i missing some code? Does anyone of you have the idea?</p>
<p>Below is what i have done -</p>
<p>1) Included the files -
... | asp.net jquery | [9, 5] |
1,072,801 | 1,072,802 | Update existing notification | <p>Now that the <a href="http://developer.android.com/reference/android/app/Notification.html#describeContents%28%29" rel="nofollow"><code>setLatestEventInfo</code></a> method is deprecated in the latest Android SDK, is there a way that we're supposed to update the content of an existing notification? I am skeptical th... | java android | [1, 4] |
1,975,145 | 1,975,146 | How can I validate an ANDROID_ID in php? | <p>How can I validate an id that is retrieved via Secure.ANDROID_ID in php?</p>
<p>I'm writing the server side of an app that uses them but want to make sure that requests that include invalid/fake Android IDs don't get responses.</p>
| php android | [2, 4] |
4,724,633 | 4,724,634 | Preventing JavaScript code from running by removing from the page source at runtime | <p>Somebody entered XSS code in my friend's site. It inserts <code><script>alert(0)</script></code> in the page source. You can see it <a href="http://technoflexusdatastreamapi.appspot.com/listData" rel="nofollow">here</a>.</p>
<p>Is there a way to remove this from the page at runtime, to prevent it from b... | javascript jquery | [3, 5] |
1,194,763 | 1,194,764 | Get String From CodeBehind | <p>What is the difference between <code><%#...%> and <%=...%></code> ? For example I wanted to take the username of the logged in user and I tried with <code>"<%# Membership.GetUser().UserName %>"</code> but this didn't work. Then I tried with <code><%= Membership.GetUser().UserName %></code> an... | c# asp.net | [0, 9] |
4,850,851 | 4,850,852 | Java or C++ to learn as a first prgramming language | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/345907/should-freshers-learn-java-or-c">Should freshers learn Java or C++?</a> </p>
</blockquote>
<p>I am a high schooler and am unsure whether to learn Java or C++. I would like to major in aerospace engineer s... | java c++ | [1, 6] |
854,267 | 854,268 | How to get the object reference inside a JQuery callback function? | <p>Let's say that we have a javascript object called aObject and the test() function is used as a callback function in JQuery</p>
<pre><code>var aObject = {
aVariable : 'whatever value',
test : function() {
// Trying to access property. But doesn't work as expected since I am getting the DOM element, n... | javascript jquery | [3, 5] |
1,941,116 | 1,941,117 | Can i access internal memory of Application of A using another apllication B? | <p>I have two applications.</p>
<p>Application - A and Application - B</p>
<p>Application - A download songs from the server and stored into the internal memory . I want to read those download files using Application - B.</p>
<p>Is it possible ? If yes then how can i do this ?</p>
<p>Thanks In Advace.</p>
| java android | [1, 4] |
1,133,341 | 1,133,342 | What is the best way to interface C# and Java? | <p>Hypothetically, you have two products, one written in Java, the other in C#. You like the Java based backend (non-user visible portion), but would like to use the C# (WPF) frontend. What is the best way to go about interfacing them? </p>
<p>Note that the backend must be able to run on either a server or on the loca... | c# java | [0, 1] |
683,390 | 683,391 | asp .net jquery | <p>I am new to asp .net. I am trying to use the JQuery library scripts. So included them in my aspx page as follows</p>
<pre><code><script src="<%= Page.ResolveClientUrl("~/jquery-1.3.2.js")%>" type="text/javascript"></script>
<script src="<%= Page.ResolveClientUrl("~/jquery.validate.js")%>... | asp.net jquery | [9, 5] |
1,668,593 | 1,668,594 | Jquery Counter from 0% to 100% with step function | <p>i have 2 divs, the blue one is set to 365px width (this will actually be the page height so i cant pre determine it)</p>
<p>then the grey one i need to count from 0 - 100%</p>
<p>at the moment it counts from 365 to 0</p>
<p><a href="http://jsfiddle.net/Bill/BNVyq/" rel="nofollow">http://jsfiddle.net/Bill/BNVyq/</... | javascript jquery | [3, 5] |
2,314,640 | 2,314,641 | Is jquery interface.js com always working with the new version of jQuery? | <p>On the interface.js website (<a href="http://interface.eyecon.ro/" rel="nofollow">http://interface.eyecon.ro/</a>) they propose to download interface.js with jquery 1.1.2. I would like to know if interface.js is still compliant with the new version of jquery and if there will be new release of this library.</p>
<p>... | javascript jquery | [3, 5] |
3,664,505 | 3,664,506 | Learn Java from Python background | <p>I have been programming in Python for a while now, and I'd like to learn a more "hireable" language like Java or the C/C++/C# family. I'm acquainted with (though not necessarily good at) all of them. I'm leaning towards Java because it runs just about everywhere, and I'd like to start developing for the Android. </p... | java python | [1, 7] |
5,404,396 | 5,404,397 | How to remove the duplicated part of string by comparing two string in Jquery or Javascript | <pre><code>$str1='<option value="AAA">AAA</option><option value="BBB">BBB</option><option value="CCC">CCC</option>';
$str2='<option value="CCC">CCC</option><option value="DDD">DDD</option>';
</code></pre>
<p>I would like the expected result as following. If ... | javascript jquery | [3, 5] |
2,810,383 | 2,810,384 | How to perform action when a click happens outside of specified elements | <p>I am trying to set up a system so that when a user clicks, if that click did not originate from within a specified div then a function should be fired that will do something with that div. Basically more when a user clicks outside of a div i want to hide it, but the problem is that i have a few elements that i want ... | javascript jquery | [3, 5] |
5,392,051 | 5,392,052 | jQuery .each being applied to broadly | <p>I have a small script which makes an <code>li</code> element click-able and sets the location to that of a link inside of the <code>li</code>. This runs without error and my two <code>console.log()</code> calls are reporting back what I would expect, however, when you click on the <code>li</code> (whichever <code>li... | javascript jquery | [3, 5] |
5,718,824 | 5,718,825 | Using C#/VB.NET values in Javascript | <p>I have searched for a definitive answer to my question and not been able to find one. Lots a site cover the topic but I cannot find the answer I am looking for.</p>
<p>I have an ASPX page that, for example, processes customer queries. In the code behind I have a Customer class. If I want to use, for example, the ... | c# javascript asp.net | [0, 3, 9] |
4,460,494 | 4,460,495 | JQuery over JavaScript Why and When to use? | <p>I'm a student and also new to JQuery. I want to know the difference between JQuery vs JScript. How we decide what to use and when to use those two technology.</p>
<p>Considering </p>
<ol>
<li>Performance</li>
<li>Technology</li>
</ol>
| javascript jquery | [3, 5] |
2,598,736 | 2,598,737 | How to keep spaces in the formatted expression in jqMath | <p>I am using <a href="http://mathscribe.com/author/jqmath.html" rel="nofollow">jqMath</a> for Math equation formatter. I don't want to remove spaces and newline character from the expression. How can I do that? I have tried a lot but I coudn't find any solution. </p>
| javascript jquery | [3, 5] |
460,663 | 460,664 | jQuery .hide() not working | <p>I wrote a simple jQuery script and the .hide() is not properly rendering. You can see it <a href="http://jsfiddle.net/VBhYT/2/" rel="nofollow">here</a> on jsfiddle.</p>
| javascript jquery | [3, 5] |
1,316,703 | 1,316,704 | Is JavaScript allowed to call a remote web page during a click event? | <p>When viewing the click in firebug, the call turns red (i.e. error) but I can't see the error because the page redirects.</p>
<p><strong>So is it allowed to call a remote website (in my case, its a 1x1 image using a standard url like <a href="http://www.example.com/becon" rel="nofollow">http://www.example.com/becon<... | asp.net javascript jquery | [9, 3, 5] |
5,663,407 | 5,663,408 | ASP.NET button-click, using jQuery on a server control | <p>When you attach a client-side click event via jQuery to an ASP.NET button do you then lose the ability to do a postback? I merely need to do some jQuery prior to the server-side stuff happening and it seems to be interrupting this process. </p>
<pre><code> $('[id$="btnDisableAlarms"]').click(function () {
... | jquery asp.net | [5, 9] |
305,635 | 305,636 | restrict space key value to transfer when no other character value is entered | <p>In my Chat application project, I am trying to restrict spaces when the user has just pressed <kbd>Space</kbd> and then <kbd>Enter</kbd>. pressing <kbd>Enter</kbd> will show entered Text into a <code>div</code>. Please see the comments in the code to understand clearly.</p>
<pre><code>#txtmsg --> ID of TextBox f... | javascript jquery asp.net | [3, 5, 9] |
4,034,190 | 4,034,191 | How to alert when new message comes in | <p>I've got an online chat room program written in PHP + MySQL + Javascript</p>
<p>I use <code>jQuery.post()</code> to get new chat message from <code>chat.php</code>. This php program reads data from MySQL and <code>echo</code>s it on the page.</p>
<p>How do I alert the user when new message comes in? I only want it... | php javascript | [2, 3] |
5,415,385 | 5,415,386 | How to add z-index via object? | <p>Is it possible add <code>z-index</code> via <a href="http://api.jquery.com/css/" rel="nofollow">css</a> method thought object:</p>
<pre><code>jQuery('<div/>').css({
z-index: 1000,
opacity: 0.7,
width: jQuery(window).width(),
height: jQuery(document).height(),
top:0,... | javascript jquery | [3, 5] |
5,632,948 | 5,632,949 | send email from several textboxs in asp | <p>at the moment i'm using a string[] to get all the emails from textboxs,
and the sending them one at time.</p>
<p>someone have a better idea for getting the the text and sending it ? </p>
| c# asp.net | [0, 9] |
1,004,197 | 1,004,198 | How can I replace one DOM element with an array of jQuery objects? | <p>I have an array of jQuery objects that I built and which have events attached to them.</p>
<pre><code>var obs = [];
for(var i=0;i<100;i++) {
var j = jQuery('<div></div>');
j.click(function() { console.log('Clicked ' + i); });
obs.push(j);
}
</code></pre>
<p>My HTML is:</p>
<pre><code><div ... | javascript jquery | [3, 5] |
300,887 | 300,888 | jquery timeout function not working properly | <p>I am using the <code>setTimeout</code> function to set <code>display: block;</code> and append to <code>li</code>, on mouseover. I just want to remove the block and make it none.</p>
<p>My function works fine but the problem is if the mouse crosses the <code>li</code>, it self the block getting visible. How can I a... | javascript jquery | [3, 5] |
5,520,160 | 5,520,161 | Adding some custom session variables to a JavaScript object | <p>I currently have a custom session handler class which simply builds on php's session functionality (and ties in some mySQL tables).</p>
<p>I have a wide variety of session variables that best suits my application (primarily kept on the server side). Although I am also using jQuery to improve the usability of the fr... | php jquery | [2, 5] |
361,345 | 361,346 | Why doesn't this click handler work in JQuery? | <p>I've got the following code in my page:</p>
<pre><code>var offer_link = $('<a>').addClass('fc-offer-link');
offer_link.click(function() {
alert('Hello');
});
offer_link.attr('href', "#" + this.id);
offer_link.append(this.subject);
this.list_item = $('<li>');
this.list_item.append(offer_link);
</co... | javascript jquery | [3, 5] |
4,025,254 | 4,025,255 | Specifying relative file location in web.config for use by standard C# class library | <p>I'm struggling to find a way of specifying a file location in <code>web.config</code> appSettings that avoids using hard-coded paths but allows a non-'web aware' C# library to find a file.</p>
<p>The C# library uses standard <code>File.Open</code>, <code>File.Exists</code> methods, etc. to operate on a data file, w... | c# asp.net | [0, 9] |
4,362,763 | 4,362,764 | How to nest one ListView inside another ListView control in c# (Asp.net)? | <p>How to nest one <strong>ListView</strong> inside another <strong>ListView</strong> control in c# (Asp.net)??</p>
| c# asp.net | [0, 9] |
4,783,526 | 4,783,527 | Java - Android Programming - Loop Fail | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/10492182/java-android-programming-loop-fail">Java / Android Programming - Loop FAIL</a> </p>
</blockquote>
<p>What i am trying to do:
To throw a toast once an hour.
What's the problem:
The while loop has the app... | java android | [1, 4] |
2,325,303 | 2,325,304 | Form Submit not working on window.onbeforeunload | <p>Desperate to submit the form when the user navigates away using the links on the page. Clicking the link sets the saveOnUnload to true, the Save() functions is entered, alert happens, but neither form.Submit nor btnObj.click() actually work, i.e. the form submit is skipped!</p>
<pre><code><script language='javas... | c# javascript | [0, 3] |
1,442,680 | 1,442,681 | Select selected combobox with jQuery | <p>I've these three selects:</p>
<pre><code><div id ="Xcombos" class = "styled-select">
<select id="combopie" class="Xcombo" style="display:none;">
<option value="gender">Gender</option>
<option value="age">Age</option>
</select>
<select id="combobar" class="X... | javascript jquery | [3, 5] |
1,148,897 | 1,148,898 | Can't add duplicate row to the asp.net Table Control | <p>I have an asp.net table control like this:</p>
<pre><code> TableHeader
A Text | Textbox
</code></pre>
<p>What I want to do is, in the page_load event, duplicate second row with all the controls within it, change the text in the first cell and add as a new row. So here is my code:</p>
<pre><code> for (int ... | c# asp.net | [0, 9] |
3,883,731 | 3,883,732 | how to get the short codes? | <p>how to get the short codes from a service providers?
I want to create a app that could receve these sms sent to the short codes by the user and the app should return the response to the client. </p>
| java android | [1, 4] |
950,311 | 950,312 | How to set a dropdownlist item as selected in ASP.NET? | <p>I want to set selecteditem for asp. net dropdownlist control programmatically.</p>
<p>So I want to pass a value to the dropdownlist control to set the selected item where is the value of the item equal to the passed value.</p>
| c# asp.net | [0, 9] |
2,839,578 | 2,839,579 | Receive image from c# in php | <p>I use this code to send an image from desktop application to a php file on server:</p>
<pre><code>// Create a request using a URL that can receive a post.
WebRequest request = WebRequest.Create("http://example.com/img.php");
// Set the Method property of the request to POST.
request.Method = "POST";
// Create POS... | c# php | [0, 2] |
1,765,527 | 1,765,528 | How to encode a URL string | <p>I have a string that contains a url which looks like this:</p>
<p><a href="http://www.test.com/images/tony" rel="nofollow">http://www.test.com/images/tony</a>'s pics.jpg</p>
<p>I need the url to look like this:</p>
<p><a href="http://www.test.com/images/tony%27s%20pics.jpg" rel="nofollow">http://www.test.com/imag... | c# asp.net | [0, 9] |
4,556,123 | 4,556,124 | Android display an image based on a calculation | <p>I have an EditText box where the user inputs a number and 3 TextViews that display the result of some calculations. Instead of showing "2" as the result, I would like to show a specific picture based on the result. i.e. "1"=pic1 "2"=pic2.... </p>
| java android | [1, 4] |
3,997,292 | 3,997,293 | Preventing OnClientClick to newtab of Button to trigger Other clicks on the page | <p>I am using a <code>Button</code> in <code>Web form</code> and <code>onclick</code> event should open a report in new tab. I am using <code>onclientclick</code> property of <code>Button</code> but it enables all the other <code>Button</code> or <code>Radio Button</code> to redirect in new tab. How to prevent this.</p... | c# asp.net | [0, 9] |
783,380 | 783,381 | How to get soap address location attribute from wsdl document in JavaScript | <p>How can I get or retrieve the address location from this tag in JavaScript and Java?</p>
<pre><code><soap:address location="http://www.webservicex.net/geoipservice.asmx"/>
</code></pre>
<p>I am using this WSDL: <a href="http://www.webservicex.net/geoipservice.asmx?wsdl" rel="nofollow">http://www.webservicex.... | java javascript | [1, 3] |
4,520,485 | 4,520,486 | jquery .post elements created with append | <p>I have a code with input field, and with clicking on add it adds new input field with new name:</p>
<pre><code>/* multiply recepient */
var number = 1;
$('a.plus').live('click', function() {
number += 1;
$('.multiple').append('<p><input type="text" name="recepient_' + number + '"></p>');
... | php jquery | [2, 5] |
3,649,867 | 3,649,868 | hasClass is not a function | <p>I was wondering if anyone could help out. The problem is quite simple though but I can't get it. I keep on getting this error message saying,</p>
<blockquote>
<p>TypeError : $(...)hasClass is not function.</p>
</blockquote>
<p>Can anyone help out here?:</p>
<pre><code>$(function fade(){
$('#contentWrap >... | javascript jquery | [3, 5] |
404,055 | 404,056 | jquery :last selector for multiple list | <p>I Have a navigation looking like this</p>
<pre><code><ul class="navigation">
<li class="navlist">
Navigation1
<ul>
<li>point1</li>
<li>point2</li>
...
</ul>
</li>
<li class="navlist">
Navigation2
<ul>
... | javascript jquery | [3, 5] |
5,838,592 | 5,838,593 | image control unable to display image | <p>my code is:</p>
<pre><code>string filename = FileUploader.PostedFile.FileName.Substring(fuImage.PostedFile.FileName.LastIndexOf("\\") + 1);
if(fuImage.HasFile)
{
FileUploader.SaveAs(Server.MapPath("Modules/NewUserProfile/UserPic/" + filename));
imgUser.ImageUrl = Server.MapPath("Modules/NewUserProfile... | c# asp.net | [0, 9] |
3,151,435 | 3,151,436 | Refreshing a button in Android | <p>I have set a content view in Android with: </p>
<pre><code>setContentView(R.layout.activity_main);
</code></pre>
<p>Now after one of the buttons is clicked, the following code is executed to enable another button:</p>
<pre><code>ok.setOnClickListener(new View.OnClickListener() {
@Override
... | java android | [1, 4] |
4,490,639 | 4,490,640 | Server side validation for required fields | <p>I am having an issue with the requiredfieldvalidator control not working on an ASP.net page. I have completed the attributes of that field properly, but when I test it, the postback is allowed to happen even if the field in question is blank. </p>
<p>So I want to do server side validation instead. What is the be... | c# asp.net | [0, 9] |
656,180 | 656,181 | Send a mail using Javascript without going through Outlook | <p>Is it possible to Send a mail using Javascript without going through Outlook</p>
| javascript asp.net | [3, 9] |
2,729,294 | 2,729,295 | Get enum values from web.config at run time | <p>I have an enum which I want to get from the web.config at run-time.
I started reading about build providers, but this seems to work for classes.
Can someone point me to an example, or at least point me in the right direction.</p>
<p>Right now I have a comma separated list of values in the web.config, and this is no... | c# asp.net | [0, 9] |
1,848,694 | 1,848,695 | Dynamically arranging divs using jQuery | <p>I have the following structure:</p>
<pre><code><div id="container">
<div id="someid1" style="float:right"></div>
<div id="someid2" style="float:right"></div>
<div id="someid3" style="float:right"></div>
<div id="someid4" style="float:right"></div>
</div>
<... | javascript jquery | [3, 5] |
4,400,370 | 4,400,371 | Next & Previous button | <p>I would like to add next and previous buttons so i can click through my images</p>
<p>here is my example</p>
<p><a href="http://scott-p.dmlive.co.nz/formatives/pf-wp/" rel="nofollow">http://scott-p.dmlive.co.nz/formatives/pf-wp/</a></p>
| javascript jquery | [3, 5] |
4,431,964 | 4,431,965 | Android Java Notify does not trigger wait | <p>I'm trying to understand this concurrent programming with threads and I don't seem to get this wait() and notify()</p>
<p>I suspect that it has something to do with one of my thread waiting forever and the notify is already called. But I don't know how to solve this. I read through others posts on stackoverflow, bu... | java android | [1, 4] |
1,602,445 | 1,602,446 | How do I make the $(window).height() doesn't go below what it started at? | <p>I am trying to console.log the window height with this code here:</p>
<pre><code>var $win = $(window);
$win.on('resize', update);
function update () {
console.log($win.height());
}
</code></pre>
<p>It sort of works, but it wont go below the height of my largest element. How can I make it so it will?</p>
| javascript jquery | [3, 5] |
5,951,073 | 5,951,074 | DIsplaying DataSet in Editable format? | <p>assume I have a single row datatable with collums of diffrent type</p>
<p>I want to bind them to a contorl that will allow the user to easily edit the data, winform style for example if data is of type <code>datetime</code> it will diplay a <code>datepicker</code>. <code>boolean</code> will be displayed as <code>ch... | c# asp.net | [0, 9] |
4,142,214 | 4,142,215 | Remove span using global variable in jQuery | <p>I create a span with a global variable like this:</p>
<pre><code>var $span = jQuery('<span></span');
jQuery($span).append('<img src="myimage.gif"/>');
jQuery($span).insertAfter('#username');
</code></pre>
<p>It works but I would like to remove the span in some part of my code.
I try with:</p>
<pr... | javascript jquery | [3, 5] |
5,317,684 | 5,317,685 | jQuery variable with 0 (zero) value | <p>I have a variable that I past to a function called <code>comment_test</code> that will sometimes be <code>0</code>, but it fails because I guess it reads it as <code>false</code>. I get the error <code>'ReferenceError: Can't find variable: count'</code>.</p>
<p>But, I need to know if the variable is indeed <code>0<... | javascript jquery | [3, 5] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.