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
393,605
393,606
OnTouchListener() will only execute once while button is pressed and held down
<pre><code>brown = (Button) findViewById(R.id.brownButton); brown.setOnTouchListener(new OnTouchListener() { public boolean onTouch(View v, MotionEvent event) { if (event.getAction() == MotionEvent.ACTION_DOWN) { count++; Log.d("count", "" + count); ...
java android
[1, 4]
1,197,134
1,197,135
associative arrays as selectors and values in jquery
<p>Is it possible to implement associative arrays as Selectors and Values.</p> <p>I have an array</p> <pre><code> var obj = { surgeon:1, asstSurgeon:2, anesthe:3, nurse:4, scrub:5,....... }; </code></pre> <p>I am able to implement like this.</p> <pre><code>$("#surgeon").click(function(){ $("$hiddenvariable").v...
javascript jquery
[3, 5]
3,989,436
3,989,437
allow user to type in 1 or more quantity using jquery?
<p>I have the following code:</p> <pre><code>quantity = $('div.ProductNameText').text().match(/Exclusive Handmade Box/g).length; if(quantity) { $("#kitProduct #Quantity").attr("value", quantity); } </code></pre> <p>I would like to make it so that the user can enter 1 or MORE. At the moment it forces the quantity ...
javascript jquery
[3, 5]
3,753,626
3,753,627
How can I show array and button by click?
<p>I have a simple table with buttons: <code>&lt;button class='btn btn-info' href='#'&gt;More&lt;/button&gt;</code>, and I need that when user click by "More" button then array ($records, for example) and "Less" button will be shown under "More" button. For example, <code>$records[0]="1", $records[1]="2"</code>. Please...
php javascript jquery
[2, 3, 5]
1,591,224
1,591,225
Dynamically update total through dropdown
<p>i have a bit of a dilemma, i am trying to make it so that when a user selects an option from a dropdown box it dynamically updates a total on the same page, without any reloading.</p> <p>In other words i have 5 different options in a dropdown box (1,2,3,4,5) and if the user selects 1 it needs to put it through a si...
javascript jquery
[3, 5]
4,134,447
4,134,448
change and onchange don't work on my computer. what might be causing this?
<p>The following code should pop up an alert box whenever I select a file or make a change to the textbox and click out of it.</p> <p>I believe the code SHOULD work, but it doesn't. Isolating the code snippets on JSFiddle and running them even works.</p> <p>Is anything wrong with my code? If not, could something on m...
javascript jquery
[3, 5]
4,749,776
4,749,777
find() Function return null in IE8 and IE7
<p>I work on XMLResponse and try to find count value from xmlresponse.For that i write this code</p> <p>this is my response in alert box </p> <p><img src="http://i.stack.imgur.com/6tNPJ.png" alt="Response"></p> <pre><code>cnt = Math.ceil($(xmlResponse1).find("count").text()/250); alert(cnt); </code></pre> <p>it wor...
javascript jquery
[3, 5]
4,286,707
4,286,708
Adding floats with javascript
<p>I'm using jQuery, and I want to sum up the values in my table column, everything seems to work fine, but my value is returned a string with all the values added like: <code>123.5013.0012.35</code></p> <p>How can I sum these properly?</p> <pre><code>var totals $(".add").each(function(i) { totals += parseFloat($(...
javascript jquery
[3, 5]
5,813,233
5,813,234
Jquery Dialog pop up doesn't work with window.showModalDialog(..)
<p>I have an aspx page that i call in a web browser's new tab. This page basically make use of jquery dialog pop up - That is, on this page there is a grid filled with data, so as soon as the user clicks on one of the rows then jquery dialog pop up shows up to allow the user to edit the data for this particular row. ...
c# jquery asp.net
[0, 5, 9]
2,019,329
2,019,330
Cloning content to a slider
<p>I'm working on a responsive design, and would like some of my content in a slider when it's below a certain size. However, I would like to avoid rendering the data twice, so the idea is to clone the content and append it to the slider on <code>(document).ready()</code>, then initialise it. That way, I can show my co...
javascript jquery
[3, 5]
259,190
259,191
hosting a webserver inside iphone and android phones
<p>i am planning to do some servlet for my app to work offline on both android and iphone devices. for this i need to have the stubbed responses on a server.i saw there is one such server for android (<a href="http://code.google.com/p/i-jetty/" rel="nofollow">http://code.google.com/p/i-jetty/</a>). is there is similar ...
php android iphone
[2, 4, 8]
5,641,030
5,641,031
find control in panel in datalist
<p>I had Datalist and inside it panel and inside panel label and I want to find label inside panel inside datalist.I did my code but it didnot work well</p> <p> protected void DataList1_ItemDataBound(object sender, DataListItemEventArgs e) {</p> <pre><code> Label LblHead = e.Item.FindControl("Label1") as Label...
c# asp.net
[0, 9]
4,066,428
4,066,429
Making ASP label visible in Javascript?
<p>This is my label I want to display if the user have left out field before clicking the button. What am I doing wrong because nothing is happening when I click the button.</p> <pre><code>&lt;asp:Label ID="lblError" runat="server" Text="* Please complete all mandatory fields" style="display: none;" &gt; &lt;/asp:Lab...
asp.net javascript
[9, 3]
5,105,180
5,105,181
What is ?? in my Property?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/446835/what-do-two-question-marks-together-mean-in-c">What do two question marks together mean in C#?</a> </p> </blockquote> <p>can any one explain this syntax.</p> <pre><code>protected string CompanyProductSer...
c# asp.net
[0, 9]
2,460,939
2,460,940
javascript versus jQuery: highlighting some text, at the same time as, changing visibility of other text
<p>This javascript code from RoToRa does what I want: <a href="http://jsbin.com/ayoqem/7/edit#javascript,html,live" rel="nofollow">http://jsbin.com/ayoqem/7/edit#javascript,html,live</a> What jQuery code will do the same task? Which is better?</p>
javascript jquery
[3, 5]
5,096,569
5,096,570
Is it possible to copy javascript with javascript?
<p>Is it possible to copy javascript with javascript? For example:</p> <pre><code>&lt;div class="copyThis"&gt; &lt;script language="javascript"&gt; $(function() { $("#click").click(function(e){ $('.copyThis').clone().appendTo('#copyArea'); e.preventDefaul...
javascript jquery
[3, 5]
845,263
845,264
Problem in getting the parseInt(data) return NaN
<p>I am having a peculiar problem with getting an integer from an ajax response. Whenever I call the following code, parseInt(data) returns NaN despite data being a string.</p> <pre><code>function(data) //return information back from jQuery's get request { $('#progress_container').fadeIn(...
javascript jquery
[3, 5]
4,792,543
4,792,544
Class and acessibility problem c# & asp.net
<p>i have small class like</p> <pre><code>public static class TSM { static string TokenID = ""; public static string GetTSM() { TokenID = new Guid().ToString(); return TokenID; } } `GetTokenID `will return a string </code></pre> <p>i just call GetTokenID from my aspx page like</p> ...
c# asp.net
[0, 9]
4,292,080
4,292,081
Change dynamically an image
<p>Hi guys i'm currently have some issue by changing dynamically an image.</p> <p>My code :</p> <pre><code>&lt;a href="#no-reload" id="dropMenuButton49" class="dropMenuButton"&gt; &lt;input id="searchEngineImage" type="image" src="http://xxx.com/image.php?i=yahoo-icon.png"&gt; &lt;input type="image" src="images/down....
javascript jquery
[3, 5]
4,957,841
4,957,842
ASP.net UI refresh issue
<p>I am using a checkbox and a checkbox list in one of my web pages.</p> <p>The UI is like</p> <p>Color - Header Checkbox</p> <p>Checkboxlist items are</p> <p>Red </p> <p>Green</p> <p>Blue</p> <p>Yellow </p> <p>Complete selection - clicking on the header checkbox selects/ deselects the entire checkbox list.<...
javascript asp.net
[3, 9]
3,833,001
3,833,002
HtmlGenericControl("td") colspan
<p>I am new to asp.net c# so please anyone can help me with below code:</p> <pre><code>var td1 = new HtmlGenericControl("td"); </code></pre> <p>How can I make this td colspan to anyvalue?</p> <p>Even how can I add id or class value?</p>
c# asp.net
[0, 9]
3,609,855
3,609,856
Using Assertions in android is avoided
<p>i am doing one Android app.My client is asking me to include assertions in the android code.I have googled across and found that Commonsware <a href="http://stackoverflow.com/questions/9603326/assertions-android-programming">says</a> that assertions should be avoided in android code.But i need a strong reason why u...
java android
[1, 4]
1,003,051
1,003,052
What is the best way to organise your JavaScript?
<p>Currently now I'm organising my JavaScript functions as follows:</p> <pre><code>var websiteName = { options: { optionOne: "Boom!", optionTwo: "Hello World!" }, init: function () { websiteName.homepageOnlyFunction(); websiteName.anotherFunction(); }, homepageOnlyFu...
javascript jquery
[3, 5]
1,240,877
1,240,878
Chaining Arguments to a Function
<p>I have often looked at API say the android api where you can add a pipe between arguments to combine them. Say *CENTER_VERTICAL|CENTER_HORIZONTAL*. How is this done ? Can anyone show me an example where i can pass multiple arguments to a function chained as above ? How do i read them ? </p> <p>Kind Regards</p>
java android
[1, 4]
429,467
429,468
implementing php & jquery for form validation
<p>I have a live preview form: <a href="http://davidwalsh.name/jquery-comment-preview" rel="nofollow">http://davidwalsh.name/jquery-comment-preview</a> Which uses jquery to display the preview in real time:</p> <pre><code>$(document).ready(function() { $('#live-preview-form input, #live-preview-form textarea').bind(...
php jquery
[2, 5]
3,338,013
3,338,014
Comparing multiple field values ​​together
<p>How can I compare multiple input field values and if there is a match alert 'There are similar values' using jQuery?</p> <pre><code>&lt;input value="111"&gt; //similar &lt;input value="222"&gt; &lt;input value="111"&gt; //similar &lt;input value="333"&gt; </code></pre> <p>This html code above should alert 'There a...
javascript jquery
[3, 5]
378,973
378,974
how to receive the value
<p>the php file:</p> <pre><code>if (!isset($servers[$ext])){ die('no match data!'); } return $output; </code></pre> <p>the html file:</p> <pre><code>$.ajax({ type:"get", url:"/tests/api/?u="+u, dataType:"json", data:"", success:function result(data){ $("#show").html(data); $("...
php jquery
[2, 5]
4,633,549
4,633,550
Does the Motorola Xoom have drawing bugs, or is it just me?
<p>I've developed a little game and a friend/colleague of mine tried it on his Motorola Xoom tablet, only to find the rendering was all messed up! I stripped everything down trying to simplify everything to see what was wrong, and I'm thinking the Motorola Xoom is just buggy when it comes to drawing. The exact same APK...
java android
[1, 4]
5,815,632
5,815,633
How to set property to Guid in aspx page
<p>I have the following code in one of my aspx pages:</p> <pre><code>&lt;% foreach (Dependency dep in this.Common.GetDependencies(this.Request.QueryString["Name"])) { %&gt; &lt;ctl:DependencyEditor DependencyKey='&lt;%= dep.Key %&gt;' runat="server" /&gt; &lt;% } %&gt; </code></pre> <p>When I run it, I get...
c# asp.net
[0, 9]
4,459,218
4,459,219
Sys.WebForms.PageRequestManagerServerErrorException
<p>I am using the asp.net with c# and using the update pannel as well as flash control i am getting the error sometime not all time and no page navigate after then plz help me out</p> <p>following is the massange on the pop up window:-</p> <p>"Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occu...
c# asp.net
[0, 9]
5,171,989
5,171,990
drag and drop in php
<p>A <strong>drag and drop</strong> work in <strong>firefox</strong> but when see <strong>ie</strong>(internet explore) <strong>drag and drop</strong> is not work a code in php</p> <p>please help me.</p> <p>I use jquery ui librey ui.droppable.js but in some error</p> <p>$.ui is undefined [Break On This Error] </p>...
php javascript
[2, 3]
2,763,938
2,763,939
Make flashlight app work when the application is closed
<p>I have this code that allows me to press a button to turn on my phones flashlight. What would be the best way to keep the light on, while the application is closed? I heard asynctask is good, but I read that it's meant for a background task that will communicate with the UI. What kind of "thread" should I use for th...
java android
[1, 4]
2,197,396
2,197,397
how to make iphone app in c#
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/8126248/is-there-a-way-to-make-applications-in-c-sharp-for-iphone">Is there a way to make applications in C# for iphone</a> </p> </blockquote> <p>Are there ways to create iPhone apps in C#? If so, what are they?...
c# iphone
[0, 8]
720,212
720,213
Simulate a click on JavaScript function in Java
<p>I'm writing a program that interacts with a website automatically in Java. I figured out how to build and send GET/POST requests to simulate a click or form submit. But I encountered a link that runs a JavaScript function.</p> <pre><code>&lt;a href="javascript:function()"&gt;Run&lt;/a&gt; function function() { ...
java javascript
[1, 3]
1,470,068
1,470,069
Bind duplicate rows in Dataset once
<p>I am merging two datasets and I wish that duplicate rows are only bind once ,how can I achieve this ?</p> <pre><code> protected void RadGrid1_NeedDataSource(object source, GridNeedDataSourceEventArgs e) { showRelatedcat(); DataSet ds = new DataSet(); DataSet ds_frd = new DataSet(); String frdQuery =...
c# asp.net
[0, 9]
29,695
29,696
Which of these jQuery JavaScripts will have better performance?
<p>I have sections with headers. Clicking the header collapses and expands the section below it. A class is also applied or removed to the header for styling purposes. There are 9 of these sections and headers. </p> <pre><code>$('.header').click(function() { $(this).toggleClass('open'); $(this).next()....
javascript jquery
[3, 5]
617,153
617,154
jQuery: Close DIV by clicking anywhere apart from the DIV itself?
<p>I have a div that slides down when a button is clicked, and I would like to slide up the div when a user:</p> <ol> <li>Clicks anwhere except within the DIV itself</li> <li>Click a close button within the div.</li> </ol> <p>Currently I've got it to a stage where, you click an element with the class <code>.panel-tab...
javascript jquery
[3, 5]
4,041,891
4,041,892
jQuery clone() not cloning event bindings, even with on()
<p>I have created a series of custom jQuery events for use in mobile web applications. They work great and have been tested. However, I have run into a small problem which I am having trouble understanding. </p> <p>I am using <code>.clone()</code> on a few elements within the DOM, which contain a button. The button ha...
javascript jquery
[3, 5]
250,355
250,356
When I add two scripts to a html page..one is doesnt work
<p>I created two jquery and and script tags to calender an confirmation ..but when they are in seperate html pages it works well..but it doesnt work when the two scripts are in the same page..Why is that?</p> <pre><code>&lt;script src="Scripts/jquery-1.7.2.min.js" type="text/javascript"&gt;&lt;/script&gt; &lt;script s...
php javascript jquery
[2, 3, 5]
5,637,239
5,637,240
Before window.onload event
<p>In Jquery there's $(window).load() which happens after $(document).ready(), when the page has fully loaded. From what I understand $(document).ready() happens even before the page fully loaded. In plain javascript there's window.onload which corresponds to $(window).load() Jquery. What javascript event corresponds t...
javascript jquery
[3, 5]
3,307,719
3,307,720
Multiple js with (document).ready(function()
<p>I have on my page a search system , a slideshow and a carousel running with js, but the carousel doesn't run :</p> <p>The search begins with :</p> <pre><code>$('document').ready( function() { $("#search_query_top") </code></pre> <p>The slideshow begins with : </p> <pre><code>$(window).load(function()...
javascript jquery
[3, 5]
2,938,416
2,938,417
Jquery - call function when blur+clicking certain element?
<p>I want to call a function when a certain field gets blurred, but only if a certain element is clicked. I tried</p> <pre><code>$('form').click(function() { $('.field').blur(function() { //stuff }); }); </code></pre> <p>and</p> <pre><code>$('.field').blur(function() { $('form').click(function() ...
javascript jquery
[3, 5]
4,414,716
4,414,717
Apk Silent installation android
<p>I want to know, how to install apk programmatically without using intent(i.e. silent installation without user prompt)?</p> <p>I did r&amp;d regarding this, only possible if the device is rooted but i saw few application like Appbrain, and airwatch, am asking for enterprice app, is there any workaround for this?</p...
java android
[1, 4]
1,223,854
1,223,855
Android to PHP and Back
<p>Can someone provide an example of android code to send simple data to PHP server? I need to just send several string, double, and int variables from a form that was created on android device, convert those entries into a pdf document, then send that back to android. If I could just get a sample of at least sending i...
php android
[2, 4]
2,873,300
2,873,301
jQuery Toggle HTML On Click
<p>When i click on the button the HTML changes, But when i click again, the slide toggle fires up but the I want to put back the html as Show Me.</p> <pre><code>&lt;div id="show"&gt;Show Me&lt;/div&gt; &lt;div id="visible"&gt;Hello, My name is John.&lt;/div&gt; $(document).ready(function(){ $("#show").click(funct...
javascript jquery
[3, 5]
2,178,353
2,178,354
TypeError: window.open is not a function
<p>I keep getting this error on firebug -> TypeError: window.open is not a function</p> <p>code:</p> <pre><code> $(document).ready(function() { $('.div').click(function() { var link = $(this).data('link'); window.open(link); }); }); </code></pre> <p>Isn't that function supposed to work...
javascript jquery
[3, 5]
583,638
583,639
How to focus first field and select its content, when user clicked on the link?
<p>HTML:</p> <pre><code>&lt;div class="control-group"&gt; &lt;label class="control-label" for="some-id-1"&gt;&lt;a href="http://example.com/some-id-1" target="_blank"&gt;Text1&lt;/a&gt;&lt;/label&gt; &lt;div class="controls"&gt; &lt;input type="text" id="some-id-1" name="some-id-1"&gt;&lt;br&gt; ...
javascript jquery
[3, 5]
4,271,411
4,271,412
If I learn PHP first, will it be difficult to learn C# next?
<p>I want to be a .net developer for the web. However, I see most freelanc developer tend to provide PHP development more than ASP.NET. The question now, is it OK if I learn PHP first and after that I go with C# or will this learn me bad habits that can lead to difficulty in learning C# or maybe I can't pick it up the ...
php c#
[2, 0]
43,186
43,187
5 star rating with jquery gives an Unexpected string
<pre><code>$('.star').mouseover(function (){ var star = $(this).index()1; $(this).parent().css("background-position","0 -" (32 * star) "px"); }); $('.star-rating').mouseout(function (){ var originalresult = $(this).attr('id').split('result')[1]; $(this).css("background-position","0 -" (32 * originalres...
javascript jquery
[3, 5]
2,099,002
2,099,003
Odd behavior for DevicePolicyManager.getPasswordMinimumLength
<p>I have an odd issue with setting the minimum password length via DevicePolicyManager in Android. If I set the value via setPasswordMimumumLength, subsequent calls to the getter return the correct value. However, when I reboot the device the getPasswordMimimumLength function returns zero. I've observed this both on 2...
java android
[1, 4]
3,019,107
3,019,108
IPC between Python & Java processes
<p>I want to spawn a Java process from python script. And then read the stderr stream of the java process from the calling python script. Can this be done using pipes?</p> <p>I try to spawn the java process from python script using python's win32 api's. I create the java process having the <strong>write end of pipe</s...
java python
[1, 7]
964,683
964,684
What is a good & free game engine?
<p>For C++, Java, or Python, what are some good game + free game engines that are easy to pick up?</p> <p>Any type of game engine is okay. I just want to get started somewhere by looking into different game engines and their capabilities.</p>
java c++ python
[1, 6, 7]
4,714,621
4,714,622
Display a link to the status of my latest tweet using jQuery & how to execute it?
<p>So I have jQuery in the <code>&lt;head&gt;</code> of my page as this:</p> <pre><code>&lt;script language="javascript" type="text/javascript" src="./javascript/jquery-1.2.6.js"&gt;&lt;/script&gt; </code></pre> <p>and already I was gratefully given this code that will display a linked text that reads 'Read' and the ...
javascript jquery
[3, 5]
1,423,819
1,423,820
Identify caller
<p>I have a link in some html which calls a javascript function I'm writing. The call must be inline so the code is as follows:</p> <pre><code> &lt;a href='#' onclick='quipManager.getQuip(1, $(this))'&gt;Test&lt;/a&gt; </code></pre> <p>In the getQuip function I use the this reference to modify the div which wraps the...
javascript jquery
[3, 5]
1,385,324
1,385,325
Pushing a document.ready callback: is it possible?
<p>I already have a jQuery(document).ready fragment defined. Since I'm working on a large-scale modular project, I would like to allow components to push callbacks to the document.ready event in order to run their own code without modifying the global javascript file.</p> <p>One viable way is to define an array of cal...
javascript jquery
[3, 5]
2,040,620
2,040,621
Call jQuery function from PHP
<p>How do I call a jQuery function from PHP?</p> <pre><code>&lt;?php if ($error == 1) { ?&gt; &lt;script type="text/javascript"&gt; error('1'); &lt;/script&gt; &lt;? } ?&gt; </code></pre> <p>It doesn´t work.</p>
php jquery
[2, 5]
1,435,922
1,435,923
PHP returns Invalid Request Error
<p>I am saving data from Android device to MySQL. My code works fine using Localhost, but when I try it using my hosted domain. It gives me and error.</p> <p><strong>Error returned</strong></p> <pre><code>ERROR The requested URL could not be retrieved While trying to process the request: POST /insert.php HTTP/1.1 T...
php android
[2, 4]
5,385,791
5,385,792
Difference between HtmlGenericControl and TagBuilder
<p>This is more or less the same as this question, <a href="http://stackoverflow.com/questions/3043800/difference-between-htmltable-and-tagbuildertable">Difference between HtmlTable and TagBuilder(&quot;table&quot;)</a> and <a href="http://stackoverflow.com/questions/3043654/why-use-tagbuilder-instead-of-stringbuilder"...
c# asp.net
[0, 9]
1,608,885
1,608,886
How to avoid page refresh in onclick while using _dopostback
<p>Am using some _dopostback function to get the javascript variable id in c# textbox control onclicking.Now I want to know how to avoid page refresh on clicking each of my dynamically created div(on clicking this div the textbox value changes).The code below:</p> <p>In c# :</p> <pre><code>this.GetPostBackEventRefere...
c# javascript
[0, 3]
5,445,023
5,445,024
filestream fileshare access by 2 process to read and write at the same time
<p>I got a primitive website, where the aspx webform and socket server access flat files, which stores the data. The socketserver will be accessing the same exact files to write, which is accessed by the aspx c# code for reading. I think there may be an issue with locking the files. I think it is the higher priority fo...
c# asp.net
[0, 9]
1,821,838
1,821,839
Index outside the bounds of the array
<p>During local my system its working but when i uploaded it on-site i encountered problem.. Do i need some dll?</p> <blockquote> <p>Index was outside the bounds of the array.<br> Exception Details: System.IndexOutOfRangeException: Index was outside the bounds of the array.</p> </blockquote> <pre><code>Line 6: ...
c# asp.net
[0, 9]
4,551,513
4,551,514
keycode and charcode
<p>Why people write statement like</p> <p>e.keyCode ? e.keyCode : e.charCode</p> <p>Some people also does e.which</p> <p>Please tell</p>
javascript jquery
[3, 5]
1,203,028
1,203,029
empty array has '__proto_' key
<p>So I have this </p> <pre><code>(function($) { var App= { test: [] } console.log(App.test); //returns: &gt;&gt; [index: function, has: function] ... }(jQuery)) </code></pre> <p>Can anyone tell me why those keys are being added? Upon expansion, chrome shows it as the '<strong>proto</strong>' key</p> <p>...
javascript jquery
[3, 5]
5,612,283
5,612,284
Working with a narrowed down DOM using jQuery
<p>I am currently trying to figure out a way to work within a selected <code>&lt;div&gt;</code> in order to be able to send a text formatted email. </p> <p>So there is a button says "email". When a user clicks on it, it grabs a closest div as below.</p> <pre><code>var selectedDiv = $(callingElement).closest(".myClass...
javascript jquery
[3, 5]
2,097,375
2,097,376
Is there any difference between initEvent+dispatchEvent and jquery's trigger('click')
<p>What is the difference between creating an event using initEvent and later dispatching the event using dispatchEvent in JavaScript and using jquery's trigger('click') <a href="http://api.jquery.com/trigger/" rel="nofollow">trigger</a></p>
javascript jquery
[3, 5]
393,015
393,016
Append Order - jQuery
<p>I am trying to get the string to order by how it is displayed (red,blue,orange,black). For some reason, it will append the order randomly. For Example: it would output (blue,orange,red,black). Any help would be great. Thanks.</p> <pre><code>var tCookie = "red,blue,orange,black"; var Cookies = tCookie.split(','); i...
javascript jquery
[3, 5]
2,801,575
2,801,576
Error message in Eclipse
<p>Can any one tell me what shall I do when <code>Eclipse</code> shows this message:</p> <pre><code>[2012-02-28 10:57:34 - LMP] Android requires compiler compliance level 5.0 or 6.0. Found '1.7' instead. Please use Android Tools &gt; Fix Project Properties. </code></pre> <p>Actually it was shown when I took a project...
java android
[1, 4]
5,524,862
5,524,863
Create an app where I can physically write things out with my finger
<p>I am trying to create an app where I can physically write things out with my finger and erase them? Something like a big sticky note that you can just write on?</p> <p>How Would do this, i am really new to programming so i would really appreciate your help.</p> <p>My question is similar to a question asked here, s...
java android
[1, 4]
5,429,643
5,429,644
Disable submit button until textarea ihas more than 100 chars
<p>How can I disable the submit button until the chars of a textarea are more than 100 chars? </p> <p>This is a code used to check if the user has selected to upload an image. Please inform me how should I name my textarea and guide me through the installation of it.</p> <pre><code>$(function() { $('form').submit(...
php javascript
[2, 3]
1,189,237
1,189,238
Is there only Ajax part of jQuery?
<p>Is there only Ajax part of jQuery? The matter is I do not need the whole library but only its Ajax part (I need to include this part on several iframes). </p>
javascript jquery
[3, 5]
3,323,524
3,323,525
javascript pop-up error
<p>I've an image column in an <code>asp:repeater</code>.</p> <pre><code>&lt;asp:Image ID="telImage" runat="server" ImageUrl="../../images/telefon.png" /&gt; </code></pre> <p>I add <code>onClick</code> attribute in <code>rptList_ItemDataBound</code></p> <pre><code>telImage.Attributes.Add("onClick", "javascript: Redir...
c# javascript asp.net
[0, 3, 9]
3,510,657
3,510,658
Button click event not called
<p>I want to disable a button, only using javascript.</p> <p>I have one button on the form. I want to disable that button from javascript. When I try to do this, the button submit click event is not calling.</p> <p><strong>I used following code on javascript:</strong></p> <pre><code>document.getElementById('&lt;%=im...
c# asp.net
[0, 9]
3,205,798
3,205,799
media player equalizer
<p>I am developing an android media player application. Can you anyone tell me please how can I assign the preset value to the songs and play it.</p> <p>Could you please give me the solution?</p> <p>The below is the code which am using ,</p> <pre><code>equalizer = new Equalizer(1, audioSessionId); equalizer...
java android
[1, 4]
1,944,617
1,944,618
Plugin for flat hierachy structure
<p>I'm looking for a ASP.NET library or jQuery plugin for creating <em>Org Charts</em> like this:</p> <p><img src="http://i.stack.imgur.com/Q6R75.png" alt="Flat Org Chart"></p> <p>I've been looking at the <a href="https://github.com/wesnolte/jOrgChart" rel="nofollow">jOrgChart</a> plugin, but it is more suitable for ...
jquery asp.net
[5, 9]
5,469,441
5,469,442
How do you name your classes when it comes to JavaScript vs CSS?
<p>There are some classes that are there for css, and there are some classes that are there for JavaScript.</p> <p>What naming convention do you use to denote "look for this class in the JavaScript file(s)" as opposed to: "Look for this class in the css file(s)" as opposed to "Look for this class everywhere".</p>
javascript jquery
[3, 5]
2,065,140
2,065,141
Android service - check if variable asynchronously changes over period of time?
<p>Let's say I have a boolean isAction. In my service I want to run some sort of timer mechanism and if this boolean changes state, call some function X, else do nothing. </p> <p>What would be the best way to do this? I've tried using timers to no avail, and I'm not sure if a handler with postDelayed would be appropri...
java android
[1, 4]
2,492,472
2,492,473
Android, How to prevent the screen call display
<p>I'm developing caller id application and till now i'm able de detect incoming call and replace the default screen call following :</p> <pre><code>public class IncomingCallListener extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { Bundle extras = intent.getExtras(); ...
java android
[1, 4]
3,580,549
3,580,550
Jquery set enter key textarea in My Code
<p>I have an Jquery submit textarea, now I want to set textarea submit without button submit. Just using enter key.</p> <pre><code>&lt;textarea id="ctextarea"&gt;&lt;/textarea&gt; </code></pre> <p>Here it's the JS :</p> <pre><code>$('.comment_button').live("click",function() { var ID = $(this).attr("id"); v...
php javascript jquery
[2, 3, 5]
5,244,311
5,244,312
Javascript JQuery help PHP
<p>I have tried everything I could but the submit button isnt sending <code>something.php</code> the list of numbers that are added in the list.....</p> <p><a href="http://pastebin.com/0NexQW6a" rel="nofollow">http://pastebin.com/0NexQW6a</a></p> <p>something.php's code:</p> <pre><code>&lt;?php $username= $_POST[...
php javascript jquery
[2, 3, 5]
4,097,877
4,097,878
Button connecting to ContactManager
<p>If I want to connect to this Activity in Android:</p> <pre><code>package com.clayton.Calendar { public static final String TAG = "ContactManager"; /** * Called when the activity is first created. Responsible for initializing the UI. */ @Override public void onCreate(Bundle savedInstanceState) { Log.v(...
java android
[1, 4]
3,996,388
3,996,389
How to get text around an element?
<p>If I have</p> <pre><code>&lt;div id='wrapper'&gt; &lt;fieldset id='fldset'&gt; &lt;legend&gt;Title&lt;/legend&gt; Body text. &lt;/fieldset&gt; &lt;/div&gt; </code></pre> <p>How could I retrieve the "Body text" without retrieving the text inside of legend tag?</p> <p>For instance, if I wanted to see if...
javascript jquery
[3, 5]
2,437,698
2,437,699
PHP Bayesian Classifier
<p>I'm looking for a Naive Bayesian Classifier for PHP, ideally something equivalent to the Reverend Bayes version written in Python. Does anyone know of such a library?</p> <p>Basically I need to be able to train it with a set of labels and words i.e. GOOD = okay, happy, fun; BAD = wrong, rubbish, awful etc and then ...
php python
[2, 7]
3,512,007
3,512,008
Simpler way to format if statement?
<p>I have an if statement:</p> <pre><code>if(firstString == "no" &amp;&amp; secondString == "no" &amp;&amp; thirdString == "no"){ // Do stuff here } </code></pre> <p>Is there a prettier way to format this? Using <code>false</code> instead of <code>"no"</code> is not an option, since the data I'm checking is from ...
javascript jquery
[3, 5]
380,184
380,185
Writing on SDCard Problem - Android
<p>I'm trying to write a file to my SDcard in my HTC Hero phone. I create the File in my SDCard using:</p> <p>File = new File(path.getAbsolutePath(), "Filename.txt");</p> <p>where path is the path to my externalStorageDirectory (i.e. \sdcard)</p> <p>When I log the path of this file, it does say \sdcard\filename.txt<...
java android
[1, 4]
2,678,188
2,678,189
How to set the environment in which python snippet can run in c++ program?
<p>I have created two files <code>embed.py</code> <code>useEmbed.cpp</code>in my home directory.</p> <p><strong>embed.py</strong></p> <pre><code>import os print os.getcwd() </code></pre> <p><strong>useEmbed.cpp</strong></p> <pre><code> #include &lt;iostream&gt; #include "Python.h" using namespace std; int ...
c++ python
[6, 7]
3,468,848
3,468,849
Header changes while the browser scroll down action
<p>I have a Header with fixed position. I need to change that header while the browser scrolls actions. See below my code. It is not working. Pls help me</p> <pre><code>&lt;style&gt; body { height: 900px; } #header { height: 40px; width: 100%; position: fixed; top: ...
javascript jquery
[3, 5]
4,707,122
4,707,123
Interrupted point at "getAddress(geoLng,geoLat);" go to Double.class. It should go to the method of getAddress().why?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/11673774/execute-the-getaddressgeolng-geolat-nullpointerexception">execute the &ldquo;getAddress(geoLng,geoLat);&rdquo; NullPointerException</a> </p> </blockquote> <p>why do not execute the "getAddress(geoLng,ge...
java android
[1, 4]
3,607,182
3,607,183
How can I unbind JQZOOM in my JQuery Script?
<p>I have this script at the moment, which changes an image when a thumbnail has been changed. I then want JQZOOM to be added to that new image. However, if I put it inside the Onclick event, it gets slower and slower the more times you click on it... I guess because its running multiple instances.</p> <p>Is there any...
php jquery
[2, 5]
1,470,840
1,470,841
how to execute php code within javascript
<pre><code>&lt;button type="button" id="okButton" onclick="funk()" value="okButton"&gt;Order now &lt;/button&gt; &lt;script type="text/javascript"&gt; function funk(){ alert("asdasd"); &lt;?php echo "asdasda";?&gt; } &lt;/script&gt; </code></pre> <p>When the button is pressed i want to execute ...
php javascript
[2, 3]
3,193,768
3,193,769
different small js files per page VS. 1x site-wide js file?
<p>Different pages of my site have different js needs (plugins mainly), some need a lightbox, some dont, some need a carousel, some dont etc.</p> <p>With regards to pageloading speed should i </p> <p><strong>option 1 - reference each js file when it is needed:</strong></p> <p>so one page might have:</p> <pre><code>...
javascript jquery
[3, 5]
3,414,274
3,414,275
display info for each drop down option
<p>I have 2 jQuery drop down menus. The content of the second drop down is dependent on the value chosen from the first.</p> <p>The code is on this link <a href="http://jsfiddle.net/5tmwg/" rel="nofollow">http://jsfiddle.net/5tmwg/</a></p> <p>sample of the script in the header tag</p> <pre><code>&lt;script type="tex...
javascript jquery
[3, 5]
5,170,605
5,170,606
Show Text on Image Hover
<p>I'm trying to have an image description shown when hovering over the image which is placed in a div (<code>#web01</code>).</p> <p>I've been toying with the <code>mouseenter</code>/<code>mouseleave</code> and have been able to get text shown but when I link it to a div it doesn't seem to work.</p> <p>It's probably ...
javascript jquery
[3, 5]
586,490
586,491
Caching in asp.net?
<p>Recently a question raised in my group. I have a sections list in database.it is nothing but names of sections like Dubai section, NA section, Canada Section. This list updated very rarely in the database. </p> <p>Now the question, Is there any mechanism in asp.net that we can keep the list in Server Cache memory ...
c# asp.net
[0, 9]
4,798,473
4,798,474
Multiple Dropdown Boxes that will fill in a table
<p>I'm going to have 3 drop down menus. </p> <ol> <li>that has garment.</li> <li>has the color. </li> <li>number of colors. </li> </ol> <p>When the person selects these it will generate a table that shows what the cost for the amount of pieces like 1 column 48pc then 72pc then 96pc and so on. I dont expect anyone to ...
php javascript
[2, 3]
850,844
850,845
Don't post back textbox
<p>I have a fairly complex form (user control actually) with one textbox control on it that needs to NOT post back. Is there a way to remove a control from the post? Yes, this textbox is editable.</p> <p>More info: This is for a credit card processing form, so the "final" submit will post to another site's page. Howev...
c# asp.net
[0, 9]
3,564,652
3,564,653
Javascript calendar not working inside the update panel
<p>I have a javascript calendar in my web page. This calender is inside a update panel. When I click for the calendar, it is not working:</p> <pre><code>&lt;asp:UpdatePanel ID="UpdatePanel18" runat="server" &gt; &lt;ContentTemplate&gt; &lt;cc1:ModalPopupExtender ID="mpeCreate234" runat="server" ...
c# asp.net
[0, 9]
3,562,720
3,562,721
How to combine PHP and Javascript together?
<p>I have a function in my Javascript script that needs to talk with the PHP to get the data in my database. But I'm having a small problem because I start the PHP in the for loop in Javascript, and then inside that for loop I get the data in my database. But the pointer in the for loop inside the PHP code is not worki...
php javascript
[2, 3]
1,530,107
1,530,108
Select last word in a container
<p>I was just wondering if there is a way to select the last WORD in a DIV. I don't think there is any obvious way to do this, so are there any work arounds?</p> <p>I don't mind using CSS or Javascript to achieve this.</p> <p>Thanks in advance</p>
javascript jquery
[3, 5]
2,110,925
2,110,926
weird function valChange trying to figure out what and why
<p>Ok, so I have this project I recently came on to, so Im still figuring things out and all else. But today I need to add some new stuff, and in doing so I came upon a road block that seems to be brought on by this custom little function someone extended jQuery with</p> <pre><code>$.fn.extend({ valChange: function(v)...
javascript jquery
[3, 5]
1,085,690
1,085,691
How do I create an ASP.NET website to search MLS or IDX listings?
<p>How do I create an ASP.NET website to search <a href="http://en.wikipedia.org/wiki/Multiple_Listing_Service" rel="nofollow">MLS</a> or <a href="http://en.wikipedia.org/wiki/Internet_Data_Exchange" rel="nofollow">IDX</a> listings for a real estate website? I'm assuming there is a C# library to do this? I'm curious a...
c# asp.net
[0, 9]