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,182,986
4,182,987
PHP how to call function onClick
<p>I need to call this function Hello() before load the page, what happen is : function is done but location.href don't work, i need it to work how?</p> <pre><code>&lt;input type=button onClick="return Hello(this);location.href='go.php?f_name=&lt;?php echo $_POST['f_name']; ?&gt;&amp;job=&lt;?php echo $...
php javascript
[2, 3]
4,758,419
4,758,420
InputStream Non Blocking read operation
<p>I have the scenario where i need to confirm that either the server side socket closed the connection or not.So for this i am checking if(in.read() ==-1) if true ,it means that server side closed the connection. But problem is that if it does not it blocks here as it is blocking call.i need such a solution where i ca...
java android
[1, 4]
165,010
165,011
PHP read Javascript array
<p>I am passing an array from Javascript to PHP page, as below.</p> <pre><code>var arrF1 = [{"Item":"item1no", "Desc":"item1desc", "Remarks":"item1note"}, {"Item":"item2no", "Desc":"item2desc", "Remarks":"item2note"} ]; $.ajax({ type: "POST", url: "http://www.mydo...
php javascript
[2, 3]
522,382
522,383
Hide everything between 2 h2 tags?
<p>I have the following html snippet;</p> <pre><code>&lt;h2&gt;Headline 1&lt;/h2&gt; &lt;p&gt;Lorem ipsum bla bla&lt;/p&gt; &lt;p&gt;Lorem ipsum bla bla&lt;/p&gt; &lt;p&gt;Lorem ipsum bla bla&lt;/p&gt; &lt;h2&gt;Headline 2&lt;/h2&gt; &lt;p&gt;Lorem ipsum bla bla&lt;/p&gt; &lt;h2&gt;Headline 3&lt;/h2&gt; &lt;p&gt;Lor...
javascript jquery
[3, 5]
1,505,489
1,505,490
Any alternative of Turn.js(Its not working on IE8/7)
<p>There is any alternative of Turn.js. It's not working on IE8/7. I need flip effect on IE7\8. Please help.</p>
javascript jquery
[3, 5]
3,373,984
3,373,985
Android activity/task order issue
<p>I have an app with 2 main activities and a service. The app starts with activity 1, and the service launches activity 2 via an intent upon detection of an app launch A. Activity 2 then does some stuff and calls finish(), returning to app A.</p> <p>However, if I launch app A when I'm in activity 1, activity 2 appear...
java android
[1, 4]
5,259,326
5,259,327
why an object created in the code behind is not available in the aspx page?
<p>I have a simple question. When we create an object in the code behind(".aspx.cs"), why is it not available in the aspx page.</p> <p>For example, if I have a class(present in another .cs file and not in the code behind) and in that class I have a property declared, lets say "Name". </p> <pre><code>namespace BLL.SO ...
c# asp.net
[0, 9]
3,919,303
3,919,304
Jquery: How do you strip out form and div tags to isolate a piece of content?
<p>I want to strip this block of html:</p> <pre><code>&lt;form&gt; &lt;h3&gt;Some Title&lt;/h3&gt; &lt;div class="grab_this_content"&gt; This sentence is what I want remaining. &lt;/div&gt; &lt;/form&gt; </code></pre> <p>into this just this:</p> <pre><code>This sentence is what I want remaining. </cod...
javascript jquery
[3, 5]
1,050,465
1,050,466
Multiple user control instances and ClientID in JS
<p>I am using &lt;%= ClientID %> in the javascript to get the ID of a dynamically loaded user control. </p> <p>Everything works fine until multiple instances of the same control are loaded. The ID points to the ClientID of the user control that was added last.</p> <p>How do I solve this issue?</p> <p><strong>EDIT: ...
asp.net javascript
[9, 3]
2,151,648
2,151,649
Object doesn't support property or method 'removeClass'
<p>Im trying to do a simple removeClass and addClass to change styles on an Img.</p> <pre><code> &lt;div id="Pic_Viewer"&gt; &lt;div id="Main_Pic_Viewer"&gt; &lt;div class="Not_Selected" &gt; &lt;img src='#' alt="PicURL_1" /&gt; &lt;/div&gt; ...
javascript jquery
[3, 5]
3,008,148
3,008,149
while( var row = fn() );
<p>Is there any equivalent metod to make like an php mysql_fetch_array while loop in js?</p> <p>in php you can do: </p> <pre><code>&lt;?php while ($row = mysql_fetch_array($result)) { echo "my name is " . $row['name'] . " and i'm " . $row['age'] . " yeas old"; } ?&gt; </code></pre> <p>i have this object/array:</...
php javascript
[2, 3]
3,380,113
3,380,114
Need to create a service to collect data and send to clients as it is received
<p>I currently have a Windows Form application that receives data through a socket, asyncronously. The data coming through the socket can be new data, or updates to previous data. This data is coming off of a production line, tracking different aspects of the pieces running through that line. The data is updated very q...
c# asp.net
[0, 9]
4,322,703
4,322,704
Android Image Fade In-Between Gray-Scale and Color
<p>I have an app that gets the mic level through a method which I can repeatedly call. What I have is an ImageView that I want to fade in-between gray-scale and its normal color. Ultimately I want the image to turn its normal color when speaking (different intensity depending on the mic level).</p> <p>I also thought t...
java android
[1, 4]
4,206,488
4,206,489
Not geting a calender in jquery page load
<p>I have two asp web forms and i am using the jquery load method to load the page.it gets loaded but the date picker it contains is not displayed.the code by which i am calling the load method is</p> <pre><code>&lt;script type="text/javascript" src="scripts/jquery-1.2.6.js"&gt;&lt;/script&gt; &lt;script type="text/ja...
c# jquery asp.net
[0, 5, 9]
4,230,425
4,230,426
Pass value from parent to iframe dropdown box
<p>I need to pass a value from a parent to an iframe (on a different server, not in my control) and have the value make a selection in a dropdown in the iframe.</p> <p>Example: mydomain.com/?agent=12345 (target will be the iframe)</p> <p>In the iframed page, the dropdown has several choices, I need to have the value ...
php javascript
[2, 3]
5,925,534
5,925,535
single quote in php from java string
<p>I have a java (android) application that uses php to talk to the MS database. The problem is one part in my app. I have a string that is a sql statement, and that string will not insert into the database with the single quotes</p> <pre><code>String sql = "select * from table where col = 'testing' AND Col2 = 'Tester...
java php
[1, 2]
198,821
198,822
Jquery best practice for speeding up animation
<p>What are some of the more practiced methods of speeding up jquery animations across all browsers? I'm currently using jquery with a GridView(Table) and it's lagging and lagging making the slideUp() slideDown() unusable.</p> <p>Links other then jquery.com are greatly appreciated. </p> <pre><code>$(document).ready(...
c# asp.net jquery
[0, 9, 5]
4,276,551
4,276,552
slider active state in jquery
<p>i have a slider whose code is</p> <pre><code>var jq = jQuery.noConflict(); jq(document).ready(function(){ jq("a.zootoggle").click(function () { jq(this).parent().next('div.zoocontent').slideToggle('slow', function() { jq("a.zootoggle").parent().toggleClass('active', jq(this).is(':visible')); }); ...
javascript jquery
[3, 5]
2,203,650
2,203,651
jQuery - script tags in the HTML are parsed out by jQuery and not executed
<p>I have an HTML page like so:</p> <pre><code>&lt;html&gt; &lt;body&gt; &lt;div id='something'&gt; ... &lt;script&gt; var x = 'hello world'; &lt;/script&gt; ... &lt;/div&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>On another page, I am doing this:</p> <pre><code>$.ajax({ url: 'example.h...
javascript jquery
[3, 5]
651,612
651,613
Could not extract public data pygame android
<p>I have written a pygame script for an Android game. The code is perfect and is correctly executing on my desktop PC. But when I try to install it on my device it installs properly but on executing it gives a toast message 'Could not extract public data' I changed the storage data to internal memory then it toasts 'C...
python android
[7, 4]
1,109,902
1,109,903
Copy uploaded image to my physical directory in ASP.net
<p>I'm creating a user profile for my website and I need to allow user to upload his image to be his profile picture, I used the ASP.net upload control and I need to copy the image he uploaded to a physical directory called Images on the server.</p> <p>Does any one has idea if that is possible using ASP.net?</p>
c# asp.net
[0, 9]
1,755,658
1,755,659
Replacing body.onload in a user control
<p>I am refactoring a page that uses <code>&lt;body onload="myJS();"&gt;</code> to a user control. I understand I can do it using server side script registration on load.</p> <p>If I want to do it on the client side (ascx), how would I do this?</p>
asp.net javascript
[9, 3]
2,147,161
2,147,162
Wait for click event to complete
<p>I add click events handler to elment</p> <pre><code> $(".elem").click(function(){ $.post("page.php".function(){ //code1 }) }) </code></pre> <p>And trigger click event</p> <pre><code>$(".elem").click(); //code2 </code></pre> <p>How i make sure that code2 executes after code1 executes</p>
javascript jquery
[3, 5]
6,004,095
6,004,096
Breaking Change in .net 4.5 Callcontext when doing a HTTP Post to an ashx?
<p>I've just installed .Net 4.5 and noticed that an existing web application, that is still running under .Net 4, is failing when I'm trying to retrieve an item from the CallContext, when before the install was working perfectly and has done for the last year.</p> <p>On the AuthenticateRequest event of the application...
c# asp.net
[0, 9]
695,090
695,091
PopUp at the end of button's operations
<p>in my aspx page I have a button that save several values in the database. </p> <p>I need to insert a popuup at the end of the operation. </p> <p>At the moment the code is: </p> <pre><code>protected void btnSendRequest_Click(object sender, EventArgs e) { var myDbAccess = new DBAccess(); Event newEvent = (E...
c# asp.net
[0, 9]
2,764,391
2,764,392
Find Divs with Class x but should not have class y
<pre><code>&lt;ul&gt; &lt;li class="clsLi"&gt; &lt;div class="abc xyz"&gt;&lt;/div&gt; &lt;div class="arrow"&gt;&lt;/div&gt; &lt;div class="abc xyz"&gt;&lt;/div&gt; &lt;div class="abc"&gt;&lt;/div&gt; &lt;div class="abc"&gt;&lt;/div&gt; &lt;div class="abc xyz"&gt;&lt;/div&gt; &lt;/ul&gt; &lt;/li&gt; </code></pre> <p>I...
javascript jquery
[3, 5]
2,716,590
2,716,591
What is wrong with this javascript
<p>ARGH! What's wrong with this??</p> <pre><code>$(document).ready(function() { var monkeyTrouble = $('#monkeyTrouble').attr('rel'); if (monkeyTrouble = "banana") { alert("oooh oooh ahh ahhh"); } }); </code></pre>
javascript jquery
[3, 5]
4,543,505
4,543,506
How to send key event to an edit text in android app
<p>For example, send a backsapce key to the edit text control to remove a charactor or send a char code like 112 to append a charactor in the edittext control programatically.</p> <p>Actually I need a method like</p> <pre><code>onKeyReceived(int keyCode) { // EditText to append the keyCode, I know how to add a visib...
java android
[1, 4]
3,744,733
3,744,734
Execute javascript/jquery code OnClick and conditional post back to ASP function
<p>jQuery newbie question here... I have a jQuery dialog that displays a warning with a "OK" or "Cancel" and based on what they click the result needs to then execute the server side ASP onClick event. </p> <p>I've attempted to write it along these lines:</p> <pre><code> "OK": function () { ...
javascript jquery asp.net
[3, 5, 9]
5,400,990
5,400,991
cant change variable
<p>I'm trying to make a navigation area and am trying to switch tabs with the active variable. This is just for the nav button, but later I'd like to make a rotator too by switching the variable.</p> <p>Here is my code:</p> <pre><code> active = 1; function hover() { $(nav1).live(...
javascript jquery
[3, 5]
486,429
486,430
Loading of Master pages dynamically?
<p>Can we have the Masterpage loaded dynamicallu. I have a page that must be used in 2 different scenarios ie., using two different master pages. </p> <p>Appreciate all your help. </p> <p>Thanks, </p>
c# asp.net
[0, 9]
5,409,771
5,409,772
jquery onhover works, onclick does not
<p>I've added a liking/disliking function my comics website.</p> <p>I've made custom graphics for it. </p> <ul> <li><p>When a user hovers over selection, it will change, then swap back off hover... </p></li> <li><p>When a user clicks, it will swap images until they click the same vote again, where it will switch back...
php javascript jquery
[2, 3, 5]
2,004,447
2,004,448
Assign input field value from previous page to a session and access with PHP
<p><strong>My Question</strong></p> <p>I have a contact form and it has a input field called </p> <pre><code>&lt;input type="text" name="subject" id="subject" value="Car"&gt; </code></pre> <p>and the second form with a input field called</p> <pre><code>&lt;input type="text" name="subject" id="subject" value="Home"&...
php jquery
[2, 5]
20,402
20,403
Russian character not showing well in java but is ok in php?
<p>We have a web application where the can insert russian character and in the mysql db it looks like this Γβ€ΓΒΎΓ‘Γ‘β€šΓΒ°ΓΒ²ΓΒΊΓΒ° груза. But when is viewed on the web is shows correctly in the russian character form. But when we do it in java application it showing up in this format Γβ€ΓΒΎΓ‘Γ‘β€šΓΒ°ΓΒ²ΓΒΊΓΒ° груза? Any help? ...
java php
[1, 2]
4,498,426
4,498,427
jQuery - get the selected options of a listitem collection?
<p>I have fields that a user would enter and i would pass it into jQuery and pass to a web service. </p> <p>I can get textboxes values by:</p> <p>var name = $("#MainContent_txtName").val() </p> <p>The problem I'm having is a multi-select that comprises of a list item collection. If I was to do this server side, I ...
javascript jquery asp.net
[3, 5, 9]
1,502,947
1,502,948
Killing The Application In Android
<p>I have an application which shows a notification in the status bar for users to click to get resumed into the activity.</p> <p>In the application, I will also have a close application button which runs:</p> <pre><code>android.os.Process.killProcess(android.os.Process.myPid()); </code></pre> <p>When I click the cl...
java android
[1, 4]
357,350
357,351
Cannot implicitly convert type 'System.Uri' to 'System.Collections.Generic.List<string>' ERROR
<p>I am using HTML Agility to get all the images since image dont always have absolute path i am trying to do following. But line marked below in the code generates error</p> <p>Cannot implicitly convert type 'System.Uri' to 'System.Collections.Generic.List' </p> <p>I am not sure how to fix this i tried so many optio...
c# asp.net
[0, 9]
5,118,638
5,118,639
How to generate a exe program through programming?
<p>I want to write a application which can use to generate .exe program automatically from some word and txt files. How can I implement this ? Is it possible to generate a exe program with programming ?</p>
c# java c++
[0, 1, 6]
3,863,579
3,863,580
Language options in Android
<p>I am developing an android application in which there is a drop down button,drop down is having 3 languages as option,on selecting a particular language,the entire application should change to that language.My application is ready with drop down button having 3 languages as its option,but i don't know how to change ...
java android
[1, 4]
3,776,647
3,776,648
Replacing contents inside docx and pdf file using asp.net c#
<p>In my application I am using some templates in docx and pdf format. I am storing this docs to DB as Bytes.</p> <p>Befor showing/sending this docs back to user or application I need to replace some contents inside the doc. eg:if the doc contain @@username@@ I need to replace this with the exact username of the cust...
c# asp.net
[0, 9]
1,158,738
1,158,739
Call function when we click the html button
<p>How to call function in .cs file when we click the html button in aspx file.</p>
c# asp.net
[0, 9]
4,425,182
4,425,183
Javascript: How to get the ClientID of the button that was clicked?
<p>Here's the button.</p> <pre><code>&lt;asp:Button ID="_btnSearch" Text="Search" onclientclick="return CheckForEmptySearchBox(this.ClientID)" /&gt; </code></pre> <p>And here's the Javascript function</p> <pre><code>&lt;script type = "text/javascript"&gt; function CheckForEmptySearchBox(id) { aler...
javascript asp.net
[3, 9]
3,215,888
3,215,889
Asp.net reset fields and ConfirmCancel
<p>Am using master page in my asp.net application, and I want to reset the fields when I click the <code>Cancel</code> button.</p> <p>I can achieve this by adding the onClientClick event as</p> <pre><code>OnClientClick="this.form.reset();return false;" </code></pre> <p>its working but, I already used this function f...
jquery asp.net
[5, 9]
5,043,400
5,043,401
JQuery - How do I count the number of elements selected by a selector?
<p>I am using $().fadeOut() to fade items out in a list ( &lt; li> &lt; /li>). When the list is empty I wish to hide a parent object.</p> <p>I plan on doing this by checking in my trigger event that fades the list if the count of the objects is 0 then hide the parent element. I can use the fadeOut callback to remove t...
javascript jquery
[3, 5]
370,640
370,641
Master page - Only one instance of a ScriptManager can be added to the page
<p>I am using ajax toolkit in my project. My project is having a master page and i am inheriting this master page in my web pages.I am using Script manager on every page but now requirement came to display a real time clock also on the master page.I had written the code using Timer to display real time clock on master ...
c# asp.net
[0, 9]
3,018,475
3,018,476
access ajax data in closure
<p>I want to populate a "private" variable in my function with some data loaded by ajax, so it can be accessed within the function. What I currently have:</p> <pre><code>var foo = (function(){ var ajaxData; var useAjaxData = function(data){ }; })(); </code></pre> <p>I suppose that I need to do somethi...
javascript jquery
[3, 5]
597,485
597,486
improveddown causing scrollbar flickering
<p>I have used improveddropdown jquery plugin... my page has 10-20 dropdowns.. when the page loads the vertical scrollbars starts flickering.. it flickers because the improveddrodown jquery runs on dropdowns which takes some time... how to avoid this flickering of the scrollbar?</p>
jquery asp.net
[5, 9]
2,411,627
2,411,628
Passing an Id to a AlertDialog click event
<p>I have a mapview with pointers, when a pointer is clicked I show an alertdialog. In this dialog I have a bit of text and two buttons, a positive and negative. When the positive is clicked I want to open a new activity based on the id of the pointer clicked.</p> <p>I am new to Android and java and I am having troub...
java android
[1, 4]
746,156
746,157
ExecuteNonQuery()
<p>Hey, this is my (rough)code (DAL)</p> <pre><code>int i; // some other declarations SqlCommand myCmdObject = new SqlCommand("some query"); conn.open(); i = myCmdObject.ExecuteNonQuery(); conn.close(); </code></pre> <p>so the problem is even though there is a record present on my <code>SELECT</code> query, the v...
c# asp.net
[0, 9]
3,018,691
3,018,692
How do I access a public property of a User Control from codebehind?
<p>I have a user control in a repeater that I need to pass data to during the databound event, so I've created two public properties in the control. How do I access these properties from the page's codebehind class?</p>
c# asp.net
[0, 9]
4,474,115
4,474,116
Legal use of creating a new object on a global namespace
<p>Would this be a legal use of creating an object on a global namespace? My goal is to create 1 global namespace for this application. Also how would I alias MYNYTE.app? Could I do something like this with out polluting the Global namespace: <strong>var b = MYNYTE.app;</strong></p> <pre><code>if( ! MYNYTE ) MYNYTE =...
javascript jquery
[3, 5]
3,556,558
3,556,559
Changing button text with Javascript
<p>I have the below code:</p> <pre><code>&lt;asp:Content ID="HeadContent" runat="server" ContentPlaceHolderID="HeadContent"&gt; &lt;script type="text/javascript"&gt; function SetText(id) { if (Button2.value == "Disable automatic page refresh") Button2.value = "Automatic Refresh ...
javascript asp.net
[3, 9]
4,978,384
4,978,385
How many document.ready in single html file or javascript file?
<p>How many <code>$(document).ready()</code> function can we use in a single html file or in a single javascript file?</p> <pre><code>$(document).ready(function(){ alert("first document ready"); //do some action here }); $(document).ready(function(){ alert("second document ready"); //do some actio...
javascript jquery
[3, 5]
204,964
204,965
Is it possible to create ASP.NET pages without the autogenerate javascript?
<p>As a test, I wanted to have an ASP.NET page rendered without the auto-generated javascript. Is this possible?</p>
asp.net javascript
[9, 3]
4,511,776
4,511,777
passing url in another url
<p>i have this snippet:</p> <pre><code>$('#button1').click(function(){ window.location = "details.php?trans=Automatic&amp;&amp;mileage=19,695&amp;&amp;eng=6&amp;&amp;ext=White Platinum Metallic&amp;&amp;stock=45411&amp;&amp;vin=2FMGK5D89DBD08967&amp;&amp;location=Palm Beach, FL&amp;&amp;price=$28,999&a...
javascript jquery
[3, 5]
2,493,832
2,493,833
currency converter project on android
<p>I try to do currency converter project on android i got these errors</p> <pre><code>currencyConverter cannot be resolved or is not a field R.string.convert_failure cannot be resolved </code></pre> <p>the following code files are here</p> <p><a href="http://pastebin.com/QcHjXGQQ" rel="nofollow">http://pastebin.co...
java android
[1, 4]
1,265,437
1,265,438
Proper syntax for ASP.NET hyperlink
<p>I am trying to send an ASIN number into the querystring from a hyperlink and I'm having trouble getting the correct syntax. Any ideas?</p> <pre><code>&lt;asp:HyperLink ID="hlProductPage" Enabled="true" runat="server" NavigateUrl="ProductPage.aspx?ASIN=&lt;%# Eval("ASIN")%&gt;"&gt;Read More...&lt;/asp:HyperLink&gt;...
c# asp.net
[0, 9]
208,255
208,256
View overlapping issue-SingleTop Declaration
<p>I have a game application where user has option to go to new game or review the game user just played. New game and Review are defined in same activity, with Review being handled in onNewIntent(). The issue is, when I click both buttons at same time / touch New game and quickly touch Review - then "New Game" and "...
java android
[1, 4]
893,702
893,703
Best way of getting a a series of custom fields into an array?
<p>I've a series of custom fields attached to certain pages. These fields are named slide1, slide2, side3, slide4, slide5, slide6. </p> <p>These are images which are going to be used as a slideshow (I'm using jflow slider for this - <a href="http://net.tutsplus.com/articles/news/using-the-wonderful-jflow-plugin-screen...
jquery php
[5, 2]
4,659,620
4,659,621
How to solve this string literal error
<p>This code below is giving me a unterminated string literal error, how can this be fixed?</p> <p>below is javascript code (QandAtable.php).</p> <pre><code>$(".imageCancel").on("click", function(event) { var image_file_name = "&lt;?php echo str_replace("\n", "", $image_file_name); ?&gt;"; $('...
php javascript jquery
[2, 3, 5]
2,176,006
2,176,007
'how to instruction' using javascript/jquery for first signed up users
<p>Can anyone please tell me some tips to create a 'how to use this website' instruction using javascript/jquery for those first signed up users (like the ones you see when you first sign up for facebook or twitter)? And my website is based on php/mysql. Thanks so much in advance!</p>
php javascript jquery
[2, 3, 5]
2,530,893
2,530,894
PHP server for Android turn based multiplayer game?
<p>I developed a turn based game for Android, and now I want to add multiplayer gaming. I don't want to use providers like "skiller", I would like to develop my own server. </p> <p>I don't have a dedicated server, but I have a php hosting with "1 and 1". Would be a good idea to use this hosting like a game server? My ...
php android
[2, 4]
2,622,319
2,622,320
Hover set timeout doesn't work
<p>I want to <code>display:none</code> if user hovers my banner for 500ms, but the following JQuery code is not working. Where is mistake?</p> <pre><code>$('.banner').hover(function() { setTimeout(function(){ $(this).css('display','none'); }, 500); }); </code></pre>
javascript jquery
[3, 5]
5,046,987
5,046,988
How can I upload a J2EE/Android hybrid application to Google Play?
<p><strong>I made a Java EE Hybrid application and I want to upload it to Google Play !!</strong></p> <p>My application interface worked well in the emulator. I really want to upload the application. I could not find a good guide to help me.</p> <p>Can anyone can give me a full guide step by step? </p>
java android
[1, 4]
3,682,968
3,682,969
jQuery $.get() Memory Usage
<p>This is the jQuery method that I have at my webpage, it refreshes a image every 5 seconds by loading the same page and replacing the image.</p> <pre><code>$(document).ready(function () { var refreshId = setInterval(function () { $.get('default.aspx', function (data) { var page = data; ...
javascript jquery asp.net
[3, 5, 9]
5,528,841
5,528,842
In my android project there are two classes and there is a button on first class,i need to view next page when i click on the button.
<p>In my android project there are two classes and there is a button on first class,i need to view next page when i click on the button. </p> <p>package com.example.restaurantapp;</p> <pre><code>import android.os.Bundle; import android.app.Activity; import android.view.Menu; import android.view.MenuItem; i...
java android
[1, 4]
74,868
74,869
Extracting elements from a variable
<p>I have a string '<a href="http://this.is.my.url:007/directory1/directory2/index.html" rel="nofollow">http://this.is.my.url:007/directory1/directory2/index.html</a>' and I need to extract the string as below. Please advice the best way </p> <p>var one = <a href="http://this.is.my.url:007/directory1/directory2/index"...
javascript jquery
[3, 5]
3,685,546
3,685,547
a jQuery image-group animation
<p>I've got a div with three same images.</p> <pre><code>&lt;div&gt; &lt;img class="movlights" src="files/images/movelights.png" alt="10 years logo" /&gt; &lt;img class="movlights sec" src="files/images/movelights.png" alt="10 years logo" /&gt; &lt;img class="movlights third" src="files/images/movelights.p...
javascript jquery
[3, 5]
4,609,439
4,609,440
Max length for bound field in gridview in ASP.Net
<p>I have to set maximum length for bound field in an editable gridview. For this i have used data format string property and also given ApplyFormatInEditMode="true" still it accepts invalid input. The gridview does not have template field, it contains bound fields only. I have written OnRowEditing and RowUpdating even...
c# asp.net
[0, 9]
4,435,839
4,435,840
Android-java vs PC-Java
<p>This simple line of code gives the error "The method getTextContent() is undefined for the type Element":</p> <pre><code>String color_string = ( ( Element )( ( Element )inner_node ).getElementsByTagName( "color" ).item( 0 ) ).getTextContent(); </code></pre> <p>I get the error in my Android-java version, but not in...
java android
[1, 4]
966,837
966,838
Can I run this nested functions in a better way?
<p>I was just wondering if I could run this functions in a better way, I mean I don't like the collection of functions in there :</p> <pre><code>setTimeout(function() { $(self.header_buttons_classes[0]).addClass(self.animations[15]); setTimeout(function() { $(self.header_buttons_classes[1])...
javascript jquery
[3, 5]
2,110,732
2,110,733
Script tag in ASPX page is not written
<p>I have an aspx page with the following code (partial and simplified):</p> <pre><code>(beginning of page) &lt;body id="body" runat="server"&gt; &lt;form id="form1" runat="server"&gt;some HTML&lt;/form&gt; &lt;script type="text/javascript"&gt; window.addEvent('domready', function() { var x = ...
c# asp.net javascript
[0, 9, 3]
210,307
210,308
Hide/show text box using jQuery
<p>I am using jquery for the first time ,so please help me out here. I've searched a lot but haven't found the answer to my question. I want it so that the text box is visible if the score value is not blank and for it to be hidden when the score value is null. The score value is inserted in the input field. Thanks in ...
php javascript jquery
[2, 3, 5]
2,196,428
2,196,429
generate age using calendar
<p>I have two Textboxes. In one Textbox I used an ajax calendar to find the date of birth and in the second Textbox I want to generate the age dynamically before submitting the form. I am using asp.net and c#. Could anyone please tell me how to do it?</p>
c# asp.net
[0, 9]
2,685,825
2,685,826
How easy/difficult is it to start using something like Python/Django in an existing Java project?
<p>I have a Java project which uses Java to access some 3rd party libraries. For other things I'd like to use something newer like Python maybe. Is it easy to incorporate into an existing project? How do people usually do that?</p> <p>Thanks, Alex</p>
java python
[1, 7]
5,231,608
5,231,609
Reload a .js file on selectedindex change event of dropdown in asp.net
<p>I have a dropdown inside update panel. On the selected index change event, i need to execute a .js file using c# or javascript How can i do this ?</p> <pre><code>&lt;asp:UpdatePanel ID="UP_Social_Ddl" runat="server"&gt; &lt;ContentTemplate&gt; &lt;div class="styled-select"&gt; &lt;asp:Label runat="se...
c# javascript asp.net
[0, 3, 9]
718,026
718,027
Send commands between two computers over the internet
<p>I wish to control my computer (and usb devices attached to the computer) at home with any computer that is connected to the internet. The computer at home must have a program installed that receives commands from any other computer that is connected to the internet. I thought it would be best if I do this with a web...
php java python javascript
[2, 1, 7, 3]
2,577,366
2,577,367
File input: Compare file type and accept only picture formats (jpg, bmp, etc)
<p>I am currently trying ot find a way to use jquery to validate if a a file is in picture format <code>(jpeg,jpg,bmp,gif,etc)</code>. I have been able to figure out if the input is empty or not with simple <code>.length</code> comparison. How would I be able to check the file type and only accept valid picture formats...
javascript jquery
[3, 5]
1,350,156
1,350,157
java or php for developing database driven android app
<p>I have an existing PHP MySQL web app that I want to make an android app for to look up account info, get status info for work orders, upload photos, etc. </p> <p>I'm new to Android Dev and found a site phpforandroid.net that says I can use PHP to build android apps. 6 years ago I did a basic Java class n learne...
java php android
[1, 2, 4]
3,848,922
3,848,923
How to find an object in an array of objects if some array elements are undefined?
<p>I have an array of objects with the following format:</p> <pre><code>obj = { ref: 8, id: "obj-8" } </code></pre> <p>and a function which uses jQuery's <em>grep</em> method to return an item from that array, by searching for the object <em>ref</em> property:</p> <pre><code>function returnObj(arr,r){ return $.g...
javascript jquery
[3, 5]
608,694
608,695
How to install EtherPad
<p>This may be a silly question but how can I install the opensource version of etherpad on my site or a local server. I know the download page has instructions but im not sure how to utilize them. Is there a video that can help me do that or detailed steps? I have a little knowledge of PHP but im not sure how to get e...
java php
[1, 2]
5,254,474
5,254,475
loop through input and select elements and hide the previous td
<p>The code below is looping through all the <code>input</code> and <code>select</code> elements inside a <code>div</code> and checking if the value is empty and then hiding it, it is working perfectly: </p> <pre><code>$("#customfields_1 :input").filter(function() { return $.trim(this.value).length === 0; }).hide(...
javascript jquery
[3, 5]
3,876,191
3,876,192
Stackoverflow image uploader
<p>There is an awesome image uploader in stackoverflow. Im looking for a tutorial for creating application like this with php and jquery. Thanks</p>
php jquery
[2, 5]
1,295,607
1,295,608
How to Convert Long Data type to double data type in java?
<p>(isPlusClicked || op == '+'){</p> <pre><code> long result = 0; String finaldata = edt.getText().toString(); finaldata = finaldata.replace("(", ""); finaldata = finaldata.replace(")", ""); System.out.println(" the string is now ==== "+edt...
java android
[1, 4]
3,742,520
3,742,521
jQuery audio buffered function throws DOM error
<p>I've got this little function to show the amount the audio has buffered. Its a pretty simple little thing and I am not sure why it is throwing the error <code>Uncaught Error: INDEX_SIZE_ERR: DOM Exception 1</code>.</p> <pre><code>$(song).on('progress', function() { $("*[data-url='" + url +"'].body_container .pl...
javascript jquery
[3, 5]
2,219,150
2,219,151
What i am doing wrong with Class Overview?
<p>This code not work. Anyone can helpme?</p> <p>.java</p> <pre><code>package rfmsoftware.util.test1; import android.app.Activity; import android.os.Bundle; public class test1 extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) {...
java android
[1, 4]
2,367,054
2,367,055
wrap plain text inside a div before another html element
<p>Ok, that probably doesn't make a ton of sense... let me illustrate:</p> <p><code>&lt;div class="csl-entry"&gt; lorem ipsum yada yada yada... &lt;a title="some title" rel="external" href="http://google.com"&gt;Google&lt;/a&gt; &lt;/div&gt;</code></p> <p>I would like to wrap the "lorem ipsum yada yada yada..." in a ...
php javascript
[2, 3]
208,380
208,381
Need help with build error
<p>Unable to copy file "..\Soln\Project1\Bin\Telerik.Web.UI.dll" to "bin\Debug\Telerik.Web.UI.dll". Access to the path 'bin\Debug\Telerik.Web.UI.dll' is denied. Project2</p> <p>I got two projects bound to one solution When I build Project2, it gives me the error above. How do I fix this ? I need to add reference of Pr...
c# asp.net
[0, 9]
3,865,483
3,865,484
How to apply jQuery methods to a javascript declared variable?
<p>I declare:</p> <p><code>var iframe = document.createElement("iframe");</code></p> <p>now I want to use this var <code>iframe</code> in order to apply jQuery methods:</p> <pre><code> $("iframe").on("load", function () { // DO SOMETHING }); </code></pre> <p>Like this does not work. How must I refere...
javascript jquery
[3, 5]
1,719,832
1,719,833
How to change the appearance of navigation menu when javascript disabled.
<p>I am re-building a website with a navigation menu that uses javascript, but when javascript is disabled the sub menu's list stack below. Is there anyway I make then disappear or change their colour to white so to blend in with the body background colour when the javascript is disabled? </p> <p>I have this problem ...
javascript jquery
[3, 5]
4,712,341
4,712,342
In ASP.Net C# would the Application end when and error occurs on the site or when Application_Error is triggered
<p>Hello brilliant guys on Stackoverflow, please I would like to know if in ASP.Net C# would the Application end when an error occurs or when Application_Error is triggered? From my understanding, it shouldn't, I just want to be double sure</p>
c# asp.net
[0, 9]
4,402,332
4,402,333
how to move the rows of grid view with out using Scrollbars in .Net
<p>when ever we add one row into the grid view control then already existing row will be move d down and new row will be added up .just like in twitter website.the rows will be automatically moved.</p>
c# javascript jquery
[0, 3, 5]
3,563,746
3,563,747
Why transfering global window parameter if it's a global one
<p>We have that basic <code>jQuery</code> script that use wrapper code, It initialized with the transfered global <code>window</code> parameter. Is it necessary transfering this parameter? <code>window</code> is a global parameter and you can use it from inside function if you transfer it or not.</p> <p>What is the re...
javascript jquery
[3, 5]
3,230,273
3,230,274
Dynamically including javascript files only once
<p>I have a javascript function I'm writing which is being used to include an external JS file, but only once. The reason I need such a function is because it is being called when some content is loaded via AJAX and I need to run page-specific code to that content (no, just using <code>.live</code> won't cover it).</p>...
javascript jquery
[3, 5]
2,950,671
2,950,672
PHP form wont submit
<p>I have a simple form:</p> <pre><code>&lt;form name ="Add" action="Add-Results.php" method="post"&gt; &lt;label for="name" class="smallfont"&gt;Name&lt;/label&gt; &lt;input type="text" name="name" size="30" /&gt; &lt;label for="name_error" class="error"&gt;Please enter a name&lt;/label&gt; &lt;input type="image"...
php jquery
[2, 5]
953,438
953,439
How exactly can Python compliment your C# skills for windows based development?
<p>I'm looking for a fun challenge, and am thinking about learning Python. I've heard really good things about the language. My question is, how (if at all) can Python compliment the skills of a typical C# developer working mainly with MS technologies on a Windows Platform. </p> <p>Some examples of typical C# dev on w...
c# python
[0, 7]
3,207,094
3,207,095
asp.net ExpressionBuilder: Possible to wire up an event?
<p>I have used ExpressionBuilders here and there within my asp.net markup to return simple data types.</p> <p>Does anyone have any ideas how an ExpressionBuilder might be used to wire up an event inline? Or can ExpressionBuilders only return literals?</p> <p>I would like to wire up the OnLoad event (or any event) by ...
c# asp.net
[0, 9]
5,607,431
5,607,432
How can I update the background color of a dynamic input control?
<p>I'm successfully creating some dynamic input textboxes using the following javascript:</p> <pre><code>var type = "Textbox"; var foo = document.getElementById("fooBar"); for (i = 1; i &lt;= totalQty; i = i + 1) { var textbox = document.createElement("input"); //Assign different attributes to the element. ...
javascript jquery
[3, 5]
264,885
264,886
Unable to call JavaScript on Action Menu Items
<p>I am new to JavaScript.</p> <p>In my code behind I have this code block:</p> <pre><code>if (!Page.IsCallback) { List&lt;String&gt; itemIds = new List&lt;string&gt;(); itemIds.Add(DELETE_ACTION); this.Page.ClientScript.RegisterStartupScript(GetType(), "SetItemClickConfirmJS", SetItemClic...
c# javascript asp.net
[0, 3, 9]
3,592,111
3,592,112
To building a jQuery web widget for other domains
<p>I spent two days to develop a web widget for other domains but I didn't get any success. I found a <a href="http://alexmarandon.com/articles/web_widget_jquery/" rel="nofollow">tutorial</a> to develop a widget that is quite useful but my problem is:</p> <p>If user clicks on my widget button then the widget will chec...
php jquery
[2, 5]