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
6,007,671
6,007,672
Building a file cache
<p>I am looking for any information regarding the design and performance of a file cache. This is not for a website.</p> <p>I'm working on a program that I may, potentially, want to maintain a small file cache to help speed up things (since it will be running on a mechanical disk, it may be possible to further increas...
c# c++
[0, 6]
2,325,658
2,325,659
Enter Key as Tab and Move Focus to next Control in asp.net
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/4494552/change-enter-from-submission-to-tab">Change Enter from submission to Tab?</a> </p> </blockquote> <p>Hi Experts How to override tab key with enter key in asp.net web form and move to next control on ente...
javascript asp.net
[3, 9]
2,062,070
2,062,071
Sending and receiving data PHP to android JAVA
<p>I am currently working on an app for Android that receives data from server. The problem that I do not really know how to make the data-transfer to the server and back to the app, I use PHP like an engine that accepts and returns data, but I'm not sure how good and effective it is.. Does anyone know how WAZE works a...
java php android
[1, 2, 4]
5,588,685
5,588,686
Android java.net.UnknownHostException: Host is unresolved (strategy question)
<p>I have android code that uses a background process to routinely (e.g. hourly) connect to a content source on the web to check for updated content. As new users download the app and run it for the first time, it seems (and this is just a "seems at the moment) that in this first-run situation, because the DNS for our ...
java android
[1, 4]
1,006,613
1,006,614
Getting default Server time in jQuery?
<p>How can I get the web-server time using jQuery?</p>
php javascript jquery
[2, 3, 5]
4,120,475
4,120,476
PHP variable to Javascript variable
<p>I am currently working on making a simple php script to edit certain aspects of a game in JavaScript. When attempting to pass variables from the script to the game using forms, the variable data does not seem to transfer. As of now, the script is meant to edit the RDG value of one player in the game. The code is as ...
php javascript
[2, 3]
3,058,000
3,058,001
Testing URL equivalence in JavaScript/JQuery (obtaining canonical form of URL)
<p>The same URL can be represented in many different representations.<br> e.g. Assuming the browser's currently loaded page is<code>http://www.example.com/about.html</code></p> <p>The following URLs can be considered equivalent from the browser's point of view:</p> <ul> <li><code>http://www.example.com/contact-us.htm...
javascript jquery
[3, 5]
3,612,208
3,612,209
Change scroll direction at Anchor point
<p>on my site I have 6 divs each div the same height and width of the browser window, so 5 are out of view, 3 left aligned then 3 more on top, as so....</p> <p><img src="http://i.stack.imgur.com/ZRwWY.png" alt="enter image description here"></p> <p>When my visitors scroll, id like to scroll along to the 3rd div, then...
javascript jquery
[3, 5]
788,732
788,733
How to draw on Canvas using multi-threading?
<p>I have been developing the application for drawing, and there is the following code for it:</p> <pre><code>public class PainterView extends View implements DrawingListener { private Context context; private Painter painter; private Bitmap background; private Bitmap bitmap; private Paint bitmapPaint; private Path p...
java android
[1, 4]
1,908,152
1,908,153
JavaScript Photo Slider
<p>I'm working on making a JS script that will go in the header div and display a few pictures. I looked into JQuery Cycle, but it was out of my league. The code I wrote below freezes the browser, should I be using the for loop with the timer var?</p> <pre><code>&lt;script type="text/JavaScript" language="JavaScript"&...
javascript jquery
[3, 5]
428,908
428,909
creating strings inside a for each loop? or creat them outside, use inside?
<p>i have the following code below and was lookign to clean it up, but am not sure if it needs clean up or not. </p> <pre><code>foreach (SearchResult sr in mySrchColl) { string strValIn = sr.Properties["in"][0].ToString(); string strValOut= sr.Properties["out"][0].ToString(); } </code></pre> <p>do i change th...
c# asp.net
[0, 9]
3,078,134
3,078,135
Disable jQuery effect on page refresh
<p><strong>Overview</strong></p> <p>I have div#lead_form that SlideDown in 5 seconds after page loads. And in that div, I have a submit button. Everytime someone clicks submit, the form within #lead_form will validate the input fields and refresh the page. </p> <p><strong>Issue</strong></p> <p>Everytime the form val...
php jquery
[2, 5]
3,374,237
3,374,238
Append POST data javascript
<p>Using either Javascript and/or Jquery how can I append POST data to a form to submit. I have in my server side code that will check to see if the post data dictionary contains a certain key.</p> <p>I already have a form in the code. So I would just like to use javascript to add a new key to the POST data.</p>
javascript jquery
[3, 5]
2,480,299
2,480,300
how to set OnClientClick to be true?
<p>I wonder how to use jquery click a button and set it's OnClientClick to be true, so the validation process will not run. I use</p> <pre><code>$("[id$='btn_Save']").attr('OnClientClick', true); $("[id$='btn_Save']").Click(); </code></pre> <p>But it does not work.</p>
jquery asp.net
[5, 9]
3,581,610
3,581,611
jQuery check if browser support position: fixed
<p>How do I check if browser supports <code>position:fixed</code> using jQuery. I assume I have to use <code>$.support</code> I think, but how?</p> <p>Thank you for your time.</p>
javascript jquery
[3, 5]
3,030,809
3,030,810
How reload div every 3 minutes
<p>I have a div with id "myDiv" and i would like to update it every three minutes with content from a php file. Any help would be really appreciated. Thanks</p>
php jquery
[2, 5]
4,663,542
4,663,543
Using methods of classes in android programming
<p>Hi everyone I am a beginner in android, please help. I have DBAdapter class which has different methods to manipulate my db. I want to call the method i.e. insert when button is clicked. However it only works outside of listener (View.OnClickListener). </p> <pre><code> package com.dbclass; import android.ap...
java android
[1, 4]
4,214,364
4,214,365
Having trouble to run report from server from web applicaton
<p>I am using ASP.NET 2005, C# and Crystal Reports 8.5 for development. It's running fine on my development computer, but when I try to to run from the server it is giving me an error.</p> <blockquote> <p><strong>Could not load file or assembly 'CrystalDecisions.ReportAppServer.CommLayer, Version=10.2.3600.0, Cult...
c# asp.net
[0, 9]
3,890,165
3,890,166
use php to change a html elements inner text
<p>I have a basic form, which i need to put some validation into, I have a span area and I want on pressing of the submit button, for a predefined message to show in that box if a field is empty.</p> <p>Something like</p> <pre><code>if ($mytextfield = null) { //My custom error text to appear in the spcificed #log...
php javascript
[2, 3]
147,578
147,579
Identifying a certain common section on pages in a website
<p>I have a list of common links for product pages, and I need to go through and grab all the links for the product image on each product page.</p> <p>Eg I have got this far: I have a whole spreadsheet full of links like this</p> <pre><code>http://www.apc.com/products/moreimages.cfm?partnum=WSYSW100KF </code></pre> ...
php jquery
[2, 5]
1,651,049
1,651,050
Javascript converting example to real code issue - arrays
<p>I'm trying to use the userBox plugin and in the example we have the following array being built:</p> <pre><code>var data = [ {text: "Adam Adamson", id: "adam@test.com"}, {text: "Betsy Boop", id: "betsy@test.com"}, {text: "Jooles Jooles", id: "julie@test.com"} ]; </code></pre> <p>I want to bui...
javascript jquery
[3, 5]
4,153,486
4,153,487
ASP.NET how to check type of the file type irrespective of extension
<p>If somebody renames the extension of any file (other than excel) to xls and xlsx (please dont ask me why :-( ), I need to check for its validity (if that is still a valid excel file). I am using mime type and Its not working. Am I missing anything?</p> <pre><code>const string excel2007MimeType = "application/vnd.op...
c# asp.net
[0, 9]
492,811
492,812
Weird repeater problem
<p>I have a Repeater control in my aspx page:</p> <pre><code>&lt;asp:Repeater ID="repeater" runat="server" EnableViewState="false"&gt; &lt;ItemTemplate&gt; &lt;%# Eval("someAttribute") %&gt; &lt;/ItemTemplate&gt; &lt;/asp:Repeater&gt; </code></pre> <p>On Page_Load I have the following code:</p> <pre>...
c# asp.net
[0, 9]
5,042,161
5,042,162
Android: ListView Display
<p>I have a list View and I'm trying to put the data from a method unto a list view but it's not showing up on the android phone. I've trying almost everything. Please help me. This is the code for the list...</p> <pre><code>int[] numbers = new int[5]; CardDataBase database = new CardDataBase(numbers); ListView list ...
java android
[1, 4]
5,460,325
5,460,326
Uncaught ReferenceError: $ is not defined?
<p>How come this code throws an "Uncaught ReferenceError: $ is not defined" - when it was OK before? </p> <pre class="lang-js prettyprint-override"><code>$(document).ready(function() { $('#tabs &gt; ul').tabs({ fx: { opacity: 'toggle' } }); $('#featuredvid &gt; ul').tabs(); }); </code></pre> <p>Results in t...
javascript jquery
[3, 5]
424,193
424,194
how to open new browser window on button click event
<p>How to open new browser window on button click event in C# ASP.NET?</p> <p>Please share any example.</p> <p>I am doing following code please let me know where I am going wrong</p> <pre><code>btn_Click() { if(condition==true) { this.Page.ClientScript.RegisterStartupScript(this.GetType(),"page_index_script2", "open...
c# asp.net
[0, 9]
5,648,541
5,648,542
Toggle 2 divs with 2 links
<p>I'm pretty new to jquery and here's what I'm trying to do:</p> <p>I have two links: link1 - link2 And 2 divs: div1, div2</p> <p>What I would like to do:</p> <p>If you click on link1 it slideDown the div1, if you click on link1 again, it slideUp div1 BUT If you click on link1 and then on link2 I want the div1 to s...
javascript jquery
[3, 5]
3,694,923
3,694,924
put value in textarea using jquery
<p>I want to put the value in textarea using the jquery. I'm using the following code. It is not working.</p> <pre><code> &lt;link rel="stylesheet" href="css/jquery.wysiwyg.css" type="text/css" /&gt; &lt;script type="text/javascript" src="js/jquery.wysiwyg.js"&gt;&lt;/script&gt; &lt;script type="text/javascri...
javascript jquery
[3, 5]
4,698,018
4,698,019
What's the default timeout of using HttpGet and DefaultHttpClient?
<p>The code is like below. If I don't set any timeout parameters, what is the default time out for "new DefaultHttpClient().execute(mConnection)"?</p> <pre><code>mConnection = new HttpGet(mURL); mResponse = new DefaultHttpClient().execute(mConnection); </code></pre> <p>Thanks.</p>
java android
[1, 4]
4,983,885
4,983,886
jQuery dynamically add validation rules to n-number of fields
<p>I'm using the jQuery validation plugin to validate a form. The form fields are generated dynamically. I have an email:</p> <pre><code>&lt;input type="text" name="customer_email_&lt;?=$i?&gt;" value="" id="customer_email_&lt;?=$i?&gt;" /&gt; </code></pre> <p>This input field is in a php loop and can be generated n-...
php javascript jquery
[2, 3, 5]
3,323,996
3,323,997
Getting started with writing a desktop app that talks to an iPhone
<p>I'm thinking of writing an app to selectively transfer photos/music to and from my iPhone, mostly for fun and personal convenience. However, I'm stuck at the very beginning -- where do I look to find information on how to do this?</p> <p>Pretty much every link I see talks about developing applications that run on t...
c# iphone
[0, 8]
2,848,970
2,848,971
autocomplete display distinct items
<p>How do I display distinct items in the autocomplete list? I don't want the duplicates to show up in the list. I'm reading the data from an XML file.</p> <p>Here's my web service code:</p> <p>[WebService(Namespace = "http://tempuri.org/")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] [Scrip...
c# asp.net
[0, 9]
2,059,818
2,059,819
Creating JSONObjects in android
<p>I need to form a JSON object like this. </p> <pre><code>{ "GroupID": 24536, "Section": [1,2,3,4,5] } </code></pre> <p>Here is what i have tried, but the section array is not getting properly formed when i look at my object structure. </p> <pre><code>JSONObject Object = new JSONObject(); Object.put("Group"...
java android
[1, 4]
307,893
307,894
How can I retrieve all mouse coordinates between mousedown to mouseup event
<p>As per the jQuery docs below code can be used to capture mouseup and mouse down events. But my requirement is bit different</p> <pre><code>$("#dic").mouseup(function () { }).mousedown(function () { }); </code></pre> <p>But How can I calculate mouse moving co-ordinates between mousedown position to mouseup pos...
javascript jquery
[3, 5]
1,292,235
1,292,236
slow jquery performance
<p>I have about 200 small icons (4kb) on my web page on click on a menu i want the icons to dim out im using this function</p> <pre><code>if (which!="all") { $(function () { // SET OPACITY TO 20% $("."+which).stop().animate({opacity: '0.2'}, 100); }); } </co...
javascript jquery
[3, 5]
4,986,346
4,986,347
How to use custom list adapter for android?
<p>I work this in my sample application</p> <p>like this link</p> <p><a href="http://stackoverflow.com/questions/12508092/how-can-i-change-the-color-dynamically-in-listview-base-on-the-value-from-xml-pa">How can I change the color dynamically in listview base on the value from xml parse?</a></p> <p>Please Help Me th...
java android
[1, 4]
178,132
178,133
How to call div content in widows.open()
<p>Actually i have a asp:LinkButton in aspx page and i just want that whenever user clicks on asp:LinkButton open popup on dat asp:LinkButton its already done and i have given another link to it(its ur website's link only) and its working fine, but the problem is now i want to open a popup with checkboxes with the citi...
javascript asp.net
[3, 9]
3,879,512
3,879,513
jquery.val() on the page works, off the page does not? Why?
<p>I had the following: </p> <pre><code>&lt;script type="text/javascript"&gt; var noteid = $('#noteid').val(); &lt;/script&gt; &lt;input type="hidden" name="noteid" id="noteid" value="321"&gt; </code></pre> <p>This works great... but now I'm trying to move the JavaScript off the page into a linked JS file like so: </...
javascript jquery
[3, 5]
433,568
433,569
Problem with jQuery mouseleave firing when container has select box
<p>I have a two containers -- one is nested inside of another. When I hover over the parent, I want the child container to appear. When I mouseout, I want the child container to fadeout. The problem I'm having is the child container has a form that contains a "select box". When the user selects the select box -- the m...
javascript jquery
[3, 5]
1,393,828
1,393,829
jQuery Lite Content Slider - Adding class to current slide
<p>Is it possible to add a "current" class to the slide div that is not hidden? I've been poking at this for a while and was wondering if I'm missing something obvious.</p> <p><a href="http://jsfiddle.net/e7VZS/1/" rel="nofollow">http://jsfiddle.net/e7VZS/1/</a></p>
javascript jquery
[3, 5]
3,014,570
3,014,571
Toggle and animate height of a ul within a li
<p>I have a list inside a li which needs to slide into view when the parent li is clicked.</p> <p>My code works nicely but if i click any li all of the sub lists show where as i want it only to apply to the one that was clicked...</p> <pre><code>$("#offering li").click(function() { $("#offering li ul").animat...
javascript jquery
[3, 5]
2,990,053
2,990,054
Changing attribute of dynamically generated tags with JQuery
<p>I have a requirement to rewrite <code>src</code> and/or <code>href</code> attribute of tags on a page using Jquery. I have tried this <a href="http://api.jquery.com/attr/" rel="nofollow">sample code.</a> It works for tags which are already in the html page, however for tags dynamically generated by Javascript it doe...
javascript jquery
[3, 5]
1,395,973
1,395,974
passing datat from one page to another using javascript
<p>function fillRoomList(){</p> <pre><code> var val; var room=&lt;?php echo $room_number; ?&gt;; var from=&lt;?php echo $from_date; ?&gt;; var to=&lt;?php echo $to_date; ?&gt;; var combo = document.getElementById("bldgList"); if(combo.selectedIndex &gt;= 0){ ...
php javascript
[2, 3]
4,839,870
4,839,871
How to get inner HTML of element inside a list item, within a delegate?
<p>I have this bit of HTML :</p> <pre><code>&lt;li eventId="123"&gt; &lt;img src="image.jpeg"/&gt; &lt;h3 id="eventName"&gt;Event Name&lt;/h3&gt; &lt;p id="eventDescription"&gt;&lt;/p&gt; &lt;/li&gt; </code></pre> <p>I want to be able to pull out the <code>&lt;h3&gt;</code> and <code>&lt;p&gt;</code> via ...
javascript jquery
[3, 5]
920,167
920,168
Java add and set functions
<p>I'm a python programmer, but currently I'm reading through Java code to get some ideas. I have no programming experience at all with Java and I don't know how it's possible, but I couldn't get any information using Google about these functions.</p> <pre><code>if(pv.size() -2 &lt; j) pv.add(j+1, localpv.get(j))...
java python
[1, 7]
3,774,822
3,774,823
Any PHP -> jQuery libraries out there?
<p>Have any bridge libraries been developed for PHP that provide access to the jQuery framework? Ideally it would be nice to have something fairly extensible so that creating jQuery-based content using PHP code would be fairly easy and customizeable. Does such a thing exist yet?</p>
php javascript jquery
[2, 3, 5]
210,824
210,825
Loading an image buried within several divs when the parent div is shown by a .show jQuery command
<p>I have a jQuery script running on an ASP site that shows hidden DIVs when the id of a select form matches the div's ID:</p> <pre><code>$(document).ready(function(){ $('select[name$="_77"]').change(function() { $(".select_77").hide(); $(".select_77[id='" + this.value + "']").show(); }) }) </c...
javascript jquery
[3, 5]
792,837
792,838
jQuery scroll fails for iframe (firefox)
<p>I cannot get scroll to work, here is the complete stuff: <a href="http://zed.mit.edu/scroll2/buc.php" rel="nofollow">http://zed.mit.edu/scroll2/buc.php</a></p> <p>I'm trying to refresh the page while maintaining the scroll position of the iframe inside.</p> <p>I'd like to have an alert when I actively scroll the ...
javascript jquery
[3, 5]
5,840,799
5,840,800
Difference between these two things
<p>I have a doubt regarding this writing this below statement </p> <ol> <li><p><code>&lt;script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"/&gt;</code></p></li> <li><p><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"/&gt;</code></...
asp.net jquery
[9, 5]
137,824
137,825
Problems running a Java program from within PHP
<p>I'm writing a PHP script that basically calls a Java program with a string, has Java create a file whose name is that string, and returning that file. Also, it's all midi.</p> <pre><code>$output_file = mt_rand(10000000,99999999) . ".mid"; system("java MCS " . $_FILES["file"]["tmp_name"] . " " . $output_file . " " ....
java php
[1, 2]
3,578,136
3,578,137
jQuery Drag and Drop List WITHOUT reordering
<p>I am trying to find or create a javascript based drag and drop list interaction unlike the standard reordering case. In my situation, I need to have it such that dragging a row with data onto another row with data will swap the two, and dragging a row with data onto an empty row will move it to the drop target.</p> ...
javascript jquery
[3, 5]
341,507
341,508
Having <?php tags inside a js .html() method?
<p>If we have: </p> <pre><code>html('&lt;a href="blabla.org"&gt;go here&lt;/a&gt;') </code></pre> <p>Can we have <code>&lt;?php</code> tags inside inside href on this case, or it's a bad practice? </p> <p>Thanks. MEM</p>
php javascript
[2, 3]
1,789,641
1,789,642
want to show "Loading" text using javascript?
<p>I am using <code>SmtpClient</code>'s <code>Send</code> method in ASP.NET to send email from a contact-us page. While the message is being sent, I want to show a loading image. More specifically, when a user presses the send button to send the email, the loading image will appear, and once the message is sent, the lo...
javascript asp.net
[3, 9]
2,595,113
2,595,114
How to created auto naming concept
<p>Thanks for previous replies,</p> <p>How to compare String with ListArray, and whenever the string match the array list it automatically includes any integer value and this integer value should incremented whenever the search will begins. is this possible to do. </p>
java android
[1, 4]
5,589,358
5,589,359
Asp.Net : Could not load the assembly 'App_Web_default.aspx.cdcab7d2'. Make sure that it is compiled before accessing the page
<p>I am Getting this error when i am uploading it over the web server.</p> <pre><code> Could not load the assembly 'App_Web_default.aspx.cdcab7d2'. Make sure that it is compiled before accessing the page. </code></pre> <p>how could i remove that error???? Thanks......</p>
c# asp.net
[0, 9]
932,143
932,144
Value does not fall in expected range
<p>When creating simple control I am getting this error, I have no clue why this is occurring.</p> <p><img src="http://i.stack.imgur.com/98Mum.png" alt="enter image description here"></p> <p>For any control it is giving same error.Please help me out from this.</p> <p>Here is the code : </p> <pre><code>&lt;asp:Label...
c# asp.net
[0, 9]
3,651,495
3,651,496
How can I store the int ID of a drawable in an XML TypedArray
<p>My goal is to store all the int IDs of certain drawables in a TypedArray, so that I can access the IDs in sequential order. For instance:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;resources&gt; &lt;array name="bitmap_ids"&gt; &lt;item&gt;@drawable/icon1&lt;/item&gt; ...
java android
[1, 4]
5,736,484
5,736,485
Refresh js and css every session
<p>i want that a user make the login, the js and css are force to refresh themself</p> <p>How can i do?</p> <p>Thanks</p>
c# asp.net
[0, 9]
1,495,139
1,495,140
fire css change before end of code
<p>I'm sure this question has already been asked, but I can't found the good keyword to feed google with. I can't even find a good title for my question. I want to do this :</p> <pre><code>$(".selector").click(function() { $(this).css("background-color", "red"); if (confirm("Do you want to do this ?") { ...
javascript jquery
[3, 5]
3,473,767
3,473,768
what's the best way to add a class to the div with a class of post every 4 seconds using jquery?
<p>what's the best way to add a class to the div with a class of post every 4 seconds using jquery?</p> <pre><code>&lt;div class="34 post"&gt; &lt;img width="311" height="417" src="#" class="#" alt="newspapers" /&gt; &lt;h2&gt;&lt;a href="#"&gt;Headline News Part 2&lt;/a&gt;&lt;/h2&gt; &lt;p&gt;testing new content&lt;...
javascript jquery
[3, 5]
1,544,587
1,544,588
This difference
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/1051782/jquery-this-vs-this">jQuery $(this) vs this</a> </p> </blockquote> <p>This code in this <a href="http://jqueryfordesigners.com/jquery-look-tim-van-damme/" rel="nofollow">video Tutorial</a></p> <p>in a V...
javascript jquery
[3, 5]
271,465
271,466
Execute an event when everything is clicked except one element?
<pre><code>'&lt;div class="lightbox-con"&gt; &lt;div class="lightbox-shade"&gt;&lt;/div&gt; &lt;span class="logo"&gt;&lt;/span&gt; &lt;div class="controls"&gt; &lt;span class="arrow back"&gt;&lt;/span&gt;&lt;span class="close"&gt;&lt;/span&gt;&lt;span class="arrow forward"&gt;&lt;/span&gt; ...
javascript jquery
[3, 5]
1,630,210
1,630,211
How to find the position of the certain element inside a div?
<p>I am trying to find the image position inside my div</p> <p>my Html</p> <pre><code>&lt;div&gt; &lt;p&gt;test&lt;/p&gt; &lt;img src='test1.jpg'/&gt; &lt;p&gt;test&lt;/p&gt; &lt;p&gt;test&lt;/p&gt; &lt;img src='test2.jpg'/&gt; &lt;p&gt;test&lt;/p&gt; &lt;img src='test2.jpg'/&gt; --the user click...
javascript jquery
[3, 5]
273,343
273,344
Check if css class is contained in div
<p>For this div: </p> <pre><code>&lt;div class="table room"&gt; &lt;/div&gt; </code></pre> <p>Is it possible to use the <code>attr</code> parameter to check if the div contains the CSS class "room"?</p>
javascript jquery
[3, 5]
2,254,742
2,254,743
Jquery get the key/value - key from asp drop down
<p>I have the following in my code:</p> <pre><code> &lt;asp:DropDownList id="City" runat="server"&gt; </code></pre> <p>I tried using the following to get the key from the key value but it shows up as undefined although I selected from the dropdown</p> <pre><code> var city = $("#city option:selected").val(); ...
jquery asp.net
[5, 9]
5,337,895
5,337,896
How to get a number from the Call log and use it to save to an Object - Android
<p>From the android device i do need to select a number from the CAll Log and use it to set in my own object . I am looking at CallLog.Calls but only outgoing is provided?</p>
java android
[1, 4]
2,305,539
2,305,540
NoSuchMethod error for ImageView.setColorFilter
<p>So I have a ListView that color codes an icon based on the priority of each item in the list. For example, priority 1 workorders have a red workorder icon. Priority 2 = yellow, etc.</p> <p>I use ImageView.setColorFilter(Color.whatever) to change the color of the icon and it works great on my Samsung Galaxy Tab and ...
java android
[1, 4]
4,536,441
4,536,442
Help in Converting Small Python Code to PHP
<p>please i need some help in converting a python code to a php syntax the code is for generating an alphanumeric code using alpha encoding</p> <p>the code : </p> <pre><code>def mkcpl(x): x = ord(x) set="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" for c in set: d = or...
php python
[2, 7]
3,661,177
3,661,178
jQuery :cant use split function
<p>I am using jQuery autocomplete pluggin .</p> <p>I have the following code</p> <pre><code>$().ready(function() { function findValueCallback(event, data, formatted) { $("&lt;li&gt;").html( !data ? "No match!" : "Selected: " + formatted).appendTo("#result"); } </code></pre> <p>});</p> <p>I am trying to split the...
javascript jquery
[3, 5]
1,577,195
1,577,196
Load function is not working after satisfying if condition in jQuery
<p>In the code below, the if condition is working as I have checked with an alert but load function is not working.</p> <p>My code:</p> <pre><code>$("a").click(function() { hreff = $(this).attr('href'); if(hreff == "something" ) { $("#dump").load("someurl"); } }); <...
javascript jquery
[3, 5]
4,403,793
4,403,794
Multiple Ajax loading indicators on 1 page
<p>I have a page with 2 separate forms that can be submitted via Ajax (jQuery). For each of these forms I'd like to show a loading indicator to the user. I have found a nice piece of code that can easily show these icons, but it only works when there's 1 form.</p> <pre><code>$('.ajaxloader').hide().ajaxStart(function ...
javascript jquery
[3, 5]
3,200,638
3,200,639
jquery how to check if browser tab/window the selected is on our page?
<p>How do check if a the user has the browser's tab/window currently on our page</p> <pre><code>function userisonourpage() { //do something } </code></pre> <p>And when a user switches the tab/window to our page ?</p> <pre><code>function tabswitched() { //dom something here too } </code></pre> <p>Just like in many p...
javascript jquery
[3, 5]
5,252,793
5,252,794
How to convert Binary data from database to String(text)
<p>I have uploaded my MS word file in Database in binary format. I am able to retrive it back. But I am planning to open up the word file in read only mode. I have done much operations on the file which I have stored in databse like trackrevisions,protection etc. Now I just want only one thing to happen. I want to conv...
c# asp.net
[0, 9]
5,153,281
5,153,282
How to obtain the current time differences between two timezones
<p>I want to calculate the current time differences between US/Central timezone and British Summer Time. I mean, currently these both timezones have daylight savings going on, so they have a 6 hours time difference. But after Sunday October 31 2010, daylight savings will be off for British summer time, at which moment ...
c# asp.net
[0, 9]
459,101
459,102
How do I make a jquery modal always centered on the page?
<p>I've see than this is the problem with most jquery modal popup boxes. So i'm wondering, is there any jquery code that will keep the jquery modal always centered in the page? I know this can be achieved with pure javascript code but what about jquery? </p>
javascript jquery
[3, 5]
3,468,263
3,468,264
Jquery getting list of values of hidden inputs within a div
<p>I am trying to get a list of values within a div that I will format later using the .each() method. They are input values which are hidden my html and jquery call looks like this.</p> <pre><code>&lt;div id="container_0"&gt; &lt;input type="hidden" id="check_data" value=10&gt; &lt;input type="hidden" id="check...
javascript jquery
[3, 5]
5,554,174
5,554,175
A single Validation across whole application
<p>I have an appliaction in which there are multiple text fields in one jsp , and there are many jsp which contain such text fields. Right now , i have the validation function which is called for every text box. Now i want to have a single validation (say allowing only ascii characters) across every text box by calling...
java javascript
[1, 3]
4,298,787
4,298,788
Reduce jQuery functions
<p>Is there a way to reduce jQuery to functions that I need.</p> <p>In this case, I only want to use getJSON with the callback function. I don't need anything else of jQuery. Is there any way to cut this out?</p> <p>Thanks, Mike</p>
javascript jquery
[3, 5]
352,758
352,759
Why can't I send data from c# to Javascript file in asp.net?
<p>I have a list of a class created in c# that I have to send its values to a javascript file. I have created a string in c# and put the values of the list in it:</p> <pre><code>count = 0; JString = "["; for(i=0; i&lt;x; i++) { JString += "{Source:" + A[i] + ", Number:" + 3 + ", Target:" + B[i] + "},"; count++...
c# javascript asp.net
[0, 3, 9]
5,307,863
5,307,864
The click event does not seem to work with a select element in IE
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/2895608/click-trigger-on-select-box-doesnt-work-in-jquery">Click trigger on select box doesn&#39;t work in jQuery </a> </p> </blockquote> <p>I am trying to do the following to simulate a click on a select elemen...
javascript jquery
[3, 5]
2,223,379
2,223,380
How do I run a function only when a div gets loaded?
<p>I want to run a function only when a div gets loaded.</p> <p>When I load the page, a number of files are loaded. At the end of the list, PHP echoes a div. When this one is displayed, jQuery should run a function.</p> <p>I can do this with a click-event, but I want it to work automatically, without pushing a button...
php javascript jquery
[2, 3, 5]
2,592,936
2,592,937
Decimal digit problem
<p>On Asp.Net, in my textbox, i do not want to enter after zero three numbers. For example if you enter textbox 0.222 it should be 0.22. After 0.22 you should not enter anything. How can i make this?</p> <p>Thanks</p>
c# javascript jquery asp.net
[0, 3, 5, 9]
5,545,955
5,545,956
$(this) in plugin options
<p>I'm new to writing jQuery plugins, and I'm confused as to how to let users use $(this) in their options. As a simple (and redundant) example, say I wanted to let a user append their selection's text to an element they supply in their options, like so:</p> <pre><code>$(function() { $('#stuff').appender({ 'placeme...
javascript jquery
[3, 5]
4,277,477
4,277,478
Callback failing if contains ajax
<p>I'm trying to add a callback to a pre existing function in the jquery plugin nitelite <a href="https://github.com/premasagar/nitelite" rel="nofollow">https://github.com/premasagar/nitelite</a> - The callback works fine <a href="http://jsfiddle.net/HPc4e/2/" rel="nofollow">http://jsfiddle.net/HPc4e/2/</a> - unless I ...
javascript jquery
[3, 5]
5,998,772
5,998,773
Using the EventArgs
<p>what is the java equivalent method "getSource()" in C# language</p> <pre><code>public void actionPerformed(ActionEvent e) { if(e.getSource().equals(button1)){ //some code here } } </code></pre>
c# java
[0, 1]
2,724,772
2,724,773
Post jQuery dialog values to server in ASP.NET
<p>I'm new to jQuery. I've got a dialog with several input boxes in it. I want the user to be able to hit a button and have the values posted back to the server - idealy to be picked up in a server event. What are the ways to achieve this?</p> <p>Many thanks.</p>
asp.net jquery
[9, 5]
2,418,687
2,418,688
word processor in c# or c++
<p>I learned C Sharp for one purpose, to write a word processor that includes my needs. For example that you could play with the spaces between words, and the spaces between the lines, raise one word higher from the row, and many other similar things. When I start working on it in c# - winForms I see the possibilities ...
c# c++
[0, 6]
1,590,370
1,590,371
How to implement Windows service kind of infrastructure in ASP.NET
<p>I have limitations to host Windows Services in my web hosting provider. But i need run small task frequently.</p> <p>Do we have any other framework/api which provides similar infrastructure like "Windows Services" from ASP.NET?</p>
c# asp.net
[0, 9]
305,428
305,429
Learning how to program real things
<p>How would you guys recommend I actually learn to program real things?</p> <p>I mean, I know how to do basic academic things. I can implement a templated stack/queue/map/etc. data structure in C++ or Java or whatever. I can make a text-based hangman game or whatever. Etc etc.</p> <p>But how can I learn to program s...
java c++
[1, 6]
5,407,738
5,407,739
jquery increase by 1
<p>Afternoon,</p> <p>I would like to increase the number in this code by 1 for each question displayed.</p> <pre><code> new_question = "&lt;div id=\"" + res.qId + "\"&gt;" + "&lt;h1&gt;Question 1&lt;/h1&gt;" + "&lt;p&gt;&lt;i&gt;" + res.question + "&lt;/i&gt;&lt...
javascript jquery
[3, 5]
1,921,953
1,921,954
Use jquery to keep adding numbers to a variable on click
<p>I'd like to know how to keep adding number to a varible. For instance the number starts at 0 then every time you click the button it adds 20. So the first click would change the variable to 20 then the next click 40. This is as far as I can get..</p> <pre><code>var n = 0; $('#button).live('click', function() { ...
javascript jquery
[3, 5]
4,384,313
4,384,314
Retrieving iframe contents after a form submitted to it
<p>I have a form with an iframe as its target, and I want to retrieve its contents after the form has been submitted.</p> <p>The problem is if I do something like: </p> <pre><code>$('form').submit(function (e) { e.preventDefault(); var content = $('iframe').contents(); }); </code></pre> <p>I get nothing beca...
javascript jquery
[3, 5]
5,503,206
5,503,207
jquery display image
<p>I'm trying to learn jquery. So, first I thought of validating a textbox and check if its length is less than 4 display a stop image adjacent to it.Otherwise, if it is greater than 4 display tick image. SO, i did this</p> <pre><code> $(document).ready(function () { $('#' + '&lt;%= tbstreet1.ClientID %&gt;')....
jquery asp.net
[5, 9]
4,467,527
4,467,528
Response.AddHeader attachment doesn't work
<p>here's the code I have:</p> <pre><code> Response.Clear(); Response.AddHeader("content-disposition", "attachment; filename=file.xlsx"); Response.ContentType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"; Response.BinaryWrite(pck....
c# asp.net
[0, 9]
431,394
431,395
How to clip text in android canvas?
<p>I'm creating kids learning application in android. I created Imageview on which text is displayed and i applied canvas for Imageview so i can able to paint on whole canvas. Upto this working fine.</p> <p>Now my problem is i have to clip the text present in canvas imageview. I know to clip the region with shapes li...
java android
[1, 4]
4,638,017
4,638,018
Javascript this in jQuery
<p>I saw some old code that had:</p> <pre><code>&lt;input type="submit" name="submit" onsubmit="somefunction(this)" /&gt; </code></pre> <p>I was jQuery'ing the script, how do I get the pure javascript (this) object in jQuery?</p> <pre><code>$("input[name=submit]").click(function() { somefunction(// ?? is it $(this...
javascript jquery
[3, 5]
1,702,308
1,702,309
Who passed the "args" to the main method?
<p>I tried to run a small c# and java program (using VS and NetBeans not from the command line) and print the value of the args[0] but I got an <code>IndexOutOfRangeException</code>.<br/> I know that the <code>args</code> is for passing in command line parameters but it is <strong>still</strong> in the main method any ...
c# java
[0, 1]
5,908,217
5,908,218
How to access a server side variable in the databound event of the formview
<pre><code> protected void dvUserMaster_DataBound(object sender,EventArgs e) { string CustCreatedBy = DataBinder.Eval(e.ToString(),"strcustomer_name").ToString(); string EmpCreatedBy = DataBinder.Eval(e.ToString(), "stremployee_name").ToString();} </code></pre> <p>strcustomer_name is the string which i want to ...
c# asp.net
[0, 9]
2,559,776
2,559,777
Will this code work? Javascript/asp.net (Code not working)
<pre><code> &lt;td class="style4"&gt; &lt;input type="text" ID="txtFirstName" runat="server" maxlength="50" class="DefaultTextbox" style="width:180px;" value="First Name" onfocus="if(this.value=='First Name') {this.value = '';document.getElementById('spanFirstName').visible=f...
asp.net javascript
[9, 3]
5,888,996
5,888,997
jQuery .index() in javascript
<p>As per the jQuery api, the complementary operation to .get(), which accepts an index and returns a DOM node, <code>.index()</code> can take a DOM node and returns an index. Suppose we have a simple unordered list on the page:</p> <pre><code>&lt;ul&gt; &lt;li id="foo"&gt;foo&lt;/li&gt; &lt;li id="bar"&gt;bar&lt;...
javascript jquery
[3, 5]