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
898,026
898,027
programming question on asp.net and javascript using radio button and textbox and file upload
<p>Hi I have two radio button,one text box and one file upload.I want when first radio button is checked then text box is required and if i checked second radio button then file upload is required in asp.net.I set two required field on both text box and file upload. Is it possible using java script that one radio butto...
c# javascript asp.net
[0, 3, 9]
3,029,992
3,029,993
Getting "Error on page" error in internet explorer 7
<p>I have created a page in javascript and in it i created an infragestics grid control which i can display the data for a search criteria. The C# code is working fine. It is reading the data from the database but not displaying the results on the web page. The page loads with a yellow mark at the corner saying "Error ...
c# javascript
[0, 3]
3,694,132
3,694,133
How to detect if video is currently playing in page without using youtube/ggole api
<p>Situation: I have a page that shows a stream of posts (news) submitted by our members. I have a setInterval() in this page that causes it to refresh every x seconds - if user is idle for x seconds. </p> <p>Recently I have added video posts where user can click on an item and video would begin to play immediately in...
javascript jquery
[3, 5]
2,382,114
2,382,115
jquery animate the page background-color on page load
<p>I'm attempting to just change the background colour of a webpage upon page load. I see no reason why this shouldn't work, "body" is the correct element I wish to manipulate. I am using <a href="http://docs.jquery.com/UI/Effects/animate" rel="nofollow">http://docs.jquery.com/UI/Effects/animate</a> as a reference.</p...
javascript jquery
[3, 5]
1,558,517
1,558,518
Calling a javascript library from ASP.NET
<p>This is a fairly newbie question I'm sure. I'm looking at replacing our server side charting library with the open source javascript library 'flot'. I can use ASP in the javascript used to call the library as per the following example</p> <pre><code>&lt;div id="placeholder" style="width: 600px; height: 300px;"&gt; ...
javascript asp.net
[3, 9]
5,468,010
5,468,011
Timer with interval alert
<p>I have a jquery timer on my page that counts down from 10 to 0. At 5 seconds I want to show a warning message then at 0 seconds I want to show another message. </p> <p>I have used the code below which will do the count down in the form field as well as give the alerts, however the countdown stops when the alerts sh...
javascript jquery
[3, 5]
4,130,476
4,130,477
jquery trying to achieve mouse direction & angle
<p>Im trying to do a mouse direction + angle script just like the game "Pixel". I want to be able to move the element around with my mousemove event and have the element feel the direction and point its tip towards it. I cant seem to understand how the method works, I tried several different approaches to figure out th...
javascript jquery
[3, 5]
4,840,293
4,840,294
Retrieve row number based on value in DataTable
<p>I want to know the exact row number and I'm using this code</p> <pre><code>DataRow[] resultsize = dt.Select("psize like '%" + hdncurrentsize.Value + "%'"); </code></pre> <p>but result is always <code>1</code> but not the exact matching row number.</p>
c# asp.net
[0, 9]
4,269,596
4,269,597
How to set a view state in a master page?
<p>I need to check whether an event is fired from the master page or not. For that i kept a count in the viewstate . This is throwing exception on page load. I'm just calling the below line in a pageload</p> <pre><code>Int32 count = Int32.Parse(this.ViewState["Count"].ToString()); </code></pre> <p>Please help.</p>
c# asp.net
[0, 9]
979,232
979,233
JQuery wait a number of seconds before the next line of code is executed
<p>I need a simple way or pausing a few seconds before the next line of code is executed.</p> <p>So I have:</p> <pre><code>$('.myClass').show(); //WAIT FOR 5 SECONDS HERE $('.myClass').hide(); </code></pre>
javascript jquery
[3, 5]
146,496
146,497
Android java Screen as an button
<p>How can I make the screen as a button? I want to make a game where you click on the hole screen not just a button in Xml. I want this code to be in Java not Xml. Anyone with a tip out there?</p>
java android
[1, 4]
1,648,008
1,648,009
What is unique identity of an Internet connected device IP / MAC?
<p>I am making a script that show popup only one time , then it will never show again on that device.. </p> <p>How is it possible to do this?</p> <p>I have already tried by using cookies, but these can be deleted by the user and so the effect is limited.</p> <p>Another question is what is wholly unique per device, I...
php javascript
[2, 3]
598,941
598,942
jQuery limit sortable to parent table row
<p>So I have a table which has several categories, with several items underneath in each category.</p> <p>Something like: </p> <pre><code> &lt;tr&gt; &lt;td&gt;Category1&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Item1&lt;td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Item2&lt;/td&gt; &lt;/tr&g...
javascript jquery
[3, 5]
5,620,507
5,620,508
Issue with text area key down event using jQuery
<p>We're having problems trying to implement a word counter similar to the one on twitter which decrements when the user types in the text field. Unfortunately it's quite glitchy as once you've deleted all the characters via backspace it displays that you only have 84 characters left (unless you hit backspace again). I...
javascript jquery
[3, 5]
3,797,692
3,797,693
Switch Membership Profile to other Profile without password?
<p>I've an application where every user stores his settings with the AspNetSqlProfileProvider in the aspnet_Profiles table. Now I want to give the administrator the possibility to switch to another user to see his settings. But I don't know the windows password of the other user (and I don't want to know it) so I'm not...
c# asp.net
[0, 9]
3,321,507
3,321,508
How to run android emulator with sd card
<p>HI,</p> <p>I download and build android 1.5r3 source. I did 'lunch 1' and then 'make'.</p> <p>And when it is done, I run my emulator like out/host/darwin-x86/bin/emulator -sdcard sd256m.img</p> <p>But when I click 'Gallery', it said 'No Media Found'. I am sure the sd card i created (sd256m.img) has images in the...
java android
[1, 4]
5,393,290
5,393,291
Listview cacheColorHint having problem?
<p>I'm trying to scroll the item in listview. It works properly with (android:cacheColorHint="#00000000"). But, now i want to scroll with selecting item only should change it's color like orange. How to do this? Is it Possible? Thanks in Advance.</p>
java android
[1, 4]
3,127,882
3,127,883
android Toast and View help
<p>I am trying to create a Helper class to display Toasts in my android app, as follows.</p> <p>public class ToastHelper{</p> <pre><code>final static Toast toastAlert(String msg) { LayoutInflater inflater = LayoutInflater.from(Main.self.getApplicationContext()); View layout = inflater.inflate(R.layout.toast_layout,...
java android
[1, 4]
1,792,872
1,792,873
Display exception message through javascript alert in asp.net
<p>I am trying to show exception message through javascript alert box.</p> <p>Here is the sample code.</p> <pre><code>public static void HandleException(Page page, Exception ex) { string message = ex.Message.ToString(); ScriptManager.RegisterClientScriptBlock(page, page.GetType(), "", "alert('"+message+"');",...
c# javascript asp.net
[0, 3, 9]
533,245
533,246
How can I get a HTML data value as a string with jQuery?
<p>I have the following in my source HTML:</p> <pre><code>&lt;li&gt;&lt;a href="#" data-value="01"&gt;Test&lt;/a&gt;&lt;/li&gt; </code></pre> <p>I want to get the value of the data attribute so I am using the following:</p> <pre><code>var abc = $(this).data('value'); </code></pre> <p>This works okay BUT not if ther...
javascript jquery
[3, 5]
5,894,608
5,894,609
Is Android's JavaScript environment documented?
<p>I'm looking for a JavaScript reference for Android's JavaScript environment, the objects provided by the browser, similar to the Mozilla Developer Center. Where is it?</p> <p>I'm really looking for the browser documentation, specifically which XMLHttpRequest extensions have been implemented.</p>
javascript android
[3, 4]
5,101,420
5,101,421
How to use object in javascript or jquery
<p>I need to create object parameter some thing like this </p> <pre><code>sample_data=[{ name: 'new', data: [1, 0, 2, 8, 1] }, { name: 'open', data: [1, 2, 3, 7, 1] },{ ...
javascript jquery
[3, 5]
5,380,699
5,380,700
Dropdown HTML form's Plug-in(Sparbox) doesn't work inside the lightbox(prettyPhoto)
<p>I am using prettyPhoto plug-in and it works fine. I added a new plug-in, Sparbox for customizing an HTML form. This works outside the lightbox but not inside. <br/></p> <p>Please take a look. At the bottom you can see the dropdown menu works just fine but when you click on upload at top and the lightbox shows up th...
javascript jquery
[3, 5]
1,329,546
1,329,547
How to set Timed splash screen or image at website startup?
<p>I need an image or a splash screen at website startup and it have to close after 5 seconds and redirect to main page. How to achieve this in asp.net ?</p>
c# javascript asp.net
[0, 3, 9]
179,511
179,512
group trs for hover
<p>is there a way to group tr's in a table so when you hover over lets say five of them the hover function is fired?</p> <p>I can do this individually but I would like 5 rows to act as one group. So anywhere in that 5 rows the hover is in affect. When you hover out it goes away. </p> <p>I am currently using this for ...
javascript jquery
[3, 5]
3,350,688
3,350,689
Create array of values from array of objects
<p>Is there any tool to to create: </p> <pre><code>[ 'John', 'Sam', 'Marry' ] </code></pre> <p>from:</p> <pre><code>[ { name: 'John' }, { name: 'Sam' }, { name: 'Marry' } ] </code></pre> <p>?</p>
javascript jquery
[3, 5]
304,860
304,861
How to find Ajaxfileupload control inside Listview When in Editmode
<p>I'm trying to find ajaxcontroltoolkit:ajaxfileupload which is placed inside a ListView in EditItemTemplate mode. I need to say i already tried to find this control in my ListView in these two events without result: ItemEditing and ItemDataBound. Should I forget to use ajaxfileupload inside ListView or GridView? or i...
c# asp.net
[0, 9]
5,951,761
5,951,762
problem adding javascript to control
<p>i am using this script in .cs page..</p> <pre><code>public void messagebox(string msg) { Label lbl = new Label(); lbl.Text = "&lt;script language='javascript'&gt;" + Environment.NewLine + "window.alert('" + msg + "')&lt;/script&gt;"; Page.Controls.Add(lbl); } </code></pre> <p>error as</p> <p>The Controls c...
c# javascript
[0, 3]
2,065,093
2,065,094
Read Status code
<pre><code>conn = (HttpURLConnection) connectURL.openConnection(); conn.setDoInput(true); conn.setDoOutput(true); conn.setUseCaches(false); conn.setRequestMethod("POST"); conn.connect(); int code = conn.getResponseCode(); </code></pre> <p>I have successfully established a connection. I am trying to pass the informatio...
java android
[1, 4]
4,442,258
4,442,259
facebook share a page in c#
<p>When I click 'Share', then it opens facebook share page in a new tab. I want to show temp.jpg in left bar in this page. How to do this?</p> <p>test.aspx</p> <pre><code>&lt;div id="page-wrap"&gt; &lt;!-- AnythingSlider #1 --&gt; &lt;ul id="slider1" style="width: 778px; height: 452px; background:#fff;"&gt; ...
c# javascript jquery asp.net
[0, 3, 5, 9]
2,444,057
2,444,058
What does <?> mean in Android?
<pre><code>public void onItemClick(AdapterView&lt;?&gt; parent, View v, int pos, long id) </code></pre> <p>What is the meaning of <code>&lt;?&gt;</code> in the above code?</p>
java android
[1, 4]
91,672
91,673
Javascript splitting
<p>lets say i have this variable</p> <pre><code>var image = "image.jpg"; </code></pre> <p>I'm trying to split the content of the variable image and insert _thumbs into it to get something like <code>image_thumbs.jpg</code>.</p> <p>How do i go about this? Many Thanks.</p>
javascript jquery
[3, 5]
5,336,855
5,336,856
Accessing each CalendarDay in Calendar Control without using the DayRender Event
<p>I need to manipulate the appearance of the an ASP.NET calendar control. I have data that I need to display on the calendar control but I don't want to access the data from within the DayRender event. How do I access the CalendarDay object that represents each day in the calendar without being within the DayRender ...
c# asp.net
[0, 9]
5,490,237
5,490,238
PHP/Javascript: Restart Form Button Isn't Working, Code Insde
<p>Basically I want a confirmation box to pop up when they click the button asking if they sure they want to restart, if yes, then it destroys session and takes them to the first page. Heres what i got...</p> <pre><code>echo "&lt;form id=\"form\" name=\"form\" method=\"post\" action=\"nextpage.php\"&gt;\n"; echo " &l...
php javascript
[2, 3]
3,445,456
3,445,457
Getting a Syntax/Parse error when using jQuery in Velocity
<pre><code>&lt;script type="text/javascript&gt; (function($, win) { function mySettingsInitJS () { var self = this; var opts = { 'params' : "userId=" + userId; }; self.init = function() { self.initUnlinkAction(); }; self.initbtnAction = function() { $('#Btn').click(se...
javascript jquery
[3, 5]
4,414,886
4,414,887
In Java what is idomatically most similar to raising a Python ValueError?
<p>If I were writing a Python function which received an argument with the correct type, but a value out of bounds, then I might throw a ValueError or one of it's sub-classes.</p> <p>For example, suppose I had a function which added up the prices on an invoice. If one of the prices had a negative value or one of the i...
java python
[1, 7]
4,786,760
4,786,761
JQUERY: Dynamic AJAX and html element removal
<p>Consider this code:</p> <pre><code>&lt;tr&gt; &lt;td&gt; &lt;input type="checkbox" name="20081846" value="20081846" class="chk-input"&gt; &lt;/td&gt; &lt;td&gt;20081846&lt;/td&gt; &lt;td&gt;AGONOY, JAY TAN&lt;/td&gt; &lt;/tr&gt; </code></pre> <p>Let's say I have N of these in a table (with different sets of data)....
javascript jquery
[3, 5]
1,145,740
1,145,741
trouble accessing working HTTPService from Android
<p>I have a working .Net WCF HTTP service. If I put the URL into I.E, FireFox, or google Chrome browsers, I get back the correct stream. But when I try to access that same service in an android app (running in Eclipse) I get a socketException with the detail message "Permission Denied". The service is running on my ...
java android
[1, 4]
5,583,166
5,583,167
Is there really no way to programmatically click a link using PHP?
<p>I have been trying for a while now trying to figure out how to programmatically click a link using PHP and/or javascript. I have it setup so if the user clicks a link it will refresh a table. You don't really need to know why I want to do this b/c then it will go down a whole long road of confusion. Just know that t...
php javascript
[2, 3]
1,358,924
1,358,925
how to sum values in each row of a column of html table generated from database in jsp using javascript?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/6931775/how-to-sum-columns-of-html-table-generated-from-database-in-jsp-using-javascript">how to sum columns of html table generated from database in jsp using javascript?</a> </p> </blockquote> <p>hey i want to...
java javascript
[1, 3]
446,881
446,882
Storing String on array java
<p>I want to know if is it possible to Store a String variable on a String array? I cant explain it well but here is what i do:</p> <pre><code> String st1 = "",st2 = "",st3 = "",st4 = ""; String[] str = {st1,st2,st3,st4}; </code></pre> <p>Unfortunately when i use for loop the str gets the value of st1 and st2 and st...
java android
[1, 4]
5,620,754
5,620,755
Jquery increment numbers with a limit of 5
<p>I'm adding text fields with a onclick. What I'm trying to do is limit the amount of boxes to about 5.</p> <p>I also need to increment the number to use as an ID.</p> <p>my code: </p> <pre><code>jQuery('#add_slider_image').click(function() { var i = 0 var plus = ++i; jQuery('.form-table'...
javascript jquery
[3, 5]
286,883
286,884
jQuery access parent object attribute?
<p>So I have this code:</p> <pre><code>function theObject(){ this.someelement = $("#someelement"); this.someotherelement = $("someotherelement"); this.someelement.fadeOut(500, function(){ this.someotherelement.attr("title", "something"); this.someelement.fadeIn(500); }); } </code></pre> ...
javascript jquery
[3, 5]
2,788,610
2,788,611
ASPX Accessing master page function
<p>I am trying to access a function placed in master page code-behind from another ASPX page as follows.</p> <p>Main.master.cs:</p> <pre><code>public partial class Main : System.Web.UI.MasterPage { protected void Page_Load(object sender, EventArgs e) { ... } public static bool test() { ...
c# asp.net
[0, 9]
4,365,099
4,365,100
Android 2.3X kills Apps into the Background
<p>I always used Android 2.2 for my Apps. But currently I upgraded to Android 2.3.X Gingerbread. So if I start my App and go back to the android "desktop", the app is kill by 3-4 Minutes.</p> <p>I think it will be killed after some minutes inactivity, but I need to run it in background to read some mobile status. </p>...
java android
[1, 4]
3,421,352
3,421,353
load function after page_load
<p>How to load a function after page load is completed?<br> I mean after rendering is completed or after the aspx file loaded i need to call a function: </p> <pre><code>void create_doc() { create_word(); } </code></pre> <p>when loading the page Im assigning some values to lables.. After loading the page i need to...
c# asp.net
[0, 9]
2,713,527
2,713,528
How can I wait a while and then change variable?
<p>I have a little code using jquery and I want to wait like, 300ms and then change a variable. I tried setTimeout but it wouldn't work, it just made the variable change instantly.</p> <pre><code>setTimeout(animationWait = 0, 300); </code></pre> <p>(I defined animationWait earlier globally in the document) Basically ...
javascript jquery
[3, 5]
1,637,531
1,637,532
jquery animation issue in IE
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/6139924/jquery-not-proceeding-to-next-page">jquery not proceeding to next page</a> </p> </blockquote> <p>I have jquery, it works fine in FF, but issue is with IE, image is loading but animation is not happening....
javascript jquery
[3, 5]
3,824,477
3,824,478
How to attach Event Listeners to only newly created elements?
<p>When I fire a function I want it to apply listeners just to elements I pass, particular <code>this</code> jQuery element. </p> <pre><code>addEventListeners(this); function addEventListeners(el) { $(el).mouseenter(function() { $(this).stop(true,true).switchClass("", "HIGHLIGHT", 400, "easeInOut...
javascript jquery
[3, 5]
4,970,473
4,970,474
onkeyup instead of on submit
<p>I'm using JTube found over here: <a href="https://github.com/monkeecreate/jTube/blob/master/examples/other/search/index.html" rel="nofollow">JTube at github</a></p> <p>I'm trying to make a request on keyup instead of on submit. This is the script:</p> <pre><code> var qsParm = new Array(); function qs() { ...
javascript jquery
[3, 5]
2,493,190
2,493,191
How to get hidden field value when check box is checked in a repeater controller?
<p>I have asp.net repeater controller and I am trying to get the value of a hidden field when <code>CheckBox1_CheckedChanged</code></p> <pre><code>&lt;ul id="sortable"&gt; &lt;asp:Repeater runat="server" ID="rep_sortable"&gt; &lt;ItemTemplate&gt; &lt;li class="ui-state-default"&gt; ...
c# asp.net
[0, 9]
565,508
565,509
jQuery: clicking nested elements
<p>I have the following markup</p> <pre><code>&lt;ol&gt; &lt;li class="ListItem"&gt; &lt;span class="sub"&gt;@qItem.CategoryText&lt;/span&gt; &lt;input type="image" src="http://icons.iconarchive.com/icons/tatice/just-bins/256/bin-red-full-icon.png" width="30" class="deleteIcon" name="QuestionId" va...
javascript jquery
[3, 5]
18,462
18,463
session in c# and ASP.net
<p>I've been trying to pass the course_code session value as a parameter but it gives nothing - the page just appears to be blank. I've tried to print the session course_code to check whether it was saved correctly and it was printed correctly. </p> <p>Also, I'm sure that the SQL stored procedure is written correctly...
c# asp.net
[0, 9]
114,230
114,231
Is Python's C interface faster than JNI?
<p>I was reading <a href="http://stackoverflow.com/q/7699020/165103">What makes JNI calls slow?</a> and I was wondering if Python's C interface is any better than JNI.</p> <p>I heard that if you want to make certain parts of your python programs faster, or if a certain part of the program was really hurting your progr...
java python
[1, 7]
5,004,766
5,004,767
When does an input field value equals '', null or undefined
<p>In which cases do an input field value equals <code>''</code>, <code>null</code> or <code>undefined</code>.</p> <p>I'm trying to check empty fields</p> <pre><code>if($('#cur').val() == 'undefined' || $('#cur').val() == '' || $('#cur').val() == 'null'){ alert('Blank'); } </code></pre>
javascript jquery
[3, 5]
701,097
701,098
How to calculate width of an line of text in Jquery?
<p>I am trying to figure out how to calculate just the width of one line of text with jquery.</p> <p>I have the following text in an string</p> <blockquote> <p>"Line 1</p> <p>Line 2</p> <p>Line 3</p> <p>Line 4 Blah</p> <p>Line 5"</p> </blockquote> <p>When testing to find the width of the text w...
javascript jquery
[3, 5]
785,773
785,774
Create commonly used method for asp.net website
<p>Is it possible to create a function that can be called by multiple different pages in asp.net?</p> <p>Say for example I have a method that takes two int parameters and adds them together and spits out the result</p> <pre><code>public int test(int a, int b) { return a+b; } </code></pre> <p>If I wanted to use ...
c# asp.net
[0, 9]
5,230,385
5,230,386
JavaScript before jQuery
<h3>Duplicate:</h3> <blockquote> <ul> <li><a href="http://stackoverflow.com/questions/122902/what-are-some-of-the-pros-and-cons-of-using-jquery">What are some of the pros and cons of using jQuery?</a></li> <li><a href="http://stackoverflow.com/questions/215589/should-i-avoid-using-a-javascript-library-while-lear...
javascript jquery
[3, 5]
1,680,743
1,680,744
Get the name of a prototype constructor inside the constructor itself in javascript
<p>Is it possible to get the name of a class inside the class itself in javascript? It would be useful for recursions on dynamically created classes in my middleware. Think that was an very improperly post — so I better define the problem I want to solve:</p> <pre><code>MyClass = function(){ this.classname = ??? // ...
javascript jquery
[3, 5]
5,810,751
5,810,752
jQuery $.post callback function calling location.reload() without using an anonymous function
<p>Consider the following:</p> <p>wrap callback in anonymous function (works)</p> <pre><code>$('#updateView').change(function(e) { $.post(URL + "actions/updateView.php", { view: $(this).val() }, function() {reloadPage();} ); }); </code></pre> <p>call function directly (cookie is set but doesn't seem to u...
javascript jquery
[3, 5]
2,149,620
2,149,621
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]
5,208,614
5,208,615
jQuery: just show/hide and not slideIn/Out
<p>I am working on a tabbed navigation, here is an <a href="http://jsfiddle.net/" rel="nofollow">example</a> . For now the contens slidesUp/Down but I want it just to disappear/appear. Any Ideas?</p> <pre><code> // When the document loads do everything inside here ... $(document).ready(function(){ // When a li...
javascript jquery
[3, 5]
454,492
454,493
App crashed when drawing to canvas, waiting, then drawing again
<p>So, I'm trying to draw to canvas like, </p> <pre><code>canvas.drawBitmap(bmp, 0, 0, null); </code></pre> <p>That works perfectly, even with nothing. It's when I try a timer of some sort, it crashes. I just want to put 2 pictures, showing after each other, so Picture 1, then Picture 2 then do whatever else. So if a...
java android
[1, 4]
4,803,115
4,803,116
pass string from c# to unmanaged c# using managed c++ wrapper
<p>I currently have a simple unmanaged C++ method which just displays a messageBox. I have created a managed c++ wrapper for this, which I then reference in my c# application. I need to be able to pass strings and other variables from the c# into the unmanaged c++ and back again but I am having trouble with the convers...
c# c++
[0, 6]
42,926
42,927
How do I make this web service work?
<p>I am a new developer and trying to develop a web service in C# by following <a href="http://dotnetguts.blogspot.com/2007/09/all-about-web-service-in-net.html" rel="nofollow">this tutorial</a>. I did everything as explained in that tutorial, however, I did not get any data from the Northwind database and I got the fo...
c# asp.net
[0, 9]
1,058,279
1,058,280
Copy first element in an array and replace the last
<p>I have a javascript array with x amount of values.</p> <p>How can I replace the last element in that array with the first? (Not switch positions but remove the last array and put the first in the last position)</p> <p>Example:</p> <p>Initial Array: [9, 14, 23 ,12 ,1] Final Array: [9, 14, 23, 12, 9]</p>
javascript jquery
[3, 5]
3,880,243
3,880,244
how to add control to the page?
<p>Controls must be added to a page like this.</p> <pre><code>&lt;div&gt; &lt;% for(int i=0; i&lt;10; i++) { Label lab=new Label(); lab.Text="Text"+i; Response.Write(lab); } %&gt; &lt;/div&gt; </code></pre> <p><strong>OR</strong></p> <pre><code>&lt;div&gt; &lt;% for(int i=0; i&lt;10; i++) { Response.Wr...
c# asp.net
[0, 9]
2,983,407
2,983,408
can I call a PHP method to run asynchronously?
<p>When a user views a certain profile page I need to send the end user an email but would like to do this asynchronously if at all possible. Can this be done with PHP? I really don't want to wait for the PHP function to complete before rendering the rest of the page. It should be seamless to the user.</p> <p>Or is ...
php jquery
[2, 5]
4,655,347
4,655,348
how to apply marquee in android for string
<p>I am trying to implement marquee a style to print string in android. I'm able to to it with static data but for dynamic it isn't displaying the marquee style.</p> <p>When I print:</p> <pre><code>String st="this is test application testing for marquee" </code></pre> <p>I get the marquee style.</p> <p>However, aft...
java android
[1, 4]
1,171,810
1,171,811
How to play .swf with flash player lite in android 2.2 sdk in java?
<p>How can I get the full path of flash player lite, </p> <p>and use it to play my target <code>.swf</code> ?</p>
java android
[1, 4]
922,790
922,791
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]
2,055,092
2,055,093
Photo tagging system
<p>I have a gallery system (and user database) built in ASP.NET and I want to add a tagging feature like Facebook. There must be some kind of photo tagging system, and I don't want to write my own from the beginning.</p> <p>Can somebody please target me for a code providing this feature or help me where should I start...
javascript jquery
[3, 5]
5,192,277
5,192,278
passing function to css property
<p>Is it possible to pass function as a value to all the css property? Refer the code here:</p> <pre><code> &lt;script&gt; $("div").click(function() { $(this).css({ width: function(index, value) { return parseFloat(value) * 1.2; }, height: function(index, value) { return par...
javascript jquery
[3, 5]
528,334
528,335
related to high chart loading time in django server
<p>Hi I am doing a web application. In that in one page i am displaying high chart. But for some values high chart is loading in 1 sec but for some values it is taking 1min time. How can i reduce the time.</p> <p>Above script is used to load the chart. But why is that taking 1min time to load chart? and also it si tak...
javascript jquery
[3, 5]
5,993,590
5,993,591
Cross-Page Posting a GridView
<p>I have a problem with Cross-Page Posting a GridView.</p> <p>The error I'm getting is the following: <strong>Object reference not set to an instance of an object.</strong></p> <p>Steps I took:</p> <ol> <li>Create the new Page and add a GridView</li> <li><p>Create a button with PostBack to the new page.</p> <pre><...
c# asp.net
[0, 9]
595,257
595,258
With jQuery, how can I implement a "page loading" animation?
<p>When I submit a form using jQuery, I want to display an animation image (<code>load.gif</code> or <code>progressbar.gif</code>, etc.) for a few seconds.</p> <p>How can I show a GIF image in jQuery?</p>
javascript jquery
[3, 5]
4,605,881
4,605,882
how to get the right class name innerHTML content?
<pre><code>&lt;div class="Name"&gt; &lt;div class="Image"&gt;&lt;/div&gt; &lt;ul&gt; &lt;li&gt;&lt;h5&gt;&lt;span class"myName"&gt;I want this text&lt;/span&gt;&lt;/h5&gt;&lt;/li&gt; &lt;li class="description"&gt;The description&lt;/li&gt; &lt;/ul&gt; &lt;butto...
javascript jquery
[3, 5]
409,625
409,626
How to execute jquery script before page load?
<p>I need to execute javascript before Page load in ASP.NET application.</p> <p>My function returns user location, and I would like to pass value to server side and load data based on location.</p> <p>The problem is javascript function executes after page load.</p> <p>Here is my code:</p> <pre><code> $(function ...
c# javascript jquery asp.net
[0, 3, 5, 9]
503,922
503,923
Zoom a webview in android programmatically
<p>I have a canvas 1000x800 inside an Android webview. When the user launches an event I'd like to center the webview into the point 300x300 and showing an zoom to show an area of 300x300 approximately. If the zoom was animated would be perfect (like when double tapping the webview in that point) </p> <p>how can I do ...
java javascript android
[1, 3, 4]
2,381,306
2,381,307
Java integers Return Strange Result While Compare Two Integers?
<pre><code> Integer i1= new Integer(9); Integer i2= new Integer(9); if(i1==i2){ System.out.println("true"); }else{ System.out.println("false"); } int i3=9; int i4=9; if(i3==i4){ System.out.println("true"); }else{ System.out.println("false"); } ...
java android
[1, 4]
2,244,294
2,244,295
Add line breaks after n numbers of letters in long words
<p>A have a string that can reach up to 100 characters in lenght. Is there an easy way to insert line breaks in the word every 10th letter? For example:</p> <pre><code>aaaaaaaaaaaaaaaaaaaaaaaaa </code></pre> <p>Should turn in to</p> <pre><code>aaaaaaaaaa&lt;br/&gt;aaaaaaaaaa&lt;br/&gt;aaaaa </code></pre> <p>I know ...
javascript jquery
[3, 5]
3,847,468
3,847,469
How can I get certain text from wikipedia?
<p>Take this for example: <a href="http://en.wikipedia.org/wiki/United_States_Bill_of_Rights" rel="nofollow">http://en.wikipedia.org/wiki/United_States_Bill_of_Rights</a></p> <p>Under the "Amendments" section, I want to get what each bullet point says, and display them in a nice list in an android application. I know ...
java android
[1, 4]
1,715,474
1,715,475
Restrict dragging of div based on css class
<p>I use the below code to arrange my divs : </p> <pre><code>$( ".myDivs" ).sortable({ connectWith: [".myDivs"] }); </code></pre> <p>Is it possible to amend this code so as to exclude divs that can be sorted(moved) which contain a particualar css value : </p> <pre><code>&lt;div class="myDivs excludeThisCss"&gt;&...
javascript jquery
[3, 5]
3,644,110
3,644,111
Showing menus in multiple activity in android
<p>I have a Listview,when i click on the list it shows the details part,in that activity it <strong>shows 3 menu option Details,Party and Attachment</strong>.When i click on details it should show the same details part.After i click on Party it shows list of parties and again whn i click on menu it shows 3 menu option ...
java android
[1, 4]
1,382,280
1,382,281
How can I validate I have drawn something in jSignature panel or not?
<p><code>jSignature</code> is having canvas and it has a class. How can I validate jSignature whether I have drawn something or not ?</p> <p>I have added one bind for click event.</p> <pre><code>$sigdiv.bind('click', function(e) { $("#num_strok").val(parseInt($("#num_strok").val()) + 1); }); </code></pre> <p>Pro...
javascript jquery
[3, 5]
5,459,116
5,459,117
Request.Url.Port giving wrong port
<p>I am given a Live IP from my support team something like <code>http://201.121.152.168:68/</code>. Now in normal circumstances you would think 68 is the port. However when I do a Request.Host I get <code>201.121.152.168</code> and when I do Request.Port I get <code>80</code>. So where did the number 68 go? It's neith...
c# asp.net
[0, 9]
2,285,492
2,285,493
How to implement Custom Audio Capcha in ASP.Net
<p>We have created a Custom Capcha generator using C#.Net. Now we have requirement to upgrade our Capcha to include audio feature(Listen Capcha). Our major constraint is that we cannot use any third party components(Dlls)</p> <p>Please guide me to implement such functionality.</p> <p>Thanks in advance.</p>
c# asp.net
[0, 9]
4,969,623
4,969,624
What repository can I save to without having admin rights?
<p>I'm facing a problem with an Internet application I'm working on right now (programming in C#).</p> <p>I have to create a report and then send it via email to a certain user. After I create the report, I save it first into a temporary file, then attached it to the email giving the file path.</p> <p>It's working on...
c# asp.net
[0, 9]
3,205,696
3,205,697
Jquery mobile select box can work only once
<p>I have a question, my jquery mobile select box can work only once....</p> <p>![enter image description here][1]</p> <p>this is my screenshot from my website.</p> <p>Question, when i click firstly number 1 select box, then this seclect box works. but when i firstly click number 2 box, then click the number 1 box,...
javascript jquery
[3, 5]
4,101,942
4,101,943
Memory AccessViolationException Error Calling DLL From C#
<p>I'm encountering a strange memory read/write error while calling a compiled DLL from C#. I use DllImport to get a handle to the function we need, which writes a return value to a parametric pointer to an int (i.e., int* out). This function is called multiple times within a thread, and runs successfully over the exec...
c# c++
[0, 6]
5,803,150
5,803,151
Is storing uploaded image file by date a good option?
<p>Is it a good option to store uploaded images, for a website that takes images of people's items, in a directories by date? E.G: A file uploaded today would be stored SOMEDIRPATH/2011/12/21/GUID.img - I don't want to overload a directory with a bunch of images and I want to plan for a site where any number of people ...
c# asp.net
[0, 9]
4,608,299
4,608,300
Member turns to undefined
<p>I've developed a jQuery plugin which has default options:</p> <pre><code>$.fn.incromentor.defaults = { max : 65355, min : 0 }; </code></pre> <p>In the initialization of the plugin, I merge the user options with plugin default options using <code>$.extend</code></p> <pre><code>function init( $elm, options ) ...
javascript jquery
[3, 5]
3,166,994
3,166,995
Need some help with my jQuery input styler
<p>Here's the, stripped down, code:</p> <pre><code>$(document).ready(function() { var $input = $('input[type="checkbox"]'); $input.wrap('&lt;div class="stylecheck-container" style="display: inline" /&gt;').addClass('stylecheck').hide(); $container = $input.parent('div.stylecheck-container'); if ($contain...
javascript jquery
[3, 5]
2,677,035
2,677,036
Regular expression for text field
<p>I want to every word start with capital letter and rest of are should be in small letters while entering in text field.</p> <p>I don't know how to give regular expression.</p>
javascript jquery
[3, 5]
5,051,871
5,051,872
Unable to call a parameterized javascript function on my page load
<p>I have a javascript function as follows:</p> <pre><code> function textCounter(field, rem, maxlimit) { if (field.value.length &gt; maxlimit) field.value = field.value.substring(0, maxlimit); else rem.value = maxlimit - field.value.length; } </code></pre> <p>Here I am try...
javascript asp.net
[3, 9]
1,994,723
1,994,724
how to collaborate between javascript and php
<p>i am calling a javascript for image gallery and php on a single page. let me show you some code to make things clear:</p> <p><strong>PHP</strong> <pre><code>echo "&lt;form method = post action = 'user_submit.php'&gt;"; // get possible answers using question ID $query = "SELECT aid, atitle FROM answers WHERE qid ...
php javascript
[2, 3]
5,576,732
5,576,733
view pdf files and prevent save and print options in c#
<p>I want to load my pdf file in a web page. The user should not have the provison to save or print the file. the below code opens the pdf file as attachment, but i want to open it directly in the page.</p> <p>Please also provide any javascript that can disable the pdf menu bar too..</p> <pre><code> Response.Conten...
c# javascript asp.net
[0, 3, 9]
5,399,513
5,399,514
Prevent the entering of users that have entered the wrong password more than 3 times
<p>I want to prevent entering of the users that have entered their password more than three times. I save their IP in session and set time-out for one minute. I don't know if this solution is good or not but there is a problem when wrong password is entered for three times. The code works correctly but, when the sessio...
c# asp.net
[0, 9]
5,359,032
5,359,033
why can't I pass jquery objects as arguments in functions?
<p>I'm trying to pass a jQuery selected object into a function, and the function will do a <code>.html()</code> on it.</p> <p>Html:</p> <pre><code>&lt;div id="box"&gt;this is a box&lt;/div&gt; </code></pre> <p>Js:</p> <pre><code>var fillBox = function(box, text) { box.html(text); } (function() { var box = $("#...
javascript jquery
[3, 5]
5,123,171
5,123,172
Avoid caret move during a textarea live update
<p>I would like to create something similar to google doc in html. More than one people can edit the same file at the same time, a live edit very similar to google doc.</p> <p>On the server side, everything is ok (I use play2 and akka) but on client side (in javascript):</p> <ol> <li>If I update the text without typi...
javascript jquery
[3, 5]