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,707,733
2,707,734
Hide button after last class has been shown
<p>I have the following, </p> <pre><code>$("#slider1next").click(function () { $(".text:visible").next().show(); }); </code></pre> <p>When the last class (.text) has been shown i want to hide #slider1next how would i go about this? </p> <p><a href="http://jsfiddle.net/ma9ic/U2UZ4/3/" rel="nofollow">http...
javascript jquery
[3, 5]
2,936,251
2,936,252
Scroll Positioning for Overflow Container
<p>How to set (horizontal) scroll position of overflow container?</p> <p><strong>JsFiddle:</strong></p> <p><a href="http://jsfiddle.net/JeaffreyGilbert/FVrtx/" rel="nofollow">http://jsfiddle.net/JeaffreyGilbert/FVrtx/</a></p> <p><strong>Preview:</strong></p> <p><img src="http://i.stack.imgur.com/wf24h.png" alt="alt...
javascript jquery
[3, 5]
3,214,146
3,214,147
why the javascript variable doesn't change among function?
<p>my problem with the following javascript function:</p> <pre><code>function ValidateDates() { var valid = false; birthD = $("#cp1_txtBirthDate").val(); initialD = $("#cp1_txtInitialDate").val(); var regexp = new RegExp("^([1-9]|(0|1|2)[0-9]|30)(/)([1-9]|1[0-2]|0[1-9])(/)((20|19|18)[0-9]{2})$"); if (birthD != "__/_...
javascript jquery
[3, 5]
5,587,338
5,587,339
iFrame Validation
<p>I currently have an iframe within my main page that has a number of checkboxes that need to be actioned prior to leaving the iframe, i.e, if the user commences checking the checkboxes and half way through they then click back on the main page, i.e leaving the iframe, I would like to be able to trap/validate that the...
javascript jquery
[3, 5]
1,933,601
1,933,602
anticipating a click event within a while loop - jquery/javascrip
<p>I'm working on a little dice game app with javascript/jquery and the part where I run into trouble is in the following while loop. I want the user to click the button and then the body of the while loop should execute. However, with the following code, the contents of the while loop execute without waiting for the...
javascript jquery
[3, 5]
5,699,758
5,699,759
Strip all images with data.replace?
<p>I'm using a script to retrieve content from an external website, and the date is returned with certain elements stripped out so that they don't interfere with the page I'm pulling the data to. However, when I view my page with the error console open, I am receiving 404s on all images. Is there anyway I can strip out...
javascript jquery
[3, 5]
5,428,166
5,428,167
Could this be done any easier? Java beginner question
<p>I need to create a series of objects, and it just looks plain ugly right now:</p> <pre><code>CheckBox checkOne = (CheckBox) findViewById(R.id.checkOne); CheckBox checkTwo = (CheckBox) findViewById(R.id.checkTwo; CheckBox checkThree = (CheckBox) findViewById(R.id.checkThree); CheckBox checkFour = (CheckBox) findView...
java android
[1, 4]
2,770,438
2,770,439
How to avoid the grid view in asp.net not to post the page to the server on paging
<p>I've a grid view, with IList as a datasource. I've thousands of records and so I've used pagination. The grid view will display only 10 records per page. My question is, how to avoid the grid view making DB calls again to the server when I click the 2nd page. Since I load all the data in a collection(IList), I need ...
c# asp.net
[0, 9]
42,790
42,791
How to highlight different type of codes in JS or PHP?
<p>I'm doing my first project for my university grade and I would like to code a "paste" service for different type of languages: php, javascript, c, etc. You know, something similar to pastebin, pastie...</p> <p>I would like to know how I can highlight the code depending of the language. I mean, if there is a plugin ...
php javascript
[2, 3]
1,863,056
1,863,057
the main cause of application force close on android
<p>What is the main cause of force close on android? Is there any way to help avoid unwanted force close problem when coding an android application?</p>
java android
[1, 4]
2,543,874
2,543,875
Jquery form validation plugin - how to submit with an extra step?
<p>I'm currently using the <a href="http://docs.jquery.com/Plugins/Validation" rel="nofollow">Jquery form validation plugin</a>, and it works well when I followed it's form submission instruction on the webpage:</p> <pre><code>$("#form").validate({ submitHandler: function(form) { form.submit(); } }); <...
javascript jquery
[3, 5]
2,433,144
2,433,145
Java/Android: Method with Full Project Scope
<p>I have a method that I've created that I would like to be able to use anywhere, but I don't know what the best practice is for giving access to that method throughout the project. Do I just create a .java file with a public method and that will give access throughout? Will I need to declare it anywhere (somewhere in...
java android
[1, 4]
5,226,224
5,226,225
C# books or web sites for C++ developers
<p>I am looking for web sites or books that would help a C++ developer to pick up C#. So far, <a href="http://andymcm.com/csharpfaq.htm" rel="nofollow">this</a> is the best one I've found.</p>
c# c++
[0, 6]
4,451,698
4,451,699
Android touchpaint.java API
<p>I have come across the Android touchpaint.java API, i run it on my android emulator.</p> <p>To learn i would like to edit this, how would I be able to add some extra features to it.</p> <p>What changes would you suggest i make to it, someone has probably done this years ago, but i dont care, i just want to learn.<...
java android
[1, 4]
5,014,471
5,014,472
how to change endtime based on starttime (If starttime =3pm default endtime should be 6pm)
<p>I am developing an application where i musing facebook like Date and Time(facebook create event) .Now in my application suppose i set start time 3:00pm I want the default end time to be 6:00pm (this is if end time not set) how to do it? reply</p>
php javascript jquery
[2, 3, 5]
5,139,318
5,139,319
JavaScript If statement not working in IE
<p>I have the following code, which is working great in firefox and chrome, but not working in Internet Explorer...</p> <pre><code>$("#nav-tabs").on("click", "a", function(e) { e.preventDefault(); $(this).tab('show'); $('li#test').each(function() { if($(this).attr('class') == "active") { ...
javascript jquery
[3, 5]
1,456,104
1,456,105
android null pointer exception in Application
<p>i have an activity which initialize a variable of my Application class (AppVariables):</p> <pre><code>protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); app = (AppVariables) getApplicationContext(); } </code></pre> <p>when using this if condition which check if a drawa...
java android
[1, 4]
3,612,300
3,612,301
how can I allow the user to click only 3 times on a button in jquery?
<p>I'm trying to make a little rock paper scissors game. for that I've written a small javascript in jquery. the whole thing should work like this: user presses button, an ajax event is fired, the selected option is added to a div and a counter increments. but only 3 times! I can't figure it out to work like this... he...
javascript jquery
[3, 5]
2,743,217
2,743,218
how to refrence Linq2SQL class from a static class
<p>i am having a strange problem, i have a static class like this </p> <pre><code> public static class BlogDataAccess { private static Blog _Blg; public static Blog Blg { get { _Blg = new Blog (); return _Blog ; } } } </code></pre> <p>then in my page i d...
c# asp.net
[0, 9]
2,016,300
2,016,301
how to use jquery selectors in a for loop?
<p>i want to acheive this :</p> <pre><code>for (i = &lt;?php echo $current_i ?&gt; /*then I get augmented in javascript */;i&lt;max;i++){ $('#anyid****')./* my actions goes here */ } </code></pre> <p>here i want to put the counter I of the javascript in the selector how could i do that ???</p>
javascript jquery
[3, 5]
987,128
987,129
How do I replace HTML escapes in an input stream before parsing it to XML?
<p>I have an input stream which is being converted to XML, and read. When I get down to some text elements in the XML, they are truncated. I believe the parser is dropping everything after escaped HTML such as &amp; Here is the code getting the input stream and then getting the text element.</p> <pre><code>String hv...
java android
[1, 4]
2,043,609
2,043,610
Removed php session in Jquery or Javascript
<p>Does anyone know whether I can removed a php session by using jquery or javascript?</p>
javascript jquery
[3, 5]
3,162,150
3,162,151
what is the best strategy to handle messages between UI code (Activities) and business logic code
<p>I'm looking the best way to Implement the messages and notifications between activities and the business logic code, I used listeners but I had to register and unregister to avoid that activity do any thing while it is not active.have any body use better strategy </p>
java android
[1, 4]
3,700,638
3,700,639
Rewrite jQuery on() to click()
<p>I need to rewrite this on function to a click function. with the exact same functionality. I cant use on since I have to use jQuery 1.3</p> <pre><code>$('#citybreak_availability_calendar_widget').on('click', '#CB_SearchButton', function() { var iframe = $('#citybreakContent').find('iframe'); iframe.attr('sr...
javascript jquery
[3, 5]
1,878,095
1,878,096
confusion over simple variable declaration jQuery "$variable" vs javascript "var"
<p>I have this simple ghost text implementation:</p> <p>HTML code:</p> <pre><code>&lt;div id="searchPanel"&gt; &lt;form method="get" id="searchBox" action="somePage.php"&gt; &lt;input class="ghText" type="text" name="query" value="search here"/&gt; &lt;/form&gt; &lt;/div&gt; </code></pre> <p>jQuery co...
javascript jquery
[3, 5]
5,533,163
5,533,164
How to change attribute of surrounding div/parent effectively?
<p>I have a table with some radiobuttons in it. When i click on a radiobutton, i want to update two of the sorrounding containers ID attribute (a div and a table). The problem is, i need to go 4 and 6 levels up, and the only way i know how to do this is parent().parent().parent().parent() etc. I am looking for a bette...
javascript jquery
[3, 5]
5,030,978
5,030,979
-bash: javah: command not found on windows7
<p>I am new to Android environment.I use this link(<a href="http://stevethai.wordpress.com/2010/08/04/android-helloworld-with-native-code-tutorial/" rel="nofollow">http://stevethai.wordpress.com/2010/08/04/android-helloworld-with-native-code-tutorial/</a>) to run the NDK Project using NDK and cygwin Terminal.I follow a...
java android
[1, 4]
1,616,507
1,616,508
WinApp in C# calling java program
<p>I have a c# winapp that calls a java app by tcp and sends everything back by tcp to the c#.</p> <p>The reason why I'm using java is because I received a java api. So I wrote a small java app that calls that api and get all the data I need.</p> <p>So I was wondering if there is another solution for this. Because it...
c# java
[0, 1]
4,113,903
4,113,904
jQuery Store Values of checkboxes in div
<p>How can I get this list of checkboxes to be added to a div prior to their selected state, so if they are selected, they should be added to the div, if not they are removed from the list if not selected.</p> <pre><code>&lt;div id="selected-people"&gt;&lt;/div&gt; &lt;input type="checkbox" value="45" id="Jamie" /&gt...
javascript jquery
[3, 5]
2,182,392
2,182,393
JQuery map vs Javascript map vs For-loop
<p>I'm implementing some code that is a natural fit for map. However, I have a significant amount of objects in a list that I'm going to iterate through, so my question is which is the best way to go abou this:</p> <pre><code>var stuff = $.map(listOfMyObjects, someFunction()) var stuff = listOfMyObjects.map(someFunct...
javascript jquery
[3, 5]
1,137,580
1,137,581
Two submit event handlers on a form. One must stop the other
<p>I have to event handlers attached to a form. The first one that fires should stop the other event if a condition is not met.</p> <p>The code below does not work, as both events will be triggered. Can you help me?</p> <p>Thanks!</p> <pre><code>//fires first $("#myform").submit(function(){ if (some validation) { ...
javascript jquery
[3, 5]
5,768,984
5,768,985
background on emulator being stretched
<p>I have a background on my android app with is a png image. It is 800 x 480 px in size. It is being stretched width wise and hence does not look as I intend it to. As the image is actually the background of the app and not just an imageView I was unable to use the android:scaleType="centerCrop" to get the image to ...
java android
[1, 4]
534,714
534,715
Skip some code if the computer is slow
<p>Is there any way to detect if a computer is slow and not run some code (by either turning jQuery animations off or just running a function if it <em>is</em> fast)?</p> <p>I know this question is probably really trivial, but I noticed that on some slower computers even the simplest margin animation to move something...
javascript jquery
[3, 5]
1,156,781
1,156,782
Creating div on the fly fires twice
<p>I've seen similar posts but nothing that helped me 100%</p> <p>I need to insert these divs before the first element of the body, on the fly when a specific js file is loaded into the page. I'd like this to fire when the script is loaded, and then add the two divs in front of the existing first child element.</p> <...
javascript jquery
[3, 5]
3,075,182
3,075,183
Problem with two JavaScript codes
<p>I have these two codes - </p> <pre><code>new function($) { $.fn.getCursorPosition = function() { var pos = 0; var el = $(this).get(0); // IE Support if (document.selection) { el.focus(); var Sel = document.selection.createRange(); var SelLength = document.selection.createRange().text.length; Sel.mov...
javascript jquery
[3, 5]
311,991
311,992
Stopping and resuming timer in jQuery
<p>I've got two solutions. The first of them using the method <code>animate</code>:</p> <p><a href="http://jsfiddle.net/g9aK8/3/" rel="nofollow">http://jsfiddle.net/g9aK8/3/</a></p> <p>The problem is with a delay, when we pause timer for example on 400px and resume then we have to wait again all delay (the speed of b...
javascript jquery
[3, 5]
5,785,368
5,785,369
i am not getting the expected output with sensors in android
<p>I am new to android. I am developing an application that can measure height and width of any object using camera. For this application i am using the angle for calculating the distance. But my problem is that i am not getting the angle in range of 0 to 180. Rather i am getting angle in just range of 0 to 90. After 9...
java android
[1, 4]
90,460
90,461
Android reading file from assets and storing in array list
<p>My app needs to read from several files in the assets folder. But my file has delimiters $$$ and ||. The structure of the file is like this.</p> <blockquote> <p>Construction$$$<br> All the work involved in assembling resources and putting together the materials required to form a new or changed facility.|...
java android
[1, 4]
5,213,141
5,213,142
Using .hasClass() in if condition is not works
<p>I am having a div when user hover on it will insert a div <code>child</code> div. But the problem is on every hover it added the same div repeatably. so i tried the below script for check if <code>child</code> div availabe in <code>MotherDiv</code> do nothing. else add the <code>Child</code> div. These all are happ...
javascript jquery
[3, 5]
977,475
977,476
asp.net and javascript
<p>I am assigning a value to asp textbox in javascript as follows:</p> <pre><code>var tempStorytxt = document.getElementById("&lt;%=txtStory.ClientID%&gt;"); tempStorytxt.Value = TempValue; alert(tempStorytxt.Value); </code></pre> <p>but when I access in codebehind as follows there is nothing in txtStory</p> <pre><c...
javascript asp.net
[3, 9]
2,041,635
2,041,636
Create a simple, simple, Game Engine
<p>I'm on my way with my first game, all design and that stuff are done, just coding left. I have successfully watched tutorials around the world wide web with information about Graphics and how to create a successfully thread-synchronization within it. </p> <p>Like now I have a SurfaceView-class and a Thread-class. T...
java android
[1, 4]
5,257,761
5,257,762
asp.net unique link generator
<p>In an email, I want my users to be able to click a link to confirm an interview schedule. How do I dynamically create these urls? </p> <p>I am thinking of using a query string and I don't want them to have to login every time. So ideally, I'd like this query string to contain credentials, and a date and time. Of ...
c# asp.net
[0, 9]
929,598
929,599
if () not working
<p>This is my code: </p> <pre><code>Log.d("inf", loader); if (loader == "Klasse"){ Log.d("inf", "Klasse yes"); OPTS = new String[] { //Something }; } else { Log.d("inf", "Klasse no"); OPTS = new String[] { //Something }; } </code></pre> <p>In the first Line, the Output is exactly "Klasse" but the next...
java android
[1, 4]
303,273
303,274
How to create JQuery Modal Login Box in C#
<p>Please guide me to develop Login Modal Popup using JQuery and C#.</p> <p>When User will click on "Login" link on the page, it will show the modal popup which will be having username and password fields and "login", "Cancel" button, it should also validate the fields for validations and if required entry is done it ...
c# jquery
[0, 5]
3,220,015
3,220,016
JS if inside for loop
<p>I'm trying to rewrite this as a for loop; my attempt below failed. Any ideas?</p> <pre><code>jQuery.event.add(window, "load", resizeFrame); jQuery.event.add(window, "resize", resizeFrame); function resizeFrame() if ($(window).width() &lt; 232){ $("#grid-content").css( 'width', '232px' ); }else if ($...
javascript jquery
[3, 5]
5,557,965
5,557,966
image slide gallery with jquery
<p>I'm try to create a sliding banner with jquery here. </p> <p>I tried to code in this manner </p> <pre><code> .post(this,{ajax : 1}, function(data){ var oldImage = $('div.banner &gt; img'); var newImage = $(data).insertAfter(oldImage).css('position','absolute').css('left',800); newImage.load(function...
javascript jquery
[3, 5]
1,908,365
1,908,366
Image resize without saving on disk
<p>in asp.net i want to resize the image and display on some control but without saving on disk. is there any free utility just like for clasic asp.</p> <p><a href="http://www.aspjpeg.com/livedemo.html" rel="nofollow">http://www.aspjpeg.com/livedemo.html</a></p>
c# asp.net
[0, 9]
3,631,977
3,631,978
Communicate from one page to another? JavaScript, PHP?
<p>I'm building a prototype where on one page A I have a controller. Imagine a TV remote. On another page B, independent of form A -- it can be a different screen/computer -- with some elements X, Y, and Z that are going to be animated by the remote on page A.</p> <p>My first idea would be:</p> <ul> <li>Remote on pag...
php javascript
[2, 3]
1,000,341
1,000,342
How can I say this in jQuery?
<p>I want to append some text after 2 closing divs to a sector element.</p> <pre><code>&lt;a href="" class="thingIClicked"&gt;Click me&lt;/a&gt; &lt;/div&gt; &lt;/div&gt; // this is where I want to append the text </code></pre> <p>My code appends the text after the link. How can I say "append it after the 2nd closin...
javascript jquery
[3, 5]
3,263,024
3,263,025
PHP's unpack method functionality in Java
<p>I am wondering what the algorithm behind <code>unpack()</code> method in PHP is? Is there maybe an equivalent in Java which I could use?</p> <p><em>What would be the best way to implement PHP <code>unpack()</code> method in Java?</em></p>
java php
[1, 2]
2,936,548
2,936,549
2nd Activity doesn't call after calling from 1st Activity
<pre><code>if(dialog.getProgress()==dialog.getMax()) { Intent i = new Intent(this, ShowMyDialog.class); startActivity(i); } </code></pre> <p>I have written this code in my 1st activity.but 2nd activity not get called after progress bar value reached to max. so,please help me......how can i solve...
java android
[1, 4]
4,730,258
4,730,259
How to update the alarm ringing time While updating calendar events?
<p>I'm trying to set alarm for calendar events that are inserted through my application. I have also set alarm for events(i.e) when calendar event notification shows, Alarm also sounded. Now, if I update the event time, I must get the alarm time also be updated from old time to new time. How to make out this? Any help...
java android
[1, 4]
3,294,256
3,294,257
How to access class member variables inside an event handler defined in a class prototype - Javascript
<p>I've seen this solution that works when the event is defined in the constructor:</p> <p><a href="http://stackoverflow.com/questions/3076010/accessing-class-member-variables-inside-an-event-handler-in-javascript">Accessing class member variables inside an event handler in Javascript</a></p> <p>But when the handler ...
javascript jquery
[3, 5]
3,648,256
3,648,257
Issue related to ItemCommand event in DataGrid asp.net
<p>I have asp.net application having DataGrid on the aspx page having some autogenerated columns :</p> <p>i have bound ItemCommand Event on the grid as Following :</p> <pre><code> protected void DataGrid2_ItemCommand(object sender, System.Web.UI.WebControls.DataGridCommandEventArgs e) { if (e.Com...
c# asp.net
[0, 9]
4,545,296
4,545,297
Android Hashmap Failed in showing up inside the listView
<p>I am stuck in this hashmap problem when copying the key. (Android)</p> <p>Initially I had a xml file similar to this</p> <pre><code>&lt;many_people&gt; &lt;people&gt; &lt;id&gt;1&lt;/id&gt; &lt;name&gt;Johnson&lt;/name&gt; &lt;tel_num&gt;12345678&lt;/tel_num&gt; &lt;/people&gt; . . ...
java android
[1, 4]
5,563,403
5,563,404
Java split string from array
<p>I have a string array that contains some information.</p> <p>Example: </p> <pre><code> String [] testStringArray; testStringArray[0]= Jim,35 Alex,45 Mark,21 testStringArray[1]= Ana,18 Megan,44 </code></pre> <p>This is exactly how the information i...
java android
[1, 4]
5,599,080
5,599,081
how to write the condition in jquery?
<p>I have two text input fields like so:</p> <pre><code>&lt;input type="text" id="test1".../&gt; &lt;input type="text" id="test2".../&gt; </code></pre> <p>Now I want the visitor to only be able to fill in only one of those text inputs. For example, if <code>#test1</code> has a value, when the visitor tries to enter a...
javascript jquery
[3, 5]
644,532
644,533
Can I access a variable in the child window
<p>I'm trying to access a variable in a window that I have opened.</p> <p>Here is the parent window, it opens up a new window, sets a reference to the child window and then in another onclick event it attempts to retrieve a variable defined in the child window.</p> <pre><code> var window1; //open a window ...
javascript jquery
[3, 5]
3,368,933
3,368,934
getting value from the database
<p>I want to check the validation of username and password, for wrong value i should get alert saying that "invalid username and password", I am a newbie to javascript and php can anyone guide me with this</p> <pre><code>function loginValidation() { var username = $('#username').val(); var password = $('#pass...
php javascript jquery
[2, 3, 5]
4,716,939
4,716,940
Checking Number of Selected Checkboxes
<p>I saw the <a href="http://docs.jquery.com/Is" rel="nofollow">is</a> function in jQuery, and it returns me, for example, if any of the checkboxes are selected.</p> <p>I need to do a check for how many checkboxes had been selected by the user, because my app requires something like "select two of these". Is there a q...
javascript jquery
[3, 5]
3,019,324
3,019,325
Keying a collection by type
<p>I'm looking to have a collection of objects that implement a certain interface, but I'd like to only have one per concrete type within the collection.</p> <pre><code>collection of implementers of dog: - instance of dachshund - instance of beagle - instance of corgi </code></pre> <p>In .NET, there's a "KeyedByTy...
java android
[1, 4]
5,318,585
5,318,586
How to bind a repeater to an array of a custom class?
<p>I have a class like this </p> <pre><code> public class Link { public string LinkID { get; set; } public string Title { get; set; } public string URL { get; set; } } </code></pre> <p>and a method that returns an array of <code>Link[]</code> </p> <p>Could I bind that to a repeat...
c# asp.net
[0, 9]
1,216,921
1,216,922
How to detect and manage incoming call (Android)?
<p>I want to create an application that can detect incoming calls and start my custom activity after a certain number of beeps (rings), I mean after 2 or 3 or 5 beeps (rings) my <code>activity</code> is triggered. How can I do it? </p> <p>Thanks</p>
java android
[1, 4]
4,260,074
4,260,075
findviewbyid returns null in a dialog
<p>I have a custom dialog and when I try to get the value of an EditText it returns null.</p> <p>This line returns null</p> <pre><code>EditText et = (EditText)findViewById(R.id.username_edit); </code></pre> <p>Here is the code in its entirety.</p> <pre><code>protected Dialog onCreateDialog(int id) { switch (id)...
java android
[1, 4]
840,312
840,313
Apostrophe in DataView RowFilter
<p>I have a DataView that I'm trying to filter based on a dynamic string:</p> <pre><code>dv.RowFilter = "ContentTitle = '" + titleFilter + "'"; </code></pre> <p>In some cases, <code>titleFilter</code> contains an apostrophe, which is closing out the filter query and causing an error.</p> <p>Is there a way I can esca...
c# asp.net
[0, 9]
5,521,209
5,521,210
dynamically add <asp:linkbutton>
<p>i have a question about asp : i have a list of ids that are returned from the server to my webpage . Can i return it in a div under a asp.net control ? : </p> <blockquote> <p>div_containing_link += " &lt; asp:linkbutton id="bleah" runat='server' onclientclick='java_function()' onclick='dosomething' />"</p> </...
javascript asp.net
[3, 9]
222,926
222,927
Identify caller
<p>I have a link in some html which calls a javascript function I'm writing. The call must be inline so the code is as follows:</p> <pre><code> &lt;a href='#' onclick='quipManager.getQuip(1, $(this))'&gt;Test&lt;/a&gt; </code></pre> <p>In the getQuip function I use the this reference to modify the div which wraps the...
javascript jquery
[3, 5]
133,120
133,121
by using parcelable,trying to add an arraylist into another arraylist,getting error "the method add is not applicable for the arguments"
<p>I have in one activity (firstactivity):</p> <pre><code>ArrayList &lt;MyDouble&gt; myfinals=new ArrayList &lt;MyDouble&gt;(); ... i.putParcelableArrayListExtra("myfinals",myfinals); ... public static class MyDouble implements Parcelable { Double al; public MyDouble(Parcel source){ ...
java android
[1, 4]
3,999,982
3,999,983
Javascript/jQuery function yields undefined in <IE8
<p>A short while back I asked a question here about how I could calculate when a heading was longer than one line within a given container, and subsequently wrap each of these lines in a <code>&lt;span&gt;</code>:</p> <p><a href="http://stackoverflow.com/questions/3960336/use-javascript-jquery-to-determine-where-a-hea...
javascript jquery
[3, 5]
350,863
350,864
data export gird view to excel
<p>export data gird view to excel in asp dot net full data export in excel sheet this is write. 10 column in gird view but i want to show only 5 column in excel sheet how to solve this problem </p> <pre><code> protected void btnexcel_Click1(object sender, EventArgs e) { Response.Clear(); Response.Buf...
c# asp.net
[0, 9]
1,712,550
1,712,551
JAVA DES in PHP
<p>I can't get the same result of encrypted text in JAVA from my php script. This is my php code (client side - my side):</p> <pre><code>$input = 'my text to be encrypted'; $key = 'my key'; $size = mcrypt_get_block_size(MCRYPT_DES, 'ecb'); $input = pkcs5_pad($input, $size); $td = mcrypt_module_open(MCRYPT_DES, '', 'e...
java php
[1, 2]
5,592,260
5,592,261
Using JQuery Deferred and Promise
<p>I have a function that I want to use deferred and promise to chain an animation.</p> <p>The first animation is a type writer plugin, using <a href="https://github.com/stephband/jticker/blob/master/js/jquery.jticker.js" rel="nofollow">https://github.com/stephband/jticker/blob/master/js/jquery.jticker.js</a>. The sec...
javascript jquery
[3, 5]
1,098,976
1,098,977
How to post a particular button from jQuery
<p>How can I submit a particular button by jQuery without submiting other buttons in the same form</p> <p>I want to post the delete button only when i clck yes in jquery confirmation box</p> <pre><code>$(document).ready(function(){ $( "#dialog:ui-dialog" ).dialog( "destroy" ); $( "#dialog-confirm" ).dialog({ ...
php jquery
[2, 5]
4,433,733
4,433,734
Asp:Textbox vs input text (a PHP Developer learning ASP)
<p>I’ve been a PHP developer for 10 years, trying to broaden my horizon I am doing a project in ASP.NET. What is the advantage to using an <code>&lt;asp:TextBox&gt;</code> over using a standard <code>&lt;input type=’text’&gt;</code>?</p> <p>It seems advantageous to use a regular <code>&lt;input type=”text”&gt;</code> ...
php asp.net
[2, 9]
3,888,242
3,888,243
Generate Screenshots from URL using ASP.NET and C#
<p>I want to generate screenshots of a website using its URL.</p> <p>This I want to create using ASP.NET and C#, and I <strong>dont</strong> want to use any of the available tools and API(Url2Png, Wesnappr, Awesomium etc..).</p> <p>Which classes of ASP.NET and C# should I explore for this ? How should I start about o...
c# asp.net
[0, 9]
3,934,459
3,934,460
Jquery plugin for sticking a few table rows at the top of the page when scrolling?
<p>Can anyone recommend a jquery plugin that would allow you to stick a few rows at the top of the page</p> <p>i.e. page loads, the content is in the right place, then once the content reaches the top of the page it gets fixed in place while the user scrolls...then if they scroll back up the content will go back to it...
javascript jquery
[3, 5]
469,697
469,698
SQl server hierarchy
<p>I have a website application, In that website i created four text boxes(txtSchoolName,txtBranchName,txtClass,txtSection)....</p> <p>I want to know about SQL server Hierarcy... and How to create hierarchy sqlserver? how to insert values in that? and also how to connect that hierarchy to ASP.net website(C#)?</p> <p...
c# asp.net
[0, 9]
3,781,854
3,781,855
How to redirect after File upload?
<p>I have a File.aspx form where I display all the files.</p> <p>When I upload a file I am using a upload.aspx file to run c# code to upload the file.</p> <p>The thing is that at the end , I want to refresh the page automatically to display the new file upload but apparently it's not redirecting even if all the param...
c# asp.net
[0, 9]
5,422,298
5,422,299
Why does *[checked] act like :checked when using jQuery's filter method?
<p>Following on from a <a href="http://stackoverflow.com/questions/8673201/why-does-checked-not-match-a-single-checked-input-box">previous question</a>.<br> Lets say I have two checkboxes on a page loaded with jQuery 1.5.2</p> <pre><code>&lt;input id="test1" type="checkbox"/&gt; &lt;input id="test2" type="checkbox"/&g...
javascript jquery
[3, 5]
5,822,520
5,822,521
How to get a PHP iteration variable in an external jquery.js file?
<p>I'm writing a PHP program that displays a user's to do list. What I have is basically an unordered list that has a checkbox that, when checked, will allow the user to mark a list item as done (i.e give the text a strikethrough). Here's the code I have for the list</p> <pre><code>echo '&lt;ul&gt;'; for ($i=0; $i&...
php javascript jquery
[2, 3, 5]
3,323,907
3,323,908
Trying to add class to dynamic selector
<p>In a page I am working on, each of the list-items's have an attribute data-number with the value of the number that the <code>&lt;li&gt;</code> is in the list.</p> <p>The list-item's correspond to slides and I am trying to apply the class <code>.current</code> to the list-items that corresponds to the slide that is...
javascript jquery
[3, 5]
1,851,011
1,851,012
Execute jQuery function from asp:DataGrid ItemCommand
<p>I have an <code>asp:DataGrid</code>, in this grid view an <code>asp:ButtonColumn</code>. When I click on delete action, I enter in the <code>"delete"</code> case switch. If the result is false, I'd like execute an jQuery fuction define in the .aspx page.</p> <p>Is it possible to do this ?</p> <p>Thanks,</p> <pre>...
jquery asp.net
[5, 9]
2,313,959
2,313,960
How to close the shadowbox
<p>I have a shadow box, and it contains a form , the problem is when the form is submitted shadow box doesn't get closed.I've used these functions , self.close(); window.parent.Shadowbox.close();</p> <p>but still no luck, can any one help me, thanks</p> <p>This is how I created the shadow box</p> <pre><code>&lt;a h...
javascript jquery
[3, 5]
3,403,166
3,403,167
Move focus from one control to another control just pressing enter key by Jquery
<p>suppose i have many html control in the page and all the control has a sequentially tab stop set.so if i press tab then focus move properly but i want to move focus just by pressing enter key instead of tab. so please tell me how could i programatically press tab when user will press enter key in my web page just by...
javascript jquery
[3, 5]
3,434,582
3,434,583
taking text from textbox and putting into span in javascript
<p>I am doing a self print function by gathering all the HTML from the users screen and putting it into a variable which then displays a pop-up screen so the user can print that information.</p> <pre><code> var disp_setting = "toolbar=no,location=no,directories=no,menubar=no,"; disp_setting += "scrollba...
javascript jquery
[3, 5]
2,748,451
2,748,452
clearInterval() Undefined Error After Using setInterval()
<p>I know this isn't supposed to be inline, but YUI library's dialogs force me to. My issue is that whenever I hover over this div, the margin-left scroll activated but it does not stop when I move the mouse out of the div. The JS console reports that:</p> <blockquote> <p>Uncaught ReferenceError: timerID is not defi...
javascript jquery
[3, 5]
4,416,823
4,416,824
SQL user authentication web service
<p>Is it possible to authenticate user using a SQL database, containing users and passwords?</p> <p>What I want to achive is: I have as SQL database containig data for my app. This database also contains usernames, passwords and rights which are specific for my app. Also I have a middle tier WebService, which contains...
c# asp.net
[0, 9]
812,967
812,968
How do I relay dynamic parameters passed into a functionA() to functionB() called within functionA()
<p>I'm trying to relay dynamic parameters from a web page into a function, which then passes them to a call inside the function. For example, take the simplified snippet below, as it is now, passing in the parameters directly is not problem. But how do I pass in a parameter which colorbox accepts without making a param...
javascript jquery
[3, 5]
2,657,571
2,657,572
I'm new to coding, and I have a idea but don't know how to code it
<p>I have a idea for my first application. It should be able to write a new note, email the note, post it to Facebook or Twitter, etc. But I don't know how to code it. How can I do it?</p>
java android
[1, 4]
3,930,663
3,930,664
IE7 opacity problem by Dropdown menu
<p>in the following website we have a dropdown menu with rollover effact. this function perfactly but in IE7 the opacity is not working correctly.</p> <p>Any tip?</p> <p><a href="http://webentwicklungsserver.ch/2011-08-25/index.php" rel="nofollow">http://webentwicklungsserver.ch/2011-08-25/index.php</a></p> <p>As bo...
javascript jquery
[3, 5]
4,170,863
4,170,864
Cancel form.submit()
<p>In javascript function I am submitin a form:<br /> <code>form.submit();</code>, </p> <p>with huge amount of data. </p> <p>Is it possible to cancel this operation beside clicking on browser's stop button?</p> <p><strong>UPDATE:</strong></p> <p>Maybe i didn't made my self clear i am submiting large files.<...
asp.net javascript
[9, 3]
3,382,145
3,382,146
call javascript window.onload after SelectedIndexChanged event fire
<p>//my problem is when i fire SelectedIndexChanged event of ddlmodalitylist asynchronously(ajax call) then javascript load event is not fired..thats y i have to fire onload event from server side.</p> <pre><code>window.onload = body_Onload; function body_Onload() { //javascript code } protec...
c# javascript asp.net
[0, 3, 9]
3,251,182
3,251,183
get an array of data-val values from a list of elements of a certain css class
<p>I would like to get an array of the values from the data-val attributes of <code>.my-li</code> elements</p> <pre><code>&lt;ul id="stuff"&gt; &lt;li class='my-li' data-val='1'&gt; &lt;li class='my-li' data-val='2'&gt; &lt;li class='my-li' data-val='3'&gt; &lt;li class='my-li' data-val='4'&gt; &lt;li class='my-li' da...
javascript jquery
[3, 5]
5,937,268
5,937,269
Simple Login Application in WebForms C#.NET
<p>Can anyone please help me ..I have created a simple login web application in C#.NET and SQL Server with backend db. I Just want to know how to restrict the user if he enters incorrect password more than 3 times . I want to restrict that user for 10 mins and he can try again. So can anyone please post me detail code...
c# asp.net
[0, 9]
5,450,571
5,450,572
jquery getting all dropdown values
<p>I have dropdown <code>&lt;select&gt;</code> with id <code>my_dropdown</code>. I allow multi-select. I know how to pull the selected value(s) using jquery:</p> <pre><code>var values = $('#my_dropdown').val(); </code></pre> <p>This will return an array of values if I select multiple. I also need to get all the va...
javascript jquery
[3, 5]
3,272,685
3,272,686
how to substring from a string using c#
<p>The following is a line of huge .txt file and i am reading it line by line. I need the value of second column. In this line, I need to extract 'C9006'. </p> <blockquote> <p>Mr ABC|C9006|The white field, ON|493-493-4939|493-493-4939|YR|Inactive</p> </blockquote> <p>Note : The delimiter char is pipe sign '|'. ...
c# asp.net
[0, 9]
1,360,157
1,360,158
jQuery $('.someClass').click(function(){}) only applies to elements that are currently present?
<p>So I am constantly adding new points to a graph and I want all of them to have the same click function. But it seems like when I run</p> <pre><code>$('.someClass').click(function(){}) </code></pre> <p>it only applies to elements that currently have someClass. If I add a new someClass element, it does not have the ...
javascript jquery
[3, 5]
4,238,430
4,238,431
Prevent back button after logout
<p>I don't want the user to go back to secured pages by clicking back button after logging out. In my logout code, I am unsetting the sessions and redirecting to login page.But, I think the browser is caching the page so it becomes visible despite the session being destroyed from logout.</p> <p>I am able to avoid this...
php javascript jquery
[2, 3, 5]
3,609,303
3,609,304
Jquery user control
<p>I have a problem with jquery not loaded in an asp user control.</p> <p>I want simply to add the click event when a checkbox is clicked.</p> <p>Here is my javascript file </p> <pre><code>$(document).ready(function() { var arr = jQuery(":checkbox[id*='drpAccountType']"); for (i = 0; i &lt; arr.length; i += ...
asp.net jquery
[9, 5]
5,629,931
5,629,932
$.post not firing
<p>I have some script like this:</p> <pre><code>$("#button").click(function () { alert("before"); $.post("doAction.aspx?id=hotel", {}, function (response) { }); alert("after"); return false; }); </code></pre> <p>the <code>$.post</code> is not firing. I really don't...
jquery asp.net
[5, 9]