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,120,486 | 5,120,487 | substitute for php rawurlencode in asp.net? | <p>I have a php running code to send mms but when i converted whole code into asp.net i didnt get any substitute for rawurlencode in asp.net. i m searching this fromlast two days for nothing is working plz help me out from this problem.
Thanks in advance.</p>
| php asp.net | [2, 9] |
2,129,601 | 2,129,602 | Select all text on focus using jQuery | <p>I have a little jQuery function that is meant to automatically select text in an asp.net text box when it gets focus. However, the text in the text box gets selected, but immediately then deselects.</p>
<p>The code works if i bind to the focus event with .focus(function()) but I am adding the text boxes to the page... | jquery asp.net | [5, 9] |
4,976,213 | 4,976,214 | ASP.NET/Javascript: Loading huge data in browser | <p>I have this GUI that shows, let's say Customer Orders. When my client nailed down the requirements, he asked me to keep pagination like this,</p>
<blockquote>
<p><strong>Show Items Per Page : 10/50/150</strong></p>
</blockquote>
<p>For each customer there could be thousands of orders and each order will have atl... | asp.net javascript | [9, 3] |
5,962,919 | 5,962,920 | Adding items to select (list box) of html/php through jQuery or javascript | <p>Is it possible to add items to a select (list box) of html/php through jQuery or javascript when a specific action is triggered by another control in jQuery/javascript? <em>(edited by <a href="http://stackoverflow.com/users/611306/alex-thomas">Alex Thomas</a>)</em></p>
| php javascript jquery | [2, 3, 5] |
4,173,568 | 4,173,569 | How to stop SharePoint from writing JavaScript code over and over? | <p>I'm using PIE.js to force IE7 to use CSS3 styles. However, whenever an element on my SharePoint page contains the class that PIE is supposed to style, it actually inserts the code into the html when rendered. Then upon editing the page, the code is added again on top of the old code. So at first I start with a simpl... | javascript jquery | [3, 5] |
1,227,485 | 1,227,486 | Validate form using Javascript | <p>I am trying to validate my form using javascript. If a radio button is not selected, onsubmit the text "You did not select a filling" should appear below the filling section. The rest of the code works fine. cslab.bc.edu/~thomasfd/hw8/hw8.php to see it live.</p>
<pre><code> <script>
function va... | php javascript | [2, 3] |
4,177,598 | 4,177,599 | jquery greybox pass query string | <pre><code> <a href="../../AddLesson.aspx?id=<%# Request.QueryString["id"] %>" rel="gb_page_center[340, 380]"><img src="../../images/add_lesson_icon.png" width="17" height="18" alt="Add Lesson" /></a>
</code></pre>
<p>Here is my code to open a greybox popup by clicking on anchor tag and i also... | jquery asp.net | [5, 9] |
5,586,555 | 5,586,556 | cannot implicitly convert decimal to Datamanager.report[] | <pre><code>a = Sesion.Usuario.USE_CLI_ID;
</code></pre>
<p>I get an error at this statement as <em>"cannot implicitly convert decimal to Datamanager.report[]"</em>.a is a object of <code>Datamanager.report[]</code><br>
here <code>sesion</code> and <code>usuario</code> are the table name and <code>USE_CLI_ID</code> is ... | c# asp.net | [0, 9] |
4,646,759 | 4,646,760 | split the message into array | <pre><code>RadikalGenc.aspx?phonenumber=5552451245&message=ISTAN-ALL-123;Emly,Foz,Praia,Sol,Luna,Trabalha
string number = Request.QueryString["phonenumber"].ToString();
string textMessage = Request.QueryString["message"].ToString();
</code></pre>
<p>I need the textMessage splitted int array Like this:</p>
<p>IST... | c# asp.net | [0, 9] |
5,743,398 | 5,743,399 | how to select a select box which is not having any class | <p>I need to select a select box which is not having any class name </p>
<pre><code> Minute : <select name="dob_minute'+$i+'[]" class="" style="width: 56px">
<option value="">--------</option></select>
</code></pre>
<p>I can not select it by using name. I am having some other issues in it. ... | javascript jquery | [3, 5] |
2,530,494 | 2,530,495 | C# equivalent of Java instance initializer | <p>In <code>Java</code> instance variables can be initialized by an initialization block as shown below:</p>
<pre><code>class Example {
private int varOne;
private int varTwo;
{
// Instance Initializer
varOne = 42;
varTwo = 256;
}
}
</code></pre>
<p>Is there an equivalent cons... | c# java | [0, 1] |
5,060,050 | 5,060,051 | Image change on hover | <p>Hi, I have a HTML image that is setup like this:</p>
<pre><code><input id="img" type="image" src="">
</code></pre>
<p>How can I change <code>src</code> on hover?</p>
<p>.</p>
| javascript jquery | [3, 5] |
3,483,388 | 3,483,389 | This simple comparison of jQuery objects does not compare | <p>Curious what I'm doing wrong here :</p>
<pre><code>employee_ids = $('[data-employee_id="'+employee+'"]');
timestamp_ids = $('[data-scheduled_on="'+timestamp+'"]');
var common = $.grep(timestamp_ids, function(element) {
$.each(employee_ids, function(idx, item) {
if ( item === element ) { console.log ("omg!")... | javascript jquery | [3, 5] |
4,488,131 | 4,488,132 | modify class in stylesheet in codebehind | <p>I am Working in asp.net and c#.</p>
<p>I have a css stylesheet named STYLE.css in my application,and i have a some classes in that stylesheet.I want to change the style in that classes in my codebehind.How to do that.Give ur suggessions.</p>
<p><strong>Style.CSS</strong>:</p>
<pre><code> .someclass
{
//some ... | c# asp.net | [0, 9] |
4,939,833 | 4,939,834 | Passing a function in Jquery / Javascript | <p>Good afternoon people's</p>
<p>I have built a jquery plugin that I use on my site. The plugin is for suggestive input boxes and works fine.</p>
<p>One thing I need to add to it is the ability to pass a function in it's config to apply to the response of the ajax call that is made for the suggestive. I can't find a... | javascript jquery | [3, 5] |
1,845,001 | 1,845,002 | Showing a modal dialog box or form when the application is not running in UserInteractive mode | <p>Hi all I am getting this error when my site was in live when trying to show print preview dialog</p>
<pre><code>PrintPreviewDialog ppdlg = new PrintPreviewDialog();
ppdlg.ShowDialog();
</code></pre>
<p>How can I resolve this error</p>
<p>Complete error</p>
<p><code>Showing a modal dialog box or form when the ap... | c# asp.net | [0, 9] |
2,115,747 | 2,115,748 | Check ASP.NET checkbox with jQuery | <p>I have following ASP.NET server control checkboxes.</p>
<pre><code><asp:checkbox id="chkMonS1" runat="server" />
<asp:checkbox id="chkMonS2" runat="server" />
<asp:checkbox id="chkAllMon" runat="server" />
</code></pre>
<p>And also other check boxes.</p>
<pre><code><asp:checkbox id="chkTueS1"... | jquery asp.net | [5, 9] |
5,627,870 | 5,627,871 | Change CSS with jQuery Sortable | <p>How can I change CSS property once sorted. Something likes this:</p>
<pre><code> $( "#sort" ).sortable({
$(#div1).css("background-color","yellow");
});
</code></pre>
<p>Thanks alot</p>
| javascript jquery | [3, 5] |
3,325,709 | 3,325,710 | Show all currently running setIntervals | <p>Is there anyway to see all ongoing <code>setIntervals</code></p>
<p>If I make intervals global</p>
<pre><code>b = setInterval(function(){
$("body").append("B <br>");
},500);
</code></pre>
<p>I can see them when I, but I can't really see that they are intervals. </p>
<pre><code>console.dir(Object.keys( wi... | javascript jquery | [3, 5] |
2,838,112 | 2,838,113 | Display second dropdown list if a value is selected in the first dropdown (using variables)? | <p>Is there any way I can select a certain value in a dropdown list and according to that selection display a second dropdown list?
I know how to do it with just normal words, but what if I use variable names?</p>
<pre><code>University Name: <select name="university" id="university">
<?php
while($row = m... | php javascript jquery | [2, 3, 5] |
5,071,418 | 5,071,419 | JS & PHP - Change dropdown value if other fields are filled | <p>I have a PHP application form for medical health plans where the user fills in his details and selects some options from various controls, one of which is the plan type (private of family plan). Sometimes, although the user fills in his siblings/spouse details, they forget to also select the 'family' option and leav... | php javascript | [2, 3] |
4,448,611 | 4,448,612 | Why can I not set my data attribute with jQuery? | <p>I have the following:</p>
<pre><code>editCity: "/Admin/Citys/Edit?pk=0001I&rk=5505005Z"
$('#editCity')
.attr('title', "Edit City " + rk)
.data('disabled', 'no')
.data('href', editCity)
.removeClass('disabled');
</code></pre>
<p>When I check the HTML with developer tools I see this:</p>
<pre><... | javascript jquery | [3, 5] |
2,828,577 | 2,828,578 | is it legal to store jquery reference? | <pre><code>var global_ref = null;
function a(){
function some_click_handler {
global_ref = $(this);
}
}
// later in
function b()
{
$(global_ref).css(...) // or global_ref.css(...) ???
}
</code></pre>
<p>Is above concept right? and the syntax right?</p>
| javascript jquery | [3, 5] |
1,498,156 | 1,498,157 | How can we use two queries in same click event? | <p>I used the code:</p>
<pre><code>protected void Button1_Click(object sender, EventArgs e)
{
DataSet ds = new DataSet();
SqlConnection con = new SqlConnection("server=kiran-b946c0f6d;
uid=sa;
pwd=123;
... | c# asp.net | [0, 9] |
5,461,984 | 5,461,985 | Javascript toFixed() function | <p>I'm trying to format the user input values using following technique, but I get the following error on Fire Bug console </p>
<p>$(this).val().toFixed is not a function</p>
<pre><code>$(".amount-text").bind('change',function () {
$(this).val(($(this).val()).toFixed(2));
});
</code></pre>
<p>Can some one he... | javascript jquery | [3, 5] |
5,537,529 | 5,537,530 | loading DXT texture files in android using Java | <p>I am looking to load compressed jpg and png files in android. Loading the raw files is just too slow. The plan is to compress the files ahead of time into DXT files. I tried to use DXTViewer to compress some images and attempt to load them as textures.</p>
<p>Currently I am getting a GL_INVALID_ENUM from gl.glCompr... | java android | [1, 4] |
5,377,938 | 5,377,939 | jQuery click.modalEvent | <p>Revising code of jQuery.reveal plugin (http://www.zurb.com/playground/reveal-modal-plugin) and trying to understand how it handles the modal behaviour, I see that it binds the closeModal function (that closes the popup) to the event <code>'click.modalEvent'</code>.</p>
<p>But I can't find any information about thi... | javascript jquery | [3, 5] |
1,512,621 | 1,512,622 | is it posible to move from asp.net validators to jQuery validators | <p>is it possible to move from asp.net validations to j Query validations without much effort .I also need a validation summary like control.</p>
| c# asp.net jquery | [0, 9, 5] |
115,398 | 115,399 | functionality required only to show certificate(image) for registered members | <p>I want to junrate a certificate(image) general code from my site registers members certificate will only show on his sites.for exmple abc.com is my registerd member and he placed that code on his site like bellow</p>
<pre><code>img src="mysite.com?member=abc.com"
</code></pre>
<p>or any code (like facebook social ... | php javascript jquery | [2, 3, 5] |
1,887,560 | 1,887,561 | What are the risks of described approach to developing web application? | <p>We want to write a UI that consists of HTML, Javascript (JQuery) and CSS. Although the initial starting point will be served up by a web server, there won't be any sever side templating. The browser will interact with the server via a restful interface and render its UI.</p>
<p>What are the risks of this approach? ... | java javascript jquery | [1, 3, 5] |
5,430,110 | 5,430,111 | HTML-Javascript - Filechooser showing only server-side files | <p>I hope the following isn't too tricky. </p>
<p>I have a simple html button. Now I want to open a filechooser as soon as a user clicks on this button.</p>
<p>I do this like the following:</p>
<pre><code>$('.button').click(function()
{
$('<input type="file"/>').attr('value');
});
</code></pre>
<p>Thi... | javascript jquery | [3, 5] |
562,906 | 562,907 | Pythonic way to rewrite the following C++ string processing code | <p>Previous, I am having a C++ string processing code which is able to do this.</p>
<pre><code>input -> Hello 12
output-> Hello
input -> Hello 12 World
output-> Hello World
input -> Hello12 World
output-> Hello World
input -> Hello12World
output-> HelloWorld
</code></pre>
<p>The following i... | c++ python | [6, 7] |
2,452,915 | 2,452,916 | load another php page dynamically in jquery ui on click of a button | <pre><code>jQuery(function ($) {
// Load dialog on page load
// Load dialog on click
$('#basic-modal .basic').click({
modal:true,
open: function ()
{
var id = $('#id').attr('value');
$(this).load('edit.php?id='+id);
},
height: 400,
w... | php jquery | [2, 5] |
33,729 | 33,730 | Chained select boxes not working | <p>I have three select boxes state,city and locality with the id's same as name</p>
<pre><code>$(document).ready(function() {
$("#state").on('change',function(){
var state = $("#state").attr('value');
$("#city").load('http://localhost/trial/index.php/new/view_cities/'+state).change();
}).change... | javascript jquery | [3, 5] |
657,414 | 657,415 | What does const denote here? | <p>What does const denote in the following C++ code? What is the equivalent of this in C#? I code in C# and I am trying to learn C++.</p>
<pre><code>template <class T> class MaximumPQ {
public:
virtual ~MaximumPQ () {}
virtual bool IsEmpty () const = 0;
virtual void Push(const T&) = 0;
virtual void P... | c# c++ | [0, 6] |
630,411 | 630,412 | dropdown value changed by javascript is not coming in codebehind | <p>I have a dropdown list whose value is changed based on other controls in the UI using javascript.</p>
<p>I used the following code to change the dropdown list,
<code>document.getElementById("ddlchkStsID").options[2].selected = true;
document.getElementById("ddlchkStsID").value = "3";</code></p>
<p>But in the code... | javascript asp.net | [3, 9] |
1,371,748 | 1,371,749 | Compulsory option of jQuery plugin | <p>I am making my custom jQuery plugin whose code is this:</p>
<pre><code>(function($) {
$.fn.foo = function(options) {
var opt = $.extend({}, $.fn.foo.defaults, options);
return this.each(function() {
//do operation with opt
});
});
$.foo.defaults = {
item1... | c# php asp.net jquery | [0, 2, 9, 5] |
256,562 | 256,563 | How to extend the asp.net User.Identity Property? | <p>I'm <strong><em>not</em></strong> talking about asp.net membership.</p>
<p>For each logged user I want to cache some properties like status or the number of friend requests, from the db.</p>
<p>I can create custom class which would do it but I thought it will be better to extend the existing User.Identity property... | c# asp.net | [0, 9] |
1,866,772 | 1,866,773 | Adding Multiple inline javascript in single line | <p>I have 2 different links with inline js added.</p>
<p>I would like to add both to a single inline onclick.</p>
<p>Here are the two separate one:</p>
<pre><code><a href="#" onclick=\'$("#id").toggle();\'>
<a href="#" onclick="myvar = '1';">
</code></pre>
<p>And this is what I would like to do:</p>
<... | javascript jquery | [3, 5] |
2,349,887 | 2,349,888 | Pass DIV offset during form submission JAVA / JAVASCRIPT | <p>Ok I have a filter box where I do a submit on some form variable and also some hidden variables in Java.</p>
<p>For the purpose of this question im not gonna type out all the form variables.</p>
<p>What I need to do is pass the the DIV offset also to the form as variable's <code>top</code> and <code>left</code></p... | javascript jquery | [3, 5] |
1,255,671 | 1,255,672 | Toggle between two tabs with different dynatrees using jquery or javascript | <p>I have two divs with tabs, I need to write a javascript or jquery script that will allow for the content to be switched back and forth onclick of the appropriate tab name.</p>
<p>I created a fiddle <a href="http://jsfiddle.net/sgnZS/3/" rel="nofollow">HERE</a>. Although I haven't even begun to write the javascript... | javascript jquery | [3, 5] |
1,436,072 | 1,436,073 | jquery or javascript: Truncate text in table cell | <p>I need to truncate the text in the first column of a table using javascript or jQuery. Here's where I'm at:</p>
<p>The table:</p>
<pre><code><table id="bigTable">
<tr><td>Text is tooooo looong</td><td>Just Right</td></tr>
<tr><td>Text is tooooo looong&l... | javascript jquery | [3, 5] |
5,720,605 | 5,720,606 | show stored value in jquery | <p>I want to temporarily save form values in jquery (not in a database) and then echo the value on the same page.</p>
<p>I have a page where there is a button called "add items", when a user clicks on the "add items" button a form appears in a popup modal. When the save the button is selected on the popup modal value... | javascript jquery | [3, 5] |
5,834,329 | 5,834,330 | How to wake up device using Alarm clock? | <p>I use the following code for setting repeating events in <code>AlarmManager</code>:</p>
<pre><code>mAlarmManager.setRepeating(AlarmManager.RTC_WAKEUP, System.currentTimeMillis(),
PERIOD, getPendingIntent(time));
</code></pre>
<p>Code for receiver:</p>
<pre><code>public class NotificationsReceiver extends Bro... | java android | [1, 4] |
3,192,839 | 3,192,840 | populate another drop down on selection of first | <p>I am going to populate a another drop down on selection of first drop down. Implementing this with intermediate php file. I am showing second drop down on basis of Jquery.</p>
<p>Jquery code.</p>
<pre><code>$("<select/>", {
class: "selectdoctor",
name: "selectdoctor" + i,
id: "selectdoctor" + i
}).appendTo("... | php jquery | [2, 5] |
1,217,194 | 1,217,195 | C++ code communication with Java | <p>I have a Java based desktop application. Now also along there is a camera sdk, through which one can control the camera (i.e. get the latest picture from camera, generate thumbnail's, camera clock etc). This code to handle all this is written in C++.</p>
<p>What is the best provision to interact both the above part... | java c++ | [1, 6] |
4,170,962 | 4,170,963 | Can't find the bug in this jQuery code | <p>I have the following code, which, upon the press of a certain button, should validate for an email address (this functionality works already), and then should try to post my form, and if it gets back "Error", it should show an error. I think I'm mixing up PHP and JS somewhere.</p>
<pre><code>$('#recoverSub').live('... | php jquery | [2, 5] |
3,386,169 | 3,386,170 | How do you cycle through and display parameters in jQuery | <p>Suppose you have a URL like <code>http://www.somesite.com/somepage.html?id=1&page=2&field=3</code></p>
<p>Now with jQuery I would like to display all of the GET variables passed to the page. How do I dodo this. Its fine (perhaps even better) if its done as part of some Debug function.</p>
| javascript jquery | [3, 5] |
1,270,451 | 1,270,452 | No space left on device - Android emulator | <p>I've got an error and i don't know why, i googled it many time but nothing appeared.</p>
<p>com.android.ddmlib.SyncException: No space left on device</p>
<p>I clean and build the project... Nothing. I don't know what to do next.
I'm talking about the emulator.</p>
| java android | [1, 4] |
2,305,993 | 2,305,994 | need help converting c++ definitions to c# equivalent | <p>I'm using an API (written in c++) to connect to a DVR machine, actually I only have the .dll and the .lib files, and I want to do the job in .NET (C#).
So, the API doc contains definitions to all functions inside the dll, and I'm having a hard time trying to figure out how to translate those functions to equivalente... | c# c++ | [0, 6] |
4,934,052 | 4,934,053 | jQuery - Do UI change after other UI change is finished | <p>How would I execute <code>$("#login").toggle("drop", {direction: "left"});</code> then after THAT is completely finished... do <code>$("#register").toggle("drop", {direction: "right"});</code>. Because the <code>DIVS</code> are not floated and at the same time they stack up against each other when they <code>drop</c... | javascript jquery | [3, 5] |
5,756,835 | 5,756,836 | Javascript/JQuery arguments by type | <p>I'm not quite sure if the title is correct because I'm not sure how to describe my question, but basically I'm wondering how jQuery can handle functions that take things like <code>("Some String", true, function(){})</code> and <code>("Some String", function() {})</code>. IE, it seems like it's an overloaded functio... | javascript jquery | [3, 5] |
5,242,692 | 5,242,693 | Checklist Box (C#) | <p>My query is quite simple yet complex for me!!</p>
<p>The scenario is that I have a checklist box whose checked items are to be added in a listbox for further processing. All I need to know is how to uncheck an item in a checklist box if an item is removed from the listbox. There are two buttons named <code>Remove A... | c# asp.net | [0, 9] |
1,264,785 | 1,264,786 | How to use front camera in Xing QR Code scanner libary on android | <p>I wish to know how can I use front camera with Xing library on android to scan 2D Qr code . I mean what what code is required ? </p>
<p>Thanks a lot
Vishal</p>
| java android | [1, 4] |
4,457,175 | 4,457,176 | Accessing method in main activity from another class | <p>How do I access the method myMethod from another class?</p>
<pre><code>public class controller extends Activity
{
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layo... | java android | [1, 4] |
558,904 | 558,905 | Pulling HTML value through jQuery | <p>I have these data-attributes</p>
<pre><code><li data-audio="" data-pic="images/one.png" data-word="one" data-hint="What?"></li>
</code></pre>
<p>I pull them through using this function</p>
<pre><code>$(wordsData).each(function () {
var elm = $(this);
listOfWords.push({
"name": elm.data... | javascript jquery | [3, 5] |
2,509,898 | 2,509,899 | Getting Value Of a Particular Row On Clicking On the LinkButton Inside GridView | <p>I have a Gridview As Follows :</p>
<pre><code><asp:GridView ID="PartnerView" runat="server" AllowPaging="True"
AllowSorting="True" AutoGenerateColumns="False" CssClass="GridViewStyle"
GridLines="None" DataKeyNames="Partnerid" Width="900px">
<Columns>
... | c# asp.net | [0, 9] |
3,326,060 | 3,326,061 | How to make /#!/ in our URL? | <p>Everyone!</p>
<p>Almost 3 hours im stack in this problem! iv'e copy the concept in twitter like this if twitter.com/#!/username then the page/profile is username, </p>
<p><a href="http://twitter.com/#!/mardagz" rel="nofollow">http://twitter.com/#!/mardagz</a> as you can see it redirected to my account, so now im t... | javascript jquery | [3, 5] |
2,707,701 | 2,707,702 | What is JSON.parse written in / Is it open source? | <p>PHP funcitons are written in C and you can look at the source code if you like. For example here -
<a href="http://lxr.php.net/opengrok/xref/PHP_5_3/ext/session/session.c#1361" rel="nofollow">session_start source</a></p>
<p>What about with Javascript? How are functions like JSON.parse implemented? Where can I g... | php javascript | [2, 3] |
3,490,969 | 3,490,970 | file sending using php | <p>can we use php to send a file to another like in MSN Messenger? I am working on a chat script and was wondering if its possible or not to send a file to the other person during chat?</p>
<p>i am using jquery/mysql/textfiles/php for this script</p>
| php jquery | [2, 5] |
5,982,702 | 5,982,703 | jQuery issue with .net | <p>I'm working on a website built with .net and im having a strange problem. </p>
<p>I have a jQuery call that changes all my 'select' tags from the default browser style to a custom style. When my page loads the javascripit is read and so this works, my only problem being that when you select an option the dropdown, ... | jquery asp.net | [5, 9] |
1,232,452 | 1,232,453 | Select a random string from an array | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/4550505/javascript-getting-random-value-from-an-array">JavaScript: Getting random value from an array</a> </p>
</blockquote>
<p>Could someone help me on this topic? I've got this code.</p>
<pre><code>var textAr... | javascript jquery | [3, 5] |
1,177,176 | 1,177,177 | User controls (listview, gridview etc) or Use custom made tables or lists | <p>I'm starting a project in ASP.net, but since I first started with asp.net mvc. It's a bit weird with all the user controls you can just drag on the page and bind it with a datasource.</p>
<p>Is it bad practice to simply make a public variable on the code behind file and loop through it with a for-each like in asp.n... | c# asp.net | [0, 9] |
314,909 | 314,910 | Onclick button language change in java android | <p>I'm looking for a way to implement change of language triggered by button onclick. I have created proper strings.xml in proper folders (for example res/values-en/) Here is my code of the button:</p>
<pre><code>Button setEN_bt = (Button) findViewById(R.id.setEN);
setEN_bt.setOnClickListener(new View.OnClickL... | java android | [1, 4] |
3,936,260 | 3,936,261 | Execute java code though javascript w/o ajax | <p>I am trying to implement java code on a web based application to reduce redundancy and increase OOP principles</p>
<p>I have a phone validation regular expression on server side java code. I have a requirement to perform the same validation on the browser as people are adding information, without communicating wit... | java javascript | [1, 3] |
2,919,248 | 2,919,249 | javascript: pass function as a parameter to another function, the code gets called in another order then i expect | <p>i want to pass a function to another function as a parameter.</p>
<p>I want to do that because the latter function calls an async Jquery method and AFTER that gives a result back, i want some javascript code executed.</p>
<p>And because this function is called from multiple places, i want the code to execute (afte... | javascript jquery | [3, 5] |
4,472,439 | 4,472,440 | find() function not working on page load in jquery | <p>I have the following jquery code to remove the style attribute of all <code>table</code>, <code>tr</code> and <code>td</code> elements located inside a <code>div</code> with <code>id="testdiv"</code>. </p>
<pre><code>$(document).ready(function(){
$("#testdiv").find("table, tr, td").removeAttr("style");
});
</c... | javascript jquery | [3, 5] |
5,255,238 | 5,255,239 | Is there a way to get a list of all the users on a domain using ASP.NET with C# as the backend? | <p>The question basically says it all. I want to be able to get a list of all the users on the windows domain (i.e. in the active directory) using c#.</p>
<p>Thanks!</p>
| c# asp.net | [0, 9] |
4,820,204 | 4,820,205 | Javascript .indexOf says 2 equal elements are not equal | <pre><code>$.makeArray($('ul#NavAContent li')).indexOf($('ul#NavAContent li#A1'))
</code></pre>
<p>The li element with id A1 is in the ul#NavAContent, but the indexOf function returns <strong>-1</strong>, what am i doing wrong?</p>
| javascript jquery | [3, 5] |
5,802,748 | 5,802,749 | Is there a js function that scrolls a site left right up and down? | <p>I was wondering if anyone knows if there was a javascript or something that scrolls a site left right up and down on a click.</p>
<p>For example I want to create a site with multiple divs. Look at photo below.</p>
<p><img src="http://i.stack.imgur.com/ygCBW.jpg" alt="enter image description here"></p>
<p>I want e... | javascript jquery | [3, 5] |
4,537,547 | 4,537,548 | dropdown list value from sql in php | <p>I want to do this function in php. i have two fields, one is text box and an
other one is drop down list. Drop down list contains values from sql. When one of the value is selected from the drop down list i want the text box to be filled according to the option which is selected.</p>
<p>Following is the drop down l... | php javascript | [2, 3] |
1,998,075 | 1,998,076 | Creating User Control works with AJAX | <p>I need to create a user control with 3 images: like, dislike and comment buttons. I want to like and dislike button to save some info to the database (liked user and liked object). But i want to work them without reloading the page. </p>
<p>Example scenario: </p>
<ul>
<li>Like button shows like count if the post h... | c# asp.net | [0, 9] |
4,072,958 | 4,072,959 | using javascript function to be called from code behind under specific condition | <pre><code><asp:Button ID="btn_create" runat="server"
Text="Create Weekly Report"
OnClick="btn_create_Click" />
</code></pre>
<p>This is a user button and code behind is</p>
<pre><code>con.Open();
SqlDataReader dr = cmd.ExecuteReader();
if (!(dr.HasRows))
{
Page.ClientScript.RegisterStartu... | c# javascript asp.net | [0, 3, 9] |
2,440,007 | 2,440,008 | Android PorterDuff.Mode error: PorterDuff cannot be resolved to a variable | <p>I've got a class which extends LinearLayout, can't figure out how to get PorterDuff.Mode working with this piece of code:</p>
<pre><code>this.getBackground().setColorFilter(Color.parseColor("#a7d2e3"), PorterDuff.Mode.DARKEN);
</code></pre>
<p>"PorterDuff cannot be resolved to a variable"</p>
<p>I've imported por... | java android | [1, 4] |
5,636,506 | 5,636,507 | how to namespace many capture events in a Javascript object literal | <p>I am using jQuery events to capture events across a rails app. Basically, there are a set of event captures' on DOM elements that then call other functions. What I'd like to do is provide some namespacing to these event captures and an looking for the best way:</p>
<p>I currently have (but like 60 of them):</p>
<p... | javascript jquery | [3, 5] |
3,878,979 | 3,878,980 | How to implement internet radio using java | <p>How to implement internet radio using java?
Is there any Java APIs for this?</p>
<p>I want to make a internet radio using Android / java. But I am not getting any APIs how to connect or how to receive the channel information for streaming the audio.</p>
<p>Please help me how to create that same and provide some co... | java android | [1, 4] |
2,939,083 | 2,939,084 | Jquery/JavaScript Time Calculation | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/7641791/javascript-library-for-human-friendly-relative-date-formatting">Javascript library for human-friendly relative date formatting</a> </p>
</blockquote>
<p>How to show 2days ago, 3 months ago instead of tim... | javascript jquery | [3, 5] |
385,453 | 385,454 | .text() function does not show HTML tags like I want. How do I fix this? | <p>I am trying to limit 300 charecters to show in a container and using this</p>
<pre><code><script>
$(function () {
$('.shippingMessage').append($('#forQuickViewOnly'));
var myDiv = $('#firstPara');
myDiv.text(myDiv.text().substring(0, 300));
$('.productdetailtopquickview .pr... | javascript jquery | [3, 5] |
4,528,910 | 4,528,911 | altering onload event after body tag is printed, using jQuery .ready() in body of document | <p>I have a tabbed page I inherited that works through a number of queries and the results determine what tabs are printed.</p>
<p>I want to implement some logic in PHP that will cause one tab or another to be the tab with focus when page load is completed.</p>
<p>Is it good practice to add a call to jQuery's <code>.... | javascript jquery | [3, 5] |
957,261 | 957,262 | separate string with html into two strings | <p>I'm trying to separate a string with html and non-html in it into two strings.</p>
<p>My javascript string is:</p>
<pre><code><span>1x</span> Front-line zero tolerance productivity
</code></pre>
<p>I want this to be separated into two variables</p>
<pre><code>var quantity = "1x";
var name = "Front-li... | javascript jquery | [3, 5] |
2,606,421 | 2,606,422 | Overriding $.connection.hub.id in signalr for my own Id's | <p>can i override this functionality to give my connected client my own Id's not the id generated by the Hub i looked for it through the internet i fount that you have to do a class that override IClientfactory or IConnectionIdGenerator class but i also found that those classes have been deleted and in my signalr Dll's... | c# javascript | [0, 3] |
2,627,622 | 2,627,623 | ASP.NET - Are there any advantages or differences in using (Type)Container.DataItem and Eval() within Server tags? | <p>Are there any advantages or differences between using the following?</p>
<pre><code><%# Eval("Item.Details")%>
</code></pre>
<p>and <code><%# ((ItemDetails)Container.DataItem).Item.Details%></code></p>
| c# asp.net | [0, 9] |
2,533,199 | 2,533,200 | Time Line graph is not showing date exactly | <p>I am working on time line graph i am getting From date and To date from date base. I am binding that values to time line graph through javascript. But Graph is displaying one month ahead.</p>
<p>Ex: My date is 12-jun-2011, but in graph I am getting near 12-july-2011.</p>
<p>How can I solve this ?</p>
| javascript asp.net | [3, 9] |
4,257,634 | 4,257,635 | How can I extract table data from an aspx file? | <p>I work in a call center and have an aspx page that generates a html table of the current stats of all the other call centers in the company.</p>
<p>I have put an example of what is generated on a <a href="http://jsfiddle.net/UqZjt/" rel="nofollow">JSFiddle here</a>. I'm afraid I'm only an enthusiastic beginner so a... | javascript jquery asp.net | [3, 5, 9] |
382,450 | 382,451 | How to stop cursor from jumping to beginning/end of textbox on up/down key? | <p>How can I prevent the cursor from jumping to the beginning or end of a textbox when up or down arrow key is pressed, using JavaScript and jQuery?</p>
| javascript jquery | [3, 5] |
1,792,251 | 1,792,252 | javascript repeat action | <p>how to do a same loop action? thank you.</p>
<pre><code>$('a.level').click(function() {
var level = $(this).parent('li').attr("class");
var nxvl = parseInt(level)+1;
var dir = $(this).html();
var curr = $(this);
var data = new Object();
data.n = new Date().getTime();
data.act = "getdir... | javascript jquery | [3, 5] |
1,468,888 | 1,468,889 | ashx file for download from Master page menu item? | <p>Right now I wrote download code in Masterpage code behind for Menu item click. Now I want change this. When user click menu item in master page I want to call .ashx file and execute download logic. But stay in the same page where the request has made. </p>
<p>Please point me to right direction to implement this.</p... | c# asp.net | [0, 9] |
3,165,661 | 3,165,662 | Jquery photography slider (window resize and image increase in size) | <p>Here is the jsfiddle: <a href="http://jsfiddle.net/d5yBg/" rel="nofollow">http://jsfiddle.net/d5yBg/</a></p>
<p>My 1 problem is with commented out parts of the code, near the bottom. I'd like to increase size of .focus image. Problem is total width of the slide is not re-calculated correctly so I've image falling o... | javascript jquery | [3, 5] |
419,289 | 419,290 | Generate PDF file in asp.net | <blockquote>
<p><strong>Possible Duplicates:</strong><br>
<a href="http://stackoverflow.com/questions/575584/how-to-make-pdf">How to make pdf ?</a><br>
<a href="http://stackoverflow.com/questions/3252872/create-pdf-file-in-asp-net">Create pdf file in Asp.net</a> </p>
</blockquote>
<p>What is the best way to g... | c# asp.net | [0, 9] |
2,879,542 | 2,879,543 | PHP ↔ JavaScript communication : constants VS strings | <p>I am developping a web-application which makes a heavy use of AJAX. The server often answer by an array in order to <em>concatenate</em> different parts of the response.</p>
<p>I wonder what is the best solution to handle the keys in those arrays among the following two (the JSON encoding and decoding aren't shown)... | php javascript | [2, 3] |
315,212 | 315,213 | Where I can see the Log, If I have installed application on Phone? | <p>Where I can see the Log, If I have installed application on Phone?
Example like </p>
<p><code>Log.v(TAG, "Current State is - "+state);</code></p>
<p>My application is crashing when incoming call comes. So how can I trace the Log or Error?</p>
| java android | [1, 4] |
4,302,488 | 4,302,489 | Scroll to bottom of page, only if the user already was at the bottom before DOM manipulation | <p>I'd like to learn how to use <code>window.scrollTo</code>.</p>
<p>Here's is the desired behavior:</p>
<ol>
<li>Determine if the user is scrolled to the bottom of the page, or no scroll bar is visible</li>
<li>Then I want to grow a DIV, this is working</li>
<li>If #1 was true, use <code>window.scrollTo</code> to sc... | javascript jquery | [3, 5] |
2,547,571 | 2,547,572 | How to change the weight size of a fragment in android? | <p>Here is the xml-Layout of my fragment view</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="horizontal"
android:weightSum... | java android | [1, 4] |
2,711,606 | 2,711,607 | pass the e.target to a function thats called when element is clicked | <p>I am trying to pass the clicked event (event.target) to a function inside a function that is being called when clicked how would i do this?</p>
<pre><code>function showGrid(){
updateTag()
}
function updateTag(){
/*how do i get the event.target passed here? */
alert(e.target)
}
$(".gridViewIcon").c... | javascript jquery | [3, 5] |
3,758,034 | 3,758,035 | Jquery and retrieving object via .find() | <p>Via ajax method, I need to fetch an html which is a real mess, half of the elemnts are opened but not closed.</p>
<p>Now I need to find elements which contains time string as in such format: "19:00-20:00" which means it should have something such as "HH:MM-HH:MM".</p>
<p>How can I fetch these rows that contains s... | javascript jquery | [3, 5] |
4,369,596 | 4,369,597 | Playing a video in android | <p>Im implementing a video playback in android im completely new to android, and this is the bit of code i have gathered so far.</p>
<p>according to the logic it should play a video. don't know where im doing wrong.</p>
<pre><code>package com.themetanoia.readfilefromsdc;
import java.io.File;
import android.app.List... | java android | [1, 4] |
1,691,164 | 1,691,165 | Password strength script failed | <p>I'm using a little script to check the password strength in an inscription form, here is a relevant part of the script:</p>
<pre><code> $('#password').keyup(function(){
var password = $(this).val();
password = $.trim(password);
var lettre_min = /[a-z]/;
var lettre_maj =/[A-Z]/;
var nombre =... | javascript jquery | [3, 5] |
2,473,706 | 2,473,707 | How i can create json on javascript(jquery) | <p>I have json: </p>
<pre><code>{
"sEcho": 1,
"iTotalRecords": 3,
"iTotalDisplayRecords": 3,
"aaData": [
["http://google.com", "0", "0", "2013-02-20 18:31:02"],
["http://ya.ru", "0", "0", "2013-02-22 18:45:43"],
["http://yandex.ru", "0", "0", "2013-02-22 18:45:43"]
]
}... | javascript jquery | [3, 5] |
5,797,381 | 5,797,382 | Where can i get offline jQuery 1.7 API dump | <p>Hi i am tired googling for jQuery 1.7 API documentation file. Someone please provide me a link, where i can get offline jQuery 1.7 api dump.</p>
<p>Thanks</p>
| javascript jquery | [3, 5] |
2,071,329 | 2,071,330 | Can't get focus on editText when children are added in layout | <p>i am adding a spinner, an image and an editText in a linearLayout everytime i click a button.</p>
<p>Now whenever i add this layout , editText shows blinking, means it has focus but the keyboard won't show up. Even i click on it, the keyboard won't show up. What most i can do is to click somewhere else and then bac... | java android | [1, 4] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.