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,451,979
5,451,980
Open a file using javascript, client-side
<p>In my application I want to open a file that exists on a client machine. I created two applications: desktop and web application. When the user installs the desktop application there are some files which is copied to its installation path, and I want to open those files from my web application via javascript.</p>
javascript asp.net
[3, 9]
1,636,224
1,636,225
Checking if browser is in fullscreen
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/1047319/detecting-if-a-browser-is-in-full-screen-mode">Detecting if a browser is in full screen mode</a> </p> </blockquote> <p>Is there a way to check if a browser is currently in fullscreen mode (after the user...
javascript jquery
[3, 5]
1,408,079
1,408,080
Some @Override shows errors in Oracle Java but not in OpenJDK
<p>In a repository that was created in Ubuntu Linux and compiled under OpenJDK 6, when implementing LocationListener and SensorListener, adding the <code>@Override</code> tag above the inherited methods compiles fine.</p> <p>But when the repo is cloned onto a Windows system with Oracle Java, some of the <code>@Overri...
java android
[1, 4]
1,087,795
1,087,796
Get value of dom element in ready function
<p>I want my textArea to resize when the page is fully loaded. I found that</p> <pre><code>$(document).ready(function() { // Handler for .ready() called. }); </code></pre> <p>can help me, so I try to test it and put next code into that function:</p> <pre><code>$(document).ready(function() { var element = $('...
javascript jquery
[3, 5]
5,493,173
5,493,174
ASP.NET Application setting debug="false" in web.config breaks Javascript
<p>We have an application that works fine when we have debug="true" in Web.config, when we set this to "false" however the application stops working. It seems as if object inheritance is not working in the javascript (Microsoft JScript runtime error: Object doesn't support this property or method). Has anyone come acro...
asp.net javascript
[9, 3]
1,749,931
1,749,932
For loop in jquery . I need to run scripts for 20 time each with with increment
<p>I have no idea about loop in jquery. I want the following code to be run as for loop from product1 to product20 and check the same if quantity1 to quantity20 have no value then set it to 1.</p> <pre><code>$('#product1').change(function() { if( $('#quantity1').val().length == 0 ){ $('#quantity1').val("1...
javascript jquery
[3, 5]
1,202,647
1,202,648
executing 2 functions in one click handler
<p>how can I execute 2 functions at the same time. In the code snippet below with the onclick, I get the <code>id</code> of the parent Div and then execute a function using the <code>id</code>,</p> <pre><code>&lt;div id="selDe"&gt; &lt;input type="radio" class="ger" id="num1" checked&gt;&lt;label for="num1"&gt; &lt;in...
javascript jquery
[3, 5]
5,388,679
5,388,680
jQuery.map - Practical uses for the function?
<p>I am trying to get a better understanding of the <a href="http://docs.jquery.com/Utilities/jQuery.map" rel="nofollow">jQuery.map</a> function.</p> <p>So in general terms .map takes a array and "maps" it to another array of items.</p> <p>easy example:</p> <pre><code>$.map([0,1,2], function(n){ return n+4; }); ...
javascript jquery
[3, 5]
786,455
786,456
How to pass data from activity to broadcastReceiver?
<p>i have code that calls a broadcast receiver, in the receiver, i try to get the extra data from the intent, but it's null. </p> <p>so,</p> <pre><code> Intent intent = new Intent(MainActivity.this, CallAlarm.class); intent.putExtra("medicine", "kkk"); PendingI...
java android
[1, 4]
4,018,887
4,018,888
what's the jquery plugin that inserts text in a textbox, and it disappears upon focus?
<p>what's the jquery plugin that inserts text in a textbox, and it disappears upon focus?</p>
javascript jquery
[3, 5]
5,864,367
5,864,368
jQuery: Is it possible to assign a DOM element to a variable for later use?
<p>I'm working on a project that is using jQuery, which I'm much more familiar with Mootools.</p> <p>I'll start with my code first.</p> <pre><code>var customNamespace = { status: 'closed', popup: $('#popup'), showPopup: function() { // ... } } $(document).ready(function(){ console.log(...
javascript jquery
[3, 5]
2,835,933
2,835,934
Two Checkboxes Being Checked at the Same Time
<p>I have <strong>two checkboxes</strong>. What I need is when someone checks one of the boxes, it will <strong>automatically check the other one</strong> as well. And vice versa, if someone <strong>unchecks</strong> one of the boxes, it <strong>unchecks both</strong>. This is a bundle package on the form and they c...
javascript jquery
[3, 5]
1,211,873
1,211,874
jQuery image.onload phantom event firing
<p>I have stumbled across this insane behavior where image.onload gets fired multiple times instead of one.</p> <p>It will be too long to explain this, so here is a jsfiddle example.</p> <p>When you click the first time everything seems normal, but the issue begins after the second click and with every click it just ...
javascript jquery
[3, 5]
1,393,337
1,393,338
Automatic Timeout Web Client Use
<p>One of the problems I have come accross having complext tasks on the browser is with automatic timeouts. Currently our site has a sliding expiration of 30 minutes. Normally this isn't a problem because we use asp.net and most of the time the users update one or two fields and then submit the form. This obviously ...
c# asp.net
[0, 9]
4,427,904
4,427,905
Using jquery to select an item from a select list based on the label
<p>So if I have a select list of lets say dates that looks like </p> <pre><code>&lt;option value="624e70cb-2796-4029-bd09-2642abaa54b4"&gt;1989&lt;/option&gt; &lt;option value="ff591d9a-e8a4-4280-829b-9307b7b41912"&gt;1988&lt;/option&gt; &lt;option value="f2e9e756-7c59-4883-89b5-9c8cccf85ad6"&gt;1987&lt;/option&gt; &l...
javascript jquery
[3, 5]
3,273,663
3,273,664
Resize HTML elements on Android orientation change
<p>I am trying to bind an event in Javascript to either the orientationchange or resize events in Android in order to change the width/height of some elements for my web app. In the event, I use window.innerHeight and window.innerWidth to get the current height and width of the window.</p> <p>This works great on iOS a...
javascript android
[3, 4]
3,292,119
3,292,120
Return a null from Function which returns a DateTime
<pre><code> public static DateTime ResolveDate() { return null; } </code></pre> <p>Im required to return a <code>null</code> value from a function which returns a <code>DateTime</code> Type .. My Main Objective is to NOT to use <strong>MinValue</strong> or return a <code>new Datetime();</code> [Which Returns a De...
c# asp.net
[0, 9]
15,992
15,993
Android text coloring based on background
<p>I'm currently working on an Android app that has a progress bar with textView at it's edge showing a date.</p> <p>When the progress bar's background is grey, and it's fill is blue. I need to have the text color change according to the progress bar behind it - aka letters that have the progress bar's fill behind the...
java android
[1, 4]
4,742,043
4,742,044
Jquery - onclick not triggered for dynamic created elements
<p>I have an issue, Jquery onclick not triggered for dynamic created elements. I am using Jquery 1.9 and tried the example with "ON" and "LIVE". But still its not working. can some 1 help me?. </p> <pre><code>$("input[type=checkbox]").on("click", function (e) {..}); </code></pre> <p>Demo: <a href="http://jsfiddle.net...
javascript jquery
[3, 5]
2,161,400
2,161,401
find all div's with contenteditable attribute in iframe and remove said attribute with jQuery?
<p>I have an ifram on a page with class ms-dlgFrame and in this iframe I want to remove contenteditable="true" on elements since it's not supported by Safari on iPad (I am checking the user agent first).</p> <p>I have some issues with combining <code>.find(), .each(), .attr()</code>, and <code>.removeAttr()</code></p>...
javascript jquery
[3, 5]
2,115,294
2,115,295
how can I call a JS self-executing function later if I want?
<p>I am trying to write a function that executes immediately but can also be later like:</p> <pre> var test = function (e){ console.log('hello'+e); }(); $('#some_element').click(function(e){ test(' world'); }); </pre> <p>where in this case, the results I would want would be:</p> <pre> helloundefined hello world ...
javascript jquery
[3, 5]
4,412,254
4,412,255
How to extract only first url from text with javascript
<p>I have this regexp </p> <pre><code>function isValidURL(text) { var RegExp = /(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&amp;%@!\-\/]))?/; ...... } </code></pre> <p>And text is: Please use <a href="http://google.com" rel="nofollow">http://google.com</a> or if nothin...
javascript jquery
[3, 5]
3,699,708
3,699,709
Using "this" keyword when creating an eventhandler
<p>I have the following Java code:</p> <pre><code>public class FirstActivity extends Activity implements OnClickListener { Button btn; TextView textview; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(saved...
java android
[1, 4]
4,317,308
4,317,309
Javascript dropdownlist.selectedIndex causing error in ASP.net page
<p>I'm trying to simply enable/disable a button based on whether a value has been selected from a dropdownlist, and for some reason javascript isn't getting the selected index of the dropdownlist. Here's the declaration of the drop down list:</p> <pre><code>&lt;asp:DropDownList ID="ddlMyDropDownList" runat="server"&gt...
javascript asp.net
[3, 9]
2,624,459
2,624,460
is there any downside to add content text through javascript other than it will not shown when if javascrit is disabled?
<p>is there any downside to add content text through javascript other than it will not shown when if javascrit is disabled?</p> <p>for example like this <a href="http://stackoverflow.com/questions/1899913/how-to-detect-linked-pdf-on-a-page-and-show-message-to-download-adobe-reader-usin/1899938#1899938">http://stackove...
javascript jquery
[3, 5]
1,449,405
1,449,406
Word wrap in multiline textbox after 35 characters
<pre><code>&lt;asp:TextBox CssClass="txt" ID="TextBox1" runat="server" onkeyup="CountChars(this);" Rows="20" Columns="35" TextMode="MultiLine" Wrap="true"&gt; &lt;/asp:TextBox&gt; </code></pre> <p>I need to implement word-wrapping in a multi-line textbox. I cannot allow users to write more t...
javascript jquery asp.net
[3, 5, 9]
5,716,230
5,716,231
Checking Time to allow form filling in PHP (and javascript)
<p>For a website, we have a form where a client enters in their ID number that sends them to a new page that allows them to make a request for our services. </p> <p>We want to change it so that clients can only request our services from Tuesday-Friday from 12pm - 4pm. If they try to enter their id number during a time...
php javascript
[2, 3]
1,938,313
1,938,314
ViewState to compare CheckBoxList Selected Values
<p>I have a button that creates a <code>CheckBoxList</code>. The items in the <code>CheckBoxList</code> are selected based on a user's current notification subscriptions. I'm storing the true or false value of the selected item.</p> <p>After the users change their subscriptions by checking or unchecking a box in the <...
c# asp.net
[0, 9]
4,370,732
4,370,733
Resize external javascript
<p>Can the below external javascript be resized ?</p> <p>Below I have attempted to wrap it in a div and set the width on the div, but it is not resizing.</p> <pre><code>&lt;div width = "100"&gt;&lt;script type="text/javascript" charset="utf-8" src="http://static.polldaddy.com/p/23232.js"&gt;&lt;/script&gt; &lt;noscri...
javascript jquery
[3, 5]
4,973,175
4,973,176
Replace anchor tag onclick javascript function parameter
<p>I have a page which has a couple of anchor tags in this format:</p> <pre><code>&lt;a onclick="javascript:RefreshPageTo(event, &amp;quot;/web/Lists/exceptionlog/AllItems.aspx?Paged=TRUE&amp;amp;PagedPrev=TRUE&amp;amp;p_Created=20111026%2017%3a30%3a16&amp;amp;p_ID=175\u0026PageFirstRow=1\u0026\u0026View={8AB948D3-7F1...
javascript jquery
[3, 5]
1,316,805
1,316,806
Starting Java Source File from Android Activity
<p>I wrote a program to work from the console in Eclipse and the terminal window in Linux. I am now transforming it into an Android app and I have the basic functionality of the Android UI done up until the point where it needs to use the logic from the Java file of the program I wrote. All of my inputs from the Java f...
java android
[1, 4]
5,064,307
5,064,308
Databound Value in href javascript link
<p>I've trawled the net looking for the syntax to get this working and i'm hoping this is a quick fix else i'll go mad. Basically I have a nested repeater and the button below hides another nested repeater.</p> <p><code>((location_details)((RepeaterItem)Container.Parent.Parent).DataItem).tbl_location.location_id</cod...
c# javascript asp.net
[0, 3, 9]
3,019,972
3,019,973
How do I convert this code to JQuery
<p>I've been trying to convert this code to jQuery from Javascript but to no avail. This code is for adding a new item to a list which I took from the <a href="http://msdn.microsoft.com/en-us/library/hh185011%28v=office.14%29.aspx" rel="nofollow">msdn</a> website. It works in javascript but I need it to run every time...
javascript jquery
[3, 5]
3,126,804
3,126,805
JS: Keeping user selection persistent across page reloads
<p>Lets say we have a side bar on a page. It has two tabs. When you click the unselected tab, the content below it in the sidebar instantly switches using jQuery. The old div is hidden, the new div is shown. Not a big deal. </p> <p>Now that you've selected that div however, when you click to the next page, the history...
javascript jquery
[3, 5]
1,391,782
1,391,783
How to store the value in Session using jQuery?
<p>How to store this value in session?</p> <p>My grid has 3 pages.. with page size 50 when I change this dropdown list box in first page it's doing perfect. but when I got to second page I am not seeing selected value for this dropdown list boxes?</p> <p>Is there any way that we can maintain seession for this dropdow...
javascript jquery
[3, 5]
3,060,903
3,060,904
How can I load a Class contained in a website from a DLL referenced by that website?
<p>Ok so this is alittle bit obscure and I'm not sure its the best way of doing what I'm trying to do but here goes.</p> <p>Basically I have a Presentation Layer Dll in my web site which handles the Model View Presenter classes. The presentation layer also handles login for my website and then calls off to a web servi...
c# asp.net
[0, 9]
4,643,875
4,643,876
Jump into Android or learn Java basics first?
<p>I am quite proficient in C and know some C++, but never touched Java. Recently I got an idea for an app which I think has potential, and I want to develop it. </p> <p>I am planning to go Android first, cause it doesn't require a mac/iPhone. </p> <p>So my question is: can I go straight to learning Android developme...
java android
[1, 4]
299,033
299,034
How can I briefly flash a rectangle around a form?
<p>What I want to do is when a user clicks something:</p> <pre><code>&lt;div id="FormContainer"&gt; &lt;form&gt; ... &lt;/form&gt; &lt;/div&gt; &lt;a href="#" onClick="FlashElement()"&gt;Make it flash&lt;/a&gt; </code></pre> <p>It briefly flashes a rectangle around the form within the <code>FormContaine...
javascript jquery
[3, 5]
1,731,925
1,731,926
Accessing Class Properties in ASP.NET
<p>I have 2 C# classes: </p> <pre><code>public class Course { public string Title{get;set;} public int Code {get;set;} } public class Student { public int Id{get;set;} public string Surname{get;set;} public Course Course {get;set} ... } </code></pre> <p>As you can see the Student class contains ...
c# asp.net
[0, 9]
5,343,204
5,343,205
best way to build dyanmic pop up menus
<p>I have a scheduling page that display a week (sunday to saturday) schedule.</p> <p>They way I want to add employees to this schedule is with a series of popup menus that change based on the values selected.</p> <p>For example the first menu will be Jobs with <code>&lt;option&gt;</code> values propagated from the j...
php javascript
[2, 3]
3,732,425
3,732,426
Problem with displaying my Image
<p>Here is my full problem so if anyone has any ideas or can offer some help, please let me know. I have a Website that will generate a Report and this Report takes some time to create. There is a MyReport.ASPX file that has a form1, Image1, and a ReportViewer control. There is also a MyReport.cs file that has C# co...
c# asp.net
[0, 9]
1,120,037
1,120,038
Fading out a div and refreshing the page using jQuery
<p>Given that I have a button within a div:</p> <pre><code>&lt;div id="result"&gt; &lt;a href='#task5'&gt; &lt;img src='resources/book.png' style='padding-top: 10px;' class='button3'&gt; &lt;/a&gt; &lt;/div&gt; </code></pre> <p>How would I use jquery or javascript to: </p> <p>1) Fade ...
javascript jquery
[3, 5]
4,878,173
4,878,174
Getting "invalid assignment left-hand side"
<p>In my JavaScript file I'm trying to load an external API JavaScript and calling function in callback. Its returning "invalid assignment left-hand side" on second line <code>window.loadApi = function(callback) {</code>. Totally confuse because syntactically it is looking okay.</p> <pre><code>var apiUrl = window.loc...
javascript jquery
[3, 5]
5,008,371
5,008,372
Is it possible to conclude the code in a loop?
<p>I have 25 elements on this page: </p> <pre><code>&lt;div id="test1"&gt;&lt;/div&gt; &lt;div id="test2"&gt;&lt;/div&gt; &lt;div id="test3"&gt;&lt;/div&gt; &lt;div id="test4"&gt;&lt;/div&gt; &lt;div id="test5"&gt;&lt;/div&gt; </code></pre> <p>Also I have code for update html in divs:</p> <pre><code>setInterval(func...
javascript jquery
[3, 5]
3,867,711
3,867,712
alerting user on other user login with jquery ajax
<p>how can i alert the user already logged in for the new user logged in........suppose....</p> <p>user1 one is currently logged in and user2 is offline. i want to alert user1</p> <p>when user2 logged in............</p> <p>how can i achieve this</p>
php jquery
[2, 5]
4,693,113
4,693,114
How to Add Data Contents to Data Grid in the Same Page without any Database Connectivity?
<p>Say, I have a TextBox - When the User enters contents into TextBox and Click on Add the Content Should Populate in the DataGrid Without any db connectivity. The User Can add repeated items in the TextBox and Click on Add, So Every Value gets Popluated in the Grid. How do I achieve this?</p>
c# asp.net
[0, 9]
3,988,177
3,988,178
How to hide and show keyboard on tablets
<p>When i run my app on a keyboard phone it works fine and it looks good but when it is run on the tablet the keyboard screen stays up and i want to hide it when i am done with user input. Is there a way to hide/show the keyboard? All relevent answers are appriciated!</p> <p>Update: i also want to be able to detect we...
java android
[1, 4]
918,257
918,258
change css classes of element added to DOM at runtime
<p>I've included some JavaScript from a third party in my page. This adds the following element to the page some time after the page is loaded:</p> <pre><code>&lt;a class="foo"&gt;some link&lt;/a&gt; </code></pre> <p>I need to ensure that this is changed to:</p> <pre><code>&lt;a class="bar"&gt;some link&lt;/a&gt; </...
javascript jquery
[3, 5]
60,604
60,605
How to get cookie value with javascript or jquery
<p>I am getting following cookie values on my home page.</p> <blockquote> <p>vsettings=HiddenNotifications=%2C19%2C; (referral)|utmcmd=referral|utmcct=/; ASPSESSIONIDQCSBCCAD=LFLGDKACEGPCPFGBANHFFBMK; ASPSESSIONIDSASDCCDA=OFEHPJACGHNKICDLFBOCJNNH; ASPSESSIONIDQCSDDCBC=LGFPBDLCKHLIOLPMCAGJNFIM; ASPSESSIONID...
javascript jquery
[3, 5]
2,700,031
2,700,032
timestamp convertion in java (windows OLE (64 bit Double) to human readable format
<p>i want to convert windows :OLE(64 bit Double) ie.., "FBE8DF975D3FE340" to human readable format ie.., Mon, 03 December 2007 03:41:42 +0530 so there is algorithm to convert it which i am not getting. for refference <a href="http://www.digital-detective.co.uk/freetools/decode.asp" rel="nofollow">http://www.digital-det...
java android
[1, 4]
4,770,624
4,770,625
How to click some parts of an image
<p>I need to make an index page only with the following image. </p> <p>When the user clicks the water between the flags, he can continue to the next page. If the user presses at any other location, an alert message will be shown. Do we have any x-axis,y-axis concept in PHP? </p> <p>Anyone have any idea how to make an...
php javascript jquery
[2, 3, 5]
2,880,998
2,880,999
How do I tell programatically if I am running under Medium Trust?
<p>In C# how do I tell if my assembly is running under medium trust in asp.net? Is there something similar to Debugger.IsAttached for this?</p>
c# asp.net
[0, 9]
4,496,139
4,496,140
jquery select link by name
<p>i can reference link with specific id with following code</p> <pre><code> $(document).ready(function(){ $("a#example_link_id").click(function(event){ var url = $(this).attr("href"); get_uid(url); //event.preventDefault(); }); }); </code></pre> <p>is it possible to use <...
javascript jquery
[3, 5]
2,212,494
2,212,495
Write a file in SDcard in Android
<p>I have been searching this problem. It actually worked in older version of android, but after I updated SDK, I get an error. Error message is "open filed: ENOTDIR (Not a directory): /sdcard/PlayNumbers/mysdfile.xml" Can please someone point me what I did wrong?? My codes are below.</p> <p>Many Thanks,</p> <pre><co...
java android
[1, 4]
4,436,404
4,436,405
How to make Javascript object available outside function?
<p>I am retrieving some JSON data with the following function. It is called when an element is clicked and the data is used to create a table, populate the cells with images and append the table to a div.</p> <pre><code>function LoadImagesByCategory() { $.getJSON("/Service/GetJson.ashx?data=images", function(data)...
javascript jquery
[3, 5]
2,834,853
2,834,854
Upload file in asp, AJAX
<p>where error? if i dont use ajax, then form is valid, and file is uploading, but now page reload and...file not load in path, why?</p> <p> </p> <pre><code> &lt;asp:UpdatePanel ID="UpdatePanel1" runat="server"&gt; &lt;ContentTemplate&gt; &lt;p&gt; &lt;asp:FileUpload ID="FileUpload1" runat=...
c# asp.net
[0, 9]
833,472
833,473
How to determine if it is day or night in javascript or jquery?
<p>Im wanting to apply different CSS sheets to my site depending on the time of the browser. e.g if its day time, display day.css or night.css for night.</p> <p>I can do this with PHP but it is based on the server time, not the browsers local time.</p> <p>Is there a way to tell the time in javascript? I'm probably go...
javascript jquery
[3, 5]
1,452,963
1,452,964
How to develop a Query Refinement tool using C# / Asp.Net
<p>Want to develop a query refinement tool just like Google Suggest so that i will get recommended options when i enter keywords in the search textbox i.e( if i type "car" i will get the recommended options as rental cars,used cars,cars for sale etc) want to develop the tool in c#/ASP.Net dont know where to start.pleas...
c# asp.net
[0, 9]
1,331,698
1,331,699
How to dynamically include all scripts in a page using body onload event
<p>I am trying to include a page (a.xhtml) using <code>&lt;ui:include&gt;</code> inside <code>&lt;rich:dataTable/&gt;</code>. The included page contains a script to load a image. Based on the number of iterations script will be included with different function names. I want to call all the javascript function in a page...
javascript jquery
[3, 5]
4,823,764
4,823,765
Inconsistent variable output
<p>A few days ago I made a lord generator for a game called Broken History I play with my mates, I started the code myself but ended up getting help with the code to finish it. </p> <p>I then set about making a char gen for the same game, using the exact same methods that worked before, everything was looking good eve...
javascript jquery
[3, 5]
3,977,499
3,977,500
Which is faster, int to String or String to int?
<p>This may seem like a fairly basic question, for which I apologise in advance.</p> <p>I'm writing an Android app that uses a set of predefined numbers. At the moment I'm working with <code>int</code> values, but at some point I will probably need to use <code>float</code> and <code>double</code> values, too.</p> <p...
java android
[1, 4]
5,877,162
5,877,163
How to get day of the month?
<p>I am trying to retrieve which day of the month it is.</p> <p>Such as today is August 29,2011.</p> <p>What i would like to do is just get the days number such as 29, or 30. Which ever day of the month it is. </p> <p>How would i go about doing this?</p>
java android
[1, 4]
818,248
818,249
How to Pass a parameter form button click to Jquery Function
<pre><code>protected void Button3_Click(object sender, EventArgs e) { string val = TextBox1.Text; string location = Server.MapPath("."); SqlCommand cmd = new System.Data.SqlClient.SqlCommand("SELECT ISNULL(MAX(MODIFIED_NO),0) FROM FORM_NAME WHERE FRM_NME='" + TextBox1.Text + "'"...
c# jquery
[0, 5]
5,692,819
5,692,820
Convert bool? to Yes/No/null string
<p>i have an object that as a parameter bool?</p> <p>i need to show it on a repeater.</p> <pre><code>&lt;%# Eval("LS_Body_Connection") %&gt; </code></pre> <p>i create a class </p> <pre><code>public static class BooleanExtensions { public static string ToYesNoString(this bool value) { return value ? ...
c# asp.net
[0, 9]
3,713,977
3,713,978
Is it possible to secure cookies?
<p>I am using JQuery.cookies to manage cookies. I am storing objects and user/login informations.</p> <p>Is there a way to encrypt or secure the cookies? or is it possible with SSL only?</p>
javascript jquery
[3, 5]
441,829
441,830
python to php conversion
<p>I'm trying to convert parts of a python script into php. I know most of it, but I've run into something to do with bitshifting (i think?) which I don't have much experience in even in PHP! Can somebody translate this python function into php please?</p> <pre><code>def setBit(value, position, on): if on: ...
php python
[2, 7]
13,719
13,720
jquery resize li based on a string size
<p>I have some query which will calculate the pixel width for each li. problem is it doesnt take into consideration the amount of characters in an A href.</p> <p>You might get "Cartouches/Réservoirs" and it will attempt to assign 124px width based on the calculation of the other items.</p> <p>I need to check first if...
javascript jquery
[3, 5]
1,188,236
1,188,237
Error in Javascript code?
<p>What is wrong in this code? it shows an Syntax error in <code>eval(e.text); //run the script</code></p> <pre><code> runScripts1: function(e) { if (e.nodeType != 1) return false; //if it's not an element node, return if (e.tagName.toLowerCase() == 'script') { eval(e.text); //run the scr...
javascript jquery
[3, 5]
5,524,177
5,524,178
Reload tab in android
<p>I have tabhost in my application(2 tabs),when i select tab2 the content has been dislayed has a list view ,again i have list click event here to move further another list view,here the 2tab already in selected mode and it's focus not been changed,when i click the 2tab again i need it to reload its content has loaded...
java javascript android
[1, 3, 4]
3,458,670
3,458,671
Is getElementsByTagName a safe call to make accross all browsers?
<p>Just looking at other peoples .js code to learn from, and this site that uses jquery actually makes references to:</p> <pre><code>document.getElementsByTagName </code></pre> <p>I'm guessing this is faster that using a jqeury selectory, is it safe accross all browsers?</p>
javascript jquery
[3, 5]
3,139,521
3,139,522
Merge two JavaScript objects
<p>I've got a big JavaScript object literal I am reusing with very few modifications each time. It would be good to make a variable containing most of the object, then reference that each time I need it.</p> <p>But how can I do that? I tried to do this, but it didn't work:</p> <pre><code>var settings = { legend: { ...
javascript jquery
[3, 5]
1,746,492
1,746,493
Getting Missing ) argument from below script any suggestions why?
<pre><code> &lt;form name="formone" id="optionsform"&gt; &lt;fieldset&gt; &lt;label&gt;&lt;input type="radio" name="group1" id="ac-yes" value="1"&gt;Yes&lt;/label&gt; &lt;label&gt;&lt;input type="radio" name="group1" id="ac-no" value="0"&gt;No&lt;/label&gt; &lt;label&gt;&lt;input type="radio" name="...
javascript jquery
[3, 5]
2,043,371
2,043,372
Problem with Index of in Substring array
<p>ProfilePageList is the string array with each string containing pageID, PageName and PageContent separated by group of characters (#$%). This is a ASP.NET application using C#</p> <pre><code> foreach (string item in ProfilePageList) { string PageContent = ""; string PageName =...
c# asp.net
[0, 9]
4,046,232
4,046,233
How to Preserve Formatting in a Multi-Line Text Box
<p>I have a website where I create a textbox multi-line at runtime depending on some selections for example, they specify the number of lines and the width, then I create the textbox and put it in a panel on the next page. My issue is that in the textbox they would like to write something like this:</p> <pre><code> ...
c# asp.net
[0, 9]
2,195,170
2,195,171
jquery color picker hover element
<p>Need help with Hover class. </p> <p>As you can see the code then I have to hover the elements, but unfortunately they do not change color. have any ideas how to make everything working?</p> <p>I have followed the code:</p> <pre><code>$('#color_mix_menu_top').ColorPicker({ color: '#0000ff', onShow: functio...
javascript jquery
[3, 5]
1,848,041
1,848,042
Android Emulator: Write file to local file system?
<p>I am wondering if its possible to get my android application to save a file to a windows file system or is there a simple work around I can adopt?</p> <p>I am using the android emulator to do tests and I need it to write to the local hard drive so I can do further processing on the file.</p> <p>I hope this is poss...
java android
[1, 4]
1,467,861
1,467,862
android remote server
<p>i'm building an android application which i want all the user of the application share information throw a php script located in my server. <br>for example: i have a google Map and i want see all my friend's location. each of my application's users will send his current position the the php script (the server) every...
java android
[1, 4]
4,080,674
4,080,675
onkeypress textbox issue
<p>I have this:</p> <pre><code>&lt;input type="text" ID="txtMy" name="txtMy" onkeypress="initialize();"/&gt; </code></pre> <p>And in my .js file I have:</p> <pre><code>initialize() { var x = $("#txtMy").val(); } </code></pre> <p>But, if I have '2' in my textbox, and then I enter 4, the value of x is still 2. Ho...
javascript jquery
[3, 5]
3,810,476
3,810,477
Redirect not working properly
<p>Its a very silly problem but somehow it is not working I have a function to create a file, if it goes through with it i want it to redirect the user to X page.. in this case 1.php.... but somehow is not working :S why?</p> <pre><code> //Creates File, populates it and redirects the user. if (createfile($dbFile)) ...
php jquery
[2, 5]
2,925,958
2,925,959
How to get the exact path of file stored in internal storage from different tablets?
<p>I want to get the <strong>filename</strong> stored in documents folder.</p> <pre><code>Environment.getExternalStorageDirectory()+"/documents/"+Abc.doc; </code></pre> <p>To get the filename, I had hardcoded the path using <code>substring(11, path.length())</code>. It works fine only for specific tablets, but its n...
java android
[1, 4]
2,531,081
2,531,082
clear checked radio button value from form
<p>I have this piece of code which represents a few radio buttons.</p> <pre><code>&lt;label&gt;Tipologia Pdv: &lt;/label&gt; &lt;input type="radio" name="tipologia_pdv" id="tipologia_pdv" value="Iper" style="width:40px;" /&gt;&lt;span &gt; Iper&lt;/span&gt; &lt;input type="radio" name="tipologia_pdv" id="tipologia_pdv...
javascript jquery
[3, 5]
970,561
970,562
how can i know if a php file was only called from js on the client side?
<p>I have a javascript on my webpage which makes a call to a php file and passes some values to the php file. How can i know for sure that the call to the php file was from the js on my webpage and not directly entering the php url from the browsers address bar?</p>
php javascript
[2, 3]
5,774,965
5,774,966
Disabling button in javascript not working in IE
<p>I have a requirement to disable a button when no value is found for a certain object. This code works in FF and the button is greyed out. It doesn't work in IE however.</p> <p>Here is my code:</p> <pre><code>if(c4Obj.getValueByName("Combined_Order",1)=="") $("#StockPlates_btn").attr('disabled', true) else ...
javascript jquery
[3, 5]
949,344
949,345
Filter URLs of websites with adult content
<p>What I was trying to do was have users type in their favorite sites in a form and submit it onto their profile</p> <p>What I wanted to ban was pornographic sites, but since there are most likely thousands of those sites out there, what is the best way of banning them?</p> <p>My first option was using javascript li...
php javascript
[2, 3]
4,181,401
4,181,402
How to change the color of few nodes of treeview in asp.net?
<p>I need to programmatically change the color of nodes in treeview. Is there any solution with asp.net or jquery? PS: I am binding the treeview nodes on demand.</p> <pre><code> private void BindTreeViewControl() { try { DataTable dt = new DataTable(); ...
jquery asp.net
[5, 9]
1,329,918
1,329,919
Application object access from regular class in ASP.Net
<p>Our teachers (coaches for this project) suggested to store our DAO objects in the Application object, so there's one object of each available for the whole application.</p> <p>This Application object is easily accessed in the Page codebehind itself, but how do we access it from a plain class that is not extending a...
c# asp.net
[0, 9]
3,306,179
3,306,180
Python module installed or not installed?
<p>How can I check if my Python module is successfully installed.</p> <p>I did:</p> <pre><code>python setup.py install </code></pre> <p>inside the folder where my module was downloaded.</p> <p>Now, I can see that this resulted in a folder inside this location:</p> <pre><code>/usr/lib/python2.4/site-packages (I can...
php python
[2, 7]
1,780,389
1,780,390
Developing using a non-official kit on the Android?
<p>I have been doing some research on developing on the Android platform and found that the only way to develop an app using C++ is using the NDK. I also came to know that the NDK has limited support to C/C++, with C++ having even lesser support than C. Here's the problem. I need to develop using C++ as I'm not very fa...
c++ android
[6, 4]
298,615
298,616
jQuery.off() is not removing binding
<p>For some reason jQuery.off('click') doesn't seem to be working here. When the 'Yes' button is clicked in the model another model just pops up. What am I doing wrong?</p> <p>code:</p> <pre><code>$(function(){ //If there are warnings on the page bind alert if ($('.renewal-warning').length &gt; 0){ (functio...
javascript jquery
[3, 5]
4,431,770
4,431,771
How to make a Jquery form? with persisiting values on panel change
<p>I want to make a Jquery form, having form structure like this</p> <pre><code>panel1{ Name address age years of experience } panel2{ graduation deatails. first year marks second year marks third year marks } panel3{ some more fileds } </code></pre> <p>then a NEXTButton previousButton</p> <p>i want to achi...
javascript jquery
[3, 5]
4,475,618
4,475,619
error:Object reference not set to an instance of an object
<p>I used 2 gridview and I used this code behind:</p> <pre><code>protected void SAVE_bt_Click(object sender, EventArgs e) { if (Hidden_txt.Text == Convert.ToString(1)) { for (int i = 0; i &lt; FirstDD_gv.Rows.Count; i++) { GridViewRow row = FirstDD_gv.Rows[i]; bool isCh...
c# asp.net
[0, 9]
1,065,819
1,065,820
Converting unmanaged C++ code to C#
<p>Anyone with pointers to a tool/utility for converting unmanaged c++ to c#? I have tried the <a href="http://www.pinvoke.net/" rel="nofollow">http://www.pinvoke.net/</a> site but I cant find reference to this API <code>AddUsersToEncryptedFile</code> on this <a href="http://stackoverflow.com/questions/1347275/c-progra...
c# c++
[0, 6]
1,990,735
1,990,736
Programming for non-javascript users
<p>To ensure that my site is friendly to non-javascript users, I've built it without using JavaScript, and added it once the site was built.</p> <p>So now I have a link as following:</p> <pre><code>&lt;a href="http://example.com/panel" id="showPanel"&gt;Expand&lt;/a&gt; </code></pre> <p>But if JavaScript is enabled,...
javascript jquery
[3, 5]
4,714,274
4,714,275
creating something like pageflakes
<p>Does anyone know about a tutorial that lets you to create something like pageflakes.com for your website? In jquery perhaps?</p>
javascript jquery
[3, 5]
2,263,517
2,263,518
How to refresh and Reload the pages using javascript?
<p>I have one requirement.i.e. Have one login form contains username and password,once we entered wrong password, it navigates to another page(Error message page) and I clicked the browser back button for previous page(login page).Now my page is refreshing,but I need page Reloading.Can you please help me how to reload ...
javascript jquery
[3, 5]
3,746,692
3,746,693
How can I share data between multiple user controls?
<p>I have 3 user controls, each one of which will need to pull data from an XML feed based on various URL parameters and such. Now the data in this XML feed will be identical for all 3 user controls, because they're all sending the same request.</p> <p>It seems silly to make 3 separate requests for what will be identi...
c# asp.net
[0, 9]
2,442,302
2,442,303
How can I hide file extensions in PHP?
<p>I'm using the jquery plugin <a href="http://abeautifulsite.net/notebook/58" rel="nofollow">jqueryFileTree</a> with the PHP connector (slightly modified to give directories individual classes) to show the contents of a directory. I want to, however, hide all file extensions. Has anyone done something similar? I can t...
php jquery
[2, 5]
4,010,446
4,010,447
find the top left first first visible element in wiew port using jquery
<p>I am displaying an ebook in a webpage and would like to be able to create a bookmark inside the document. For this A would like to find the first visible element in the viewport and use it as bookmark. What is the way to achieve this using jquery or plain javascript?</p>
javascript jquery
[3, 5]
5,510,932
5,510,933
How we can automatically run the test methods in .net?
<p>I need to run all the test methods once at a time automatically. I have separate test methods written in separate files. Is there any way to run all the test methods at a time automatically. Please suggest if any.</p>
c# asp.net
[0, 9]
2,169,631
2,169,632
Meaning of :: Operator in C# and PhP
<p>In my work I have come across syntax like global:: (C#) or G:Loading($value) in Php, what do they mean?</p>
c# php
[0, 2]