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
1,877,874
1,877,875
How to limit users from entering english characters in a textbox
<p>Do I need to use regex to ensure that the user has typed in English? All characters are valid except non English characters.</p> <p>How do I validate this textbox?</p>
c# asp.net javascript
[0, 9, 3]
890,667
890,668
passing array fields to jquery ajax
<p>I have a form I am submitting via jquery ajax. Early in the form, I have this field:</p> <pre><code> &lt;select name="inquirymodule[]" id="inquirymodule"&gt; </code></pre> <p>The user can add as many as they like, and all the selects go into the inquirymodule[] array.</p> <p>The jQuery looks like this:</p> <pre...
php jquery
[2, 5]
2,744,265
2,744,266
Math.POW(x,y) getting different value from x ^ y
<p>In JavaScript </p> <pre><code>215 ^ 150 = 65 </code></pre> <p>But when i try <code>Math.POW(215, 150)</code> in C# I am getting Infinite</p> <p>Why it is not <code>65</code> ? How should I get 65 in C# ?</p>
c# javascript
[0, 3]
1,636,968
1,636,969
Custom Javascript Ajax for ASP.NET
<p>I've written some basic Javascript functions and would like to learn how to enable asynchronous postbacks within a C# 4.0/ASP.net project using this JS code. </p> <p>For example, I have a script that increments a number when clicked. When clicked again, the number is decremented. I basically load the number from...
c# javascript
[0, 3]
417,413
417,414
My site works fine in FF, but IE7 gives me error
<p>Here is my site: <a href="http://www.sumsy.com/temp/templatesys/config.php?template=1" rel="nofollow">http://www.sumsy.com/temp/templatesys/config.php?template=1</a></p> <p>IE6, 7 give me errors.</p> <p>Line 9 Char 3 Expected identifier, string or number Code 0 URL: config.php?template=1</p> <p>so for situation l...
php jquery
[2, 5]
1,823,860
1,823,861
jquery basic of dollar sign - named vs anonymous
<p>I have a couple of interview questions</p> <ol> <li><p>What is the different between <code>$(function(){});</code> and <code>$(document).ready(function(){});</code></p></li> <li><p>What is the difference between <code>$(function(){});</code> and <code>var func=function(){};</code> How are each of them called?</p></...
javascript jquery
[3, 5]
4,761,866
4,761,867
Javascript - using in function defined variable
<p>I want to execute this function and use the variable outside the function, but inside an each fucntion. How can I get this work?</p> <pre><code>$('.social').each(function() { url = "http:www.google.com"; bit_url(url); $(element).append(urlshortened); }); function bit_url(url) { var url = ur...
javascript jquery
[3, 5]
4,702,367
4,702,368
POST array through PHP and get in Python
<p>I am posting a array </p> <pre><code>$name[0] = "anurag"; $name[1] = "abhishek"; $ch = curl_init('http://localhost:8000/v0/url-generator'); curl_setopt ($ch, CURLOPT_POST, 1); curl_setopt ($ch, CURLOPT_POSTFIELDS, "name=$name"); curl_exec ($ch); curl_close ($ch); </code></pre> <p>In python I got name = array .</p...
php python
[2, 7]
2,171,656
2,171,657
Get me off the JavaScript postback Failboat
<p>I've got to call two js functions, setfocus on textbox and stop a postback from occuring on single buttonclick. I think I got it if I could only intercept the postback. My js skills are on par with weaksauce. </p> <p><strong>test case</strong></p> <pre><code>&lt;%@ Page Language="C#" AutoEventWireup="true" Co...
javascript asp.net
[3, 9]
4,901,691
4,901,692
Pasing the selected checkbox integer values in gridview in a single list
<p>I ve a gridview with checkbox, wherein if I select the checkboxes, the respective values are got using datakeys.How do I pass the values in a list as a whole instead of loopin with foreach? I need to pass it in asingle variable. Any help is appreciated</p> <pre><code> foreach (GridViewRow row in gvA...
c# asp.net
[0, 9]
1,093,752
1,093,753
javascript in asp.net
<pre><code>&lt;asp:RadioButtonList ID="RdoBtnHasNotified" runat="server" RepeatDirection="Horizontal" AutoPostBack="True" OnSelectedIndexChanged="RdoBtnHasNotified_SelectedIndexChanged"&gt; &lt;asp:ListItem Value="1"&gt;Yes&lt;/asp:ListItem&gt; &lt;asp:ListItem Value="0" Selected="True"&gt;No&lt;/asp:ListItem&g...
asp.net javascript
[9, 3]
2,691,743
2,691,744
Javascript, jQuery - how signed actions to just created object?
<p>I am trying to make simple list with ability to add and delete elements. For now I am working on adding and performing a simple action on each of list elements object (existing and added). Unfortunately I have met some difficulties with that. I am able to modify objects that are created at the beginning, but not one...
javascript jquery
[3, 5]
5,939,719
5,939,720
Running background tasks in asp.net
<pre><code> I ve implemented the following code in the below link: </code></pre> <p><a href="http://blog.stackoverflow.com/2008/07/easy-background-tasks-in-aspnet/" rel="nofollow">http://blog.stackoverflow.com/2008/07/easy-background-tasks-in-aspnet/</a></p> <p>Can i implement it for sending mails once in a day an...
c# asp.net
[0, 9]
476,995
476,996
get user confirmation activation link value
<p>I'm using a confirmation link method to activation of user account in my website.when user submit the form, I send a link on user email address, with activation code. when user click on this link he redirect on my site registration page with value in address bar like <a href="http://showmycode.co.in/boobloom/regist...
php javascript
[2, 3]
3,821,043
3,821,044
Generating table inside a table row dynamically
<p>I have a web application, which uses HTML generic control to generate tables. I have a button in each row created dynamically. My question is, how can I add a new table under the corresponding row that holds the button?</p>
c# asp.net
[0, 9]
2,169,759
2,169,760
Auto submit form before going to next page of form
<p>I have a multi-page form that was created for me. All of the pages on the form have submit button that saves the data to a database, a previous button that goes to the previous page and a next button. The problem is that the data does not save if I click the previous or next links. </p> <p>How can I set it up so th...
php javascript jquery
[2, 3, 5]
810,509
810,510
How to run separate application from Android button click
<p>I tried to add two buttons in my Android application to select an application from separate two applications Order system and Inventory system.As shown in the image.</p> <p><img src="http://i.stack.imgur.com/PslmY.jpg" alt="enter image description here"></p> <p>I have implemented these two applications as separate...
java android
[1, 4]
4,034,108
4,034,109
How in InputMethodService generate KeyEvent equivalent "Next"
<p>How in InputMethodService generate KeyEvent equivalent "Next" (jump to the next view) without change current view?</p> <p>I try code</p> <pre><code> getCurrentInputConnection().sendKeyEvent( new KeyEvent( KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_TAB)); getCurrentInputConnection().sendKeyEvent( new KeyEvent( K...
java android
[1, 4]
2,235,025
2,235,026
Creating an asp.net server control with jquery
<p>I have done my research before posting this question and I can not find anything helpful. I do not know if it is possible to create asp.net server control with the help of jquery. I have an upload control input that runs at server and I have used a javascript code to create a new upload control input any time a part...
jquery asp.net
[5, 9]
4,422,098
4,422,099
How to ignore uppercase/lowercase when selecting pathname? JS/Jquery
<pre><code>if (pathname == "/" || pathname == "/default.asp") </code></pre> <p><em>in js using jquery library.</em></p> <p>I want this to catch "Default.asp" as well as "DeFaULT.asp" and "default.asp"</p> <p>halp. </p>
javascript jquery
[3, 5]
569,098
569,099
Read Images programmatically
<p>i am a 3rd year computer science student, and my seminar(graduation project) is in the next semester, so i started to think about it and i thought that a face recognition system would be a great idea, so i have two questions:</p> <p>1- how can i read a picture programmatically, i mean if i have a picture, how can r...
c# php
[0, 2]
2,432,614
2,432,615
Website Architecture Module Versioning
<p>I currently have an ASP.NET web application that is serving multiple clients from a single codebase. We use URL rewriting to detect which client is being served (pretty much a virtual vdir) and that drives which master page/themes/module version to run.</p> <p>Right now, each client can have a different version of...
c# asp.net
[0, 9]
209,950
209,951
Need to run alert a string using javascript code
<p>I want to alert <code>is it executed well?</code> after following line is executed in javascript</p> <p><code>window["is"]("it")("executed")("well")("?")</code></p> <p>window here means a global object. I have no idea what that above line is in javascript.</p>
javascript jquery
[3, 5]
694,363
694,364
jquery scroll view without displaying scroll bar
<p>I hope to create scroll view likes the attached image</p> <p><img src="http://i.stack.imgur.com/ZSMth.png" alt="enter image description here"></p> <p>it will not display the horizontal scroll bar, but display the arrow at top and bottom. when user's mouse move over them, it will scroll and display more items</p> ...
javascript jquery
[3, 5]
3,646,912
3,646,913
getting .text() of children elements from jQuery()
<p>I'm having trouble to get the proper formatted texts of each child elements, either as an Array or in as text.</p> <p>I had tried</p> <p>var name= jQuery(".childOne").text(); var number = jQuery(".childTwo").text();</p> <p>but it joins all the name/number text in name and number.</p> <p>HTML is:</p> <pre><code>...
javascript jquery
[3, 5]
3,794,403
3,794,404
Option menu default gray border removal
<p>in my app i have option menu i try to customize it , i did it by refer it to style ,</p> <p>what i need is either removal of default gray border around option menu or customize it to another color .</p> <p>any advice will be appreciated . </p> <p>as shown below :</p> <p><img src="http://i.stack.imgur.com/TDamH.p...
java android
[1, 4]
3,350,343
3,350,344
Why url parameter doesn't have correct format in javascript?
<p>I have to create a javascript which contains an url in code behind page using C#. But the url parameter inside javascript doesn't have correct format after generated by C#.</p> <p>Example:</p> <p><strong>Url parameter:</strong> <a href="http://google.com" rel="nofollow">http://google.com</a></p> <p><strong>Javasc...
c# javascript asp.net
[0, 3, 9]
1,739,742
1,739,743
way to load javascript code in web page
<p>I prepare a project with a simple webpage, canvas, and javascript files that run game in the canvas. I want load my code when page starts, what is best way?</p> <ol> <li>put body onload?</li> <li>startup code in body of .js file (not in function)?</li> <li>attach to window load event?</li> <li>use some jquery capab...
javascript jquery
[3, 5]
5,427,260
5,427,261
.stop() doesn't work with hover selector
<p>This is my code: </p> <pre><code>$(function(){ $("#deals ul li ul").hover(function(){ $(this).stop().find(".trans").fadeIn("fast"); $(this).stop().find(".text").fadeIn("fast"); return false; },function(){ $(this).find(".trans").fadeOut("fast"); $(this).find(".text").fadeOut("fast"); });...
javascript jquery
[3, 5]
3,425,502
3,425,503
Calling instance method in Java
<p>Following this tutorial:</p> <p><a href="http://developer.android.com/training/notepad/notepad-ex2.html" rel="nofollow">http://developer.android.com/training/notepad/notepad-ex2.html</a></p> <p>In Step 2, this method gets called:</p> <pre><code>registerForContextMenu(getListView()); </code></pre> <p>which is a p...
java android
[1, 4]
3,167,325
3,167,326
jQuery datePicker plugin loading problem
<p>I'm trying to use the following plugin for date picking:</p> <p><a href="http://www.kelvinluck.com/assets/jquery/datePicker/v2/demo/index.html" rel="nofollow">http://www.kelvinluck.com/assets/jquery/datePicker/v2/demo/index.html</a></p> <p>And I'm trying to use the code from the first demo but I get an error that ...
javascript jquery
[3, 5]
1,272,686
1,272,687
Speed difference between very similar jQuery expressions in IE
<p>In IE, compare the speed of execution of an expression along the lines of</p> <pre><code>$('div.gallery div.product a"); </code></pre> <p>to the very similar</p> <pre><code>$('div.gallery').find("div.product").find("a"); </code></pre> <p>Sometimes the second variant runs faster, sometimes slower. Often the spee...
javascript jquery
[3, 5]
2,489,934
2,489,935
sending non form values in Jquery post
<p>I have a form and I send all form values using the following in Jquery:</p> <pre><code>$.post('get-offers.php', $("#offerForm").serialize(), function(data) </code></pre> <p>Is there anyway I can send a non form value along with the post, for ex the id name of a div? I don't get any response when I try the followi...
javascript jquery
[3, 5]
5,304,789
5,304,790
EventObject is not defined when calling a class function out of mousemove
<p>I wrote a Object which "manages" a &lt;div&gt;-Element. I wanted it to do something on mousemove so I wrote this line in a function I call to create the content of this -Element:</p> <pre><code>$('#' + this.slider_id).mousemove(this.mouseMoveHandler(e)); </code></pre> <p>Later i defined a function which handles th...
javascript jquery
[3, 5]
632,585
632,586
append li into an existing ul inside another html file
<p>I like to append an li into an existing ul like here: <a href="http://stackoverflow.com/questions/1145208/jquery-how-to-add-li-in-an-existing-ul">jQuery: how to add &lt;li&gt; in an existing &lt;ul&gt;?</a></p> <p>But in my code the li is an existing li from another html file. So 'm having the products.html with an...
javascript jquery
[3, 5]
1,014,789
1,014,790
Is it possible to obtain a web-browser's Java VM without using an applet?
<p>We have an ages old Java applet that we want to move forward to a newer version of Java (5 or 6), however until today we've always supported people using Java VMs as far back as version 1.1 (specifically for those still using the Microsoft VM)</p> <p>As part of the upgrade, we'd like to be able to serve a web page ...
java javascript
[1, 3]
2,275,930
2,275,931
function is setting all instead of each
<p>I have a simple function that sets the width of a bar based on an argument.</p> <p>And I call the function on .each with jQuery.</p> <p>The console logs the statement correctly, showing me it seems to work. However, the style seems to be overridden by the last value found.</p> <p>Here is the function:</p> <pre>...
javascript jquery
[3, 5]
4,614,096
4,614,097
Javascript alert when user closes the tab or the window
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/6280202/javascript-alert-when-user-closes-the-tab-ot-the-window">Javascript alert when user closes the tab ot the window</a> </p> </blockquote> <p>I want when user close the window (or the tab) or when he goes t...
javascript jquery
[3, 5]
279,969
279,970
How can I check if a class doesn't exist?
<p>I don't know why this doesn't work, I'm just trying to check if <code>.searchBar</code> doesn't exist.</p> <pre><code> var $school = "Washington"; if(!$('.searchBar')){ $('#schoolname').text($school); } </code></pre>
javascript jquery
[3, 5]
2,131,700
2,131,701
Redirection to specific page from directory path in URL
<p>I have the directory abc and inside it I have two files. One is login.php and another one is index.php. I have path localhost/abc redirect to index.php but I want to redirect to login.php.</p>
javascript jquery
[3, 5]
1,734,470
1,734,471
android java arithmetic expression evaluator
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/1432245/java-parse-a-mathematical-expression-given-as-a-string-and-return-a-number">Java: Parse a mathematical expression given as a string and return a number</a> </p> </blockquote> <p>i m trying to figure out ...
java android
[1, 4]
4,432,812
4,432,813
How can I pass a reference to the current activity
<p>I am trying to pass a reference of the current activity to an object but can't seem to find a method that will do this easily. Previously I was able to do this simple passing with the "this" reference of the current context. I then changed my activity from implementing OnClickListener to creating an OnClickListener ...
java android
[1, 4]
1,951,311
1,951,312
Storing the selected values in a hiddenfield inside a repeater
<p>I have a repeater and i have some controls like dropdown and text box how can i catch the drop down selected value and the value entered in the textbox and store them in the hidden field??</p> <p>It is like a formula <code>Left(c1+c2)*c3</code> the format is like this.</p>
c# asp.net
[0, 9]
470,474
470,475
jQuery times out waiting for server to respond back
<p>Background:</p> <ul> <li>I have two pages (index.php and script.php).</li> <li>I have a jQuery function that calls script.php from index.php.</li> <li>script.php will do a ton of data processing and then return that data back to index.php so that it can be displayed to the user.</li> </ul> <p>Problem:</p> <ul> <l...
php javascript jquery
[2, 3, 5]
287,317
287,318
Accessing parent control from child control - ASP.NET C#
<p>I have a parent user control with a label. On the parent's OnInit, I dynamically load the child control. From the child control, I will need to set the parent's label to something.</p> <p>Using the Parent property returns the immediate parent which is actually a PlaceHolder in my case. Theoretically, I can recursiv...
c# asp.net
[0, 9]
5,639,599
5,639,600
jQuery or onClick Div Fade
<p>I apologize if this is in the wrong section..</p> <p>Could someone possibly point me towards a script or a tutorial on this:</p> <p>when I click on something, say for instance an "x", I'll click it, then it fades away on click. </p> <p>If you understand what I mean, could someone point me in the right direction p...
javascript jquery
[3, 5]
2,838,934
2,838,935
how to null a variable of type float
<p>My code is working if my float variable is set to 0, but I want my code to work if my variable is null. How could I do that? Here is a code snippet I wrote:</p> <pre><code>float oikonomia= (float)((float)new Float(vprosvasis7.getText().toString())); if(oikonomia==0){ </code></pre> <p>...
java android
[1, 4]
3,172,515
3,172,516
import unique elements out of ArrayList in Java
<p>I've <code>ArrayList</code> (get_unique) of type integer where in I have to insert only unique values in it. how can I do it??</p> <p>I've got it some idea to do the same in javascript but do not know how to do it in Java?</p> <pre><code> &lt;% ArrayList&lt;Integer&gt; get_unique = new ArrayList&lt;Integer&gt;(); ...
java javascript
[1, 3]
4,096,036
4,096,037
jQuery calling post URL
<pre><code> $.post('controller/method', $("#form").serialize , function(data) { //alert data }); </code></pre> <p>It works if domain name is www.domain.com It doesn't work if domain name is domain.com/category/</p> <p>What should I do here? Or I must use PHP to help me? Thanks.</p>
php jquery
[2, 5]
4,785,925
4,785,926
Listen to phone state throughout the application?
<p>I nee to liste to phone state using phone state listener .I have many activities in a project. Should I register the listener to each of the activities or else is ther a better way.</p> <p>ps: i am not interested to use broadcast receiver</p>
java android
[1, 4]
3,882,438
3,882,439
PHP / javascript live chat using too much bandwidth
<p>So I am learning about javascript, so I am making a live chat system with PHP and javascript. I have it so the javascript refreshes the log (each message gets logged in a file on the server), and it refreshes every second. Im using firebug to monitor the resource usage, and I see under the net tab each times its upd...
php javascript jquery
[2, 3, 5]
4,922,456
4,922,457
ASP.NET master page error
<p>The master page is getting called twice. Once after the full page is rendered. At this time isPostback value is false and SESSION is null. </p> <pre><code>protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { //SOME CODE try { strUserId = Session[USER...
c# asp.net
[0, 9]
2,246,132
2,246,133
What does it mean for a method to be deprecated, and how can I resolve resulting errors?
<p>Why do I get a deprecation error on the line containing <code>setWallpaper(bmp)</code>, and how can I resolve it?</p> <blockquote> <p>Error: The method setWallpaper(Bitmap) from the type Context is deprecated</p> </blockquote> <pre><code>switch(v.getId()){ case R.id.bSetWallpaper: try { getApplicati...
java android
[1, 4]
1,037,994
1,037,995
Date comparision in javascript + jquery
<p>I have this script piece in an javascript function to validate some fields in my form</p> <pre><code>var situacao = $("select[name='situacaoCRC']").val(); var dta_emissao = $("input[name='dtaEmissao']").val(); var dta_validade = $("input[name='dtaValidade']").val(); if (situacao == -1) { alert('Selecione um es...
javascript jquery
[3, 5]
5,500,796
5,500,797
Roguelike game library for mac
<p>I am looking into making a "rogue-like" game, preferably in python/Java/C++ and it has to run on a mac. I have looked into using the libtcod library but there doesn't seem to be an easy way of compiling with that on a mac.</p>
java c++ python
[1, 6, 7]
5,196,059
5,196,060
improve my jquery validation plugin code
<p>Just hoping soemone can help me to write better code than I can come up with on my own.</p> <p>I am using the jquery validation plugin. I have some fields that are mandatory ONLY if certain options are chosen.</p> <p>The below code works fine. But the thing is, is that that my list of 'OR's is much longer than I'...
javascript jquery
[3, 5]
1,324,413
1,324,414
Android Game: How often should the server be pinged?
<p>I'm currently writing an Android Game. The game has a social part to it, where you can view your friend's scores and compare them to yours. </p> <p>I'm currently unsure about how often I should update the score of the user. e.g. sending the players' score to the server.</p> <p>And I'm unsure about how often I shou...
java android
[1, 4]
2,697,987
2,697,988
how to convert file path into file explore view in android
<p>i my android i ve to buit an explorer view for files from cloud. I get the response as below string format.. can any one give an idea to show it in a file manager. </p> <blockquote> <p>"c:\myfolder\java\ss.class,c:\myfolder\java\javafolde\txet.txt,c:\first.doc "</p> </blockquote>
java android
[1, 4]
1,533,717
1,533,718
Floating point operation returns different result in PHP and C#
<p>I get different results when try to division same numbers in PHP and C#:</p> <p>PHP:</p> <pre><code>echo 1000/0.03475; output:28776.9784173 </code></pre> <p>C#:</p> <pre><code>1000/0.03475 output:28776,9784172662 </code></pre> <p>Why? And how to get same results?</p>
c# php
[0, 2]
5,765,372
5,765,373
Can't get Select box value in IE using JavaScript
<p>I'm trying to get the value of a select box using JavaScript. This works in Firefox, Chrome and IE9 but not IE6,7,8. It works if i use jQuery's <code>val()</code>, but i'm trying to get the value using vanilla JavaScript. Why is this not working'.</p> <pre><code>$('#get').click(function() { var x = document.get...
javascript jquery
[3, 5]
2,519,528
2,519,529
Same function wi for two dynamic tabs
<p>I have created Dynamic Tabs using Jquery. In each Tab some different contents. In First Tab(created dynamically), i used a function with setTimeout of 1000 ms.....so this function will execute for every 1 second....Same time, i create another tab, in that tab also same function will execute for 1 second interval.......
javascript jquery
[3, 5]
1,123,212
1,123,213
Printing the contents of a div tag without a POP-Up window in Javascript
<p>I'm struggling to print the contents of a div tag without a pop up window</p> <p>My code looks like this at the moment</p> <pre><code>var DocumentContainer = document.getElementById('print'); var WindowObject = window.open('', 'Completed Registration Form', 'width=750,height=650,top=50,left=50,toolbars=no...
javascript jquery
[3, 5]
412,628
412,629
Class constructor error
<p>Since we know that constructor is not inherited in the child class as i asked in the my previous question <a href="http://stackoverflow.com/questions/11271920/constructor-overriding">Click here to view question </a></p> <p>I had write the code </p> <pre><code>namespace TestConscoleApplication { abstract publi...
c# asp.net
[0, 9]
2,841,663
2,841,664
Short snippet summarizing a webpage?
<p>Is there a clean way of grabbing the first few lines of a given link that summarizes that link? I have seen this being done in some online bookmarking applications but have no clue on how they were implemented. For instance, if I give <a href="http://petewarden.typepad.com/searchbrowser/2010/01/mapreduce-for-idiots....
php javascript jquery python
[2, 3, 5, 7]
5,366,831
5,366,832
Can I say that ASP.NET is compiled?
<p>You know that C# is a compiled language. But when we develop web applications we use ASP.NET + C#, in this case can we say that ASP.NET is compiled? </p> <p>If ASP.NET is not compiled does it affect the performance of C# when ASP.NET and C# works beside each other to develop web applications? </p>
c# asp.net
[0, 9]
4,990,148
4,990,149
Open popup and poulate it with data from parent window?
<p>How can I use Javascript/jQuery to populate a popup-window with data from JS-variables in the parent page?</p> <p>In my example I have an array of filenames. I list at most five in the parent window and if there's more I want to provide a link that opens a popup window and lists each post in the array.</p> <p>So i...
javascript jquery
[3, 5]
3,065,761
3,065,762
create a CalendarView with my own properties
<p>hello I'm a beginner in android programming and I have a small problem with the CalendarView, I try to change the properties by changing the color of the numbers of days but it does not really change. Does anyone can help me please.</p>
java android
[1, 4]
4,210,019
4,210,020
Weird margin issue with relative layout
<p>I am trying to have a TextView to fill the space between a button on the left and the edge of the layout on the right.</p> <pre><code>&lt;TextView android:id="@+id/welcomeHeader" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentTop="true" android:lay...
java android
[1, 4]
5,399,680
5,399,681
Need help about how to control a light sensor
<h2>I'm not asking for the entire solution, I'm just asking the information about where to buy these programmable hardware brands, models etc.</h2> <p>I have searched many websites about the light sensor, many of them came up with information about some cheap gears which has no programmable functionality.</p> <p>I ne...
c# asp.net
[0, 9]
4,253,119
4,253,120
Is it possible to access a regular javascript variable from within a JQuery function?
<p>I have an HTML file which imports two files:</p> <p>graph.js and main.js</p> <p>The main file contains logic which accesses a phone's accelerometer/records acceleration and it is a purely javascript file. The Graph.js file contains a single JQuery function $(.....) </p> <p>Is it possible to access a variable in m...
javascript jquery
[3, 5]
5,201,820
5,201,821
determine biggest variable in javascript?
<p>let's say I have the following variables:</p> <pre><code>int currentCreated = 94.6; int averageCreated = 80.1; int currentAssigned = 78.9; int averageAssigned = 81.3; </code></pre> <p>How would one determine the biggest variable? I mean, I can easily do the number itself with Math.max, but I'm interested in the bi...
javascript jquery
[3, 5]
4,183,898
4,183,899
Refreshing ListView on every few sec
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/8968911/updating-the-list-ui-with-timer">Updating the List UI with Timer</a> </p> </blockquote> <p>I am trying to do something like reminder. At the moment I have a database where every record has a remaining ti...
java android
[1, 4]
5,255,764
5,255,765
Combinining several strings to a single string
<pre><code> String f = DropDownList1.SelectedItem.Value; String s = DropDownList3.SelectedItem.Value.PadLeft(3,'0'); String q = DropDownList2.SelectedItem.Value; String w = TextBox2.Text.ToString(); String o = TextBox3.Text.ToString(); </code></pre> <p>I want to combine it to a single string i.e <st...
c# asp.net
[0, 9]
679,599
679,600
HTTPS Auto-Login Probs
<p>I am trying to create a C# script to login automatically to a website and download a report.</p> <p>I have managed to login to the site. Effectively the steps are:</p> <p>1) Get login form 2) Sent login/pass with cookies 3) Logged In 4) Ask for Report &amp; Download</p> <p>The problem I am having is that 4).. doe...
c# asp.net
[0, 9]
265,189
265,190
Implementing a background thread - Slow process
<p>So I have a method in my android program that takes a long time to process since it has some implementation in fetching data from the internet.</p> <p>I wanted to put this process in the background and have it update the UI when it completes but not prevent the user from seeing the program.</p> <p>The problem is t...
java android
[1, 4]
1,622,544
1,622,545
failed to call event from gridview linkbutton
<p>basically i wish to set a session folo by button click, but i failed to do so</p> <p><strong>i failed to call abcde function(), don't know what to set,i did try onRowCommand,onDataBound,OnDataBinding</strong></p> <pre><code>&lt;asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataSourceID="Sq...
c# asp.net
[0, 9]
4,916,886
4,916,887
How do I check to see if form inputs(x5) have not been left empty by the user, using JavaScript/JQuery?
<p>I am working on this code below and have had a stab at writing a IF statement around the code with <code>//*</code> .</p> <p>The <code>if</code> statement logic should say 'If all(x5) form input fields are empty then show alert message else do what's between <code>//*</code></p> <p>The user must modify at least on...
javascript jquery
[3, 5]
4,063,127
4,063,128
JQuery change Image dynamically loaded from aspx in DIV
<p>I have a DIV and loading a Image in that div at runtime from a aspx file as src. </p> <p>I use JQUERY .Post(..) to post the aspx page and get the Image and load that Image in div by following code.</p> <pre><code> function UpdateCapticha() { $.post("../JqueryCapticha.aspx", {}, function (da...
jquery asp.net
[5, 9]
4,550,663
4,550,664
Pass a List<int> from javascript to controller
<p>I'm trying to pass a <code>List&lt;int&gt;</code> from my <code>View</code> to my <code>Controller</code>. I've tried multiple ways, with different parameters. No luck.</p> <p>I'm currently trying to pass <code>{[4,5,13]}</code> to a method with the parameter <code>List&lt;int&gt; ids</code>.</p> <p>What's the cor...
c# javascript
[0, 3]
5,749,887
5,749,888
How do i get the javascript status of any browser?
<p>I want to get the javascript status of any browser. How do i get this.?</p> <p>Means when page load it should display that javascript in that browser is enable or disable.</p> <p>I m using php.</p> <p>Thanks In advance......</p>
php javascript
[2, 3]
3,835,278
3,835,279
Javascript equivalent of php's $object->{$stringvar} = 1 without eval()?
<p>How do i create properties of an object from values of other variables without using the eval() function?</p>
php javascript
[2, 3]
5,420,654
5,420,655
local Javascript - write to local file
<p>I have some javascript code loaded from a local html file (without going through a webserver).. i.e., opened using <code>file://</code></p> <p>Is there any way the javascript in this file can be used to write to a local file?</p> <p>I know that cross-site restrictions do not allow lot of things in javascript, but ...
javascript jquery
[3, 5]
2,455,921
2,455,922
Finding if a jquery plugin/function is available. Diff between $.pluginName() and $().pluginName()
<p>I am trying to detect if a jQuery plugin is available, I tried </p> <pre><code>$.pluginName </code></pre> <p>but failed then tried</p> <pre><code>$().pluginName </code></pre> <p>it works. But whats the difference between the 2?</p>
javascript jquery
[3, 5]
5,638,329
5,638,330
Google Chrome logo using Android
<p>I couldn't find a similar example as close as the Google chrome logo. I want to make this logo using Android, forget about the colors or exact design. Imagine the blue dot is an ImageView, the red,green and yellow are ImageButtons. I want an ImageView surrounded by 3 or 4 ImageButtons like this. All what I came up t...
java android
[1, 4]
1,734,834
1,734,835
HowTo create ASP:Buttons in Code-Behind? (or just add an working Eventhandler to Standard-Buttons?)
<p>My Code works perfectly with normal Buttons. But i need to add some Code-Behind to those dynamically added Buttons. Thus i'd need ASP:Buttons instead of Standard-Buttons. How do i do this?</p> <p>At the moment my working Code looks like this (only the important parts):</p> <pre><code>AjaxControlToolkit.AccordionPa...
c# asp.net
[0, 9]
654,302
654,303
event attched to link button inside gridview is not working?
<p>I have a grid in asp.net, inside the asp.net i am binding data as linkbutton when clicking on link button I need to call a method in code behind. the attached event is not woking in my code. how i can solve this?</p> <p>my code is similar like this,</p> <pre><code>protected void GridView1_RowDataBound(object send...
c# asp.net
[0, 9]
5,735,426
5,735,427
Difference between `.click(handler())` and `.click(handler)`
<p>I have the following code.</p> <pre><code>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt; &lt;html&gt; &lt;head&gt; &lt;script type="text/javascript" src="jquery-1.4.2.min.js" &gt;&lt;/script&gt; &lt;script type="text/javascript"&gt; function...
javascript jquery
[3, 5]
438,941
438,942
How to become an expert in Python, PHP and Javascript?
<p>So I've been programming for about 9ish months now, and I've taught myself some Python, some PHP and some Javascript.</p> <p>I want to become better at these languages - I can hack something out, but a lot of things like OOP, using lists in the most effective ways, etc, is lost on me.</p> <p>What are the best ways...
php javascript python
[2, 3, 7]
4,556,395
4,556,396
Append POST data javascript
<p>Using either Javascript and/or Jquery how can I append POST data to a form to submit. I have in my server side code that will check to see if the post data dictionary contains a certain key.</p> <p>I already have a form in the code. So I would just like to use javascript to add a new key to the POST data.</p>
javascript jquery
[3, 5]
970,298
970,299
Replace all iframes on a page, regardless of ID, using javascript
<p>I'm wanting to find all iFrames within an html document, then replace their src attr value.</p> <p>Is there a way to do this in JavaScript or Jquery?</p> <p>If so, any help is appreciated.</p> <p>(I also need to do this in steps. Aka, find the iframe, get the width and height, add the value "scrolling=no", and ch...
javascript jquery
[3, 5]
78,837
78,838
How to send data to another server using jquery
<p>I need to post data to another server using jquery.</p> <p>Here is the code i am using</p> <pre><code>$.ajax({ url:"https://www.thewiseagent.com:443/secure/webcontactAllFields.asp", type:'POST', data:"ID=" + $ID + "&amp;Source=" + $Source + "&amp;notifyCc=" + $notifyCc + "&amp;n...
php jquery
[2, 5]
1,271,601
1,271,602
jQuery ignores .replace() after first usage
<p>the following lines of code are supposed to take whatever i type in and replace " " with "-" which works on the first space, but no space thereafter.</p> <pre><code>$('#myinput').live('keypress', function() { var value = $(this).val(); value = value.replace(" ", "-"); $('#mydiv').text(value); })...
javascript jquery
[3, 5]
2,205,304
2,205,305
Can Data transferred between two Html page?
<p>My Code Project has Master page video.master, and it contains navigation menu. </p> <pre><code> &lt;ul class="menu"&gt; &lt;li&gt;&lt;a href="AlbumVideo.aspx" class="parent" &gt;&lt;span&gt;Album Video&lt;/span&gt;&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="MovieVideo.aspx"&gt;&lt;span&gt;Movie Video&lt...
c# javascript asp.net
[0, 3, 9]
182,812
182,813
How to append the output of a servlet using JQuery
<p>I am currently making a website. Basically when the user scrolls to the bottom of the screen I am going to download another 10 posts (I'm making a little social network). To do this I have downloaded JQuery. The following JavaScript is ran when the user scrolls to the bottom of the page:</p> <pre><code>page++; var ...
java javascript jquery
[1, 3, 5]
3,790,512
3,790,513
Using jQuery to change style of clicked element and removing that style from other elements with same class
<p><strong>EDIT: fixed it! Thanks to those who said to post my HTML - I looked at it, and didn't realize that I had the "appname" class twice.</strong></p> <pre><code>&lt;li class="&lt;?php echo $apid; ?&gt; appname appname_getinfo appname_&lt;?php echo $apid; ?&gt;"&gt; &lt;span class="appname"&gt;&lt;?php ech...
javascript jquery
[3, 5]
2,229,999
2,230,000
Copy table row and increment all name attributes
<p>Let's have a table like this:</p> <pre><code>&lt;table&gt; &lt;tr&gt; &lt;td&gt;&lt;input type="text" name="FirstName1" /&gt;&lt;/td&gt; &lt;td&gt;&lt;input type="text" name="LastName1" /&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;&lt;input type="text" name="FirstName2" /&gt;&lt;/td&gt; &lt;td&gt;&l...
javascript jquery
[3, 5]
6,019,070
6,019,071
Free C# / ASP.NET E-Mail Ticket Support System for postgresql?
<p>I am looking for an open source ticket system that I can use with our postgresql database (npgsql or dotconnect).</p> <p>I have found that link, but all posted systems need MS SQL: <a href="http://stackoverflow.com/questions/1748247/asp-net-based-open-source-support-ticket-system">http://stackoverflow.com/questions...
c# asp.net
[0, 9]
668,857
668,858
Call an event on Web Control Load
<p>I am loading my with web controls and loading them based on the URL parameters.</p> <p>I need to load a gridview if the user is in :&amp;cat=8</p> <p>My web control has a method which I need to call. One of its parameters is a session which is created only when the category is 8.</p> <p>Technically I need a way o...
c# asp.net
[0, 9]
2,371,104
2,371,105
chata application built in jquery - how to keep client & server connected
<p>i have built a jquery based text chat in asp.net..... the flow is as such... User A logs in.... Now in the bottom of my page i have a iframe on which the jquery code is embedded.. the jquery will send request to server after every 5 seconds... on the server i have a web method that will check the if any user has sen...
jquery asp.net
[5, 9]
1,065,792
1,065,793
Reloaded : Replace text into links using jquery
<p>I was searching so much over the net to convert text into links. I found one solution for that but now after testing that code i came up with problem. </p> <p>Here is discussion regarding that : <a href="http://stackoverflow.com/questions/37684/how-to-replace-plain-urls-with-links">How to replace plain URLs with li...
javascript jquery
[3, 5]