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 |
|---|---|---|---|---|---|
4,873,269 | 4,873,270 | Are there things that JavaScript can do that JQuery can't? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/471597/is-jquery-always-the-answer">Is jQuery always the answer?</a> </p>
</blockquote>
<p>Now-a-days everyone is talking only about jQuery at my work place, there are some Sr. Developer who work mostly with Jav... | javascript jquery | [3, 5] |
1,589,207 | 1,589,208 | Equivalent of PHP's 'array_splice' in java | <p>How can I implement <code>array_splice()</code> in java</p>
<pre><code>$input = array("red", "green", "blue", "yellow");
array_splice($input, 2);
// $input is now array("red", "green")
</code></pre>
<p><a href="http://php.net/array_splice" rel="nofollow">http://php.net/array_splice</a></p>
| java php | [1, 2] |
5,690,113 | 5,690,114 | Javascript: Proper way to insert a newline in javascript | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/1155678/javascript-string-newline-character">JavaScript string newline character?</a> </p>
</blockquote>
<p>I am aware that <code>\n</code> is the newline character but it does not work for IE. I have to use <co... | javascript jquery | [3, 5] |
2,986,057 | 2,986,058 | Trouble showing webview | <p>I need to show a web page for a several amount of seconds, then start another activity.
What I am doing is on the onResume() method, I call the Thread.sleep() and then start the new activity, but when I execute it, it doesn't show me webpage. It shows a black screen, and executes the next activity. What could i poss... | java android | [1, 4] |
4,434,162 | 4,434,163 | Is goto ok for breaking out of nested loops? | <p>JavaScript supports a goto like syntax for breaking out of nested loops. It's not a great idea in general, but it's considered acceptable practice. C# does not directly support the <code>break labelName</code> syntax...but it does support the infamous <code>goto</code>. </p>
<p>I believe the equivalent can be ac... | c# javascript | [0, 3] |
111,891 | 111,892 | Make Keyboard keys run JavaScript if the mouse isn't in a Textarea/textbox | <p>Like if they press A regardless of the caps for it to pull up Apps, Pressing D pulls up Dashboard. This should only work if their mouse is not in a area where they can type. How would i do this?</p>
| javascript jquery | [3, 5] |
4,723,479 | 4,723,480 | I Want to get right time on Android Device, what I do for Expression like 1 * new Date(); in Javascript same in Android? | <p>If I run this in browser; </p>
<pre><code>1 * new Date();
</code></pre>
<p>I get the time: <code>1369837120265</code>. I want to get same in my Android app.</p>
<p>Because Android connects to the internet, is there any guarantee that the time I get will be right? Is there any API to do this? How can I get the sam... | java javascript android | [1, 3, 4] |
2,596,889 | 2,596,890 | How to do calculations with autopostback so there's no screen flicker | <p>I have a form that does an autopostback whenever a user select a number from the dropdownlist on the web form. The autopostback runs the code below which calculates the numbers of the form.</p>
<p>Screenshot:</p>
<p><img src="http://i.stack.imgur.com/VBG6l.jpg" alt="enter image description here"></p>
<p>Problem ... | javascript jquery asp.net | [3, 5, 9] |
3,212,440 | 3,212,441 | how to set attributes by jquery and access them by c# | <p>I wanna change or add custom attributes in client side by jquery and check them in server side by c#</p>
<p>(for example add a custom attributed named "Loaded=1" to an image HTML element when the image is loaded successfully and in server side I access to this attribute through Image control Attributes Collection)<... | c# jquery asp.net | [0, 5, 9] |
3,731,083 | 3,731,084 | Making count reset for each word | <p>In my spelling game there is a grid that is populated with words that are hidden from the user. The aim of the game is to spell these words with the aid of a sound and a picture. The user spells a word by clicking the relevant letters onto the grid.</p>
<p>If the user gets a word wrong the word will glow red. If th... | javascript jquery | [3, 5] |
498,098 | 498,099 | Pass javascript variable to php code? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/406316/how-to-pass-a-variable-data-from-javascript-to-php-and-vice-versa">How to pass a variable / data from javascript to php and vice versa?</a> </p>
</blockquote>
<p>I have a file of php and javascript code. ... | php javascript | [2, 3] |
6,002,953 | 6,002,954 | How to order divs with JQUERY | <p>i have divs like this: </p>
<pre><code><div class="oferta SYB">
<div class="infoferta">
<div class="datosoferta">
<div class="ofertapagas">Pag&aacute;s<br/> $ 67</div>
<div class="ofertavalor">Valor<br /> $ 160</div>
<div clas... | javascript jquery | [3, 5] |
1,617,595 | 1,617,596 | Store method in hidden field in form | <p>this is properly a very simple question but whatever:</p>
<p>why does the following not work?</p>
<pre><code>echo '<input type="hidden" name="value" value="return $(\"#compare_bd\").mergely(\"get\", rhs)">';
</code></pre>
<p>it returns: <code>return $(//</code></p>
<p>Thanks!</p>
| php javascript | [2, 3] |
3,150,743 | 3,150,744 | Email sending using ASP.NET | <p>What is the code for E-mail sending using ASP.NET.I have used the code:</p>
<pre><code>DataSet ds = new DataSet();
SqlConnection con = new SqlConnection("server=kiran-b946c0f6d;database=EmployeeDatabase;uid=sa;pwd=123");
con.Open();
string str1 = "SELECT * FROM Employee_Table";
SqlCommand com = new SqlCommand... | c# asp.net | [0, 9] |
1,389,222 | 1,389,223 | How to display count of child record in parent using Javascript or JQuery | <p>In the example below:</p>
<pre><code><html>
<head>
<script src="some.js" type="text/javascript"></script>
<script type="text/javascript">
//???
//???
);
</script>
</head>
<body>
<table>
<tr id="parent_1">
<td>Parent 1</td>
</tr>
<tr... | javascript jquery | [3, 5] |
3,060,026 | 3,060,027 | Session variable does not get updated within javascript code | <p>delete_define.php has the following code snippet:</p>
<pre><code><?php
session_start();
?>
<form action="delete_now.php" target="upload_target" onsubmit="return my_func_1();">
<input type="submit" name="my_submit" class="my_submit" value="submit"/>
<iframe id="upload_target" name=... | php javascript jquery | [2, 3, 5] |
1,007,642 | 1,007,643 | How to read Session timeout value from web.config using javascript in JS file | <p>Can anyone please guide me to read the value of Session timeout value using javascript contained in a .js file.</p>
<p>I need to access the value in a javascript file and process the value.</p>
<p>I tried to follow the below approach in a test.js file but it is not working:</p>
<pre><code>var sessionTimeout = <... | javascript asp.net | [3, 9] |
1,880,177 | 1,880,178 | How to remove invalid characters from a string? | <p>I have no idea how to remove invalid characters from a string in Java. I'm trying to remove all the characters that are not numbers, letters, or ( ) [ ] . How can I do this?</p>
<p>Thanks</p>
| java android | [1, 4] |
5,499,511 | 5,499,512 | How can I convert the following java function into C++? | <p>If I have the following Java code:</p>
<pre><code>int[][] readAPuzzle()
{
Scanner input = new Scanner(System.in);
int[][] grid = new int[9][9];
for (int i=0; i<9; i++)
for (int j=0; j<9; j++)
grid[i][j] = input.nextInt();
return grid;
}
public static void main(String[] args) {... | java c++ | [1, 6] |
3,845,115 | 3,845,116 | Jquery list update | <p>I currently have a drag/drop list my problem being I'm trying to detect when a div is dropped via Jquery using mouseup.</p>
<p>The problem being the reason I need to do this is so I can update my lists (in MYSQL) - I plan on doing this using a Jquery Ajax post.</p>
<p>My problem is I've set up the code and I don't... | javascript jquery | [3, 5] |
4,732,322 | 4,732,323 | Basic API that returns longitude and latitude from an address using JavaScript or PHP | <p>I am quite new to JavaScript and I am looking for a basic API or function that I can feed an address as a string value and it returns me the longitude and latitude of that address. I have a series of addresses in a DB and I want to add the longitude and latitude values for each of them.</p>
<p>Thanks</p>
| php javascript | [2, 3] |
4,745,828 | 4,745,829 | jQuery Problem - How to solve? | <p>I have a jQuery requirement like:</p>
<p>I have an Image. If I click it once its size will get reduced. If I again click it it will again resize. </p>
<p>Do we have any functionality to do it easily in jQuery? Or do I have to set a flag and then work on mouseclick? Something like </p>
<pre><code> $("#img1").clic... | javascript jquery | [3, 5] |
2,060,924 | 2,060,925 | Can we bind hide event or does jquery have an "onhide" event | <p>So far I tried <a href="http://stackoverflow.com/questions/2857900/onhide-type-event-in-jquery">onHide() type event in jQuery</a></p>
| javascript jquery | [3, 5] |
1,957,288 | 1,957,289 | Retain url hash value using Request.UrlReferrer | <p>I have an list of paged results that is using AJAX requests to populate next/previous page clicks. I am using the jQuery history plugin to keep track of the page # the user is on. This basically appends <a href="http://site.com?query#pg=5" rel="nofollow">http://site.com?query#pg=5</a> to the url. </p>
<p>If I click... | c# asp.net jquery | [0, 9, 5] |
3,638,695 | 3,638,696 | Check if an object exists by its selector, return a boolean value with jQuery or Javascript | <p>I need to see if an object is present on the page by its selector.</p>
<p>This WOULD normally do it:</p>
<p><code>startpageentry = $('#' + startpageid)</code></p>
<p>But that doesn't return anything. I need a boolean I can put into an if statement like this:</p>
<p>if (startpageentry != 'false') {}</p>
<p>How c... | javascript jquery | [3, 5] |
4,619,158 | 4,619,159 | Error registering client scrip block when using master page in an ASP.NET application | <p>I've got this code from <a href="http://madskristensen.net/post/JavaScript-AlertShow%28e2809dmessagee2809d%29-from-ASPNET-code-behind.aspx" rel="nofollow">Mads Kristensen's blog</a> to display a message box on an ASP.NET client's page using Javascript:</p>
<pre><code>public static class Alert
{
public static vo... | c# javascript asp.net | [0, 3, 9] |
1,964,841 | 1,964,842 | Manipulate form data before it's sent with jQuery | <p>I want to encrypt some data in a form using jQuery before it's sent to the server, it can be a MD5 hash. It is a small project, so I don't really need to use SSL.</p>
<p>I have the following JavaScript code where I use <code>$.md5</code> in the password confirmation info:</p>
<pre><code> $(document).ready(func... | javascript jquery | [3, 5] |
2,685,892 | 2,685,893 | jquery: how to check if all radio buttons in a div are selected | <p>my html looks like this</p>
<pre><code><div id="div1">
<input type="radio" name="r1" value="v1" />
<input type="radio" name="r1" value="v2" />
<input type="radio" name="r1" value="v3" />
<input type="radio" name="r2" value="v1" />
<input type="radio" name="r2" value="v2" ... | javascript jquery | [3, 5] |
3,859,128 | 3,859,129 | System.Data.OleDb.OleDbException: Number of query values and destination fields are not the same | <p>I received some help which I much appreciate to insert info into a database using paramaters as it is better practice I believe to do this.
I do however get the following error 'Number of query values and destination fields are not the same'. Not sure as to why it is happening.
The code seems perfectly fine and the ... | c# asp.net | [0, 9] |
2,274,549 | 2,274,550 | Why won't my span do a JQuery event click when I click it? | <pre><code>.tablePlayButton {
display: block;
width: 16px;
background: transparent;
margin-top:2px;
margin-right: -10px;
margin-left: 2px;
height:17px;
}
tr:hover .tablePlayButton {
background: url(ton.png) top left no-repeat;
}
tr:hover .tablePlayButton:active {
background-position: bottom left;
}
tr:hover .tablePl... | javascript jquery | [3, 5] |
4,964,193 | 4,964,194 | Converting JavaScript code to PHP | <p>I need help converting this code to PHP. </p>
<pre><code>var formula = [10,6.7,3.4];
var user1 = [1,0,2,1,1,0,2,2,2,2];
var user2 = [2,1,2,0,1,2,2,2,0,0];
var result = 0;
calculate();
function calculate(){
for(var i=0; i<user1.length; i++){
result +=formula[Math.abs(user1[i]-user2[i])]... | php javascript | [2, 3] |
4,408,553 | 4,408,554 | Can't save image for barcode generation in ASP.NET C# project | <p>I'm trying to save an image using System.Drawing.Save() and I keep getting a Invalid Parameter exception.</p>
<p>Can somebody please take a look at my code and tell me what I'm doing wrong.</p>
<p>Here is the code that generates the barcode image.</p>
<pre><code> public class BarcodeHelper
{
Font barc... | c# asp.net | [0, 9] |
5,692,672 | 5,692,673 | Is there a place where we can see PHP <=> C++ equilavent libraries/function for a php developer starting with C++? | <p>Is there a place where we can see PHP <=> C++ equilavent libraries/function for a php developer starting with C++?</p>
<p>As a PHP developer starting with C++, I often ask myself: what is the equivalent of such-and-such PHP function in C++?</p>
<p>The advantage of php, is that we have a very nice site which doc... | php c++ | [2, 6] |
3,094,686 | 3,094,687 | Issue with jQuery ajax post | <p>This is a followup to this <a href="http://stackoverflow.com/questions/10730765/how-to-find-a-sibling-elements-value-using-jquery-upon-click">question</a>. Since the problem that I'm now facing is different from that, I thought I'll pose a new question. </p>
<p>I'm having an issue with the following code where in, ... | javascript jquery | [3, 5] |
291,916 | 291,917 | Get elements using children length in Jquery | <p>I want to get <code><td></code> whose children length(size()) is 2 using Jquery. I am trying this but this returns me only size() & not the <code><td>'s</code>.</p>
<pre><code>grid.find("tr").find("td").children().size();
</code></pre>
<p>How can i do this?</p>
| jquery asp.net | [5, 9] |
3,081,329 | 3,081,330 | c++ function invocation listener | <p>I have a code written in c++ and it's a windows application.</p>
<p>i would like to leave the code as is and create another project (C# or C++ - rather C#)</p>
<p>that will "listen" to some functions invocations in that windows application.</p>
<p>I don't know where even to begin, can it be only dll or must be ex... | c# c++ | [0, 6] |
940,783 | 940,784 | How to add fixed variable name with changing variable name | <pre><code><script>
var data1_1 = $value;
var data1_3 = $value;
var data1_5 = $value;
</script>
</code></pre>
<p>The above code is hard-code which is correct.
Now I want to make the code more flexiable using for loop.
However, there is something wrong on <code>data1_keysArr[i] = $value</cod... | javascript jquery | [3, 5] |
6,030,450 | 6,030,451 | Can I assign a value to a variable which Sticks to this variable in every scope? | <p>Can I assign a value to a variable (int) and never lose this value inside any scope ?<br/>
the problem is I am assigning the value to the variable in some scopes but the variable returns to its default value (zero) in other scopes..
Example :</p>
<pre><code> protected void Button_AddNewCourse_Click(object sende... | c# asp.net | [0, 9] |
1,341,594 | 1,341,595 | Can't set HTML using jQuery | <p>For some reason, my script isn't writing out the text after I remove the textbox element. Am I incorrectly using the <code>.html</code> or is something else wrong?</p>
<pre><code> $('.time').click(function () {
var valueOnClick = $(this).html();
$(this).empty();
$(this).ap... | javascript jquery | [3, 5] |
4,065,067 | 4,065,068 | Accessing a public variable from another class? | <p>The app I'm currently developing has more than one class created, with a corresponding
.xml file for each. My app requires progressing from one screen to the next
after a calculation has been completed.</p>
<p>In one class, I have declared a public double called V, which is the result
of a voltage calculation.</p>
... | java android | [1, 4] |
1,472,685 | 1,472,686 | Code Crush Android | <p>I want to crush the code of my android app so that it's very hard to refactor it.</p>
<p>Which tool do i use to crush the Javacode?</p>
<p>Thanks and best regards, Till</p>
| java android | [1, 4] |
5,039,070 | 5,039,071 | Different uses of $(document).ready | <p>What is the difference/advantages of using the $(docu...) with your variables and functions defined inside, from using it with a function and then calling it inside the $(docu...)</p>
<pre><code>$(document).ready(function (){
initialize();
});
function initialize(){
hello
}
</code></pre>
<p>over using this... | javascript jquery | [3, 5] |
3,993,636 | 3,993,637 | How to save pages with unique names? | <p>i am using C# and sql database. In db is stored information about items - id, name, etc.</p>
<p>Now i have a page to show items, that i use as a template and pass Item id in the url like /Item.aspx?id=223.
I would like to create pages for every item and save them to folder like /Items/Red-Book.aspx.
Any suggestions... | c# asp.net | [0, 9] |
714,119 | 714,120 | Develop android and iphone app | <p>I'm gonna develop a small app both for android and Iphone. The app will contain a simple little online magazine. I have not done any app before. I work with developing Web pages in asp.net c# and I'm familiar with java. So I'm a beginner in terms of mobile apps, and now I'm wondering how to begin and where to find g... | android iphone | [4, 8] |
3,360,912 | 3,360,913 | how can i make simple news calendar on jQuery datepicker | <p>I have code:</p>
<pre><code>$(function() {
$('#datepicker').datepicker({
beforeShowDay: daysToMarkAndLink
});
});
function daysToMarkAndLink(date) {
.....(if daysToMarkAndLink matches){
......(link goes here and also highlight);
}
return [false];
}
<?
$sql = mysql_que... | php jquery | [2, 5] |
5,692,578 | 5,692,579 | How do I put id number from select tag to a php link? | <p><img src="http://i.stack.imgur.com/K4LAx.png" alt="enter image description here"><img src="http://i.stack.imgur.com/Jx11e.png" alt="enter image description here">Currently, this is what I have so far, but it's not working:</p>
<pre><code><form>
<select name="patientID" id="patientSelect">
<?php
$qPat... | php javascript | [2, 3] |
798,107 | 798,108 | Java calling c++ method | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/3720563/access-c-shared-library-from-java-jni-jna-cni-or-swig">Access C++ shared library from Java: JNI, JNA, CNI, or SWIG?</a><br>
<a href="http://stackoverflow.com/questions/6325996/calling-a-c-c-program-from-ja... | java c++ | [1, 6] |
4,825,536 | 4,825,537 | How to Access a DIV inside a iframe from a Parent | <p>Hoping someone can assist but I am trying to access a div id="mnuGrp" that resides inside a child iframe(id="iframe2) from the parent window within the document.ready() section but unsure how to access this child div in the parent inorder to apply fadein and fadeout calls.</p>
<p>Want to be used within the followin... | javascript jquery | [3, 5] |
67,109 | 67,110 | Pre-filling values of a form using json object | <p>I am using a JSON object something like this <code>{"expiry_year":"15","number":"411111","month":"12","cvn":"456"}</code></p>
<p>Now on some callback I am getting this value. My requirement is to put these values in a from by using MAP so in future if some one change DOM id it won't affect the page.</p>
<p>To achi... | javascript jquery | [3, 5] |
2,655,292 | 2,655,293 | How to unregister SensorEventListener from SensorManaget? | <p>I have been developing the application which uses SensorManager through SensorEventListener. But there is a one problem: when application starts it should remove my listener from SensorManager and create a new Listener, but SensorManager has only 2 methods - registerListener and unregisterListener, but when I execut... | java android | [1, 4] |
5,708,021 | 5,708,022 | asp.net and permissions on a share | <p>I have an app that needs to update a txt file on another server. The asp.net app runs under iis6.0. Ive tried setting the permissions on the share for the server that runs the app. e.g DOMAIN\ServerA$ however it still says access to path blah blah is denied.</p>
<p>Any ideas?</p>
| c# asp.net | [0, 9] |
2,469,251 | 2,469,252 | dynamically set iframe src | <p>I have a program which will dynamically set an iframe src to load pages. I need to hook a event handler for the page completely loaded. How can i do it? Thanks!</p>
| javascript jquery | [3, 5] |
2,559,341 | 2,559,342 | passing callback function into onclick event | <p>Ive been messing with this a while and have tried numerous ways. It still wont work.</p>
<pre><code>function popupConfirm(widtH, texT, callback){
var top=(window.innerHeight/2) - 100;
var left=(window.innerWidth/2) - (widtH/2);
var r="<div id='standard-modal' style='width:"+widtH+"px;top:"+top+"px;left:"+left+"... | javascript jquery | [3, 5] |
2,874,377 | 2,874,378 | Not able to iterate over java collection in jquery | <p>I want to iterate a javascript collection of objects in jquery.
when i place an alert I am able to see the collection getting printed but I am not able to iterate over the elements of that collection in jquery. How can I do that?
I tried:</p>
<pre><code> ${mergedConfirmedTechnologies}.each(function(index,element... | javascript jquery | [3, 5] |
2,261,812 | 2,261,813 | Override onclick event in javascript/jquery | <p>I have a table(3 td's) with onclick event and need different onclick event for one td.</p>
<pre><code> <table onclick="window.location.href='http://www.google.com?id=12345'">
<tr>
<td>text</div>
<td>text1</div>
<td onclick="favTheater('test')">text3</t... | javascript jquery | [3, 5] |
3,809,435 | 3,809,436 | Submitting a form when using an onSubmit | <p>My form onSubmit is calling:</p>
<pre><code>onsubmit="validate(this); return false;"
</code></pre>
<p>validate() is as follows:</p>
<pre><code>function validate(obj) {
$.ajax({
url : "ajax/validate_check.php",
type : "POST",
data : $("#" + obj.id).serialize(),
success : functio... | javascript jquery | [3, 5] |
2,433,740 | 2,433,741 | Generating 2 dom elements in javascript | <p>How do I debug problems like this. I have this code:</p>
<pre><code>var index = 0;
$('#gen_field').click(function() {
var next_row = $('<tr>').attr({
'id': 'tbl_row' + index
}).appendTo('#tbody_coll');
var td1 = $('<td>').attr({
'id': 'td_collector' + index
}).appendTo(... | javascript jquery | [3, 5] |
3,505,984 | 3,505,985 | Books or/and tutorials for android programming for PHP developer | <p>I am PHP developer and I would like to start programming simple apps for my android smart phone. Any good suggestions on tutorials or books for PHP developer?</p>
| php android | [2, 4] |
1,178,918 | 1,178,919 | How to populate a String Array from a JSONObject to use in a ListView | <p>I have an android/java task where I want to get JSON values into a String array to display in a ListView and I am not sure where to begin? Thanks. </p>
<pre><code>private String[] values;
...
// this is what is returned from the web server (Debug view)
// jObj = {"success":1,"0":"Mike","1":"message 1","2":... | java android | [1, 4] |
2,574,899 | 2,574,900 | Assignment from unset variable | What is _jQuery for? | <p>This value is set before jQuery has been exposed to the global scope:</p>
<pre><code>_jQuery = window.jQuery,
</code></pre>
<p>Near the end of the IIFE and after the above statement there is</p>
<pre><code>window.jQuery = window.$ = jQuery;
</code></pre>
<p>This is from the <a href="http://code.jquery.com/jquery... | javascript jquery | [3, 5] |
2,481,537 | 2,481,538 | How to get input id of datepicker in c#? | <p>I am using datapicker jquery but it is not able to get Input Id in C#.If i give runat=server ,i can call the input id in c#,but it does not work in page. Can anyone help me for that, I am new to Dnn. Any answer would be appreciated. Thank you.</p>
<pre><code>enter code here
<div class="demo">
<p>Date: ... | c# javascript asp.net | [0, 3, 9] |
5,262,458 | 5,262,459 | How to set default ScrollTop and ScrollLeft to a popup window.open | <p>So, I have the code below where I want to open a link with <code>window.open()</code> and I want to set default <code>ScrollTop()</code> and <code>ScrollLeft()</code> to the popup window.
thx.</p>
<pre><code>function DoLink(){
window.open('http://translate.google.com/#', '_blank'," width=400, height=400")
}
<in... | javascript jquery | [3, 5] |
3,227,175 | 3,227,176 | jQuery - how to access jQuery object? | <p>I'm struggling to find out when to use #,$ in jquery.
i.e. if I have an object</p>
<pre><code>var elem{
}
</code></pre>
<p>How to access this?
Whether $('#elem') or $('elem')?
May be its too silly. But I cant find out a solution by googling it.</p>
| javascript jquery | [3, 5] |
3,168,270 | 3,168,271 | Call a javascript function from a link. All possibile methods | <p>I have a div ~ id is <code>slider</code> i want it to animate/hide when a link is clicked. More precisely i want to toggle it open and close from a link.</p>
<h1>jQuery</h1>
<pre><code><script type="text/javascript">
$("#toggleslider").click(function () {
$(this).hide("#slider", { direction: "up" },... | javascript jquery | [3, 5] |
2,287,482 | 2,287,483 | Removing Controls from asp.net page at runtime | <p>I have an asp.net dashboard site that allows a user to load HTML templates from a dropdownlist. There are multiple types of DevExpress components on the page, including the ASPxDockPanel. If a user changes templates I get an error that the dockpanel already exists, I would like to include a recursive function like t... | c# asp.net | [0, 9] |
5,396,933 | 5,396,934 | how can I pass a dataset to an object | <p>I have an object called arr and I want to add a dataset to it , here is my code so far . </p>
<pre><code> arr = { date:'222222' }
lines = [
{ line1:'line1' , name:'paul' } ,
{ line2:'line2' , name:'john' } ,
]
arr.push( lines )
</code></pre>
<p>I want to send arr to handlebars but need ... | javascript jquery | [3, 5] |
2,125,321 | 2,125,322 | How to clear clipboard data in Google Chrome,Mozilla Firefox and Safari using java script or j query | <p>I am developing a web site. i want to clear data when print screen is pressed while viewing my site by using JavaScript or j query. can anyone please help me to solve this problem.I successfully handled in IE.</p>
<p>Thanks in advance...</p>
| javascript jquery asp.net | [3, 5, 9] |
170,793 | 170,794 | Why Jquery Input Function doesnt return complete url? | <p>I am trying to make preview to my uploading Images. I have wrote a function its works fine but it doesnt return the complete url of file which is selected locally.</p>
<pre><code>function imagePreview(pid, input){
$("#"+pid).attr("src", input.value);
$("#"+pid).fadeIn('slow');
}
</code></pre>
<p>Html is </p>
<pr... | javascript jquery | [3, 5] |
2,236,164 | 2,236,165 | Jquery to pure javascript and how the intepreter looks up with dom for elements | <p>I have a couple of questions about the inner workings of JavaScript and how the interpreter handles certain queries</p>
<p>The following JQuery will correctly get all the images that contain the word "flowers" in the src</p>
<pre><code>$("img[src*='flowers']");
</code></pre>
<p>Jquery makes this very simple but w... | javascript jquery | [3, 5] |
3,036,830 | 3,036,831 | Pass a full url with Params in PHP | <p>I want to pass a url as a parameter in my PHP script. The URL is coming from my Android app which passes a url and the PHP script custom formats XML to return to the app. So I would pass the url I wanted to format and the PHP script would do stuff and echo the results.</p>
<p>For instance I want to pass this url: <... | php android | [2, 4] |
5,141,050 | 5,141,051 | call function inside a nested jquery plugin | <p>There are many topics related to my question and i have been through most of them, but i haven't got it right. The closest post to my question is the following:</p>
<p><a href="http://stackoverflow.com/questions/1042072/how-to-call-functions-that-are-nested-inside-a-jquery-plugin">http://stackoverflow.com/questions... | javascript jquery | [3, 5] |
3,459,864 | 3,459,865 | Get absolute path and filename from VideoView object | <p>Just started writing java / android and I am trying to use android.widget.VideoView.</p>
<p>I set the video by using the setVideoPath('/path/filename') method, but can't seem to figure out how to get the path on an existing object?</p>
<p>I'm using methods such as 'getDuration()', and 'getCurrentPosition()' and th... | java android | [1, 4] |
2,333,927 | 2,333,928 | Slide up div and then append a new div to slide up in its place | <p>Im trying to animate two div boxes when a user has successfully filled out a registration form. The first div that is animated is the registration form itself which will slide up from the bottom into the centre and the slide up and off the screen when a user has filled the form properly. </p>
<p>I have that first b... | javascript jquery | [3, 5] |
5,096,656 | 5,096,657 | Update binary file information | <p>We have some binary files on windows platform.(dll,exe and arx) But the file version information is wrong.(Right click->Properties->Details. The File version or project version are not correct.) Some of them are written by C#,some are C++. Because we don't have the source code for some of them. Is there any way to c... | c# c++ | [0, 6] |
3,412,213 | 3,412,214 | How to hide an element defined by a variable | <p>I have a variable itemid (which is the id of an element) which I want to hide, but firefox tells me this code is illegal:</p>
<pre><code> $(#(itemid)).hide();
</code></pre>
<p>Is what I am trying not possible or am I just tring it the wrong way? Also, in terms of debugging, is it possible to use javascript variab... | javascript jquery | [3, 5] |
5,271,712 | 5,271,713 | how to iterate through a select object array | <p>i've a few select's with a array as the name attrib.
This select can have multiple different values in different parts of the html, so i want to iterate through the values of the stored items in the name array.</p>
<p>i've google for a few time and didn't find a good answer (also here in stack...), but does anybody... | javascript jquery | [3, 5] |
3,150,486 | 3,150,487 | how to detect new line in this type of string | <pre><code>String quote = "Now is the time for all good "+
"men to come to the aid of their country.";
</code></pre>
<p>I want to detect break line in run time when I click on button I want to know new line comes..
because in TEXTVIEW i want output same as like this String nothing change.. so tell me so... | java android | [1, 4] |
1,015,869 | 1,015,870 | Link in the message of jQnotice | <p>How can I make a link that works in the following script. I use it as a pop-up, with the purchase of goods in a shop:</p>
<pre><code>$(document).ready(function() {
$('a.buy').click(function() {
jQnotice('Message..! - here i want to ad a url ex. "link go to shop" ');
});
});
</code></pre>
| javascript jquery | [3, 5] |
1,970,322 | 1,970,323 | jquery remove all child elements and leave text | <p>Whats the best way to remove all child elements from a div but leave any text that is directly inside the div in jquery.</p>
<p>I have tried .childre().remove() but this is adding loads of whitespace in firefox and opera. Works fine in ie though.</p>
| javascript jquery | [3, 5] |
743,458 | 743,459 | Android - WebView reload on change tab | <p>Main activity:</p>
<pre><code> public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
Resources ressources = getResources();
TabHost tabHost = getTabHost();
Intent intentHome = new Intent().setClass(this, Home.class);
TabS... | java android | [1, 4] |
4,439,020 | 4,439,021 | RadTreeView OnClientNodeClicking corfirm | <p>I have problem confirming if node should be changed or not, with jConfirm.</p>
<p>This is my js code:</p>
<pre><code>function OnClientNodeClicking(sender, args) {
var calcelTrue = confirm('Can you confirm this?')
if (calcelTrue == false)
{
args.set_cancel(tr... | c# javascript jquery | [0, 3, 5] |
3,882,202 | 3,882,203 | How to determine if it is day or night in javascript or jquery? | <p>Im wanting to apply different CSS sheets to my site depending on the time of the browser. e.g if its day time, display day.css or night.css for night.</p>
<p>I can do this with PHP but it is based on the server time, not the browsers local time.</p>
<p>Is there a way to tell the time in javascript? I'm probably go... | javascript jquery | [3, 5] |
2,483,103 | 2,483,104 | JavaScript getting strange error when using " ' " + var | <p>when I use the following line in the console (FF & chrome)</p>
<pre><code>var stripID = "\'#strip_" + ID + "\'";
console.log(stripID);
</code></pre>
<p>I get what I wanted: <code>'#strip_126327'</code>
But when I put it in the JS file, and the function executing this, is triggered i get</p>
<pre><code>uncaugh... | javascript jquery | [3, 5] |
2,296,135 | 2,296,136 | How can i differentiate items in list in c# | <p>I have one listitem and i am adding this listitem to a list multiple times with one property difference...
i.e listitem have DateOfService property..k...
then i am adding first item to list... it's fine
and i am changing DateOfService property and adding again...
but the previous added item DateOfService also change... | c# asp.net | [0, 9] |
1,260,621 | 1,260,622 | Session not saved in android-PHP authentification | <p>I am trying to use a authentification process in android based in a database and some PHP script. When I do the login:</p>
<pre><code>...
setOnline($username);
session_start();
$_SESSION['user']=$username;
...
</code></pre>
<p>if I print the $_SESSION variable it seems to be correctly saved but when I change the a... | php android | [2, 4] |
1,065,829 | 1,065,830 | what is the operator be overloading here : String8::operator const char*() const | <p>I know it is used to get the containing c string ,similar to <code>std::string.c_str().</code> But how should I use the operator? </p>
<pre><code>//android/frameworks/base/include/utils/String8.h
458 inline String8::operator const char*() const
459 {
460 return mString;
461 }
</code></pre>
| c++ android | [6, 4] |
1,274,065 | 1,274,066 | ASP.NET Sitemap .ResourceKey property is null | <p>I'm using standard ASP.NET and a Web.sitemap file which describes the navigation structure of the site.
Now, I want to use my resourceKey attribute as a page identifier in my code, so I can perform eg. authorization checks and similar.</p>
<p>Problem is it's always null, for example when retrieving SiteMap.CurrentN... | c# asp.net | [0, 9] |
4,616,042 | 4,616,043 | jQuery form validation - Check if emails are the same | <p>I am trying to create a jQuery form validator for my website.</p>
<p>My code is in <a href="http://jsfiddle.net/EPu3D/2/" rel="nofollow">this fiddle</a>.</p>
<p>The question is, what do I need to do, so that I can check if the email is the same as the email confirmation when both fields have valid email addresses?... | javascript jquery | [3, 5] |
5,854,448 | 5,854,449 | allowing input only for float number | <p>I have pain-time when making input that only allows float number with jquery library. my code can't prevent chacacter "." when it's becoming first input, can anyone guide me to solve this problem? </p>
<pre><code>$('.filterme').keypress(function(eve) {
if ( ( eve.which != 46 || $(this).val().indexOf('.') != -... | javascript jquery | [3, 5] |
3,102,769 | 3,102,770 | Call an ASP.NET function from javascript with a client side parameter | <p>Actually the code is self-explanatory.. I am trying to assign a javascript variable the falue of a form element, which needs to be formatted by a function on the server..</p>
<p>the below code does not work. it does not get the form element but rather assumes $('#formvalue').val() is the string I am passing in..</p... | javascript jquery asp.net | [3, 5, 9] |
2,836,141 | 2,836,142 | jQuery $() constructor and strings with a leading backslash | <p>Please, take a look at this code: <a href="http://jsfiddle.net/Bkdgr/1/" rel="nofollow">http://jsfiddle.net/Bkdgr/1/</a>
<br>It does not work. However, either of the following two modifications makes it work correctly: <br>
<br>
Passing the pure <code>newItem</code> string in <code>append</code>, instead of wrapping... | javascript jquery | [3, 5] |
1,013,039 | 1,013,040 | Ajax upload file error with Google Chrome? | <p>I'm using noswfupload (ajax uploader) with my web application, and it work fine with Firefox and IE, but it's not working with Google Chrome. I found an error which show that "PHP Warning: Missing boundary in multipart/form-data POST data in Unknown on line 0"</p>
<p>could anyone tell me how to solve this problem?... | php javascript | [2, 3] |
1,841,986 | 1,841,987 | Event not getting fired in code behind | <pre><code>PnlImages.Controls.Add(new LiteralControl(" <img id=\"img\" class=\"content\" src=\"" + url + "\" runat=\"server\" name=\"img\" onclick=\"return onClick(this);\" />"));
public void onClick(object sender)
{
}
</code></pre>
<p>debugger is not firing instead giving error "object expected".<br>
Please... | c# javascript | [0, 3] |
363,890 | 363,891 | Auto link specific words and phrases | <p>Can I use jQuery, another library or standard javascript to list a series of words and phrases that I would like to be auto linked?</p>
<p>For example:</p>
<p>Word / phrase 1: link to www.something.com <br/>
Word / phrase 2: link to www.somethingelse.com <br/>
Word / phrase 3: link to www.anotherlink.org</p>
<p>A... | javascript jquery | [3, 5] |
618,217 | 618,218 | Label won't show when label hidden via page load | <p>The desired effect is that on page load the label does not display but when the user clicks the check box the label displays. This small code sample is just a sample to illustrate the issue. The code will always return an object reference exception from javascript when the Visible property of the label is set to f... | javascript asp.net | [3, 9] |
2,780,316 | 2,780,317 | Thread Error needs to be found | <p>I am placing a code below, I have created a local Thread and getting Error at the last Closing Braces, Can anybody please sort it out for me. </p>
<pre><code>Thread dt = new Thread(this){
public void run()
{
Looper.prepare();
GetCurrentLocation loc = new GetCurrentLocation(RestaurantFinder.this... | java android | [1, 4] |
4,896,346 | 4,896,347 | What is the rule? when do i use $(this) and when is "this" enough? | <p>I know that <code>$(this)</code> results in a jQuery object, but i often see (especieally in jQuery plugins) the use of <code>return this.whatever</code> what is the general rule?</p>
<p>Thanks</p>
| javascript jquery | [3, 5] |
791,244 | 791,245 | In Javascript (jquery), is there a way to detect when the page anchor changes? | <p>Basically, I want to have links throughout the page that change the anchor -- the part of the URL after a # symbol. When that part of the URL changes, the JavaScript should respond.</p>
<p>I could add an onclick method to every link, but is there a better way?</p>
| javascript jquery | [3, 5] |
1,111,050 | 1,111,051 | How to show X number of divs at a time in Javascript? | <p>Assuming I have an array of names:</p>
<pre><code>var myarray = ["A", "B", "C", "D", ... "J"]
</code></pre>
<p>Say if I have 10 entries in my array and I only want to show 3 at any given time. How do I make it such that each entry, if shown, is shown in a div of red color with a "Back" link and a "Next" link? When... | javascript jquery | [3, 5] |
1,899,121 | 1,899,122 | calling click event of a button serverside | <p>how can i click or load the click() event of a button in codebehind?<br>
i already treid</p>
<pre><code> btn.Click();
</code></pre>
<p>but this gives an error<br>
i am using asp.net</p>
| c# asp.net | [0, 9] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.