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,737,527 | 2,737,528 | Bluetooth limitations | <p>While using bluetooth to share files from one android mobile as server and many mobiles (20-30) can download files simultaneously from that server.
What are the limitation of bluetooth api in android ?
Is it possible ?</p>
<p>How do you prefer to do this? On bluetooth or via wifi ?
Thanks</p>
| java android | [1, 4] |
5,522,219 | 5,522,220 | Passing value JavaScript to a Java class file | <p>I have three string values in JavaScript. And I have a method <code>getValues(String val1, String val2, String val3)</code>. This metod is outside the JavaScript. I want to call this method using that above three values.</p>
| java javascript | [1, 3] |
2,572,650 | 2,572,651 | php javascript cleartimeout() not working | <p>I have a setTimeout and clearTimeout where the setTimeout is working fine but clearTimeout is not working, can anyone help me?</p>
<p>code:</p>
<pre><code><script type="text/javascript">
var i = 0;
var status = setTimeout(function () {
if (i <= 2) {
metrics_status();
i++;
} else {
... | php javascript jquery | [2, 3, 5] |
3,991,334 | 3,991,335 | Targeting CSS on div range | <p>I have an element I populate with $.ajax now I want to fade all the custom loaded elements, the element is already pre-populated with 20 elements when the page loads, I don't want to target those 20. Essentially, how can I target the latter 17 divs assuming I have 37 divs total? Currently I use:</p>
<pre><code>whil... | javascript jquery | [3, 5] |
5,544,818 | 5,544,819 | Arrange controls in panel in ASP.NET | <p>I want to arrange the controls in a Panel control. For example, I have four labels and four textboxs, I want to put them in a panel like a table without using the VS designer, only use the code. Does anyone do it before?</p>
<p>Best Regards,</p>
| c# asp.net | [0, 9] |
1,893,959 | 1,893,960 | Change outerHTML in javascript or jquery | <p>I want to change the outerHTML and this is what I do:</p>
<pre><code>$(data.description)[0].outerHTML = $(data.description)[0].outerHTML.replace('red', 'black');
</code></pre>
<p>The value is:</p>
<pre><code>$(data.description)[0].outerHTML: "<p style="color: red;">desc1</p>"
</code></pre>
<p>and it ... | javascript jquery | [3, 5] |
3,464,995 | 3,464,996 | Not able to get '.' dot pressed event in android onkeypressed | <p>Hi i am trying to get the event when i press . dot in android key board </p>
<pre><code> public boolean onKey(View v, int keyCode, KeyEvent event) {
if (keyCode == '.') {
Log.d("dot pressed" "dot presed");
where i am getting wrong?
</code></pre>
| java android | [1, 4] |
5,868,702 | 5,868,703 | how can i add head text in javascript alert dialog box | <p>I need to add Header text in javascript alert dialog box, that text having some forecolor and textfont will be bold. it is possible to create on javascript alert dialog box.</p>
| c# javascript | [0, 3] |
3,155,530 | 3,155,531 | Passing values from ASP.NET to PHP | <p>Is there anyway to pass values from ASP.NET to PHP easily using Session or any other? I tried in the below way but it didn't work for me. Anybody either correct the below code or suggest me a way to pass values from ASP.NET to PHP without using URL query string.</p>
<p>ASP.NET code.</p>
<pre><code>protected void B... | php asp.net | [2, 9] |
3,239,183 | 3,239,184 | How validate content of Input box with jquery or javascript | <p>How can i validate content of a input box? that when a user for example write in that inbox <code>http://www.example.com</code> input box turn it into <code>www.example.com</code> .in other words its valide frist http and if its exist remove it automatically and insert the correct and show the correct in tha... | javascript jquery | [3, 5] |
975,967 | 975,968 | Is there a shorter way to write this Jquery code? | <p>If I need to preselect a dropdown option with a certain value, I can use this:</p>
<pre><code>$('select option[value="123"]').attr('selected', 'selected');
</code></pre>
<p>but if I need to preselect an option based on the text it contains I need to do all this:</p>
<pre><code> $('select option').each(func... | javascript jquery | [3, 5] |
883,817 | 883,818 | Get unique List elements based on a substring | <p>I have an ArrayList(String) which contains a list of formatted dates like this:</p>
<pre><code>element 1: "2012-5-1"
element 2: "2012-8-10"
element 3: "2012-12-5"
element 4: "2013-12-21"
element 5: "2013-12-13"
element 6: "2014-5-8"
</code></pre>
<p>What is the most efficient/framework way to create another list o... | java android | [1, 4] |
2,703,784 | 2,703,785 | resize image in div tag when broser resize | <pre><code><div id="banner">
<script type="text/javascript" src="gallery/js/jquery.js"></script>
<script type="text/javascript" src="gallery/js/swfobject.js"></script>
<script type="text/javascript" src="gallery/js/flashgallery.js"></script>
<script type="text/javascrip... | php javascript jquery | [2, 3, 5] |
5,865,785 | 5,865,786 | javascript not working | <p>I have following javascript code. Its a timer code. Timer stops if quiz is 3 for 3 seconds and starts after 3 seconds for 20 seconds. But this code is not working for if quiz is anything else than 3. Can anyone help me with this?</p>
<pre><code><script type="text/javascript">
var days = 0
var hours = 0
... | php javascript | [2, 3] |
3,404,002 | 3,404,003 | can i change printer_write in another language? | <p>I am trying to print a page. I use <code>printer_select_font</code> to change the font and then I use <code>printer_draw_text</code> to print, but it is slow.</p>
<p>So my questions is, can I change <code>printer_write</code> in another language? Thanks in advance. </p>
<p>I use this code:</p>
<pre><code>$handle ... | php jquery | [2, 5] |
5,979,806 | 5,979,807 | show decimal places on client side division | <p>I am populating a template field using the following code</p>
<pre><code><%# ((ListData)Container.DataItem).TotalMinutes / 60.00 %>
</code></pre>
<p>However, sometimes the returned value shows up like 40.5 or 29 or 34.75.</p>
<p>I would like it to always show the 2 decimal places whether it is 40.50 or 29.0... | c# asp.net | [0, 9] |
3,886,187 | 3,886,188 | Update 2 exact same images source using javascript | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/5958617/update-2-exact-same-images-source-using-javascript">Update 2 exact same images source using javascript</a> </p>
</blockquote>
<p>I using PHP captcha called Cryptographer captchan.fr site</p>
<p>I need t... | javascript jquery | [3, 5] |
5,366,173 | 5,366,174 | Use a variable derived from Javascript into an ASP tag | <p>I'm having difficulty in using a variable derived from Javascript into an ASP tag . </p>
<pre><code><script language="javascript">
if (arg)
{
var text_box_to_fill = arg.sendValue_Code;
document.getElementById( document.getElementById("<%= "+text_box_to_fill+".cli... | javascript asp.net | [3, 9] |
3,141,984 | 3,141,985 | How do i get relative dimensions of scrollbale window viewport | <p>I am having a Tooltip (larger image view) that is being positioned via e.pageX e.pageY and i am trying to make sure it is not hidden below the current scrolled view port.</p>
<p>I have seen many sites have this
my code is something like this but i am missing something.</p>
<pre><code>var positionImg = function(e) ... | javascript jquery | [3, 5] |
1,997,884 | 1,997,885 | about the grid view EditButton | <p>i'm new to asp.net and writing some program for doing some update delete action. i've created a gridview and connecting db program, now i want to enable the edit button and but alter it pass the id from the editGrid.aspx to the editDetials.aspx which let user can edit the content in a details view. </p>
<p>here is ... | c# asp.net | [0, 9] |
4,883,363 | 4,883,364 | How to display data in particular gridview when particular checkbox is selected? | <p>I have 6 check boxes in 1 panel, and 6 gridviews i other seven differnt panels.
when i check checkbox 1, the data should be displayed in gridview one and so on.
How to do this?</p>
| c# asp.net | [0, 9] |
1,697,877 | 1,697,878 | Displaying label control depending on condition | <p>I have three pages on my site. Page 1 is home page. When user visits the site, i display label control to user in Page 1. When the same user goes to page 2 , 3 and returns back to page 1, i do not want the label to show again. How can i do this?</p>
| asp.net jquery | [9, 5] |
4,587,370 | 4,587,371 | Is there is any way to scrape the dynamic content using php or java | <p>I need to scrape some details from a website. It loads certain details in Ajax after a button click. Is it is possible to scrape the details from this <a href="http://www.guruji.com/music/3%20idiots/" rel="nofollow">link</a>?</p>
<p>It loads the details when the <code>+</code> button is pressed.</p>
| java php | [1, 2] |
5,225,443 | 5,225,444 | How to automatically hide a modal popup control? | <p>I have a model pop extender control like:</p>
<pre><code> <cc1:ModalPopupExtender ID="basketPopUp" runat="server"
PopupControlID="Panel1"
PopupDragHandleControlID="PopupHeader"
Drag="true"
BackgroundCssClass="ModalPopupBG"
TargetControlID="Panel1">
</cc1:ModalPopupExtender>
<a... | c# asp.net | [0, 9] |
770,433 | 770,434 | Get session id from android MEDIA PLAYER? | <p>I'm trying to develop a spectrum based live wallpaper, which will change when the music plays or someone touches the screen, for android 2.3 and up. The problem is that I need to get the session id to initialise the Visualizer so...</p>
<p>How can I get the sessionId from android</p>
<p>And it would be good if you... | java android | [1, 4] |
2,232,891 | 2,232,892 | Cant figure out why my images won't lazyload | <p>Hey guys i can't seem to get lazyload to work at all on <a href="http://www.childrenoftheson.com/newindex/Untitled-14.html" rel="nofollow">my page</a>, and i can't understand why. I've looked around alot and still have no idea.</p>
<p>I need it as im desinging a new page for my band www.childrenoftheson.com/newind... | javascript jquery | [3, 5] |
5,881,059 | 5,881,060 | Call jQuery function within function | <p>I have a jQuery function (stripped down just for this example):</p>
<pre><code>(function($) {
$.fn.Lightbox = function(options) {
var opts = $.extend(defaults, options);
function initialize() {
$('#lightbox').show();
return false;
};
function close() {
... | javascript jquery | [3, 5] |
2,534,689 | 2,534,690 | Rewinding HTML 5 video each time the page is loaded | <p>I want to make sure my HTML 5 videos start running from the beginning when the user enters a page.</p>
<p>At the moment, the first video is running fine, but if the user closes the pop-up while playing the video will start from where the user left it when they open the pop-up again.</p>
| javascript jquery | [3, 5] |
463,761 | 463,762 | JQuery callback function flow | <p>i am very new in jquery. so i was searching google for jquery callback function and i got a code but i did not understand the flow of the code. so please anyone help me to understand the coding flow.</p>
<p>here is the code</p>
<pre><code>function mightyplugin(foo, callback){
// big code block here
callback.ap... | javascript jquery | [3, 5] |
2,394,288 | 2,394,289 | jQuery to hide all row classes except 'row2' only when the parent class is viewContainerTop | <p>I've been to <a href="http://stackoverflow.com/questions/394470/jquery-select-class-inside-parent-div">jquery select class inside parent div</a> and <a href="http://stackoverflow.com/questions/287875/testing-objects-for-ancestor-descendent-relationship-in-javascript-or-jquery">Testing objects for ancestor/descendent... | javascript jquery | [3, 5] |
2,471,914 | 2,471,915 | Using .hide() and .show() in jQuery | <p>In my program I have several very similar drop-down menus all with the same name (foo in the following example). On change they hide or show a nearby div tag depending on whether or not "ON" was selected.</p>
<pre><code>$('.togClass').hide();
$('[name*="foo"]').change(function(){
if ($('[value="... | javascript jquery | [3, 5] |
2,037,645 | 2,037,646 | What is the best way to remove/skip an item from collection | <p>what is the best way to remove/skip an item from collection object</p>
<pre><code>List<Person> personList = new List<Person>()
personList = dao.GetData(123);
personList = personList.Select(x => x.Comment... ????
</code></pre>
<p>resultset:</p>
<pre><code>"GCE"
Not available
"" //... | c# asp.net | [0, 9] |
4,945,868 | 4,945,869 | Help for arrays: converting php code to python | <p>For the first time this is not python => php but php => python.
I've got small problem with arrays in python.
(I've already been to docs.python.org)</p>
<p>Here's my problem:
I get in python couples of strings like this:</p>
<pre><code>(People 1):
<criteria a> <data of the criteria>
<criteria b&... | php python | [2, 7] |
1,768,377 | 1,768,378 | thread in asp.net/c# | <p>I want to create a thread on user_login Event or Form_load Event.
In this thread i want to call a class function to execute some sql statement, and the user do not have to wait for the result or background process to be finished, he is just directed to his desired page let say my profile or what ever.
I am using ASP... | c# asp.net | [0, 9] |
2,109,872 | 2,109,873 | Wait for animation to finish before calling function | <p>JS:</p>
<pre><code>$.fn.blink = function(times, duration) {
times = times || 2;
while (times--) {
this.fadeTo(duration, 0).fadeTo(duration, 1);
}
};
</code></pre>
<p>This makes blinking text. At last blink I want to execute a function so I changed it like this:</p>
<pre><code>$.fn.blink... | javascript jquery | [3, 5] |
1,833,219 | 1,833,220 | Apply style to textbox substring | <p>I have a simple search form consisting of just a textfield, but it has filters (e.g., beginning the query with "type:" only searches a database column of "type"). What I'd like to have is for that text before the actual search term (i.e., "type:") to be styled in such a way that it's obvious to the user that it's a ... | javascript jquery | [3, 5] |
982,504 | 982,505 | keep file dialog open even after displaying alert | <p>HI Guys,</p>
<p>I have the below code where I check for the file types of the file selected.<br>
<code>hiddenFileInputFile</code> is of file input type.<br>
Below code is working fine but if the user does not supply a <code>.csv</code> file then it show the alert, which is fine, but then I want the file dialog to r... | javascript jquery | [3, 5] |
4,026,131 | 4,026,132 | Why using XML to create GUI is a good practice in Android | <p>I am from Java Swing background. May I know why using XML to create GUI is a good practice in Android? For instance, instead of writing the code in (Which makes me feel more comfortable with it as I use to Swing desktop application)</p>
<pre><code>import android.app.Activity;
import android.os.Bundle;
import androi... | java android | [1, 4] |
2,431,785 | 2,431,786 | How to save/retrieve data with android device sd-card, via USB Debugging mode? | <p>Is there a way to save/retrieve files from an android device, via the USB debugging mode.
That means I want my application to get connected even if the Device is charging via the USB cable connected to the PC.</p>
<p>I think the ADB (Android Debug Bridge) is capable of rendering this service, however I am not quite... | c# android | [0, 4] |
336,209 | 336,210 | Javascript - Get the object's properties and print on element using "data-id" | <p>I am trying to select an object from this array and print all of its properties into an element, using "data-id". How would I go about doing this? Also, how can I give an ID to the new CarObjects?</p>
<pre><code>**<div id="carInfo" data-id="10"></div>**
function Car(company, name, price, details, image... | javascript jquery | [3, 5] |
4,592,718 | 4,592,719 | Execute a dynamic asp button click event | <p>I've create a dashboard that contains multiple dynamic buttons. When I click the "Delete" button I want the server side code to execute. I've added the code to the Click event handler of my button.</p>
<p>The dynamic button is created with the following code:</p>
<pre><code>Button PopupDeleteButton = new Button();... | c# asp.net | [0, 9] |
3,932,255 | 3,932,256 | Removing the active class from the previous clicked element when fading in and fading out content | <p>I've created 3 buttons with a paragraph of content after each, when a button is clicked this will fade in the paragraph that follows it as well as adding an active class to that clicked button. At the moment I have managed to achieve the fade in and fade out but i dont seem to be able to remove the active class from... | javascript jquery | [3, 5] |
6,021,077 | 6,021,078 | Why does my function get called when it's not supposed to? | <p>I have 2 java script functions. If the first one returns true, the 2nd one is not to be executed. If the first one returns false, only then the second function to be executed.
So I am trying to achieve this with the following code:</p>
<pre><code> <script type="text/javascript" language="javascript">
... | javascript jquery | [3, 5] |
396,641 | 396,642 | IE7: .remove() does not work - element (byID) does not exist | <p>This code below DOES NOT work in IE7, but works perfectly in all other browsers tested.</p>
<p>The element <code>'#requestFormContainer'</code> comes into existence after the <code>.ajax</code> request below. </p>
<p>In fact, <code>$('#requestFormContainer').length</code> equals 1 in all browsers tested, but equal... | javascript jquery | [3, 5] |
4,971,013 | 4,971,014 | FileUpload1.HasFile is always returning false | <p>I am uploading file using ASP.net File upload control.
My FileUpload1.HasFile is always returning false.</p>
<pre><code>if (FileUpload1.HasFile)
{
DBOperations db = new DBOperations();
try
{
FileUpload1.SaveAs(Server.MapPath("~/uploadedImages/" + db.uploa... | c# asp.net | [0, 9] |
1,171,198 | 1,171,199 | Client-side templating, server-side templating or raw cloning&editing stub DOM elements client-side? | <p>There is a page showing a list of objects (e.g. books).
This list can programmatically increase through client-side interaction.
Which is a good way to create new "books" in the DOM?</p>
<p>I'd like to create an invisible stub of the object in the DOM and then clone it n-times, each time editing proprieties (e.g. l... | javascript jquery | [3, 5] |
2,662,859 | 2,662,860 | Custom Asp.net Navigation Menu | <p>Are there any recommended ways on developing a custom navigation menu in ASP.Net similar to how the built-in Asp.Menu navigation/web.sitemap works?</p>
<p>We need to replicate the exact menu structure that a DNN site has for another custom built web application, and its ability to be generated on the fly in case of... | c# asp.net | [0, 9] |
4,256,490 | 4,256,491 | In Jquery, can I store the object reference and use it later? | <p>I got a problem with Jquery, I'm making a dynamic form on RoR, so I have a button next to an input that call to an jQuery modal. There the user would do a lookup and select some information from a list. </p>
<p>The problem is that I need to insert back the information in the input next to the button that the user c... | javascript jquery | [3, 5] |
4,248,323 | 4,248,324 | How do I know which list item was clicked? | <p>I have a <code>ListView</code> filled with items. I'd like to set an <code>onClickListener</code> to show details about the item that was clicked. How can I determine which item was clicked within the <code>onClickListener</code>? The <code>View</code>, or <code>v</code> has a lot of methods available that I've l... | java android | [1, 4] |
4,885,449 | 4,885,450 | Android log files for sleep and wake | <p>before you make fun of me, i am an android noob!</p>
<p>i am creating an app that runs as a service and tracks when the phone wakes up and when it goes to sleep. So right now i am wondering if there is a log file from which i can read when the phone goes to sleep and when it wakes up.</p>
<p>right now i am coding ... | java android | [1, 4] |
4,437,693 | 4,437,694 | what is the sdk version for camera activity? | <p>If I use the <code>targetSdkVersion</code>, my camera works fine. If I change the <code>targetSdkVersion</code> to <code>17</code>, my application stopps. I am also using an android 4.0 Ice Cream Sandwich phone. </p>
<pre><code><uses-sdk
android:minSdkVersion="5"
android:targetSdkVersion="10" />
</... | java android | [1, 4] |
2,874,431 | 2,874,432 | when if statement is true code goes to else? | <pre><code>if (_this.tiles["suz:SuzukiHubResponse"]["suz:categories"][category][aspect]["suz:image"][imageNo] != undefined) {
if (imageNo > (_this.tiles["suz:SuzukiHubResponse"]["suz:categories"][category][aspect]["suz:image"].length - 1)) {
imageNo = 0;
_this.categoriesCurrentImage[categoryIndex... | javascript asp.net | [3, 9] |
2,645,579 | 2,645,580 | Print the value in loop in Jquery ready function | <p>somehow still not able to do what I’m inted to do. It gives me the last value in loop on click not sure why. Here I want the <strong>value which is been clicked</strong>.</p>
<p>Here is my code:</p>
<pre><code>$(document).ready(function() {
var link = $('a[id]').size();
//alert(link);
var i=1;
while (i<... | php jquery | [2, 5] |
180,910 | 180,911 | How to send bufferedImage from JAVA to PHP | <p>I am kinda noob with JAVA. Here's my problem :</p>
<p>I am trying to take a screenshot of my JAVA application and send it to a PHP page.
With the code i Have, The img file of the screenshot is created by the PHP but when you open it it's all black minus a small line of gibberish white/black;</p>
<p>Did i miss some... | java php | [1, 2] |
917,804 | 917,805 | How to set a variable a users referal | <p>I am trying to create some stats and need to print a users referal site, or search keyword. How to get a Users referal site or search keyword with javascript and print it?</p>
| javascript jquery | [3, 5] |
2,162,294 | 2,162,295 | SharedPreferences -- Where do the intial values come from with a new app? | <p>I've been looking into using preferences with an app that I have created. For example:</p>
<p>One part of my app requires a CountDown timer. The default for this count down timer should be 8:00 (8 minutes or 480000 ms). However, I need the user to have the ability to change this to any value they want.</p>
<p>D... | java android | [1, 4] |
5,855,681 | 5,855,682 | Java - best way to implement a dynamic-size array of objects | <p>I am a novice with Java.</p>
<p>I have to implement an array of objects that changes in size during execution.</p>
<p>The code I am writing is going to be ported on Android, too.</p>
<p>According to your experience, what's the best class to implement that?</p>
<p>Thanks,<br>
Dan</p>
| java android | [1, 4] |
1,496,063 | 1,496,064 | How to pass msg_id into jquery modal form? | <p>I have a following data where I am showing data from database. When i click Comment a dialog appear, there i need to show data in modal from db. but for getting data from db i need msg_id in modal form.</p>
<pre><code><?php
$msg_id = $data['message_id'];
?>
<a data-toggle="modal" href="msg_id=<?php echo... | php jquery | [2, 5] |
4,371,610 | 4,371,611 | why java script cannot access this asp.net var? | <p>I have this c# user control class:</p>
<pre><code>public partial class UserControls_JsTop : System.Web.UI.UserControl
{
public static string sidebarBannerUrl = getSideBarBannerImgUrl();
protected void Page_Load(object sender, EventArgs e)
{
}
public static string getSideBarBannerImgUrl(){
... | c# asp.net jquery | [0, 9, 5] |
3,455,127 | 3,455,128 | Android app UI design | <p>I'm just trying to make an android app design similar to the one in the link below.</p>
<p><a href="http://itunes.apple.com/gb/app/id406490694?mt=8" rel="nofollow">http://itunes.apple.com/gb/app/id406490694?mt=8</a></p>
<p>how would I go about making a multiple page application like this? I've only ever worked on... | java android | [1, 4] |
4,750,719 | 4,750,720 | access static variable from aspx page | <pre><code> public partial class Page1 :System.Web.UI.Page
{
public static LGDP.LDGPSession var1 = null;
private void Login(this, EventArgs e)
{
var1 = new LGDPSession(this, data, data);
}
public bool IsLoggedIn()
{
bool login = false;
if (var1 !=... | c# asp.net | [0, 9] |
3,155,619 | 3,155,620 | how to connect (Web Server -----> Android PDA) not (PDA -----> webserver) | <p>pda android connection to the web server I know
but the problem is how the web server initiate the connection to the PDA for remote method or sql query
how to connect (Web Server -----> Android PDA) not (PDA -----> webserver)</p>
| php android | [2, 4] |
2,095,120 | 2,095,121 | Is it possible to force Activities to get re-drawn when the back key is used? | <p>I understand the concept of the back-stack, so I'm pretty sure this isn't possible but thought I'd ask anyway.</p>
<p>If it isn't, then what is the approach to simulate this behavior? For instance, I have an Activity "A1" that starts another Activity "A2". "A2" alters the content that "A1" shows. When the back but... | java android | [1, 4] |
4,723,480 | 4,723,481 | jQuery [object Object] Issue | <p>I am wanting to update a css attribute using jQuery but it isnt working. Using the alerts in the code below my first alert brings up </p>
<pre><code>url("file:///H:/Web/example/HTML/images/red-arrow-up.png")
</code></pre>
<p>but then the second alert (in the if statement) brings up </p>
<pre><code>[object Object]... | javascript jquery | [3, 5] |
2,657,381 | 2,657,382 | Javascript how to split newline | <p>I'm use jquery, and I have a textarea, so when I submit button I will alert every text separate by newline. How to split from newline?</p>
<pre><code> var ks = $('#keywords').val().split("\n");
(function($){
$(document).ready(function(){
$('#data').submit(function(e){
e.preventDefault();
... | javascript jquery | [3, 5] |
1,493,160 | 1,493,161 | onclick call jQuery function | <p>I have form with actively populated elements, something like:</p>
<pre><code><input id="id1" type="button" name="some_name">
<input id="id2" type="button" name="another_name">
</code></pre>
<p>etc.</p>
<p>My options are limited here.</p>
<p>I do not know id, as it is assigned by system dynamically (s... | javascript jquery | [3, 5] |
3,494,702 | 3,494,703 | ASP.Net: Users are logged out when deploying a new file to the server | <p>Everytime I upload a file to my ASP.NET site, all users are logged out (aka, I guess their session become invalidated). </p>
<p>Is there any way to "hotswap" the code in ASP.NET so that this doesn't happen? Compile before deploying etc. </p>
<p>My deployment method is pretty simple through a SVN update. </p>
<p>T... | c# asp.net | [0, 9] |
1,419,645 | 1,419,646 | do you use built in Stack/Queue/List or Vector in your program? | <p>Yesterday i saw in a post a guy said that built in Stack/Queue are 5x slower than a normally coded Stack/queue !<br>
Is it true ?<br>
If true then why Microsoft (C#.NET,VB.NET) or Oracle (JAVA) is giving such ADT ?<br>
Which one you prefer ? Writing your own or using the built in ? </p>
<p>[I think most of the peo... | java c# | [1, 0] |
5,811,239 | 5,811,240 | Where can i download the iLOCOi2 mobile app source code? | <p>i am a newbie for this kind of development. i am creating a mobile application which involves tracking, and where to download the source codes of iLOCi2 mobile application for my references. pls help me.</p>
| java iphone android | [1, 8, 4] |
1,184,127 | 1,184,128 | javascript : Event execute multiple time after loading page via ajax. | <p>I have created a page which will be loaded via ajax. On this page i have created a function which will assign some function for the specified keys [I'm using jquery Hot keys].</p>
<p>Here is the function that i use to assign functions</p>
<pre><code>function setupKeys()
{
$.each(keyMap, function (event, liste... | javascript jquery | [3, 5] |
5,446,611 | 5,446,612 | Javascript get date from class and add an image | <p>Basically I wanted a way to have Javascript look through my HTML for hidden dates with a certain class, parse the date and check if it is greater than today's date. If that is true add an image to the parent element. It looks like it works but is this the best way to write the code?</p>
<pre><code>$(".myClass").eac... | javascript jquery | [3, 5] |
5,245,595 | 5,245,596 | Use down and up keys to move to the next and previous elements | <p>I have a <a href="http://www.sportannica.com" rel="nofollow">drop down box</a> that appears upon keyup via javascript. I'd like to take it a step further and make it so that it can be navigated via the keyboard. Any ideas how this can be accomplished? Preferably via jquery.</p>
| javascript jquery | [3, 5] |
987,293 | 987,294 | What is an alternative to setInterval in jQuery? | <p>I am using jQuery to call a function when a button is clicked. This function that is being called is in PHP and returns logging information. I have tried to use <code>setInterval()</code> but it calls the function at whatever rate I choose and tends to return duplicate logging information and most of the time it fre... | php jquery | [2, 5] |
603,975 | 603,976 | Extending objects with JQuery, Object has no method error | <p>I have this javascript code:</p>
<pre><code>var TodoController = {
init: function() {
$(this).find('input.todo_check').click(function(){
$(this).parents('li.todo').done();
});
}
}
var Todo = {
done: function() {
$(this).toggleClass('done');
}
}
$(document).ready(function() {
$(... | javascript jquery | [3, 5] |
5,079,947 | 5,079,948 | How to get the element id of the html page displayed | <p>I have a web view and a button at the bottom . After loading the html page into the web view, when I click on the button I need to get the id of the current focused html element id from the html page. How to get that..?? Help me friends,current focused element in the sense may be the first topic element of the page ... | javascript android | [3, 4] |
5,134,297 | 5,134,298 | Javascript post to PHP and get back an array? | <p>So i have this piece of javascript, it posts to <code>foo.php</code> with value <code>val</code>, gets back <code>data</code>, empties the container and call function <code>graph</code> which will fill the container with a new chart.</p>
<pre><code>$.post("foo.php", {val: val}, function(data){
if(data.length &g... | php javascript | [2, 3] |
4,087,291 | 4,087,292 | Converting a piece of C++ to Python | <p>I'm trying to convert this C++ to Python. I practice Python only and haven't touched C/C++ yet.</p>
<pre><code>int phi(const int n)
{
// Base case
if ( n < 2 )
return 0;
// Lehmer's conjecture
if ( isprime(n) )
return n-1;
// Even number?
if ( n & 1 == 0 ) {
int m = n >> 1;
... | c++ python | [6, 7] |
4,801,284 | 4,801,285 | button1.Attributes.Add("onclick", "javascript:window.open('page1.aspx?CheckedItem=" + checkedItem.ToString() + "'');"); is not working properly | <p>my client side code button1.Attributes.Add("onclick", "javascript:window.open('page1.aspx?CheckedItem=" + checkedItem.ToString() + "','mywindow',');"); is not executing on the first click.But it is working fine from second click onwards.I wrote this code inside the button click event.</p>
<p>I had tried to put this... | c# javascript asp.net | [0, 3, 9] |
1,686,194 | 1,686,195 | What is console.log and how do I use it? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/4539253/what-is-console-log">What is console.log?</a> </p>
</blockquote>
<p>I see this line in a lot of jquery scripts out there. I assume it's used for debug.</p>
<p>Where can I see this log?</p>
| javascript jquery | [3, 5] |
4,895,406 | 4,895,407 | Creating a Game Server | <p>I'm interested in creating a server for an undetermined multiplayer game, either PC or mobile based. Any game server would obviously be event driven, asynchronous, and fast. I'm very experienced in web development, where it's common to use a framework such as Symfony for PHP or Django for Python. </p>
<p>Is there a... | android iphone | [4, 8] |
3,234,840 | 3,234,841 | ASP.NET one-to-one chat application | <p>I have developed a simple ASP.NET Ajax chat appliaction.I want to upgrade it.In my project I have an online user list and I am clicking one of them to open a new web browser window (I am doing this with javascript window.open() ). Now I want to improve my project.</p>
<p>I want to open a dynamic div instead of a n... | javascript jquery asp.net | [3, 5, 9] |
4,582,703 | 4,582,704 | jQuery: select random elements | <p>How can I select the first 5 random elements</p>
<pre><code><ul>
<li>First</li>
<li>Second</li>
<li>Third</li>
...
<li>N</li>
</ul>
</code></pre>
<p><a href="http://blog.mastykarz.nl/jquery-random-filter/" rel="nofollow">I'm using thi... | javascript jquery | [3, 5] |
2,120,425 | 2,120,426 | Browsers syntax error in js depending on the server...only for some browsers | <p>This is a follow up to:
<a href="http://stackoverflow.com/questions/6680244/debian-all-browsers-jquery-compressed-breaks-all-js-but-uncompressed-works-fin">Debian - all browsers jquery compressed breaks all js, but uncompressed works fine</a></p>
<p>I have more information now that requires a new way of thinking ab... | javascript jquery | [3, 5] |
2,747,651 | 2,747,652 | Hidding or deleting text nodes | <p>I need to hide all form's content and replace it ( .find('*').each() {$(this).hide} doesn't work) I have problem hiding text nodes :</p>
<pre><code> <form onsubmit="javascript:... ">
<!--text node --> bad&nbsp;
<input type="radio" name="imgvote" value="1" style="display: none;">
... | javascript jquery | [3, 5] |
3,544,445 | 3,544,446 | Run jquery image resizer after image is appended | <p>I am using this jQuery plugin to re-size images. <a href="http://hirdet2.extra.hu/kepresize/" rel="nofollow">http://hirdet2.extra.hu/kepresize/</a> .</p>
<pre><code>$(document).ready(function(){
$('#content img').kepresize({maxWidth: 200,maxHeight: 150});
....
....
$(... | javascript jquery | [3, 5] |
3,086,582 | 3,086,583 | Explain this: CheckBox checkbox = (CheckBox)sender; | <p>While going through the checkBox I found there is written </p>
<pre><code>CheckBox checkbox = (CheckBox)sender
</code></pre>
<p>on <code>checkBox1_CheckedChanged</code> event.</p>
<p>Please explain what it means?</p>
| c# asp.net | [0, 9] |
5,453,610 | 5,453,611 | How to save a newly created dropdown and textfield in my database that are created from clicking a botton | <p>I have this code on my page. It creates a checkbox, dropdown and textbox in one table row by the click of a botton. My issue is, when i click the save botton it doesnt save the created checkbox, dropdown and textbox, it only saves the one that was first showing on the page.
function addRow(tableID)
{
... | php javascript | [2, 3] |
4,455,172 | 4,455,173 | android: how to pass values from one broadcast receiver to another? | <p>i have this broadcastreceiver that executes some code from time to time and triggers itself again by setting a timer (alarmmanager). the result of the calculations is an integer value, which should be used as input for the next time the algorithm is executed. therefore, i need to store this value.</p>
<p>i don't wa... | java android | [1, 4] |
2,097,759 | 2,097,760 | Resources.getString() method doesn't exist | <p>From book I learned:</p>
<blockquote>
<p>For standard strings use Resources.getString(R.string.deal_details)
For plurals use Resources.getQuantityString(R.plurals.deal_service_
new_deal, 1);</p>
</blockquote>
<p>But <code>Resources</code> class doesn't have this method. Why? Whaat is wrong here?</p>
| java android | [1, 4] |
2,004,722 | 2,004,723 | javascript event listener for changes in an object variable | <p>I have an object variable that has several properties.</p>
<pre><code>MyVar = {"prop1" : 0, "prop2": 0....};
</code></pre>
<p>How do I write an event listener that listens for a change in any of the properties.</p>
<p>Thanks for your suggestions.</p>
| javascript jquery | [3, 5] |
327,872 | 327,873 | DataTable.Select() Property: Giving Index Out of Bound Exception | <p>I'm trying to select only those rows which have Parent ID = 0</p>
<p><pre></p>
<code>int predecessor = Parent;
StringBuilder valuePath = new StringBuilder();
valuePath.Append(Parent.ToString());
DataRow[] drPar;
while (true)
{
drPar = dt.Select("MenuID=" +... | c# asp.net | [0, 9] |
1,565,227 | 1,565,228 | Function c++ ,equivalent in java | <p>I have the following problem, the following program is in c + +.;</p>
<pre><code>#include <stdlib.h>
#include <stdio.h>
#include <malloc.h>
typedef enum { TR, SYS, INT, BAT } TIPOS ;
typedef enum { LIBRE , EJECUCION , LISTO , BLOQUEADO } PCBestado ;
struct PCB {
int PID;
PCBestado estado ;... | java c++ | [1, 6] |
4,855,506 | 4,855,507 | jquery show/hide two divs on click and hide link | <p>Im using the following JS</p>
<pre><code><a href=# onClick="if($(this).next('div').css('display') == 'none') { $(this).next('div').show('fast'); } else { $(this).next('div').hide('fast'); } return false;">Add a Street Address</a>
</code></pre>
<p>and the following html</p>
<pre><code><div id=entry&... | javascript jquery | [3, 5] |
480,851 | 480,852 | Converting array/matrix initialization code from C++ to C# | <p>I am in the middle of converting C++ code to C#. I am having trouble with some C++ array static initialization. Consider the following piece of C++:</p>
<pre><code>int Values[][32] = {
{}, {}, {1, 2, 3}, {1}
};
</code></pre>
<p>What this does is creates a matrix of 4x32 integers. I need to do same or similar in... | c# c++ | [0, 6] |
2,405,728 | 2,405,729 | How to get an image name using jQuery? | <p>Let's says I have :</p>
<pre><code><img src='static/images/banner/blue.jpg' />
</code></pre>
<p>Using jQuery, how could I get the <code>blue</code> data ?</p>
<p>If I use <code>$('img').attr('src')</code>, I can get the whole URI. In that case, what is the best way to remove the extension and all the path ?... | javascript jquery | [3, 5] |
4,711,505 | 4,711,506 | How can it be detected if a page is on background or foreground with jquery/javascript? | <p>The title explains itself. How can I detect if a web page has gone to background?</p>
<p>I'm implementing a chat application and I'll use this information to decide showing new message notifications. I suppose that GMail uses something like that. If the page is on background, it shows desktop notifications (on chro... | javascript jquery | [3, 5] |
5,383,109 | 5,383,110 | Javascript function not displaying values or writing them to textbox | <p>Basically I am creating a simple function in javascript to check if a textbox value has changed from what it was originally and if so to warn the user the impact the change will have. If the user clicks yes, do nothing, if they click no then I want to set the value of the textbox back to the original value it shoul... | javascript asp.net | [3, 9] |
218,753 | 218,754 | Android database from website | <p>i was wondering a few things.</p>
<p>I Have a database with 3 rows, and i have to use the database on my website cause it has to be shared with every one that downloads my app cause they can add more things.</p>
<p>Table is called </p>
<p>Poka</p>
<p>And the rows are
- ID
- word(TEXT)
- reply(TEXT)</p>
<p>Th... | java android | [1, 4] |
1,468,905 | 1,468,906 | a relationship between C++ / C# and PHP | <p>I couldn't find any document about a relationship between C++ / C# and PHP.
Can someone share example page or codes ( like echo, functions etc ) ?
thank you</p>
<p>--- edit --
I want to use C++ or C# in PHP</p>
| c# php c++ | [0, 2, 6] |
601,190 | 601,191 | Creating divs with different id's | <p>i have one question regarding creation of divs:</p>
<p>I have button, when user clicks on it, javascript (or jquery) needs to create a div. But when user clicks again, it should create another div, but with different id. So, every time user clicks should be created div with different id.</p>
<p>I partialy know how... | javascript jquery | [3, 5] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.