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
3,316,740
3,316,741
How to set focus on textbox on linkbutton click using javascript
<p>I have this java script function </p> <pre><code>function showHideSearchPanel(dv) { var Header = dv == 'Charts' ? 'ChartSearch' : 'ReportSearch'; var div = "ctl00_ContentPlaceHolder1_dv" + Header; var panel = "ctl00_ContentPlaceHolder1_pnl" + Header; var hiddenField = "ctl00_ContentPlaceHolder1_hdn" + Header + "Mo...
javascript jquery
[3, 5]
1,562,048
1,562,049
fade in div on page load
<p>I need a div to fade in when the page loads.</p> <pre><code>&lt;div id=monster&gt;&lt;/div&gt; </code></pre> <p>Im already using jquery FYI.</p> <p>Thanks in advance.</p>
javascript jquery
[3, 5]
2,218,607
2,218,608
How to get the simple name of the ZipEntry?
<p>I would know if is it possible to get the simple name from a <code>ZipEntry</code>...</p> <p>When I invoke the <code>getName()</code> of the Entry, I get a full path name.</p> <p>I need get only the file's name.</p> <p>Here I need get the simple name instead the full name with its root.</p> <pre><code>public cla...
java android
[1, 4]
1,372,664
1,372,665
JS cookie variable lost after post
<p><strong>main.php:</strong></p> <pre><code> &lt;div id="test" class="test"&gt; &lt;?php include("data.php");?&gt; &lt;/div&gt; </code></pre> <p><strong>data.php:</strong> In this php, i have a few query, and then print some list...Each list in an own DIV tag, and all DIV tag is "closed" when the...
php javascript
[2, 3]
795,811
795,812
How to disable writing to database if i made duplicate entry, and show warning in alertbox?
<p>I am a bit new with php, so I need help. On one page i have small form with firstname and lastname fields. On submit i send it to external .php script where i want to check if there is already person with same name in database. If there is already person with entered name in database, I want to cancel writing to dat...
php javascript
[2, 3]
4,040,631
4,040,632
Upload image/Photo from Iphone to webserver(ASP.net)
<p>I am pretty new in Iphone Apps. How do I upload Image/Photo from my Iphone to webserver. At web server I am using ASP.net c#.</p> <p>On Iphone i have image displayed on UIImage Control and that image I am getting from database from BLOB datatype column.</p> <p>how do I save that image bytes to application folder a...
asp.net iphone
[9, 8]
3,237,795
3,237,796
Can't create the sum of two values (2+2 isn*t 4 but 22)?
<p>sorry if this is a noob question, but well, I'm a noob. I want to get the sum of the values of several text field into another text field. My code looks like this:</p> <pre><code>$('.button').mouseup(function() { var sum = $("#field1").val()+$("#field2").val(); $("#result").val(sum); }); </code></pre> <p>...
javascript jquery
[3, 5]
3,726,237
3,726,238
How to detect 404 error in a url then set the url image to display:none using Jquery
<p>I have a table which repeats an image link to a file download for every row of data. I want to use Jquery or Javascript to detect if a image link returns a 404 error, meaning the file its trying to find doesn’t exist, then set the image link to <strong>display:none</strong> so its hidden.</p> <p>Any help is much ap...
javascript jquery
[3, 5]
1,296,684
1,296,685
Android image file sent to php upload image file is application/octet-stream type and not image/jpeg?
<p>Hello all hope someone can can help- To fininsh my android app I just need to finish the class were the user can upload there image to the server(MySql).</p> <p>All works well except except the format of the image is application/octet-stream rather than image/jpeg that is sent from my android app? Is there anyway I...
php android
[2, 4]
4,413,729
4,413,730
document.getElementById() vs $()
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/4069982/document-getelementbyid-vs-jquery">document.getElementById vs jQuery</a> </p> </blockquote> <p>I am learning jQuery and javascript.</p> <ul> <li><p>I wonder why the <code>$()</code> function of jQuery d...
javascript jquery
[3, 5]
336,183
336,184
Running c# code on button click in aspx
<p>I have an aspx page with a button on it. When the user clicks on a button, i have to run some c# code in a seperate .cs file. What is the way to do this? Currently i have a way of using form.action to forward the request to another aspx page but is there a way to run c # code upon a button press?</p> <p>Thanks</p>
c# asp.net
[0, 9]
270,384
270,385
Invalid key length: 16 bytes
<p>I am getting Invalid key length: 16 bytes on netbeans ide <code>keybyte</code> length is 16</p> <pre><code>SecretKey deskey = new SecretKeySpec(keybyte, "DESede/ECB/NOPADDING"); //enter code here.. Cipher c1 = Cipher.getInstance("DESede/ECB/NOPADDING"); c1.init(Cipher.ENCRYPT_MODE, deskey); </code></pre> <p>but th...
java android
[1, 4]
3,927,021
3,927,022
Adding class in a <link> if no pathname is detected
<p>We want to add a class on our the first-child of the link when <strong>window.location.pathname</strong> is <strong>NULL</strong></p> <p>the html code is</p> <pre><code> &lt;nav&gt; &lt;a href="index.php"&gt;Home&lt;/a&gt; &lt;a href="company.php"&gt;Company&lt;/a&gt; &lt;a href="products.php"&gt;Prod...
javascript jquery
[3, 5]
4,879,692
4,879,693
Does ready() execute asynchronously?
<p>This is a common idiom:</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;script&gt; (function($) { $(document).ready(function(){ // some jQuery/JavaScript in here } })(jQuery); &lt;/script&gt; &lt;/head&gt; .... </code></pre> <p>So we using a JavaScript immediate function which exe...
javascript jquery
[3, 5]
104,865
104,866
How to Run a jQuery or JavaScript Before Page Start to Load
<p>I have a script that I want to run before the page start to load. The script checks the value of a variable and depending on the value redirect the user to a new page.</p> <p>I can successfully check the variable and redirect if needed but the page still loads and display empty page but then quickly redirects to t...
javascript jquery
[3, 5]
5,250,514
5,250,515
How can you reference code written in another language in the App_Code folder in ASP.Net?
<p>Due to legacy issues I have two folders under App_Code directory. One for VB.Net and another for C#. Problem is, I have a service in the C# folder that needs to leverage a class in the VB.Net folder but they dont seem to know about each other. Any ideas are welcome :)</p> <p>Thanks in advance!</p> <p>Trev</p>
c# asp.net
[0, 9]
5,993,984
5,993,985
Jquery url replace
<p>How can I modify this:</p> <pre><code>/services/type/single_dwelling/ </code></pre> <p>to this:</p> <p><code>/ajax/services/single_dwelling/development</code></p> <p>Currently I have:</p> <blockquote> <p>linkUrl = $(this).attr("href").replace(/(\/(services)\/)/, "$1ajax/");</p> </blockquote> <p>Which out...
javascript jquery
[3, 5]
5,058,658
5,058,659
Why is my jquery .each() function not working properly?
<p>I wrote this function:</p> <pre><code>jQuery(document).ready(function() { jQuery('input[type=text]').each( function(i) { thisval = jQuery(this).val(); jQuery(this).blur( function() { if (jQuery(this).val() == '') { jQuery(this).val(thisval); } });...
javascript jquery
[3, 5]
4,589,544
4,589,545
Scrollable menu in a web page
<p>I have to create a menu whihc keeps moving based on the click on Next and previous buttons. What is the best method to achieve this. a sample will help me alot.</p>
jquery asp.net
[5, 9]
4,978,938
4,978,939
Write conditionals from data returned of an xml parse
<p>Can someone please help me understand how I would write this.</p> <p>If i am parsing data from an xml file like:</p> <pre><code>function parseXml(xml) { $(xml).find("ITEM").each(function() { var foo= $("bar", this).text(); $("#container").append('&lt;div&gt;' + (foo) + '&lt;/div&gt;'); }); } </cod...
javascript jquery
[3, 5]
634,246
634,247
how to retrieve file type using jquery
<p>I have two textboxes. One is a normal textbox and another 'input type="file"'</p> <p>when I click on the button I want a label to be updated with the textbox value and it's href pointing to whatever I have attached to the file type.</p> <p>How can this be done using jquery.</p> <p>Googled a lot but din't find any...
javascript jquery
[3, 5]
4,684,446
4,684,447
Replacing only part of an iframe src
<p>I need to use javascript to change part of an iframe src, is there a way to change '500' to '800' in that iframe src? I tried the following code but it did not work. If anyone could help that'd be appreciated.</p> <pre><code> function bigPhotosets() { $('iframe.photoset').each(function(){ ...
javascript jquery
[3, 5]
1,984,612
1,984,613
How to control placement of control in code behind
<p>Is it possible to control the placement of a generated control in asp .net 2.0 (c#)?</p> <p>So for example in my page_load I create a new Panel() and then do Form.Controls.Add(pnl). However I'm finding it renders right at the end of the form. </p> <p>I would like it rendering as the first element in the form.</p>
c# asp.net
[0, 9]
4,176,097
4,176,098
How to cast a STRING to a GUID
<p>I need cast a String to a Guid.</p> <p>I am using this code but</p> <pre><code>string myUserIdContent = ((Label)row.FindControl("uxUserIdDisplayer")).Text; Guid myGuidUserId = new Guid(myUserIdContent); // PROBLEM HERE MembershipUser mySelectedUser = Membership.GetUser(myGuidUserId); </code></pre> <p>I receive th...
c# asp.net
[0, 9]
5,412,916
5,412,917
Setting User language for Localization/Globalization
<p>I need to select the language based on the user choice and set it for the entire session. Can anybody suggest where do i need to do these settings and how can i do this?</p>
c# asp.net
[0, 9]
3,277,749
3,277,750
Can't change css when using click in jquery
<p>I have a small demo:</p> <pre><code>&lt;div class="box_content_height"&gt; &lt;strong&gt;Height: &lt;/strong&gt; &lt;input type="text" name="height" id="height" value="300" /&gt;px &lt;input type="submit" class="submit_advance" value="submit" /&gt; &lt;/div&gt; </code></pre> <p>And javascript</p> ...
javascript jquery
[3, 5]
2,448,762
2,448,763
How does JavaScript deal with function objects? See example
<p>I have a function like this</p> <pre><code>function saveProfile(data, url, successFn) { $.ajax({ dataType: 'json', data: data, url: url, type: 'post', success: function () { successFn(); } }); } </code></pre> <p>is there any difference to passin...
javascript jquery
[3, 5]
4,567,906
4,567,907
How to marshal nested structure?
<p>I have three C++ structures that I need to send as parameters when calling a DLL method from C#. I simplified them as the following:</p> <pre><code>typedef struct { int data1; int data2; } A; typedef struct { int numStructA; A *pStructA; int moreData; } B; typedef struct { TCHAR *pStr; ...
c# c++
[0, 6]
4,498,930
4,498,931
How to edit input file properties by using an android app?
<p>i want to make an app which can add the file properties of a song file that the user inputs. Like adding the Album name of the song.. i am still a newbie in android app development... Thank you.</p>
java android
[1, 4]
5,647,873
5,647,874
How to receive Application ID from C2DM?
<p>I have completed my application and launched in android market.Now I want to add notification. I registered in C2DM and received a mail.But I am so confused. Please anybody tell me the procedure for receiving Registration ID from C2DM?</p>
java php android
[1, 2, 4]
4,908,663
4,908,664
C# web application - waiting for localhost
<p>I am struggeling with my web application. When I debug it using VS2008, it keeps on saying waiting for localhost in the web browser for ages !! I have restarted it, and still the same thing. I am implementing a web application that generates random numbers whenever a button is clicked, adds them up and shows the tot...
c# asp.net
[0, 9]
4,425,120
4,425,121
Procedural order of jQuery functions inside JS
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/3393751/what-does-asynchronous-means-in-ajax">What does Asynchronous means in Ajax?</a><br> <a href="http://stackoverflow.com/questions/4982983/jquery-ajax-return-value">jQuery ajax return value</a> </p> </blockq...
javascript jquery
[3, 5]
4,444,072
4,444,073
How to generate numbers within a starting and ending range?
<p>I have a starting range and ending range, and I need to be able to generate numbers withing this range, and increment the returned number by the start range + 1 every time, but never generate the same number twice.</p> <p>Not sure how to do this with C#, any help would be great.</p>
c# asp.net
[0, 9]
5,447,056
5,447,057
JavaScript / jQuery setting a content to <div> not sticking after postback
<p>This is my code:</p> <pre><code>&lt;asp:Button ID="btnSave" runat="server" OnClick="Save" CssClass="StylizedButton" resourcekey="btnSave" /&gt; &lt;div id="lbltot"&gt;&lt;/div&gt; </code></pre> <p>JavaScript code: </p> <pre><code>$(document).ready(function() { $("#&lt;%= btnSave.ClientID %&gt;...
javascript jquery asp.net
[3, 5, 9]
4,285,924
4,285,925
How to set jQuery this when calling a function?
<p>Using jQuery, I set a link tag's click handler like this:</p> <pre><code>$('#lnk').click(handleClick); </code></pre> <p>handleClick does something like this:</p> <pre><code>function handleClick() { var $this = $(this); ... } </code></pre> <p>Now I have a need to directly call handleClick() outside of #ln...
javascript jquery
[3, 5]
2,648,205
2,648,206
How to autoscroll to the end of iframe using JavaScript (or jQuery)?
<p>I have the following code:</p> <pre><code>&lt;iframe id="preview" onLoad="scrollToBottom()"&gt;&lt;/iframe&gt; </code></pre> <p>My objective - When the frame reloads, the "scrollToBottom()" function is triggered, which will take the user to the end of the iFrame (instead of the beginning of the frame, which is by ...
javascript jquery
[3, 5]
4,777,536
4,777,537
creating slide down menus in a while loop with dynamic data using jquery
<p>I use php to display a table of data drawn from my mysql database. I have a while loop that loops through each row and spits out the user data. </p> <p>I want to have a more details button that when pressed will drop down a div box displaying "more details" about the user. The problem I've run into is when I create...
javascript jquery
[3, 5]
2,801,164
2,801,165
Hiding a description in a dynamic table
<p>I have a table that is created using PHP and when you click on the name of the item I want the description to show.</p> <pre><code>&lt;table border="1" bordercolor="#000000"&gt; &lt;tr class="trintial"&gt; &lt;th width="50px"&gt;&lt;input type="checkbox" readonly="readonly" checked="checked" /&gt;&lt;/th&gt...
php javascript
[2, 3]
4,169,010
4,169,011
Check if array is empty or exists
<p>For the first page load I need to check if there is <code>image_array</code> load last image, otherwise block preview buttons; alert user to push new image button; create empty array to put there images;</p> <p>The problem is that <code>image_array</code> in the <code>else</code> fires all time. If array exists - i...
javascript jquery
[3, 5]
490,440
490,441
jQuery Syntax Meaning
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/1490853/how-do-you-read-this-javascript-code-var1-var2var3">How do you read this JavaScript code? (var1 ? var2:var3)</a><br> <a href="http://stackoverflow.com/questions/6259982/js-how-to-use-the-ternary-operator">...
javascript jquery
[3, 5]
5,276,321
5,276,322
php in javascript
<p>The javascript works fine without the php part but it needs to redirect and keep the link information how to do this ??</p> <pre><code>&lt;script&gt; if(navigator.userAgent.indexOf("Firefox") != -1) { window.location = "demo2.php?skin=&lt;?php echo $_GET["skin"]; ?&gt;"; } &lt;/script&gt; </code></pre> <p>works...
php javascript
[2, 3]
4,179,221
4,179,222
Adding in javascript on click?
<p>When someone clicks my price up button, I want the price to increase by .1 in the #priceInput box. This is just not working though.. what am I doing wrong?</p> <pre><code>$("#priceUp").click(function(){ var xyz = parseInt($("#priceInput").val()); xyz=(xyz+.1); $("#priceInput").val(xyz); }); </code></pr...
javascript jquery
[3, 5]
1,120,010
1,120,011
Call php from javascript and return an array from php to Javascript function
<p>I want to write a function in javascript which will call the Getfilename.php and Get the $filesArray that is return in javascript.</p> <p>GetFilenme.php is another file and I am trying to access this from Config.html</p> <p>PHP : Getfilename.php </p> <pre><code>&lt;?php $dir = 'uploads/'; $dir = $_REQUEST['dir']...
php javascript
[2, 3]
2,621,583
2,621,584
Problem in variable declaration
<p>On page load i am setting the value of String variable <code>DB</code> as follows:</p> <pre><code>protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { String DB = ""; DB = Session["db"].ToString(); } } </code></pre> <p>I want to use the variable <code>DB</code> (i want to...
c# asp.net
[0, 9]
928,641
928,642
Get all div values of similiar id in a particular div
<p>I have a div structure like below </p> <pre><code> &lt;div id=main"&gt; &lt;input type="hidden" id="people_0_1_0" value="12"/&gt; &lt;input type="hidden" id="people_0_1_1" value="12"/&gt; &lt;/div&gt; </code></pre> <p>Now how to add all hidden input values in a variable. Thanks</p>
javascript jquery
[3, 5]
4,650,280
4,650,281
why there is no power operator in java / c ++?
<p>While there is such operator - ** in Python , i was wondering why java and c++ havent got one too.</p> <p>It is easy to make one for classes you define in C++ with operator overloading ( and i believe such thing is possible also in java) , but when talking about primitive types such as int, double and so on , yo...
java c++ python
[1, 6, 7]
4,450,465
4,450,466
GridView with DataTable as source not autopaging or sorting
<p>Basically I'm setting my datasource on my gridview to a datatable that I filled in manually. Is there a way to get the gridview to autopage and sort? When I try to go to another page on the gridview it gives me an exception saying that the paging event is not being caught (meaning I don't have a method for the event...
c# asp.net
[0, 9]
5,241,638
5,241,639
jQuery Remove specific span based on id
<p>I want to be able to remove only spans which has an id that stars with the key word "junk_"</p> <p>for example if I have </p> <pre><code>&lt;span id="junk_8345"&gt;A&lt;/span&gt; &lt;span id="valid_2972"&gt;B&lt;/span&gt; &lt;span id="junk_9249"&gt;C&lt;/span&gt; </code></pre> <p>The output should look like</p> ...
javascript jquery
[3, 5]
1,829,787
1,829,788
Function c++ ,equivalent in java
<p>I have the following problem, the following program is in c + +.;</p> <pre><code>#include &lt;stdlib.h&gt; #include &lt;stdio.h&gt; #include &lt;malloc.h&gt; typedef enum { TR, SYS, INT, BAT } TIPOS ; typedef enum { LIBRE , EJECUCION , LISTO , BLOQUEADO } PCBestado ; struct PCB { int PID; PCBestado estado ;...
java c++
[1, 6]
1,427,240
1,427,241
How Do I pass Values into an imagebutton click event in c#?
<p>Trying to pass some values into an imagebutton click event, something like this:</p> <pre><code>&lt;asp:ImageButton id="imagebutton1" runat="server" AlternateText="5 Star Luxury Villas in North Cyprus" ImageUrl="/download/1/luxury_villas.jpg" OnClick="ImageButton_Click('value1', 'value2')"/&gt; </code></pre> <p>th...
c# asp.net
[0, 9]
719,370
719,371
How to convert comma separated string into numeric array in javascript
<p>I have a one-dimensional array of integer in JavaScript that I'd like to add data from comma separated string, Is there a simple way to do this?</p> <p>e.g : <code>var strVale = "130,235,342,124 ";</code></p>
javascript jquery
[3, 5]
2,696,433
2,696,434
JQuery - CSS Editor? Is there one?
<p>Is there a JQuery plugin that has a css editor? What I mean is something like this:</p> <p><a href="http://www.cssportal.com/css-style-editor/">http://www.cssportal.com/css-style-editor/</a></p> <p>Kind of like the dreamweaver style editor.</p> <p>If there isn't something like this, Its probably not that hard to ...
javascript jquery
[3, 5]
2,217,969
2,217,970
How do I call window.openDatabase from a webView hosted in an android application?
<p>I created a native Android app that basically hosts a webView control. That webView is then used to load a page that calls window.openDatabase from JavaScript. I can successfully confirm that the API exists by verifying window.openDatabase.</p> <p>Calling this method returns a null when called in a hosted webView...
javascript android
[3, 4]
3,397,862
3,397,863
Is it possible to add an OR to a selector in jQuery?
<p>I current have a jQuery delegate that does something to all of the <code>input</code> selectors that are not <code>submit input</code> selectors. How do you add an <strong>OR</strong> so that it also handles another type like <code>select</code>? </p> <p>Current function:</p> <pre><code>$('#test_form').delegate("...
javascript jquery
[3, 5]
5,725,985
5,725,986
How to compile ASP.NET 2.0 applications in medium trust
<p>I am using a .Net/C# script to upload XLS files and then dump in SQL SERVER.</p> <p>It works great on Local server but doesnt on shared hosting space. Hosting is saying </p> <p>"It seems you are using full trust in this application and we support medium trust on shared server, due to that reason you are getting th...
c# asp.net
[0, 9]
804,882
804,883
Write to a file at a specific location on client side
<p>I'm creating a bit array from info gathered on my form, to be able to save and append it to a specific file on client side. I am able to prompt the user for them to save it, but I don't want to give them a choice of where to save the file. Is there anyway to force the save location, so all the user does it click a b...
c# asp.net
[0, 9]
1,106,803
1,106,804
Show/ hide dynamic combobox
<p>I have two comboboxes which are generated by queries from mysql.</p> <p>When user choose value in first combobox i need to display second combobox, but if nothing is choosen second combox should not be displayed. The code:</p> <pre><code>&lt;?php echo "&lt;form method= \"post\" name=\"formcombo\" action=''&gt;"; e...
php javascript
[2, 3]
3,961,028
3,961,029
How can I display the status of an upload in an element?
<p>How can I display the status of an upload in an element? For example, when I upload an image or other file, I was to display <code>Sending... (STATUS)</code></p>
javascript jquery
[3, 5]
2,549,621
2,549,622
Asp.net connection
<p>i have an asp.net website where thers an apply button and the webpage uses microsoft sql. The problem is that when the user clicks the apply button for a very long time right about 80-100 times, the webpage usually seems to lose connection and takes forever trying to load the page, and then either says a connection...
c# asp.net
[0, 9]
3,339,119
3,339,120
Passing parameters from managed to unmanaged code
<p>I have to use a method from a library that has the following signature in the header file:</p> <pre><code>NKREMOTELIB_API int __stdcall GetEvfFrame( const unsigned char*&amp; buffer, size_t&amp; size, NKRemoteEvfDisplayInfo&amp; displayInfo); </code></pre> <p>I am calling these from c# using the follow...
c# c++
[0, 6]
5,013,638
5,013,639
ASP.NET POST function in C# code
<p>I have some html POSTing code that I'm trying to emulate in an C# event.</p> <pre><code>&lt;FORM method=post name=agree action=http://1.1.1.1/agree.cgi&gt; &lt;INPUT value=Agree type=hidden name=hdnAgree&gt;&amp;nbsp; &lt;INPUT value=Agree type=submit name=agree&gt; &lt;/FORM&gt; </code></pre> <p>I heard you can a...
c# asp.net
[0, 9]
872,145
872,146
conversion type
<pre><code>typedef wchar_t WCHAR buf[1024] ; // code from C++ dll </code></pre> <p>how to define above line of code in C# ? </p>
c# c++
[0, 6]
2,216,463
2,216,464
Calculate gesture distance in Android
<p>I'm trying to find a way to calculate the distance traveled during a Gesture. I can get the distance between two points using MotionEvent.ACTION_DOWN and MotionEvent.ACTION_UP or MotionEvent.ACTION_MOVE. But that doesn't account for moving in say, a circle. It would calculate 0 because you moved all the way back aro...
java android
[1, 4]
5,122,627
5,122,628
TitlePageIndicator selected line footer to header
<p>I'm using the TabPageIndicator from Jake Wharton My question: Is there any way to transform the tab footer line in a "header line"? I'm using the indicator below the ViewPager and it would be nice to have the "selected line" on the top of my tab title.</p> <p>Thanks in advance</p>
java android
[1, 4]
114,947
114,948
Retry Popup on Ok
<p>I have not stated anywhere in my code nor JavaScript that the page should refresh upon clicking the OK button. But as the user clicks the OK button, the retry popup comes up. I am not sure what is the reasoning behind this.</p> <p>Here is my code for the OK button:</p> <pre><code>protected void btn_ok_click(objec...
c# asp.net
[0, 9]
3,952,560
3,952,561
How do you get RowCount of GridViews ObjectDataSource
<p>I need to get the ObjectDataSource RowCount i've tried this</p> <pre><code>System.Data.DataTable dt = (System.Data.DataTable)gview.DataSource dt.Rows.Count </code></pre> <p>But i get object not set to an instance of an object</p>
c# asp.net
[0, 9]
5,237,042
5,237,043
ajax jsonp request 503 response
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/4778363/display-jquery-ajax-503-error-response">Display jQuery $.ajax 503 error response</a> </p> </blockquote> <p>I am making a call to an api which is a bit temoermental. Alot of the time it is responding with...
javascript jquery
[3, 5]
2,134,016
2,134,017
How to handle AsyncTask failure
<p>Is there a specific way to handle failure in an AsyncTask? As far as I can tell the only way is with the return value of task. I'd like to be able to provide more details on the failure if possible, and null isn't very verbose.</p> <p>Ideally it would provide an onError handler, but I don't think it has one.</p> <...
java android
[1, 4]
3,758,757
3,758,758
How to display cash value in words using jQuery?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/7257575/number-to-word-jquery">Number to Word - jquery</a> </p> </blockquote> <p>I want to show the total billed amount in receipt in words also. How to achieve it using jQuery?</p> <p>Ex.</p> <pre><code>Item ...
javascript jquery
[3, 5]
2,081,299
2,081,300
Python and executing php files?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/2931061/start-local-php-script-w-local-python-script">Start local PHP script w/ local Python script</a> </p> </blockquote> <p>How do you execute a php file and then view the output of it?</p> <pre><code>os.syst...
php python
[2, 7]
1,668,086
1,668,087
About php full calendar customization
<p>I am working on a <a href="http://arshaw.com/fullcalendar/" rel="nofollow">php full calendar</a> and would like to make some customization. is it possible for me to hide the contents, but just changing the color of the specific date and its cell?</p>
php jquery
[2, 5]
3,494,035
3,494,036
variable assignment inside 'IF' condition
<p>in php, something like this is fine:</p> <pre><code>&lt;?php if ( !$my_epic_variable = my_epic_function() ){ // my epic function returned false // my epic variable is false die( "false" ); } echo $my_epic_variable; ?&gt; </code></pre> <p>I suppose is a shorter way of doing:</p>...
php javascript
[2, 3]
3,749,900
3,749,901
constructing js function name dynamically
<p>I want to call a function this way </p> <pre><code>redBall(this); </code></pre> <p>but I want to dynamically construct from a string. I tried something like this but it's not working.</p> <pre><code>var color = 'red'; color+'Ball'(this); </code></pre>
javascript jquery
[3, 5]
3,209,850
3,209,851
calling web service using current users credentials
<p>I have a web service which is on another server than my web server and that service requires a domain user to function. we have NTLM authentication and my application is a web part. whenever the user enters information and clicks submit the web service is called and it does its job. Can someone please tell me how c...
c# asp.net
[0, 9]
4,020,322
4,020,323
Traceview shows some methods arent being called for 200ms or more
<p>Traceview shows that updatePhysics() is being called every 10ms or so and it takes about 8ms to run. The methods that I call inside updatePhysics are only running once every 5 or 6 times updatePhysics() runs, however. Is this simply a bug of Traceview, or what is going on? My game is stuttering a fair amount, so I a...
java android
[1, 4]
5,339,557
5,339,558
nmap 5.21 and Python problems
<p>What does this mean and how can I fix it?</p> <pre><code>root@bt:~# rpm -vhU http://nmap.org/dist/nmap-5.21-1.i386.rpm Retrieving http://nmap.org/dist/nmap-5.21-1.i386.rpm error: Failed dependencies: /usr/bin/python is needed by nmap-5.21-1.i386 python &gt;= 2.4 is needed by nmap-5.21-1.i386 root@bt:~# pyth...
php python
[2, 7]
4,610,889
4,610,890
Compare years and month with jQuery
<pre><code>var onemonth = 3; var oneyear = 2005; var twomonth = 10; var twoyear = 2000; </code></pre> <p>How can i split this and compare? In this example is:</p> <pre><code>var firstdate = onemonth + oneyear; var seconddate = twomonth + twoyear; if(firstdate &lt; seconddate){ alert('error'); } </code></pre> <p>Ho...
javascript jquery
[3, 5]
1,451,463
1,451,464
How can I create a regular expression to exclude a particular character string?
<p>I have a drop down list that is filled with items and I don't want the first item to be selected so how do I write a regular expression that doesn't match it (excludes it, triggers an error) in asp.net.</p>
c# asp.net
[0, 9]
4,133,395
4,133,396
How to capture onfinish event of a video
<p>What I want to do is play a video after a user logs in, and then use javascript or jQuery to reload the current page with <code>GET</code> parameter <code>video_finished = 1</code>. Then if <code>GET['video_finished']</code> is true, go back to the homepage, else play the video. </p> <p>I know how to handle PHP cod...
javascript jquery
[3, 5]
4,990,638
4,990,639
How to invoke jquery method in another jquery file
<p>How to invoke a jquery method which in another jquery method?<br> <strong>For example:</strong><br> In a.js, I define a variable <code>var url = "ssh";</code><br> In b.js, I want to use url in a.js, how can I use? </p>
javascript jquery
[3, 5]
3,628,817
3,628,818
Is it useful to put AudioRecord.getState() in a loop?
<p>I'm working with some code that calls the <a href="http://developer.android.com/reference/android/media/AudioRecord.html" rel="nofollow">AudioRecord</a> constructor:</p> <pre><code>AudioRecord listener = new AudioRecord(list of parameters); do {} while (listener.getState() != AudioRecord.STATE_INITIALIZED); </code>...
java android
[1, 4]
4,594,878
4,594,879
dynamic name for DropDownList in a GridView
<p>I have asp.net page where I am using a gridView with custom paging and within the gridview there is a DropDownList control and per-row control-based javascript that does a form submit and must refer to a unique DropDownList name pertaining to it's row. </p> <p>Usually if I need to manipulate controls I have been a...
c# asp.net
[0, 9]
1,206,610
1,206,611
Java side scrolling game on android
<p>I'm trying to make an easy side scrolling game just to learn the ropes of game programming on android. I came up with a solution of how to make it but I don't really think it is the most elegant solution. I wanted to get some different ideas on how to implement my game, as I really have no other solution right now.<...
java android
[1, 4]
3,716,897
3,716,898
Simple android and ASP.NET mix
<p>I write an android application that send text data to asp.net webserver. I'm using next code to sent data via Http:</p> <pre><code>try { URL url = new URL(serverUrl); connection = (HttpURLConnection)url.openConnection(); connection.setDoInput(true); connection.setDoOutput(true); connection.setU...
c# android asp.net
[0, 4, 9]
5,390,110
5,390,111
How to check if enterkey is pressed in a TextBox in asp.net
<p>I have a asp.net Text Box which accepts date in the format MM/DD/YYYY. After entering the date i will hit enter key.if enter key i need to execute server side code.How can we achieve this ?</p> <p>The problem with Text box is it will fire the Text Changed event only if it looses the focus.</p>
c# javascript jquery asp.net
[0, 3, 5, 9]
715,182
715,183
Difference between passing ActivityName.this and passing this when we need to pass context
<p>I have seen a convention in android programming, that when forexample calling another activity from some activity:</p> <pre><code>Intent i=new Intent(Caller.this,Called.class); startActivity(i); </code></pre> <p>My question is why we write <code>Caller.this</code> instead of just writing <code>this</code>?</p>
java android
[1, 4]
420,081
420,082
Create comma separate list for JavaScript from my Query
<p>Is there a quick easy way to write the results from the query below to just a comma separate list so between the open/close <strong>javascript</strong> tags that will appear:</p> <p>72,Client contact name, 2860 eof 72,Contact Phone, 2888 eol 72,Email address, 2865 eol and so on?</p> <pre><code>&lt;?php $data =...
php javascript
[2, 3]
280,047
280,048
Getting Initializing inflate state in log cat
<p>it is a android widget and i am trying to add custom fonts to it</p> <p>This is my code</p> <pre><code>public void updateAppWidget(Context context, AppWidgetManager appWidgetManager, int appWidgetId) { String currentTime = (String) df.format(new Date()); RemoteViews updateViews = new RemoteVi...
java android
[1, 4]
3,799,266
3,799,267
How to find out the TabSelection
<p>Dear All, I have using the code for developing tabs</p> <pre><code> $(document).ready(function() { $('#container-1').tabs(); } .... &lt;div id="container-1"&gt; &lt;ul&gt; &lt;li&gt;&lt;a href="#fragment-1"&gt;&lt;span&gt;Home&lt;/span&gt;&lt;/a&gt;&lt;/li&gt; ...
javascript jquery
[3, 5]
4,085,500
4,085,501
Insert json values in to dropdown box
<pre><code> var g_Year = [ { Year: "2011" }, { Year: "2011" }, { Year: "2010" }, { Year: "2012" }, { Year: "2011" }, { Year: "2012" } ]; fxnDrop = function () { $.each(g_Year , function (index, Ele) { var iYear = g_Year [index].Year, ...
javascript jquery
[3, 5]
2,339,019
2,339,020
how to pass data from javascript to winforms user control
<p>I have a windows user control hosted in IE.</p> <p>how can i paas input from webpage ( propably from javascript ) to win forms user control</p> <p>can any one help me in solving this problem.</p> <p>it is urgent.</p> <p>Thanks.</p>
asp.net javascript
[9, 3]
4,487,168
4,487,169
How to pass values aspx file to class.cs file
<p>We can pass a value From aspx to aspx file using session, querystring and so.on.But i want to pass a value from aspx to class.cs file .In class.cs file i want to get that value. how to get thet value. can any body help me. Thank in advance.</p>
c# asp.net
[0, 9]
4,061,782
4,061,783
jquery resize window to fit contents
<p>I have a simple popup window that shows <code>300x300px</code> picture, I set up the size of the window to be <code>350x350px</code>, but depending on the browser I either get scroll bars or extra white space. Is there some jQuery function that would resize the browser window just to fit the content without any scro...
javascript jquery
[3, 5]
4,377,392
4,377,393
How can I make my anchor tag (this)
<p>I've run into a small problem, Ive got a page full of anchor tags and when 1 of them is selected an animation begins, my only problem right now is that I havent defined the anchor tag as (this) so when a series of anchors are selected each of them perform the animation, im not sur right now how I can change the a ta...
javascript jquery
[3, 5]
2,834,454
2,834,455
Calling javascript __dopostback function, from C# in windows application
<p>I want to call "__dopostback" function, in my c# program, in my program I want to read a web page content. But in the main web page, the links that I want to read their content are called by __dopostback, function in javascript, for example the function that page call when I click on the button is:</p> <pre><code>j...
c# javascript
[0, 3]
2,522,241
2,522,242
javascript and php web design
<p>I have a question about the way I should build my website. What if the user has javascript disabled, then all the client side programming will be disable. </p> <p>Should I rely on php at first, and then just add the javascript/jquery/ajax just in case.</p> <p>Also how could I make partial requests, so that one par...
php javascript
[2, 3]
5,976,558
5,976,559
Automate slider with jquery?
<p>I have a slider that slides images across on the click of a button using the following function</p> <pre><code>$(document).ready(function (){ $('#button a').click(function(){ var integer = $(this).attr('rel'); $('#myslide .cover').animate({left:-720*(parseInt(integer)-1)}) $('#button a').each(function(...
javascript jquery
[3, 5]
3,702,782
3,702,783
PHP code on C++
<p>I would like to know how this code would look in C++:</p> <pre><code>&lt;?php $read=fread(fopen('cookie.txt', 'r'), filesize('cookie.txt')); $pattern = "/[a-f0-9]{32}/"; preg_match($pattern, $read, $matches); echo $matches[0]; ?&gt; </code></pre>
php c++
[2, 6]
351,044
351,045
Replace a substring in C#
<p>I have the following string, "Last Run: 2011-10-03 13:58:54 (7m 30s ago) [status]" and I would like to replace "7m 30s" (it is not a fixed string) with another string I have generated. How can I do that with string manipulation in C#? </p>
c# asp.net
[0, 9]
1,498,441
1,498,442
Spherical Geometry library for Java/Python
<p>Is there a good Spherical Geometry library for Java/Python? I'm looking for something similar to this <a href="http://googlegeodevelopers.blogspot.com/2011/01/little-help-with-spherical-geometry.html" rel="nofollow">http://googlegeodevelopers.blogspot.com/2011/01/little-help-with-spherical-geometry.html</a>. I need ...
java python
[1, 7]