Unnamed: 0 int64 302 6.03M | Id int64 303 6.03M | Title stringlengths 12 149 | input stringlengths 25 3.08k | output stringclasses 181
values | Tag_Number stringclasses 181
values |
|---|---|---|---|---|---|
4,867,147 | 4,867,148 | Newlines escaped unexpectedly in C#/ASP.NET 1.1 code | <p>Can someone explain to me why my code:</p>
<pre><code>string messageBody = "abc\n" + stringFromDatabaseProcedure;
</code></pre>
<p>where valueFromDatabaseProcedure is not a value from the SQL database entered as </p>
<pre><code>'line1\nline2'
</code></pre>
<p>results in the string:</p>
<pre><code>"abc\nline1\\n... | c# asp.net | [0, 9] |
4,246,726 | 4,246,727 | Image Browser (Open Dialog) using asp.net? | <p>I want to Browse for an Image ?
How can i Browse for an Image using asp.net,
How to achieve this?</p>
| c# asp.net | [0, 9] |
4,184,816 | 4,184,817 | Is there anything wrong with this js? | <pre><code>$('#register_username').keyup(function() {
alert('key up');
});
</code></pre>
<p>is there anything wrong with the JS itself? It's not working! :(</p>
| javascript jquery | [3, 5] |
5,863,484 | 5,863,485 | How to Stop Browser from Closing Using ASP.NET or Else? | <p>i got a web page and when browser fire Closing Event i wanna stop it ? How can i do that in asp.net or anyother alternative?</p>
| c# asp.net javascript | [0, 9, 3] |
1,936,100 | 1,936,101 | how can we apply client side validation on fileupload control in ASP.NET to check filename contain special character? | <p>I am working on ASP.NET3.5 platform.
I have used a file upload control and a asp button to upload a file.
Whenever i try to upload a file which contain special characterlike (file#&%.txt) it show
crash and give the messeage </p>
<pre><code>-----------------------------------------------------------------------... | c# asp.net javascript | [0, 9, 3] |
3,515,433 | 3,515,434 | Config file is appearing in bin folder after publishing | <p>I currently have a configuration file located in the root folder of my project. For some reason, whenever I go to publish the project, it creates two instances of this configuration - one in my root folder and one in my bin folder. Why is this happening and how do I change it so that it doesn't appear in my bin fo... | c# asp.net | [0, 9] |
2,552,864 | 2,552,865 | Include JavaScript files from a control if the files have not been included before | <p>I have written a control requires certain JavaScript files to run, like<br>
jquery-1.5.1.min.js<br>
jquery.colorbox.js<br>
and another custom file, lets call it gallery.js</p>
<p>I'm thinking about how I can make the control more reusable on different content pages, without the need to load the scripts on pagelevel... | c# javascript asp.net | [0, 3, 9] |
4,131,388 | 4,131,389 | values entered in textbox should b displayed in label | <p>I am having a "TextBox" a "Label" and a "Button" in my aspx page. If I enter some values into the textbox, then that value should be displayed in the label...and again I enter some values in the same text box, that value should be displayed without disturbing the first value and so on.... </p>
| c# asp.net | [0, 9] |
5,987,234 | 5,987,235 | Trying to manually remove a file from Multifile upload | <p>I'm using <a href="http://www.fyneworks.com/jquery/multiple-file-upload/#tab-Examples" rel="nofollow">jQuery Multiple File Upload Plugin</a>
and I have the following:</p>
<pre><code>$(function(){ // wait for document to load
$('#attachFiles').MultiFile({
list: '#attList',
STRING: { remove: '<... | javascript jquery | [3, 5] |
3,228,872 | 3,228,873 | getting selected text & text indexes in a <pre> tag, where the offset is the start of the pre | <p>So i have a pre tag like so:</p>
<pre><code><pre> Some content, more content. <span>Coloured content</span>. Some more content</pre>
</code></pre>
<p>What i want to do is setup an event using javascript or jquery that binds a mouseup event. When the user selects text, i want to get the inde... | javascript jquery | [3, 5] |
487,037 | 487,038 | Specified cast is not valid. enum | <p>whats wrong with this code, i try also <code>Enum.Parse</code> but didnt work.</p>
<pre><code>public enum RoleNames
{
Administrator,
[Description("Personnel Security")]
PrsonalSecurity,
}
foreach (RoleNames roleName in arRoles) //<<<error
{
if (IsCurrentUserInRole(roleName)) { return... | c# asp.net | [0, 9] |
442,611 | 442,612 | change image url during runtime | <pre><code><asp:Image id="voteaccepeted"
ImageUrl="~/UserControls/Vote/Images/before_accept.png"
runat="server" class="vote-accept" />
</code></pre>
<p>i want to change image url during run time</p>
<pre><code>if( bestanswer == true)
{
// change url..
}
</code></pre>
<p>how i do it.</p>
| c# asp.net | [0, 9] |
5,920,884 | 5,920,885 | Use jquery to get value of field with dynamically generated name | <p>I have a form with field names that are generated dynamically by server side code.
I am attempting to allow JQuery to manipulate the value of these fields, but am running into trouble. </p>
<p>The generated fields are paired using a unique ID number Example:</p>
<p>A radio button named option_3030
Will have a amo... | javascript jquery | [3, 5] |
4,050,255 | 4,050,256 | jQuery tab slider | <p>Hey all, i am trying to find a good example of this type of slider <a href="http://www.adamscrap.com/" rel="nofollow">HERE</a>. I can not seem to find the "official" name for it so i really can't search for it. The effect that i am trying to find is that of the triangle that moves/slides depending on which tab you c... | javascript jquery | [3, 5] |
3,322,165 | 3,322,166 | Bundle becomes null when passed to a sub activity | <p>I'm using the standard Android Intent/Bundle method to pass data to a sub activity.</p>
<p>The problem is that although the Intent looks good before the activity is kicked off, it shows up as null in the sub activity. I can't find anyone else who has had this problem, so I thought I'd ask for pointers about where t... | java android | [1, 4] |
5,433,171 | 5,433,172 | jQuery.getJSON is failing on local file | <p>I have the following JavaScript/jQuery code:</p>
<pre><code>setInterval(function() {
$.getJSON('../0.json', function(json) {
alert("piep");
$.each(json, function(k, v) {
$('.' + k).text(v.value);
});
});
}, 1000);
</code></pre>
<p>As you see, I'm trying to get a local JSON file and do somethi... | javascript jquery | [3, 5] |
5,178,363 | 5,178,364 | Countdown Clock | <p>I would like to create a countdown clock that when you show up on the page it starts to countdown from a pre-defined number, say 8 hours. If you leave the page, say after 2 hours, I would like it to stop counting down. If you return to the page I want it to resume counting down, now with only 6 hours left.</p>
<p>... | php javascript | [2, 3] |
4,581,490 | 4,581,491 | Removing Objects from an ArrayList | <p>Hi I am a bit new to Java and Android. I am working on a project which it cycles through random Activities and I am stuck with a problem for days.</p>
<pre><code>public class ActivityHelper extends Activity {
ArrayList<String> classes = new ArrayList<String>();
public void addClass (){
... | java android | [1, 4] |
4,155,165 | 4,155,166 | Why even the conversion from byte to string is showing system.string[] | <p>In my data base i save the data of File_Data as long blob </p>
<p>I write the code as follows but i am unable to get the original text</p>
<pre><code>string deleteSQL = "Select File_Data from tblachmaster WHERE Id IN (" + gvIDs.Substring(0, gvIDs.LastIndexOf(",")) + ")";
MySqlCommand cmd = new MySqlCommand... | c# asp.net | [0, 9] |
2,894,809 | 2,894,810 | Jquery change with delay | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/7373023/throttle-event-calls-in-jquery">Throttle event calls in jQuery</a> </p>
</blockquote>
<p>I like the .change() functionality of jQuery, but I'd like to prevent triggering a ton of AJAX requests when a use... | javascript jquery | [3, 5] |
191,079 | 191,080 | How can I create subdomains on my main domain? | <p>As you all know few sites offer feature which let you specify what type of url you would like to have. Mostly they are of type:</p>
<pre><code>ABC.somedomain.com
DEF.somedomain.com
</code></pre>
<p>(Mostly these sites are blog/genealogy site.)</p>
<p>I do not quiet understand how does it all work. Can you explain... | c# asp.net | [0, 9] |
572,333 | 572,334 | When do we compare DOM elements in JQuery | <pre><code>$('body > div').each(function() {
...
});
</code></pre>
<p>What functionality does comparing <code>body > div</code> provide?</p>
<p>This is a part of answer provided to this question
<a href="http://stackoverflow.com/questions/1231283/comparing-dom-elements-with-jquery">Comparing DOM elements with j... | javascript jquery | [3, 5] |
3,224,595 | 3,224,596 | How to collect data from table cells | <p>How to collect data from inputs (inputs are in table which has id=tbl_bbmd and unknown number of rows , like on picture)
<img src="http://i.stack.imgur.com/SxI9O.jpg" alt="enter image description here"></p>
<p>I need to collect data from inputs cells and concaneta them. How to iterate through this table and collec... | javascript jquery | [3, 5] |
5,061,058 | 5,061,059 | could not find class, No class definition found | <p>I'm getting <code>Could not find class</code> and <code>No class definition found</code> error in Android</p>
<p>Those classes is inside the jar files. I've added the jar files in a separate folder, but it is not recognized at runtime.</p>
| java android | [1, 4] |
5,551,323 | 5,551,324 | Using Perl data on server to display on Android | <p>I am developing an Android application. I am calling a Perl file on a server. This Perl file has different print statements. </p>
<p>I want to make the collective text available to a variable in android Java file of mine. </p>
<p>I have tried this :</p>
<pre><code>URL url= new URL("http://myserver.com/cgi-bin/myf... | java android | [1, 4] |
2,414,283 | 2,414,284 | jqtscroll - How do I send the scroll content to the end of the page? | <p>How do I send the scroll content to the end of the page?
There's a bind event to do this?</p>
<p><a href="http://code.google.com/p/jqtscroll/" rel="nofollow">http://code.google.com/p/jqtscroll/</a></p>
| javascript jquery iphone | [3, 5, 8] |
5,462,590 | 5,462,591 | Cannot call a javascript function using dynamically generated html? | <p>I'm writing a simple search engine script using HTML/JS/Ajax/PHP and generating results dynamically from within the PHP script. The search process begins with a JS function called from an onclick() event. I'd like to embed a button into my search results that would call the original JS function, but with a new val... | php javascript | [2, 3] |
5,076,707 | 5,076,708 | Hacking Some js | <p>So, I'm using Jilion's Sublime's <a href="http://sublimevideo.net/" rel="nofollow">HTML5 Video Player</a> on my site. And was wondering if there was a way to use some jQuery to animate my video player when certain events are triggered via the player?</p>
<p>For example when the play button is hit, the video player ... | javascript jquery | [3, 5] |
4,506,072 | 4,506,073 | Remove Commas with Jquery | <p>I am in need of some code that removes commas from a string.
I currently have a variety of numbers in the number_format() for PHP.
I use Jquery to post certain things to a update page and I need the commas removed from a class.</p>
<p>for instance here is some code.</p>
<pre><code><span class="money">1,234,5... | php jquery | [2, 5] |
3,419,599 | 3,419,600 | javascript confirm run php file | <p>I have a javascript confirm box and if the user clicks OK then I want to run a php script. Not sure on how to do this. Below is the javascript code for the confirm box:</p>
<pre><code><script type="text/javascript">
function val_name()
{
var namePattern = /^[A-Za-z]{3,25}$/;
if( !namePattern.... | php javascript | [2, 3] |
3,164,989 | 3,164,990 | jQuery hover() not firing | <p>I'm ajaxing some search results onto a page, and trying to do stuff when the user hovers over results. Here's what I've got:</p>
<pre><code>$(".preview").live("hover", function(){ console.log('hovered');} )
</code></pre>
<p>Each of the results has the class "preview". Why isn't anything happening?</p>
<p>Edit: He... | javascript jquery | [3, 5] |
1,371,833 | 1,371,834 | Javascript is not called on radiobutton list index change | <p>I have written code for javascript but it is not called any how. I tried to call both form html side and also by assigning attribute from page load event but it is not at all called.</p>
<p>This is the code for my javascript.</p>
<pre><code>function rdbantiplatelet_onClick(thiscontrol, trName) {
alert('hi');
... | c# javascript asp.net | [0, 3, 9] |
5,020,160 | 5,020,161 | State storage in GridView | <p>gridview has 20 pages. The user is see first gridview page . He decide to apply highlite style using jquery on few row . Now he move to second page . He apply style this page too. Now when he go back to first page, he cannot see row with style he apply before he move to page 2.</p>
<p>How to store state of the rows... | asp.net jquery | [9, 5] |
749,095 | 749,096 | Can I give a 'web address format' to my local host application | <p>I host a local application on my machine which i provide access on network by normally type "http://computername/app". Can I change it to a real web address format "www.myapplication.org" for my local hosting.</p>
<p>I would appriciate for every of your suggestion.</p>
<p>vic,</p>
| c# asp.net | [0, 9] |
1,494,077 | 1,494,078 | Javascript code not being called in asp.net code behind | <p>I have a block of code (posted below) where if the first IF clause is satisfied, the app does not call the javascript('MyPortfolioItemExists()') function. Instead, it exits the function and goes on to process other code lines. </p>
<pre><code>If drPortfolio.HasRows Then
Dim p As Page = CType(System.Web.HttpCon... | javascript asp.net | [3, 9] |
734,668 | 734,669 | Android: developed application works in emulator but not getting installed in my device | <p>I'm trying to develop my first Android application. The application runs perfectly on my Eclipse Emulator. But when I create a Unsigned .apk file and copy it to my android phone for installing, its not getting installed. The message just says application is not installed and I couldn't see any error log messages.</... | java android | [1, 4] |
1,919,396 | 1,919,397 | Colorbox problems in IE | <p>Here are the codes i used:
<a href="http://jsfiddle.net/6bmte/" rel="nofollow">http://jsfiddle.net/6bmte/</a></p>
<p>The colorbox works well in all browsers except IE. The js codes i used are just the same as the colorbox demo i downloaded except that i changed the url of the images. Then i also added position abso... | javascript jquery | [3, 5] |
3,593,821 | 3,593,822 | Uncaught TypeError: Object [object Object] has no method 'apply' | <p>I am receiving this Uncaught TypeError on a new website I am creating, but I can't work out what is causing the error.</p>
<p>I have recreated the issue at the link below, if you take a look at your browsers JS console you'll see the error occurring, but nothing else happens.</p>
<p><a href="http://jsfiddle.net/Eb... | javascript jquery | [3, 5] |
2,990,792 | 2,990,793 | What is PHP's pendant to pythons encode('hex')? | <p>In python you can encode a string as</p>
<pre><code>encoded = text.encode('hex')
text = encoded.decode('hex')
</code></pre>
<p>What are the corresponding functions in php?</p>
| php python | [2, 7] |
677,407 | 677,408 | Getting initial number from string | <p>I'm trying to get the initial number value of a string using jQuery/Javascript. Right now, the string I'm getting is:</p>
<pre><code> 2 <a href="user/usergroups.html?uname=Users@Users.com ">view</a>
</code></pre>
<p>I'm trying to take this string (which is stored in a variable, and take only the initi... | javascript jquery | [3, 5] |
2,696,846 | 2,696,847 | How do I pull the clientID of an asp:button inside an asp:listview for use with jQuery? | <p>I'm attempting to do something which should be relatively simple. I'm using a ListView to show a number of items, using the ItemTemplate. Inside the ItemTemplate I have a div surrounding the full item, so that I can highlight on a hover event, (being handled already by jQuery).</p>
<p>What I would like to do is h... | c# asp.net jquery | [0, 9, 5] |
4,806,384 | 4,806,385 | Adding class to show div has no effect on Android when event is jQuery keyup | <p>The following code is supposed to make a div visible as soon as a single character is entered into an input field. As soon as there are no characters entered the input should be hidden again. </p>
<p>This works fine for every desktop browser ive tested on and also on iPhone. However on Android nothing happens. </p>... | jquery android | [5, 4] |
3,875,137 | 3,875,138 | Why we need to use Context.obtainStyledAttributes and declare-styleable to obtain attribute of a GUI component | <p>I just came across some tutorial code example which are using <code>declare-styleable</code> in XML and <code>Context.obtainStyledAttributes</code> in Java code.</p>
<p>My understanding is, <em>it is trying to obtain the attribute (Like background color) of a GUI component.</em></p>
<p><strong>I was wondering, why... | java android | [1, 4] |
3,657,470 | 3,657,471 | Run method asynchronously in asp.net | <p>I have a webpage with a button that generates some files to a server path. (It takes somewhere from 5 to 20 minutes). I want to create an async task that will continue executing even after the user closes the browser. Is it possible to do this with asp.net 4 and C#? </p>
| c# asp.net | [0, 9] |
1,863,116 | 1,863,117 | Check which html element triggers onclick | <p>I have html like below:</p>
<pre><code><div onclick=" callJavascript()">
<span id="abc"> abc </span>
<span id="def"> def </span>
<span id="ghi"> ghi </span>
</div>
</code></pre>
<p>When I click 'abc' or 'ghi', is there anywhere inside <code>function callJavascript... | javascript jquery | [3, 5] |
2,299,496 | 2,299,497 | How to create new HTTP GET If the older is loaded | <p>How to check when i have HTTP GET and it's loading, it's waiting for something to happen, and when it happen i want to load NEW HTTP GET, and i want every time the HTTP GET is loaded to appear new HTTP GET. How can this happen , is there some kind of listener for the get or trick ? </p>
<p><strong>HERE IS SOME KIND... | javascript jquery | [3, 5] |
201,394 | 201,395 | Not making it a string | <p>In this situation, for example, if <code>$(this).text()</code> becomes 0, it will not work since in the switch 0 is not equal to "0".</p>
<p>In my assignment, I cannot remove " " from case.</p>
<p>So basically <code>$(this).text()</code> has to become a string somehow. Any ideas?</p>
<p>Thanks!</p>
<pre><code>..... | javascript jquery | [3, 5] |
5,307,114 | 5,307,115 | change order of object in row of listview programmaticaly | <p>currently i have:</p>
<pre><code> <TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="15:22:33 \nApr 13 1999"
android:textColor="#FFFFFFFF"
android:textAppearance="?androi... | java android | [1, 4] |
1,291,466 | 1,291,467 | How to reslove jQuery slider display from mysite? | <p>I have problem with jQuery slider.
It runs perfectly but after reloading with ctrl+F5. When I run for the first time, It doesn't displayed. After reloading, It displays..
I can't understand whats going on here.</p>
<p>You can see this problem here <a href="http://www.miragesociety.com/lifestyle-management/" rel="no... | php jquery | [2, 5] |
1,701,681 | 1,701,682 | reading an bmp image file and converting that only 2 colour i.e. black & white, and divide height and weidth and order save an array | <p>reading an bmp image file and converting that only 2 colour
i.e. black & white, and divide height and weidth and order save an array</p>
<p>and i tried to get the bit output 1000011110111010100010101010101010 </p>
| java c++ | [1, 6] |
2,341,944 | 2,341,945 | how to prevent popup javascript onclick event | <p>i have link</p>
<pre><code><a onclick="return package_tour_order(14400287396);" href="javascript:;">advanced</a>
<a>doit</a>
</code></pre>
<p>need to get value from onclick only ID nubmer, but this</p>
<pre><code>return package_tour_order(14400287396) is javascript function that popup new ... | javascript jquery | [3, 5] |
500,459 | 500,460 | Change User Agent in php.ini | <p>i am trying to change user agent in php.ini file as follows.</p>
<pre><code>user_agent="Mozilla/5.0 (iPhone Simulator; U;
CPU iPhone OS 4_3_2 like Mac OD X; en-us)
AppleWebKit/535.17.9(KHTML, like Gecko)
Version/5.0.2 Mobile/8H7Safari/6533.18.5"
</code></pre>
<p>after that when i check user agent in my php file... | php iphone | [2, 8] |
2,024,543 | 2,024,544 | Receive output of python script from PHP? | <p>I want to launch a python script similar to <a href="http://www.eventlet.net/doc/examples.html#web-crawler-example" rel="nofollow">this web crawler</a>, wait for it to finish, process the data in php, then return the results to the user.</p>
<p>From what I hear, getting the output from python is trivial, but the ab... | php python | [2, 7] |
5,959,664 | 5,959,665 | How check at lease one checkbox is checked inside ASP.NET repeater control in Javascript | <p>In my asp.net website; i have REPEATER control having child control checklistbox , dynamically generates in code behind.</p>
<p>I would like to know how can i write javascript function where i have to check at least one checkbox should be checked.</p>
<p>Ho can i acheive? Please Help?</p>
| javascript asp.net | [3, 9] |
1,539,677 | 1,539,678 | jQuery fade image in and out on click or load | <p>I was given this fantastic script, from @Phil, that helped get my out of a stump and it works perfectly in my application. But because I'm so new to javascript I can't figure out how to make the images animate opacity in and animate opacity out.</p>
<pre><code>// jQuery syntactic sugar to run after page loads
$(fun... | javascript jquery | [3, 5] |
2,600,742 | 2,600,743 | Retrieve variable from text without using eval() | <p>I'm trying to build a form that calculates ad prices. The problem is, each section has a different base value. So I'm trying to get jQuery to evaluate the variable, but it's only evaluating the text. Eval() works here, because it returns the variable and not the text.</p>
<p><code>var onlineAdCalc =eval($('#onlineA... | javascript jquery | [3, 5] |
5,901,391 | 5,901,392 | objectdatasource cast gridview datasource back to generic list | <p>environment: asp.net fx3.5</p>
<p>i'm using the objectdatasource for my gridview. at first, i load up my gridview with records from a generic <code>List<Attachments></code> for my customer. Next I'd like to add/remove items from the gridview without hitting database until after all the add/removes are done. T... | c# asp.net | [0, 9] |
3,306,739 | 3,306,740 | What exactly is this structure | <p>Is this an object that contains objects or an array of objects? </p>
<pre><code>var rgb = {
ball: { Red: 232, Green: 23, Blue: 23},
square: { Red: 42, Green: 83, Blue: 32},
};
</code></pre>
<p>I need to generate it with php and then declare it in my script, so want to know what I should be building in php</p>
| php javascript jquery | [2, 3, 5] |
1,565,110 | 1,565,111 | Key event doesn't work correctly in Google Chrome | <p>On my web site I have the ability for users to use search by pressing <kbd>Enter</kbd>, having typed a string in the search input field. Here is some jQuery code to illustrate this:</p>
<pre><code>$(document).ready(function () {
$('#search-input').on('keydown keyup keypress', function (event) {
event = ... | jquery asp.net | [5, 9] |
5,627,652 | 5,627,653 | jQuery and textarea change events | <p>i just met a strange behavior jQuery and can't figure out any more or less slight solution.
Say, i have textarea and button. I want to disable button if textarea is empty.
For this i have a handler which does this job.</p>
<p>Here is the code:</p>
<pre><code>// textarea control
var $textarea = $('#myTextarea');
va... | javascript jquery | [3, 5] |
1,360,400 | 1,360,401 | Adding a default value in dropdownlist after binding with database | <p>I binded my ddl to my database as below, but how can I add a default text on top of the binded values so that it appears as:</p>
<pre><code>Select Color ---> default text
Red ---> database value
Blue ---> database value
Green ---> database value
</code></pre>
<p>Code:</p>
<pre><code> DropDownLis... | c# asp.net | [0, 9] |
4,439,331 | 4,439,332 | How to increase file size in auto generated email in ASP.NET? | <p>I am seeking for answer. what is the default size of attachment which we attach in auto generated emails? please help.</p>
| c# asp.net | [0, 9] |
3,173,151 | 3,173,152 | Blueimp jQuery File Upload Integrated with Asp.Net | <p>I am trying to use jquery blueimp multiple file upload with Asp.Net.
After two days of unsuccessful attempts, I decided to ask maybe someone will share the working example.</p>
<p>I would be very grateful.</p>
| jquery asp.net | [5, 9] |
5,945,835 | 5,945,836 | JQuery: Update hover on mouse movement | <pre><code>$(document).ready(function() {
$(".hoverimage").hover(
function(e) { openQuicktip(this,e); },
function() { closeQuicktip(this); }
);
$("area").hover(
function(e) { openQuicktip(this,e); },
function() { closeQuicktip(this); }
);
});
function openQuicktip(elem,e) {
ar x = e.pageX;
... | javascript jquery | [3, 5] |
373,256 | 373,257 | Optimisation for reading contacts in listView? | <p>I have code to read contacts, get name and number and put them in listView. Everything works but application read all contacts in the same moment. I guess that I have to read them on scroll move, but I don't now how, please help?
Thank you in advance, Wolf.</p>
<p>Here is my code:</p>
<p>ArrayList> mapa = new Arra... | java android | [1, 4] |
2,972,483 | 2,972,484 | FadeOut for same link that was clicked | <p>I want with click on each link, after click on button <code>ok</code> in <code>myalert()</code> same link is <code>fadeOut()</code>. if clicked on cancel, is not <code>fadeOut()</code>. How can fix it with use of function <code>myalert()</code> ?</p>
<p><strong>Example:</strong> <a href="http://jsfiddle.net/MaGyp/1... | javascript jquery | [3, 5] |
4,576,865 | 4,576,866 | JQuery - Remove everything after an element | <p>I have:</p>
<pre><code><div id="container">
<div id="i_1"></div>
<div id="i_2"></div>
<div id="i_3"></div>
<div id="i_4"></div>
</div>
</code></pre>
<p>How do I remove everything after $('#i_2')?</p>
| javascript jquery | [3, 5] |
4,901,670 | 4,901,671 | is there a simple way to make a pop up box in ASP.NET appear? | <p>I tried using this example: <a href="http://www.asp.net/ajaxlibrary/AjaxControlToolkitSampleSite/modalpopup/modalpopup.aspx" rel="nofollow">http://www.asp.net/ajaxlibrary/AjaxControlToolkitSampleSite/modalpopup/modalpopup.aspx</a></p>
<pre><code><ajaxToolkit:ModalPopupExtender ID="MPE" runat="server"
TargetContr... | c# asp.net | [0, 9] |
5,501,278 | 5,501,279 | a href="#" linking to my index instead of just using my desired jquery function because of base href | <p>I am trying to use a jquery plugin that requires the href to be href="#". however when I click on these links to which have onclick actions, then instead of the action taking place (I can see it take place briefly actually) the index page loads with the url: www.mysite.com/#</p>
<p>I have narrowed the problem down ... | php jquery | [2, 5] |
641,268 | 641,269 | a onlick event opens box and on box submit it links to php function which set some values to db | <p>I'm trying to create sort of alert box with a onClick event. Basic idea here is to create box which asks user to select(checkbox) some value and then submit. After user clicks box submit-button it should send form values to db.</p>
<p>I think I won't be able to link php-function directly in onClick-event.</p>
<p>A... | php javascript | [2, 3] |
3,489,056 | 3,489,057 | Losing the session after the Postback | <p>I have been using session variables in my asp.net application for passing the next property:</p>
<pre><code>[DefaultValue(true)]
public bool IsModificationMode
{
get
{
return (bool)Session["ModificationMode"];
}
set { Session["ModificationMode"] = value; }
}
</code></pre>
<p>In the PageLoad... | c# asp.net | [0, 9] |
5,105,116 | 5,105,117 | Sum from field values and output the result inside div | <p>I did this before with javascript, and have no idea to make it using jquery.</p>
<p>I hope you can help me!</p>
<p>I tried the next:</p>
<pre><code><script>
$('.field').mouseout(function () {
var sum = 0;
$('.field').each(function() {
sum += Number($(this).val());
});
$("#resultad... | javascript jquery | [3, 5] |
2,273,315 | 2,273,316 | change part of the string with case sensitive | <p>I would like the search a string without case sensitive however change the sub string with original string's case letters.</p>
<pre><code>var mystring = "FiRst Last";
var term = "first"; // it could be "FIRST" or fIRST
var re = new RegExp("^" + term, "i") ;
//option 1
//var t = mystring.replace(re,"<span styl... | javascript jquery | [3, 5] |
5,792,254 | 5,792,255 | Jquery: one call triggered by multiple events | <p>I have a simple search page with a single input box.</p>
<p>I want to be able to trigger the search action either by clicking "Go" or by pressing Enter in the input box. I did it like this:</p>
<pre><code>$("input[name='entry']").keyup(function(event) {
if (event.keyCode == 13) {
... | javascript jquery | [3, 5] |
4,073,433 | 4,073,434 | javascript prototype - adding a callback | <p>I'm using the javascript revealing prototype pattern, and I want to add a callback. I'm trying something like:</p>
<p><a href="http://jsfiddle.net/Qyhrb/2/" rel="nofollow">http://jsfiddle.net/Qyhrb/2/</a></p>
<pre><code> var Refinements = function () { };
Refinements.prototype = function () {
Init = funct... | javascript jquery | [3, 5] |
4,838,661 | 4,838,662 | Javascript namespace issue, how do i get this value within this function call | <p>im just not sure how to get the desired value within this function Thanks!</p>
<pre><code>temp = exotics[i].split(',');
if ($.inArray(temp[0], tblProbables) != -1) {
item = $("<li><a id='" + temp[0] + "'" + "href='#' >" + temp[1] + "</a></li>");
item.click(function () { GetProbable(... | javascript jquery | [3, 5] |
1,852,815 | 1,852,816 | HttpPost and HttpRequest multiple responses | <p>I have a Http Post</p>
<pre><code> try {
String response1 = null;
response1 = CustomHttpClient.executeHttpPost(
"http://giveaway.synamegames.com/appfiles/login.php",
postParameters);
String res = response1.toString();
... | java android | [1, 4] |
5,640,684 | 5,640,685 | How to really generate c# / java code with the Drakon Diagram Editor? | <p>Drakon editor seems nice <a href="http://java.dzone.com/announcements/drakon-editor-19-support-java" rel="nofollow">http://java.dzone.com/announcements/drakon-editor-19-support-java</a>
but after reading the doc <a href="http://drakon-editor.sourceforge.net/csharp.pdf" rel="nofollow">http://drakon-editor.sourceforge... | c# java | [0, 1] |
1,005,069 | 1,005,070 | pass value to a page without query string or session | <p>I created a web application in which there are two menus which loads the same page .. i need to check a condition in the page so that i can load diff data based on the variable passed to this page but i dont want to use query string since it can change my url from <a href="http://xxx.com/products.aspx" rel="nofollow... | c# asp.net | [0, 9] |
4,962,140 | 4,962,141 | Is C++ worth investing time in learning? | <p>With languages like C# that can basically do anything, I found a drawback that could not be the case in the future, and that is the lack of many open source 3rd party libraries that are well documented to choose from. However with C++, there are many libraries to choose from, and this is a big pro for me. One thing ... | c# c++ | [0, 6] |
1,662,089 | 1,662,090 | jQuery - Detect click in certain pixel area, then execute function | <p>I currently have a div, let's call it <code>#videodiv</code> that includes an HTML5 video player (<a href="http://sublimevideo.net" rel="nofollow">SublimeVideo</a>, but that may be irrelevant information). On page load, <code>#videodiv</code> is only 100px. When a user clicks anywhere within <code>#videodiv</code>, ... | javascript jquery | [3, 5] |
5,295,518 | 5,295,519 | How to refresh/reload CSS style in loop? | <p>I have this function which should to change <code><div></code> left position in loop making it to look like it is moving. But instead it just jumps to the end position.</p>
<pre><code>function anim (id, left) {
$('#k' + id).css('left', parseInt($('#k' + id).css('left')) + 1);
if(parseInt($('#k' + id).... | javascript jquery | [3, 5] |
3,240,138 | 3,240,139 | How to look for all the rows in a rowspan and set a class to all the rows | <p>I have a table </p>
<pre><code><table border="1">
<tr>
<td rowspan="2">September</td>
<td>Jim</td>
</tr>
<tr>
<td>Dave</td>
</tr>
<tr>
<td>October</td>
<td>Fred</t... | javascript jquery | [3, 5] |
5,329,771 | 5,329,772 | Why is foo & bar not returning true on comparison? (jQuery) | <p>I'm attempting to make a comparison. When a user first clicks the document name, that name should be stored as a variable. When the user adds or subtracts to the name, then something will happen. (Unless the name is returned to the original name; stored in the variable). </p>
<p>The two variables don't appear to be... | javascript jquery | [3, 5] |
4,028,212 | 4,028,213 | Passing value JavaScript to a Java class file | <p>I have three string values in JavaScript. And I have a method <code>getValues(String val1, String val2, String val3)</code>. This metod is outside the JavaScript. I want to call this method using that above three values.</p>
| java javascript | [1, 3] |
2,814,498 | 2,814,499 | Check capslock is on or off on button click | <p>I have a application in which there is one textbox and a button.I want the application to behave in such a way that when a user types some text in the text box,and after that when the user click the button,it should show whether the capslock is on or off</p>
| javascript asp.net | [3, 9] |
5,295,250 | 5,295,251 | should not able to bind list in asp.net | <pre><code>public static List<TemplateInfo> GetTemplateList()
{
DirectoryInfo dir = new DirectoryInfo("E://DotNetProjects//sftemplating//Templates");
List<TemplateInfo> lstTemplates = new List<TemplateInfo>();
foreach (DirectoryInfo temp in dir.GetDirectories())
{
... | c# asp.net | [0, 9] |
1,473,348 | 1,473,349 | Async task can't update GUI | <p>My basic question is how do you update the GUI with AsyncTask. I am setting a <code>String</code> in <code>onPostExecute</code> that the GUI thread references. Using logging, I can see the <code>String</code> getting set in the <code>onPostExecute</code> method, but it never gets set on my GUI under my <code>onCli... | java android | [1, 4] |
205,196 | 205,197 | PHP language switcher? | <p>Does somebody knows a simple php language switcher. I'm not really a PHP savvy and I would like your help. </p>
<p>Thanks in advance.</p>
| php javascript | [2, 3] |
5,509,558 | 5,509,559 | fields not allowed in C# interface | <p>There are quite a lot of deviations in Java and C# languages, one of which I observed was we cannot add variable constants in an interface. Being from Java background I got baffled to see compilation error when I tried this.</p>
<p>Does anyone has explanation why it is so?</p>
| c# java | [0, 1] |
1,897,945 | 1,897,946 | How to show pop up div from server side on button click | <p>I am working on Payment page and i want to show a popup for showing message your payment is processing. so for now i am using CustomValidator and Submit Button. and i want to show this popup when Args is valid. my code is.</p>
<pre><code><asp:CustomValidator ID="CustomValidator1" runat="server" ErrorMessage="" O... | c# asp.net | [0, 9] |
4,352,564 | 4,352,565 | enabling keyboard (arrow up/down) in a list-item | <p>I've my mark up as</p>
<pre><code><input id="field" type="text" />
<ul>
<li class="item"><a href="#">one</a></li>
<li class="item"><a href="#">two</a></li>
<li class="item"><a href="#">three</a></li>
<li class="item">... | javascript jquery | [3, 5] |
3,140,417 | 3,140,418 | jquery selector drill-down? | <p>If I have</p>
<pre><code>$('.rotator li').each(function() {
$(this).further-nested-elements.somefunction();
});
</code></pre>
<p>how can I reference elements that are nested below <code>this</code> so I don't have to keep re-typing the original selector (i.e. <code>$('.rotator li')</code>) every time I want to a... | javascript jquery | [3, 5] |
4,653,500 | 4,653,501 | Edit in place with javascript and update the array value? | <p>I am not using any javascript plugin,</p>
<pre><code><html>
<head>
<title>sample dynamic select list</title>
<script language='javascript'>
function changeContent(tablecell)
{
tablecell.innerHTML = "<INPUT type=text name=newname onBlur=\"javascript:submitNewName(this);\" value=\... | php javascript | [2, 3] |
5,745,151 | 5,745,152 | change image based on drop-down option | <p>Looking to be able to change an image dynamically based on the selection option dropdown with an id of "main" </p>
<p>I came across this code which finds the text not the select value, which is exactly what I want. I just need to connect to the image.</p>
<pre><code>alert( 'Text is: ' + $('#attribute119 :selected'... | javascript jquery | [3, 5] |
1,368,154 | 1,368,155 | how to retrieve friend email ids of a logged in user of yahoo in .net application | <p>how to retrieve the Friend Details of a user when Logged into
yahoo and Send the selected friends a message to their respective mail ids.</p>
| c# asp.net | [0, 9] |
2,716,119 | 2,716,120 | grabbing title with jquery | <p>Im trying to grab the "title" on the <code><li></code> when it is clicked. It keeps returning undefined.</p>
<p>html</p>
<pre><code><div id="sidebar">
<div class="navigation">
<ul>
<li title="../../000_Movies/_assets/playlist.html">فیلم ها</li>
</ul>
<... | javascript jquery | [3, 5] |
3,691,720 | 3,691,721 | clearTimeout on multiple references | <p>I have a set of complex setTimeout() calls that trigger some jQuery animations.
I would like to be able to clear them all without knowing their various refs.</p>
<p>This code will not work - but should illustrate what I'm trying to do...</p>
<pre><code>window.ref = [];
function doAnimation(i) {
$('div').each(f... | javascript jquery | [3, 5] |
1,237,451 | 1,237,452 | Having problems with a simple if/then statement | <p>I'm a designer and not very skilled at coding anything but HTML/CSS. I barely understand Javascript but I can usually Franken-copypasta my way to a successful jQuery script for simple animations and basic functionality. In this case though, I'm getting tripped up somewhere and I have no idea where.</p>
<p>The scrip... | javascript jquery | [3, 5] |
370,081 | 370,082 | What is equivalent to a php page setup in asp.net | <p>I program php, but I am trying to get into c# asp.net. In php I can make forms, custom html, etc into a seperate php file and just <code>include</code> it on the page that I desire. I understand asp.net has a master page which allows you to set the template for the whole website, but what If I want just a row of b... | c# php asp.net | [0, 2, 9] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.