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 |
|---|---|---|---|---|---|
2,191,570 | 2,191,571 | Running queries, good design here? | <p>Sorry for posting so many nubbin questions on ASP.net, I'm getting the hang of it slowly.</p>
<p>I execute queries on my pages as such (working):</p>
<pre><code><%@ Import Namespace="System.Data" %>
<%@ Import Namespace="System.Data.SqlClient" %>
<script runat="server">
// When the registrat... | c# asp.net | [0, 9] |
3,482,441 | 3,482,442 | call javascript alert from java class | <p>How to call javascript alert from java class</p>
| java javascript | [1, 3] |
1,978,545 | 1,978,546 | using single quote or double quote | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/242813/when-to-use-double-or-single-quotes-in-javascript">When to Use Double or Single Quotes in JavaScript</a><br>
<a href="http://stackoverflow.com/questions/3149192/difference-between-single-quotes-and-double-q... | javascript jquery | [3, 5] |
558,950 | 558,951 | issue with sort data | <p>i am developing an app in which i get data from server and display in map. but before display it on map's balloon i have just sort data by one field name is "Destination" and there are method made na,e is ..GOTOSORT.... </p>
<p>now problem is i got variables <code>s</code> with length 1 and there for the for loop a... | java android | [1, 4] |
4,933,684 | 4,933,685 | Why is "this.var" less efficient than "array.length"? | <p>When I watched the "<a href="http://sites.google.com/site/io/dalvik-vm-internals/" rel="nofollow">Dalvik VM Internals</a>" talk, I had a question about one of the slides about wise loops. Here is two of the seven loops on that slide:</p>
<p>(4) for (int i = 0; i < array.length; i++)</p>
<p>(5) for (int i = 0; i... | java android | [1, 4] |
5,539,682 | 5,539,683 | equivalent of php's returning References in javascript | <p>Is there a way to accomplish the same thing as <a href="http://fr.php.net/references.return" rel="nofollow">returning references</a> in php using javascript ?</p>
<p>for example suppose i want to use a function to find to which variable a reference should be bound, in php i can use an ampersand before a function , ... | php javascript | [2, 3] |
2,206,365 | 2,206,366 | Show a set number of <li>s and then hide them to reveal another set number of <li>s | <p>I am trying to create a carousel, using floated list items.</p>
<p>When <em>Next</em> is pressed the current 4 visible <code>li</code>s are hidden and the next 4 shown for as many times as needed. Though, there may not always be another 4 to show, as in the case below there would only be 2 more to display.</p>
<p>... | javascript jquery | [3, 5] |
2,778,993 | 2,778,994 | javascript error when using google maps ASP.NET GoogleMaps User Control | <p>when i try to run the google maps on an asp .net page i get a javascript error saying that it doesnt like the key im using but i have the key from google</p>
<p>can anyone help please?</p>
<p>thanks</p>
<p>Kevin</p>
<p>edit this is the key that google provided ABQIAAAAcPBSoXRloZCu5tYnhpZBCBRrxSVjvAJ3kkmtcIQSxWeY... | c# asp.net javascript | [0, 9, 3] |
5,966,866 | 5,966,867 | Reading line from website | <p>I am making a little program thath will read data from website. String in the html file is already managed every info is divided with ; . Now i should read complete line here is example of this line:</p>
<pre><code>14:47;24.02.12;18.7°C;18.7°C;285;0.5m/s; 6:48;17:37; Warm ;36;1.8;0.0;
</code></pre>
<p>So first how... | java android | [1, 4] |
3,864,472 | 3,864,473 | replace a fragment from fragment | <p>I have ActivityFragment with two Fragment
i can start a fragement from the ActivityFragment using :</p>
<pre><code>FragmentTransaction transaction = getSupportFragmentManager()
.beginTransaction();
transaction.add(R.id.center_layout, new MyFragment());
transaction.commit();
</code></pre>
<p>my prob... | java android | [1, 4] |
5,512,021 | 5,512,022 | Interfering jQuery scripts | <p>This DID work fine for a long time, then when i was tidying up some code today it stopped working and i can't see why...</p>
<p>This code currently works:</p>
<pre><code><script type="text/javascript" src="/sideswap/jquery.min.js"></script>
<script type="text/javascript" src="/sideswap/jquery.sidesw... | php javascript jquery | [2, 3, 5] |
1,838,253 | 1,838,254 | Can't find the ASP.net ListView control | <p>I want to extend the <code>ListView</code> control:</p>
<pre><code>using System;
using System.Data;
using System.Collections;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.ComponentModel;
using System.Resources;
using System.ComponentModel.Design;
using System.Globalization;
namespace My.WebCo... | c# asp.net | [0, 9] |
69,303 | 69,304 | Going from C# to php | <p>I'm going to have to learn php soon, because I need it for a new job. Up until now, i've always programmed in C#. Are there things I should know about php that are strange or different from a C# perspective? Things to look out for?</p>
| c# php | [0, 2] |
4,063,934 | 4,063,935 | How to access created enum in C# from code behind to aspx file | <p>Below is my code behind C# code:</p>
<pre><code>namespace Test
{
public enum en
{
One,
Two
}
}
</code></pre>
<p>How can I access this created enum in my aspx file? Like using the enum in this code:</p>
<pre><code><%
%>
</code></pre>
<p>Thanks</p>
| c# asp.net | [0, 9] |
3,692,178 | 3,692,179 | How do I prevent JQuery animate calls from getting queued up? | <p><strong>Background</strong></p>
<p>I am working on a project that relies heavily on JQuery .animate(), it occasionally receives external updates via Socket.io that call animate(). When the window is open, everything runs fine and animate calls can run asynchronously.</p>
<p><strong>Problem</strong></p>
<p>However... | javascript jquery | [3, 5] |
1,472,406 | 1,472,407 | How to know click (Ok or Cancel) event from print pop-up of web browser | <p>In my application I am printing some data through a pop-up window. On loading the pop-up, the user will be prompted for to either print or cancel. I want to know which button is clicked (print or cancel) so that I can take some action based on the button clicked. The code and screenshot are given below.</p>
<pre><c... | c# javascript | [0, 3] |
1,971,333 | 1,971,334 | GridView take a Row | <p>net 4 and c#.</p>
<p>I have a GridView, I would like take a Row when in Edit Mode in my code and find a control.</p>
<p>Here my code, but does not work, it takes only the first row for the GridView.</p>
<p>Any ideas?</p>
<pre><code>protected void uxManageSlotsDisplayer_RowDataBound(object sender, GridViewRowEven... | c# asp.net | [0, 9] |
1,460,635 | 1,460,636 | jquery select link by name | <p>i can reference link with specific id with following code</p>
<pre><code> $(document).ready(function(){
$("a#example_link_id").click(function(event){
var url = $(this).attr("href");
get_uid(url);
//event.preventDefault();
});
});
</code></pre>
<p>is it possible to use <... | javascript jquery | [3, 5] |
411,312 | 411,313 | Why statements after while loop is not getting executed? | <p>The problem for me nothing gets executed after while loop? what's the issue with that? (The lines after the end of while loop never gets executed)</p>
<pre><code>client = serverSocket.accept();
BufferedReader in = new BufferedReader(
new InputStreamReader(client.getInputStream())
);
whi... | java android | [1, 4] |
5,174,901 | 5,174,902 | How can I create a single Android application that can handle the different screen resolutions seen on Android devices? | <p>How can I create a single Android application that can handle the different screen resolutions seen on Android devices? I want my application to adapt to the different available resolutions.</p>
| java android | [1, 4] |
2,083,028 | 2,083,029 | Jquery .Stop() slowdown | <p><a href="http://jsfiddle.net/332tS/" rel="nofollow">http://jsfiddle.net/332tS/</a>
When Using ".stop()" in Jquery, is it possible to make it slow to a halt THEN continue? instead of stopping on the spot.</p>
| javascript jquery | [3, 5] |
5,716,855 | 5,716,856 | Prevent/stop auto anchor link from occurring | <p>I need to prevent the automatic scroll-to behavior in the browser when using link.html#idX and <div id="idX"/>.</p>
<p>The problem I am trying to solve is where I'm trying to do a custom scroll-to functionality on page load by detecting the anchor in the url, but so far have not been able to prevent the autom... | javascript jquery | [3, 5] |
2,567,547 | 2,567,548 | alert gives [object NodeList] | <p>I have a function in Javascript & jQuery .</p>
<pre><code>dynamic_link = $j('#dynamic_link_add_btn').parent().parent().parent().parent()
.children('tbody').html();
function add_tier (t,html_handle){
alert(html_handle);
$j(t).parent().parent().parent().parent()
.children('... | php javascript jquery | [2, 3, 5] |
769,491 | 769,492 | Storing String on array java | <p>I want to know if is it possible to Store a String variable on a String array?
I cant explain it well but here is what i do:</p>
<pre><code> String st1 = "",st2 = "",st3 = "",st4 = "";
String[] str = {st1,st2,st3,st4};
</code></pre>
<p>Unfortunately when i use for loop the str gets the value of st1 and st2 and st... | java android | [1, 4] |
1,043,530 | 1,043,531 | transfer data from a gridview to a database | <p>I have this code</p>
<pre><code>private void BindSecondaryGrid()
{
DataTable dt = (DataTable)ViewState["SelectedRecords1"];
gridview3.DataSource = dt;
gridview3.DataBind();
}
</code></pre>
<p>The selected records from the <code>gridview2</code> are saved there <code>ViewState["SelectedRecords1"]</code... | c# asp.net | [0, 9] |
5,533,732 | 5,533,733 | Delay form submission until location is retrieved | <p>I have an application that attempts to get locations settings from the browser, this tends to take a little while so I want it to run when the page loads. However, if you click the submit button before the location callback has run, you have no location data. My question is simple, how do I wait for my location su... | javascript jquery | [3, 5] |
1,380,514 | 1,380,515 | Can I use .show() or .hide() with a switch 1/0 instead of an If statement | <p>I was just wondering if it was possible to do something like this in jQuery:</p>
<pre><code>$('#MyDiv').show((MyVar==2?1:0)); // 1=show, 0=hide.
</code></pre>
<p>otherwise I'd have to write it like this everywhere.</p>
<pre><code>if(MyVar==2?1:0){$('#MyVar').show();}else{$('#MyVar').hide();}
</code></pre>
| javascript jquery | [3, 5] |
6,028,692 | 6,028,693 | Remove decimal from jQuery | <p>I think this is probably an easy question, but I can't find any info on it.</p>
<p>I need to divide <code>newHeight</code> by <code>9</code> and then multiple it by <code>16</code>, but I get a decimal. I need a way to remove that decimal, and I'm not sure how to do it. I thought in VB you could just use a <code>\<... | javascript jquery | [3, 5] |
4,662,569 | 4,662,570 | How to run android emulator with sd card | <p>I download and build android 1.5r3 source.
I did 'launch 1' and then 'make'.</p>
<p>And when it is done, I run my emulator like
out/host/darwin-x86/bin/emulator -sdcard sd256m.img</p>
<p>But when I click 'Gallery', it said 'No Media Found'.
I am sure the sd card i created (sd256m.img) has images in there.</p>
<p... | java android | [1, 4] |
4,055,454 | 4,055,455 | Where can I find a C# ASP.NET tutorial on how to make a simple content management system? | <p>More specifically, is there any tutorials on how to setup a login system, storing accounts, etc? Thanks guys.</p>
| c# asp.net | [0, 9] |
2,525,898 | 2,525,899 | How to hide column and access it programatically in Gridview? | <p>I have a gridview which is bonded totally programatically . I want to hide some columns and also rich them to show them in the label.</p>
<p>Here is my gridview :</p>
<pre><code><Gridview ID=Gridview1 runat="server" ></Gridview>
</code></pre>
<p>I want to hide EmpID and UnitID . and want to show them ... | c# asp.net | [0, 9] |
572,366 | 572,367 | jQuery manipulation of duplicate tags | <p>Ok, this is a weird request, but I need to use jQuery to manipulate a bunch of tags that all have the same id and name.</p>
<p>We're using Izenda AdHoc reporting controls, which has a query designer GUI. It gives you a select dropdown with a list of tables in it, and you can click a button and get another one, and ... | asp.net jquery | [9, 5] |
5,364,338 | 5,364,339 | Prevent multiple selection of a div | <p>I have multiple divs on my page.I want to copy selected text from div1 to div2 only.Selection on div2, div3, div4 should not get copied. If ctrl+A is pressed or multiple divs are selected at a time, copy should not happen.</p>
<pre><code>//Validation for including text only from specified div
$('#DocumentText').mo... | javascript jquery | [3, 5] |
3,097,147 | 3,097,148 | QueryString containing \ coming through with \\ | <p>I'm have a page which I sent a parameter through the query string.</p>
<p>If I'm retrieving it with Request.QueryString["Format"] I'm having troubles with the type 'CD\DVD'. It's being returned as 'CD\\DVD'. It's important I get this as the right string.</p>
<p>How do I avoid the extra backslash? Or even get rid o... | c# asp.net | [0, 9] |
6,009,976 | 6,009,977 | increment variable using jquery | <p>I feel like this is a pretty basic thing, but I cant seem to find the solution. Im trying to increment a value after the loading of an IFRAME.</p>
<p>the code looks like this:</p>
<pre><code>var x=0;
$(document).ready(function() {
$('#iframe-2').load(function() {
var x=x+1;
});... | javascript jquery | [3, 5] |
1,524,392 | 1,524,393 | why the javascript variable doesn't change among function? | <p>my problem with the following javascript function:</p>
<pre><code>function ValidateDates() {
var valid = false;
birthD = $("#cp1_txtBirthDate").val();
initialD = $("#cp1_txtInitialDate").val();
var regexp = new RegExp("^([1-9]|(0|1|2)[0-9]|30)(/)([1-9]|1[0-2]|0[1-9])(/)((20|19|18)[0-9]{2})$");
if (birthD != "__/_... | javascript jquery | [3, 5] |
1,094,751 | 1,094,752 | Value of hidden input returns blank when it clearly isn't | <p>Why can't I get the value from this input? See the image below:</p>
<p><img src="http://i.stack.imgur.com/y5oEu.jpg" alt="enter image description here"></p>
| javascript jquery | [3, 5] |
2,599,979 | 2,599,980 | How do I overlay a busy icon on an image? | <p>I've been looking through SO and Google trying to find a simple way to overlay a busy icon on an existing image. While applying filters and effects to images I'd like to let the user know it's being processed by showing a busy icon on top of the current image. </p>
<p>Do I need to create some sort of overlay image ... | php javascript jquery | [2, 3, 5] |
3,934,161 | 3,934,162 | Match a String in a Webpage along with HTML tags | <p>With below code, I am trying to match a text in a web page to get rid of html tags in a page. </p>
<pre><code> var body = $(body);
var str = "Search me in a Web page";
body.find('*').filter(function()
{
$(this).text().indexOf(str) > -1;
}).addClass('FoundIn');
$('.FoundIn').text() = $('.Fo... | javascript jquery | [3, 5] |
5,097,967 | 5,097,968 | Add dynamically controls to asp placeholder in addition to controls which already exist in it | <p>Add dynamically controls to asp placeholder in addition to controls which already exist in it ?
how to add them?</p>
<p>for example - on page load I added to textboxs and labels to placeholder on button click I need to add additionally one more textbox.</p>
| c# asp.net | [0, 9] |
1,930,746 | 1,930,747 | Loading jQuery multiple times in the same page | <p>I'm implementing a plug-in that's embeddable in different sites (a la Meebo, Wibiya), and I want to use jQuery. Problem is, the site I'm embedding to, may already have a jQuery script loaded.</p>
<p>The question is, what's the best approach for this kind of problem:</p>
<ol>
<li><p>Should I just check if jQuery is... | javascript jquery | [3, 5] |
5,574,356 | 5,574,357 | How do I get a element to scroll into view, using JQuery? | <p>I have a html document with images in a grid format using <code><ul><li><img...</code>. The browser window has both vertical & horizontal scrolling. </p>
<p><strong>Question:</strong>
When I click on a image <code><img></code> how then do I get the whole document to scroll to a position wh... | javascript jquery | [3, 5] |
193,070 | 193,071 | add a textbox onclick dropdown value other in jquery? | <p>I am facing a problem with jquery.</p>
<p>I have a div with 4 drop down list and I have an "add more" button.</p>
<p>When I click on "add more" button, another instance of the same div is created just above the "add more" button. I did it via jQuery <code>append()</code> method and it is successfully working, but ... | php jquery | [2, 5] |
1,799,523 | 1,799,524 | How to add delay to a function | <pre><code>$(function(){
$('#slides_left').slides({
generateNextPrev: false,
play: 5500
});
});
</code></pre>
<p>How can I add a .delay() to the function above so that the starting time for the function is not onload rather to a specified time?</p>
<p>sorry for my noobness in jQuery!</p>
<p>Thank... | javascript jquery | [3, 5] |
2,898,108 | 2,898,109 | Converting string to variable name | <p>I have the following declarations:</p>
<pre><code>int value1 =5 , value2 =10 ,value3;
string calculate ="value1 + value2"; // dynamic string
</code></pre>
<p>I need to perform </p>
<pre><code>value3 = convert.To int32(calculate );
</code></pre>
<p>Is there any possible to compute dynamic variable assigning ... | c# asp.net | [0, 9] |
4,304,026 | 4,304,027 | Easiest way to persist data on a PHP page | <p>I a web application that I am developing (being developed in PHP) when a user posts any request for service the user has to fill in a very length form.</p>
<p>Once user fills in the form and submits it another page (confirmation page) is loaded in which all values filled in by user are show. I must point out that a... | php javascript | [2, 3] |
4,540,916 | 4,540,917 | Getting a specific input from a specific form? | <p>I'm having difficulty grabbing a specific input from a specific form. Any tips?</p>
<pre><code><form id ="frm_addtag-1">
<input type="text" name="tag" id="tag">
</form>
<form id ="frm_addtag-2">
<input type="text" name="tag" id="tag">
</form>
<form id ="frm_addtag-3... | javascript jquery | [3, 5] |
5,787,619 | 5,787,620 | How to implement this without refreshing the page? | <p>I don't know what this is called, so I recorded a video screenshot.</p>
<p><a href="http://imageshack.us/clip/my-videos/809/qg7.mp4/" rel="nofollow">http://imageshack.us/clip/my-videos/809/qg7.mp4/</a></p>
<p>I know it's javascript, but I have no idea what it's called, so I can't find a tutorial on how to replicat... | javascript jquery | [3, 5] |
5,601,525 | 5,601,526 | Executing Java programs through Python | <p>How do I do this?</p>
| java python | [1, 7] |
4,817,821 | 4,817,822 | Android programming. Vibration/LED light Function | <p>Hi I have created a task reminder application. For example, you select a time of when to be reminded of a certain task, when that time comes, a notification comes up on the status bar.</p>
<p>However I would like to implement a vibrating function and possibly an LED light function with the notification but I am no... | java android | [1, 4] |
4,953,297 | 4,953,298 | Resize script appends object, does it over and over again | <p>I have the following code in a JavaScript file:</p>
<pre><code>$(document).ready(function() {
detectscreen();
});
$(window).resize(function(){
detectscreen();
});
function windowWidth() {
if(!window.innerWidth) {
// user is being a git, using ie
return document.docume... | javascript jquery | [3, 5] |
5,425,794 | 5,425,795 | how to merge 2 arrays based on properties (not index) | <p>As we know that <code>jQuery.extend(true, obj1, obj2)</code> method for deep copying the object's properties from obj2 to obj1. In case of array, it copies the property based on index. But I need copying based on some property (e.g. id in my case) as per following example:</p>
<pre><code>obj1 = [{id:"id1", name:"na... | javascript jquery | [3, 5] |
4,745,192 | 4,745,193 | How to check input tag have only tag(<br/>) inside as value using jQuery | <p>Check input tag which have value only as <code><br/></code> tag inside as value using jQuery</p>
<p>I am using an htmlEditor in my project, sometimes user just press enter key only in textarea field. It will get as <code><br/><br/><br/><br/></code> as value when saving.
I want to avo... | javascript jquery | [3, 5] |
3,823,502 | 3,823,503 | Specifying a new source for the image tag at runtime in Javascript , jQuery | <p>Is it possible to change the src of a image at runtime using jQuery. I have created a fiddle. I am trying to load the image specified in the variable $newsrc when the button is clicked. I am not sure as to what should be specified an argument function changeImage(). I do not want to use anonymous function. </p>
<p... | javascript jquery | [3, 5] |
2,367,734 | 2,367,735 | How to Disable Browser from Saving Previous Data of TextBox in asp.net | <p>Sorry I didn't explain My problem correctly , My problem is that I have a TextBox with AutoComplete Extender and It's works but The browser save the text that i have Entered before so when i start writing to My text Box I have Two lists appear , one from the browser and one from the autocomplete </p>
<p>I want to d... | c# asp.net | [0, 9] |
506,198 | 506,199 | jQuery: Getting value from input array | <p>We have the following form:</p>
<pre><code><form>
...
<table width="100%" cellspacing="0" class="datagrid_ppal">
<tbody>
<tr>
<th scope="row">Area 1 <input name="config_line" type="hidden" value="0,5,50" /></th>
<td class="... | javascript jquery | [3, 5] |
3,381,186 | 3,381,187 | How can I format a number to the fixed locale? | <p>How can I insert to a string comma (,) after every 3 position starting from last? </p>
<pre><code>input desired output
9876567846678 9,876,567,846,678
567 567
1234 1,234
</code></pre>
<p>I used one method like first divide the whole string by three position and th... | java android | [1, 4] |
3,226,682 | 3,226,683 | Mapping object properties, excluding types | <p>What i currently use</p>
<pre><code>public static void MapObjectPropertyValues(object e1, object e2)
{
foreach (var p in e1.GetType().GetProperties())
{
if (e2.GetType().GetProperty(p.Name) != null)
{
p.SetValue(e1, e2.GetType().GetProperty(p.Name).GetValu... | c# asp.net | [0, 9] |
4,360,794 | 4,360,795 | How to login an app android via google account? | <p>I read some topics on this website.
I can't understand it clearly. Can you help me step by step?</p>
| java android | [1, 4] |
839,335 | 839,336 | using jQuery to find elements ordering when the elements are inside different parent elements | <p>I have something like this:</p>
<pre><code><div>
<ul id="ul_element_id">
<li>
<a id="first"></a>
</li>
<li>
<a id="second"></a>
</li>
<li>
<a id="third"></a>
... | javascript jquery | [3, 5] |
617,053 | 617,054 | treeview loses checked values when click event is occured | <p>I have asp.net Treeview which is out side update panel of asp.net page,when i click on btnGet (which is also exists outside the update panel) it loses the checked value of treeview control. but it persist the values of other controls which are placed in update panel.</p>
<p>to handle the control outside the updatep... | javascript asp.net | [3, 9] |
4,136,079 | 4,136,080 | How can I take jquery id in session | <p>This is my jQuery code for taking id value when I click <code>itemslist</code> </p>
<pre><code>$(document).ready(function() {
$('.itemslist ul li').click(function()
{ $id = $(this).attr("class");
});
});
</code></pre>
<p>But session is not taking that id value </p>
<pre><code>session_start();
$_SESS... | php jquery | [2, 5] |
3,038,782 | 3,038,783 | ASP.NET page code affects page after build and then not after page refresh | <p>I am having an issue where if I hit build in visual studio and reload my (to see the changes to the backend) the page is correctly affected by the backend code. When I hit refresh again however, the page renders with just the front end without things like data inserted into fields from the backend. It is as if the b... | c# asp.net | [0, 9] |
2,874,059 | 2,874,060 | Detect finger drag using Javascript on touch phones? | <p>Is there a way to detect finger drags using Javascript on touch phones? I'm currently using jQuery and the mousemove() method doesn't appear to work on my Andorid phone.</p>
<p><strong>EDIT:</strong> I suppose I should clarify that this is for a web application.</p>
<p><strong>EDIT 2:</strong> I found a duplicate... | javascript iphone android | [3, 8, 4] |
3,567,183 | 3,567,184 | Why this js script does not work in asp.net after postback? | <p>I have this code:</p>
<pre><code> if (Page.IsPostBack)
{
Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "Javascript", "alert('test');jQuery('html, body').animate({ scrollTop: jQuery('.newslettersubscribe').position().top }, 'slow');",true);
}
</code></pre>
<p>I don't understand why the... | jquery asp.net | [5, 9] |
5,187,421 | 5,187,422 | An unwanted object in the last cell of an array | <p>I'm using the following code on a parsed XML array: </p>
<pre><code>$(this).find("cp_group").each(function() {
$("select#comp_1").append('<optgroup label="' + $(this).attr('label') + '"><option>' + $(this).find("cmp").map(function() {
return $(this).text();
}).get().join("</option>... | javascript jquery | [3, 5] |
5,263,498 | 5,263,499 | Javascript variable to PHP using Jquery AJAX | <p>I have the following javascript function</p>
<pre><code>function success_callback(p)
{
lat = p.coords.latitude.toFixed(2);
lon = p.coords.longitude.toFixed(2);
}
</code></pre>
<p>Now I want to transfer both the variable to PHP using Jquery AJAX, I am pretty new to Jquery, I am not able to... | php jquery | [2, 5] |
5,413,581 | 5,413,582 | Turn jQuery into vanilla JS - Insert p element after h1 | <p>Any ideas on how I would convert this jQuery to vanilla JS:</p>
<pre><code>$('.section > h1').after('<p>This paragraph was inserted with jQuery</p>');
</code></pre>
<p>I am new to jQuery and even newer to vanilla JS.</p>
<p>This is as far as I got:</p>
<pre><code>var newP = document.createElement(... | javascript jquery | [3, 5] |
1,954,103 | 1,954,104 | calling js file from aspx | <p>I have a aspx page and a js file, am accessing the js file for some functions, say for example I have some autocomplete boxes in my aspx page and for that am accessing the js file for every autocomplete box, and finally when I click the save button, the saveFunction in my js file should be fired, for this I just mad... | jquery asp.net | [5, 9] |
2,690,682 | 2,690,683 | Interop c++ struct in c# variable string size | <p>i transfer over ipc a struct from unmanaged into managed code.
Is it possible to transfer a string without set a constant size
or fill the rest auf the bytes into the last member of the struct ?</p>
<p><strong>c++ struct</strong></p>
<pre><code>typedef union
{
struct
{
int id;
string Dat... | c# c++ | [0, 6] |
4,310,712 | 4,310,713 | javascript get variable open in new window | <p>I have standard text links which all say "Full View". When clicked these links send out php in this form: <a href="http://mysite.com/fullview.php?myimage=30" rel="nofollow">http://mysite.com/fullview.php?myimage=30</a></p>
<p>Basically there's thumbnailed images and text links that say full view. I'd like for fullv... | php javascript | [2, 3] |
3,706,388 | 3,706,389 | adding .live to click functions in jquery | <p>We have an app that uses a lot of jquery stuff and we're adding up all our scripts in an init.js file which has a lot of <code>.live("click"), .live("hover")</code> etc, stuff plus some <code>if($(".classname").length)</code> etc.</p>
<p>I have a suspicion it MIGHT be slowing down our pages unnecessarily(some pages... | javascript jquery | [3, 5] |
4,237,435 | 4,237,436 | Getting JavaScript variable in embeded C# code | <p>I am trying to write a simple <em>for</em> in JS which uses an element from a list declared in C# code behind. Actually there is a problem here: <code>['i']</code> - compiler doesn't know what is <code>i</code>. </p>
<p>How can I write this for properly? </p>
<pre><code>for (var i = 0; i < '<%= poz.Count %&g... | c# javascript asp.net | [0, 3, 9] |
16,844 | 16,845 | click event on a div should not be triggered by it's children | <p>Let's say I have the following Code:</p>
<pre><code><div id="parent">
<div id="child"></div>
</div>
</code></pre>
<p>Now I attach an onClick event to the parent div:</p>
<pre><code>$('#parent').click(function() { ... });
</code></pre>
<p>Is there an easy way to stop the event from tri... | javascript jquery | [3, 5] |
961,204 | 961,205 | inArray returns -1 in each loop with stirngs | <p>I have two arrays containing string values (newValues and oldValues). I iterate over the oldValues array with jquery each and check the value against the newValues array. However even if the value exists in the newValues array, it is only found if I do a toString first. IE Debugger Console howerver says, that this i... | javascript jquery | [3, 5] |
5,464,318 | 5,464,319 | JQuery: Check value of input | <p>How can I check if the number entered in the input-field is higher of even as th value in my 'min' field?</p>
<pre><code> <tr>
<td>Steeeeaak</td>
<td><input type="hidden" name="amount_5_min" value="10"/>
<input type="text" n... | javascript jquery | [3, 5] |
4,456,049 | 4,456,050 | JQuery sortable table with child rows - is it possible? | <p>I'm currently displaying data about customers in a sortable table using JQuery. It's not a problem to allow the dragging and dropping of rows in the table. However, the challenge is that I have code in place to allow a row to expand and show the [non-sortable] child rows. After child rows are visible in the table, i... | javascript jquery | [3, 5] |
2,284,562 | 2,284,563 | How to slideTo() only if the loadmore button is clicked using jQuery? | <p>In my script I load some posts from external RSS feeds. I have a "load more" button that when it is clicked, calls the <code>loadfeed()</code> function and shows some 10 more posts.</p>
<p>When this happens, there is a <code>slideTo()</code> that slides the browser to the first of the new posts list.</p>
<p>In add... | javascript jquery | [3, 5] |
1,805,771 | 1,805,772 | PHP jQuery value problem | <p>I have problem to send value from php to jQuery script.</p>
<p>PHP looks like that:</p>
<pre><code>echo "<a id='klik' value='".$row['id']."' onclick='help()' href='http://www.something.xx/tag/".$row['link']."'>".$row['name']."</a><br>";
</code></pre>
<p>and script jQuery:</p>
<pre><code>functio... | php javascript jquery | [2, 3, 5] |
2,736,360 | 2,736,361 | sending javascript variable value to php within the same page | <p>I just want to know if sending value of a javascript to php is possible.
here is the simple code of what i am trying to say.</p>
<pre><code><script language="javascript" >
var id = "data"
</script>
<?php
$getthevalueofid = var id;
?>
</code></pre>
<p>thanks!</p>
| php javascript | [2, 3] |
1,664,848 | 1,664,849 | how do i make .load work when i append a variable to the url? | <p>I want to append the clicked href to my url string of my .load method and load in a specific portion of the page i've called, unfortunatley when I append the variable a lot of elements seem to be duplicated on my page?</p>
<p>Basically I want my .load method to look like .load('http://localhost/folio1.html #inner')... | javascript jquery | [3, 5] |
1,339,217 | 1,339,218 | how to convert binary string data into String in android | <p>Can anybody give me some clue that how to convert binary string into a string(english). I have tried and googled so much but couldn't find an answer.</p>
<p>Here is my code:</p>
<pre><code>InputStream iStream = getApplicationContext().getResources().openRawResource(R.raw.map);
InputStreamReader input;
String line ... | java android | [1, 4] |
1,042,994 | 1,042,995 | JQuery function not found | <pre><code>// also tried function getDeletedDates()
var getDeletedDates = function()
{
var s = new Array();
$(".deleted").each(function(i, e) {
s.push($(e).attr("data-day"));
});
};
$(function()
{
$("#delete_send").click(function() {
alert("drin");
$.ajax({
... | javascript jquery | [3, 5] |
1,297,870 | 1,297,871 | Always run application within ASP.NET and external web hosting | <p>I'm creating a ASP.NET .NET 4.0 website and part of this site requires that there is an "always running" application. Normally I would create a Windows Service for this, but the site will be hosted within a shared hosting environment, and unless I get a virtual server, then this isn't a possibility.</p>
<p>My first... | c# asp.net | [0, 9] |
5,026,995 | 5,026,996 | Keeping a value consistent In jQuery on function when run on multiple items at the same time | <p>I'm writing a module that has multiple questions users can chose to answer. Each has their own submit button that causes the data to be posted to my application, displays the results, and then removes the form. I was able to get this piece working perfectly but if I add a button that allows the users to submit all... | javascript jquery | [3, 5] |
5,197,803 | 5,197,804 | Making Synchronous xmlhttp request in code behind | <p>I am attempting to send XML to a URL and read the response, but the response is coming back empty every time. I think this is because its being processed Asynchronously and so the receiving code hasn't had a chance to complete by the time I read the response. In Javascrpt I would use</p>
<pre><code>xmlhttp.Open("PO... | c# asp.net | [0, 9] |
5,102,686 | 5,102,687 | Why this code dont work on chrome? | <p>i have this javascript code for my thumbnail scroller, it works perfect on firefox! but on chrome it does't work...</p>
<pre><code> $(window).load(function(){
var $gal2 = $("#gallery_holder2"),
galWW = $gal2.outerWidth(true),
galSW = $gal2[0].scrollWidth,
wDiff = (galSW/galWW)-... | javascript jquery | [3, 5] |
4,352,652 | 4,352,653 | How to get the whole HTML table values on a click | <p>Here I am getting the table single tr values in the click of that tr . What I need is to get the whole table tr values in a single button or div click.Here is the code which I am using from this <a href="http://forums.asp.net/t/1652535.aspx" rel="nofollow">http://forums.asp.net/t/1652535.aspx</a></p>
<pre><code>htt... | c# jquery asp.net | [0, 5, 9] |
413,777 | 413,778 | How to build an literal array from list object? | <p>I have the list object that I'm passing using json. How can I convert it to array like you can see below using jquery or javascript?</p>
<pre><code>List<MyItem> items = new List<MyItems>();
items.Add(new (){ItemName = "Apple", ItemCount = 5});
items.Add(new (){ItemName = "Tomato", ItemCount = 3});
items... | c# javascript jquery | [0, 3, 5] |
1,950,363 | 1,950,364 | How to parse XML file from sdcard using Dom | <p>I want to parse xml file from sdcard. i used DOM concept. here i attached the code </p>
<pre><code>InputStream filename = null;
Document obj_doc = null;
DocumentBuilderFactory doc_build_fact = null;
DocumentBuilder doc_builder = null;
filename = new FileInputStream("/sdcard/filename.xml");
doc_... | java android | [1, 4] |
3,338,800 | 3,338,801 | Remove all attributes | <p>Is it possible to remove all attributes at once using jQuery?</p>
<pre><code><img src="example.jpg" width="100" height="100">
</code></pre>
<p>to</p>
<pre><code><img>
</code></pre>
<p>I tried <code>$('img').removeAttr('*');</code> with no luck. Anyone?</p>
| javascript jquery | [3, 5] |
980,213 | 980,214 | Android onFocusChanged function never called | <p>I have created a custom button in extending <code>View</code> class as specified in this tutorial:</p>
<blockquote>
<p><a href="http://kahdev.wordpress.com/2008/09/13/making-a-custom-android-button-using-a-custom-view/" rel="nofollow">http://kahdev.wordpress.com/2008/09/13/making-a-custom-android-button-using-a-c... | java android | [1, 4] |
2,692,154 | 2,692,155 | how to get columns in one row using jquery | <p>I am trying to get columns inside row. But I only want to get those columns who does not have class element. How can I do this?</p>
<p><strong>Code:</strong></p>
<pre><code>update_data: function() {
$('#add').click(function() {
var uid = $('input[name="id"]').val();
var fname = $('input[name="f... | javascript jquery | [3, 5] |
5,960,988 | 5,960,989 | Android Custom Listview | <p>I went through tutorials and searched, but still I can't understand how the,</p>
<pre><code>getView(int position, View convertView, ViewGroup arg2)
</code></pre>
<p>method works when extends <code>BaseAdapter</code> to create a custom listView in my android application. Therefore I cant Edit the Custom list view e... | java android | [1, 4] |
5,191,005 | 5,191,006 | how to write data in to pdf using c# | <p>using <code>Pdfsharp</code></p>
<pre><code> PdfDocument document = new PdfDocument();
document.Info.Title = "Title";
// Create an empty page
PdfPage page = document.AddPage();
// Get an XGraphics object for drawing
XGraphics gfx = XGraphics.FromPdfPage(page);
// Create a font
XFont font = new XFont("matio... | c# asp.net | [0, 9] |
2,228,146 | 2,228,147 | How do I add an attribute to a link inside a textarea? | <p>How do I add an attribute to a link inside a textarea?</p>
<p>Here is my code:</p>
<p><strong>HTML</strong></p>
<pre><code><textarea id="text"><a href="/" id="link">Click here</a></textarea>
<a href="#" id="add_attr">Add attribute</a>
<a href="#" id="remove_attr">Remove ... | javascript jquery | [3, 5] |
5,936,303 | 5,936,304 | Android: Running multiple activities | <p>I have developed a simple android application, which when started opens a Timer. User is given two buttons, start/ pause. This is working fine.
What i want to do is to add a way to support multiple timers when a user swipes his finger on the screen.
When he swipes from left to right, a new timer should show up, but ... | java android | [1, 4] |
4,952,162 | 4,952,163 | Attach an handler to the click event on a 'a' tag is firing even if I don't click | <p>I have this code to listen the click on a 'a' tag:</p>
<pre><code>$(document).ready(function () {
$(document).on("click", $("#addEvent"), addEvent);
});
addEvent: function () {
alert("Test");
}
<div style="width: 100%; text-align: right;margin-left: -8px; margin-top:-40px;">
<a id="addEvent" hr... | javascript jquery | [3, 5] |
2,708,441 | 2,708,442 | jquery - queue event until ajax call finishes | <p>im working with rails and jquery here. </p>
<p>When the email field loses focus (blur), i call server to verify if it is valid (email format and unique). If it is valid, i update a hidden input value to true and false if it is not valid.</p>
<p>Then user clicks (focus) on another email field, if the first email is... | javascript jquery | [3, 5] |
1,176,852 | 1,176,853 | window.showModalDialog is not working | <p>I have the following code to showModalDialog popup:---</p>
<p>.aspx code is:-</p>
<pre><code>function ShowPopup(path) {
window.showModalDialog(path, '', 'dialogWidth:700px; dialogHeight:530px; Center:yes');
}
</code></pre>
<p>My aspx.cs code is:--</p>
<pre><code>switch (e.CommandName.ToLower())
{
case "... | javascript asp.net | [3, 9] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.