Unnamed: 0
int64
302
6.03M
Id
int64
303
6.03M
Title
stringlengths
12
149
input
stringlengths
25
3.08k
output
stringclasses
181 values
Tag_Number
stringclasses
181 values
2,967,442
2,967,443
How can I use a dropdown select box to trigger this javascript instead of onClick?
<p>I currently have this JS at the bottom of a page that enables a user to sort elements with the class "grid-product-box" by various attributes the element is tagged with.</p> <p>Works great but at the top of my page I have buttons for "Sort by price (low-high)", "Sort by name" etc which have IDs (#pricelh, #productn...
javascript jquery
[3, 5]
2,044,039
2,044,040
binding in Repeater control with restricted records and ohter data on background process from database
<p>I have repeater control under the marquee tag. I want to bind only 10 record first from database and other data on background process so user can not fill that data is loading and my page also get load fast.</p> <p>As marquee pass 10 records then next 10 records is loaded and so on. Is it possible to do so ? </p>
c# asp.net
[0, 9]
357,826
357,827
jQuery click() event; how to prevent this event on right mouse btn click?
<pre><code>&lt;img src="" width="200" height="200" id="test_img" /&gt; &lt;script&gt; $("#test_img").click(function() { alert("Hello"); }); &lt;/script&gt; </code></pre> <p>But it doesn't matter what mouse button I'm pressing - right or left. I see absolutely the same result. I want alert to be shown only on lef...
javascript jquery
[3, 5]
4,276,212
4,276,213
cookie produced based on select list
<p>Ok so I have this jsFiddle I have worked on to produce a slide down effect on a div based on the select. I need to produce a cookie when the selection is made so when the page is reloaded, the div remains open. Not sure how to produce this effect in the code. Any help is really appreciated!</p> <p>Heres the link...
javascript jquery
[3, 5]
1,891,218
1,891,219
Android activity inner class - change reference to parent
<p>I have an inner class inside an activity.</p> <p>In the onSaveInstanceState method I save an instance of the inner class in the bundle as a serializable object. When the activity resumes, the object gets restored.</p> <p>In the inner class uses some of the outer class methods, findViewById for example. The problem...
java android
[1, 4]
4,560,328
4,560,329
How to create a div with jQuery accordion
<p>Im using this: </p> <pre><code>&lt;script&gt; $(function() { $( "#accordion" ).accordion(); }); &lt;/script&gt; </code></pre> <p>To get the effect of expand/collapse. (If you know a better plugin or method, pls notice me)</p> <p>I have this div: <code>&lt;div id ="accordion"&gt;&lt;/div&gt;</code...
javascript jquery
[3, 5]
4,784,323
4,784,324
Unexpected resume of com.android.launcher while already resumed in
<p>In my application when I do something (for example switch between activities or grab items of listview) application is closing. There is no crashes and exceptions. In logcat appears only this warning:</p> <blockquote> <p>11-22 18:08:00.604: W/UsageStats(86): Unexpected resume of com.android.launcher while already...
java android
[1, 4]
3,717,023
3,717,024
Sorting column with check boxes. Doesn't work. I am stuck
<p>I would like that the Signed button in this JSfiddle sorts the column with the check boxes, like it actually does perfectly.</p> <p><a href="http://jsfiddle.net/littlesandra88/DSRmg/" rel="nofollow">http://jsfiddle.net/littlesandra88/DSRmg/</a></p> <p>I noticed that <code>tinySort</code>, the library used to sort ...
javascript jquery
[3, 5]
4,959,108
4,959,109
Why use .on() for adding event instead of directly adding event?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/8601482/jquery-on-vs-click-methods">jquery on vs click methods</a> </p> </blockquote> <p>From API:</p> <p>.on() : Attach an event handler function for one or more events to the selected elements.</p> <p>Exampl...
javascript jquery
[3, 5]
686,108
686,109
onerror=string . $varible - fails
<p>Why it fails? It works when onerror=is not a varible but just a hadrtyped string.</p> <pre><code>&lt;?php $error = "onerror='this.src = \'http://userlogos.org/files/logos/pek/stackoverflow2.png\'';"; for ($i = 1; $i &lt;= 10; $i++) { echo "&lt;img src='http://services.runescape.com/m=itemdb_rs/3716_obj_sprite.g...
php javascript
[2, 3]
3,224,075
3,224,076
Accessing JS data from PHP
<p>A remote site is supplying a data structure in a js file.</p> <p>I can include this file in my page to access the data and display it in my page.</p> <pre><code>&lt;head&gt; &lt;script type="text/javascript" src="http://www.example.co.uk/includes/js/data.js"&gt;&lt;/script&gt; &lt;/head&gt; </code></pre> <p>D...
php javascript
[2, 3]
4,286,310
4,286,311
assign data from table with different id to labels using c#
<p>Hy all.I want to assign data from a table to some labels.For example: If I have 3 records with ID=1,ID=2 and ID=3 I want this records to be assigned to 3 different labels.so label1=data with ID=1, label2=data with ID=2 and so on.How can I achieve that?</p>
c# asp.net
[0, 9]
3,115,357
3,115,358
Syntax higlight in codemirror
<p>I have:</p> <pre><code>&lt;script type="text/javascript"&gt; $(function() { var id = '&lt;%=txtEditor.ClientID%&gt;'; var editor = CodeMirror.fromTextArea(document.getElementById(id), { mode: "application/xml", lineNumbers: true, buttons : ['undo','redo'], ...
jquery asp.net
[5, 9]
4,952,677
4,952,678
android: how to cleanup application when it is killed
<p>I'm working on an android application, my application turns on some HW on the phone. I want to close the HW in case anyone kills my application. how can i "catch" the kill command/event/signal and do a cleanup before application exit?</p> <hr> <p>Some update what I found. You can't protect your application from be...
java android
[1, 4]
2,913,423
2,913,424
Javascript window.open Calling Twice
<p>I'm using this code in a php conditional if/else statement to open a new window.</p> <pre><code>echo("&lt;script type=\"text/javascript\"&gt; &lt;!-- window.open(\"http://www.example.com/index.php?$var\"); //--&gt; &lt;/script&gt; "); </code></pre> <p>It's opening 2 windows instead of one, but only on my live site...
php javascript
[2, 3]
2,464,630
2,464,631
How to check for the presence of an element?
<p>I'm using the <code>.length</code> method in a conditional statement that polls the page for the presence of an externally-loaded object (I can't style it with jQuery until it exists):</p> <blockquote> <pre><code>function hackyFunction() { if($('#someObject').length&lt;1) { setTimeout(hackyFunction,50) } else...
javascript jquery
[3, 5]
621,048
621,049
posting a parameter to a jquery dialog box
<p>i have a small problem well i'm using a jquery dialog box, and i want to post a parameter to this dialog box</p> <p>this is how i'm using it :</p> <pre><code>$(document).ready(function() { $("#dialogShare").dialog({ resizable: true, width:400, mod...
php jquery
[2, 5]
4,638,225
4,638,226
Is there a way to designate some HTML content as not managed by jQuery?
<p>In <a href="http://stackoverflow.com/questions/2923987/">another question</a>, I asked why it takes so long to remove HTML content from a page with jQuery. </p> <p>Apparently when removing HTML content from an element, jQuery has to march through each element and do... <em>something</em>.. I don't know exactly wha...
javascript jquery
[3, 5]
3,699,798
3,699,799
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,713,237
3,713,238
Get the file Attributes (client side) using Javascript
<p>In my application, I need to calculate the size of the file in <strong>client</strong> side (before uploading to server). </p> <p>I want to restrict the file being uploaded if it doesn't satisfy my requirements like file <strong>size</strong>, file <strong>type</strong>..</p> <p>Is it possible to achieve this in ...
javascript jquery
[3, 5]
4,433,451
4,433,452
Need advises how to make authentication in asp.net
<p>Im developing asp.net c# web site where i want to make user authentication. without any roles or something. </p> <p>i have database with user table where i store all user data, this table have relationship with many other tables.</p> <p>I like asp.net from authentication controls, but problem is that it have her c...
c# asp.net
[0, 9]
2,858,749
2,858,750
How to call javascript postback codebehind with same submit button
<p>I have a asp.net application display file names with treeview structure on the page. After the user click on the checkbox to select the download files on the treeview then they can click the submit button. First, I need to retrieve the checked(selected) node path value. Second, pass all the node path with folder/fil...
javascript asp.net
[3, 9]
2,338,193
2,338,194
Android SDK: How do you set the screen brightness
<p>I have been looking around and I could only find code that will set the brightness on that one Activity. I am trying to change the actual phone settings. The code I have tried is:</p> <pre><code>public class AutoPowerManagerActivity extends Activity { /** Called when the activity is first created. */ @Overr...
java android
[1, 4]
656,971
656,972
How to apply javascript on checkbox with value total?
<p>I try to print total value which is checked checkbox. It is already work with <code>input type="checkbox"&gt;</code> but It have made code with asp:checkbox/>.</p> <p>I try but it is print NaN.</p> <p>following code: four checkbox</p> <pre><code>&lt;asp:CheckBox runat="server" ID="CheckBox1" Text="Mobile" Value="...
javascript asp.net
[3, 9]
5,826,267
5,826,268
split not working
<p>How do i split decimal numbers? The variable <code>bidnumber</code> is <code>10.70</code>.</p> <pre><code>var bidnumber = $(this).parent('div').siblings('.advert-details').find('tr:eq(3)').find('.advert-details-col-2').attr('data-bid'); bidnumber.toString().split('.'); var first = bidnumber[0]; var second = bidnumb...
javascript jquery
[3, 5]
1,976,621
1,976,622
Order of jquery and javascript functions
<p>I have a feeling I'm missing something obvious, but...</p> <p>All my neat jQuery functions are being forced to wait by a particularly slow-moving javascript api call from within the body of the page. I'd like to have the jQuery run first, and then the api when that's done. Is there a standard way of imposing the or...
javascript jquery
[3, 5]
5,124,709
5,124,710
How to port a J2ME application to Android platform?
<p>I have heard that there are soft wares for converting an existing J2ME app to Android? But I was doing a manual conversion till now. Am I doing a silly job/is it possible to do convert any J2ME application?</p>
java android
[1, 4]
140,940
140,941
Can we pass datatable from Business layer to presentation Layer?
<p>I am working on a project to make a 3-tier architecture, i need to ask if we can pass a data table directly to presentation layer as it comes from data layer,is it a good practice ?</p>
c# asp.net
[0, 9]
2,084,362
2,084,363
Query generates an error
<p>I am doing the request, it writes an error id - INTEGER PRIMARY KEY help</p> <pre><code>cur = db.query("Sales_region_table t1, region_table t2 join region_table t2 on t1.id_region = t2.id ", null, " id_region = " + id_region + " and id_category = " + id_category + " and id_product = " + id_product + " ", null, nul...
java android
[1, 4]
2,059,216
2,059,217
Retrieving item from List collection when each index have a set of items
<p>I am trying to create a form application with asp.net C# that display question and hint. I was going to put the two in a separate list collection but there could be a possibility that questions and hints can become disjointed so I decided to create a class where it takes ID, Q, and Hint and then put them in a list c...
c# asp.net
[0, 9]
3,570,505
3,570,506
jQuery or JS: Select input fields with 2 level brackets?
<p>I have a dynamic form that adds users to the site, made so you can duplicate the fields to add several users on one go.</p> <p>So, my looks like</p> <pre><code>&lt;input name="user[1][name]" value="" /&gt; &lt;input name="user[1][username]" value="" /&gt; &lt;input name="user[1][password]" value="" /&gt; </code><...
javascript jquery
[3, 5]
3,586,446
3,586,447
jQuery - Setting background position from variables
<p>Im getting the X and Y co-ordinates or a selected area, Im then using that to set the position of an image in another DIV.</p> <p>Vars: </p> <pre><code>selection.x1 (This will need to be a negative value) selection.y2 </code></pre> <p>I need to write using Javascript or jQuery the following:</p> <pre><code>div.c...
javascript jquery
[3, 5]
546,006
546,007
Reload html element
<p>I have a page which opens another page using window.open and does some work and refreshes whole parent page . Is it possible to refresh content of a div/table on parent page using JQuery/Javascript ?</p> <p>FYI : Here the content of the div is not changing there is an image inside div which is edited by child windo...
javascript jquery
[3, 5]
5,616,745
5,616,746
Managing JavaScript dependencies with CDN in ASP.NET
<p>Generally speaking, individual JavaScript files that a page uses should be combined into a single filed and minified. To this end, we have an <code>AssetController.ScriptTag()</code> that's used like this:</p> <pre><code>&lt;%= ScriptTag ( "/js/global.js", "/js/accounts.js", "/js/googmaps.js" )%&gt; </c...
c# javascript asp.net
[0, 3, 9]
3,544,713
3,544,714
Checking Number of Selected Checkboxes
<p>I saw the <a href="http://docs.jquery.com/Is" rel="nofollow">is</a> function in jQuery, and it returns me, for example, if any of the checkboxes are selected.</p> <p>I need to do a check for how many checkboxes had been selected by the user, because my app requires something like "select two of these". Is there a q...
javascript jquery
[3, 5]
2,845,227
2,845,228
Hide an ongoing notification
<p>I have the following code to create an <code>ONGOING_EVENT</code>:</p> <pre><code>Notification notification = new Notification(R.drawable.icon, "someText" , System.currentTimeMillis()); notification.flags |= Notification.FLAG_ONGOING_EVENT; notification.flags |= Notification.FLAG_FOREGROUND_SERVICE; PendingIntent ...
java android
[1, 4]
4,791,066
4,791,067
How do I create persistent socket connection on Android?
<p>First off, let me say that feel free to recommend me if long lived TCP persistent connections are the way to go or persistent HTTP connections are better. </p> <p>I've also pre-read that instead of having a persistent connection, I can have a polling mechanism. </p> <p>I'm just asking in the curious interest of ho...
java android
[1, 4]
3,460,634
3,460,635
populate radio button value after submit
<p>I try to implement the follwing code:</p> <pre><code> &lt;?php $yesno1=""; $yesno2=""; $option1=""; $option2=""; $option3=""; if(isset($_POST['submit'])){ $yesno1=$_POST['yesno1']; $yesno2=$_POST['yesno2']; $option1=$_POST['option1']; $option2=$_POST['option2']; ...
php javascript jquery
[2, 3, 5]
4,840,408
4,840,409
How to use .html() with a timer in jQuery?
<p>I want to replace the contents of a div with the values found in an array. I want to keep each value within the div for 3 seconds each. Here's my code so far:</p> <pre><code> var images = ['a.jpg', 'b.jpg', 'c.jpg']; for (i = 0; i &lt; images.length; i++) { $('#slideShow').html("&lt;img sr...
javascript jquery
[3, 5]
5,753,715
5,753,716
jquery ready handler never executed
<p>I have a website about festivals, with a separate page for each festival. Normally, a festival's page should look something <a href="http://www.festivals.ie/festival/show/1" rel="nofollow">like this</a>, but <a href="http://www.festivals.ie/festival/show/30" rel="nofollow">one of the festival pages</a> has a few pro...
javascript jquery
[3, 5]
2,359,849
2,359,850
Call PHP function from android?
<p>I want to call specific php function on server from Android application and also to send some parameters. Till now I achieved that I can open php file using HttpClient and executed data transfer to Json and show that in my app. So, now I want to be able to call specific function and send parameter to it, how can I d...
java android
[1, 4]
5,981,051
5,981,052
ASP.NET: Write a table (and checkboxes) to a word document
<p>I am writing an ASP.NET Application in c# and I'm trying to write a table to a word document.</p> <p>I use currently the following code to write to a word doc:</p> <pre><code> string strContent = "This content goes to the word document"; string attach = "attachment; filename=wordtest.doc"; H...
c# asp.net
[0, 9]
3,167,815
3,167,816
Computer Science or Information Technology?
<p>Can someone help me realize what should I focus on more? I really like fixing computers, doing more physical interaction with hardware. But for some reason I want to see my self working in a Fortune 500 programming companies. Can someone help me? Am I the problem?</p>
java c++
[1, 6]
4,276,880
4,276,881
How to implement internet radio using java
<p>How to implement internet radio using java? Is there any Java APIs for this?</p> <p>I want to make a internet radio using Android / java. But I am not getting any APIs how to connect or how to receive the channel information for streaming the audio.</p> <p>Please help me how to create that same and provide some co...
java android
[1, 4]
4,115,503
4,115,504
Maintaining application state in Android
<p>I'm trying to guess why, if I open my application, lock the device and some hours later resume the activity it crashes. I suppose thats why, after some time, Android destroy my app and then tries to resume and im not saving correctly the state of my activities.</p> <p>How can I force Android to destroy my app as it...
java android
[1, 4]
299,714
299,715
invoking a third party app through asp.net/C# code- UI gets "stuck"
<p>Iam trying to write a webpage where iam invoking a third part app (.exe) from the code using </p> <pre><code>System.Diagnostics.Process.Start("app.exe") </code></pre> <p>The app fires and it starts to open up the GUI but gets "stuck" after about 3-4 seconds and just sits there.. Its not an app issue as it runs fi...
c# asp.net
[0, 9]
4,646,944
4,646,945
Array of calendar objects
<p>Can one create an array of calendar objects?</p> <p>If yes, how does one do so? This code surely gives error</p> <pre><code>Calendar cal[length]; //loop for initialising all the objects in cal[] array </code></pre> <p>If no, what other way is there for getting "n" number of calendar objects? I need this for ...
java android
[1, 4]
5,181,827
5,181,828
ontouch - Switching positions of two views(images) in Android
<p>I've been looking for that 2 days long and haven't found anything related to it.</p> <p>I'll give an example for my goal. Let's say I have 2 images positioned side by side horizontally. I want the user to be able to switch their positions onlongtouch listener. so let's say that the first image was on the left and t...
java android
[1, 4]
4,042,196
4,042,197
Facebook query Language
<p>Dear all, How can i use FQl(facebook query language ) in my application to </p> <p>1)GetOnline friends 2)Get Images 3Upload Photos and more features </p>
java javascript
[1, 3]
4,895,640
4,895,641
Run setTimeout only when tab is active
<p>Is there a way to stop <code>setTimeout("myfunction()",10000);</code> from counting up when the page isn't active. For instance,</p> <ol> <li>A user arrives at a "some page" and stays there for 2000ms</li> <li>User goes to another tab, leaves "some page" open.</li> <li><code>myfunction()</code> doesn't fire until ...
javascript jquery
[3, 5]
2,782,105
2,782,106
how to check whether the number ends with 9 or not in numbers 1to 100
<p>How can I to print the numbers from 1 to 100 in the following format?</p> <pre><code>1-------------9 10------------19 20-------------29 30--------------39 40-----------49 50-----------59 60-----------------69 70---------------79 80---------------89 90-----------------99 </code></pre>
c# c++
[0, 6]
4,218,456
4,218,457
On mouseover change auto to false
<p>I have this code and i want the mouseover to change the variable auto from true to false.</p> <pre><code>if ($featuredArea.length) { $featuredArea.et_switcher({ useArrows: true &lt;?php if (get_option($shortname.'_slider_auto') == 'on') { ?&gt;, auto: true, autoSpeed: &lt;?php echo(g...
javascript jquery
[3, 5]
5,230,672
5,230,673
place cursor at the end of text in asp.net textbox using tab key
<p>I have a asp.net textbox which contains some predefined text by default. when i move from one textbox to another using tabkey the cursor should place at the end of text. is it possible using jQuery or javascript ? thank you</p>
c# asp.net
[0, 9]
2,727,771
2,727,772
Setting Android wallpaper w/ scaled images for different resolutions/screens
<p>Im am trying to set the wallpaper where it scales correctly for all phones. Right now I have motorola droid size wallpapers packaged with my app, 960x854, and it works fine. The problem is that I ran my apk on a mytouch and the wallpaper was zoomed in big-time.</p> <p>I was told to use "Bitmap.createScaledBitmap(...
java android
[1, 4]
1,833,753
1,833,754
jQuery + A function that returns clicked element
<p>I've been stuck on this for a long time now, I am looking for a bit of guidance ... I want to turn the following, into something more dynamic. I want the 'selector' to change / be based on whichever element was clicked. </p> <p>So this is kind of what I think needs to be done:</p> <ol> <li>figure out which elemen...
javascript jquery
[3, 5]
496,670
496,671
jQuery extension is undefined in document.ready
<p>I'm just baffled on this one. I'm using linq.js, which is a great library that adds LINQ-style extension methods to js and jQuery. One of them is <code>$.Enumerable</code>, which is used to translate a jQuery list into another object that has the LINQ goodness. This has worked fine for weeks. </p> <p>Today I di...
javascript jquery
[3, 5]
2,497,354
2,497,355
Disable/Enable input:date on checkbox click doen't work properly?
<p>I'm trying to disable the Date field on uncheck checkbox and vice-versa. </p> <p><a href="http://jsfiddle.net/MyNameIsSakthi/ZKw9x/2/" rel="nofollow">http://jsfiddle.net/MyNameIsSakthi/ZKw9x/2/</a></p> <p>Also this works differently in different browsers! </p> <pre><code>$('#certExpiry').click(function(){ if($('#...
javascript jquery
[3, 5]
4,898,139
4,898,140
jQuery getScript returns undefined
<p>For example i have script</p> <pre><code>$.getScript('http://jquery.com/files/social/js/jquery.tabs.js',function(data){console.log(data)}) </code></pre> <p>In returns <code>undefined</code>, but if i load in this way:</p> <pre><code>$.getScript('/social/js/jquery.tabs.js',function(data){console.log(data)}) </code...
javascript jquery
[3, 5]
2,489,947
2,489,948
How to update the cookie value using jQuery? I don't want to update the cookie expire time?
<p>I have the cookie for delete Option. But when the user uses the undo feature, I want to update the cookie. The cookie is set to expire in 5 minutes when created.</p>
php jquery
[2, 5]
4,222,376
4,222,377
JS: Check boxes Linked to Span & Background Color
<p>I have two checkboxes (see below) that when clicked, activate a change in background colour of a span. The problem is, I need it such that only ONE of these checkboxes can be activated, while the other one gets de-activated. I know all about radio buttons, the issue is that even when the radio button deactivates, it...
javascript jquery
[3, 5]
795,152
795,153
Object reference not set to an instance when modifying an existing cookie in code behind
<p>In the line "Response.Cookies...", I get an object reference not set to an instance of an object. Is there a way to fix this and use a timer in my ASPX code behind?</p> <pre><code>protected void Page_Load(object sender, EventArgs e) { object o = new object(); TimerCallback timercallback = new TimerCallbac...
c# asp.net
[0, 9]
5,933,663
5,933,664
Is there a way to make applications in C# for iphone
<p>I was wondering if you can make C#/.NET applications for iPhone? How would I start?</p>
c# iphone
[0, 8]
3,091,727
3,091,728
Click location in image using JQuery
<p>is there an easy way to find where user clicked inside an image (div, ...), relative to top-left corner of the element? (using js/jquery)</p> <p>Basic event.pageX/event.pageY does not take into account scrolling and element position. Combining Document.getScrollTop() and element.getAbsoluteTop ( <a href="http://sta...
javascript jquery
[3, 5]
5,171,588
5,171,589
JavaScript alert not working in Android WebView
<p>In my application I am using WebView and in that I am using JavaScript alert( ) method but its not working, no pop-up appears.</p> <p>in my manifest file I have added </p> <pre><code>&lt;uses-permission android:name="android.permission.INTERNET"&gt;&lt;/uses-permission&gt; </code></pre> <p>and in activity file I ...
javascript android
[3, 4]
4,129,250
4,129,251
javascript reversible pseudo hashing
<p>Are there any "reversible" pseudo hashing functions available in javascript? The reason I ask is because I'm bouncing a string around various parts of my application but the string contains characters that are incompatible with certain parts of the app. So I'd like to convert "152(/,blue-Test#" in to an alphanumeric...
php javascript
[2, 3]
5,379,434
5,379,435
What's the equivalent of this in plain JavaScript?
<pre><code>$('&lt;span class="pictos"&gt;j&lt;/span&gt;').prependTo('li'); </code></pre>
javascript jquery
[3, 5]
5,050,756
5,050,757
How should i get some value from javascript object and check for null
<p>I am getting the element as</p> <pre><code> var minPricePerInputField = $("input#A"+indexNr); </code></pre> <p>The element can be present also or not also. I am getting some [object Object] thing. I have no idea what is this. I am receiving this [object Object] when the element is not there.</p>
javascript jquery
[3, 5]
108,394
108,395
Does technology exist that could allow devices to access and use data without having to download or stream it?
<p>Say the data never has to be copied to the client device, but always remains locked in the server. Say all the requesting device does is "hack in" to the server using a special code and only downloads some kind of tiny-size alias that gives it access to the entire file(s) on the server? Does this technology alread...
php javascript asp.net
[2, 3, 9]
7,145
7,146
How to find out where this ConcurrentModificationException crashes?
<p>I am stuck with an <code>ConcurrentModificationException</code> and I Can't figure out where this happens in my code. All that Debug gives me is this:</p> <pre><code>myApp [Android Application] DalvikVM[localhost:8631] Thread [&lt;1&gt; main] (Suspended (exception ConcurrentModificationException)) ...
java android
[1, 4]
3,169,457
3,169,458
How to keep refreshing the page periodically while the user is away from the page? and not to refresh if on the page
<p>Is it possible to refresh a webpage, say, every minute when the user is NOT on the page? For example, if I am visiting a PageX and stay on the page it doesn't refresh but as soon as I navigate away from the page (that is, switch to another tab/window or a program, then the PageX refreshes every x minutes or seconds?...
javascript jquery
[3, 5]
4,860,417
4,860,418
Javascript to validate two text boxes
<p>I have two text boxes.</p> <p>One text box is min and other text box is max. </p> <p>I want to make sure that the user enters a greater value in the max text box compared to the min text box.Also the case might be handled if the user enters one text box is about to enter the next text box .How can i do this job ef...
javascript jquery
[3, 5]
2,723,822
2,723,823
Infragistic grid
<p>I am using Infragistic Webdatagrid to display data. when ont of the column have null value,that row do not displayed in that grid.</p> <p>Have any one has suggestion.?</p>
c# asp.net
[0, 9]
1,810,008
1,810,009
How can i remove columns which contains 0 using lambda expression
<p>I have a list which contains suppose 4 columns i want to remove columns which contains 0 from first row to last row. In this case i want to remove 2nd &amp; 4th column how can i achieve this using lambda expression c# 4.0</p> <pre><code>c1 c2 c3 c4 1 0 10 0 2 0 20 0 3 0 30 0 </code></pre> <p>o/p ...
c# asp.net
[0, 9]
2,392,324
2,392,325
Is php very limited?
<p>I've tried asp.net and jsp...and the programming language was powerful enough to create both desktop and Windows apps.</p> <p>Butwhat can I possibly do with php other than creating web applications? Does it have some kind of runtime or framework?</p> <p>Thanks</p>
java php asp.net
[1, 2, 9]
5,913,553
5,913,554
iPhone Date Field - Change Date Format
<p>I have this field that asks for a date in an iPhone HTML App:</p> <pre><code>&lt;input type="date" name="DepartureDate" id="DepartureDate" placeholder="Date" value="" class="bookingField" /&gt; </code></pre> <p>This script:</p> <pre><code>var ddate1 = $('#DepartureDate').val(); alert(ddate1); </code></pre> <p>r...
javascript jquery iphone
[3, 5, 8]
202,320
202,321
How to remove .aspx from url
<p>How can i remove .aspx from my urls as I used UrlRewritingNet and its giving me page not found error when i host the site to the server but its alright in the IDE browser. </p>
c# asp.net
[0, 9]
4,336,279
4,336,280
window.history.pushState
<p>This code is working only with jquery 1.6 how do I make it run as jquery 1.9? ` $(document).ready(function(){ var content = $('#conteudo');</p> <pre><code> loading = new Image(); loading.src = 'http://wbruno.com.br/scripts/ico-loading.gif'; $('#menu a').live('click', function( e ){ e.prev...
javascript jquery
[3, 5]
1,176,415
1,176,416
Change the Dialog style using a theme
<p>I was wondering whether there is a simple way to tell Android to always use a custom style to display <code>Dialogs</code>.</p> <p>Using themes and styles you can change the look and feel of all, say, <code>TextViews</code> using this piece of code when defining a theme in themes.xml:</p> <pre><code>&lt;item name=...
java android
[1, 4]
2,073,582
2,073,583
Multiple Images in Container with Zoom In-Out button, Next Previous button, Image Count Same like Google Pdf Viewer
<p>I am looking for a Image Container with Zoom-In and Out Button, Next-Previous Button, Active Image with Total Count Same like Google Pdf Viewer... </p> <p>Is There any Container like that in Jquery ?? Comments are welcomed :)</p>
jquery asp.net
[5, 9]
4,266,682
4,266,683
How can convert ArrayList<Long> to String in Java (Android)?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/599161/best-way-to-convert-an-arraylist-to-a-string">Best way to convert an ArrayList to a string</a> </p> </blockquote> <p>I need your help! I have array of JSon (esponse from Facebook). ArrayList. How can conv...
java android
[1, 4]
2,701,099
2,701,100
Get elements by class name inside another element with jQuery
<p>How can I get an element by id, and then inside this element get all elements by class name using jQuery? It's pretty easy to do this using the standard JS functions getElementById() and getElementsByClassName(), but unfortunately IE 7-8 do not support the latter.</p>
javascript jquery
[3, 5]
462,642
462,643
asp.net new page on button click
<p>Trying to display a new page, in a new window when the user clicks on a button. Trying to test it out with this but no luck so far:</p> <pre><code>Label1.Text = "&lt;form&gt;&lt;input type=button name=print value='Print View' onClick='javascript:window.open('http://mylink','mywindow')'&gt;&lt;/form&gt;"; </code></p...
c# asp.net
[0, 9]
5,494,637
5,494,638
Selecting session variable with an IF statement
<p>I have this code to send variables to a datagrid on another page</p> <pre><code> protected void Button1_Click(object sender, EventArgs e) { int agent = int.Parse(txtAgencyCode.Text); Session["para1"] = agent; Button1.Attributes.Add("onclick", "window.open('http://localhost:50771/WebSite4...
c# asp.net
[0, 9]
5,267,777
5,267,778
ASP.NET 1.1 issue
<p>For some reason I cannot add a server control onto a specific asp.net form. If I make an attempt to do this, I get the following error when selecting from the datagrid: Index was out of range. Must be non-negative and less than the size of the collection </p> <p>I have checked the values and they are all non negati...
c# asp.net
[0, 9]
3,216,905
3,216,906
Javascript image height and other calculation
<p>I was having a problem on getting the height and also calculating other calculations.</p> <p>I want to get the image height after it has loaded, so I put it on the onload attribute of <code>&lt;img&gt;&lt;/img&gt;</code> function, here's my code</p> <pre><code>&lt;p class="test1" style="position:absolute;bottom:0p...
javascript jquery
[3, 5]
4,775,385
4,775,386
Opening a link in new tab
<p>In my website I use an imagebutton to send the ID of a project as a command argument.In a window, I only display one picture and that's the imagebutton. When that image is clicked I want to open the related project's all pictures in a new tab.</p> <p>With this code on code behind,</p> <pre><code>int ID = Convert.T...
javascript asp.net
[3, 9]
1,454,146
1,454,147
Why you don't create objects in JAVA?
<p>I am watching some android tutorials and have one question. Why do you write your class and never create object/use methods like in cpp?</p>
java android
[1, 4]
3,727,874
3,727,875
Did jQuery drop support to attr on some DOM properties?
<p>I had some old jQuery working code with:</p> <pre><code>if ($element.attr('checked') === 'checked') </code></pre> <p>that was never rewriten to suggested:</p> <pre><code>if ($element.prop('checked')) </code></pre> <p>yet it worked. </p> <p>But now, I've updated to jQuery 1.9.1 and accessing checked with attr re...
javascript jquery
[3, 5]
357,234
357,235
How to Scroll Down - JQuery
<p>I'm not a programmer, but I use the code below to scroll the page to the top.</p> <p>How can I adapt it to make a scroll down?</p> <pre><code>&lt;script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"&gt;&lt;/script&gt; &lt;a class="btnMedio" href="javascript:;"&gt; &lt;img src="http://d...
javascript jquery
[3, 5]
2,200,842
2,200,843
Include jQuery document.ready() as an include file
<p>Am I able to include as an include, an external jquery.dialog.js file that consists of the following:</p> <pre><code>$(document).ready(function(){ $(function() { location.hash = 'PAGETOP'; }); $("#dialogou").dialog({ autoOpen: false, closeOnEscape: false, resi...
javascript jquery
[3, 5]
5,486,677
5,486,678
Response.Redirect URL with querystring error
<p>I am getting 'Resource cannot be found' error with the following URL Response.Redirect. If I use Response.Redirect("~/Orders/ViewOrders.aspx"), it works fine. What could be wrong? Thanks for any suggestions.</p> <p>Here is the output of the URL string.</p> <p>~/Orders/ViewOrders.aspx?url='http://servername/Reports...
c# asp.net
[0, 9]
2,993,031
2,993,032
posting rows of html table seperately to php
<p>I'm trying to store contents a tr in table #itemsTable, in array celValues and post it to php and repeat it (post next tr until last tr). here is code:</p> <pre><code>$('#save').click(function(){ //alert("hi"); var celValues= new Array(); $('#itemsTable tr').each(function() { celValues[0] = ...
php jquery
[2, 5]
5,247,416
5,247,417
Create a page that self executes in ASP.NET
<p>Hey guys, I'm trying to create a web app similar to a web crawler on my site. I have just about all the code done to do the crawling, but I still need to physically go to the web page to activate the code. Is there any way I could have my ASP.NET code execute automatically once every day on the server? (I'm using go...
c# asp.net
[0, 9]
3,521,587
3,521,588
How to select option in jQuery using text of option tag
<p>I'm trying to select a certain option in a select box, but it's not working:</p> <pre><code>var category = $(row + 'td:nth-child(4)').text(); $('#category_id', theCloned).load('/webadmin/video/get_categories',function(){ $('#category_id', theCloned).val(category); }); </code></pre> <p>There's no error thrown, b...
javascript jquery
[3, 5]
4,342,732
4,342,733
iterate through class, creating a serializeable object
<pre><code>public partial class VALUES { public struct Status { public const long Registered = 5; public const long Active = 6; } } </code></pre> <p>I would like to dynamically create an anonymous object which i can serialize to JSON based on this class. Is there any way to iterate through ...
c# javascript asp.net
[0, 3, 9]
295,096
295,097
How to set up an onTouchListener that changes an ImageView image resource?
<p>I want to setup up an onTouchListener that changes an ImageViews image resource on ACTION_UP and ACTION_DOWN. Here is my code:</p> <pre><code> // Setup a basic upDownListener that registers UP and DOWN actions and changes the // view image resource accordingly View.OnTouchListener upDownListener = new Vi...
java android
[1, 4]
5,527,162
5,527,163
Calling Javascript on a page programmatically (in c#) and then submitting it back to the server
<p>I need to request a page (I'm using httpwebrequest at the moment), call some javascript ( e.g</p> <p>function selected(id) { document.getElementById("selected").value = id; }</p> <p>and then submit that back to the server . . . is this possible?</p> <p><strong>EDIT</strong></p> <p>Sorry for the vag...
c# javascript
[0, 3]
4,536,643
4,536,644
Add values from table cells
<p>I have a table with digit values it its cells.</p> <p>My objective is that by clicking on table cells and getting their values but adding them up as I click at will. It should keep track of the sum and show it in a separate <code>div</code>.</p> <p>I have written code which handles clicking the <code>td</code> and...
javascript jquery
[3, 5]
3,669,253
3,669,254
Hover on trigger expand distant element. But with multiple instances
<p><a href="http://jsfiddle.net/umbriel/CvhkM/1080/" rel="nofollow">http://jsfiddle.net/umbriel/CvhkM/1080/</a></p> <p>In this fiddle I have managed to code so that when I hover on the red trigger the div expands accordingly. <strong>However I want multiple triggers that would expand their linked divs</strong>. But si...
javascript jquery
[3, 5]
1,140,241
1,140,242
goes back to home page when refreshing jquery
<p>I have a website with functionality of jquery for navigation. I use the load() function of jquery that enables the website to be navigated without refresh. But when I hit f5 for refresh for example I am in the Contact Us page it will hit back on the index page which is the parent page. Is there a way in jquery or aj...
php jquery
[2, 5]