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 |
|---|---|---|---|---|---|
389,536 | 389,537 | Change background color for rows of an HTML table on click | <p>I need that when i check a checkbox i apply different background color to HTML table rows according to and ID of a user in database using jquery, and then i uncheck the checkbox go to previous state.
For the record i am not asking for code i am asking for concept.</p>
<p><a href="http://www.freeimagehosting.net/ima... | javascript jquery | [3, 5] |
1,349,761 | 1,349,762 | Mask input for time(`01:55`) | <p>I want mack a mask input for time(<code>01:55</code>) without use plugin,as only accept to user typed four number, (i mean, when user type number <code>01</code> put after it this <code>:</code> and next user type <code>55</code>), how is it?</p>
<p>This is my code that not work:</p>
<pre><code><input name="tex... | javascript jquery | [3, 5] |
4,045,238 | 4,045,239 | How to empty the <ul> in the nest <li> using jquery | <p>I'm trying to create a menu and its sub menu, but receiving the data from database. And I created the menu successfully, this is my code :</p>
<pre><code> $(document).ready(function () {
var url = '<%: Url.Content("~/") %>' + "Products/GetMenuList";
$.getJSON(url, function (data) {
var mainMenu = ... | javascript jquery | [3, 5] |
1,778,434 | 1,778,435 | PageMethods what is issue with it? | <p>I'm getting "Object Error" on line</p>
<pre><code>function readWURecord()
{
var ifUSD = "";
try
{var mtcnNo=document.getElementById('ctl00_ContentPlaceHolder1_TxtReferenceNo').value;
if(mtcnNo=='')
{
alert('Provide Reference Number');return false;}
var adoConn=new ActiveXObject("ADODB.Connection");
var adoRS=new Ac... | c# javascript asp.net | [0, 3, 9] |
2,164,776 | 2,164,777 | focus div element | <p>Concept: Focus the div when user click the Comment link. There was two link in my php page. one is <code>comment link</code> and another one is <code>readmore link</code>. The two link goes to the same page but i want to <code>focus the div element</code> when click comment link .</p>
| javascript jquery | [3, 5] |
2,803,916 | 2,803,917 | java.lang.SecurityException: No active admin owned by uid 10034 for policy #3 | <p>I create a lock screen widget app recently. It always has the exception:</p>
<pre><code>( java.lang.SecurityException: No active admin owned by uid 10034 for policy #3)
</code></pre>
<p>I try many methods and can not eliminate the exception. I open the activity to realize the purpose of the lock screen when the co... | java android | [1, 4] |
5,973,547 | 5,973,548 | Sending data from service to activity | <p>I am having issue for sending data from service to Activity through notification , I click a notification a activity get invoked but when i try to add some parameters through bundle i am not able to get the parameters in that called intent , I have gone through the link
<a href="http://stackoverflow.com/questions/1... | java android | [1, 4] |
160,369 | 160,370 | Value is undefined when element is obtained with jQuery | <p>Below is the code where I obtain my input element with jQuery:</p>
<pre><code>var txt = $(tableRow).find('input:text');
if (txt.value == null) {
//TO DO code
}
</code></pre>
<p>and here's how I do it </p>
<pre><code>var txt = document.getElementById('txtAge');
if (txt.value == null) {
//TO DO code
}
</code></... | javascript jquery | [3, 5] |
3,189,547 | 3,189,548 | Sequence of command? | <p>I wrote this code</p>
<pre><code> WindowManager.LayoutParams params = getWindow().getAttributes();
params.flags |= LayoutParams.FLAG_KEEP_SCREEN_ON;
params.screenBrightness = 0.1F;
getWindow().setAttributes(params);
SystemClock.sleep(5000);
TextView Text01 = (TextView) findViewById(R.id.Tex... | java android | [1, 4] |
2,450,358 | 2,450,359 | Generate charts with Google chart API | <p>i'am trying to generate a chart like this one: <code>http://chartpart.com/</code> but i don't know how to do that exactly.Do i need to make the string that generates the chart manually or do i need to send the data to a google server and receive the string?(if so how do i send the data?)
PS:i would like to do all t... | c# android | [0, 4] |
1,705,906 | 1,705,907 | solve linear equations with 3 variables that is given by user | <p>i'm trying to figure out how to write down a program in java to solve 2 equations that have 3 variables, which is given by the user:</p>
<pre><code>A11 * X1 + A12 * X2 = B1
A21 * X1 + A22 * X2 = B2
</code></pre>
<p>numbers are given by user, per say 1 2 3 4 5 6 (for a11 a12 a21 a22 b1 b2)
and the answers are "no ... | java javascript | [1, 3] |
2,839,034 | 2,839,035 | How and where are variables that are used throughout the ASP.net Project created/stored? | <p>I want to be able to store variables that are accessible to all of the other files in my ASP.net project but can be modified programatically. What I am looking for is something akin to being able to pull information from the web.config file for say the database connection strings (ex System.Configuration.Configurat... | c# asp.net | [0, 9] |
2,543,091 | 2,543,092 | Problem with concat string in jquery animate | <pre><code>count = 0;
total = 2;
jQuery("#slide").everyTime(5000,function(i){
if(count == total-1) {
count = 0;
jQuery(this).stop().animate({backgroundPosition: "0px 0"}, {duration:1000});
}
else{
jQuery(this).stop().animate({backgroundPosition: "-"+950*count+"px 0"}, {duration:1000}... | javascript jquery | [3, 5] |
210,454 | 210,455 | Javascript - How to make a browser switch tabs? | <p>In my code a timed event launches a ModalDialog. If the user switches tabs before the event the tab blinks but that is it.</p>
<p>Is there a way to make the browser switch to the tab the dialog is on?</p>
<p>Thank you</p>
<p>Cheers for all your advice. I should of said before but code will only be run through IE ... | javascript jquery | [3, 5] |
1,453,656 | 1,453,657 | Why I am getting OutOfMemory Exception? | <p>I am getting OutOfMemory Exception. Why? I am using this code for logging. Does this approach correct?
Exceptions and closing of streams are handled in parent methods.</p>
<pre><code>private static void writeToFile(File file, FileWriter out, String message) throws IOException {
if (file.exists() && file... | java android | [1, 4] |
4,028,013 | 4,028,014 | how to access the user control controls in aspx code behind | <p>I created a user control with tab container in my project. I want to access the tab container from aspx page for the reason of disable the some tabs. For example i need to hide the first tab and third tab dynamically from aspx page. Because i am using the same user control for different page. Please help me to fix t... | c# asp.net | [0, 9] |
3,396,467 | 3,396,468 | Cookie not being set in IE | <p>I am setting a cookie in js and then checking in php whether it exists or not to determine whether the user has js enabled.</p>
<p>The non-js and js users are then served a different version of certain pages. This is working fine in ff, but not in IE? in IE we are seeing the version of the page as if no js is enabl... | php javascript | [2, 3] |
1,001,654 | 1,001,655 | Get Dates betwen Ranges, c# | <p>I've two dates</p>
<blockquote>
<ol>
<li>21/01/2011 [From Date]</li>
<li>25/01/2011 [To Date]</li>
</ol>
</blockquote>
<p>How can I get all the dates between these ranges using c#</p>
<p>The answer should be </p>
<blockquote>
<p>21/01/2011<br> 22/01/2011<br>
23/01/2011<br> 24/01/2011<br>
25/01/2011... | c# asp.net | [0, 9] |
4,571,478 | 4,571,479 | Sending mail periodically in ASP.net | <p>I'm trying to send confirmation mails to users periodically in ASP.NET. </p>
<p>To do this I polulate a queue with mails and check it every 30 seconds. Any confirmation emails in the queue at this time are sent and then cleared from the queue. </p>
<p>Does anyone know how to do this? </p>
<p>Here is my sending ma... | c# asp.net | [0, 9] |
1,956,424 | 1,956,425 | Element ID can't be found after beind appended to DIV | <p>I'm using this bit of jQuery to append a text input field to a div after a checkbox is checked:</p>
<pre><code>$('.sharewithfriends').on("click", ".manual-invite", function () {
if ($('input[name=manual-invite]').is(':checked')) {
$('<li style="margin-top:0;display:none"><input type="text... | javascript jquery | [3, 5] |
3,429,046 | 3,429,047 | Dynamic table with multiple datepickers | <p>I have a web form which has dynamic table using repeating rows. New rows are added by calling the addRow function below:</p>
<pre><code>function addRow(tableID) {
var table = document.getElementById(tableID);
var rowCount = table.rows.length;
var row = table.insertRow(rowCount);
var... | php javascript jquery | [2, 3, 5] |
3,308,889 | 3,308,890 | "Waiting" for ReadyState to be 4 before returning a value | <p>I have looked in lots of places for this, and I'm probably being an idiot because this is done a lot, but here's my situation.</p>
<p>I am trying to display a checkbox next to an e-mail field on my website iff the e-mail has not been used to register already.</p>
<p>What I have is something like this:</p>
<pre><c... | javascript jquery | [3, 5] |
3,780,563 | 3,780,564 | How do I increment CSS Y position coordinates using jQuery? | <p>I am creating an animation that changes the value of a background image. It is working perfectly if I hard code in the coordinates, but I am trying to modify it so that it simnply increments the position by 20px.</p>
<p>Here's the code I am using to retrieve the original Y position - works perfectly:</p>
<pre><cod... | javascript jquery | [3, 5] |
2,894,146 | 2,894,147 | Efficient way to detect window.load in this case | <p>My requirement is, I have to execute a script after all the page scripts execution is done. I am using the below code to do the same </p>
<pre><code>$(window).load(function ()
{
var j = setTimeout (function ()
{
alert("All page scripts have been executed and DOM is ready.");
// And here the script wi... | javascript jquery | [3, 5] |
4,820,039 | 4,820,040 | Android Rotate Matrix | <p>I have matrix. This matrix represents array x and y coordinates. For example </p>
<pre><code>float[] src = {7,1,7,2,7,3,7,4};
</code></pre>
<p>I need to rotate this coordinates to 90 degrees.
I use <code>android.graphics.Matrix</code> like this:</p>
<pre><code> float[] src = {7,1,7,2,7,3,7,4};
float[] dis... | java android | [1, 4] |
2,435,464 | 2,435,465 | Dynamically create an ImageButton | <p>I’m trying to dynamically declare an ImageButton.</p>
<p>I declare it and assign an ID and Image to it as follows:</p>
<pre><code>ImageButton btn = new ImageButton();
btn.ImageUrl = "img/Delete.png";
btn.ID = oa1[i] + "_" + i;
btn.OnClick = "someMethod";
</code></pre>
<p>But when I try to assign an OnClick handle... | c# asp.net | [0, 9] |
5,591,972 | 5,591,973 | Is it possible to bounce an image with jQuery | <p>Hi i trying to bounce a jpg with jquery but its not going anywhere you can check the code at</p>
<p><a href="http://jsfiddle.net/sethportman/WZumy/6/" rel="nofollow">http://jsfiddle.net/sethportman/WZumy/6/</a></p>
| javascript jquery | [3, 5] |
1,380,406 | 1,380,407 | jquery How to access only checked checkbox? | <p>I have a div which contains <code>7 checkboxes</code> , i wrote this following code for accessing <code>only the checked checkbox</code> into the <code>array icons</code></p>
<pre><code>var icons = $("div").find("input[type=checkbox]").each(function () {
if($(this).attr("checked") == "checked") return this; });
a... | javascript jquery | [3, 5] |
5,429,629 | 5,429,630 | How do I send an array of hashes as a parameter in a jQuery.get() request? | <p>I have an array of hashes in Javascript, which I need to send as a parameter in a jQuery.get() request. I've tried this:</p>
<pre><code>$.get('../notes/notes_temp_path',{temp_param:notes_array}, function(data) {
console.log("done");
});
</code></pre>
<p>but the server doesn't get the <code>temp... | javascript jquery | [3, 5] |
2,755,125 | 2,755,126 | jQuery Syntax error, unrecognized expression error when Tag id contains `$` sign | <p>I want to hide a specific <code>div</code> element, the name of which contains <code>$</code> sign, but I get the following error in firebug:</p>
<pre><code>Syntax error, unrecognized expression: $Frame
</code></pre>
<p>jQuery code:</p>
<pre><code>$(document).ready(function() {
$("#Button1").click(function() {
... | jquery asp.net | [5, 9] |
4,267,265 | 4,267,266 | jquery color coding | <p>I have some part numbers as a string.For example :
<code>partnumber = "a1;a2;a3"</code></p>
<p>Now I am displaying it using <code>text()</code> function like</p>
<pre><code>$("#id").text("Part number(s) " + partnumber+ " is shown");
</code></pre>
<p>But I want to change the color of <code>partnumber</code> only a... | javascript jquery | [3, 5] |
2,472,415 | 2,472,416 | Conflict between the different INCLUDED JavaScript files | <p>When I include the <a href="http://filamentgroup.github.com/EnhanceJS/enhance.js" rel="nofollow">enhance.js</a> plugin it makes a conflict with other jquery plugins, such as UI jquery plugins </p>
<p>I can't use the date picker functions for example .</p>
<p>what is the possible solution ?</p>
| javascript jquery | [3, 5] |
5,765,825 | 5,765,826 | Jquery: Setting/removing two attributes at once | <p>I am upcoming learner with jquery. Does anyone know how to give set two attributes at once that fit into the below example?</p>
<p><strong>For the moment I am only able to give it one attribute. My goal is to able to give two attributes to a select box 'disabled' and 'hidden'</strong></p>
<pre><code>obj.nextAll('... | javascript jquery | [3, 5] |
3,018,024 | 3,018,025 | How can I call a non-static method in a child Activity of an ActivityGroup from the ActivityGroup? | <p>I think the easiest way to ask the question would be to demonstrate how my current workflow is set up first:</p>
<ol>
<li>There is a <code>TabHost</code> that has an <code>ActivityGroup</code> as one of its tabs</li>
<li>That <code>ActivityGroup</code> as an <code>Activity</code> in it that calls an external servic... | java android | [1, 4] |
1,974,938 | 1,974,939 | use jquery to echo value from text box | <p>I am attempting to echo out the value after a text box has been filled in. </p>
<pre><code><input name="cron" type="textbox" placeholder=" Please insert a valid command in cron time format" class="required" />
</code></pre>
<p>The value of this textbox will then need to go into my cron_parser function and w... | php jquery | [2, 5] |
4,718,249 | 4,718,250 | Fixed header navigation and scrollTo() next/previous elements | <p>First off I use this code to make the navigation bar always stay fixed;</p>
<p>After adding CSS position absolute:</p>
<pre><code>var yOffset = $("#header").offset().top;
$(window).scroll(function() {
if ($(window).scrollTop() > yOffset) {
$("#header").css({
'top': 0,
'positi... | javascript jquery | [3, 5] |
1,016,252 | 1,016,253 | passing value to jquery methode in jquery coundown plugin | <p>I'm using jquery countdown plugin and i've two questions .
i have the following code</p>
<pre><code>$('#countbox').countdown({
layout:'<b>{d<}{dnn}:{d>}'+
'{hnn}: {mnn} : {snn} </b>',
timeSeparator: ':',
onExpiry: sold,
onTick: highlight,
serverSync: serverTime
});
function serverTime(pid... | javascript jquery | [3, 5] |
2,739,154 | 2,739,155 | How to open a file | <p>In my project I am trying to open a file. I am storing all the path of the file name along with extensions like .exe,.doc,.xml,etc.....in my database. I am fetching that path and trying to open it.In this I like to open it as a popup window to ask like OPEN,SAVE,CANCEL . Can any one help me to solve this problem. He... | c# asp.net | [0, 9] |
3,327,752 | 3,327,753 | Page scroller like SQL Designer | <p>How can i make a page scroller with jquery like SQL Designer panel
here one image of it: <a href="http://screensnapr.com/v/jX0Pk1.png" rel="nofollow">http://screensnapr.com/v/jX0Pk1.png</a></p>
<p>link: <a href="http://ondras.zarovi.cz/sql/demo/" rel="nofollow">http://ondras.zarovi.cz/sql/demo/</a>
please see at ri... | javascript jquery | [3, 5] |
1,141,175 | 1,141,176 | Changing Android Device name in code | <p>I am trying to change the name of the Android Device that my program that is currently running on because the name of the device will contain information that is relevant when it communicates with other phones. The name of the phone will be constantly changed as phone scans for other phones and calculates informatio... | java android | [1, 4] |
3,207,704 | 3,207,705 | Java implementation that is similar to C#'s XmlDocument | <p>Is there a java implementation that is similar to C#'s System.Xml.XmlDocument? I am currently trying to replicate this C# code fragment in Java. </p>
<pre><code>XmlDocument doc = new XmlDocument();
doc.Load(new XmlTextReader(new StringReader(message)));
XmlNamespaceManager nsmgr = new XmlNamespaceManager(doc.NameTa... | c# java | [0, 1] |
2,644,438 | 2,644,439 | Return clickable URL from text URL in JavaScript | <p>I'm working on a cascading dropdown list. When the last item is selected, it pulls up info from a .cs list based on all of the previous selections. This is working well. However, I would like the displayed results to include a clickable link as well as the other info. Right now I'm using document.write to open a new... | c# javascript | [0, 3] |
1,165,575 | 1,165,576 | How can I save objects as XML files | <p>I'm working on my high-school matriculation asp.net project, and I wish to make a website of a bookstore.</p>
<p>I want to create two classes,<code>Book</code> and <code>BookStore</code>, and save the data created in XML files and not in a database.</p>
<p>How can I save objects as XML files, and how can I load th... | c# asp.net | [0, 9] |
5,319,932 | 5,319,933 | Change an image for a second | <pre><code> ImageView image = (ImageView) findViewById(R.id.imageview);
image.setImageResource(drawable.image1);
SystemClock.sleep(1000);
image.setImageResource(drawable.image2);
</code></pre>
<p>I am trying to change the image for a second, my code above doesn't work but not sure why?
Should I be ... | java android | [1, 4] |
3,793,196 | 3,793,197 | Converting jQuery function to be reused easily without repetition | <p>I have the following function that fades each line of an unordered-list in and out. Right now it works for #skills_hints but I want to use it for other #named_hints. Is there a way I can reuse this code over multiple unordered lists without copying and pasting the <strong>entire</strong> code and just changing the I... | javascript jquery | [3, 5] |
3,809,827 | 3,809,828 | How may I obtaining value of label element using substring in label's for attribute using jQuery? | <p>I am trying to obtain the value of label elements using jQuery (or javascript). The only search term I have is a substring of the label element's for attribute. In the example code shown below, this would be 'Okuku'.</p>
<pre><code><label class="required" for="Nigeria-Osun-Okuku">The Township of Okuku</lab... | javascript jquery | [3, 5] |
5,328,427 | 5,328,428 | How to get String[] String's to a seperate String? | <p>I have a list of URL's added to a String[] with this.</p>
<pre><code>try {
Elements thumbs = jsDoc.select("div.latest-media-images img.latestMediaThumb");
List<String> thumbLinks = new ArrayList<String>();
for(Element thumb : thumbs) {
thumbLinks.add(thumb.attr("src"));
}
fo... | java android | [1, 4] |
5,956,408 | 5,956,409 | Retrieve html from textbox and display in popup | <p>I'm retrieving a string from a textbox which will contain html eg <code><html><head><body><div></div></body></head></html></code>.</p>
<p>Basically i have got the content from the textbox, but cant get the popup to display like a html page.</p>
<p>In my jquery code i... | javascript jquery | [3, 5] |
1,300,655 | 1,300,656 | finding if the click exists in set of coordinates | <p>Suppose i have coordinates of a rectangle. Now i want to find out if the touch event or click event position exists within the rectangle, How can i do that?</p>
<pre><code>A B
C
D E
</code></pre>
<p>E.g i have this rectangle <code>ABDE</code>. I clicked on C, now i have all the coordinates. How can... | java android | [1, 4] |
3,644,261 | 3,644,262 | JS replace not working on string | <p>Trying to replace all instances of # in a string with a variable. It's not working but not retuning any error either.</p>
<pre><code>answer_form = '<textarea name="answer_#" rows="5"></textarea>'+
'<input type="file" name="img_#" />';
question_num = 5;
answer_form.replace(/#/g, que... | javascript jquery | [3, 5] |
4,644,946 | 4,644,947 | How do I stop an effect in jQuery | <p>I have a page that uses </p>
<pre><code>$(id).show("highlight", {}, 2000);
</code></pre>
<p>to highlight an element when I start a ajax request, that might fail so that I want to use something like</p>
<pre><code>$(id).show("highlight", {color: "#FF0000"}, 2000);
</code></pre>
<p>in the error handler. The proble... | javascript jquery | [3, 5] |
4,113,774 | 4,113,775 | C# int.TryParse("3",out tst) AND Convert.ToInt32("3") returning 0x00000003 instead of 3 what can it be? | <p>All my code works fine until i did some changes that i cant track right now.
when i debugg my code i can see that the converting returning hex instead of number.
I have no idea why its happening or what can cause this.
any ideas please?
Thanks.</p>
| c# asp.net | [0, 9] |
3,983,046 | 3,983,047 | Email sending Java, Android | <p>I create the app with button "Sending". When I pressed this button, the app must show me a list of email-clients from mobile. How do I make that? Thank you for, anyway. </p>
| java android | [1, 4] |
2,984,628 | 2,984,629 | Is there any better way to do this in jquery? | <p>I want to know that is there any better method to do :</p>
<pre><code>var name = $('input').attr("name") != "undefined" ? $('input').attr("name") : "";
</code></pre>
<p>Here i am reading the <code>name</code> attribute of <code>input</code>. My problem is when i read the <code>name</code> for newly created <code>t... | javascript jquery | [3, 5] |
4,290,940 | 4,290,941 | String to Date/Time object in Android | <p>I have a string that contains the date/time returned from a web service like so:</p>
<pre><code>String dtStart = "2010-10-15T09:27:37Z"
</code></pre>
<p>How do I get this into an object such as Time or Date? I initially want to output it in a different format, but will need to do other stuff with it later (i.e. ma... | java android | [1, 4] |
1,012,172 | 1,012,173 | How to pass a dynamic ID to a function in JQuery | <p>Update:</p>
<p>in my code-behind code i have public varaible and assing like this </p>
<pre><code>public string Id { get { return Request.QueryString["id"].ToString(); } }`
</code></pre>
<p>and in .aspx page i am trying to access </p>
<pre><code>$(this).attr("EmployeeId", Id);
</code></pre>
<p>getting the erro... | javascript jquery asp.net | [3, 5, 9] |
3,735,095 | 3,735,096 | Form submit to run javascript and then post to php script | <p>I am currently working on a php/html/javascript project. I have a form where when the user presses the submit button, it should run a javascript function and then afterwards post to a php page to process the data that was submitted in the form.</p>
<p>I have the form run a javascript method as below</p>
<pre><code... | php javascript | [2, 3] |
2,194,492 | 2,194,493 | change base function behaveiour | <p>Assume I have executed this js code:</p>
<pre><code>var container=function() {
//do something
}
container.a=function {
//do something 2
}
container.b='34'
</code></pre>
<p>Here, in order to change container.a function for example I need to do:</p>
<pre><code>container.a=function() {
//do something 3... | javascript jquery | [3, 5] |
2,613,012 | 2,613,013 | Inserting null values into DB when nothing is selected in a DDL | <p>I am inserting values from a dropdownlist into a DB. If nothing is selected I want to enter a null but if nothing is selected z-SELECT- this option not inserted into the DB.
So how to enter null values.</p>
| c# asp.net | [0, 9] |
3,353,984 | 3,353,985 | how to resize a div with the browser window using javascript or jquery | <p>Is it possible to re-size a <code>div</code>'s height with the browser window using JavaScript or jQuery getting the windows object dimensions and creating a function?</p>
| javascript jquery | [3, 5] |
5,956,018 | 5,956,019 | Android - declaring namespace of my own app | <p>Hey, I tried to declare my own namespace, and use attrs.xml for holding some of attributes i need in application, but it just wont see my namespace.
in Manifest file I have</p>
<blockquote>
<p>manifest<br>
xmlns:android="http://schemas.android.com/apk/res/android"<br>
package="com.gierca"<br>
android:versio... | java android | [1, 4] |
1,249,482 | 1,249,483 | Pop-up Thumbnails of Linked Pages | <p>I would like to show thumbnails of external websites that I link to when the user mouses over the links, similar to how snap.com does this. How can I accomplish the same thing?</p>
| asp.net javascript | [9, 3] |
885,877 | 885,878 | Selecting an item in a GridView and adding to the List | <p>I have written the piece of code below to get a <code>productID</code> from a gridView when the user clicks on the select link.</p>
<p><code>Convert.ToInt32(GridView1.SelectedDataKey.Values["productID"])))</code></p>
<p>However, if a user clicks on this more than one click the newer value replaces the previous. Is... | c# asp.net | [0, 9] |
2,372,907 | 2,372,908 | How to use jQuery.map() on array of objects to return array of arrays | <p>I would like to use jQuery to convert an array of objects to array of arrays using map.</p>
<p>For example if I have this:</p>
<pre><code>var ObjArr = [{ a:1,b:2 },{ a:2,b:3 },{ a:3,b:4 }];
var ArrArr = $.map(ObjArr, function(n,i){
return [ n.a, n.b ];
});
</code></pre>
<p>So that the result would be:</p>
<pr... | javascript jquery | [3, 5] |
575,176 | 575,177 | Javascript error: Error: ta is not defined | <p>I am new to JavaScript and I am trying to add a character counter to a text field using this code: </p>
<pre><code>$(function(){
$('.txtclass').keypress(function(){
ta = $(this);
if(ta.val().length >= 350){
ta.val( ta.val().substr(0, 350) );
} else {
$("#counter span").tex... | javascript jquery | [3, 5] |
1,761,036 | 1,761,037 | Updating on-screen element several times in one function | <p>This has got to be easy, but has got me stumped.</p>
<p>How do I change an element on screen several times in one function?</p>
<p>I want to change a label to read something like "starting..." at the beginning of my function, then go away and do some stuff and then change the label to "finished" at the end.</p>
<... | c# asp.net | [0, 9] |
27,862 | 27,863 | Counting classes on another page and displaying them | <p>To save me a lot of work editing a number in when adding a document to a site I decided to use javascript to count the number of elements with a class <code>doc</code> .</p>
<p>I am two main problems:</p>
<ul>
<li><p>There is trouble displaying the variable. I initially thought this was because I hadn't added <cod... | javascript jquery | [3, 5] |
4,043,734 | 4,043,735 | Data submitted on second click only C# ASP.NET | <p>Hallo there
I have an interesting problem on which I was hoping to gain some insight.
I have a page with some textboxes an a radiobutton list and the information I submit to an access database in a web service.
When I click the submit button there seems to be a post back but the data is not inserted into the data... | c# asp.net | [0, 9] |
3,959,158 | 3,959,159 | jQuery division visibility hidden is not working | <pre><code>$("#id_btnquizzestwo").click(function() {
$temp = $("#rightsideeightone").is(":visible");
if($temp) {
$("#rightsideeightone").css('display') = 'none';
}
})
</code></pre>
<p>The rightsideeightone division is not being hidden.</p>
<p>What to do ?</p>
<pre><code>$("#id_btnquizzes... | javascript jquery | [3, 5] |
3,232,037 | 3,232,038 | How to port a J2ME application to Android platform? | <p>I have heard that there are soft wares for converting an existing J2ME app to Android? But I was doing a manual conversion till now. Am I doing a silly job/is it possible to do convert any J2ME application?</p>
| java android | [1, 4] |
4,530,402 | 4,530,403 | Cannot allow duplicate enty in textboxes using jquery | <p>i have a text boxes in every row with same name like this</p>
<pre><code> <tr>
<g:textField name ="point" value = "" class = "destination_points" id ="point_0" />
<input type ="hidden" value ="" name ="pointDistanceMapping.point.id" id ="point_id_0" class="point_id"/>
</tr>
&l... | javascript jquery | [3, 5] |
4,693,454 | 4,693,455 | ASP.NET and jQuery - call from codebehind | <p>This is a problem i've tried so solve before but gived up.
Basicly i'm using ModalPopupExtenders (from AJAX.NET) to display Panels with a few content (text, controls, etc). And i'm calling it from codebehind. And it works well.</p>
<p>But now i want to replace the ModalPopup with some jQuery dialog box. The proble... | asp.net jquery | [9, 5] |
1,402,695 | 1,402,696 | Send information from activity via network | <p>I want to send the data I get in onLocationChanged() via tcp/ip. I can read the location and network works, too: I can connect and send data.
The problem is: Network can't be in the Activity-thread, but onLocationChanged() has to. Now here is my question:
How do I get the location information from the activity threa... | java android | [1, 4] |
1,659,401 | 1,659,402 | anticipating a click event within a while loop - jquery/javascrip | <p>I'm working on a little dice game app with javascript/jquery and the part where I run into trouble is in the following while loop. I want the user to click the button and then the body of the while loop should execute. However, with the following code, the contents of the while loop execute without waiting for the... | javascript jquery | [3, 5] |
3,820,373 | 3,820,374 | Patter checking.check of incorrect number of operators and brackets | <p>In an expression , How to</p>
<ol>
<li><p>1.Check if operators and operands are correct or not.</p></li>
<li><p>2.check if brackets match or not.</p></li>
</ol>
<p><strong>Example 1</strong>: <code>(a+b)-</code> has a one extra operator How do i confirm that the number of operators are incorrect.</p>
<p><strong>E... | c# javascript asp.net | [0, 3, 9] |
4,277,045 | 4,277,046 | dynamically change alternate row colors | <p>I have 5 tr, these are row alternate color. Now how to change tr color dynamically when I delete some row.</p>
<p>Assume below is table tr and td</p>
<p>this is my row </p>
<pre><code>tr class='odd'
tr class='even'
tr class='odd'
tr class='even'
tr class='odd'
tr class='even'
tr class='odd'
tr class='odd'
tr... | javascript jquery | [3, 5] |
3,874,555 | 3,874,556 | Calling JQuery function from different context | <p>This might be a very basic question but I'm trying to understand this behavior</p>
<p>This is my javascript code. I want to know why second call to foo does not work. Here is the <a href="http://jsfiddle.net/kwdxa/" rel="nofollow">JSFiddle link</a></p>
<pre><code>$.fn.foo = function(somestring){
var $this = this... | javascript jquery | [3, 5] |
1,152,069 | 1,152,070 | Having trouble building a calculator | <p>I am trying to build a simple calculator to learn javascript/jquery but seem to be getting quite confused on how to make it work. Basically at the moment I dont seem to be able to update my tally correctly, instead of the numbers/values being added together in a sum they are being concatenated instead, if anyone cou... | javascript jquery | [3, 5] |
4,718,727 | 4,718,728 | How to attach image in input fields using Php/javascript? | <p>I am having one form in that input fields are <strong>regno,name,date of birth</strong> etc.</p>
<p>With this input fields i need to attach image along with this input fields how I can do using <code>PHP/JavaScript</code></p>
| php javascript | [2, 3] |
6,023,108 | 6,023,109 | Transferring data from the form in the browser through own sheme | <p>I have a question about own sheme.
I can go to Activity if I click url link in browser but I can't go Activity if i set url in browser or send form in own sheme url. </p>
<p>Is it even possible to catch such action on its own sheme?</p>
| java android | [1, 4] |
5,971,235 | 5,971,236 | C#, why string variable isn't set? | <p>I have this code</p>
<pre><code>using partial class : system.web.ui.page
{
private string mystr = "";
protected void func1()
{
string internalstring = "abc";
mystr = String.Copy(internalstring);
}
private void func2()
{
func1();
echo(mystr); // mystr is ... | c# asp.net | [0, 9] |
2,902,184 | 2,902,185 | Issue getting information from database into variable | <p>ok, so i have got a dropdownlist, which contains a number from a database(the amount of seats taken). If the rest of the dropdownboxes change(the flight arrival/departure), the dropdown box with the seats taken box changes to the correct piece of data associated with that flight
I am trying to store the seats taken ... | c# asp.net | [0, 9] |
5,435,981 | 5,435,982 | jQuery/JS : empty field after success? | <p>at my ajax call success i wish to empty the field.</p>
<pre><code> success: function(msg){
$(wrapperId).prepend(msg);
}
}
</code></pre>
<p>I tried this:</p>
<pre><code> success: function(msg){
$(wrapperId).prepend(msg);
$('#message').html("");
}
}
</code></pre>
<p>But it wont work</p... | javascript jquery | [3, 5] |
2,302,654 | 2,302,655 | Concise way to compare against multiple values | <p>Consider the following:</p>
<pre><code>var a = 'jesus';
if(a == 'something' || a == 'nothing' || a=='anything' || a=='everything'){
alert('Who cares?');
}
</code></pre>
<p>Is there a way to make this shorter?</p>
<p>Is there anything in Javascript like <code>if (a=='bbb'||'ccc')</code>?</p>
<p>In addition, c... | javascript jquery | [3, 5] |
1,532,961 | 1,532,962 | How to Get cell index in gridview | <p>I'm using a website(asp.net,C#) to view some details in gridview. In that gridview I have generated checkboxes dynamically. So it will be placed any cell inside of that gridview. I find that control in grdview by using FindControl(), but I cant get that cell index... now I want to get that excact cell index which pl... | c# asp.net | [0, 9] |
5,311,999 | 5,312,000 | How do I make an ASP.Net GridView postback on an onBlur event? | <p>I have an ASP.Net GridView, with two columns ("ID" and "name"). The name column is editable via an <asp:TextBox>. What I want to do is have the grid trigger its update event when the user clicks away from an editable cell. </p>
<p>I know I can attach an onBlur event handler to the TextBox to retrieve the v... | c# javascript asp.net | [0, 3, 9] |
1,866,848 | 1,866,849 | load() without jQuery? | <p>I am trying to get rid of using jQuery from my widget, having troubles finding how to replace load().</p>
<p>How would i do this in native JavaScript?</p>
<pre><code> $('#IframeABC').load(function() {
var animator = new Animator('sWrapper');
animator.animate();
... | javascript jquery | [3, 5] |
1,323,773 | 1,323,774 | Why is the fact that Microsoft decided to support jQuery such a big deal? | <p>I don't see what all this fuss is about Microsoft's decision to support JQuery within ASP.NET MVC.</p>
<p>There were signs that open-minded people are starting to have some say in the matters of marketing for a while now. And even the way MS does business has started to change. But at it's core it's still acting in... | jquery asp.net | [5, 9] |
5,223,695 | 5,223,696 | Social Popup Plugin | <p>I'm trying create something so that when the user gets to the end of the page they get a div popup.</p>
<p>For some reason it's working in Internet Explorer but in Chrome it doesnt. I'm thinking because the top() element:</p>
<pre><code><span id="myPara"></span>
<script src="https://ajax.googleapis.... | javascript jquery | [3, 5] |
347,977 | 347,978 | Given a string of html code, how can I go through every tag and remove ones that is not in my whitelist (in JQuery)? | <pre><code>var whitelist = ['a','div','img', 'span'];
</code></pre>
<p>Given a block of HTML code, I want to go through <strong>every single tag</strong> using JQuery</p>
<p>Then, if that tag is NOT in my whitelist, <strong>remove it and all its children.</strong></p>
<p>The final string should now be sanitized.</p>... | javascript jquery | [3, 5] |
2,388,606 | 2,388,607 | How can I convert php string value to android string value? | <pre><code>public static String ConnDB() throws ParseException, IOException {
// TODO Auto-generated method stub
String webAddress = "http://10.0.0.1:8080/jspbook/AppStore/NewFile.php";
HttpGet httpGet = new HttpGet(webAddress);
HttpClient httpclient = new DefaultHttpClient();
HttpResponse response ... | php android | [2, 4] |
3,157,635 | 3,157,636 | Call php query with javascript | <p>my Code </p>
<pre><code><script type="text/javascript" src="http://test.com/test.php"></script>
</code></pre>
<p>the javascript is for a multidomain use , it must be like this it <strong>can't</strong> be changed </p>
<p>i need to make the javascript call the php with the host url as query</p>
<p>loc... | php javascript | [2, 3] |
3,803,424 | 3,803,425 | Theme has superfish - how to add supersubs? | <p>I'm using a theme that is using Superfish for the navigation menu. The problem is, if the sub item is too long it will drop underneath, i want to keep the individual menu item's text on one line.</p>
<p>Now i've found supersubs for the superfish menu but i don't know how to add it to the theme.</p>
<p>This is in t... | jquery javascript | [5, 3] |
248,339 | 248,340 | preload input type image | <p>How can I preload images when they are defined "within" an input type in the html layout like this:</p>
<pre><code><input type="image" src="bla.png" id="myimage1" data-url="Myurl" />
</code></pre>
<p>I see so many samples with the img-tag but not the input of type image.</p>
| javascript jquery | [3, 5] |
919,088 | 919,089 | How to access a closure variable from within a callback | <p>I am looping through an array of urls. Each one fetches some jsonp data from a different domain. The success handler needs to be able to access the data in the original loop, however when called from the callback it is always the last value and not the value that was set when the ajax function was called. How do I a... | javascript jquery | [3, 5] |
5,536,427 | 5,536,428 | How to retrieve value in jquery | <p>In my js I have a var in which I have stored innerHTML.
The var is having value something like</p>
<pre><code> <h2>headline</h2>
<div>....</div>
...........
</code></pre>
<p>Now I want to retrieve value of h2 tag..what I am doing is</p>
<pre>... | javascript jquery | [3, 5] |
2,449,014 | 2,449,015 | How to locate a path in ASP.NET application | <p>How to locate a place on a machine(virtual path) in an ASP.NET APPLICATION,</p>
<p>the problem is this, In windows or desktop application we have .exe in debug folder so can refer other files relatively to .exe like ..\resources mean one folder upper of .exe there is a resouce folder, if i want to do the same in we... | c# asp.net | [0, 9] |
3,779,158 | 3,779,159 | Create a global javascript or jQuery variable visible in many pages | <p>I have a js variable with many functions, and I want to create in one of them a global variable visible in another php file that load the js file.</p>
<p>How can I do that ? </p>
<p>Thanks for help.</p>
<p>Thaks for help : here's an edit : </p>
<p>The variable has a dynamic value and is generated <code>on event.... | javascript jquery | [3, 5] |
766,157 | 766,158 | Increase/ decrease value with dragging | <p>I'd like to have such a feauture in my app: when user drag finger on the screen up to down some parameter will be decreased, when drag down to up, parameter will be increased. I will use is to dynamically change length of drawed element. Could you give me some instrutions how to write such a thing?</p>
<p>EDIT:
To ... | java android | [1, 4] |
372,163 | 372,164 | Count + / - for checkbox click and unclick | <p>When a user clicks the checkbox the counter #counter +1, thats fine, but when he unchecks it does not -1 for the same checkbox. I want to +1 when they click a particular checkbox and when unchecking -1.</p>
<p>--JS--</p>
<pre><code>$('.CheckBox').toggle(function(){
$('#Counter').html('( '+i+' Selected )');
... | php javascript jquery | [2, 3, 5] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.