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 |
|---|---|---|---|---|---|
5,095,929 | 5,095,930 | Passing a Int value to another class | <p>I have four groups in a listview each with four url's I want to load in a webView. When the user select a url to goto I set a value like so;</p>
<pre><code> if (position == 0) webb = webb +2;
{
Intent intent = new Intent(this, official.class);
startActivity(intent);
}
</code></pre>
<p>I then carry... | java android | [1, 4] |
5,455,084 | 5,455,085 | Reading Numbers From Text | <p>Ok so I have the following code:</p>
<pre><code>string numbers = File.ReadAllText("numbers.txt");
StringSplitOptions.RemoveEmptyEntries);
List<string> List = new List<string>();
List.AddRange(allNumbers);
return List;
</code></pre>
<p>Currently the numbe... | c# asp.net | [0, 9] |
1,731,141 | 1,731,142 | Javascript - how to set child drop down menu based on parent dropdown menu selection | <p>For example take a look at <a href="http://katz.cd/submit.php" rel="nofollow">http://katz.cd/submit.php</a>. Notice when you select a type, that type is carried through to all the other type dropdown menus.</p>
<p>How do I do this?</p>
| javascript jquery | [3, 5] |
4,503,183 | 4,503,184 | open a file before uploding through file uploder in asp.net | <p>I want to upload an exe to web server from client system through file up-loader and want to run/open that exe before uploading .how can i run/open that exe before uploading it.</p>
| c# asp.net | [0, 9] |
1,062,672 | 1,062,673 | Difference between Javascript and PHP | <p>What is the difference between PHP and Javascript? </p>
<p>I know one is server side scripting and the other is browser side. but what I'm asking is that using Javascript, can I display alert messages,which i can simply do with PHP also,without using any function, or using some if-else combination. </p>
<p>So are... | php javascript | [2, 3] |
4,864,917 | 4,864,918 | How to pass the value of a textbox in a datagrid to javascript | <p>I have a textbox inside my datagrid whose id need to be passed to javascript.The id of my datagrid is Datagrid1 and that of textbox is txtItem.All these are inside a contentplaceholder.Now i have passed the id of textbox as ct100_ContentPlaceholder1_Datagrid1_txtItem.It shows an error in my javascript as "Object ref... | asp.net javascript | [9, 3] |
5,589,834 | 5,589,835 | jquery function inside a long process | <p>I have jquery script:</p>
<pre><code>$("#theid").fadeTo(1000,0.01).getxmo().fadeTo(1000,1);
function getxmo(){
$('#output').append('okay!');
}
</code></pre>
<p>It is not running the function part...</p>
<p>What's the correct syntax to run a function in this way please!</p>
| javascript jquery | [3, 5] |
2,786,138 | 2,786,139 | How do I synchronize the scroll position of two divs? | <p>I want to have 2 divs sized to a particular width (i.e. 500px). One above the other aligned horizontally.</p>
<p>The top box should hide its scroll bar, the bottom should show a scroll bar and when the user scrolls I'd like the offset of the top box to change to the value of the bottom box. So that when the bottom ... | javascript jquery | [3, 5] |
385,991 | 385,992 | get data from page that a url points to | <p>Given a Url, I'd like to be able to capture the Title of the page this url points to, as well
as other info - eg a snippet of text from the first paragraph on a page? - maybe even an image from the page.</p>
<p>Digg.com does this nicely when you submit a url.</p>
<p>How could something like this be done in .Net c#... | c# asp.net | [0, 9] |
295,705 | 295,706 | C# and ASP - Setting a command argument, then command argument disappearing | <p>I'm trying to use a gridviewcommand to delete an entry in the gridview (as well as from the datacontext), but I want to ask the user to confirm or not first. I have a seperate linkbutton to execute the delete code using the ID of the item in the row that the user clicked the delete button in. </p>
<p>When the user ... | c# asp.net | [0, 9] |
923,212 | 923,213 | jquery - Remove class from parent in list | <p>I need a Javascript <code>IF</code> statement that detects if: </p>
<pre><code>$('.ms-quickLaunch .menu ul.static li a .menu-item-text') == "Manage"
</code></pre>
<p>And if it does equal "Manage" then set the list to <code>.show().</code></p>
<pre><code><ul class="root static">
<li class="static link... | javascript jquery | [3, 5] |
4,535,155 | 4,535,156 | reset user password | <p>I have a server which has machines...</p>
<p>I have an administrator and multiple users... these are all windows users and not present in the databse.</p>
<p>How do i reset the user password.... i log in using the administrator and provide the username that needs to be reset..</p>
<p>I tried </p>
<pre><code> str... | c# asp.net | [0, 9] |
2,070,851 | 2,070,852 | Violation of PRIMARY KEY constraint in Sql Server | <p>I have created a database with columns as first name lastname ,Id , date if arrival and todays date. and all are data type of nchar(); I have ID as a primary key now in the web page i have entered vales and clicked on submit but is getting a error as </p>
<p>Violation of PRIMARY KEY constraint : Cannot insert dupl... | c# asp.net | [0, 9] |
1,543,986 | 1,543,987 | better way for mapping classes to views using Adapters | <p>I have a set of classes in my android application, all of them are deserialized from <code>JSON</code> (gson or jackson are not used). All these classes are mapped to some views.</p>
<p>For example I have a list of items and some of fields of class are should be present in this list item.</p>
<p>As soon as I have ... | java android | [1, 4] |
2,395,006 | 2,395,007 | How can I tell if iPhone is returning from background in javascript? | <p>I know that the iPhone stops javascript from running when an app is sent to the background (ie pressing the home button while the app is running), but I would like to be able to detect if this has happened when the javascript starts up again when the app is reactivated.</p>
<p>One solution I've been trying is to ha... | javascript iphone | [3, 8] |
2,521,722 | 2,521,723 | Jquery Validation? | <p>Hi there i am looping some fields with php. </p>
<pre><code>$number = 5;
for ($i = 1; $i <= $number ; $i++) {
name : <input name="name[]" type="text" class="required" title="Name Surname Please"/>
}
</code></pre>
<p>Am using jquery validation to control the fields,</p>
<pre><code>$("#form").validate({
... | php jquery | [2, 5] |
4,152,054 | 4,152,055 | Jquery Cropping image | <p>I am trying to use this <a href="http://odyniec.net/projects/imgareaselect/examples.html" rel="nofollow">http://odyniec.net/projects/imgareaselect/examples.html</a> Jquery Cropping example to get the dimension from jquery and send it to my java, so the java file does the cropping for me or i just do it here on the ... | javascript jquery | [3, 5] |
5,334,350 | 5,334,351 | jQuery closing pop-up after successful form submit | <p>I have a pop up form that i wish to close on successfull submit of the form. Currently we are only validating on the server side which will create an unordered list of validation errors with the class .error_message.</p>
<p>Once the form has been successfully submitted i want to close the window.</p>
<p>Currently... | javascript jquery | [3, 5] |
3,586,766 | 3,586,767 | ASP.net best way to change links | <p>Given:</p>
<pre><code><div class="subMenu">
<a href="products.aspx" class="subLink">Products</a> <a href="productCats.aspx" class="subLink">Categories</a> <a href="example.aspx" class="subLink">Another</a>
</div>
</code></pre>
<p>In my code behind, how would I p... | c# asp.net | [0, 9] |
3,141,519 | 3,141,520 | how to upload live images without saving | <p>I have a live URL I want to download images without saving it. I also want to upload an image to another live URL. I want to code this using thread or socket programing.
How do I save image file from one server to another server without saving it to local?</p>
| c# asp.net | [0, 9] |
1,897,862 | 1,897,863 | I need help developing a form | <p>I'm trying to create a form that will create a table of pricing for t-shirts. </p>
<p>There are 10 shirts to choose from and each one is a different price. The S through XL are the same price but the XXL is a different price. </p>
<p>Next there is a selection for the color of the garment which also varys the price... | php javascript | [2, 3] |
5,167,404 | 5,167,405 | Javascript cookie expiration/deletion on different browsing scenarios | <p>A client requested cookie functionality where if the browser is not closed, the cookie has a 30 minute expiration, but then it needs to be removed if/when a user closes the browser.</p>
<p>Here's how I was going to do it: </p>
<pre><code>delCookie = function() {
document.cookie = 'cookieName=;expiration=Thu, ... | javascript jquery | [3, 5] |
2,847,348 | 2,847,349 | JQuery sum all data in specific table row | <p>I have a table with inputs in each cell, except one (.total) which specifies the total of each table row. When one of the inputs are changed I would like the sum to change for that row. Below is far as I have been able to get.
<strong>The HTML:</strong></p>
<pre><code><table>
<tr>
<td>&l... | javascript jquery | [3, 5] |
1,434,808 | 1,434,809 | Prevent postback in update panel depending on JS confirm box | <p>I got an update panel which contains a gridview and inside each row images (delete icons) to delete that row. I'm trying to condition that given an answer on a regular JavaScript confirm pop up. </p>
<pre><code>$(function(){
$("img.delete").on("click", function(evt){
return false; //Does not work
... | javascript jquery asp.net | [3, 5, 9] |
3,122,902 | 3,122,903 | Converting Image-Based PDF to Text-Based PDF | <p>how to convert Image-Based PDF to Text-Based PDF. There are lot of tools available for using. But iam looking for a C# code to make an application. I heard about Tessara but i not get code for C#. it is available only c/c++. </p>
<p>I used MODI dll to convert Image to Text. The process is Converting Each page of PD... | c# asp.net | [0, 9] |
2,150,912 | 2,150,913 | Frameless modal popup | <p>How to make a frameless modal popup using javascript</p>
| javascript jquery | [3, 5] |
643,524 | 643,525 | jQuery image/window resize--max resize constraint | <p>I currently have a page where I have fixed-size divs that load pages as a user scrolls down (similar to Infinite Scroll) and am currently working on functionality to have the loaded images and containers dynamically resize along with the browser window. My current issue is that I'm currently using <code>$(window).wi... | javascript jquery | [3, 5] |
3,948,238 | 3,948,239 | Not showing the images in live server which is showing in my local host | <p>I am working on the Mailbox Module in VS2010 with C#</p>
<p>I have made a control with ascx page and in that page I have created Three different gridviews for Inbox,SentItems and Deleted Items.</p>
<p>In all the three gridviews I have added two columns for the Images for Reply and Forward messages which is shown w... | c# asp.net | [0, 9] |
1,054,344 | 1,054,345 | jQuery - remove function attached to div | <p>I'm <a href="http://stackoverflow.com/questions/3286736/jquery-cycle-plugin-pause-resume-weird-behavior">running into a problem with jQuery</a>, so I think I've figured out a workaround, but need help.</p>
<p>I currently attach a cycle() slideshow to my div like this:</p>
<pre><code>function startSlideshow() {
... | javascript jquery | [3, 5] |
1,418,795 | 1,418,796 | Object cannot be cast from DBNull to other types | <p>I am trying to save the gridview data into the database. To decide if it should be an Insert or update, i need to find out if the <code>Order_SelectionID</code> exists. Foreach Gridview row, i am trying to use the statement like the following in C# using Asp.Net.</p>
<pre><code>foreach (GridViewRow row in grdFavori... | c# asp.net | [0, 9] |
4,225,387 | 4,225,388 | scheduling files for upload | <p>I want to schedule the files for upload. Files are residing in companies network(on intranet)</p>
<p>I use "FileUpload" to browse the files on screen which are scheduled for upload. But the FileUpload does not give the full path of the file. So what is the way to workaround this limitation.</p>
<p>Thanks,
Harish</... | c# asp.net | [0, 9] |
3,879,863 | 3,879,864 | Is there any way to keep information safe in an Android apk? | <p>AFAIK Android decompilation allows one to extract every bit of information from an apk.
How can I store information like ftp passwords or other confidential strings in Java or any other XML file? Is there any way other than calling a service?</p>
<p>EDIT Problem:</p>
<pre><code>String uname = "mks";
String par... | java android | [1, 4] |
837,106 | 837,107 | Speed of Java vs. JS / HTML / CSS for web applications | <p>I am creating a web application. I have primarily used Javascript specifically jQuery. Because of some very specific functionality, I am running into practical limitations of Javascript--they're not hard limitations but stuff that I would find easy in Java, like making an equation editor where you can edit directl... | java javascript | [1, 3] |
1,984 | 1,985 | How to remove part of user entered values and append new values to an input box | <p>I have a search box and a suggestion box to show the suggestions.</p>
<p>Once users type something in the search box, the suggestions will appear then user is able to select one of the suggestions to be added to the search input box. After that user will be able to type other terms to receive the suggestions and so... | javascript jquery | [3, 5] |
2,002,105 | 2,002,106 | Rotated Text via Canvas Rotation off angle | <p>I am creating a graph for which I need an axis title for the y axis.</p>
<p>The problem is I need it at -90 degress to the horizontal.</p>
<p>Here is how I rotate the text at the moment.</p>
<pre><code> paint.setTypeface(Typeface.SANS_SERIF);
canvas.save();
canvas.rotate(-90,15,viewHeight/2+20);
ca... | java android | [1, 4] |
439,674 | 439,675 | Why does a textbox lose its disabled attribute on postback but not its value attribute? | <p>This is my program</p>
<pre><code><script src="Scripts/jquery-1.6.4.js" type="text/javascript" language="javascript"></script>
<script type="text/javascript" language="javascript">
function one() {
$(document).ready(function () {
$('#<%= textbox.ClientID %>').attr('disab... | jquery asp.net | [5, 9] |
765,020 | 765,021 | asp changepassword control customization | <p>Is there a way to customize the textboxes in an ASP changepassword control?</p>
<pre><code><asp:ChangePassword id="myChangePassword" newpasswordregularexpressionerrormessage="Error: Your password must be at least 5 characters long, and contain at least one number and one special character."
runat="server" OnCh... | c# asp.net | [0, 9] |
608,177 | 608,178 | Reorder parts of String separated by specified character to reverse order | <p>I am having a String <code>Australia@2@India@30@UK@4@USA@43</code>
I need to reverse such as <code>USA@43@UK@4@India@30@Australia@2</code></p>
<p>This is just a sample string, in reality the String is having atleast 20@ symbols.</p>
<p>I have tried <code>new StringBuilder(newString).reverse().toString();</code>... | java android | [1, 4] |
6,022,054 | 6,022,055 | How do I delegate some javascript (rendering the page) to have higher importance then other javascript (fetching data) | <p>Right now my mobile web app on startup goes and talks to a few apis when it is lunched. These are intertwined with the javascript that renders the page.</p>
<p>When they fire at the same time page rendering gets all choppy, possibly because the rendering is using hardware acceleration, or maybe it's just normal on ... | javascript jquery | [3, 5] |
1,742,750 | 1,742,751 | Quick way to create array from another array's variables? | <p>Lets say I have 2 arrays:</p>
<pre><code>var a = [];
var b = [];
a.push({id:1, name:"Joe"});
a.push({id:2, name:"Jeff"});
a.push({id:3, name:"John"});
</code></pre>
<p>Is there a quick way to populate <code>b</code> with just <code>a</code>'s names in Javascript, or do I have to use a loop?</p>
<p>E.g, something... | javascript jquery | [3, 5] |
3,983,375 | 3,983,376 | accepting value from either of text boxes | <p>I have two asp.net textboxes and need to put a validate function in javascript or jquery to validate either one or the other should accept a value. Both can not be left blank. And it should make visible the error label if both text boxes are empty.</p>
| javascript jquery asp.net | [3, 5, 9] |
3,322,728 | 3,322,729 | 1 page javascript techniques, is it possible to create an iframe and dump data in it? | <p>When creating a single page type website that is purely ajax driven, do people create iframes, and then dump javascript objects that contain cached data?</p>
<p>This way if you reload your main page, you can still access cached data?</p>
| javascript jquery | [3, 5] |
6,016,187 | 6,016,188 | How to format Data grid View on ASP.NET? | <p>I am now working on Datagrid View on my sample n-tier.
How can i control it that it will not show all records on my query that maximize if i run my webpage.Or Control it size so it will retain its position like on the design.</p>
<p>Like on win forms that it will show scroll bars etch..</p>
<p>Can you give me any... | c# asp.net | [0, 9] |
4,028,720 | 4,028,721 | how to test my web application on server | <p>i have to test what is happening in the code on the server:</p>
<pre><code>if (impersonateValidUser(userName, domain, password))
{
}
else
{
}
</code></pre>
<p>like where is the code going after checking the condition</p>
<p>Should i use a messagebox or some other return ... | c# asp.net | [0, 9] |
2,424,613 | 2,424,614 | How to load kml file into google map? | <p>I have a kml file. I need to load this kml file into my site, which is finally shown as a Google Map using C# or Javascript. And I have this .kml file in my project's root directory.</p>
| c# asp.net | [0, 9] |
4,104 | 4,105 | Chained select boxes not working | <p>I have three select boxes state,city and locality with the id's same as name</p>
<pre><code>$(document).ready(function() {
$("#state").on('change',function(){
var state = $("#state").attr('value');
$("#city").load('http://localhost/trial/index.php/new/view_cities/'+state).change();
}).change... | javascript jquery | [3, 5] |
2,855,404 | 2,855,405 | Why DeviceId is require when checking for license | <p>I've read many pages of documentation of android licensing but I'm still confuse. Why does it need unique device id when it checks with primary account logged into the device ?</p>
<p>and if it needs for something, what if that unique id changes somehow ? Will it still allow same user ? if yes, then whats the point... | java android | [1, 4] |
4,714,256 | 4,714,257 | How To Add Url To Google by code | <p>i want add a url via code in google that must be added at this <a href="http://www.google.com/addurl/?continue=/addurl" rel="nofollow">page</a>. any help?</p>
| c# asp.net | [0, 9] |
3,968,218 | 3,968,219 | Randomize Next Page | <p>I have an application that has a question on each page. Currently I have a button where OnClick points to the function below, but I would like it to choose a random page. I have 10 .aspx pages. How can I do this?</p>
<pre><code>protected void newWindow(object sender, EventArgs e)
{
Response.Redirect(... | c# asp.net | [0, 9] |
1,815,666 | 1,815,667 | From UserControl to parent master page | <p>hi i have a weird scenario but this was how it was designed before me. Basically I have userControl, and there is a child.masterpage</p>
<p>in the userControl in the ascx file it contains the following</p>
<pre><code><div><%=_template%></div>
</code></pre>
<p>the child.masterpage inherits from a... | c# asp.net | [0, 9] |
808,353 | 808,354 | Using google spreadsheet api :how to insert entry in a spreadsheet | <p>I am using google spreadsheet api to insert a entry (atom entry) in a spreadsheet.My approach as following : </p>
<pre><code> function InsertRow()
{
var service = new google.gdata.client.GoogleService('drutas');
var entryObject = new google.gdata.atom.Entry();
var contentTextObjec... | javascript jquery | [3, 5] |
4,973,004 | 4,973,005 | 'undefined' function when triggering a click of a link with jQuery | <p>For some reason this works in FF 11, Chrome, and even in IE but not in FF 3.6 or Safari 5.</p>
<p>Basically I'm triggering the click of a link with:</p>
<pre><code>var $currentItem = $('#' + currentId);
var modalSeriesList = $('.js-modal-series');
var index = modalSeriesList.index($currentItem);
var $nextItem = mo... | javascript jquery | [3, 5] |
703,580 | 703,581 | help with converting javascript function to php | <p>My javascript isnt so great, but i found a brilliant looking function <a href="http://stackoverflow.com/questions/2270910/how-to-convert-sequence-of-numbers-in-an-array-to-range-of-numbers/2270987#2270987">here</a></p>
<p>I'm not sure what to do with this bit:</p>
<pre><code>var ranges = [], rstart, rend;
</code><... | php javascript | [2, 3] |
1,520,538 | 1,520,539 | Create a Calendar that displays one year from today(Asp.Net) | <p>I would like to create a calendar that displays a year from today(everyday) and allows the user to select the multiple dates.</p>
<p>I tried to use the asp:calendar without any success</p>
<p>I am developing in C# .NET</p>
<p>any suggestion</p>
| c# asp.net | [0, 9] |
1,857,768 | 1,857,769 | how to format [decimal?] when it's null? | <p>in my class partData the FW_Step attribute isfrom the type double?</p>
<p>when i try to format it like that</p>
<pre><code>partData.FW_Step.Value.ToString("F3")
</code></pre>
<p>it's fail when the value is null</p>
<p>how can i use the format when the value is null?</p>
| c# asp.net | [0, 9] |
2,946,587 | 2,946,588 | Extract specific js fragment from source | <p>I am using ajax to get page source (successfully). Inside that source, there is a specific script inside SCRIPT tags, and inside it there is a definition of some data I need to get (var vName = [{...}]). The data is an array, a rather big one, and the variable name is fixed.</p>
<p>What would be the way to get this... | javascript jquery | [3, 5] |
5,429,355 | 5,429,356 | add up widths of elements until a ceiling is meet | <p>I have a header text changes length. I also have a set of logos that have a static length.</p>
<p><b>The problem:</b> When the header (text) gets too long or short the logos either do not use the space effectively or the logos end up going to another line.</p>
<p><b>Solution in Simple Terms</b> I want a script tha... | javascript jquery | [3, 5] |
5,627,975 | 5,627,976 | Set up HTTPPOST android? | <p>I want to set up httppost to my server.
For now I have address for emulator, but now I want to test app online.
Here is the code:</p>
<pre><code>HttpClient httpClient = new DefaultHttpClient();
HttpPost httpPost = new HttpPost("http://10.0.2.2/posloviPodaci/index.php");
</code></pre>
<p>How to set up address for m... | java android | [1, 4] |
1,305,117 | 1,305,118 | How to make this code compatible with IE7? | <p>This code works in all browsers except for older IE versions. It'll be accessed by users, some of whom are still using IE7. I'm not a coder and the author isn't available until next week so I'm at loss how to refactor it so that all browsers show only the options defined in <code>chk</code>.</p>
<pre><code> for ... | javascript jquery | [3, 5] |
3,809,360 | 3,809,361 | how to determine how many jQuery objects are on a page? | <p>Can I determine the number of jQuery objects on a page? </p>
<p>I want to use the number of elements as a sort of weak benchmark for page complexity. I'm thinking that if I can reduce the number of elements that jQuery knows about , the page might run more efficiently. </p>
<p>Does this make sense? </p>
<p>Is i... | javascript jquery | [3, 5] |
5,774,171 | 5,774,172 | jquery to apply css style | <p>I have a table whose td values are displayed as</p>
<pre><code><table>
<tr>
<td><?=$something?></td>
<td><?=$something?></td>
<td><?=$something?></td>
<td><?=$something?></td>
</tr>
<tr>
<td><?=$somethingelse?&g... | php jquery | [2, 5] |
3,229,446 | 3,229,447 | Why won't function output into this jQuery selector? | <p>I'm hoping this is something silly I've done. I got a function unigref near the bottom, which (I believe) outputs a string. However, when I call the function to build a jQuery selector, I can't get it to work properly. I know that everything else works because when I use a static string the radio button is selected.... | javascript jquery | [3, 5] |
5,404,304 | 5,404,305 | How do I write 'if not clicked' or 'if clicked outside element', using Jquery? | <p>I'm kind of stuck on a problem of how to stop my menu from executing the fadeOut() function. When I click the main links on my menu to open the submenu it just fades out. Here is how the code looks at the moment:</p>
<pre><code> $('a.main-menu-item').click(function(){
if($('.rtmenu:visible')){
$('.... | javascript jquery | [3, 5] |
3,817,911 | 3,817,912 | How to reload document by resizing? | <p>Why this code doesn't work:</p>
<pre><code>$(window).resize(function() {
document.location.reload();
});
</code></pre>
| javascript jquery | [3, 5] |
3,621,971 | 3,621,972 | access dropdown control from the master page to the content page using asp.net | <p>i have a master page and the content pages in the master page i have the textbox and dropdown
the value in the dropdown may vary according to the content pages</p>
<p>e.g for one content page the dropdown may contain</p>
<p>branchname,
city,
address</p>
<p>and let for other content page under same master p... | c# asp.net | [0, 9] |
5,745,104 | 5,745,105 | Problem in opening doc/docx/excel files in browser(Asp.net, C#) | <p>I am storing some files like PDF,Doc, Docx, xls etc. in the file system.</p>
<p>Now I have to show those files on the browser for the users to view.</p>
<p>So basically a link button is there in a datagrid, upon clicking on which the user will be able to view.</p>
<p>So far my code goes like this</p>
<pre><code>... | c# asp.net | [0, 9] |
1,802,576 | 1,802,577 | load file depending on browser size | <p>Just a quik question about the right syntax. I want to load the jquery file only if the browser screen is < 1100px. </p>
<pre><code><script type="text/javascript">
$(document).ready(function() {
if ($(window).width() < 1100) {
//load file
}
});
</script>
</code></pre>
<p>I want to ... | javascript jquery | [3, 5] |
663,106 | 663,107 | Android spinner "onclicklistener" question | <p>I am working with Spinner, cursors and adapters.</p>
<p>I want to setup a click listener for the spinner so that once a user selects an item from the spinner it gets the current selected item and then carrys out some other tasks ( all this extra code is fine, its just 1 problem I am having).... It kind of works, ho... | java android | [1, 4] |
581,076 | 581,077 | PHP won't echo out or execute JavaScript | <p>I need PHP to open up a new window with a text from a variable.</p>
<p>Here's what I tried.</p>
<pre><code> echo "<script>
$myWin=window.open('','$myWin','menubar,scrollbars,left=30px,top=40px,height=800px,width=800px');
$myWin.document.write(".$logtext.");
</script>";
</code></pre>
<p>bu... | php javascript | [2, 3] |
4,995,725 | 4,995,726 | fill ListBox according to input control value in onKeyUp function | <p>I've a ListBox control </p>
<pre><code> <asp:ListBox ID="ListBox1" runat="server">
<asp:ListItem Value="1" Text="XYZ" />
<asp:ListItem Value="0" Text="XYZD" />
<asp:ListItem Value="-1" Text="D" />
</asp:L... | javascript jquery asp.net | [3, 5, 9] |
5,667,339 | 5,667,340 | Toggle Checkbox | <p>I have 4 checkboxes and I wish to toggle them (checked or unchecked) and they should all be the same what ever state they are in. I have this so far:</p>
<pre><code>var toggle_click = false;
function check_them(element){
if(toggle_click){
$('#'+element+'_1').attr('checked', true);
$('#'+elemen... | javascript jquery | [3, 5] |
3,483,904 | 3,483,905 | security digit program | <p>I need the code for this problem:</p>
<p>All the non-zero digits in the number are multiplied by each other. All the non-zero digits of the resulting number are again multiplied by each other - and so on until a single digit is left. That is the security digit.</p>
<p>Write a program that will provide the security... | java javascript | [1, 3] |
289,635 | 289,636 | Script becomes unresponsive crashing firefox | <p>Why does this script cause an error on submit in firefox?
It is using jquery.</p>
<pre><code>$(document).ready(function(e) {
$('#errorMessage').hide();
$('#form').submit(function() {
var firstname = $('#formFirstname').val();
if(firstname == '') {
$('#errorMessage').html('Pleas... | javascript jquery | [3, 5] |
1,970,492 | 1,970,493 | Adding element at top of div | <p>I'd like to add an element to a container div before existing elements. I have attempted to this three different ways and couldn't</p>
<p>Method 1</p>
<p><code>$('.channel:first',$('#scroll_5')).before(print_nav);</code></p>
<p>Method 2</p>
<p><code>$('.channel:eq(0)',$('#scroll_5')).before(print_nav);</code></p... | javascript jquery | [3, 5] |
2,718,090 | 2,718,091 | Having trouble scraping an ASP .NET web page | <p>I am trying to scrape an ASP.NET website but am having trouble getting the results from a post. I have the following python code and am using httplib2 and BeautifulSoup:</p>
<pre><code>conn = Http()
# do a get first to retrieve important values
page = conn.request(u"http://somepage.com/Search.aspx", "GET")
#event_... | asp.net python | [9, 7] |
4,746,969 | 4,746,970 | jQuery - get first paragraph | <p>I have the following code</p>
<pre><code><div class="side-box">
<h1>Main Title</h1>
<h2>Secondary Title</h2>
<p>
This is paragraph 1<br><br>
This is paragraph 1<br><br>
This is paragraph 3<br><br>
</div>... | javascript jquery | [3, 5] |
4,712,364 | 4,712,365 | How can I center a background image on a web page for different screen resolutions using JavaScript? | <p>I want to determine the screen resolution of the client machine and the set the background image in the center using JavaScript.</p>
<p>I have come so far:</p>
<pre><code>function centerBackGroundImage()
{
var browserWidth = document.documentElement.clientWidth;
var browserHeight = document.documentElement... | javascript jquery | [3, 5] |
3,961,620 | 3,961,621 | get cookie value in the textbox using jquery or javascript | <p>I want to see cookie value in the textbox.</p>
<p>I have used this </p>
<pre><code>document.getElementsByName('Custom_Field_Custom2')[0].Value=$.cookie('artname',{ path:'/'});
</code></pre>
<p>but that cookies value is not displaying in the textbox.</p>
<p>What I need to do?</p>
| javascript jquery | [3, 5] |
755,435 | 755,436 | java from command line over and over | <p>i have a PHP application that invokes a command line to execute some specific operations.</p>
<p>The command line calls a 'java -jar somefile.jar arg1 arg2'</p>
<p>The problem is that this is slow, since it has to startup the jar every time it get's invoked.</p>
<p>Is there any way keep the java machine code in c... | php java | [2, 1] |
2,616,101 | 2,616,102 | Loading local files via jQuery | <p>Spent 3 hours reading reference, but still no effect, so asking here.</p>
<p>OS: Windows 7 (is it relevant?)<br>
Browser: Opera 11.51<br>
jQuery: 1.6.2</p>
<hr>
<p>Two files on a local machine, <strong>main.html</strong> and <strong>menu.html</strong> in the same folder.</p>
<p>main.html:</p>
<pre><code... | javascript jquery | [3, 5] |
915,708 | 915,709 | How to find all the id's associated with a particular class | <p>Using jquery how is it possible finding out all the id's associated with a given class?</p>
<p>Any help??</p>
| javascript jquery | [3, 5] |
5,939,260 | 5,939,261 | Adding multiple boxes in one page and saving the info from each box | <p>I have this task - to make a simple CMS where one of the abilities should be to create a page and add as many boxes as the admin would like and then to have the ability to edit each one of them using ckeditor, and ofcourse the page should be visible in the frontend.</p>
<p>For now I'm just using CodeIgniter trying ... | php javascript | [2, 3] |
1,942,617 | 1,942,618 | Alert when browser window closed accidentally | <p>I have a chat application, I want that whenever user accidentally or manually closes the browser ,he should get an alert so that various clean up operations could be carried out. I have more thing i itried to use on before event but I want that to be used for a particular web page as all other web pages are also cal... | javascript jquery | [3, 5] |
3,291,519 | 3,291,520 | list picker asp.net | <p>I have list picker asp.net one is assigned techs and unassigned techs my problem I need to remove the duplicate's name form unassigned I need a way to delete mike from list box b</p>
<pre><code>list box A
Mike
list box B
Mike
Adam
TOm
</code></pre>
| c# asp.net | [0, 9] |
2,145,053 | 2,145,054 | View for Team List | <p>I have a bit of a 'what is it' question.</p>
<p>Currently, I am trying to create a page that will create teams, and allow the user to select the member for those teams.</p>
<p>So far, dynamically render ListBoxes (amount based on teams selected) to the page, then the user selects a member, and adds them to the tea... | c# asp.net | [0, 9] |
816,969 | 816,970 | how to add a row to a table with asp.net controls dynamically using javascript | <p>Now, if i click a button Add Row, I want the entire row tr1 to get added to the table as it is...</p>
<pre><code> <table >
<tr id="tr1" runat="server">
<td>
<asp:TextBox ID="TextBox1" runat="server" Text="Name"></asp:TextBox>
</td>
<td>
... | javascript asp.net | [3, 9] |
5,826,782 | 5,826,783 | How to separately recognize the data sent over to php? | <p>I am sending two data to my php from my javascript:
<a href="http://forum.research.bell-labs.com/zeeshan/publication/phpwithmysql11111.php?rowid=BL09.00001,0" rel="nofollow">http://forum.research.bell-labs.com/zeeshan/publication/phpwithmysql11111.php?rowid=BL09.00001,0</a></p>
<p>1) BL09.00001
2) 0</p>
<p>How do ... | php javascript | [2, 3] |
3,986,245 | 3,986,246 | append in word document using c# | <pre><code>//Text to word file
StringBuilder strBuilder = newStringBuilder();
strBuilder.Append("<h1 title='Header' align='Center'>Writing To Word Using ASP.NET</h1> ".ToString());
strBuilder.Append("<br>".ToString());
strBuilder.Append("<table align='Center'>".ToString());
strBuilder.Append("&l... | c# asp.net | [0, 9] |
4,737,245 | 4,737,246 | Managing LinkButton with Javascript? | <p>I have a <code>LinkButton</code> called "Exit Chat" on the view.I embed <code>javascript</code> code into <code>OnClientClink=javascript:confirm('Are you sure you want to end the session?')</code>.However,I can't manage dialog box</p>
<p>When user click the OK button,view should be terminated.How can I do this?</p>... | javascript asp.net | [3, 9] |
1,683,447 | 1,683,448 | How can I get the current username - USING MY CODE BELOW IN ASP.NET | <p>How can I get the current username of whoever made changes on a table? A button?</p>
<pre><code>private string GetCurrentUserName()
{
return Utilities.CurrentUsername();
}
</code></pre>
<p>UTILITIES:</p>
<pre><code> public static string CurrentUsername()
{
string[] data = HttpCont... | c# asp.net | [0, 9] |
1,185,267 | 1,185,268 | Binding a function to two events results in function executing twice | <p>I am binding an accordion tab to open on click and focus. But whenever I click, it executes the function twice. how do i stop this behavior?
I only want it to execute a single event. either click or focus. </p>
<pre><code>$("h2.radioBoxInActive").bind('click focus', function () {
input = $(this).prev("span... | javascript jquery | [3, 5] |
1,326,614 | 1,326,615 | How do i trigger a lightbox when certain text is selected using jQuery? | <p>Ok so i have this </p>
<pre><code><select class="something">
<option value=''>
Select a Project
</option>
---
</option>
<option value="/projects/2">test</option>
<option value="/projects/3">test2</option>
<option value="/projects/4">test7<... | javascript jquery | [3, 5] |
352,768 | 352,769 | JS plugin to detect user's browser, OS, language, geolocation...? | <p>I could have sworn that I saw this on Hacker News a few weeks ago: a simple JS plugin that gives you access to every common bit of information about your user - their OS, browser, language setting, etc.</p>
<p>I'm pretty sure it was a commercial product that was then immediately copied and open-sourced by someone o... | javascript jquery | [3, 5] |
3,554,284 | 3,554,285 | issue with insertBefore() | <p>I got a small object which has to append new rows to a table.. It works fine in most cases, but if there is a table inside some of the rows (in the "root" table) the object doesn't append to the proper table!?</p>
<p>I have been doing a bit of debugging and found the line where it all goes wrong.. If DEBUG is set a... | javascript jquery | [3, 5] |
3,894,245 | 3,894,246 | Adding space BETWEEN cells in TableCell() | <p>My code is below. I want to add space between cells in tableCell()
something the equivalent of </p>
<pre><code><td></td>&nbsp;&nbsp;<td></td>
</code></pre>
<p>I am NOT looking for cellpadding or cellspacing because they both add space between the left cell border and the left table ... | c# asp.net | [0, 9] |
3,315,786 | 3,315,787 | How to prevent an Android application from being installed more than three times? | <p>I have got a suggestion to restrict an Android application to be installed a limited number of times, let's suppose three times for a given user account. I have already inserted a form at the start of the application which checks for username and password from our database, and returns whether its valid or not. </p>... | java android | [1, 4] |
2,526,696 | 2,526,697 | Where to store password in runtime? | <p>My asp.net web application is reading and decrypting the password from a XML file in App_start event of Global.asax. But where should I store this password afterwards ? Would it be enough just store it in a static public variable or rather the application object ?</p>
<p>EDIT: Its a Database password</p>
| c# asp.net | [0, 9] |
4,718,008 | 4,718,009 | GridView x BaseAdapter and reload in onItemClick | <p>Following the <a href="http://developer.android.com/resources/tutorials/views/hello-gridview.html" rel="nofollow">example of GridView</a> how I could run a new query of images in the event onItemClick?
I could make a casting of my BaseAdapter in that event ?</p>
| java android | [1, 4] |
2,696,264 | 2,696,265 | how to keep goods'info in invoice form? | <p>I use three tables to save invoices:</p>
<ol>
<li>Invoice</li>
<li>InvoiceDetail</li>
<li>TempInvoiceDetail</li>
</ol>
<p>when user add goods i add goods in TempInvoiceDetail.</p>
<p>then user select all goods and click on "Save Invoice".</p>
<p>i add one row in Invoice then move all row from TempInvoiceDetail t... | c# asp.net | [0, 9] |
3,053,994 | 3,053,995 | How do I stretch a background image to fill the window and get it to animate? | <p>For a project I'm working on I need to stretch a background image to fill the browser window <em>and</em> be able to have them transition via sliding eg. Say you're on the home page, I'd want the user to be able to click on a navigation link for 'About', and then have the background image slide into a different imag... | javascript jquery | [3, 5] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.