Unnamed: 0
int64
302
6.03M
Id
int64
303
6.03M
Title
stringlengths
12
149
input
stringlengths
25
3.08k
output
stringclasses
181 values
Tag_Number
stringclasses
181 values
5,574,291
5,574,292
How to make android phone silent in java
<p>Hi I am new to android development. I am trying to make my android phone silent using java. After searching google I found some examples but they didnt workd for me. Here is my code.</p> <pre><code>package com.zafar.silent; import android.app.Activity; import android.content.Context; import android.media.AudioMana...
java android
[1, 4]
1,175,135
1,175,136
Tables: selected rows and loop through column JQuery&JavaScript
<p>I have two questions :)</p> <ol> <li><p>Im using Jquery to select table rows and checkbox in the first column, how can I make 2 and 7 columns not clickable. I mean if you click 7 column's cell, it will not select checkbox and will not add 'selected' class.</p> <pre><code>$('#tableID tbody tr') .filter(':has(:c...
javascript jquery
[3, 5]
1,346,453
1,346,454
Checking if jquery is loaded using Javascript
<p>I am attempting to check if my Jquery Library is loaded onto my html page. I am checking to see if it works, but something is not right. Here is what I have.</p> <pre><code> &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt; &lt;head&gt; &lt;script type="text/javascript" src="/query-1.6.3.min.js"&gt;&lt...
javascript jquery
[3, 5]
1,924,138
1,924,139
Android SQLite sync updates from server
<p>I just wanted some advice. I have an app with a database that will be updated once a week. In my opinion there is no point having users download the app again each week. Nor is there a reason for the entire database to be downloaded once a week.</p> <p>My idea is to send a request to a server every time the app is ...
java android
[1, 4]
1,093,025
1,093,026
How to set more than one alarm for calendar events in android?
<p>I have already worked on calendar events and for each event the alarm should ring with notification. The problem i face is, If i set more than one event, the last set event is alone notifying the user with alarm. But all the other events doesn't ring alarm. Any Help is appreciated and thanks in advance...</p>
java android
[1, 4]
383,220
383,221
developing cross platform games for android and iPhone?
<p>I know this question has been asked before but I really couldn't find anything that would suit my needs..So I want develop a 2d game that is something like Draw Something. the game is not really heavy on graphics or anything like that so what is the best Development enviroment for my game thanks</p>
android iphone
[4, 8]
683,383
683,384
Add random number to .css so it doesn't cache
<p>I'm trying to get the styles.css to not cache as the server is having issues with the css when it caches.</p> <pre><code>&lt;script&gt; var numBAH = Math.floor(Math.random()*100); &lt;/script&gt; &lt;link href="styles.css+ numBAH +" rel="stylesheet" type="text/css" /&gt; </code></pre>
javascript jquery
[3, 5]
5,791,659
5,791,660
Android app crashing at starup
<p>I have written a quick android add to display the SSID of the wifi network connected to along with the device ip address. the code is: </p> <pre><code>public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); Context context = ge...
java android
[1, 4]
4,010,548
4,010,549
How a HTTP server respondes to a client's request
<p>could you please give me a sample code on how an Http Server(Java) receives the request of a client(android)? I mean the client sends the request via Httppost, how the server takes the content of these requests in order to see the context and reply? I am trying to built a chat application.</p> <p>Thank you in advan...
java android
[1, 4]
3,147,335
3,147,336
when i click on anchor i need to enable text field
<p>I have a anchor tag, with id="click_me". When i click on this i should enable input text (<code>&lt;input type="text" id="summary" class="summary"&gt;</code>), which is disabled first.</p> <p>even i can do it using javascript function, by calling these javascript function() using onclick in the tag; but in my appl...
php javascript jquery
[2, 3, 5]
4,687,840
4,687,841
Issue while access contacts of android
<p>I am new for android development. I am trying read and write contacts to android addressbook.</p> <p>I tried following line of code for write name into android</p> <pre><code>public class SecondApp extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInsta...
java android
[1, 4]
3,131,537
3,131,538
Setting active class for navigation
<p>I have a separate navigation php which has a list of links and menu options:</p> <pre><code> echo "&lt;ul id='menu'&gt;"; //some if loop to do the following: echo "&lt;li&gt;&lt;a href='#'&gt;Adminstration&lt;/a&gt; &lt;ul&gt;&lt;li&gt;"; if($userm == 'R'||$userm == 'RW') { ...
php javascript jquery
[2, 3, 5]
5,861,175
5,861,176
Post from PHP page to Java program and output result
<p>I have a PHP page on one server, which asks for some login details from a user. </p> <p>I then have a Java application on another server.</p> <p>I am trying to POST the results from the login form to the Java application, then respond with a yes/no as to whether the details were correct. </p> <p>Whats the simples...
java php
[1, 2]
1,645,902
1,645,903
HTML table porting to SQL
<p>Is there anyway i can extract data from a HTML table (i tried jsoup) and then save it in SQL for further use and displaying? It's actually a timetable for my classes.</p>
java android
[1, 4]
5,967,347
5,967,348
asp.net + Code behind send table rows to Javascript
<p>I am trying to send some table row data from code behind to process in my Javascript but I get an error in my console: </p> <pre><code>Uncaught TypeError: Object &lt;tr&gt;&lt;td&gt;usr1&lt;/td&gt;&lt;td &gt;Z&lt;/td&gt;&lt;td&gt;40&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;usr2&lt;/td&gt;&lt;td &gt;G&lt;/td&gt;&lt;...
javascript jquery asp.net
[3, 5, 9]
2,067,016
2,067,017
don't work 'fadeOut' If there is 'replaceWith'.?
<p>When i use of <code>fadeOut</code> and <code>replaceWith</code> together, does not work fadeOut. but if i use only of <code>fadeOut</code> it worked. i want use of each tow they together. how is it in my code?</p> <pre><code>$.ajax({ type: "POST", url: url, data: dataString, cache: f...
javascript jquery
[3, 5]
5,667,980
5,667,981
Show/hide part of external .js file
<p>How can I show/hide the answers for below external .js file using a 'toggle' button ? If I had access to the code I could wrap the answers in a div but since this is an external .js file is this possible ?</p> <p>Heres the fiddle &amp; code : </p> <p><a href="http://jsfiddle.net/Wx5mM/" rel="nofollow">http://jsfid...
javascript jquery
[3, 5]
4,462,898
4,462,899
How can I access buttons using string Ids in ASP.Net?
<p>I am using Asp.Net. I have a page full of buttons and every button has an id example: btn_1_1, btn_1_2 etc. From the code side I have a loop and I am generating the button's Ids as a string using random numbers, example: "btn_1_1", "btn_1_2" etc. . My question is, how I can use this string value to access the button...
c# asp.net
[0, 9]
2,532,706
2,532,707
How to Add PHP Variables in a Jquery Notification
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/7141860/passing-variables-from-php-to-javascript">passing variables from php to javascript</a> </p> </blockquote> <p>I am using <a href="http://dev.thrivingkings.com/read/Sticky-A-super-simple-notification-syste...
php jquery
[2, 5]
2,874,137
2,874,138
split values in arraylist and store in different array list
<p>I am doing a project in android ,and i have a problem My array list values like this</p> <p>[name1, addr1, place1, name2, addr2, place2]</p> <p>How can i split this values and want to store name, address, places in different array list?</p>
java android
[1, 4]
5,614,859
5,614,860
Getting ANDROID_ID Trying to understand the java
<p>I'm still new to programming/Java/Android so I'm trying to understand everything I do and trying to figure out how to properly read the reference section of developer.android.com and so maybe one of you guys can help me out. Thanks in advance</p> <p>These calls get me the ANDROID_ID. They both give me the same outp...
java android
[1, 4]
1,845,736
1,845,737
What's the simplest code to make a dialog box with just text and OK/Cancel buttons on Android 4?
<p>Using Android API 14 or higher, what is the easiest way to make a dialog box? All I want is a few lines of text, OK button, and Cancel button. The Cancel button closes the dialog, the OK button performs some method that I have.</p> <p>The reason I ask is because I'm going through a few different tutorial books and ...
java android
[1, 4]
3,581,020
3,581,021
Validate Licence key on each page request
<p>I have create a web application which I want to sell to various clients with the source code. This application contains a DLL created by me having various methods outof which there is a method named ValidateLicenceKey(). I want this method to be called by each page for valid licence. To do this there are various way...
c# asp.net
[0, 9]
523,539
523,540
How to convert element id in Javascript to jQuery?
<p>i dont know, how to chance this script to jQuery, please help JavaScript</p> <pre><code>function show_t(id){ document.getElementById("hide_t_"+id).style.visibility='visible'; } function hide_t(id){ document.getElementById("hide_t_"+id).style.visibility='hidden'; } </code></pre> <p>this is div element on ph...
php javascript jquery
[2, 3, 5]
3,652,642
3,652,643
How do I draw an image inside an Android master-detail app?
<p>I'm new to android, so bear with me. Yesterday I started up an Android Master Detail project (Default Settings), and started looking around. I located a few lines of code nside com.myname.appname.ItemDetailFragment that looked like they were what was doing the changing of text in the secondary window. The related co...
java android
[1, 4]
901,732
901,733
PHP image rotate looses quality after each rotation
<p>I'm currently using GD and some PHP to rotate images. After each rotation the quality of the image gets worse. Is there a better way to do this or is this expected?</p> <pre><code> $img = new ImageClass; list($original, $info) = $img-&gt;load($src); // Determine angle $angle = strtolower($angle); ...
php jquery
[2, 5]
3,118,710
3,118,711
Cannot reach $(this) from within $().data()
<p>I'm trying to set the class of my element inside a data object of the same element, but it keeps returning undefined.</p> <pre><code>$(this).data({ orgSize:{ // Write all the sizes as data. For future reference. width: $(this).width(), //returns the width just fine! heigh...
javascript jquery
[3, 5]
1,982,908
1,982,909
Help understanding jQuery button enable/disable code
<p>I grabbed this code form JCarousel and just trying to understand these lines below. I'm new to jQuery and not that great at JavaScript so I am not sure what is jQuery and which is JavaScript below</p> <pre><code>this.buttonNext[n ? 'bind' : 'unbind'](this.options.buttonNextEvent, this.funcNext)[n ? 'removeClass' :...
javascript jquery
[3, 5]
5,579,749
5,579,750
Accessing Page properties from Base User Control which gets extened by all user controls
<p>I have a Page with few web user controls in it</p> <p>Page does the following , it extends Icode interface</p> <pre><code> public partial class TestPage: System.Web.UI.Page, ICode </code></pre> <p>// it implements Code implementation here</p> <pre><code>public string Code { get { ...
c# asp.net
[0, 9]
3,299,337
3,299,338
setting asp image src property from javascript
<p>I am trying to set asp image element src property from javascript but the url property is not being set.</p> <pre><code>function slideshow() { $.ajax({ type: "POST", contentType: "application/json; charset=utf-8", url: "/RollingScreen.aspx/GetNextImage", dataType: "json", data: "{}", succe...
jquery asp.net
[5, 9]
5,753,941
5,753,942
JScript or JQuery in Windows
<p>I am a C# developer using Visual Studio, but I'm interested in creating some <strong>JScript</strong> or <strong>JQuery</strong> programs to run on our Windows machines. There is obviously a learning curve I've got to get over.</p> <ul> <li>Will <strong>JQuery</strong> run on a PC, or does it have to run on a web p...
javascript jquery
[3, 5]
2,523,037
2,523,038
Only the last Android app is installed
<p>I have 2 android applications in eclipse, I create the apk and then I copy them to the device and install them. The problem is that only the last one is installed.</p> <p>I install app A. OK</p> <p>I install app B. B is ok but A is gone.</p> <p>What am I doing wrong? What should I change in the Manifest xml?</p> ...
java android
[1, 4]
4,132,482
4,132,483
How can I have a button be disabled with jQuery but also run server code once it's been clicked?
<p>I have a button that will execute a stored procedure. After it's been clicked, I want it disabled so that the user can't click it multiple times. However, once it's been clicked, I also want to run some C# on the server side through an <code>onclick</code> event. As of right now, all my code does is disable the b...
c# jquery asp.net
[0, 5, 9]
3,546,636
3,546,637
jQuery: Foreach element href?
<p>The title sounds confusing.. but im sure this is possible!</p> <p>I have one button, <code>(id='downloadAll')</code> and many <code>&lt;a href="..." class="link"&gt;&lt;/a&gt;</code> on my page. What i want to do, for the purpose of finding out how to do this.. is to do something logic like this.</p> <pre><code>va...
javascript jquery
[3, 5]
4,401,757
4,401,758
trying to find the amount of half hours in between two times
<p>I can't think right now.... i've been trying to figure out how many half hours there are between two variables, which will have the start and end times like so, 1100 and 1430</p> <p>I started doing the following but realized time doesnt go to 100!</p> <pre><code>function process_blocks(startTime,endTime){ var blo...
javascript jquery
[3, 5]
5,862,338
5,862,339
Server.mappath confusion
<p>There is a little confusion in my mind about server.mappath which is correct and what's the difference betwwen these two</p> <pre><code>FileUpload1.saveAs(Server.MapPath("~/User/images/")+"ankush.jpg")); FileUpload1.saveAs(Server.MapPath("~/User/images")+"ankush.jpg")); </code></pre>
c# asp.net
[0, 9]
2,209,810
2,209,811
Setting culture info dynamically
<p>I am building an application in asp.net/c#. For dates in my application, I amm using global variables which give date formats from a given database.</p> <p>So if my <code>DateFormat</code> is British I use:</p> <pre><code>Thread.CurrentThread.CurrentCulture = new CultureInfo("en-GB"); </code></pre> <p>if it is US...
c# asp.net
[0, 9]
5,259,840
5,259,841
How to send table column values from a Javascript page to a C# page using Jquery
<p>I have values that come from a dynamically created table from it's selected rows. inside each selected row i want all the td.innerText values that belong to be sent to a C# page, but i don't know how to. I was using JSON but I dont know if i used it properly.</p> <pre><code>function selectedRows() { var selectedI...
javascript jquery
[3, 5]
64,294
64,295
Why is jQuery not adding the data attribute to this element?
<p>I have a hidden modal box on my page that gets rendered with the call of this create.js file. </p> <p>Everything else is working nicely except for adding a data-meal_id attribute to the element. </p> <p>Here's the jquery:</p> <pre><code>var $modal, $modal_close, $modal_container, $meal_id; $modal = $('#modal'); $...
javascript jquery
[3, 5]
5,573,798
5,573,799
jQuery/Javascript will chaining be the solution?
<p>dummy.html:</p> <pre><code>&lt;button id="do"&gt;Do&lt;/button&gt; </code></pre> <p>external.js:</p> <pre><code>$("#do").click(function() { history.go(-1); alert('One page back'); history.go(1); alert('back from were you started'); }); </code></pre> <p>Will execute history.go(-1); and end.</p> <p>In the...
javascript jquery
[3, 5]
5,293,334
5,293,335
How to run/execute form in a PHP page loaded in another using Javascript .load() without refreshing the parent PHP page?
<p>Sorry for the very long title but it's exactly what I'm looking for.</p> <p>I have a PHP page (let's call it the parent page) that loads another (the child page) in one div with the following code:</p> <pre><code>$("#compose_inputandoptions").load("compose_inputandoptions.php"); </code></pre> <p>In the child page...
php javascript jquery
[2, 3, 5]
1,190,475
1,190,476
need help with jQuery when not hovering over a particular element
<p>I am having a navigation div (the id is navigation) i am thinking of writing a code that executes when i am not hovering over the navigation. Can somebody explain me how can that be possible with jQuery.</p> <pre><code> &lt;ul id='navigation'&gt; &lt;li&gt;a&lt;/li&gt; &lt;li&gt;b&lt;/li&gt; &lt;li&gt;c...
javascript jquery
[3, 5]
5,537,673
5,537,674
How to resolve conflict issues with jQuery + other libraries
<p>Can someone help me figure out how to write a no conflict function for js for my weebly website.</p> <p><a href="http://cadogan.weebly.com/big-name.html" rel="nofollow">http://cadogan.weebly.com/big-name.html</a> </p> <p>Thank you.</p>
javascript jquery
[3, 5]
876,051
876,052
How to get last few characters of varying length from a string ..?
<p>I have a multiple string urls, from which i have to pick last few characters, which are id's infact. But the problem is that, the length of id's is not consistent, i.e., if one id is of length 6 then, other may be of length 5 or 4 and so on. The sample urls are like:</p> <pre><code>www.abc.com/xyz-123456 www.abc.co...
java android
[1, 4]
3,056,243
3,056,244
how to Highlight being read words in text to speech asp.net?
<p>I'm am building a web app and need a text to speech which highlights the text being read at the moment. I built the text to speech but don't have any idea how to tackle the highlighting of text are there any tips or functions for this problem? 10x a lot.</p>
c# asp.net
[0, 9]
5,995,019
5,995,020
Java: ClassName.this
<p>I am doing Android programming and was learning about Intents, when I saw a constructor that, to my C# trained mind, seemed funky. The call was: </p> <pre><code>Intent myIntent = new Intent(CurrentActivity.this, NextActivity.class); </code></pre> <p>Both of the parameters are new to me. How is there a static ".t...
java android
[1, 4]
834,094
834,095
Deleting from an array based on a string value
<p>I have defined an array like so : </p> <pre><code>var myArray = {myNewArray: ['string1' , 'string2' , 'string3']}; </code></pre> <p>I want to iterate over the array and delete an element that matches a particular string value. Is there a clean way in jQuery/javascript to achieve this ?</p> <p>Or do I need to ite...
javascript jquery
[3, 5]
912,695
912,696
Problem in submiting 2 forms with one function?
<p>I have facing problem to submit two form whit one javascript function..</p> <p>In that I have called one ajax file to check the username availability.</p> <p>The forms are as below</p> <pre><code>&lt;form action="abc.php" method="post" enctype="multipart/form-data" onsubmit="return isValid(this)" class="login_for...
php javascript
[2, 3]
3,702,382
3,702,383
use jquery to remove element from parent
<p>i have a form with multiple div elements like this</p> <pre><code>&lt;div&gt; &lt;label for="id"&gt;text&lt;/label&gt; &lt;input type="text" name="id" id="id" value=""&gt; &lt;/div&gt; &lt;div&gt; &lt;label for="id1"&gt;text&lt;/label&gt; &lt;input type="text" name="id1" id="id1" value=""&gt; &lt;/div&gt; </code></...
javascript jquery
[3, 5]
5,126,754
5,126,755
How can I automatically turn an IEnumerable<T> into a csv file?
<p>I am trying to create a user control that accepts any generic list so I can iterate through it and create a CSV export. Is it possible to expose a public property that can accept any type? (i.e. <code>List&lt;Product&gt;</code>, <code>List&lt;Customer&gt;</code>, etc.) If yes, how?</p> <pre><code>public IEnumerable...
c# asp.net
[0, 9]
3,444,296
3,444,297
Setting minimum date to date picked in previous datepicker
<p>I have two date pickers. A <code>startdate</code> and an <code>enddate</code>.</p> <p>The way I have the code set up is that the second datepicker won't be initiated until the first one has been changed. The <code>enddate</code> datepicker is initialized with the current date on <code>startdate</code>. The only pro...
javascript jquery
[3, 5]
20,918
20,919
Android Webview caching works in version 4.0.x but not in 2.3.3
<p>I am facing a very strange issue. My jquery webview works offline in browsers and in <code>android version 4.0.x</code>. However, it does no work offline in lower versions. </p> <p>Code for setting cache mode :</p> <pre><code>if(isConnected) { webView.getSettings().setCacheMode(WebSettings.LOAD_DEFAULT); } els...
java android
[1, 4]
2,239,071
2,239,072
New row inserted for each page refresh
<p>Hi I'm getting a strange problem while inserting records into database. In my button click event I'm trying to insert some values into my database it is working fine. Once insertion is completed... again if I press F5 or refresh the browser a new row is getting inserting with the previous values in the table.</p> <...
c# asp.net
[0, 9]
5,426,621
5,426,622
how to Put add in our android application
<p>I have created an application for admob, but I am getting an error. I found an example from Google and I have tried it, but there is a problem when I'm launching the application .</p> <p>I'm using Android 2.2 API 8. I am able to launch the application, but this block is causing an error.</p> <pre><code>android:con...
java android
[1, 4]
365,581
365,582
is it possible refresh gridview when change table in DB?
<p>Refresh the Grid Automatically when table changes in the DB </p> <p>like twitter and other facebook .</p> <p>how to do this using any asp.net controls using c#</p>
c# asp.net
[0, 9]
4,752,176
4,752,177
Android DroidDao Database Manager: My code or theirs?
<p>I am using DroidDao in my Android App for a persistent SQLite database.</p> <p>I have a Connection table:</p> <pre><code>PART_ID GPS_ID SAND_ID </code></pre> <p>I am having issues with two functions in this library:</p> <pre><code> /**Get an Object by clause*/ public T getByClause(String clause, String[] ...
java android
[1, 4]
1,754,223
1,754,224
Find if a cell contents appears more than once
<p>I have a table body that looks like the following: </p> <pre><code>&lt;tbody&gt; &lt;tr class="basket_main"&gt; &lt;td class="basket_item"&gt; &lt;input type="text" class="basket_qty_txt" id="ctl00_ctl00_main_body_content_main_content_area_shopping_basket_ctl01_txt_qty_162" value="3" name="c...
javascript jquery
[3, 5]
5,402,208
5,402,209
jQuery selection with dynamic id's
<p>I have a form that is dynamically generated, and has dynamically generated id's (and potentially classes). The forms are the same but they have the related id tacked on to the end.</p> <p>How can I select each set of inputs and apply code to each one?</p> <p>I was experimenting with $('input[id^=@id_airline_for_]'...
javascript jquery
[3, 5]
5,555,127
5,555,128
Rotate images, if last image then hide
<p>I have 3 images that I want to rotate when a button is clicked.</p> <p>image1, image2, image3.</p> <p>If the image is at image1, then when clicked it should show image2 (and so on, in order of image1, .., image3).</p> <p>When I am at image3, it should then hide the image, i.e. don't display it.</p> <p>I need som...
javascript jquery
[3, 5]
4,348,849
4,348,850
Android more option menus aint appearing as grid
<p>I have like 10 or 12 option menus, when I press menu key, 6 menus appear as grid including More, but when clicking More menu, the rest of menus appear as list. How can I make them look like grid too ?</p>
java android
[1, 4]
1,244,024
1,244,025
Converting to Datetime issue
<p>I am trying to convert this content into DateTime.</p> <pre><code> DateTime dtmNextPayment = Convert.ToDateTime(DateTime.Now.AddMonths(1).Month.ToString() + "/" + DateTime.Now.Day.ToString() + "/" + DateTime.Now.AddYears(1).Year.ToString()); </code></pre> <p>Here, i get an exception "String was not recognized as a...
c# asp.net
[0, 9]
4,690,059
4,690,060
Passing a querystring value through a javascript window.open
<p>I need to pass the pass value stored in a asp hiddenfield to a querystring using the window.open.</p> <pre><code>onclick="window.open('../New/FeedbackV4.aspx','FeedbackWindow','width=960,height=640,scrollbars=yes,resizable=yes,status=yes')" </code></pre> <p>I need to get the value of the hidden field and pass it a...
javascript asp.net
[3, 9]
1,829,814
1,829,815
Reset hidden items from previous search
<p>I am trying to implement search in Javascript for my application, and I'm running into an issue where items I previously hid will not show up again. <a href="http://jsfiddle.net/for3v3rforgott3n/Y5w5r/9/" rel="nofollow">JSFiddle</a></p> <p>My code is here:</p> <pre><code>$('#search').keyup(function() { var val...
javascript jquery
[3, 5]
5,751,782
5,751,783
ASP.NET beginner question: How do I implement something like this is my ASP.NET C# website?
<p>I want to create an FAQ page like the one on this website</p> <p><a href="http://www.microsoft.com/windows/windows-7/faq.aspx" rel="nofollow">http://www.microsoft.com/windows/windows-7/faq.aspx</a></p> <p>When you click on the question, the answer expands. Click it again and it collapses.</p> <p>My question, answ...
c# asp.net
[0, 9]
5,213,055
5,213,056
How can i show a jquery popup on PageLoad??
<p>I am trying to use jquery to open a popup on Pageload. I guess this is what i should use to show the popup after a button click in an Asp.Net application. How do i get the popup on Pageload. </p> <pre><code>$(document).ready(function(){ $("#button").click(function(){ centerPopup(); loadPopup(); }); }...
jquery asp.net
[5, 9]
3,133,869
3,133,870
jQuery Fadeout on Click or after delay
<p>I am displaying a message box on a website. I would like to be able to have it either fadeout on click or after X seconds. The problem is that the <code>delay()</code> function takes the place over the <code>click()</code> function making it so even if you click close you still have to wait the time. </p> <p>Here i...
javascript jquery
[3, 5]
2,656,629
2,656,630
How to scroll to a part of the page using jQuery?
<p>My code scrolls the user to the bottom of the page:</p> <pre><code>var $elem = $('body'); $('html, body').animate({scrollTop: $elem.height()}, 800); </code></pre> <p>How can it be modified to take the user to the part of the page where there is a h3 tag with the id "myTitle":</p> <pre><code>&lt;h3 id="myTitle"&gt...
javascript jquery
[3, 5]
2,767,433
2,767,434
Calling JavaScript Function From CodeBehind
<p>I am new to JavaScript Programming and C# Programming. Can someone provide good examples of calling a Javascript function From CodeBehind and ViceVersa.</p> <p>Thank You</p>
c# javascript asp.net
[0, 3, 9]
1,544,271
1,544,272
reuse code when binding to click
<p>Given the following:</p> <pre><code> $(document).ready(function() { $('a.went-cold-turkey').click(function() { $("body").css("cursor", "progress"); var activity_day = this.rel; $.ajax({ url: this.href, type: "GET", cache: false, success: function (html...
javascript jquery
[3, 5]
3,678,478
3,678,479
Passing a variable to a function
<p>I have a variable declared:</p> <pre><code>var recent; </code></pre> <p>And I wrote a function which needs the variable passed into it. However, I believe what is happening is the variable is being passed as a string. The var is represented by <code>thisVar</code>:</p> <pre><code>function detachVariable(thisDiv, ...
javascript jquery
[3, 5]
4,193,425
4,193,426
changing window.beforeunload message
<p>I'm wondering if can I change the <code>window.beforeunload</code> message. All examples on the internet are similar to this:</p> <pre><code>$(window).bind('beforeunload', function() { return 'You have unsaved changes. If you leave the page these changes will be lost.'; }); </code></pre> <p>That's cool, and i...
javascript jquery
[3, 5]
589,764
589,765
Finding the data inside a word document
<p>In my project which I'm doing, I have to find if my word document consists of any image or table. Is there any way to do that using c# code. I couldn't find any code related to this.</p> <p>Thanks in advance</p>
c# asp.net
[0, 9]
2,176,859
2,176,860
Jquery | Function inside same function. It bad practice?
<p>I am using this function for easiness, as I am going to use fadeTo a lot:</p> <pre><code>function fade_to(div, speed, opacity, after_fade) { $(div).fadeTo(speed, opacity, after_fade); } </code></pre> <p>Then I am calling the same function for after_fade parameter:</p> <pre><code>fade_to('#div', 3000, 1, funct...
javascript jquery
[3, 5]
1,726,053
1,726,054
Separate web links from paragraph into a JS array
<p>I checked all answers above to see if mine was answered , please don't tag this as duplicate</p> <p>In the application that i am building there is a div </p> <pre><code>&lt;div class="paragraphlink"&gt; &lt;/div&gt; </code></pre> <p>I am allowing users enter any text like this</p> <blockquote> <p>Räikkönen was...
javascript jquery
[3, 5]
4,427,566
4,427,567
Teechart Colorline Problem
<p>I have a problem with Teechart. I want to draw in X axes. My code:</p> <pre><code>Steema.TeeChart.Tools.ColorLine colorLine = new Steema.TeeChart.Tools.ColorLine(oDynamicChart.Chart); colorLine.Active = true; colorLine.Axis = oDynamicChart.Chart.Axes.Left; colorLine.Pen.Color = Color.Green; colorLine.Pen....
c# asp.net
[0, 9]
5,080,732
5,080,733
why does this script not work in IE6?
<p>I've been working on and off on a horizontal accordion. It's not working perfectly at the moment but i've just got to change a few bits. The code is very rough and I intend to make it a bit more graceful once it works.</p> <p>It functions perfectly in every browser apart from ie6..initially when it loads in the pag...
javascript jquery
[3, 5]
2,906,043
2,906,044
how to Highlight being read words in text to speech asp.net?
<p>I'm am building a web app and need a text to speech which highlights the text being read at the moment. I built the text to speech but don't have any idea how to tackle the highlighting of text are there any tips or functions for this problem? 10x a lot.</p>
c# asp.net
[0, 9]
2,653,699
2,653,700
Android Status Bar Notification Not Loading
<p>I'm hoping this issue is simply something to do with the emulator, basically ive got a Service that sets a timer, as soon as the timertask runs the following code is supposed to execute:</p> <pre><code> String ns = Context.NOTIFICATION_SERVICE; NotificationManager mNotificationManager = (Notification...
java android
[1, 4]
4,009,127
4,009,128
Need to select a drop down list element with a particular attribute value from a list of drop down lists and set its selected value
<p><code>.FilterList</code> is the class name of all the drop down lists </p> <pre><code>var $lists = $('.FilterList[ctype="' + ctype + '"]').css('display', 'inline'); </code></pre> <p>Something like the below works fine but I was wondering if there's a more concise and efficient method I could use instead of the ...
javascript jquery
[3, 5]
1,072,638
1,072,639
jQuery: Why would selector fail?
<pre><code>&lt;html&gt; &lt;head&gt; &lt;script src="../jquery.js" type="text/javascript"&gt; &lt;/script&gt; &lt;script type="text/javascript"&gt; $(".demo").click(function() { alert("JavaScript Demo"); }); &lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;p class="demo"&gt;a paragraph&lt;/p&gt; &...
javascript jquery
[3, 5]
4,488,397
4,488,398
jQuery bind with a different this
<p>I want to bind a function to an event but I want to change the context in which the function is called</p> <pre><code>function Foo(){ t : "123", bar: function(){ // I am here $('#selector').bind('click' this.foo); } , foo: function(){ //I want when to be able to use the current object here by...
javascript jquery
[3, 5]
1,284,394
1,284,395
What is the need for validation of forms in php?
<p>I am done with validation using javascript for a form in PHP. </p> <p>When is there any need for PHP validation?</p> <p>javascript validation in itself ensures that all the fields are filled up. Is there a possibility to check the valid format of the inputs using javascript? </p>
php javascript
[2, 3]
4,620,095
4,620,096
jQuery - Working with arrays
<p>OK so I fixed my last error with the DIV and all..</p> <p>OK so at the very top of my <code>javascript</code> file... I have </p> <pre><code>$(function() { var games = new Array(); // games array }); </code></pre> <p>and then in a new function I have: <code>var gamesLgth = games.length;</code></p> <p>but wh...
javascript jquery
[3, 5]
5,249,743
5,249,744
Will the following result in two HTTP requests?
<pre><code>var img = new Image(); $(img).attr('src', "&lt;?php echo $image_url; ?&gt;"); $(window).load(function(e){ resetImageSize(img); td.css('background-image', 'url("&lt;?php echo $image_url; ?&gt;")'); }); $(window).resize(function(e){ resetImageSize(img); }); function resetImageSize(img){ var ...
javascript jquery
[3, 5]
275,491
275,492
What does the question mark mean in this function?
<p>Here's the documentation for this plugin (There's only two functions.) <a href="http://tkyk.github.com/jquery-history-plugin/#documentation" rel="nofollow">http://tkyk.github.com/jquery-history-plugin/#documentation</a></p> <pre><code>$(document).ready(function() { function load(num) { $('#content').loa...
javascript jquery
[3, 5]
521,632
521,633
Finding elements in an object that started as a string
<p>I've got a textarea:</p> <pre><code>&lt;p&gt; Input:&lt;br&gt; &lt;textarea name="text_input" id="text_input"&gt;&lt;/textarea&gt; &lt;/p&gt; </code></pre> <p>I'm trying to treat the textarea value as a jQuery object to be able to find each hypertext link.</p> <p>That textarea has some related script code...
javascript jquery
[3, 5]
5,843,517
5,843,518
How to use spin.js instead of a animated gif
<p>I am just looking for a bit of instruction really. I am very new to JQuery, so it's all a bit hazy.<br> However, I have a form "processing" div that shows <a href="http://stackoverflow.com/questions/9934803/show-div-upon-form-submit-works-in-chrome-ff-ie-but-not-safari">somewhat</a> when a form has been submitted.</...
javascript jquery
[3, 5]
296,037
296,038
C# equivalent of fread
<p>I am in the process of converting some C++ code to C#, I am trying to figure out how I could write out and following C++ code in my C# app and have it do the same thing:</p> <pre><code>fread(&amp;Start, 1, 4, ReadMunge); //Read File position </code></pre> <p>I have tried multiple ways such as using FileStream:</p>...
c# c++
[0, 6]
5,679,728
5,679,729
jQuery.validate.js equalTo refuses to work
<p>I am trying to validate that my one password equals the other. The system keeps flagging the passwords not equal error.</p> <p>Let me post my code:</p> <pre><code>&lt;div class="fieldWrapper"&gt; &lt;label for="password" id="id_password"&gt;Password: &lt;/label&gt; &lt;input id="id_pass...
javascript jquery
[3, 5]
132,510
132,511
Comparing two arrays in Javascript for different values
<p>Javascript gurus, I need your help.</p> <p>I need to compare two different arrays and check for different values. The values are coming from the same form multi select element. I tried getting a list of current values (cacheTermList) and checking for new value on change (newTermList). The idea is I want to pass an ...
javascript jquery
[3, 5]
1,983,113
1,983,114
strange issue with js in updatePanel
<p>I have a link <strong>in an update panel</strong> which calls a js method to do printing of the current window:</p> <pre><code>&lt;a href="javascript:print()" id="cpMain_popupCouponDescriptionControl_hrefPrint"&gt;Print Coupon&lt;/a&gt; </code></pre> <p>where the js method is called on Page_Load event:</p> <pre><...
javascript asp.net
[3, 9]
4,364,794
4,364,795
Clicking asp ImageButton returning me back to top of page: Error
<p>I am trying to allow users to edit information on a page with a onclick edit button</p> <p>the page reloads and the page is taken back to the top, each time the button is clicked, it seems to be a huge inconvenience to the user</p> <pre><code> &lt;% Page directives ... MaintainScrollPositionOnPostBack="True" .. %...
c# asp.net
[0, 9]
2,066,711
2,066,712
Android hide keyboard on off focus but not when password field selected
<p>The code below works when I off focus to another textField but not when I just tap anywhere on the screen (which I'd like to trigger the onFocusChanged event). How can I achieve this? I'll also need to check that the other textfield doesnt't have focus, because if it does the keyboard should be retained.</p> <pre><...
java android
[1, 4]
4,738,199
4,738,200
Convert long strings to html elements in JQuery
<p>i have a string that contain some html in string form, like this one :</p> <pre><code>var string = '&lt;html&gt; ... some code here... &lt;/html&gt;'; </code></pre> <p>the problem is when i try to convert this string to html element in JQuery if the length of this string be bigger than 28457 characters JQuery conv...
javascript jquery
[3, 5]
512,640
512,641
Easy way to resize a directory full of images
<p>Looking for an easy way to resize a directory of images to a given set width and height.</p> <p>Does anyone know an easy way to do this in php or javascript? I have a directory that contains about 100 images and doing this in photoshop would just be highly inefficient.</p> <p>Thanks</p>
php javascript
[2, 3]
494,142
494,143
Get "My Documents" File in Android
<p>I've got a couple of voice recordings and I'd like to play them from my code simply by telling the MediaPlayer the file to play.</p> <p>Trouble is I can't find the files! The phone claims they are in "My Documents/My Recordings", as does windows when I connect the phone as a disk. But when I open that folder as a F...
java android
[1, 4]
1,737,614
1,737,615
Threads and performance with Android games
<p>I've been following this tutorial: <a href="http://www.droidnova.com/playing-with-graphics-in-android-part-iii,176.html" rel="nofollow">http://www.droidnova.com/playing-with-graphics-in-android-part-iii,176.html</a></p> <p>To get comfortable with Android. It's been very, very helpful. In it though, he uses one thre...
java android
[1, 4]
4,580,643
4,580,644
What does the Request object do in the following scenario?
<p>If I see something like:</p> <pre><code>if(Request["Email"]) { } </code></pre> <p>What does this actually mean? Where is the Email collection member actually being set?</p>
c# asp.net
[0, 9]
4,361,513
4,361,514
cannot print the array passed from javascript to php
<p>here is the code.......here i am passing a javascript array to php... something is going wrong........</p> <p>html:</p> <pre><code> &lt;html&gt; &lt;body onload="aa()" &gt; &lt;script language="javascript"&gt; function aa() { var a, s; a = [ 'one', 'two', 'three']; s = JSON.stringify( a ); document.getEleme...
php javascript
[2, 3]
4,631,404
4,631,405
Split value into percentage with a slider
<p>im new to jQuery and searching a way for doing smthing like this:</p> <p>I have a value [100] and 5 categorys [apple, banana, kiwi, lemon, orange]</p> <p>What I want is to have for each category a slider (a line with a point on it you can move)</p> <p>So every category starts with a value of 20 (100 / 5).</p> <p...
javascript jquery
[3, 5]