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 |
|---|---|---|---|---|---|
5,355,982 | 5,355,983 | Subtract value at a set interval? | <p>I'd like to have a php function which will deduct a value, say, 50 from an initial integer of say, 500 at a set interval.</p>
<p>For example: Every 30 days, deduct 50 from 500. So after 90 days, you are left with 350, etc.</p>
<p>I can do subtractions, it's the interval routine that I can't figure out.</p>
<p>If ... | php javascript | [2, 3] |
3,046,618 | 3,046,619 | jquery function is not called on single click rather gets called on double click | <p>I have a problem with my application. Here is my code:</p>
<pre><code>$("#imgphonemain").toggle(addphonerows, "romove funtion");
$("#imgsms").toggle(addsmsrows, "romove funtion");
function addphonerows(event) {
removesmsrowsbyphone("imgsms");
addrowsbyphone("imgphone");
}
function addsmsrows(event... | javascript jquery | [3, 5] |
4,813,343 | 4,813,344 | Use C# to trigger java script code inside an html page | <p>If I have an html page with all the scrips in it, how can feed this html to some sort of egine in .NET and use C# could to simulate user interaction with that page (like problematically presses a buttom or cause the web page to request a next page of a grid inside the html file) which would cause the page to to do w... | c# javascript | [0, 3] |
4,331,291 | 4,331,292 | Javascript single element dropdown | <p>I am fairly new to javascript and have been trying to fathom how to make each element in my code drop down as it is clicked.</p>
<p>At first glance I thought I would need to add $(this). to each of the events but refreshing my page did not affect the behavior, all divs would continue to animate down upon one click.... | javascript jquery | [3, 5] |
4,486,957 | 4,486,958 | Csharp code to check Java script disabled in browser | <p>i am having a application in which java script is must. but i am facing problem when at any client browser has java script disabled. i want a code using which i can check the browsers java script enabled/ disabled property so that the user cannot login until he enables javascript. can anyone help me in this code</p>... | c# javascript asp.net | [0, 3, 9] |
792,466 | 792,467 | javascript comparing strings (for date purposes) | <p>Ive only ever done absolute comparisons before, so Im a bit stuck as to how to deal with this...</p>
<p>I have two strings returned from PHP (format is DATE_ATOM i.e 2012-01-20)</p>
<p>What I need to do is compare one string (date) against another - however, I need to return true on the following three conditions<... | php javascript | [2, 3] |
2,502,899 | 2,502,900 | Weird int comparison bug in onContextItemSelected | <p>I'm facing a weird bug in my onContextItemSelected event handler. Here is the code -</p>
<pre><code>@Override
public boolean onContextItemSelected(MenuItem item) {
// Handle item selection
int itemIntegerId = item.getItemId();
if(itemIntegerId == 0)
{
// Edit
return true... | java android | [1, 4] |
175,649 | 175,650 | How would I stop the click method from working more than once? | <p>I have a click method on a button + link that animates stuff as a result of the click. However, I want it so that it only works once. I managed to disable the button after it's clicked, so that's good. But I tried <code>.disabled = true</code> on the link and it didn't work. Is there some way I could prevent it from... | javascript jquery | [3, 5] |
3,293,594 | 3,293,595 | How to disable a certain radio button in a RadioButtonList in Javascript | <p>I'm at my wit's end when it comes to this. JavaScript definitely isn't my strong suit and I've been trying to google for a solution. Here's the code I have:</p>
<pre><code><asp:RadioButtonList ID="Group1Most" onClick="disable('Group1Most', 'Group1Least')" runat="server" >
<asp:L... | javascript asp.net jquery | [3, 9, 5] |
588,227 | 588,228 | Basic jQuery: what is the point of a wrapper? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/2937227/what-does-function-jquery-mean">What does (function($) {})(jQuery); mean?</a><br>
<a href="http://stackoverflow.com/questions/3090284/for-the-function-function-ive-seen-it-with-the-word-jquery-in-it-why">F... | javascript jquery | [3, 5] |
4,215,669 | 4,215,670 | JavaScript include declaration fails to find file | <p>There has to be something utterly simple I'm overlooking here, but for the life of me I can't get a JavaScript file to include properly from my master page. My declaration in the <code><head></code> element looks normal enough:</p>
<pre><code><head runat="server">
<title>Untitled Page</tit... | asp.net javascript | [9, 3] |
4,880,568 | 4,880,569 | How to read the head section of a web page? | <p>On my web page, when the user types in a URL in the text field, I wan to get some information about that page, like title or link information. </p>
<p>Is there way to do it? On the client (JavaScript) or on the server (PHP)? And how?</p>
| php javascript | [2, 3] |
131,658 | 131,659 | Javascript app in Android | <p>I am new to Android programming, and looking for some general knowledge. I am considering writing logic of my application in javascript so that the same code could be executed in a webapp and in a desktop application. Would it be possible to also have it working on Android? I know that:</p>
<ul>
<li>SL4A is marked ... | javascript android | [3, 4] |
663,166 | 663,167 | jQuery: load response Document into div | <p>I get an asyc response from the server that contains an HTML that I would like to display:</p>
<pre><code> $( document ).ready( function ()
{
var options =
{
success: showResponse,
error: errorHandler,
type: 'post'
};
// bind to the form's submit event
... | javascript jquery | [3, 5] |
4,019,098 | 4,019,099 | Help With Scalable JavaScript Application Architecture and Chaining | <p>I'm currently trying to roll my own javascript application architecture based off of the recommedations by <a href="http://yuilibrary.com/theater/nicholas-zakas/zakas-architecture/" rel="nofollow">Nick Zakas</a> and I am using jQuery as the base library. I have everything pretty much working but it dawned on me tha... | javascript jquery | [3, 5] |
622,323 | 622,324 | How to allow only english,numeric and special chars in textbox using jquery or javascript? | <p>I want to allow only English,numeric and special characters to be typed in my web page. i want to apply this thing using jquery or javascript. Actually my application is in 2 languages so for that i want to do this. I want to do the same thing with Arabic language too.. please help me.
How can I do that?</p>
| javascript jquery | [3, 5] |
5,011,668 | 5,011,669 | how does your custom class relate to the database | <p>Okay, so i've studied c# and asp.net long enough and would like to know how all these custom classes i created relate to the database. for example. </p>
<p>i have a class call Employee</p>
<pre><code>public class Employee
{
public int ID { get; set; }
public string Name { get; set; }
public string Emai... | c# asp.net | [0, 9] |
3,783,928 | 3,783,929 | Help understanding jQuery | <pre><code>jQuery(function ($) {..}
</code></pre>
<p>I am trying to learn jQuery and came across some code that started like the above statement. What does that mean?</p>
| javascript jquery | [3, 5] |
386,244 | 386,245 | Proper way to escape characters from RegisterStartupScript | <pre><code>ScriptManager.RegisterStartupScript(page,
page.GetType(),
"KEY",
"updateDockTitle('" + ClientID + "', '" + string.Format(format, ChartName, "No Data To Display") + "');".Replace("-", "\\-"),
true);
</code></pre>
<p><code>ChartName</code> has the ability to contain special characters (e.g. S... | c# javascript | [0, 3] |
3,717,510 | 3,717,511 | How to get a name of browser by using JavaScript? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/4213222/reliable-browser-detection-with-javascript">Reliable browser detection with javascript?</a> </p>
</blockquote>
<p>How to get a name of browser by using JavaScript? </p>
<p>I expected to see only the nam... | javascript jquery | [3, 5] |
3,934,999 | 3,935,000 | adding .live to click functions in jquery | <p>We have an app that uses a lot of jquery stuff and we're adding up all our scripts in an init.js file which has a lot of <code>.live("click"), .live("hover")</code> etc, stuff plus some <code>if($(".classname").length)</code> etc.</p>
<p>I have a suspicion it MIGHT be slowing down our pages unnecessarily(some pages... | javascript jquery | [3, 5] |
1,901,482 | 1,901,483 | javascript dynamic function call undefined | <h1>The function savefromtextarea() & varialbe globe is undefined wen called on click of save button...</h1>
<p>This one part of my code...I need to access the save from texarea method when clicked on the save text button...when I try to invoke the saveFromTextArea method its throws globe is undefined but globe va... | javascript jquery | [3, 5] |
1,158,208 | 1,158,209 | Jquery how to make continious functions? | <p>I am doing a click function, in that function i am creating a new <code><div></code> and wrapping no.of other div's inside as children. Once the children are added, I need to calculate each child's width and apply to the parent (what I created), is it possible to do as chain function?</p>
<pre><code>$('.thick... | javascript jquery | [3, 5] |
86,609 | 86,610 | Website in PHP to Python: framework/database/scalability | <p>I've been working on a somewhat large website written in PHP. It's around 7,500 lines from start to finish. Recently, me and a few friends were throwing around the idea that before we move any further along in its expansion in PHP, we should take a step back (temporarily), convert it to Python, and overall, it will ... | php python | [2, 7] |
4,805,590 | 4,805,591 | aspx submit form error | <p>Im working with asp.net framework 4.0 and I have this code:</p>
<p>form id="form1" runat="server" method="get" action="Profile.aspx"</p>
<pre><code> // some code
</code></pre>
<p>asp:Button runat="server" ID="SubmitButton" Text="Submit"</p>
<p>Each time i click the submit button i get this error:</p>
<p><stron... | c# asp.net | [0, 9] |
2,623,221 | 2,623,222 | Best way to access server side method from client side? | <p>I am using webmethod and AjaxPro, to access server side method from client side .Is any other ways to access to server side method,better than these.</p>
| c# asp.net | [0, 9] |
5,497,764 | 5,497,765 | differece between for loops in Java and foreach loop in PHP | <p>In PHP we use....</p>
<pre><code>foreach ($array as $value) {
echo $value;
}
</code></pre>
<p>In Java the same thing can be done using</p>
<pre><code>for (int e : array) {
System.out.println(e);
}
</code></pre>
<p>is there any difference between the above 2 code segments</p>
| java php | [1, 2] |
1,711,530 | 1,711,531 | Using other web app App_GlobalResources resorces asp.net C# | <p>I cant't figure out how can i use other web app App_GlobalResources resources file in my webapp</p>
<p>both are in same server.</p>
<p>Thanks! </p>
| c# asp.net | [0, 9] |
556,610 | 556,611 | a compilling issue using the android virtual device | <p>I have a question about the android virtual device(avd)... as what you already know, that you can test your android application through avd in eclipse, and i'm getting a boring repeted thing with that.</p>
<p>each time I want to test my application and when I make a small change to my application, I have to run the... | java android | [1, 4] |
1,705,126 | 1,705,127 | string.Format did not work for string line type parameter? | <p>I have to pass two parameters to CallSome() </p>
<pre><code>string.Format("CallSome({0},'{1}');", someId, someName);
</code></pre>
<p>But someName did not work for this kind of values which is having space. like</p>
<p>Its working for '123', 'name'</p>
<p>But not for this 'My Name' Its given an error of this Af... | javascript jquery | [3, 5] |
1,957,177 | 1,957,178 | Select n:th child from the bottom with jQuery? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/4617634/jquery-select-the-last-4-items-in-the-list">jquery: select the last 4 items in the list</a> </p>
</blockquote>
<p>jQuery has the nth-child psuedo-class, but is there a way to select the say 3:rd to last ... | javascript jquery | [3, 5] |
1,427,371 | 1,427,372 | Client side href lost, can I send it back on postback? | <p>I'm losing client side href. Is it possible to send it back to the server on the button submit using a variable or something?</p>
| javascript asp.net | [3, 9] |
3,945,585 | 3,945,586 | How to stop soft keyboard appear by default in android | <p>I am writing an android application with two EditText on the main activity. My problem is that once the main activity starts the soft keyboad automatically appears. I want the soft keyboard to appear only when the user clicks on the EditText component. How can I accomplish this? </p>
| java android | [1, 4] |
1,779,755 | 1,779,756 | Deleting from an array based on a string value | <p>I have defined an array like so : </p>
<pre><code>var myArray = {myNewArray: ['string1' , 'string2' , 'string3']};
</code></pre>
<p>I want to iterate over the array and delete an element that matches a particular string value. Is there a clean way in jQuery/javascript to achieve this ?</p>
<p>Or do I need to ite... | javascript jquery | [3, 5] |
3,354,633 | 3,354,634 | find texbox value using javascript? | <p>hear is my HTML:</p>
<pre><code> <div>
<input type='text' />
<input id='mybutton' type='button' value='button'/>
</div>
</code></pre>
<p>I want to find text box value when button is clicked:</p>
| javascript jquery | [3, 5] |
1,107,690 | 1,107,691 | jQuery statements which interact with the DOM not working on 'soft' refresh only, but console log statements are | <p>I feel like I am banging my head against a wall right now; I know it has been reported, in jQuery 1.8.0, that the <code>document.ready</code> function is firing too early in IE 9 & 10. However I have the following snippet of code running under jQuery latest (1.9.1):</p>
<pre><code><script type="text/javascri... | javascript jquery | [3, 5] |
1,883,089 | 1,883,090 | Jquery How to use history plugin? | <p>In my web application I am using ajax and now I'd like the back and forward browser buttons to work. So I went looking for a jquery history plugin and found this one: <a href="http://stilbuero.de/jquery/history/" rel="nofollow">http://stilbuero.de/jquery/history</a></p>
<p>In my code I use a function to load a page... | javascript jquery | [3, 5] |
733,493 | 733,494 | change image size on click using javascript | <p>I'm using ASP.NET,C# to develop my web app, I have a button (created as an image), when user clicks on this button, its size should be decreased for a small fraction of time and then it should return to its normal size again, how can I perform this effect? I've created a javascript function for button click and I wa... | javascript asp.net | [3, 9] |
508,476 | 508,477 | how to set text in Bold Before " | " | <p>This is my code :</p>
<pre><code>for (int i = indexRowStart; i < indexRowEnd; i++) {
Element e = (Element) nl.item(i);
// adding each child node to HashMap key => value
map = new HashMap<String, String>();
map.put("RowID", String.valueOf(RowID));
String Heading = parser.getValue(e, ... | java android | [1, 4] |
1,724,352 | 1,724,353 | Need Javascript to open a web page in full screen after logging in | <p>I have one login.aspx page one master page(Master.master). When I click on login button, my web page should view in full screen mode.This should happens automatically when user credentials are correct.Master page should open in full screen mode.</p>
<p>I don't want it in new window(pop up window). I don't want to ... | javascript asp.net | [3, 9] |
5,111,746 | 5,111,747 | How to download jQuery js plugin? | <p>I am confused about js file of jQuery which one i have downloaded just now.</p>
<p>downloaded a zipped folder contains a lot of folder and files inside it. How can i know which one js file exactly is for particular plugin?</p>
<p>Lets say, i have to downloaded for <strong><em>Dialog</em></strong> and i <a href="ht... | javascript jquery | [3, 5] |
1,447,324 | 1,447,325 | Add to ArrayList | <p>This is a part of my code:</p>
<pre><code>int n= random.nextInt(images.length - 1);
iv.setImageResource(images[n]);
</code></pre>
<p><code>Int n</code> choose one of the indexes randomly and then I used <code>ImageResource</code> to show pictures according to the the random indexes. Now I want to add <co... | java android | [1, 4] |
70,002 | 70,003 | Unable to install Android SDK | <p>I had a Windows XP. I also had JDK6. I downloaded "Android installer r11" for windows. When I click the installer, the error message is displayed as alert Java SE development kit is not found, Then the installation cannot happen.</p>
<p>But in my system I had a Java SE 6. I cannot find why it is not take the Java.<... | java android | [1, 4] |
1,381,783 | 1,381,784 | How to populate list view with three array? | <p>I have three String[] populated with JSon data. So I need list view with all three String[] ,for example : String[] name to be on the top, then String[] address and on the bottom String[] phone. I found few tuts about custom array adapter but I didn't understand them so well. So, to repeat I already have all data in... | java android | [1, 4] |
4,685,849 | 4,685,850 | Loop through all childs of GroupView? | <p>Here is my code:</p>
<pre><code> Typeface font = Typeface.createFromAsset(getAssets(), "fonts/choco.ttf");
ViewGroup rootView = (ViewGroup) findViewById(android.R.id.content).getRootView();
for(int i = 0; i < rootView.getChildCount(); i++)
{
View child = rootView.getChildAt(i);
L... | java android | [1, 4] |
3,129,739 | 3,129,740 | question-suggestion list | <p>i have a asp.net page. i m writing some words in a question textbox named txtTitle, after moving to another txtbox named txtbox2, i want that it should open a question-suggestion page based on that keyword typed in txtbox1 in the space before txtbox2. i hv tried this but it is not working. can anyone provide me the ... | c# asp.net jquery | [0, 9, 5] |
1,095,203 | 1,095,204 | make Row in gridview asp.net clickable? | <p>I create gridview and remove the select button to make all row clickable but I want to redirect the user for selected item detail<br>
Note: I remover the CommandField select Visible="False"</p>
<pre><code> int rowCount = 0;
protected void gv_TasksProjectForUser_RowCreated(object sender, GridViewRowEventArgs e)... | c# asp.net | [0, 9] |
750,967 | 750,968 | setInterval then update page title depending on the outcome | <p>I am using this code to retrieve notifications automatically </p>
<pre><code>setInterval(function(){
$('.user_drop_down_num_notifications').load('some url');
$('.num_messages').load('some url');
$('.num_notifications').load('some url');
},3000);
</code></pre>
<p>But what I would like to do is if there is any N... | javascript jquery | [3, 5] |
4,737,428 | 4,737,429 | converter application | <p>i've realized an application that converts a decimal number to binary, hexadecimal and octal. this program converts all the number that i write in the EditText thanks to three buttons, one for binary, one for hexadecimal and octal, but if i delete the number from the EditText, and i push one of this button, the prog... | java android | [1, 4] |
3,992,443 | 3,992,444 | How to intercept the onclick event | <p>I'd like to intercept the onclick event of a button (not submit) before the page posts back from the onclick.</p>
<p>I'm having some trouble:</p>
<pre><code>$(document).ready() { function() {
function validate() {
...
}
var oldOnClick = $("input[value=OK]").attr("onclick");
$("input[value... | javascript jquery | [3, 5] |
84,909 | 84,910 | scrollTop going back top before scrolling | <p>I have a function which scrolls the page to a given offset. I'm using the parallax effect, so all my elements (and pages, or "slides") are positioned depending on the scroll bar location.</p>
<p>My little problem is that when I click a link to another slide, it scrolls the page to the desired offset, but the event ... | javascript jquery | [3, 5] |
143,619 | 143,620 | How do I create a dynamic key for a key/value pair in JavaScript? | <p>Just now my code is: </p>
<pre><code>data = {'field_name':"some value",'name':$(this).val()};
</code></pre>
<p>However, I'd like to change the name key so it is dynamic, e.g something like: </p>
<pre><code>var name = $(this).attr('id');
data = {'field_name':"some value",name:$(this).val()};
</code></pre>
<p>Is t... | javascript jquery | [3, 5] |
3,392,549 | 3,392,550 | Is there any callback function on click? | <p>Let's say I have the following link: </p>
<pre><code><a href="#shippingaddress" onclick="return validateBillingAddress(document.addressInput,'ADDR_CONTINUE_ACTION',event);" >
</code></pre>
<p><strong>EDIT</strong><br>
<strong>i am using multi page approach to show different section(divs) as a page</strong... | javascript jquery | [3, 5] |
5,845,542 | 5,845,543 | Php code to receive a StringBody from android? | <pre><code>entity.addPart("uploadedImage", new ByteArrayBody(data,"Image.jpg"));
</code></pre>
<p>To use the above image file I sent from android to php I use <code>$_FILES['uploadedImage']['name'];</code></p>
<p>Can Anyone show me an example of how to do the same with a StringBody sent from android -</p>
<pre><code... | php android | [2, 4] |
1,380,644 | 1,380,645 | Resolving Description Resource Path Location Type errors | <p>I am using android 2.2 and if I run my project these errors occur. I am new to programming android applications. Can anyone help me?</p>
<p>1) Description Resource Path Location Type: The project was not built since its build path<br>
is incomplete. Cannot find the class file for java.lang.Object. Fix the build ... | java android | [1, 4] |
350,002 | 350,003 | Return (T)Request[key]; | <p>I have this existing code which works very well.</p>
<pre><code>public static T SessionGet<T>(string key)
{
if (Session[key] == null)
return default(T);
else
return (T)Session[key];
}
</code></pre>
<p>I wanted to make a version that works for Request. I realise that Request is string ... | c# asp.net | [0, 9] |
5,432,539 | 5,432,540 | how to read file, split record line by line and save them to database | <p>A.O.A</p>
<p>I want to split the following code and save it into database:</p>
<pre><code>31201011281853000100000000710003
</code></pre>
<p>The format of splitting is</p>
<pre><code>31
(2010-11-28,18 53) yyyy-mm-dd,hr-min
0001
0000000071
0003
</code></pre>
<p>first I have to upload a file containing these... | c# asp.net | [0, 9] |
1,903,628 | 1,903,629 | Return matched elements' attribute ar array using jQuery | <p>In jQuery, it is easy to select elements as array.</p>
<blockquote>
<p>$("a"); // return as elements array of anchors</p>
</blockquote>
<p>But is it possible to select <strong>matched elements' attributes</strong> as array?</p>
<p>Currently I need to do something like...</p>
<blockquote>
<p>links = [ ]; </p... | javascript jquery | [3, 5] |
4,255,648 | 4,255,649 | 2 tables, need to set the rows with the maximum height for each matching row | <p>I have 2 html tables, I need to have each row with the same height.</p>
<p>So if table#1's 3rd row has a height of 25, then table#2's 3rd row should have a height of 25.</p>
<p>Whichever matching row has the largest height, then both rows should have the same height.</p>
<p>How can I do this?</p>
<p>I know how t... | javascript jquery | [3, 5] |
2,744,986 | 2,744,987 | How to Add Data Contents to Data Grid in the Same Page without any Database Connectivity? | <p>Say, I have a TextBox - When the User enters contents into TextBox and Click on Add the Content Should Populate in the DataGrid Without any db connectivity. The User Can add repeated items in the TextBox and Click on Add, So Every Value gets Popluated in the Grid.
How do I achieve this?</p>
| c# asp.net | [0, 9] |
247,488 | 247,489 | Java Android issue: keyword -- new | <p>I am new to Android. I am really confused about this problem. For example, there are two java files.</p>
<pre><code>One.java
Two.java
</code></pre>
<p>I want to use some functions or parameters from Two.java, so I do this.</p>
<pre><code>Two two = new Two();
two.something;
</code></pre>
<p>or either I can do lik... | java android | [1, 4] |
1,267,151 | 1,267,152 | Outputting data with JQuery & PHP | <p>I have a general question regarding quality of writing code ...</p>
<p>I'm working on website, that outputs data from MySQL with PHP and it is being called with <code>$.get() / $.ajax()</code> with jQuery....</p>
<p>Now my question is .. the data I´m exporting for example: an array of comments (from class Comments... | php jquery | [2, 5] |
3,449,989 | 3,449,990 | How to read mails of particular mail id | <p>Is there any way to read mails of particular mail id.</p>
<p><strong>ex:-</strong> i want to read mails coming from <strong>xyz@gmail.com</strong> in my inbox, and show only those mails.</p>
<p>Thanks in advance.</p>
| java android | [1, 4] |
4,601,780 | 4,601,781 | nullreferenceexception when trying to update text in a label, and working with threads | <pre><code>public partial class _Default : System.Web.UI.Page
{
private static Stopwatch timer = new Stopwatch();
Thread timeThread = new Thread(timeKeeper);
private static int min = 0, sec = 0;
protected void Page_Load(object sender, EventArgs e)
{
}
protected void startstop_Click(object s... | c# asp.net | [0, 9] |
1,778,422 | 1,778,423 | jquery full width carousel | <p>I'm looking for a really light, full width jcarousel plugin that can animate a collection of divs, either in an ordered list, or simply inside a parent container.</p>
<p>It seems all the plugins out there have lots of unnecesary options or extra cruft which needs to be removed. Does anyone know of any simple full ... | javascript jquery | [3, 5] |
716,618 | 716,619 | Animated sliding divs on click button jQuery | <p>Im trying to write a simple script that slides the next 'slide' div in on a button click, I have 3 divs all inline, left alligned. theyre all set to a width, on 'next' button click id like the next slide to slide in, ive made the following fiddle only I cant seem to get it working...</p>
<p>Can anybody see where im... | javascript jquery | [3, 5] |
1,405,751 | 1,405,752 | how to create a GCM to send notification using Android phonegap and php | <p>I need the code to send push notification to android device from the php server. i am using phonegap technology. i need the gcm code for android phonegap and php.</p>
<p>Thanks in advance..</p>
| php android | [2, 4] |
84,075 | 84,076 | Putting an angle on image view | <p>I'd like to set an angle on an image view and have that angle be generated randomly, and set the ancho point of the image view to the center of the android screen. After that I'd like the computer to generate a spot from a certain distance of the middle to the end of the screen on that angle and set a button to appe... | java android | [1, 4] |
4,968,837 | 4,968,838 | Small bug when selecting text on focus | <p>i have a <code>input[type=text]</code> containing the short url for a post. i want to select the short url so users can easily copy the short url into clipboard. i used</p>
<pre><code>$(".shorturl input").focus(function() {
this.select();
});
</code></pre>
<p>but i noticed the 1st time it works fine then the n... | javascript jquery | [3, 5] |
4,395,139 | 4,395,140 | How can I create a popup that fits its content perfectly? | <p>I know this is very hard, and I also tried many "solutions" on the web, but none of those actually fit perfectly. I have a hard time calculating its outer frame's dimensions, but luckily I can sort of know what is the dimension of the content inside by making the <code>body</code> float left.</p>
<pre><code>body{ ... | javascript jquery | [3, 5] |
5,162,717 | 5,162,718 | addFooterView() - is it possible to add an entire XML layout using the function? | <p>I'm somewhat of a newbie with Android/Java, so I'm going to apologize in advance.</p>
<p>I have two XML files--one for my <code>activity</code> which contains a <code>ListView</code>, and another one which defines the layout of each item in <code>ListView</code>. I also have a .java file for the activity. At this p... | java android | [1, 4] |
301,611 | 301,612 | Parsing date string in Java of format [2012-07-15T20:55:33+00:00] | <p>Im trying to parse a String thats a date "2012-07-15T20:55:33+00:00", however I keep getting illegal argument exception. I don't know what I'm doing wrong.</p>
<pre><code>SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-ddzHH:mm:SS+00:00");
String date = "2012-07-15T20:55:33+00:00";
Log.e("res",sdf.format(dat... | java android | [1, 4] |
1,795,898 | 1,795,899 | How to draw graph in java script? | <p>I want to draw graph in java script. Let me share my problem with simple example.</p>
<pre><code>Ind vs Aus cricket match.
X axis- Overs
Y axis- Runs
</code></pre>
<p>I want to show runs scored in each over by both teams in same graph. Can i show them together?</p>
<p>your experience will be useful to m... | javascript jquery | [3, 5] |
1,679,618 | 1,679,619 | jquery modal window in asp.net | <p>I want to open default.aspx with jquery pop-up when I click on a button. But jquery modalwindow doesn't work. When I click the button default.aspx page opens directly.</p>
<p>Script:</p>
<pre><code><script type="text/javascript">
$("#myElement").click(function (e) {
e.preventDefault();
$.get("Def... | jquery asp.net | [5, 9] |
1,578,883 | 1,578,884 | jQuery content slider with start/stop/resume functionality | <p>Is there a jQuery content slider plug-in out there with start/stop functionality as well as an auto-resume functionality?</p>
<p>I basically want the plug-in to cycle through content and have the ability to pause it. After 5 minutes of it being paused I want the ability to auto-resume the sliding. </p>
| javascript jquery | [3, 5] |
486,615 | 486,616 | Use arrayvalues to access (sub)arrays | <p>I have a page where I want to see if a certain value exists in one of the arrays I have defined, there is one main array and several "sub" arrays, they are defined like this:</p>
<pre><code>var main = ['header', 'firstname', 'surname', 'tel'];
var firstname_label = ['Hank', 'Dave', 'Erin', 'Jessica'];
var surname_l... | javascript jquery | [3, 5] |
3,680,419 | 3,680,420 | How to get group of contacts list from Phone Contacts | <pre><code>btngal.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View arg0) {
// TODO Auto-generated method stub
Intent i=new Intent(Intent.ACTION_PICK,android.provider.ContactsContract.Contacts.CONTENT_GROUP_URI);
startA... | java android | [1, 4] |
2,276,514 | 2,276,515 | How to check if an argument is an object? | <p>I know just about everything is considered an object in JavaScript. I am making a function which specifically requires the argument it accepts to be in this format:</p>
<pre><code>{
a: 'b',
c: 'd'
}
</code></pre>
<p>So this type of key value pair inside curly braces sort of object not the other type of objec... | javascript jquery | [3, 5] |
5,311,685 | 5,311,686 | jquery gallerific preload conflict | <p>I'm unflashing a gallery using jquery-1.3.2, galleriffic and opacityrollover.</p>
<p>The goal is to display a large image in the gallery container only when one mouses over a thumb. <a href="http://dcostaging.net/clients/AHF/washington_mills.php" rel="nofollow">Example page here</a>.</p>
<p>Everything's working f... | php jquery | [2, 5] |
3,551,377 | 3,551,378 | asp.net: c#/javascript user needs to confirm before submitting | <p>i have a webform on asp.net c# page</p>
<p>the user enters data into the form. there are textboxes and there's a treeview</p>
<p>when the user presses the SUBMIT button, i would like all the data to be shown to him for his confirmation. the user should have the option to continue with the submit OR to go back to t... | c# javascript asp.net | [0, 3, 9] |
458,097 | 458,098 | ASP.NET Call C# Functions From JavaScript | <p>I Have a small working application on ASP.NET and C# and I would like to add some Javascript to it.</p>
<p>I know that for example I can use the Confirm button and then do something on yes or no.</p>
<p>What I would like to do is call some of the functions I have in the code-behind, depending on the answer to the ... | c# javascript asp.net | [0, 3, 9] |
3,794,662 | 3,794,663 | How do I traverse this DOM with jQuery and retrieve the required text? | <p>I have one form on a page which has a bunch of sibling tags. I'd like to retrieve the text between each h5 tag using jQuery. I'd preferably like to have a callback or be able to do this in a simple looping construct where I can grab the text and make meaningful HTML of it, then insert the final string somewhere els... | javascript jquery | [3, 5] |
5,240,225 | 5,240,226 | Display a 'View fence' button if exists but display 'No fence' button if it does not | <p>I have an object of markers, the key is the contacts name.
And an array of objects which has a 'contact' item which is also the contacts name.</p>
<p>I am trying to detect if the contact has an existing "geofence" from the array of objects and show a 'view fence' button, and display a 'No Fence' button if it does n... | javascript jquery | [3, 5] |
1,443,901 | 1,443,902 | how to resize a picture programatically and add it to the web site | <p>Hi there
I am working with visual web developer and would a) like to know how I could programatcally add a picture to the website, instead of going to Website and then add existing item. The idea I have is to upload the picture using the file upload control but then I want to have it added so that it can be accessed... | c# asp.net | [0, 9] |
3,437,186 | 3,437,187 | jQuery .val() work but content then doesn't display | <p>I have a method that returns data from the database, then creates a string in the form of a html list tag</p>
<pre><code>options.Append("<li value=\"" + reader["CIStatusID"].ToString() + "\"><a href=\"#\" class=\"filterOption checkable\">");
options.Append(reader["Status"].ToString() + "</a></l... | javascript jquery asp.net | [3, 5, 9] |
3,023,706 | 3,023,707 | How can I extract ARGB from a Color and convert them to byte components? | <p>I'm working in Java/Android and I want to take the <code>0xFFFFFFFF</code> int color and break it into 4 bytes for red, green, blue and alpha. I know <code>Color</code> has methods for extracting specific color values, but it gives them as an <code>int</code>. I've gone through the SDK and found that the <code>Color... | java android | [1, 4] |
4,600,874 | 4,600,875 | jQuery wait till function is executed | <p>I'm trying to call 2 functions. The first function includes a jQuery effect. The second function (in this case is a jQuery effect), but may only execute if the first function is executed (and finished). Can someone help me out? Thanks!</p>
<p>Fox example: <a href="http://jsfiddle.net/fNH2u/1/" rel="nofollow">http:/... | javascript jquery | [3, 5] |
547,409 | 547,410 | Camera Preview Example | <p>I know this is really basic but it is a error that I cannot find a solution to.</p>
<p><a href="http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/graphics/CameraPreview.html" rel="nofollow">http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/graphi... | java android | [1, 4] |
2,875,987 | 2,875,988 | How to start the same activity in landscape and in portrait mode? | <p>I have a popup and I want to use it in two different activities. The problem is one activity is in landscape and another is in portrait mode. I know I could make two different popups for these activities but I wanted to know if there is a way to make the same layout start in landscape mode when I start it from lands... | java android | [1, 4] |
3,071,598 | 3,071,599 | Passing php variable to javascript | <p>I have a variable which stores the path of the file. I am using a pop up window to display that image. I am using following script</p>
<pre><code>function newPopup(url) {
popupWindow = window.open(
url,'popUpWindow','height=700,width=800,left=10,top=10,resizable=yes,scrollbars=no,toolbar=no,menubar=no,l... | php javascript | [2, 3] |
5,789,795 | 5,789,796 | Time zone in Java | <p>This may be a very basic question, but i could'nt find any satisfactory answers.Hope my doubts gets clear on stackoverflow.</p>
<p>Q 1. <strong>Suppose i have time in a different timezone and i want to convert it to a different timezone, what is the way to do it in Java?</strong></p>
<p>Q 2. <strong>Is there any ... | java javascript | [1, 3] |
1,825,346 | 1,825,347 | Automatically fill username password into windows prompt using asp.net or jquery | <p>There's a third party site that many of our users access. I have the username and passwords already stored in our DB. Is it possible to programmatically enter the username and password once this site' URL prompts the user and click the submit button? Anyway of even doing this on the server side?</p>
<p>Thanks for ... | c# jquery asp.net | [0, 5, 9] |
5,792,563 | 5,792,564 | Load external XML data file in a MOSS 2007 feature | <p>I am developping an ASP.NET application (SharePoint) and I have a feature that is creating and accessing folders. With the administrator account, no problem everything works well, but when I am connected with a different account of course it cannot create/access the folders. How can I "impersonate" the administrator... | c# asp.net | [0, 9] |
5,798,544 | 5,798,545 | Count characters/sms using jQuery | <p>I count characters using <a href="http://tpgblog.com/noblecount/" rel="nofollow">NobleCount</a> and the following code:</p>
<pre><code>$('#message').NobleCount('#messageInfo',{
max_chars: getMaxChars(),
on_negative: function(t_obj, char_area, c_settings, char_rem){
}
});
</code>... | javascript jquery | [3, 5] |
1,913,380 | 1,913,381 | What is console.log in jQuery? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/4539253/what-is-the-console-log-used-for-in-jquery">What is the console.log used for in jQuery?</a> </p>
</blockquote>
<p>What is <code>console.log</code>? What is it used for in jQuery?</p>
| javascript jquery | [3, 5] |
189,142 | 189,143 | JavaScript if/elsif statment bug | <p>I have some sort of elsif statment bug I can't find:</p>
<p>My JSfiddle:</p>
<p><a href="http://jsfiddle.net/z3xV3/64/" rel="nofollow">http://jsfiddle.net/z3xV3/64/</a></p>
<p>Jquery:</p>
<pre><code>$('#slider1, #slider2, #slider3, #slider4, #slider5').bind('slide', function (event, ui)
{
var num = this.id.r... | javascript jquery | [3, 5] |
2,805,053 | 2,805,054 | Allow a web application to access a local file | <p>If I have a web application that needs to use a file, it presents the user with a standard open file dialog. But instead of uploading the file to server can it modify the file locally in a temporary location, while uploading in the background? That way the user does not have to wait for the upload before they can us... | php asp.net | [2, 9] |
5,836,471 | 5,836,472 | creating a list by parsing rss feeds using java | <p>Hiiii,
i want to create a list of articles by parsing the rss feeds from a website.Can anyone suggest me how to create such a list.</p>
| java android | [1, 4] |
4,801,919 | 4,801,920 | how to refresh parent window by using Javascript in .cs | <p>How to refresh the parent window while closing the popup window(child window).</p>
<p>We are calling the java script functions in code behind to refresh the parent window by using page.ClientScript.RegisterStartupScript().But t is working fine in IE(internet explorer) but not working in Mozilla Firefox and Google C... | c# javascript asp.net | [0, 3, 9] |
4,581,674 | 4,581,675 | drag a textarea when the cursor is inside the control | <p>i am making a textarea draggable using jquery UI....basically im making a div draggable and in that div is my textarea. when u drag the div the textarea drags too. the problem is that if my mouse pointer is inside the textarea, and i try to drag the control, it fails. so basically when the pointer changes the shape ... | javascript jquery | [3, 5] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.