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,921,496 | 4,921,497 | Javascript Adding Two Fields Together for Tiggzi App | <p>I need some help putting together a line of javascript. I Am looking to add the values of two different fields and display them in a text area. The fields are "AP" and "MP" and the text are is "TotalCost".</p>
<p>I am not sure of how to make his happen at all. Please help!</p>
| javascript jquery | [3, 5] |
1,638,327 | 1,638,328 | the element id is not being accepted a function parameter? | <p>im trying to pass paramaters to a function i.e.</p>
<pre><code> animateDiv(div) {
.....
}
</code></pre>
<p>this function works, but when i try to pass parameters to it like this, it deosnt work i.e.</p>
<pre><code>$activeToggle.toggle("slow", function(){
$(this).find(".anime_yellow").each(function ... | javascript jquery | [3, 5] |
5,579,646 | 5,579,647 | How to convert byte array to string in Java (Android) | <p>I am converting byte array to String by:</p>
<pre><code>public static String byteArrayToString(byte[] bytes)
{
return new String(bytes);
}
</code></pre>
<p>But this approach is taking much time. Is there any efficient way to convert byte array to String?</p>
| java android | [1, 4] |
2,355,009 | 2,355,010 | checking input for morse code converter | <p>I want to check the input from the user to make sure that they only enter dots and dashes and any other letters or numbers will give back and error message. Also i wanted to allow the user to enter a space yet when i am converting how can i remove or ignore the white space?</p>
<pre><code>string permutations;
... | c# asp.net | [0, 9] |
645,334 | 645,335 | How to use WHILE in ASP.NET | <p>When retrieving 5 values using <code>LIMIT 0,5</code> and <code>WHILE</code> how to set these five values in five different ASP.NET text boxes? using the following code I am able to write as <code>Response.Write</code> but how to fix them in TextBox?</p>
<pre><code>OdbcCommand cmd = new OdbcCommand(
"Select nic... | c# asp.net | [0, 9] |
917,767 | 917,768 | Delaying while loop in AJAX success function | <p>Hi guys i have the following code </p>
<pre><code>$.ajax({
url: "http://localhost/twee/chat/getnumcom",
type: 'POST',
data: form_data,
success: function(html) {
var data = parseInt(html);
page = 20 * data ;
while ( counter < page ) {
$.get("htt... | javascript jquery | [3, 5] |
2,691,720 | 2,691,721 | What's the equivalent of getElementsByTagName in jquery | <p>What's the equivalent of <code>getElementsByTagName()</code> in jQuery? I just want to create a collection of elements in jquery so I can iterate through them and do something with each item...</p>
<p>Many thanks</p>
| javascript jquery | [3, 5] |
5,700,167 | 5,700,168 | USING windows control library in ASP.net | <p>I created a control library by adding refrence to office interop excel to do some excel automation in client.The control works fine in windows forms Now i need to add the control in asp.net can somebody tell how to do that.</p>
| c# asp.net | [0, 9] |
3,796,468 | 3,796,469 | JS: Increasing a selection with sibling nodes | <p>I am a bit stuck with this...</p>
<p>Let's say I've got the next HTML structure:</p>
<pre><code><div id="sourceText" class="cSourceText" contenteditable="true">
some text here
<br>
some more text here
<br>
</div>
</code></pre>
<p>Now, let's say that I have used the js <... | javascript jquery | [3, 5] |
3,975,551 | 3,975,552 | Setting a variable with keyup() | <p>I am trying to grab a credit card number on on input field with the keyup() method, but I am getting undefined when I type the variable name in the console. Yet as I type in the field the digits are being logged to the console. </p>
<pre><code>$('#authorizenet_cc_number').keyup(function(){
var ccNum = $('#... | javascript jquery | [3, 5] |
4,690,072 | 4,690,073 | Open an uploaded PDF file in new browser window/tab | <p>In my current project, I need to open a PDF file which has been uploaded by the user. I have a file upload control and an Upload button on my aspx page. As soon as user clicks on Upload button, the file should be saved and opened in a new window.</p>
<p>I tried doing this using client-side function:</p>
<pre><code... | c# asp.net | [0, 9] |
1,892,632 | 1,892,633 | Javascript object array comparison | <p>I have two array of objects in javascripts. Like <code>arr1[] = {emp1,emp2,emp3}</code> where inturn <code>emp1</code> has <code>emp1.name</code> and <code>emp1.address</code> as property. </p>
<p>Something like </p>
<pre><code>arr1={object {name='a',address='b'} {name='c',address='d'} {name='e',address='f'} }.
... | javascript jquery | [3, 5] |
4,842,392 | 4,842,393 | create buttons dynamically to call method and pass in parameter | <p>I have a dictionary with a key value pair and need to loop through the pairs and create a button for each one and wire up the button to call a method DisplayDocument(string Id) and pass in the Key as a parameter.</p>
<p>Here's what I have so far.</p>
<pre><code> // test data
var documents= new Dicti... | c# asp.net | [0, 9] |
3,574,149 | 3,574,150 | check if username/email is already exist using javascript | <p>i have a simple question.</p>
<p>how can i check if the username or email they entered is already exist..</p>
<p>i have this code,</p>
<pre><code> if(document.RegForm.user.value =="")
{
alert("User Name Please?");
valid=false;
}
</code></pre>
<p>that's my code for username,... | php javascript | [2, 3] |
3,907,462 | 3,907,463 | How do I prevent adding same event in Asp.net page? | <p>I have been write code in Page_Load function like this</p>
<pre><code>protected void Page_Load(object sender, EventArgs e)
{
if(!IsPostBack)
{
UserControl1.Button_Clicked += new EventHandler(UserControl1_Button_Clicked);
}
}
</code></pre>
<p>But the same function will be added again when the pa... | c# asp.net | [0, 9] |
5,951,933 | 5,951,934 | How to add jQuery objects to the jQuery composite object | <p>Simply put: the jQuery object is a composite pattern. How do I add jQuery objects to it?</p>
<p>An example:</p>
<pre><code>var e1 = $('#element1');
var e2 = $('#element2');
</code></pre>
<p>...</p>
<p>I know want to create a new jQuery object jq such that it is composed of e1 and e2. I want to be able to do some... | javascript jquery | [3, 5] |
5,502,144 | 5,502,145 | How can I wrap just a part of an element’s content using jQuery? | <p>how can I wrap a part of a content when I have elements and normal text? I've tried <code>.after()</code> but this automaticaly adds a closing tag.</p>
<p>I have got this:</p>
<pre><code><div class="block">
<a href="#">example 1</a>
.
<a href="#">example 1</a>
.
&l... | javascript jquery | [3, 5] |
1,014,106 | 1,014,107 | How to redirect an URL to a parent iframe | <p>Im trying to redirect an user of my page when I ban him from my chat box using this (php):</p>
<pre><code>header("location: index.php");
exit;
</code></pre>
<p>The problem is the <strong>index.php</strong> page is opening inside the connected users section, in this case inside a <code>div</code>. How can i redirec... | php javascript | [2, 3] |
429,394 | 429,395 | JQuery ready event and its shortcut | <p>In most of the videos, I see expert JQuery developers writing complete code for the <code>ready</code> event eg:</p>
<pre><code>$(document).ready(function(){
//.....
});
</code></pre>
<p>rather than its shortcut:</p>
<pre><code>$(function(){
//.....
});
</code></pre>
<p>Is there any particular down side to u... | javascript jquery | [3, 5] |
1,145,818 | 1,145,819 | Email anti spam PHP | <p>I have a contact form with no sort of spam protection on my site and im receiving lots of spam, I'm going to add anti spam protection, I know i can do this with PHP, but if I stopped the form from validation if an anti spam question was wrong using jQuery, would this be sufficient? or do spam bots bypass javascript ... | php javascript jquery | [2, 3, 5] |
4,515,950 | 4,515,951 | Jeditable not working in IE, but works in FF, Chrome | <p>I have a table made of:</p>
<pre><code><td class='editable' id='<?=data['id']?>' col='<?=data['col_name']?>'>Content</td>
</code></pre>
<p><code>$data</code> is the <code>mysql_fetch_assoc</code> of the <code>$query</code>, when I click on <code><td></code>, the jeditable plugin activ... | php jquery | [2, 5] |
209,434 | 209,435 | encode url in javascript like UrlEncode method of asp.net does | <p>i have a requirement to encode the url in javascript and in redirected page i can't use javascript so i must decode the url back in code. so i needs a javascript encode method which encodes url like URLEncode method of asp.net so that i can decode it in code with UrlDecode method</p>
| javascript asp.net | [3, 9] |
2,870,575 | 2,870,576 | ASP.Net search subdirectory | <p>How do I search a sub directory in my ASP.Net web site?</p>
<p>I know if this was a regular Winform project, I could easily get it by the following:</p>
<pre><code>Environment.CurrentDirectory
</code></pre>
<p>or</p>
<pre><code>System.IO.Directory.GetCurrentDirectory()
</code></pre>
<p>then</p>
<pre><code>stri... | c# asp.net | [0, 9] |
2,079,502 | 2,079,503 | how to compile and run java code in php for my site | <p>i am developing a site in which a client has a option to write a code in java. This code can be sent to server (local PC) for compilation. I used exec function of PHP but it didn't work for me. Can someone suggest me a better approach? Thanks in advance.</p>
| java php | [1, 2] |
1,662,325 | 1,662,326 | jQuery - programming style - many bindings vs. conditional single one | <p>I frequently see code like that:</p>
<pre><code>$("#foo").live("mouseover mouseout", function(e) {
if (e.type == "mouseover") {
$("#foo").append("<div id='bar'>");
} else {
$("#bar").remove();
}
});
</code></pre>
<p>instead of more self-explanatory in my opinion:</p>
<pre><code>$... | javascript jquery | [3, 5] |
3,002,473 | 3,002,474 | javascript setTimeout function does not work | <p>I am trying to update a variable every one second. For that reason I am using setTimeout. But it does not update the variable. It logs out 0 just once. Here is my code</p>
<pre><code>var yes=0;
setTimeout(function () {
console.log(yes);
yes++;
}, 1000);
</code></pre>
| javascript jquery | [3, 5] |
5,655,585 | 5,655,586 | Find this something and replace what comes after it | <p>Basically I want PHP to open a config file, search for a string and replace what comes after
The problem that I have in the code that I have created is that it finds the string <code>$db_pass =</code> and is able to replace it... but then in the file there is an extra <code>"password");</code> line... so i need i... | php jquery | [2, 5] |
3,571,372 | 3,571,373 | jQuery .not() function, not working | <pre><code>$(".navigation a").not(".navigation ul ul a").hover(function(){
// Not working.
});
</code></pre>
<p>For some reason, ALL <code><a></code> elements inside <code>.navigation</code> still get the hover function assigned to it.</p>
<p>I only want the elements that are not inside <code>ul ul</code>... | javascript jquery | [3, 5] |
3,619,325 | 3,619,326 | Function that dropdowns list of option in "select" element | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/249192/how-can-you-programmatically-tell-an-html-select-to-drop-down-for-example-due">How can you programmatically tell an HTML SELECT to drop down (for example, due to mouseover)?</a><br>
<a href="http://stackove... | javascript jquery | [3, 5] |
2,636,864 | 2,636,865 | Does PHP support conjunction and disjunction natively? | <p>Javascript employs the conjunction and disjunction operators.</p>
<p><em>The left–operand is returned if it can be evaluated as: false, in the case of conjunction (a && b), or true, in the case of disjunction (a || b); otherwise the right–operand is returned.</em></p>
<p>Do equivalent operators exist in PH... | php javascript | [2, 3] |
4,505,593 | 4,505,594 | Get tooltip to work on my actual jquery libraries | <p>I don't have JS skills and I want to implement tooltips to my forms.</p>
<p>Actually I could manage to make it works with one of the many released <a href="http://jquerytools.org/demos/tooltip/form.html" rel="nofollow">jQuery libraries (this one to be more specific)</a>.</p>
<p>Problem is that when I add those too... | javascript jquery | [3, 5] |
3,001,633 | 3,001,634 | How to check all checkboxes in a specific column javascript? | <p>Say I have a table with 3 columns, only the 1st and 3rd column of TDs have checkboxes. I have a button that says "SelectAllFirst" that puts a checkmark on all checkboxes in the first column only, the 3rd remains uncheked. How do I accomplish this?</p>
<p>I thought it would be something like this:</p>
<pre><code>$(... | javascript jquery | [3, 5] |
5,109,199 | 5,109,200 | div not loading in right place | <p>Hi im trying to load a div next to an link/button if clicked by unauthenticated users.</p>
<p>i have the following:</p>
<pre><code>$(function () {
$(".unauthenticated").click(function () {
ShowMessage($(this).attr("id"), "#unauthenticated-div")
});
function ShowMessage(clickedItemId, divId) {... | javascript jquery | [3, 5] |
5,327,561 | 5,327,562 | How to get the click event values outside the function in jQuery | <p>How can I get the onclick event (this value change when click on div) in jQuery?</p>
<pre><code>$("ul li").click(funtion(){
var v = $(this).val();
});
$(function(){
alert(v);
});
</code></pre>
| javascript jquery | [3, 5] |
1,825,982 | 1,825,983 | finding the location , temp , city , country and nearest places using server | <p>i am passing my lat ad logi value from the android to server. On the server side i am using php . Now i want to show some information regarding that values . </p>
<p>Information may contain </p>
<ol>
<li>Location name </li>
<li>temperature </li>
<li>city </li>
<li>country </li>
<li>Nearest places</li>
</ol>
<... | php android | [2, 4] |
2,159,719 | 2,159,720 | Create a stringToSlug() prototype function in javascript | <p>I have used the answers <a href="http://stackoverflow.com/questions/1053902/how-to-convert-a-title-to-a-url-slug-in-jquery">here</a> as an examples although I would prefer to write it like this: <code>value.stringToSlug()</code></p>
<p>So I have changed it to this:</p>
<pre><code>// String to slug
String.prototype... | javascript jquery | [3, 5] |
5,795,828 | 5,795,829 | Programmatically hit functional keys using jQuery | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/1468384/simulate-keypress-with-jquery">Simulate Keypress With jQuery</a><br>
<a href="http://stackoverflow.com/questions/6428242/why-trigger-f11-press-event-doesnt-work">Why trigger F11 press event doesn't wor... | javascript jquery | [3, 5] |
4,546,775 | 4,546,776 | Question regarding adding and overriding functions in existing plugin | <p>Below is my my plugin:</p>
<pre><code>(function($) {
$.fn.myPlugin = function(options) {
var opt = $.extend({}, $.fn.myPlugin.defaults, options);
this.foo()
{
alert('test');
}
}
$.fn.myPlugin.defaults = {
};
});
</code></pre>
<p>Now I want to extend it... | javascript jquery | [3, 5] |
2,213,885 | 2,213,886 | Float a div on a textarea? | <p><img src="http://i.stack.imgur.com/nVOKi.png" alt="enter image description here"></p>
<p>I have a div which has this list of suggestions. But i need to allocate it at the caret position of the textarea. Is this possible if yes, help me to do it.</p>
<pre><code>function findOffsetPosition(obj) {
var posX = obj.... | javascript jquery | [3, 5] |
4,099,294 | 4,099,295 | what is the Best way to learn object oriented principles | <p>I am interesed in OOP principles and i found lots of documentations and books about it, for instance in C++, Java, .NET, PHP and so on, but if i only want to learn OOP principle, differences and not in language, what can i do? i want a good documentation, not just like a whole book about something except OOP :) spec... | php c++ | [2, 6] |
3,693,742 | 3,693,743 | How to align button by vertically in div using JQuery/CSS? | <p>There is the following code:</p>
<h3>HTML:</h3>
<pre><code><table>
<tr>
<td class="first_column">Sign in</td>
<td class="second_column">->(1)</td>
<td class="third_column"><div class="translated">Some text</div></td>
<... | javascript jquery | [3, 5] |
5,498,631 | 5,498,632 | How to change a colour of a word in jquery | <p>How would i be able to select a word and change the colour of that one word?</p>
<p>e.g. add a span with style and chage the font colour.</p>
<p>Can someone lead me down the right path please.</p>
<p><strong>Jquery</strong></p>
<pre><code> function edit_addon (div_id) {
$("#"+div_id).attr ('contentEdita... | javascript jquery | [3, 5] |
3,787,556 | 3,787,557 | How can I pass an argument from a web page that is loaded inside a web browser applet in a C# program, back to the C# application? | <p>This is a probably a dumb question but here is what I've got.</p>
<p>A web developer has a secure login page that after a user logs into it, a database reference is made and it grants rights to a particular PDF file on our network. There is desire to have a custom locally designed application used to present that ... | c# php javascript c++ | [0, 2, 3, 6] |
1,810,921 | 1,810,922 | Is there any editor like jsfiddle available for local machine | <p>Is there an editor that works like <a href="http://jsfiddle.net/">jsfiddle</a> on my local machine, without having to be connected to the internet.</p>
| javascript jquery | [3, 5] |
4,784,876 | 4,784,877 | DateTime series of Years months weeks and mins ago | <p>I don't know quite exatly what im doing in my example but what i need my function to return is a string that is represented like this </p>
<pre><code>1yr, 2 months or
1yr or
2months or
2months 2weeks or
3mins ago
</code></pre>
<p>if someone knows how todo this then please leave a answer</p>
<pre><code>private str... | c# asp.net | [0, 9] |
5,869,288 | 5,869,289 | Null Pointer Exception while using putExtra and getExtras | <p>I'm trying to use putExtra and getExtras to pass some information in an android game I'm writing (it's a score). When I'm passing it, I use this code in the one class to put in the information:</p>
<pre><code>Intent winScreen = new Intent(context, WinScreen.class);
winScreen.putExtra("score", "123");
</code></pre>
... | java android | [1, 4] |
4,308,563 | 4,308,564 | multiple button determine which is clicked | <p>I have multiple buttons in a form (all are type 'submit'). I would like to determine which one of them is clicked. I am currently using:</p>
<pre><code>$(".MyForm").click(function() {
...
}
</code></pre>
<p>to get values from my form. Any help is greatly appreciated.</p>
| javascript jquery | [3, 5] |
3,521,178 | 3,521,179 | $(document.width).bind(onchange,...)? | <p>Will this work? </p>
<p>The reason I ask is because I want to animate two elements that calculate their end location based on the width of the document. If the window or document size is changed I want to reset the animation. </p>
<p>Any suggestions or other methods that might work?</p>
| javascript jquery | [3, 5] |
5,361,190 | 5,361,191 | connect over ssl without certificate | <p>I'm trying to connect to my server over SSL port 443 without a certificate.</p>
<p>I'm getting an error thrown: </p>
<blockquote>
<p>javax.net.ssl.SSLException: Not trusted server certificate</p>
</blockquote>
<p>Reading other questions to solve the problem, the following code should work, but I'm still getting... | java android | [1, 4] |
957,312 | 957,313 | Which needs to learn Android? | <p>In my opinion, if you want to learn android, you must know OS, Network, OPP and Design Pattern well, that 's enough, about you??</p>
| java android | [1, 4] |
1,971,025 | 1,971,026 | Pass C# ASP.NET array to Javascript array | <p>Does anyone know how to pass a C# ASP.NET array to a Javascript array? Sample code will also be nice.</p>
<p>Sorry if I was vague earlier guys. The question is actually quite simple. Let's say for simplicity that in my aspx.cs file I declare:</p>
<p><code>int [] numbers = new int[5];</code></p>
<p>now I want to p... | c# javascript asp.net | [0, 3, 9] |
2,233,537 | 2,233,538 | Form ID & Name in jQuery | <p>How to retrieve the Form ID & Name in jQuery?</p>
| javascript jquery | [3, 5] |
4,400,186 | 4,400,187 | Connecting online players | <p>I want to create a game that connects two players. The players have to login and then proceed to the playing page.</p>
<p>I have created the code for displaying the online players (from the activePlayer table). What I want is : the player chooses the opponent form the online players list and then the playing page d... | php javascript | [2, 3] |
3,635,950 | 3,635,951 | javascript OO question - specify private member function in c# object? | <p>I'm not sure how to achieve the following in javascript, or even if I'm thinking about it correctly. Basically I want to attach a javascript member function to each custom object rendered, so I could have something like this in C#:</p>
<pre><code>public class NumericTextBox : TextBox
{
...
string clientScri... | c# asp.net javascript | [0, 9, 3] |
2,409,448 | 2,409,449 | Dealing with static resources in dev/live environment ASP.NET MVC | <p>I am going to be serving my site files from a site like cdn.mysite.com and will consume them from site like www.mysite.com. In development I have web projects setup, 1 for CDN and 1 for the actual site (controllers, views, models).</p>
<p>What I would like to do is come up with the most elegant way to go from dev ... | javascript asp.net | [3, 9] |
2,578,566 | 2,578,567 | How to get text from the title attribute when <th> is clicked? | <p>If I have the following HTML:</p>
<pre><code><th title="Title Description">Blah</th>
</code></pre>
<p>How do I select text from the <code>title</code> attribute when I click on <code><th></code>?</p>
| javascript jquery | [3, 5] |
1,204,122 | 1,204,123 | best way to convert a div to image? using either php, javascript or jquery | <p>I have a div containing images like so:</p>
<pre><code><div id="Created_Design">
<img src="images/image1.png" style="position: absolute; left: 8px; top: 172px;">
<img src="images/image2.png" style="position: absolute; left: 20px; top: 144px">
</div>
</code></pre>
<p>I want to export thi... | php javascript jquery | [2, 3, 5] |
3,910,225 | 3,910,226 | Java executes 'catch' block with no error, and somehow still runs 'try' block | <p>I have a problem with the following code. First, I am a newbie to Java with experience with several other languages.</p>
<p>When I run the following on Android, it errors at "in.close();", jumps to the catch block and runs Return ""; The thing is, the function doesn't return an empty string, it successfully returns... | java android | [1, 4] |
4,014,611 | 4,014,612 | nextUntil() jQuery selector | <p>why does it return an error?</p>
<p><a href="http://jsfiddle.net/L82JU/" rel="nofollow">http://jsfiddle.net/L82JU/</a></p>
<p>Uncaught TypeError: Object [object Object] has no method 'replace'</p>
<p>I want to select the first child of <code>.x</code> until the 3rd child of <code>.x</code></p>
<p>html</p>
<pre>... | javascript jquery | [3, 5] |
2,037,431 | 2,037,432 | Radiobuttonlist - Access Click/change using jquery and reading values (rbList values are bound using binding) | <p>I am trying to access the value of the radio button option selected by the user. The radio buttons in the radio button list are generated by binding using datasource</p>
<pre><code>radioButtonList.DataSource = data;
radioButtonList.DataBind();
</code></pre>
<p>Now I want to check the value of the selected radio b... | c# jquery asp.net | [0, 5, 9] |
2,373,169 | 2,373,170 | Have jquery filter inside live event | <p>Hi I have this following code with jquery , so it will alternate colors on each row of a table:</p>
<pre><code> $("tr").filter(':nth-child(2n+1)').addClass('odd').next().addClass('even');
</code></pre>
<p>but unfortunately it doesnt work when the table comes from an ajax call .. is there a way to put this into ... | javascript jquery | [3, 5] |
4,024,216 | 4,024,217 | How to clear all JQuery in progress | <p>I have written a JQuery program that, on the press of a button, runs a dozen or so setTimeout's as well as a few animations. The program operates on existing div's, changes their HTML (using id selectors), fades in, fades out, etc...</p>
<p>The entire process can take up to 15 seconds. The problem is that if the bu... | javascript jquery | [3, 5] |
1,131,971 | 1,131,972 | Organising code that includes php and javascript files | <p>I have a website where I am including a php library file and a javascript library file. I have condensed the problem to the following files:</p>
<p><strong>index.php</strong></p>
<pre><code><?php
include('constants.php');
?>
<html>
<head>
<script type="text/javascript" src="lib.js">... | php javascript | [2, 3] |
1,361,203 | 1,361,204 | ASP vs PHP compiliation | <p>I am starting a major project and will be hiring developers soon. Right now im trying to decide between ASP.net and PHP and leaning strongly towards asp as most of the desktop apps will be written in C#</p>
<p>About 50% of this project will be coded into a web system. My question is about how i could secure the cod... | php asp.net | [2, 9] |
495,078 | 495,079 | How to clear the gesture in android? | <p>I have a gestureview and i can draw anything in it, but when i want to put another drawing I need to clear the gesture on that activity. I used a clear button, but I cant figure out the exact method to do it.</p>
| java android | [1, 4] |
5,861,745 | 5,861,746 | Runing a cpp binary on php could speed up my code? | <p>I'm a php developer as well as cpp developer. I was wondering: if I make a cpp binary and I run it on php. Will that make my process run faster?</p>
<p>For example: </p>
<p>I have to compare 1,000 array elements and execute a process for each of them and in some cases I had to run it over and over again ( recursiv... | php c++ | [2, 6] |
845,744 | 845,745 | Pass variable (to Ajax) that results from Js function but PHP gets it as 'NULL' | <p>This function correctly checks if the iput string is already in use by comparing it to data picked up by PHP from the databese. My problem is that when I pass this variable via Ajax it returns 'NULL' but when I pass other variables they are sent correctly, so the ajax function is working. Maybe something in my funct... | php javascript | [2, 3] |
4,370,397 | 4,370,398 | Getting the offset height of a div using javascript | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/11500253/accessing-the-height-of-div-in-javascript">Accessing the height of div in javascript</a> </p>
</blockquote>
<p>We're trying to alter <a href="http://www.marghoobsuleman.com/jquery-image-dropdown" rel="n... | javascript jquery | [3, 5] |
4,028,568 | 4,028,569 | How to trigger server-side event from javascript? | <p>How can I trigger a server control event from a client-side JavaScript?</p>
| javascript asp.net | [3, 9] |
3,603,944 | 3,603,945 | User scalable iframe on iPhone | <p>I have a web site that is designed to work best with mobile device browsers (iPhone, Android, and Blackberry). The default page of the site uses the following meta key to prevent the user from scaling the page using pinch gestures:</p>
<pre><code><meta name="viewport" content="width=device-width,height=device-he... | iphone android | [8, 4] |
3,828,204 | 3,828,205 | .load() jQuery with div selector causing <script> to be overlooked | <p>so I am trying to load in content with ajax jQuery and here is my script:</p>
<pre><code>$('#ajaxloadcontent').load(url+' #ajaxloadcontent');
</code></pre>
<p>I've done some research and learned that when a specific selector is used for a .load() function, #ajaxloadcontent, that s on that page that is being loaded... | javascript jquery | [3, 5] |
1,259,761 | 1,259,762 | how to open a file using anchor tags from local file system in asp.net | <p>This function is fetching all the files from the specified directory and showing them as links on the webpage. but on clicking the link, browser is not opening the page, instead showing - " Server Error in '/fileUpload' Application. HTTP ERROR 400 - bad request"
I have tried all the possible combinations and ways fo... | c# asp.net | [0, 9] |
5,737 | 5,738 | How to find index of an object by key and value in an javascript array | <p><strong>Given:</strong></p>
<pre><code>var peoples = [
{ "attr1": "bob", "attr2": "pizza" },
{ "attr1": "john", "attr2": "sushi" },
{ "attr1": "larry", "attr2": "hummus" }
];
</code></pre>
<p><strong>Wanted:</strong></p>
<p>Index of object where <code>attr === value</code> for example <code>attr1 === "john... | javascript jquery | [3, 5] |
1,756,704 | 1,756,705 | Android viewflow validation | <p>Currently I have a few forms using this horizontal sliding view.</p>
<p><a href="https://github.com/pakerfeldt/android-viewflow" rel="nofollow">https://github.com/pakerfeldt/android-viewflow</a></p>
<p>Is their a way to prevent the user from sliding to the next screen when the form is filled in incorrectly? e.g. d... | java android | [1, 4] |
953,548 | 953,549 | Autoclick html button from Java in Android | <p>I am writing an App in Eclipse for Android. The App constantly communicates with contents in a Web Server. In the Server, I have a html file which has another button. I wish that When I press the button in my Android App, the button in the html file is autoclicked..Is it possible. Please suggest.. </p>
<p>I see tha... | java android jquery | [1, 4, 5] |
2,963,201 | 2,963,202 | Show loading while document is not ready | <p>I want to show the user that the document which he wants to access
is loading and not ready yet.</p>
<p>I want to show the web-page when it is fully loaded.</p>
<p>I use </p>
<pre><code>$(document).ready(function(){});
</code></pre>
<p>for document ready. What should I do for my approach?</p>
| javascript jquery | [3, 5] |
3,844,615 | 3,844,616 | Finger touch/press/drag | <p>I know that there are listeners for finger touch etc.. but I wonder how I can decet a finger drag up/down/left/right.</p>
<p>Is there any kind of listener for that?or it's some math involved.</p>
| java android | [1, 4] |
1,221,829 | 1,221,830 | jQuery delay: Speeding up queue? | <p>I have a slideshow which basically changes the src attribute of an image and fading it in and out.</p>
<pre><code>function startSlideshow() {
if (i >= images.length) { i = 0 }
var path = images[i].path;
var name = images[i].name;
i++;
image.attr('src', path)
image.animate({opacity:1}, ... | javascript jquery | [3, 5] |
4,101,358 | 4,101,359 | Why doesn't my event fire the first time? | <pre><code>$(document).ready(function () {
$('.raj').click(function () {
if (!$(this).hasClass('already')) {
$('.infos').html('');
$('.infos').hide("fast");
$.ajax({
type: "POST",
dataType: "json",
url: "ggg/hhh/rrr.php",... | javascript jquery | [3, 5] |
3,110,705 | 3,110,706 | let user scrolling stop jquery animation of scrolltop? | <p>I want to make it so that a webpage automatically scrolls to a certain element, however I don't want the scrolling to fight user input-- If it begins to scroll and then the user scrolls, I want the automated scrolling to stop and let the user have full control.</p>
<p>So I originally thought I could do something l... | javascript jquery | [3, 5] |
3,152,337 | 3,152,338 | regex for email validation Not Working with Subdomains? | <p>I'm using the following for email validation:</p>
<pre><code>var filter = /^([\w]+)(.[\w]+)*@([\w]+)(.[\w]{2,3}){1,2}$/; // For Email Validation
if (filter.test(emailInputVal))) {console.log('good')}
</code></pre>
<p>For some reason the above does not work with emails that have a subdomain Any ideas why?</p>
<pr... | javascript jquery | [3, 5] |
587,681 | 587,682 | .NET, ASHX, "Server cannot append header after HTTP headers have been sent" after sending PDF Streem | <p>I visit my ASHX file, and it outputs a PDF perfectly. If I visit the very same ASHX with a different query string (I append DateTime.Now.Ticks to the end each visit), and I get this error:</p>
<p>Server cannot append hader after HTTP headers have been sent.</p>
<p>My code is below:</p>
<pre><code>copy.CloseStrea... | c# asp.net | [0, 9] |
3,077,475 | 3,077,476 | jQuery: Data on dynamic div's | <p>In jQuery, I'm creating several div elements within a class:</p>
<pre><code>function class([..])
{
this.par1 = par1
[..]
// Create div
$div = $('<div></div>')
$div.attr({
'id': 'someid' + this.par1,
[..]
})
// Assign data to $div
$div.data['par1'] = this.par1
$div.data['this'... | javascript jquery | [3, 5] |
2,077,577 | 2,077,578 | Viewing PDF files without calling the installed pdf reader applications | <p>I'm developing an android application which needs to read the pdf files without calling other installed applications( using Intent.ACTION_VIEW). I searched a lot about this on internet and then i downloaded one <strong>PdfViewer.jar</strong> file. After using it in my project i found that it is a bit slow to load th... | java android | [1, 4] |
5,371,043 | 5,371,044 | Coding in Python | <p>What is equivalent code in Python for this C++ code:</p>
<pre><code>int T , i , a , b ;
scanf( "%d" , &T ) ;
for( i = 1 ; i <= T ; i++ ) {
scanf( "%d %d" , &a , &b ) ;
printf( "Case %d : %d\n " , i , a + b ) ;
}
</code></pre>
<p>Input:</p>
<pre><code>2
1 7
9 8
</code></pre>
<p>Output:</p>... | c++ python | [6, 7] |
191,971 | 191,972 | What is the difference between $(document).ready(function() and $(function() ? | <p>So I know what this does:</p>
<pre><code>$(document).ready(function(){
// Your code here...
});
</code></pre>
<p>Now I have seen people doing this lately:</p>
<pre><code><script type="text/javascript">
$(function(){
// Your code here...
});
</script>
</code></pre>
<p>Are these two ways o... | javascript jquery | [3, 5] |
4,636,645 | 4,636,646 | Employee Activity Monitoring Software? | <blockquote>
<p>Right now I am working on EAMS (Employee Activity Monitoring
Software), Includes following structure. Server (Monitor) -Client
(nth) number</p>
<p>Every client have some sort of services to be installed that will
fetch his screen and browsing data and send to server using some port;
Same... | java php asp.net | [1, 2, 9] |
2,136,096 | 2,136,097 | Change site content based on a time | <p>Want to Change my site content once a week at midnight, how can I schedule that with javascript/jquery?</p>
| javascript jquery | [3, 5] |
3,802,785 | 3,802,786 | "jumpy" jquery image slider navigation | <p>I’m using a jquery image slider/plugin where the thumbnails act as navigation. I have noticed that they are very “jumpy” in that when I first hover over an image the entire selection moves back and forth. Also when I move my cursor away from the thumbnails they do the same. Any ideas how to prevent/minimize this?</p... | javascript jquery | [3, 5] |
5,710,365 | 5,710,366 | Passing parameter via quertystring | <p>I want to pass 3 parameters to ashx file to handle the image, for that i used <code>ImageUrl=ImageHandler.ashx?uid=1&iid=1&pid=1</code> but the image get not bound..</p>
<p>Help with correct syntax..</p>
| c# asp.net | [0, 9] |
5,290,992 | 5,290,993 | In JQuery how do I get the DIV that the mouseover/mouseenter came from? | <p>I need to get the div that the mouse was previously on before it entered the element.</p>
<p>How do I get this in JQuery?</p>
| javascript jquery | [3, 5] |
561,313 | 561,314 | How to pass the value of an option field as well as an input box via post in jquery/PHP? | <p>I have a search bar like</p>
<pre><code><div id="searchbar">
<form>
<select name="Cars">
<option value="big">Big Cars</option>
<option value="small">Small Cars</option>
</select>
<input type ='text' name="searchkey" id ="search" onblur ='setTimeout('removeSearchSug... | php javascript jquery | [2, 3, 5] |
5,970,614 | 5,970,615 | jquery selection method | <pre><code> <script>
$("*", document.body).each(function () {//is document.body a context?
var parentTag = $(this).parent().get(0).tagName;
//Above statement is only selecting the body tag why?
$(this).prepend(document.createTextNode(parentTag + " >... | javascript jquery | [3, 5] |
4,537,911 | 4,537,912 | Remove a particular item from a list which is in a session | <pre><code>List<ShoppingCartView> removeitem = (List<ShoppingCartView>)Session["ShoppingView"];
</code></pre>
<p>I want to remove a row on clicking that particular product. For example if I click on product xxx and want to remove the product xxx from Session["ShoppingView"], the rest of the list should rem... | c# asp.net | [0, 9] |
5,997,056 | 5,997,057 | change image path for upload control dynamically | <p>I am working in ASP.NET and C#.</p>
<p>I have an <code>Fileupload</code> control in my application. I want to change the storage path (on the hard disk) of the image during the upload. How do I go about it.</p>
<p>C# code:</p>
<pre><code> string filename = Path.GetFileName(fileuploadimages.PostedFile.FileName... | c# asp.net | [0, 9] |
5,762,737 | 5,762,738 | Read Microsoft Excel data without using OLEDB provider? | <p>I have Excel file with header and few data ,i have to read Excel file without using oledb provider because i need to install oledb provider on server so i don't have a permission. Is there any alternative solution.</p>
<p>is it possible to read excel file using pure .net framework? if possible then what are the way... | c# asp.net | [0, 9] |
3,978,995 | 3,978,996 | php request input text populated by jquery $.post | <p>I have a form where there are some inputs text that are populated by a jquery $.post function, when I request the values, I don't get nothing.</p>
<p>Inputs are between <code><form></code> and <code></form></code>. <br/>
I'm doing a simply <code>$_REQUEST['nameOfInput']</code> that will give its value.<... | php jquery | [2, 5] |
3,204,742 | 3,204,743 | Input only with correct numeric | <p>i wanted to ask how i can combine my regex with the if( ( !regex.test( sybol.... condition, if there is a possibility, and also, how I can shorten my code? without loosing good code view. <strong>Also, dash can be only in first place and only one in input, and the same with dot.</strong></p>
<pre><code>$( this ).b... | javascript jquery | [3, 5] |
280,512 | 280,513 | How to convert byte array to string in Java (Android) | <p>I am converting byte array to String by:</p>
<pre><code>public static String byteArrayToString(byte[] bytes)
{
return new String(bytes);
}
</code></pre>
<p>But this approach is taking much time. Is there any efficient way to convert byte array to String?</p>
| java android | [1, 4] |
645,036 | 645,037 | How to detect browser? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/1895727/how-can-i-detect-the-browser-with-php-or-javascript">How can I detect the browser with PHP or JavaScript?</a> </p>
</blockquote>
<p>I need to show different information in different browser ( Internet Ex... | php javascript | [2, 3] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.