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 |
|---|---|---|---|---|---|
122,540 | 122,541 | How do I add response from TextBox? c# | <p>Hi
I have created my own control which contains TextBox control as a child control. this textbox has autopostback set on. when the postback is called I dont get any text in request.querrystring.
where should I specify text entered into texbox will be send to response ? or is there any easier way of sending this info... | c# asp.net | [0, 9] |
463,670 | 463,671 | Show(), Hide() for class works for IE? | <p>I am using one drop down list to determine what is displaed in another. My jquery .show() and .hide() works for firefox and not IE. I am using the class attribute to toggle. How would I do this for IE? Should I use javascript?</p>
<pre><code> if (dept == "All") {
$('.Sales').show();
$... | javascript jquery | [3, 5] |
5,714,865 | 5,714,866 | need a solution for this problem | <p>I have parts produced and parts rejected options in my app. My client gave me a condition to put:</p>
<p>At any time parts rejected should not be less than the parts produced<br>
and<br>
You should be able to save even if the parts produced is 0*</p>
<p>What do I need to put the condition there to make it successf... | c# asp.net | [0, 9] |
183,608 | 183,609 | Problems using SQLiteOpenHelper, returns null on create, possible Thread issue | <p>I have a ContentProvider named <em>GeneralDataProvider</em>. Which calls </p>
<pre><code>@Override
public boolean onCreate() {
mDatabaseOpenHelper = new DatabaseOpenHelper(getContext());
return true;
}
</code></pre>
<p>Which looks like:</p>
<pre><code>private static class DatabaseOpenHelper extends SQLite... | java android | [1, 4] |
4,792,786 | 4,792,787 | how to get a variable over to a function? | <p>i want to get a variable (which is set when a link is clicked) over to a function and show it as a pop out.</p>
<p>the code as shown below:</p>
<pre><code>$('a#link1').click(function(e){
e.preventDefault();
var value = 'true';
});
function exe(){
alert(value);
}
</code></pre>
<p>when the function is exe... | javascript jquery | [3, 5] |
4,130,722 | 4,130,723 | js array.length called from variable doesn't work, why? | <p>Here is code that I have copied from w3schools, I have different code, but the problem that I am having still happens in this simplified coding.</p>
<pre><code><!DOCTYPE html>
<html>
<body>
<p id="demo">Click the button to create an array, then display it's length</p>
<button oncl... | javascript jquery | [3, 5] |
2,804,385 | 2,804,386 | Replace a part of string using jQuery/JavaScript | <p>I have a variable as below</p>
<pre><code>var a = "Hi this is test. <img src='http://www.test.com/img1.jpg'> Test ends here";
</code></pre>
<p>I want to replace the <code>src</code> of image tag to some other image url lets say <code>http://www.test2.com/img2.jpg</code></p>
<p>So the output should be</p>
<... | javascript jquery | [3, 5] |
3,127,358 | 3,127,359 | Jquery not working | <pre><code>(function($) {
$(document).ready(function(){
/*$('body').css('position','relative');
$('body').animate({'left':'-9999px'},3000);*/
alert('hello');
});
}(jQuery));
</code></pre>
<p>Tried also</p>
<pre><code>$(document).ready(function(){
/*$('body').css('position',... | jquery javascript | [5, 3] |
2,234,478 | 2,234,479 | Inserting characters into a string - most efficient | <p>I need to insert a character into a string, A, every place there is a character B.</p>
<p>For example xxxxxxxxBxxxxxxxxxxxxxxxxxBxxxxxxxxxxxxB</p>
<p>becomes</p>
<p>xxxxxxxxxxxABxxxxxxxxxxxxxxxABxxxxxxxxxxxxxxxxxxxAB</p>
<p>I see that Javascript (replace) and PHP (str_replace) have replace functions, so that I c... | php javascript | [2, 3] |
3,204,149 | 3,204,150 | What's wrong with this code? | <p>For some reason, every piece of code that's below this snippet won't run...</p>
<p>I don't see anything wrong with it ...</p>
<pre><code>window.navigationDropdownTimeout = 0;
$(".navigation li.expanded > a").hover(function(){
clearTimeout(window.navigationDropdownTimeout);
$(".navigation ul ul.menu").hide(... | javascript jquery | [3, 5] |
1,957,789 | 1,957,790 | am getting an error Microsoft JScript runtime error: 'Array' is undefined | <p>Microsoft JScript runtime error: <code>'Array'</code> is undefined</p>
<pre><code>var Page_Validators = new Array(document.getElementById("rfvOthers"), document.getElementById("rfvREJECT_REASON_COMMENTS"));
</code></pre>
<p>Can Anybody Tell me what may be the solution for this</p>
<p><strong>Update</strong><br>
... | javascript jquery asp.net | [3, 5, 9] |
5,682,074 | 5,682,075 | php force download on mobile browsers | <p>I'm trying to force download a image file (jpg for example) using php. So I have a script here <strong>force.php</strong> and here would be the code:</p>
<pre><code>header("Pragma: public"); // required
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Cache-Control:... | php android | [2, 4] |
5,922,215 | 5,922,216 | Homepage image slider stops working on horizontal scrolling website | <p>I've been working on a site found here: </p>
<p><a href="http://www.myheavenbridal.com.au" rel="nofollow">http://www.myheavenbridal.com.au</a></p>
<p>I have a JS problem where the homepage slider stops working once clicking the main navigation links.</p>
<p>ie/ clicking on 'Contact Us' will slide over to the cont... | javascript jquery | [3, 5] |
1,374,951 | 1,374,952 | jQuery - Animate & Time interval | <pre><code><script>
$(document).ready(function() {
$.get("database.php", function(data){
var xp = data + "%";
$('#exp_bg').animate({
width: xp
}, 1500, function() { });
});
});
</script>
</code></pre>
<p>Database.php:</p>
<pre><code><?php
$xp = 50;
$level = 100;
$xp_percent = $xp * 10... | php jquery | [2, 5] |
1,504,856 | 1,504,857 | Passing value from JScript to ASP.NET Control | <p>I am trying to pass a value from a JScript function to an ASP.NET Control but I am not able to make it work. What am I doing wrong here:</p>
<p>aspx.cs</p>
<pre><code><%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication5._Default" %>
<!DOCTYPE html PUBLIC "-... | c# javascript asp.net | [0, 3, 9] |
4,587,645 | 4,587,646 | Android - Black Screen after clicking BACK in an Activity with an AltertDialog after Search Activity | <p>I have an Activity which displays an alert dialog priot to the content.
Also a search activity is called before this activity.</p>
<p>Now when i press back on this activity i am lead to a black screen (which i assume is eighter because of the dialog [unlikely] or from the search activity). Only when i press BACK tw... | java android | [1, 4] |
4,436,352 | 4,436,353 | ASP.NET javascript. Put it in code behind or put it in .aspx file? | <p>Why do people put javascript in the code behind ? I think it is ugly to have 100 (see below) of these.... Is there some basic reasons that javascript must be in the code behind in some instances? And when it should in the aspx. ?? </p>
<pre><code> // now we gotta recalc fields
szCalcBe... | asp.net javascript | [9, 3] |
4,516,907 | 4,516,908 | Link button control using asp.net | <p>I have set of link buttons in my masterpage and one button in my content page.
i want when i click the any one of link button in the masterpage the value in the content page will change. How i can do this. Can any one able to help me because i am new in asp.net
Thank you </p>
| c# asp.net | [0, 9] |
6,032,691 | 6,032,692 | Validate youtube and other video site url | <p>i want to provide a option for user to add video from the following video sites </p>
<ol>
<li>Dailymotion</li>
<li>Metacafe</li>
<li>YouTube - <a href="http://stackoverflow.com/questions/3452546/javascript-regex-how-to-get-youtube-video-id-from-url/4811367#4811367">Javascript REGEX: How to get youtube video id from... | php javascript | [2, 3] |
4,525,648 | 4,525,649 | Android - BroadcastReceiver inside a thread | <p>Is it possible to have broadcastReceiver running inside a thread (just broadcastReceiver)? As far as I know, this can't be done unless there is a way to keep the thread alive (even tough there is no work). Please correct me if I'm wrong.</p>
<p>This is what I want to do: I have a client and a server program that ru... | java android | [1, 4] |
4,463,576 | 4,463,577 | iFrame scrollTop on a non-local domain | <pre><code>$("#topofpage").click(function() {
$("#iframe_display").scrollTop();
});
</code></pre>
<p>This doesn't work, it says 'permission denied'. The URL must reside in the same domain for only <code>scrollTop</code> to work? Why is this? Is there any way around it? </p>
<p>How about using server side code u... | javascript jquery | [3, 5] |
4,767,926 | 4,767,927 | Why does this super simple jquery not work? | <p>I'm having hard time getting this snippet to work. I have made a minimal example. You can view it online: <a href="http://jsfiddle.net/qnnZe/" rel="nofollow">http://jsfiddle.net/qnnZe/</a> where it is <strong>working!</strong></p>
<p>test.html</p>
<pre><code><!DOCTYPE html>
<head>
<title>tes... | javascript jquery | [3, 5] |
3,039,637 | 3,039,638 | Using C++ dll having header file in C# | <p>I am totally new in c++ and I want to use C++ dll (having header file) in c# program. </p>
<p>please find below header file. </p>
<pre><code>#pragma once
#define DAILY_PERIOD 24*60
#define MIN_PERIOD 1
#ifdef API_DLL
#define METHOD_TYPE __declspec(dllexport)
#else
#define METHOD_TYPE __declspec(dllimport)
#end... | c# c++ | [0, 6] |
5,672,495 | 5,672,496 | Equivalent of Runtime class (of java) in c# | <p>Is their is an Equivalent of Runtime class (of java) in c#
Actually I am trying to convert these operation to c#</p>
<p>Runtime runtime = Runtime.getRuntime();
return runtime.totalMemory() - runtime.freeMemory();</p>
| c# asp.net | [0, 9] |
1,184,864 | 1,184,865 | How to I re-enable the ability to select an element in ie and firefox? | <p>I have used the following script to disable the highlighting of script on a table...</p>
<pre><code>function disableSelection(target) {
if (typeof target.onselectstart != "undefined") //IE route
target.onselectstart = function () { return false; };
else if (typeof target.style.MozUserSelect != "unde... | javascript jquery | [3, 5] |
2,915,829 | 2,915,830 | Android querying external MySQL database | <p>I had some problem understanding the following line of code. What exactly does it do and how does it help me query the database from android </p>
<pre><code>$q=mysql_query("SELECT * FROM people WHERE birthyear>'".$_REQUEST['year']."'");
while($e=mysql_fetch_assoc($q))
$output[]=$e;
print(json_encode($output)... | php android | [2, 4] |
3,001,155 | 3,001,156 | How can I set the right parameters of dataset.Table[0].Compute(string expression,string filter)? | <p>I can not get the right result from the following code block:</p>
<pre><code>object ob = ds_bug.Tables[0].Compute("Count(id)",str_vertical +"= '"+"' and "+str_horizontal+" = '"+first_row.Cells[j].Text.ToString()+"'");// ds_bug has been filled some data.
</code></pre>
<p>str_vertical and str_horizontal are two fie... | c# asp.net | [0, 9] |
115,683 | 115,684 | select list title is not showing on mouse hover | <p>I created a Select list and applied jquery UI <code>selectmenu plugin</code> like:</p>
<pre><code> <select id="test" title="This is not showing on mouse hover">
<option..>
</option>..
</select>
$("#test").selectmenu();
</code></pre>
<p>Now my problem is that the <strong>title</str... | javascript jquery | [3, 5] |
930,808 | 930,809 | Get list of Non System Applications | <p>I'm able to get a list of installed packages using the package manager, but this includes various system packages . Are there any filters i can apply on this list to only show the apps that would show up when bringing up the application list from the home screen?</p>
| java android | [1, 4] |
327,628 | 327,629 | How to add a Drawable to WebView | <p>Json</p>
<pre><code> {
"text": " «Le président du Bloc du Changement et de la Réforme",
"imagepath": "http://www.example.com/dori%20chamoun-saidaonline.jpg"
}
</code></pre>
<p>I get the text and fetch image from url as drawable </p>
<pre><code> introtext = jArray.getString("introtext");
</code></pre>
<p... | java android | [1, 4] |
5,771,251 | 5,771,252 | Dynamically loading aspx page | <p>I found two methods for loading page html dynamically for aspx but only issue is that my txt file is on another server and required to method ask for virutalpath or physical path on webserver.</p>
<p>Is there any way so I can load from azure from url not from filepath or if i can pass only string to PageParser or B... | c# asp.net | [0, 9] |
5,170,833 | 5,170,834 | Is it possible to disable all the physical phone buttons? | <p>I am developing a security apps, when the phone is lost or stolen, the phone screen is locked automatically and if the theft tries to login to the phone by randomly enters password, the phone will record until 3 failed attempts.</p>
<p>After 3 failed attempts, the current layout will change to a black layout with n... | java android | [1, 4] |
3,173,605 | 3,173,606 | jQuery: Rotate images using a button | <p>I am trying to rotate 2 images. For now, I have this code:</p>
<pre><code>$('img').on({
'click': function () {
var src = ($(this).attr('src') === 'img1_on.jpg') ? 'img2_on.jpg' : 'img1_on.jpg';
$(this).attr('src', src);
}
});
</code></pre>
<p>It works perfectly: when I click on an image, the other app... | javascript jquery | [3, 5] |
2,508,970 | 2,508,971 | Message Alert Tone | <p>I am working on an App that gets sms alerts and would like to control volume of alert tone based on device volume. How do I adjust alert notification sound in alignment with device master volume. Following code doesn't change volume of alert in my app based on device volume. Thank you.</p>
<pre><code> volume = ... | java android | [1, 4] |
4,561,880 | 4,561,881 | JQuery: get the element that's on the middle of the visible screen, while scrolling the page | <p>I need to know if there is a way I can determine if a div is in the center of the screen.</p>
<p>My HTML is as bellow:</p>
<pre><code><div id="container">
<div class="box" id="box0">
text
</div>
<div class="box" id="box1">
text
</div>
.....
<div class="box" id="box100"&... | javascript jquery | [3, 5] |
2,664,979 | 2,664,980 | Confirm dialog (Alert) inside AsyncTask | <p>So I have a long process running inside AsyncTask but it might need to confirm something from user while processing, I know how I can show confirm dialog but how to retrieve the output and keep wait till use confirms.</p>
<pre><code>this.runOnUiThread(new Runnable() {
public void run() {
... | java android | [1, 4] |
609,570 | 609,571 | extending jquery issue | <p>I was reading this source code and there seems to be error. can anybody say what is happening</p>
<pre><code>var JX = {
extend: function(bc, sc, o) {
var f = function() {};
f.prototype = sc.prototype;
bc.prototype = new f();
bc.prototype.constructor = bc;
bc.superclass = ... | javascript jquery | [3, 5] |
1,149,363 | 1,149,364 | How can I set timeout for redirected or for new opened page on other server? | <p>I want to redirect my page to other page like to google.com or to open google.com as additional page in the browser.</p>
<p>There is any way to close other opened google-page (if it was opened as a new page) or return to my page (if my page was redirected to google-page) after 10 minutes of timeout?</p>
<p>I trie... | php javascript jquery | [2, 3, 5] |
5,961,499 | 5,961,500 | jQuery plugin for textarea with options of inserting special characters | <p>I am looking for jQuery plugin that has options of selecting different fonts, gives different options to user to insert special characters. Please let me know if it is possible through some other javascript or html code</p>
| javascript jquery | [3, 5] |
1,655,876 | 1,655,877 | Upon Submitting a Button, Replacing RatingBar with a TextView? | <p>I have a Ratings Bar that allows users to vote. I want them to select the star total on the bar, hit a button to submit, and upon submitting , the Ratings Bar is replaced by a TextView that says something like "Thank you for voting!" </p>
<p>How can I do this in Java code?</p>
<p>Also, for bonus points, is there... | java android | [1, 4] |
5,153,402 | 5,153,403 | redirect to an image | <p>Why can't I redirect page to a image for example:</p>
<pre><code>Response.Redirect("http://www.domain.com/images/image.gif");
</code></pre>
<p>This doesn't show me the image. Also placing conten type image/gif doesn't show the image.</p>
| c# asp.net | [0, 9] |
5,018,350 | 5,018,351 | clearing the content of the html editor | <p>i do have text-box and two check boxes which i am able to clear its values on button click: </p>
<pre><code>$("#cleartext").live('click', function () {
$(this).parents('form').find('input[type="text"]').val('');
$(".check").attr("checked", false);
});
</code></pre>
<p>but i do have a textarea i... | php jquery | [2, 5] |
3,380,844 | 3,380,845 | Get Touch Coordinates Relative To A View (ScreenToClient Equivalent?) | <p>I have an image I am displaying to a user in my android application.</p>
<p>I want to be able to tell where they 'touch' the image.</p>
<p>I can easily get the screen coordinates by implementing an OnTouchListener</p>
<pre><code> private OnTouchListener image_Listener = new OnTouchListener(){
@Override
pu... | java android | [1, 4] |
5,866,812 | 5,866,813 | asp:menu in safari and chrome | <p>I have seen some posts of the asp:menu and the browsers Chrome and Safari here, but nevertheless, I think the problem that I have is different than other problems.</p>
<p>I am using the following code in order to display the menu:</p>
<pre><code>protected void Page_Load(object sender, EventArgs e)
{
if (Reques... | c# asp.net | [0, 9] |
2,280,698 | 2,280,699 | Android/Java - Issue | <p>The code is like this:</p>
<pre><code>private DatabaseHelper mOpenHelper;
@Override
public boolean onCreate() {
mOpenHelper = new DatabaseHelper(getContext());
System.out.println("done");
return true;
}
</code></pre>
<p>Now Eclipse is showing me an <strike>error</strike> warning on the first line of this cod... | java android | [1, 4] |
5,521,884 | 5,521,885 | Javascript interaction between ASP.NET web controls | <p>I have a UserControl A which contains </p>
<ul>
<li>a dropdown</li>
<li>a placeholder</li>
</ul>
<p>At runtime the placeholder will be populated with some UserControl B.</p>
<p>There are certain times which I need to trap the javascript onchange event in the dropdown to call a javacript function in B (to do a cli... | asp.net javascript | [9, 3] |
2,495,606 | 2,495,607 | Using javascript and $_SESSION's to record wanted user information over pagination | <p>What I have so far is a paginated page, showing all users in a database system. Each page shows 30 users and has a checkbox next to each user, what I need is a way for users to select and deselect these users and for these selections to propagate through, so if the user goes back to page 1 from page 2, all users fro... | php javascript | [2, 3] |
4,518,894 | 4,518,895 | how to upload folder to server in asp.net c# | <p>I think the Folder upload is supported java applet.
But how can i use java applets in Asp.net c#
Please tell me about this, without the Flash and silverlight.</p>
| c# asp.net | [0, 9] |
4,102,858 | 4,102,859 | org.apache.commons.net.nntp crashing android | <p>Hay Guy, I'm using org.apache.commons.net.nntp to connect to a nntp server, however running a simple nntp.connect(host, port) crashes the android.</p>
<p>Anyone got any ideas? Do java packages work with android straight out of the box? or do they need editing?</p>
<p>Thanks</p>
<pre><code>import org.apache.common... | java android | [1, 4] |
5,693,169 | 5,693,170 | android application can run on emulator fine but very slow when run on android phone | <p>My developed android application can run on emulator fine but when I export it to .apk and install to my galaxy S it very slow to show any content.</p>
<p>My application have to connect with web service and database that run on localhost. I try to move web service and database to another host that faster but it doe... | java android | [1, 4] |
4,774,609 | 4,774,610 | Bindind Repeater to Stack List | <p>Here is code. Its not showing any compile or run time error. I debugged also then till data binding works fine. But then also controls not shown in web page!</p>
<p>Sample.aspx:</p>
<pre><code> <body>
<form id="form1" runat="server">
<asp:PlaceHolder ID="_placeHolder1" runat="server">
... | c# asp.net | [0, 9] |
2,147,291 | 2,147,292 | Open save as dialog on newly opened window | <p>How in JS/jQuery do I pop open the "Save As" dialog for a newly opened window. Basically I am scraping some data off of a web page. As such I am opening a new window via:</p>
<pre><code>dataWindow = window.open('blank','dataWindow');
</code></pre>
<p>I then write the output to the blank window but I want to auto... | javascript jquery | [3, 5] |
5,564,453 | 5,564,454 | How to make sure all elements contain a specific class in jQuery? | <p>I need to check to make sure that all certain elements that are children of their parent container have a specific class. Can someone tell me how to do this in jQuery?</p>
<p>if all paragraph tags of div tag have the class "correct"</p>
<p>-> yep, all of them have the class</p>
<p>otherwise, not all paragragh tag... | javascript jquery | [3, 5] |
4,056,800 | 4,056,801 | Options Menu on Spinner | <p>I'm looking for a way to add items to a spinner from within the spinner item list dialog.</p>
<p>Ideally, I could hit the menu button and select an option to add, prompt the user with an edittext dialog and update the item list. Is there a way to make the options menu accessible on a dialog?</p>
<p>I thought I mig... | java android | [1, 4] |
2,324,524 | 2,324,525 | How to tell if obj is jquery or plain javascript | <p>This is probably a stupid question but is there a way to tell programmatically if the object is jquery or just plain javascript?</p>
<p>For example:</p>
<pre><code>Utils.Listbox.MoveItemsUp = function(listbox) {
if(listbox.isJquery()) {
listbox.each(function(){});
}
else {
for(var i =... | javascript jquery | [3, 5] |
1,003,012 | 1,003,013 | How to detect if a click() is a mouse click or triggered by some code? | <p>How to detect if a click() is a mouse click or triggered by some code?</p>
| javascript jquery | [3, 5] |
4,543,965 | 4,543,966 | password regex validation | <p>I'm trying to get one regex that'll do the following:</p>
<ul>
<li><p>Min length's 6 and max. length 8</p></li>
<li><p>No white-space characters</p></li>
<li><p>There is at least one alphabetic character and numeric character</p></li>
<li>Not contains Turkish character (ı,ö,ğ,ç,ş,ü)</li>
</ul>
<p>Exp (valid pass) ... | c# asp.net | [0, 9] |
5,968,014 | 5,968,015 | UI design suggestions for Display and Switching between Multiple Layouts | <p>I'm trying to create an app that offers the user 3 different kinds of layouts.
The only common portion for all 3 would be the TextView (located at the top) that would display information specific to the currently displayed layout and 3 buttons to select the required layouts.</p>
<p>Is there some way we can create t... | java android | [1, 4] |
120,574 | 120,575 | How to pass dynamic id text box value to another page without refreshing with jquery and php | <pre><code>$('.btncomment').click(function () {
var id = $(this).attr('id');
$.post('SaveTopicInformation.php', {
tid: commentform.(topic_ + id).value,
topicdetail: commentform.(topicdetail_ + id).value,
userid: commentform.(user_ + id).value
});
});
</code></pre>
<hr>
<p>I have to... | php jquery | [2, 5] |
4,261,116 | 4,261,117 | e.which ENTER key enabled only if input field focus | <p>I am using a e.which of jquery for running a function on press of ENTER, but I want this function to be called only if the particular input field is focused (where the cursor is blinking).</p>
<p>My current jquery function.</p>
<pre><code>$(document).keyup(function(e) {
if (e.which == 13) {
var page = ... | javascript jquery | [3, 5] |
84,406 | 84,407 | Check Date and Display Until Event Date | <p>I want to list an event in the sidebar and have it automatically disappear on the day after the event.</p>
<pre><code><h6>Next Meeting</h6>
<dl id="nextmeeting">
<dt><a href="members-meetings.html">Oct 15, 2011</a></dt>
<dd>La Quinta Inn & Suites</dd>
<dd... | php javascript | [2, 3] |
5,975,899 | 5,975,900 | how to use bind() instead of live()? | <p>I'm trying to understand how to use bind in jquery.</p>
<p>I have a page which, after a button press, does the following code:</p>
<pre><code>var html = [];
html.push('<select name="weddingturn" id="weddingturn">');
var a = firstweddingturn;
var b = Number(firstweddingturn) + 16;
while (a < b) {
// do s... | javascript jquery | [3, 5] |
2,841,009 | 2,841,010 | Does jquery .width(value) resize the images within a container? | <p>The question is simple, and hope the answer is as well. I have a div(call it div A) which is dynamically resized according to the viewport dimensions. The div contains a couple of images(which are around 3000px * 3000px) which I am loading in two divs(call it div B and div C) below each other inside Div A. Div B and... | javascript jquery | [3, 5] |
5,535,231 | 5,535,232 | Reading the IMG within an A on click jQuery | <p>I'm trying to adapt my script to read the alt attribute of an img within an a.</p>
<p>For some reason, this isn't work:</p>
<pre><code>$("#thumbs a").click(function(event) {
event.preventDefault();
var title = $(this + " img").attr("alt");
alert(title);
});
</code></pre>
<p>It returns a value of <code... | javascript jquery | [3, 5] |
2,029,940 | 2,029,941 | How to use global variables in ObjectDataSource.SelectMethod? | <p>I'm using ListView + DataPager + ObjectDataSource mix. </p>
<p>In the implementation of my SelectMethod of an ObjectDataSource I'd like to access a global variable set in the PageLoad() event (the method will return just the proper number of items per page). Although the variable is initialized in PageLoad() it app... | c# asp.net | [0, 9] |
3,337,760 | 3,337,761 | Change hyperlinks dynamically using jquery | <p>I want to change the param of link dynamically.</p>
<p>For e.g. </p>
<ol>
<li>Link1</li>
<li>Link2</li>
<li>Link3</li>
</ol>
<p>by default their url is ?item=text i.e. for link1(href="?item=link1") etc..
but when i click link1 the url of link2 and link3 should be
link2(?item=link2&item=link1)
link3(?item=link... | javascript jquery | [3, 5] |
2,376,792 | 2,376,793 | How To Get A Value Out Of A DetailsView DataItem Property | <p>I am accessing a DetailsView from the following event</p>
<pre><code> public void dvDetails_DataBound(Object sender, EventArgs e)
</code></pre>
<p>I am casting the sender to my detailsview like so</p>
<pre><code>DetailsView dv = (DetailsView)sender;
</code></pre>
<p>Now when I look in "dv" I can see the DataItem... | c# asp.net | [0, 9] |
374,020 | 374,021 | .classpath is hidden, which doesn't allow me to add any jar files | <p>I have downloaded a sample in Samsung BLE SDK, but the .classpath file is hidden in the sample folder and i can't add any jar files in this project because of that. I always get this error:</p>
<p>"could not write file in .classpath" </p>
<p>How can i make this .classpath file visible?</p>
| java android | [1, 4] |
3,416,751 | 3,416,752 | Session State Issue | <p>When visiting a page, I am storing a value in session state. When I click back on the browser, the value in session reverts to its original value. Why does this happen? I am not resetting the value when i go back.</p>
<p>This happens on iPhone and iPad - all other browsers do NOT roll back the session state value.... | iphone asp.net | [8, 9] |
3,239,648 | 3,239,649 | Parsing Data as integer | <pre><code><script>
var intVar = parseInt($(.span).data('1'));
alert(data) // output Nan
</script>
---------------
<span id ="span" class ="span" data-1="4" />
</code></pre>
<p>i want 'intVar' as integer, but unable to parse 'data-1'</p>
| javascript jquery | [3, 5] |
2,600,063 | 2,600,064 | jQuery.appear to fire only when the entire element in is viewport | <p>I'm currently using <a href="https://github.com/morr/jquery.appear" rel="nofollow" title="Click here to view">jQuery.appear</a> to change the class of elements as they come into the viewport. The plugin works great, except that it fires right as the top of the element comes into view. I am wanting to adapt it so it ... | javascript jquery | [3, 5] |
4,611,265 | 4,611,266 | Android: Is there a way to execute JavaScript from my app? | <p>I was hoping to find something in the Android sdk similar to the <code>javax.script</code> package in Java; but haven't been able to find anything. Am I missing a way to execute JavaScript from my app?</p>
| javascript android | [3, 4] |
1,125,362 | 1,125,363 | I want to split a number into single digit and change it into the binary in android | <p>I have a number 83 I want to split this number like 8 and 3 then want to change the number into binary form in android and want the result.how can I do this.Please help me</p>
<p>Thanks</p>
| java android | [1, 4] |
4,087,880 | 4,087,881 | C# app blocks when calling method from dll | <p>I'm currently exploring DLL exported functions and P/invoke in C#.
I've created very simple .dll:</p>
<p>Test.h</p>
<pre><code>#ifndef TEST_DLL_H
#define TEST_DLL_H
extern "C" __declspec(dllexport) const char * __cdecl hello ();
extern "C" __declspec(dllexport) const char * __cdecl test ();
#endif // TEST_DLL... | c# c++ | [0, 6] |
5,776,983 | 5,776,984 | I'm getting "The report definition for report 'xxxx.rdlc' has not been specified" in my RDLC report | <p>I've created an rdlc report. I have a reportViewer on my form.
When I try to load the report I get : "The report definition for report 'xxxx.rdlc' has not been specified". I can't figure this out.
I have a datatable with the data I need for the report.
I take this dataTable and I load it back to my database, to a t... | c# asp.net | [0, 9] |
2,652,116 | 2,652,117 | Deprecated Thread methods are not supported without stop() method | <p>I programmed game, which is supposed to use <code>.startActivity</code> on activity which should display score, the problem is, that instead of properly displaying the activity, i'm getting <strong>"Deprecated Thread methods are not supported"</strong>. I googled this error and i removed all <code>Thread.stop()</cod... | java android | [1, 4] |
4,278,128 | 4,278,129 | Binding dropdownlist | <p>I have got a requirement to bind a dropdownlist using db values.I gave that dropdownlist datasource as a list of class, ie <code>ddlUser.datasource=List <User>;</code></p>
<p>The class user contains following properties <code>UserID</code>, <code>Firstname</code> and <code>Lastname</code>. </p>
<p>Its data... | c# asp.net | [0, 9] |
3,037,852 | 3,037,853 | setcookie ajax php issue | <p>I want to set cookie through AJAX. But I get warning "Cannot modify header" any ideas ?</p>
<pre><code><?php
if($_POST['name']){
setcookie("autosave_blogo_id", "value", time()+10800, '/');
}
?>
$("#button").click(function(){
$.ajax({
var indata = $('#b_pav').val()... | php jquery | [2, 5] |
444,346 | 444,347 | javascript and php not quite working | <p>You can look at the application here: <a href="http://jsfiddle.net/YYMJS/6/" rel="nofollow">application</a></p>
<p>I know the code doesn't work in jsfiddle but I have included my code in the jsfiddle so that you can see the whole code and the way it is laid out. <a href="http://jsfiddle.net/YYMJS/6/" rel="nofollow... | php javascript | [2, 3] |
329,910 | 329,911 | Hide table rows with expired content | <p>Say I use a table to display scheduled content, and I want rows to disappear after their date has passed.</p>
<pre>
Row 1 has Table title
Row 2 has Date A
Row 3 has Scheduled content A1
Row 4 has Scheduled content A2
Row 5 has Date B
Row 6 has Scheduled content B1
Row 7 has Scheduled content B2
Row 5 has Date C
Row... | javascript jquery | [3, 5] |
2,477,388 | 2,477,389 | i want to sent string from android device to java desktop application im using following code | <p>In android device which is client i use following code</p>
<pre><code>sock = new Socket("10.0.2.2", 3390);
// r = new BufferedReader(new InputStreamReader(sock.getInputStream()));
out = new BufferedWriter(new OutputStreamWriter(sock
.getOutputStream()));
String s = "abc";
out.write(s)... | java android | [1, 4] |
2,556,705 | 2,556,706 | Focus DIV out of a DIV array | <p>I am trying to add a to create an array of text boxes and every-time one is created is supposed to be focused. This is my not working code. any help would be much appreciated. thanks. </p>
<pre><code>var emails = new Array();
var count = 0;
//function to add more extra emails
$('#additional_emails')... | javascript jquery | [3, 5] |
1,471,406 | 1,471,407 | Audio/Video/Text chat in ASP.Net app | <p>I need to develop a chat system in ASP.Net. I have gone through lots of SO question asked on similar topic, but did'nt find any one satisfactory. Is it possible to create it from scratch or do i need to go for some API's. My requirement is limited to my site users only, can say intranet based.</p>
<p>Please help me... | c# asp.net | [0, 9] |
1,833,835 | 1,833,836 | when i upload a file it showing error like c:\inetpub\vhosts | <p>I have develop a small web application in asp.net (c#) for uploading files into data base it is working fine in my local machine .But when i tested in the server it showing error like</p>
<pre><code> C:\inetpub\vhosts\crosstouch.com\httpdocs\Images\100898.jpeg' is denied
</code></pre>
<p>what can i do to resolve ... | c# asp.net | [0, 9] |
4,249,591 | 4,249,592 | Hint text is not being removed | <p><a href="http://jsfiddle.net/udit_sharma/GFknc/" rel="nofollow">http://jsfiddle.net/udit_sharma/GFknc/</a></p>
<p>I have created this fiddle. which have a input box and it has hint-Text. When i am focused in this input box it's hint-Text is being cleared properly. and when i focused-out of this input box hint-Text ... | javascript jquery | [3, 5] |
1,179,243 | 1,179,244 | jQuery toggle on different area | <p>I am trying to copy the Like button of Facebook, but the problem is on the specific place to click to change the button.</p>
<p>When it's not yet liked, the user should click anywhere on the button and the button will change on the gray state (already liked). This is already done.</p>
<p>But the problem is when un... | javascript jquery | [3, 5] |
3,701,278 | 3,701,279 | jQuery Slide Left Animation | <p>I have four <code>div</code>'s or <code>td</code>'s and what I am trying to do is if I click on any one, then all of them slide left, the remaining three should disappear, and the one I clicked should remain.</p>
<p>I also want a neat animation effect.</p>
<p>I have tried this but it gives some error for style:</p... | javascript jquery | [3, 5] |
4,025,698 | 4,025,699 | How to Insert Data from DataTable to Oracle Database Table : | <p>I've data in <code>DataTable</code> with 2 rows and 3 columns. I want to insert that data into <code>Oracle</code> table. </p>
<p>How can I insert? please give me with some example.</p>
<p>And also</p>
<p>How can I pass datatable to storedprocedure in <strong>ORACLE</strong>...</p>
<p>I pass datatable in below... | c# asp.net | [0, 9] |
1,776,643 | 1,776,644 | How do I set the value of an input-element via jQuery, when I only know it's "name"-attribute | <p>I need to reset some text-boxes which only have an unique name (not an unique id).
I tried it with jQuery, but my code seems to do nothing:</p>
<pre><code>$('input[name=customergroupname]').value="";
</code></pre>
| javascript jquery | [3, 5] |
2,761,953 | 2,761,954 | How to store a copy of complete web page at server side as soon as it is rendered on client browser? | <p>Requirement is to keep a copy of complete web page at server side same as it is rendered on client browser as past records.These records are revisited. </p>
<p>We are trying to store the html of rendered web page. The html is then rendered using resources like javascript, css and image present at server side. These... | java javascript | [1, 3] |
5,041,572 | 5,041,573 | Allow window.open to open new window and not popup | <p>I have this JS code:</p>
<pre><code>window.open(loginurl, '_blank');
</code></pre>
<p>coming from a condition for example:</p>
<pre><code>if (userloggedin) {
//popup another page
} else {
window.open(loginurl, '_blank');
}
</code></pre>
<p>"loginurl" is an login URL that I would like to open in new window.</... | javascript jquery | [3, 5] |
728,898 | 728,899 | Creating node with prefix | <p>How can i create a node like d2l_2p0:difficulty in xml file using asp.net</p>
| c# asp.net | [0, 9] |
4,913,864 | 4,913,865 | how do i download doc from google insight in java | <p>i was able to get this code for c# which works perfectly fine..but due to dependancy issues i need the java/ python equivalent of it.. </p>
<pre><code>class Program
{
static void Main(string[] args)
{
var client = new WebClient();
String userName = "*******";
String password = "*****... | java python | [1, 7] |
5,736,210 | 5,736,211 | How to dynamically create many Jquery color pickers (eyecon)? | <p>I am using this jQuery color picker for a CMS theme creator: <a href="http://www.eyecon.ro/colorpicker/" rel="nofollow">http://www.eyecon.ro/colorpicker/</a></p>
<p>They are currently set up like this for each color picker:</p>
<pre><code><div class="colorSelector" id="colorSelector3"><div style="backgrou... | javascript jquery | [3, 5] |
3,442,144 | 3,442,145 | Gaining access to content inserted dynamically with ajax | <p>This is the fragment of code inserted with ajax:</p>
<pre><code><form>
<label for = "task-name">Name</label>
<input type = "text" id = "task-name" />
<label for = "task-description">Description</label>
<input type = "text" id = "task-description" />
&l... | javascript jquery | [3, 5] |
963,613 | 963,614 | Cannot find previous inserted element in jquery ready() | <p>My code doesn't work, it seems the previous inserted element cannot be found by later script. </p>
<p>i updated basic syntax errors as the first three answners, but it seems still doesn't work.</p>
<p>code :</p>
<pre><code><html>
<head>
<script src="http://code.jquery.com/jquery-1.9.1.min.js">&l... | javascript jquery | [3, 5] |
4,710,091 | 4,710,092 | Change input background color if the value of the input is valid in database | <p>The logic i am trying to do is:</p>
<pre><code>input field starts white (Normal);
after somebody finish typing, if the email does not exists, the input gets light red;
if the email exists in the database, the input becomes white again;
</code></pre>
<p>I have my code like this:</p>
<p>index.php</p>
<pre><code>&l... | php javascript | [2, 3] |
5,347,210 | 5,347,211 | How to hide a table when it blur/or click document that outside the table | <p>How to hide a table when it blur/or click document that outside the table</p>
| javascript jquery | [3, 5] |
1,935,582 | 1,935,583 | jQuery autocomplete problem: how to handle 'Not in list' case | <p>Let me clarify: I'm using standard jQuery autocomplete plugin (bassistanse.de) and bind it to a KeyValueCollection serialized to JSON (ASP.NET MVC). All works fine, except I want to be able to notify user when he/she types in a value which isn't present in DB, i.e. value not in list.</p>
<p>What are possible ways o... | javascript jquery | [3, 5] |
570,376 | 570,377 | Abstract Iphone/Android Function Call from Javascript? | <p>In Iphone, I need to use,</p>
<pre><code> window.location = 'myscheme://FunctionName?Param1=Value1&.........';
</code></pre>
<p>But In Android,</p>
<pre><code>Android.FunctionName(params);
</code></pre>
<p>This works for me,</p>
<pre><code>if(window.Android)
Android.FunctionName(params);
else
window... | javascript android iphone | [3, 4, 8] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.