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,796,488
4,796,489
How to center text
<p>So I am writing a program which includes a main menu, and for the main menu I use the following code snip, My question is how can I get the items that it makes appear to be centered rather than left align.</p> <pre><code>setListAdapter(new ArrayAdapter&lt;String&gt;(MainMenu.this, android.R.layout.simple_list_item_...
java android
[1, 4]
5,295,928
5,295,929
upload image using httpmultipart android takes too loong
<p>Attaching my code to upload image to server. It takes more than a minute to upload and get the response. Whats the problem in this code?</p> <pre><code> private void sendImage(final String language, final String filePath) throws ClientProtocolException, IOException { final HttpClient httpclient = new Default...
java android
[1, 4]
2,096,525
2,096,526
Beginning python for the web
<p>I'm looking for a nice tutorial or framework for developing Python written web applications.</p> <p>I've done lots in PHP, but very little in Python or Ruby and figured I'd start with the first one alphabetically. </p>
php python
[2, 7]
98,232
98,233
jquery datepicker onselect not working
<p>jquery function:</p> <pre><code>$(function() { $("#iDate").datepicker({ dateFormat: 'dd MM yy', beforeShowDay: unavailable onSelect: function (dateText, inst) { $('#frmDate').submit(); } }); }); </code></pre> <p>html:</p> <pre><code> &lt;form id="frmDate" m...
javascript jquery
[3, 5]
5,340,722
5,340,723
save js files as php
<p>Let's say I've to include the following line with my website header:</p> <pre><code>&lt;script type="text/javascript" language="javascript" src="file.js"&gt;&lt;/script&gt; </code></pre> <p>Now anyone easily can visit <code>my--web--site/file.js</code> and view its source. So, I wonder if there any idea I can rena...
php javascript
[2, 3]
4,741,383
4,741,384
How to get the id of a button that fired a function?
<p>I have a button</p> <pre><code> &lt;button onclick="DeletaItem('template','1234')" id="btn"&gt;Deletar_func&lt;/button&gt; </code></pre> <p>And the function</p> <pre><code> function DeletaItem(tipo,id_cripto){ alert(tipo+id_cripto); alert($(this).attr('id')); } </code></pre> <p>Why the secon...
javascript jquery
[3, 5]
1,601,471
1,601,472
how to store data in specific format? in WYSWYG?
<p>I am using WYSIWYG window 4 taking input from user, so he can enter font Bold, Italic etc. How to store such data, so that when I display on some other page, same font styles and formats comes back??</p>
c# javascript jquery asp.net
[0, 3, 5, 9]
1,095,911
1,095,912
what does jQuery(function) do
<p>I am reading <code>javascript</code> web application and the author is using following code:</p> <pre><code>mod.load = function(func){ $($.proxy(func, this)); }; </code></pre> <p>Can someone help me to understand why returning function from <code>jQuery.proxy</code> is inside <code>jQuery</code> wrapper. </p> ...
javascript jquery
[3, 5]
1,357,995
1,357,996
Javascript async loop inside another async loop
<p>I have some code in jQuery that iterate through children in div using each(). Every text inside is splitted into words. Each word is processed with 'for' loop. This function can take a long time and can freeze the browser so...</p> <p>Is there a way to create asynchronous loop inside another asynchronous loop but o...
javascript jquery
[3, 5]
2,652,648
2,652,649
Cannot make a static reference to the non-static method
<p>I'm trying to insert string value from R.string resource xml file and i'm getting error message.</p> <p>here is the Java code:</p> <pre><code> public static final String TTT = (String) getText(R.string.TTT); </code></pre> <p>This is the error message:</p> <pre><code>Cannot make a static reference to the non-...
java android
[1, 4]
2,647,865
2,647,866
is(":focus") always returning true
<p>I've asked <a href="http://stackoverflow.com/questions/12841350/raise-different-events-if-a-textbox-is-focused-or-not">this question</a> because of something I need to and I'm having some problems with jQuery. So I'm opening this question 'cause others may have this too.</p> <p>In the answer posted in my other ques...
javascript jquery
[3, 5]
3,057,096
3,057,097
How to fix ‘Path Manipulation’ issue from Fortify scan report for tthe following code sample
<p>I have path Manipulation problem. The following code is placed in Page_load method of ASPx page.</p> <pre><code>String rName = Request.QueryString["reportName"]; string path = "C:\\hari" + rName; if (File.Exists(path)) { File.Delete(path); } </code></pre> <p>But Fortify scan report for the above sample code sh...
c# asp.net
[0, 9]
2,886,932
2,886,933
How do incoporate some javascript within php to pass data?
<p>I am trying incorporate some javascript within the php below to pass a variable to the next page (checkout.php). It worked initially, but now I am having trouble executing this properly. Any tips?</p> <pre><code> echo '&lt;div class = "row"&gt;&lt;div class = "span 4 offset6"&gt;&lt;select style="width: ...
php javascript
[2, 3]
235,927
235,928
animate callback function not firing - using queue : false
<p>Im having trouble getting my animate complete function to fire when i add <pre>{duration : 2000, queue : false}</pre></p> <p>Example:</p> <pre><code>current.animate({left: "-=600px"}, {duration : 2500, queue : false}); next.animate({left: "-=600px"}, {duration : 2500, queue : false}, function(){ // Run stuff her...
javascript jquery
[3, 5]
4,610,563
4,610,564
Combat system in JQuery
<p>i would like to create a pretty simple combat system in JQuery, for a browser game. The idea is that i have combat statistics ( i already have that ), and i want to represent them back to the user in a nice graphical manner.</p> <p>If you have played the game shakes and fidget, you can already see what i'm asking. ...
javascript jquery
[3, 5]
4,691,891
4,691,892
Getting specific objects from a selected list
<p>I think I'll have to hit myself in the head after that.</p> <p>Let's say I have html like this:</p> <pre><code>&lt;div class="some-class"&gt;&lt;/div&gt; &lt;span class="some-class"&gt;&lt;/span&gt; </code></pre> <p>Somewhere I select items like this:</p> <pre><code>var items = $(".some-class"); </code></pre> <...
javascript jquery
[3, 5]
554,113
554,114
Can any one tell me the issue of this function .. this function isn't working
<pre><code>$(window).unload(function() { var c = confirm("Are You want to open Foortal.pk"); if (c) { window.location.replace("http://www.google.com") return true; } else { return false; } });​ </code></pre> <p>i don't know about problem</p>
javascript jquery
[3, 5]
3,406,692
3,406,693
How to get a list of broken images with Javascript?
<p>In the console I have 180 failed to load resources, I need to get a list of these resources so that I can send a report to the webmaster with the images URLs. How can this be done?</p>
javascript jquery
[3, 5]
644,709
644,710
Secret Class: FragmentManagerImpl?
<p>I have the android source code and i am looking through the classes one strange thing is i cant find any api or source code for this class :FragmentManagerImpl the only reference i found was in the Activity class source which is:</p> <pre><code> final FragmentManagerImpl mFragments = new FragmentManagerI...
java android
[1, 4]
4,098,378
4,098,379
Look-up mac book specs with PHP
<p>I plan on building an application/site that will give you information based on a your Apple product serial number, specifically Macs. There's plenty of sites that do this but I'm not sure how... Some examples are... </p> <p><a href="http://www.powerbookmedic.com/identify-mac-serial.php" rel="nofollow">http://www.po...
php javascript
[2, 3]
2,656,685
2,656,686
Do the benefits of Resin/Quercus outweigh the overhead?
<p>Lately, I've been looking more and more into Resin + Quercus as a technology to develop an application of mine.</p> <p>The reason I started looking into it was that this application has high reporting needs, a lot of which cannot (or realistically, should not) be created in real-time. Java would offer a nice backe...
java php
[1, 2]
3,227,655
3,227,656
Contents of the file is empty when stop button is clicked
<p>My problem is that the file is empty after clicking stop button but only when the time changes e.g. when i click start button at 16:49:39 and then stop button at 16:49:57 then the file is empty. But when I click stop button 16:50:01 then the file saves with data.Please tell my why this happens ? And how to solve th...
java android
[1, 4]
176,463
176,464
5 buttons accessing same startup script
<p>I have a scenario in which 5 buttons else two or more same controls need to access the same startupscript (ASP.NET). Is it possible?? If so give me a details code snippet. Thanks in advance. </p>
javascript asp.net
[3, 9]
5,994,450
5,994,451
Binding multiple events in jQuery
<p>I have a custom jQuery plugin which binds a <code>change</code> event to a form element, in this case some <code>input</code> elements. The <code>change</code> event is used to indicate to some other components that a change has taken place.</p> <p>This works as it should.</p> <p>However, I've come across the need...
javascript jquery
[3, 5]
1,029,372
1,029,373
jquery do something after animation
<p>I have following code that is executed when doing a mouseenter on a div :</p> <pre><code>$('.expandable').mouseenter(function () { $(this).find('.links').css('visibility', 'hidden'); $(this).find('.links').show('fast', function () { $(this).find('.links').css('visibility', 'visible'); alert...
javascript jquery
[3, 5]
5,525,908
5,525,909
JavaScript won't work unless I use alert()!
<p>I run into this issue from time to time and I don't know how to solve it. Here's my code that fails:</p> <pre><code>function on_lightbox_open() { system.contextBrowserInit(); updateUrl(year + '/' + month + '/' + id); ads.reload(); system.analytics.reload(); FB.XFBML.parse($('#bottom_flap .fb_...
javascript jquery
[3, 5]
3,445,800
3,445,801
Run Java code in Javascript?
<p>Is it possible to run Java code in Javascript? Say I had a textbox and when you click the continue it will run the Java function inside the textbox and return results. It doesn't necessarily have to "run" the Java code, if that would be easier. I'm not asking for someone to do all the work for me, but is there any s...
java javascript
[1, 3]
2,584,737
2,584,738
JQuery hover problem
<p>Im using jquery hover method to call a function as follows</p> <pre><code>$(&lt;some_element&gt;).hover(function(){animate("next",true);},function(){}); </code></pre> <p>But,the animate function is called only when the mouse enters the element. I want it to keep getting called as long as the mouse is over the elem...
javascript jquery
[3, 5]
5,159,886
5,159,887
how to run js on every childpage?
<p>i am trying to run my javascript on every child page, masterpagecode:</p> <pre><code>&lt;%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Site1.master.cs" Inherits="WindowonUnload.Site1" %&gt; &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-trans...
javascript asp.net
[3, 9]
2,754,455
2,754,456
How to save image from another website programmatically?
<p>How to save image from another website programmatically? Using asp.net c# for example I wouldlike to create request on google to search something for example beer and from search result save images using asp.net web application</p>
c# asp.net
[0, 9]
1,681,083
1,681,084
convert decimal to string without removing 0 "zero(s)"?
<pre><code>nStr = 12.00; alert(typeof(nStr));// getting number x = nStr.split('.'); // Other than string Split function Through an error, nStr = 12.00; nStr += ''; alert(typeof(nStr));// getting string x = nStr.split('.'); x1 = x[0]; x2 = x.length &gt; 1 ? '.' + x[1] : ''; alert(x1+x...
javascript jquery
[3, 5]
379,688
379,689
Android - Same buttons accross multiple layouts
<p>I'm writing my first android app and having some trouble. I have 4 layouts, each with their own xml file and the same 4 buttons at the top of each screen. The 4 buttons should simply switch between the 4 layouts, but I can't get it to work. When the app laucnhes, I can click on any 1 button and it works, but I ca...
java android
[1, 4]
1,324,408
1,324,409
jQuery .ready() bug?
<p>I'm developing a JS functions to handle it in <code>$(document).ready(...)</code>. These functions are in file "a.js".</p> <p>In function "example(TAG_ID)" I call:</p> <pre><code>console.log( $('#anything').children().length ) </code></pre> <p>OK. When I include in Application Main Javascrip file: <code>$(documen...
javascript jquery
[3, 5]
3,876,179
3,876,180
ASP.NET - Setting CssClass of a CheckBox
<p>The following code</p> <pre><code>((CheckBox)e.Row.FindControl("exportCb")).CssClass = "enabledExport"; </code></pre> <p>Creates html</p> <pre><code>&lt;span class="enabledExport"&gt;&lt;input id="_ctl0_ContentPlaceHolder1_gridviewName__ctl2_exportCb" type="checkbox" name="_ctl0:ContentPlaceHolder1:gridviewName:_...
jquery asp.net
[5, 9]
1,524,145
1,524,146
Adding +1 to jQuery value of a readonly text input field
<p>I am using a function where I have a <code>readonly</code> text <code>input</code>, and when I execute the function I want the number value + 1. So let's say I have 60, when I execute the function, the number returned should be 61. </p> <p>But instead it's coming out 601, which is just adding the number 1 to the st...
javascript jquery
[3, 5]
1,967,875
1,967,876
Bring the browser to the front of all window/application in php or javascript
<p>I am developing a page in php and javascript and I need to be able to notify the user if they didn't submit the page within 10 minutes, for this to work I need to bring the browser in front of all other applications running on the machine. </p> <p>Is there any possibility that this can be done?</p>
php javascript jquery
[2, 3, 5]
1,765,854
1,765,855
Are Java and C# as "customizable" as Python?
<p>At the time of asking, I am using Python most of the time, and I have not used Java or C# much, although I have a (basic) idea of how they work. I am thinking to possibly start to use Java or C# more, but it seems from the little I know about them that they aren't as "customizable" as Python, but I may be wrong.</p>...
c# java python
[0, 1, 7]
1,509,348
1,509,349
IE8 Call javascript function from variable
<p>I am using below code to call function.</p> <pre><code> window['GetTeenovationvideo'](); </code></pre> <p>This function is executing in all browser but not in IE8.</p> <p>In IE8 i am getting below error.</p> <blockquote> <p>Object doesn't support property or method 'GetTeenovationvideo'</p> </blockquote> <p>A...
javascript jquery
[3, 5]
1,117,673
1,117,674
How to create div tag rotation like polyvore.com
<p>Example Link: <a href="http://www.polyvore.com/cgi/app" rel="nofollow">http://www.polyvore.com/cgi/app</a></p>
javascript jquery
[3, 5]
4,836,181
4,836,182
Open page only if I click it
<p>I want to prevent some subpages ( with games ) from my website to be opened in multiple tabs per browser. I want just 1 subpage to be opened per browser. I am using PHP as server side language, and the games are in SWF format.</p> <p>The user goes to the game listings, and then clicks a game icon, and a popup opens...
php javascript jquery
[2, 3, 5]
2,855,380
2,855,381
extending jquery issue
<p>I was reading this source code and there seems to be error. can anybody say what is happening</p> <pre><code>var JX = { extend: function(bc, sc, o) { var f = function() {}; f.prototype = sc.prototype; bc.prototype = new f(); bc.prototype.constructor = bc; bc.superclass = ...
javascript jquery
[3, 5]
564,896
564,897
Size of my Spinner too big
<p>My huge spinner: <a href="http://i.stack.imgur.com/zNxdX.jpg" rel="nofollow">http://i.stack.imgur.com/zNxdX.jpg</a></p> <p>As you can see in the picture, my spinner is way too huge. I can't seem to find the problem. Here is the code:</p> <pre><code> RelativeLayout.LayoutParams lpSpinner = new RelativeLayout.Lay...
java android
[1, 4]
2,477,921
2,477,922
using this in json-styled javascript
<p>Recently, I'm coding javascript with little knowledge of it.</p> <p>And here's my first javascript code which written this morning.</p> <pre><code>$(window).load(function(){ SubMenuHandler.init(); }); var SubMenuHandler = { init : function() { $("#statisticManager, #deviceManager, #policyManager")...
javascript jquery
[3, 5]
1,561,523
1,561,524
Get the suffix of a dynamically selected id within a hover method
<p>I have the following JQuery selector with a hover method attached to it:</p> <pre><code>$("a[id^='foo']").hover( function () { $(this).css("color", "#eeeeee"); }, function () { $(this).css("color", "#ffffff"); } ); </code></pre> <p>However, I want to alter a td decoration underneath the links wit...
javascript jquery
[3, 5]
4,109,489
4,109,490
call onload from separate file
<p>I have a file header.php which is being used by all other files. This file has body onload function. But this function is only being used by one other file called test.php. How can i call this function from test.php by using jQuery or php. </p> <pre><code>&lt;body onLoad="setCountDown();"&gt; </code></pre>
php jquery
[2, 5]
1,780,067
1,780,068
Gridview with C# adding rows
<p>I want to add a row to my gridview. i succeeded in adding text boxes, but i cannot extract the value It keeps telling me that object reference not set to an instance of an object. At this line it halts</p> <pre><code>string acc = Convert.ToString(((TextBox)GridView1.FooterRow.FindControl("accountID")).Text); </cod...
c# asp.net
[0, 9]
3,478,551
3,478,552
Is there a way to do function overloading in Javascript?
<p>I have code that looks like this:</p> <pre><code>function getTopicOptions(accountID, showTitles, showSelectGroup) { "use strict"; var accountID = store.getItem('AccountID'); showTitles = (showTitles !== 'undefined') ? showTitles : 'Y'; showSelectGroup = (showSelectGroup !== 'undefined') ? showSel...
javascript jquery
[3, 5]
5,891,033
5,891,034
jQuery attr command
<p>I want to add a value to the onchange event, but the JS code has errors</p> <pre><code>$(args).attr('onChange', 'setTimeout('__doPostBack(\'ctl00$cpBody$txtDate\',\'\')', 0)'); </code></pre> <p>anyone see error?</p>
javascript jquery
[3, 5]
1,800,504
1,800,505
How do I catch the return value of javascript function run by asp.net.cs?
<pre><code>// JavaScript function PageID() { if (PageUrl != null) return PageUrl; else return ""; } </code></pre> <p>How to run these functions by asp.net.cs how to return the value of the catch?</p> <hr> <pre><code>sv = ClientScript.GetPostBackEventReference string (this, "pageid ();"); </c...
c# javascript asp.net
[0, 3, 9]
315,504
315,505
How does one close an overlay by clicking outside of the overlay?
<p>I have a jquery drop down that activates and deactivates when you click the header for the drop down</p> <pre><code>$j('#category_header').click(function() { $j('#category_dropdown').slideToggle("fast"); return false; }); </code></pre> <p>but I want it to also close when I click anywhere on the page that i...
javascript jquery
[3, 5]
5,391,015
5,391,016
Do operations on both input and select in one jquery line
<p>I have this working code</p> <pre><code>$('input[name='+ string[1] +']').css({'background':input_accept_icon}); </code></pre> <p>As you can see input with some name get's some new css.</p> <p>Now I want to place both input and select elements in the same line.</p> <p>I am trying this and other things but it's no...
javascript jquery
[3, 5]
2,106,369
2,106,370
ArrayList creation: (some object) cannot be stored in an array of type java.lang.Object[]
<p>Usually, the code block works perfect. On very rare occasions though, the "new ArrayList" throws an Exeption <strong>my.namespace.CacheEntry cannot be stored in an array of type java.lang.Object[]</strong>.</p> <p>Checking Google, someone else seemed to get this exception on an Acer A500 with 3.1 (which is the devi...
java android
[1, 4]
4,553,592
4,553,593
Edit the value of an <input> element by jQuery
<p>I want to fill an element with data using jQuery.</p> <p>Unfortunately, the element stays blank. Until now, i used a workaround and used a textarea instead of input (which is working for some reason).</p> <p>I did not only try</p> <pre><code>$('#input').val("Text") ; </code></pre> <p>but also</p> <pre><code>$(...
php jquery
[2, 5]
2,224,367
2,224,368
Android - recognizer results null... need to put them into cursor ()
<p>I need the results from recognizer in my cursor statement below:</p> <pre><code> if (requestCode == check &amp;&amp; resultCode == RESULT_OK){ ArrayList&lt;String&gt; results = data.getStringArrayListExtra(RecognizerIntent.EXTRA_RESULTS); lv.setAdapter(new ArrayAdapter&lt;String&gt;(this, android.R...
java android
[1, 4]
3,750,232
3,750,233
Moving from asp.net to php
<p>I am an asp.net web developer. Recently I have recieved a job offer to write a website in php (I'll be upgrading an already written code).</p> <p>I wanted to know, how much time will it take me to learn the langauge? How different is it from asp.net? Do people usually go from asp.net to php, or is that the other wa...
php asp.net
[2, 9]
3,151,293
3,151,294
jQuery not returning true or false
<p>so I do this:</p> <pre><code>function loginFunc(userNameOrEmail, passWord){ var emailOrUserNameV = encodeURIComponent(userNameOrEmail); var passWordV = encodeURIComponent(passWord); $.getJSON("http://mysite.com/pullData/login.php?callback=?", { emailOrUserName: ...
javascript jquery
[3, 5]
774,069
774,070
How to solve System.OutOfMemoryException in C#?
<p>My code is</p> <pre><code> private byte[] Invoke(Stream inputFileStream, CryptoAction action) { var msData = new MemoryStream(); CryptoStream cs = null; try { long inputFileLength = inputFileStream.Length; var byteBuffer = new byte[4096]; ...
c# asp.net
[0, 9]
329,371
329,372
Jquery ready() vs simple function call before </body>
<p>If I'm calling my JS scripts just before the closing body tag, is there a difference between using jQuery ready function like <code>$(myfunc());</code> vs just using simply <code>myfunc();</code> ?</p>
javascript jquery
[3, 5]
2,649,050
2,649,051
Virtual keyboard behave as physical keyboard when text field value is overflowed but focus remains
<p>Appologize me if this question have already been asked or if there are other references for this problem. I was Googling for long time but still could not find solution. Still sorry if my heading/ question is confusing. Let me explain the problem first.</p> <p>I have input fields in which I used a jQuery keyboard p...
javascript jquery
[3, 5]
1,961,227
1,961,228
Inconsistent jQuery function when resizing elements on page load
<p>Ahoy! I've built a little script to check the size of the left-hand margin on page load, resize a div there to fill it, and change the header div to float next to it.</p> <p>Here's the code:</p> <pre><code>function buildHeader() { var containerMarginLeft = $(".container_16:not(:first)").css("margin-lef...
javascript jquery
[3, 5]
4,788,376
4,788,377
Why does my event handler cause an "is not a function" error, but works from the Firebug console?
<p>Using JQuery 1.2.6, testing from Firefox 3 and IE7. I have a very basic bit of JavaScript to reload a captcha image. In my JS file, I have:</p> <pre><code>var Captcha = { count: 0, Refresh: function(){ // Concatenate "count" to force a URL change, which forces the browser to reload the image ...
javascript jquery
[3, 5]
52,052
52,053
jQuery get DOM element as string
<p>Say I have</p> <pre><code>$(":input[type=text]:first") </code></pre> <p>How do I get</p> <pre><code>&lt;input type="text" value="" size="28" maxlength="140" tabindex="1" placeholder="search" class="textbox" name="q" autocomplete="off"&gt; </code></pre> <p>Assuming I run this on SO?</p> <p><strong>Update</strong...
javascript jquery
[3, 5]
4,245,350
4,245,351
How to get the installed application name in a list
<p>I have tried this:</p> <pre><code>final Intent mainIntent = new Intent(Intent.ACTION_MAIN, null); mainIntent.addCategory(Intent.CATEGORY_LAUNCHER); final List pkgAppsList = context.getPackageManager().queryIntentActivities( mainIntent, 0); </code></pre> <p>this code gives me the list of the installed app's package...
java android
[1, 4]
479,625
479,626
calling javascript function from code behind under some condition
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/2521352/calling-asp-net-code-behind-function-from-javascript">Calling ASP.NET Code Behind function from Javascript</a><br> <a href="http://stackoverflow.com/questions/8102946/using-javascript-function-to-be-called...
c# javascript asp.net
[0, 3, 9]
2,665,379
2,665,380
Android Improve SQLite Performance Optimise
<p>I have an onCreate that currently opens an sqlite database and reads off 4 values. I then have a conditional and depending on what activity has sent it there it either displays those values or updates two values and then displays the other.</p> <p>Now if I run this activity without updating the database it is light...
java android
[1, 4]
2,791,252
2,791,253
Opening a select box using js in Android web browser
<p>I have a standard <code>&lt;select&gt;</code> and would like to open it when a user clicks on another element. It's pretty simple in a regular browser and even on the iphone, but for some reason nothing working on Android.</p> <p>I've tried the click and focus events, and also tried changing the size attribute of t...
javascript jquery android
[3, 5, 4]
5,543,595
5,543,596
Share business logic in asp.net (c#) and android (java)
<p>I'm working on a project that has a website (asp.net c#) and android app (java) that share some common functionality. Currently when they need to use the same business logic the android makes a call to the website and gets the results. We've had a request for the android to work "offline", so it would need to perf...
java android asp.net
[1, 4, 9]
5,271,568
5,271,569
Logic for prioritising elements in the dom using JS
<p>I have made this fiddle: <a href="http://jsfiddle.net/GMH6q/2/" rel="nofollow">http://jsfiddle.net/GMH6q/2/</a></p> <p>HTML:</p> <pre><code>&lt;div class="feature" id="about"&gt;about&lt;/div&gt; &lt;div class="feature" id="services"&gt;services&lt;/div&gt; &lt;div class="feature" id="products"&gt;products&lt;/div...
javascript jquery
[3, 5]
2,129,972
2,129,973
Multiple selection in Dropdown list
<p>I am wondering that if an <strong>ASP DropDownList</strong> Control support Multiple Selection or not? If Yes, then how can i enabled multiple selection in DropDownList ???</p>
c# asp.net
[0, 9]
3,937,321
3,937,322
javascript catch comet socket disconnect
<p>So I have implemented comet sockets on my server, and am able to push data to the browser fine. But what I would like to do is catch in javascript/jquery when the comet server drops out. </p> <p>I have my iframe:</p> <pre><code>&lt;div id="iframeDiv" style="visibility:hidden; height:0px"&gt; &lt;iframe id="com...
javascript jquery
[3, 5]
5,075,066
5,075,067
why jquery load() method doesn't require a webserver to work properly?
<p>why jquery load() method doesn't require a webserver to work properly , although ajax requires a web server .!!? isn't load a wrapper to simplify ajax activities?</p> <p>thanks :)</p> <p><strong>edit:</strong> it's now clear , thank you</p>
javascript jquery
[3, 5]
1,181,762
1,181,763
KCfinder: How to allow public folder
<p>I'm using KCfinder with CKeditor all works good, I have sessions enabled to allow uploading into a users private folder, but how can I show the public folders to the user as well. </p> <p>Here is my session code that I use. </p> <pre><code>&lt;?php $_SESSION['KCFINDER'] = array(); $_SESSION['KCFINDER']['disab...
php javascript
[2, 3]
5,021,434
5,021,435
How can I find the current time as a long in C#?
<p>I have this Java code, and I want to do the same thing in C#:</p> <pre><code>long now =System.currentTimeMillis()/1000; </code></pre>
c# java
[0, 1]
1,696,685
1,696,686
How to define ChekBoxes in Java?
<p>I face a problem in defining the <code>CheckBox</code> in Java because I dont want to define it in a XML layout file.</p> <p>I get the count of a <code>HashTable</code>. I want to display CheckBoxes according to the number of that HashTable count.</p> <p>Here is the code</p> <pre><code>public class SHO extends Ac...
java android
[1, 4]
3,449,149
3,449,150
Need to position div element outside document area not working
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/4531489/position-element-through-css">Position element through css</a> </p> </blockquote> <p>Im have a problem with css positioning</p> <pre><code>jQuery(this).css({"left": (jQuery(document).css("left") - jQuer...
javascript jquery
[3, 5]
5,498,228
5,498,229
Starting Activities from List in Android
<p>I am writing an app and I have run into a problem. The first activity has a list with many options, each list object consists of a picture and some text. The goal is a user picks a list option and it opens a new activity. I have a Array List with instances of a class that contains the image, text, and name of activi...
java android
[1, 4]
145,643
145,644
Threading won't work on Godaddy
<p>Hey guys, I'm sure this doesn't only apply to godaddy, but it may help illuminate the issue. The issue is that I need my webpage to run a thread in the background, and everything works fine when I do it in my local IIS, but when I upload it to godaddy's servers it simply doesn't work.</p> <p>The code:</p> <pre><co...
c# asp.net
[0, 9]
1,220,783
1,220,784
jquery AJAX sent data in key value pair
<p>In my aspx page, i have the js like this :-</p> <pre><code> &lt;script language="javascript" type="text/javascript"&gt; $("#btnLoad").click(function () { var dataForAjax = "{'datakey':'hello'}" $.ajax({ type: "POST", url: "Ajax__Demo.aspx/SendFile", data:...
c# jquery
[0, 5]
1,654,735
1,654,736
how to dynamically create elements in a child window from a parent window
<p>im trying to dynamically create elements in the child window based on the values i have in the the parent window but no success.The child window is opening but not with the elements.Here is the code i've written,could some one please have a loot at it ? is this possible at all using javascript/jquery></p> <pre><co...
javascript jquery
[3, 5]
2,958,561
2,958,562
How can I use a variable as a jQuery option value?
<p>I currently have jQuery code that looks like this:</p> <pre><code>if ($.url.param("s") == "error") { $.gritter.add({ title: 'Error!', text: $.url.param('message') }); } </code></pre> <p>I'm checking to see if the request variable s exists in the url (ie. <a href="http://example.com/?s=error...
javascript jquery
[3, 5]
558,061
558,062
How to run plain old java application on Android
<p>I want to run a Java application on Android. It does not have a user interface and embeds Jetty as a servlet containr. It implements a web application that is normally accessed online by its users but I need to run this offline on Android tablets.</p> <p>Is this at all possible? All I have been able to find is info...
java android
[1, 4]
5,882,999
5,883,000
How do i make a div animate diagonally?
<p>I am relatively proficient in html and css, but am not with javascript and jquery. I am trying to get a div to move diagonally, however its not working.<br> Here is my code:</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;meta charset="utf-8"&gt; &lt;link href="style.css" rel="stylesheet"/&gt; &lt;script type="text/j...
javascript jquery
[3, 5]
3,352,070
3,352,071
detect an undefined item in jQuery
<p>How do you detect an undefined item in jQuery in an 'if statement' I have tried something like below without any success so far.</p> <pre><code> success: function(data){ if(typeof data.DATA[0].RECIPIENTID = 'undefined'){ // do nothing } else { //else get value c...
javascript jquery
[3, 5]
3,785,382
3,785,383
Variable Scope outside jQuery function
<p>Hello I am trying to identify the height of a but I am not able to get it outside the function. here is my code</p> <pre><code>jQuery.noConflict(); (function($) { $(function() { $tmp_cont = $('&lt;div&gt;&lt;/div&gt;'); $tmp_cont.html($content); ...
javascript jquery
[3, 5]
5,645,356
5,645,357
Can you update a label with javascript?
<p>I have a javascript function that I am trying to get to update a label. If I replace the label with a textbox it works fine, but with the label nothing happens!</p> <p><strong>An example of a label:</strong> </p> <pre><code>&lt;label id="163" name="163"&gt;Some text.&lt;/label&gt; </code></pre> <p><strong>javascr...
javascript jquery
[3, 5]
2,672,426
2,672,427
How to open image href on a aspx page
<p>When the thumbnail is clicked I would like the full size image to open on http//example.com/image.aspx instead of http//example.com/images/image.jpeg without creating an individual page for each image and editing each href. I know that this is possible with php but I was wondering if there was some way of doing it w...
php javascript jquery asp.net
[2, 3, 5, 9]
3,266,376
3,266,377
What are closures in javascript and jquery
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/1801957/what-exactly-does-closure-refer-to-in-javascript">What exactly does &ldquo;closure&rdquo; refer to in JavaScript?</a> </p> </blockquote> <p>Can someone help me understand js closures ? i have no idea of ...
javascript jquery
[3, 5]
1,154,420
1,154,421
Javascript YouTube API - Loading Player
<p>I have a list of YouTube videos on my website and this is what each list item looks like:</p> <pre><code>&lt;div class="video_item" id="&lt;YouTubeVideoID&gt;"&gt; // video thumbnail and information &lt;/div&gt; </code></pre> <p>If a user clicks on one of these video items, a panel drops down and SHOULD load ...
javascript jquery
[3, 5]
5,797,138
5,797,139
How to get nested control's ClientID using JavaScript?
<p>Today I got an interview question as titled.</p> <p>For example, a Update Panel contains a Panel, the Panel contains a TextBox. </p> <p>How can I get the TextBox ClientID?</p> <p>The only I could think of that is:</p> <ol> <li><p>We can predict the TextBox ClientID depends on the ClientID mode and use getElemen...
javascript asp.net
[3, 9]
5,162,194
5,162,195
Send request to server side on the text using asp.net
<p>I want to send request on server side <code>onFocus</code> event but my method is not calling, really confused, tried jquery ajax for that but all failed is there any other possible way to send request on server side using asp.net textbox onFocus event?</p> <p>asp.net website project is created for work.</p> <p>Aj...
javascript jquery asp.net
[3, 5, 9]
4,741,790
4,741,791
How to clear an activity from the second activity going back to home screen in android?
<p>example scenario is: from login screen - main screen - then when i clicked a hide button the app will go to home screen, and when im going to click the app again the main screen would be called </p>
java android
[1, 4]
3,968,227
3,968,228
How to check if tags contain only a specific character in jquery
<p>I am able to check if an input contains a specific character. But I want to know if that input text contains multiple of that character.</p> <p>For example,</p> <p>When I have only "," in a textbox, I am able to process the words before it, but I have to check if the whole textbox contains multiple comma's. For ex...
javascript jquery
[3, 5]
1,527,409
1,527,410
how to bind data to listview in web
<p>I am having Table <code>Tbl_purchase</code>.I want to show items in <code>Tbl_purchase</code> to <code>List view</code> control in my website .</p> <p>First i tried to fill tha listview with <code>datasource</code> property through coding.I filled the datatable with data from <code>Tbl_purchase</code> and then my c...
c# asp.net
[0, 9]
4,606,264
4,606,265
How to keep a Bitmap in memory
<p>Following up on <a href="http://stackoverflow.com/questions/8814455/storing-a-bitmap-resource-in-a-static-variable">Storing a Bitmap resource in a static variable</a>, it seems that storing a static reference to an <code>android.graphics.Bitmap</code> in a <code>View</code> may leak a reference to that first <code>V...
java android
[1, 4]
5,247,635
5,247,636
How does ASP.NET compare to PHP?
<p>It seems to me that everyone on the Internet is talking about PHP/ROR/Python, but <em>few</em> care to mention ASP.NET. Ironically, here in China, <em>most</em> books concerning web development on the shelf in the bookstores are about ASP.NET. I just want to know what is "wrong" with ASP.NET on these web forums. I a...
php asp.net
[2, 9]
411,078
411,079
Stopping a media player
<p>I am implementing a media player on android phone.<br> This player starts based on some conditions, but I am unable to stop it (back button pressing doesn't work). Once the streamer who is sending the data stops, player stops too and crashes. </p> <p>I want to stop the media player whenever I want by pressing the B...
java android
[1, 4]
3,221,682
3,221,683
Why does jQuery's animation extension "jQuery Color" 's closure function take an undefined value as it's second parameter?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/4650442/javascript-function-with-undefined-parameter">JavaScript function with ‘undefined’ parameter</a> </p> </blockquote> <p>I'm looking the jQuery Color source code here</p> <p><a href="http://code.jquery.co...
javascript jquery
[3, 5]
4,498,114
4,498,115
JQUERY .show() function in ASP.NET
<p>I'm using JQuery 1.5.2.</p> <p>Whilst using the .show function, it only shows the element partly, for like 0.3 seconds, and then the element hides itself again. This is consistent, with all other forms. What am I doing wrong?</p> <pre><code>&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt; &lt;head runat="server"&...
jquery asp.net
[5, 9]
4,544,057
4,544,058
how to stop playing a screencast.com video embedded in a site through javascript
<p>I have added a screencast video to my website.Now i want to stop the video when i click on a button.I tried some javascript code onclick event over the button.</p> <p>var myVideoPlayer = document.getElementById("playerId"); //gets video player<br> myVideoPlayer.sendEvent("STOP");</p> <p>But It didn't worked.</p>...
javascript jquery
[3, 5]
1,748,651
1,748,652
Display mulitple data fields in BoundField of Gridview
<p>I have an <code>asp:GridView</code> which is bound. Within this I have multiple columns, I'm trying to get the data from two database fields concatenated into one field.</p> <p>Does anyone know how to do this?</p> <p>Something like this?</p> <pre><code>asp:BoundField DataField="field1 + ' ' + field2" HeaderText="...
c# asp.net
[0, 9]