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,433,497 | 2,433,498 | stop the following activity if home key or pressed back is pressed - Android | <p>I have a problem and that is my SplashScreen I have. It is built as an intro and after 3 seconds it shows the main menu of the program.
Anyway, if I press down Back or Home button during the time the SplashScreen shows, it closes, but the activity I have chosen to follow after the SplashScreen will still run after t... | java android | [1, 4] |
4,304,137 | 4,304,138 | Programmatically View image hash values | <p>How to Programmatically View image hashes in C# or PHP ?</p>
| c# php | [0, 2] |
951,492 | 951,493 | IE7 - Prevent unresponsive script error | <p>The following code is used as a visual filter on an application I'm building. Basically, when a user types something into the textbox with id 'filter', the code below runs to hide those that match. </p>
<pre><code>$('#filter').keyup(function() {
delay(function(){
$(".patient:not(:contains('" + ... | javascript jquery | [3, 5] |
1,962,472 | 1,962,473 | How to get the tagname and its href of selected anchor text | <p>When I select a link (with no ids or classes) within a paragraph, I need to get the selected links href value. How do I do it in jQuery? I am using <code>document.getSelection()</code> method for that. But I don't see any method in <code>document.getSelection()</code> which returns the href value.</p>
<p>When I se... | javascript jquery | [3, 5] |
1,068,923 | 1,068,924 | How to get content from dynamically added controls | <p>This is how my web page looks like:
<img src="http://i.stack.imgur.com/dMVBt.png" alt="enter image description here"></p>
<p><strong>PosisionDataView</strong> is a web user control, which contains textboxes for product name and note plus some additional controls.</p>
<p><strong>QuantityView</strong> is also a web ... | c# jquery asp.net | [0, 5, 9] |
5,545,229 | 5,545,230 | Overwrite .data() if a condition is met | <p>I am doing a image Tool tip (larger preview),
it ads a .data() of the replaced source. but on .error i want the same data to have a different value.
It seems like that doesn't overwrite the .data("lrgSrc") on .error </p>
<pre><code>$ImgTipCanid.each(function() {
var t = $(this).attr("src");
var tt = t.replace... | javascript jquery | [3, 5] |
4,305,022 | 4,305,023 | Using jQuery, how do I get the index of an element found in XML? | <p>I have an XML file setup like so:</p>
<pre><code><entry name="bob"></entry>
<entry name="ryan"></entry>
<entry name="joe"></entry>
...
<entry name="etc"></entry>
</code></pre>
<p>Next, I have a line of code that picks out a name from the XML like so:</p>
<pre><code>... | javascript jquery | [3, 5] |
3,295,253 | 3,295,254 | Determine distance from the top of a div to top of window with javascript | <p>How do I determine the distance between the very top of a div to the top of the current screen? I just want the pixel distance to the top of the current screen, not the top of the document. I've tried a few things like <code>.offset()</code> and <code>.offsetHeight</code>, but I just can't wrap my brain around it.... | javascript jquery | [3, 5] |
2,090,572 | 2,090,573 | How To Override Datalist To Be Rendered Into Divs Instead Of Table? | <p>i want to render datalist to divs instead of table, and the repeat columns will fixed by float style on div.</p>
<p>so any one know a an override render method do that.</p>
<p>Thanks</p>
| c# asp.net | [0, 9] |
3,376,863 | 3,376,864 | How to I rewrite this so that its not a random number search? | <p>Im new to jquery, how would I re-write this string so that it displayed a result of 60 each time?</p>
<pre><code>var i = Math.ceil(Math.random()*60)
</code></pre>
<p>thanks</p>
| javascript jquery | [3, 5] |
5,781,567 | 5,781,568 | Convert DOM Element/Object to jQuery Element/Object | <p><code>.get()</code> converts a jQuery object to a DOM element that Javascript can use without jQuery.</p>
<p>If I have a DOM element, how can I convert it to a jQuery object?</p>
| javascript jquery | [3, 5] |
2,875,648 | 2,875,649 | Auto link specific words and phrases | <p>Can I use jQuery, another library or standard javascript to list a series of words and phrases that I would like to be auto linked?</p>
<p>For example:</p>
<p>Word / phrase 1: link to www.something.com <br/>
Word / phrase 2: link to www.somethingelse.com <br/>
Word / phrase 3: link to www.anotherlink.org</p>
<p>A... | javascript jquery | [3, 5] |
4,915,266 | 4,915,267 | Jquery filter syntax | <p>If I want to filter a set of links against an array and then style those not in the array as unavaible, how would I do that.</p>
<p>Here is what I have:</p>
<pre><code>if (this.id == '93') {
$links.filter(function() {
}).addClass('unavailable');
</code></pre>
<p>But I don't know how the syntax for checki... | javascript jquery | [3, 5] |
1,827,344 | 1,827,345 | How to convert JavaScriptSerializer serialized DateTime string to JavaScipt Date object | <p>After serializing an object with <strong>DateTime</strong> field with <strong>JavaScriptSerializer</strong>, I see that <strong>DateTime</strong> field looks like this:</p>
<pre><code>EffectiveFrom: "/Date(1355496152000)/"
</code></pre>
<p>How can I convert this string to JavaScript Date object?</p>
| javascript asp.net | [3, 9] |
5,969,529 | 5,969,530 | Convert jQuery click event to run periodically | <p>I'm using this jQuery plugin here: <a href="http://css-tricks.com/examples/MovingBoxes/" rel="nofollow">http://css-tricks.com/examples/MovingBoxes/</a></p>
<p>Has anyone used it or can you take a look at the jQuery code, how can i set the function to run periodically rather than on click events?</p>
<p>Thanks</p>
| javascript jquery | [3, 5] |
5,373,389 | 5,373,390 | set dropdownlist value to textbox in jQuery | <p>If my dropdown has a value selected, I want to show the selected item text in my textbox. If not, I want to empty it.</p>
<pre><code><asp:DropDownList ID="ddl" runat="server" AutoPostBack="true" onselectedindexchanged="ddlSelectedIndexChanged" Width="200px" onchange="ddlChange()">
</asp:DropDownList>
&... | javascript jquery | [3, 5] |
1,509,091 | 1,509,092 | Handle clicks on an element but not clicks on links within that element | <p>How do I handle clicks on an element but not clicks on links within that element?
Say I have the following</p>
<pre><code><div class="section">
Some text blah blah
<a href="#">Link</a>
</div>
<script>
$(".section").click(function() {
// code to expand/collapse secti... | javascript jquery | [3, 5] |
5,110,616 | 5,110,617 | ExpandlableListView Styling | <p>Hi i dynamically created a ExpandableListView and im using an Adapter to fill it with 3 groups containing 1 child each.</p>
<p>I just cant find out how to change the color of my Group Text and Child text. (its currently black so i can only see my text when i click the group or child)</p>
<p>Setting a color in the<... | java android | [1, 4] |
1,962,129 | 1,962,130 | error paging and editing in gridview | <p>I had gridview which retrieve Products from database by sqldatasource1 ,and my manager asked me to filter this gridview by DDL to filter gridview with specfic Model ,I add some function on gridview as edit,paging .I did my code well and gridview filtred by the Model_Id which come from DDL .But when I tried to edit a... | c# asp.net | [0, 9] |
4,927,624 | 4,927,625 | Get child elements from a parent but not first and last | <p>I would like to know how could I write a jQuery selector that get all children from a parent element except first and last child?</p>
<p>Example of my current HTML:</p>
<pre><code><div id="parent">
<div>first child( i don't want to get)</div>
<div>another child</div>
<d... | javascript jquery | [3, 5] |
4,784,520 | 4,784,521 | Jquery exclude first td on click event? | <p>How to exclude the first td on the click event of jquery that I created below? I want to exclude the all first td of the rows on the click event that produces dialog box.</p>
<pre><code>jQuery("#list tbody tr").click(function(){
//some code here
});
<table>
<tr>
<td>first</td>... | javascript jquery | [3, 5] |
544,131 | 544,132 | IPhone over Android and vice versa | <p>I develop applications on both <strong>IPhone</strong> and <strong>Android</strong>. As a part of my organization's <em>Technical Session</em> program I have myself delivering the next session on <strong>IPhone or Android</strong>. Getting the session made me start comparing both technologies, which believe me, is r... | iphone android | [8, 4] |
699,097 | 699,098 | In an Asp.net MVC view, how do I use jQuery to parse the XML just returned from a controller | <p>In my MVC view (using VS 2012 RC), I'm attempting to parse the XML freshly returned from my Controller.
Here is my view code:</p>
<pre><code>@model RzMvc.Models.PortfolioResponse
@{
ViewBag.Title = "PortfolioList";
}
<script type="text/javascript">
$(displayXmlResponse);
function ... | jquery asp.net | [5, 9] |
912,703 | 912,704 | How can I get this function to return value retrieved using jQuery.ajax? | <p>I need to return dynamic loaded content. I thought this was the way to do it, but the function returns blank. What do I need to do in order to set <code>htmlCode</code> with the html code retrieved from <code>jQuery.ajax</code>?</p>
<pre><code> // Get directory listing
function getHTML(instance, current_path, di... | javascript jquery | [3, 5] |
5,097,690 | 5,097,691 | window.showModalDialog dialogWidth property not working in IE | <p>I have a 2.0 framework ASP.Net page that runs in our controled environment (IE 7).
The <code>dialogWidth</code> property seems not to be working. The scrip is as follows:</p>
<pre><code>var win = window.showModalDialog ('Page.aspx', 'PopupPage', 'dialogHeight:600px,dialogWidth:800px,resizable:0');
</code></pre>
<p... | asp.net javascript | [9, 3] |
2,333,204 | 2,333,205 | Removing the element from the DOM is not removing the effects of javascript code inside that DIV element | <p>I dynamically load the whole page inside one DIV element with the help of javascript. But when I close the div I am using <code>("#Viewer").remove()</code> . But still the javascrpit/jquery loaded inside that element is in work. How can I remove the effect of that too.</p>
<p>There is one Viewer DIV. Into which I a... | javascript jquery | [3, 5] |
779,823 | 779,824 | 3 / 2 = 1.0? really? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/3144610/java-integer-division-how-do-you-produce-a-double">Java Integer Division, How do you produce a double?</a> </p>
</blockquote>
<pre><code>double wang = 3 / 2;
Log.v("TEST", "Wang: " + Double.toString(wang... | java android | [1, 4] |
1,580,497 | 1,580,498 | jQuery string manipulation performance vs. PHP | <p>Im building a custom jquery modal box that loads an external html template file that contains variables that need to be replaced. For instance: [user-name]</p>
<p><strong>I know I have 2 options for modifying the template file:</strong></p>
<ul>
<li>use find and replace in jquery</li>
<li>process the template ser... | php javascript jquery | [2, 3, 5] |
4,813,337 | 4,813,338 | How to solve this simple jQuery issue? | <p>I'm new to jQuery and JavaScript in general. I noticed that if you insert an element via jQuery into the DOM and try to perform an action on that element later, it fails. For example:</p>
<p>I am adding a class of "listenToField" to all the input elements on the page:</p>
<pre><code>$(function() {
$('input').addC... | javascript jquery | [3, 5] |
5,031,967 | 5,031,968 | jQuery click event to change php session variable | <p>What would be the best approach to this?</p>
<p>Because, as I found (and it made total sense, only after having tried it :p) that you can't set a PHP variable on javascripts conditions. (duurrhh)</p>
<p>The only solution I can come up with is to do an AJAX call to a small PHP file that handles the session variable... | php jquery | [2, 5] |
4,346,349 | 4,346,350 | Show modal when using javascript confirm | <p>I have the following function that will show a modal:</p>
<pre><code>confirmModal: function (message) {
// CODE TO SHOW MODAL HAS BEEN REMOVED FOR THIS QUESTION //
}
</code></pre>
<p>And because it's been namespaced it's called like: <code>uiModal.confirmModal('Test message');</code></p>
<p>Inside the modal I h... | javascript jquery | [3, 5] |
5,832,277 | 5,832,278 | Can't understand how to do it with javascript and jquery code | <p>Sorry guys for asking that dumb question but I have problem with that thing.
Have such script, it should return true or false, but after drawing that html pop-up window and getting response from that methods. </p>
<pre><code> $("#pageInfo a.btnDel").click(function () {
$("#cmsSmallPo... | javascript jquery | [3, 5] |
5,778,706 | 5,778,707 | What is the difference between ResolveUrl and ResolveClientUrl? | <p>I have been using ResolveUrl for adding CSS and Javascript in ASP.NET files.</p>
<p>But I usually see an option of ResolveClientUrl. What is the difference between both? </p>
<p>When should I use ResolveClientUrl?</p>
| c# asp.net | [0, 9] |
5,580,781 | 5,580,782 | Trying to animate with on change | <p>I am trying to animate the width of something when the .change() function is called, but it doesn't seem to be working.</p>
<p>Any idea why?</p>
<p>Here is my code:</p>
<pre><code>$(document).ready(function(){
$('#code').change(function(){
//on change animate a width of +16px increase.
$(this)... | javascript jquery | [3, 5] |
3,414,966 | 3,414,967 | How to find parent of the control using div id | <p>I want to find parent using div id. I mean using $("#btn").parents("divid"). Is it possible using Jquery</p>
| jquery asp.net | [5, 9] |
4,051,563 | 4,051,564 | Which technology should i use to develop a high performance web application | <p>HellO Everyone,</p>
<p>I have couple of ideas in my brain which i would like to bring out before its too late. Basically i want to develop a web application which i could sell it to clients. So which technology shall i use to accomplish this. I have been a C and C++ software developer but its been a very long time ... | c# java python | [0, 1, 7] |
5,077,249 | 5,077,250 | jquery hover options then click to load page | <p>My problem:</p>
<p>I have a row of div tags that act as header to columns when the user hovers over them the div changes to sort options such as ASC and DESC. What i need them to do is when the user clicks on one of the options an alert will pop up with the click option the value and the div class name. </p>
<p>ex... | php jquery | [2, 5] |
1,554,042 | 1,554,043 | How do I execute an event using jQuery through an html object(button) created through Javascript? | <p>I'm just new here. So here's where I'm stuck:</p>
<p>I created an html table using javascript. I have a button,which when clicked, will create set of tables with exactly the same structure but the objects(eg. button, text) inside those tables have different ID's. Now when I try to execute a click function using ... | javascript jquery | [3, 5] |
2,471,174 | 2,471,175 | select elements outsde of plugin chaining this keyword | <p>hi im creating a plugin with chaining the problem is I want to select elements outside of the THIS element e.g</p>
<pre><code>return $this.each(function() {
$('body $left .filter-wrapper input[type=checkbox]', document).change(function() {
alert('changed');// I want to break out side the scope how do i ... | javascript jquery | [3, 5] |
2,011,810 | 2,011,811 | How do I use JQuery to disable a submit button? | <p>So that it's no longer clickable.</p>
| javascript jquery | [3, 5] |
2,666,086 | 2,666,087 | extract out text in each line and put it in seperate variables with javascript | <p>I have the following address which is in a paragraph with no great way to select the individual text areas within. I do not have access to this code. I want to extract out each line and put the text values in a variable for each type. Not sure what would be the best way to do it. </p>
<p>Use <code>.split('<br>... | javascript jquery | [3, 5] |
3,383,500 | 3,383,501 | Javascript string variable that contains PHP code | <p>I basically just want to append a javascript variable to an HTML div with JQuery. However I need to append some PHP code as a string, it doesn't need to execute it just needs to show up as a plain old string string.</p>
<p>The following code doesn't seem to append because I think it is still recognized as PHP synta... | php javascript jquery | [2, 3, 5] |
5,139,450 | 5,139,451 | How I can I make jQuery go directly to <h2 id="id-name">? | <p>I want to make jQuery navigates directly (no animation need) to a id that I pass in a variable.</p>
<p>I have various marks like <code>id="content"</code>, <code>id="edit"</code>, <code>id="..."</code> that are <code><h2></code> titles. Doing validation with PHP I will output a variable like <code>var NAVIGAT... | javascript jquery | [3, 5] |
4,524,066 | 4,524,067 | Message queue for real time chat , ASP.NET | <p>How do i create message queuing mechanism for real time chat in asp.net ? At least post some points to start with because for now i'm using synchronous calls to DB for any change. </p>
| c# asp.net javascript | [0, 9, 3] |
5,410,446 | 5,410,447 | How to read all the values inside an multiple form with jquery | <p>I'm trying to get my uploading script to work with jquery but having problems with fetching the values (files) that are queued up in a multiple form.</p>
<p>I can get it to work so i can select like 10 files in a single input but when i'm trying to fetch those values i only get the first file of the 10 i added simu... | php jquery | [2, 5] |
2,855,853 | 2,855,854 | how to erase the file contents of text file in python and c++? | <p>i have text file which i want to erase in C++ and python . How to do it?Do i have to assign the file pointer to a null value string?</p>
| c++ python | [6, 7] |
5,376,462 | 5,376,463 | Determine image src in onload and onerror event handlers in IE | <p>How can I determine the image src of the image that triggered the event in the onload and onerror event handlers in IE? This example code I threw together:</p>
<pre><code><script language="javascript" type="text/javascript" src="jquery.js"></script>
<script language="javascript" type="text/javascrip... | javascript jquery | [3, 5] |
4,615,575 | 4,615,576 | ASP.NET - How to check value of a textbox in a user control from a page? | <p>I have an aspx page that contains a user control. The user control has a textbox and the page has a submit button.</p>
<p>How can I check if the textbox in the user control is not null and display an alert if it is - from the page?</p>
| javascript asp.net | [3, 9] |
5,643,477 | 5,643,478 | how can i trigger click function as auto (every 15 second) | <p>For example if i have a random div..</p>
<pre><code>$("#random").click(function{
$("#random").toggle("slow");
});
</code></pre>
<p>How can i trigger to click function as auto(every 15 seconds).</p>
<p>Thanks for helps..</p>
| javascript jquery | [3, 5] |
3,009,960 | 3,009,961 | Javascript/jQuery issue | <p>I'm trying to make radio buttons that when you have them active, it displays a dropdown. I can already make it display, but when I click on another radio button, it shows one, but doesn't hide the other...
Code:</p>
<pre><code><input type='radio' name='op' onchange='$("#ban_length").fadeToggle();'/>
<input... | javascript jquery | [3, 5] |
1,699,071 | 1,699,072 | how to press a button one , and then the second one stops? | <p>How can I make presses button in the Second one and then stops and then pressed again in the Second one and then stops</p>
<p>But pressure All buttons in second one</p>
<p>I want to press a button 1, and then the second one stops
and then press the button 2, then the second one stops
and then press the button 3, ... | javascript jquery | [3, 5] |
2,483,364 | 2,483,365 | Callback after loading scripts works when preceded by alert and doesn't when I delete the alert | <p>First, I load some scripts. Then, once they're loaded, I bind those scripts to the relevant objects. Everything works great when I have the alert() statement there, and fails (i.e. jEditable does not bind) when I don't.</p>
<pre><code>// Load two scripts, execute editor_callback when both are loaded
$(document).r... | javascript jquery | [3, 5] |
361,478 | 361,479 | Trim or replace all commas and spaces from the String | <p>Hi i am developing android application.Now i stuck in one problem. Let me give you a example to understand my problem.</p>
<p><strong>What I have is : kushal,mayurv,narendra,dhrumil,mark, ,,,, ,</strong></p>
<p><strong>What i want is : kushal,mayurv,narendra,dhrumil,mark</strong></p>
<p>Any help is appreciated.<... | java android | [1, 4] |
5,564,378 | 5,564,379 | How can I remove all classes starting with a prefix | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/2644299/jquery-removeclass-wildcard">JQuery removeClass wildcard</a><br>
<a href="http://stackoverflow.com/questions/6055355/jquery-select-an-element-that-the-class-starts-with">jQuery - Select an element that the... | javascript jquery | [3, 5] |
381,019 | 381,020 | Convert simple php code to python | <p>I want to convert my php code to python code. Is it possible </p>
<pre><code>$secret = 'segredo'; // To make the hash more difficult to reproduce.
$path = '/p/files/top_secret.pdf'; // This is the file to send to the user.
$expire = 1096891200; // At which point in time the file should expire. time() + x; would b... | php python | [2, 7] |
2,487,657 | 2,487,658 | Packaging android code into jar file | <p>I am trying to package the android code into a jar file so that I can use it in another project. But when I do that I get the following error messages. I am not sure how to do this correctly if someone has done it please post a link and some details would be really helpful.</p>
<p>Thanks</p>
<pre><code>Error gener... | java android | [1, 4] |
6,030,355 | 6,030,356 | How to use zindex in JavaScript | <p>What is the syntax for zindex?</p>
<p>I tried like this </p>
<pre><code>document.getElementById('iframe_div1').style.zIndex =2000;
document.getElementById('iframe_div1').style.z-index =2000;
</code></pre>
<p>It is not working, it doesn't even show an error.</p>
<p>This is my snippet. It is working fine in HTML, ... | javascript jquery | [3, 5] |
3,011,803 | 3,011,804 | how many string can display on full screen | <p>I've large string, i want to split it. i got screen width and height using below code,</p>
<pre><code>DisplayMetrics metrics = new DisplayMetrics();
activity.getWindowManager().getDefaultDisplay().getMetrics(metrics);
screenHeight = metrics.heightPixels;
screenWidth = metrics.widthPixels;
</code></pre>
<p>I want ... | java android | [1, 4] |
2,258,602 | 2,258,603 | Odometer Speedometer jquery plugin | <p>Is there any plugin who give's the chart type = ODOMETER ?</p>
<p>incrideble how is so hard to find this, even highchart's that i'm using ( very good chart library ) dont have a odometer, dont know why.</p>
<p>i found some "speedometer", <a href="http://jacob-king.com/demo/speedometer" rel="nofollow">Demo</a> but ... | javascript jquery | [3, 5] |
1,988,778 | 1,988,779 | conflict mulitple .load() events of jquery | <p>i have load the data with the <code>$('#result').load('test.php')</code> file, that is completely working properly. </p>
<p>here is the <code>test.php</code> screenshoot
<img src="http://i.stack.imgur.com/adgb7.jpg" alt="enter image description here"></p>
<p>now here is my loaded file in lightbox:
<img src="http:... | javascript jquery | [3, 5] |
2,096,429 | 2,096,430 | C# asp.net why does my manual __doPostBack only run once? | <p>In my code I create the menu items dynamically:</p>
<pre><code>string listClientID = BulletedList1.ClientID.Replace('_', '$');
int counter = 0;
foreach (DataRow dataRow in database.DataTable.Rows)
{
// Add Button
ListItem listItem = new ListItem();
listItem.Value = "buttonItem" + Convert.ToString(dataR... | c# asp.net | [0, 9] |
4,955,158 | 4,955,159 | What is "focused" regarding android apps? | <p>I keep seeing "focused" and hearing about "focusing" within the development of Android apps. My question is: What is focusing, and how is it applied within Android apps? Is it important? What can you do with it?</p>
<p>I'm sorry if this has been asked, I looked but didn't see anything that clearly explained it. I'v... | java android | [1, 4] |
4,089,992 | 4,089,993 | replacing div content with a click using jquery | <p>I see this question asked a lot in the related questions, but my need seems very simple compared to those examples, and sadly I'm just still too new at js to know what to remove...so at the risk of being THAT GUY, I'm going to ask my question...</p>
<p>I'm trying to switch out the div contents in a box depending on... | javascript jquery | [3, 5] |
5,741,833 | 5,741,834 | How do I select a drawing on canvas? | <p>I wish to create a click-able object on a tag with javascript/jQuery.</p>
<p>This obviously dosen't work.</p>
<pre><code>var cow = new Object();
cow = ctx.drawImage(tile,cursorH,cursorV);
$(cow).click{function(){
alert('You clicked a cow!');
});
</code></pre>
| javascript jquery | [3, 5] |
3,922,590 | 3,922,591 | using Jquery to show one error message at a time | <p>I'm trying to show one error message at a time and then once that error has been corrected to show the next error.</p>
<p>For example there is validation on three textbox (Date, Month & Year) once the date textbox is valid then the month error message choudl show.</p>
<p>The code I have so far for this is: </p... | javascript jquery | [3, 5] |
5,908,967 | 5,908,968 | how to set X Y and hight width for scoll view | <p>I have scroll-view and table-layout , row-table .</p>
<p>now i want to set X and Y margins and high and width for each one in programming code not xml .</p>
<p>note , I'm using Absolute layout for this activity .</p>
<p>this is my full code of activity : </p>
<p>public class ListActivity extends Activity {</p>
... | java android | [1, 4] |
1,372,066 | 1,372,067 | Why won't this Javascript Function Work? | <p>I have a JavaScript function that is not working now that I put in a new one under it. Here is what is in the head of my document.</p>
<pre><code> <head>
<link rel="stylesheet" href="9j3nz/style.css" type="text/css">
<script src="jquery.js"></script>
<script src="processing.js">... | javascript jquery | [3, 5] |
366,104 | 366,105 | Android listing contacts sync sources | <p>Does anyone knows how to get the contacts sync sources in android? like google source, facebook source or from the phone contacts.</p>
| java android | [1, 4] |
4,117,191 | 4,117,192 | Using JavaScript to populate the content in a div | <p>I've tried a few ways of doing this, the problem is our site is within a custom built CMS that won't allow us to use anything other than HTML and some JavaScript (it's very picky).</p>
<p>What I need to do is have a page within the CMS replace the content of one div on the page with the content of an outside php pa... | javascript jquery | [3, 5] |
5,947,573 | 5,947,574 | Visual Studio 2010 working directory | <p>I'm developing a C# asp.net web application. I'm basically done with it, but I have this little problem. I want to save xml files to the "Users" folder within my project, but if I don't psychically hard code the path "C:......\Users" in my project it wants to save the file in this "C:\Program Files (x86)\Common File... | c# asp.net | [0, 9] |
2,487,876 | 2,487,877 | Passing PHP variable into JavaScript | <p>I've a PHP session variable, <code>$_SESSION['user']</code>, alive throughout the session. In the head section, I've my JavaScript file included, <code>scripts.js</code>. </p>
<p>How do I pass the session variable into the JavaScript file if I want something like the following.</p>
<pre><code>$.("#btn').click (
... | php javascript | [2, 3] |
5,754,138 | 5,754,139 | how to auto redirect a page based on given time? should i use javascript ? how? | <p>let's say i have this code</p>
<pre><code>$itemtoDisplayTime = $model->getItemTime() // e.g 03:00pm
$currentTime = date('H:i'); //this is the system clock/time
</code></pre>
<p>is it appropriate to use javascript to automate the process of redirection without having to refresh the page ?
if so, how ?</p>
<p>l... | php javascript jquery | [2, 3, 5] |
2,971,953 | 2,971,954 | Does Javascript has a function like FindControlRecursive? | <p>Each row of a ListView has a checkbox. When the user clicks <strong>Delete Selected row(s)</strong> LinkButton, only rows that have the checkbox checked are deleted. I'm thinking about getting all the checkboxes in an array first then loop through to see which one was checked.</p>
<p>This is what I have tried.</p>... | javascript asp.net | [3, 9] |
1,521,771 | 1,521,772 | How to keep an absolutely positioned element directly over the position of inline one? | <p>This is a follow up question to <a href="http://stackoverflow.com/questions/2233097/how-can-i-stop-an-iframe-reloading-when-i-change-its-position-in-the-dom">http://stackoverflow.com/questions/2233097/how-can-i-stop-an-iframe-reloading-when-i-change-its-position-in-the-dom</a> if you want the background.</p>
<p>I h... | javascript jquery | [3, 5] |
4,463,124 | 4,463,125 | Ideas with REGEX Formatting | <p>Can anyone help please.
I am trying to figure out a Regex format for some data, but am struggling with its complexities.</p>
<p>I want to format some Latitude EditText in the format </p>
<p>"N5123.5" </p>
<p>The first digit must be either N or S (or n or s)
There must be then exactly 4 numerics, exactly 1 full st... | java android | [1, 4] |
2,286,258 | 2,286,259 | Controlling speed of animation via a selector form | <p>I want to make the speed of an animation selectable. I've written the following code but I cant work out whats stopping it from working. If I remove $("#speed").val(); and replace it with a value, it works fine.
Any ideas will be greatly received!</p>
<pre><code><div class="lowerthird"> </div>
<but... | javascript jquery | [3, 5] |
17,979 | 17,980 | Can PHP handle enterprise level sites as well as Java | <p>PLEASE NO FLAMING! </p>
<p>I really would love a few objective opinions about the issue. I have a project that has been strongly developed in PHP but have clients that are concerned that Java would be a better solution. I know sites such as Flickr and Digg are run on PHP, but I am concerned that PHP's lack of a run... | java php | [1, 2] |
2,246,904 | 2,246,905 | In Web Development - What ASP.net can do that PHP cannot do? | <p>Just thinking if it's necessary to learn ASP.net.</p>
<p>Also, which is faster to develop? If I learn ASP.net now..</p>
<p>I will be using one of those languages for my first Web Application.</p>
<p>thanks!</p>
| php asp.net | [2, 9] |
150,925 | 150,926 | over text mark another text | <p>I'm looking for js code (maybe jquery) that will mark some text when I overmouse on another text (they both will have the same ID)</p>
<p>I have number of URLs and I want that overmouse on them will change table cell color</p>
<p>for example: </p>
<p>overmouse on url1 will mark cell ID 20</p>
<p>overmouse on url... | javascript jquery | [3, 5] |
1,458,008 | 1,458,009 | Uncaught TypeError: Object [object Object] has no method 'apply' | <p>I am receiving this Uncaught TypeError on a new website I am creating, but I can't work out what is causing the error.</p>
<p>I have recreated the issue at the link below, if you take a look at your browsers JS console you'll see the error occurring, but nothing else happens.</p>
<p><a href="http://jsfiddle.net/Eb... | javascript jquery | [3, 5] |
4,022,874 | 4,022,875 | Different format for same Android contact phone number | <p>So let's say the SMS conversation is like this:</p>
<ol>
<li>hey nice to meet you (sent by me)</li>
<li>yea nice to meet you too (received)</li>
<li>let's hang out sometime (replied by me)</li>
</ol>
<p>The numbers associated with the other person look like this (by checking msg details):</p>
<ol>
<li>4161234567<... | java android | [1, 4] |
1,647,423 | 1,647,424 | webforms ajax file upload | <pre><code><form id="Form1" method="post" runat="server">
<uc1:PageHeaderDisplay id="pageHeaderDisplay1" runat="server"></uc1:PageHeaderDisplay>
<asp:HiddenField runat="server" ID="postedFormData" />
<div style="display: none;" class="uploadxmlcontainer">
... | jquery asp.net | [5, 9] |
4,054,835 | 4,054,836 | How to capture clicked button in js functions? | <p>I have to buttons like this:</p>
<pre><code><input type='submit' id='submit' class='processAnimation'>
<input type='reset' id='reset' class='processAnimation'>
</code></pre>
<p>Now I have two js function. First function is called when ajax request is started and seconf function is called when ajax requ... | javascript jquery | [3, 5] |
1,686,861 | 1,686,862 | Object [object Object] has no method - Please help me, I'm stuck | <p>I am struggling since a few days ago with a problem with a jQuery plugin named "<strong>Smoothdivscroll</strong>".</p>
<p>Have found that jQuery is getting this <strong><em>Uncaught TypeError: Object [object Object] has no method 'smoothDivScroll'</em></strong> even when the script is loaded, Jquery too and all loo... | javascript jquery | [3, 5] |
3,007,593 | 3,007,594 | Check if an element exists in the DOM | <p>The following snippet is not working for me. Basically I want to check if there is an input element with the name "documents[]" and the value item.id and return void.</p>
<p>I thought this line would do it: <code>$("input [name='documents[]'][value='"+item.id+"'") != false</code>. </p>
<p>However the statement ret... | javascript jquery | [3, 5] |
1,261,535 | 1,261,536 | Dynamically change style of panels through javascript | <p>I am trying to display a new panel after the user clicks an add button, for some reason this is not working (it refreshes the page as well, even though my button has a return true) I have tried different ways, but nothing seems to work that well.</p>
<pre><code><asp:Button ID="btnAdd" runat="server" Text="Add P... | c# javascript asp.net | [0, 3, 9] |
3,778,827 | 3,778,828 | Code questions for Jquery | <p>Which code will work fastest?</p>
<pre><code>for(i=0; i<100; i++) {
jQuery("#myDiv").append("<span>" + i + "</span>");
}
//
var i, markup = "";
for (i=0; i<100; i++) {
markup += "<span>" + i + "</span>";
}
//
jQuery("#myDiv").append(markup);
//
var i, markup = "";
for (i=0; ... | javascript jquery | [3, 5] |
1,029,327 | 1,029,328 | How can I play audiobooks from current position (where it stopped) in android media player? | <p>I am working with android application where I want play audiobooks from current position of books (eg:0:04/6:35 ) now I want play it and should start from 0:05 not from starting like 0:00.How can I achieve this please anyone help me out to get a solution.</p>
| java android | [1, 4] |
1,090,051 | 1,090,052 | Ipad hover event jQuery | <p>Im trying to create a false hover event for my site using jQuery...</p>
<p>I have created the following only all the child elements in my list now return false also as opposed to linking to the correct page...</p>
<pre><code>if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)) || (navi... | javascript jquery | [3, 5] |
4,540,965 | 4,540,966 | Run SpeechRecognizer during call | <p>Is there a way to run SpeechRecognizer while being in a call? I have done it this way:</p>
<ul>
<li><code>BroadcastReceiver</code> handles change in phone state (e.g. offhook).</li>
<li>the <code>SpeechRecognizer</code> is started in the current (main) thread, as it can only be started in the main thread. The appli... | java android | [1, 4] |
493,360 | 493,361 | Combining function and callback parameter to create new function | <p>I have a wrapper around the jQuery animate function, which accepts a callback parameter to fire after the animation is completed. I want to "build" that callback by combining a user-passed callback and internal code. For example, the user passes <code>function Foo</code> as his callback. I want the actual callback t... | javascript jquery | [3, 5] |
1,882,981 | 1,882,982 | Is jQuery UI tabs broken in rc6? | <p>I've been using jQuery UI v1.6rc2 for a while, and wanted to upgrade to 1.6rc6 to see that they haven't made any breaking changes. It seems they have; all of my tabs stop working whenever I switch to rc6.</p>
<p>There seems to be two things wrong. First, the manual advocates using the following:</p>
<pre><code>$('... | javascript jquery | [3, 5] |
3,426,999 | 3,427,000 | NumberFormatException when passing variable through Android Intent | <p>I'm trying to pass 2 variables through a couple of Android Activities. One of them keeps turning up as null on the last page:</p>
<p>The first Activity:</p>
<pre><code>Intent intent= new Intent(RoundOptionActivity.this, MoveOptionActivity.class);
intent.putExtra("numRounds", "5");
startActivity(intent);
</code></p... | java android | [1, 4] |
4,438,503 | 4,438,504 | HttpContext.GetGlobalResourceObject Always null from Class Library | <p>I have a resx file in App_GlobalResources in my web application, called with:</p>
<pre><code>Resources.GetResource("ResourceFileName", "Resource")
</code></pre>
<p>The helper method lives in a separate class library to get resource values:</p>
<pre><code>using System.Resources;
using System.Web;
public static cl... | c# asp.net | [0, 9] |
2,403,998 | 2,403,999 | Prevent a function from being fired too rapidly | <p>I have a function. It is being triggered from many other functions in the script. Sometimes very rapid and maybe almost simultaneously</p>
<p>How can I prevent it from being triggered too rapidly within short time? By setting a delay or timer of some sort? I want to minimize the database calls the function is makin... | javascript jquery | [3, 5] |
5,082,302 | 5,082,303 | how to add single quotes to string in c#? | <p>I am adding mutliple values to single string , all the values should be like in this format <code>'',''</code> but I am getting <code>"'',''"</code> instead.</p>
<p>How can I remove these double qoutes? Here's the code I'm using:</p>
<pre><code>string one = "\'"+ names[0, 0] +"\'"+","+"\'" + names[1, 0]+"\'";
st... | c# javascript asp.net | [0, 3, 9] |
5,380,919 | 5,380,920 | Getting error while building android | <p>For some days I used to build android successfully.
But from last 2-3 days i was unable to build it. its giving some errors like:</p>
<blockquote>
<p>packages/apps/Calculator/src/com/android/calculator2/CalculatorDisplay.java:19:
cannot access android.content.Context bad class file:
android/content/Context.cl... | java android | [1, 4] |
1,315,701 | 1,315,702 | Is it possible to bind two separate functions to the same event | <p>Basically I'd like to bind function A to all inputs. Something like this:</p>
<pre><code>$('input').bind('change', function() { bla bla bla });
</code></pre>
<p>And then later I would like to bind something different in addition like this:</p>
<pre><code>$('#inputName').bind('change', function() { do additional p... | javascript jquery | [3, 5] |
2,743,601 | 2,743,602 | Pushing to multidimensional object | <p>I'd like to end up with an object like:</p>
<pre><code>{"Red 1":53,"Blue 2":26,"Green 3":25}
</code></pre>
<p>From the following example:</p>
<p>Was trying to push the data from inside .each to the object, but it being multidimensional, i'm not sure how to accomplish this:</p>
<pre><code>//html
<div class="te... | javascript jquery | [3, 5] |
5,561,308 | 5,561,309 | Pass a query in URL using jquery | <p>I want to pass a $_GET[''] to a php file, when a word is clicked in a div,it must display data from the db.</p>
<p> It displays the data without the query.</p>
<p>The process.php contains SQL statement to query the db and display values.</p>
<p>Thanks
Jean</p>
| php jquery | [2, 5] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.