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 |
|---|---|---|---|---|---|
3,468,793 | 3,468,794 | Detecting the iPhone from jQuery | <p>I know browser-detection is supposed to be taboo, but I'm out of ideas.</p>
<p>I have a website that I want to be nice and full-featured when running on a full-sized computer and simple to use when on an iPhone (or other smart phone). What's the right thing to do here?</p>
| jquery iphone | [5, 8] |
3,928,269 | 3,928,270 | Jquery help creating ajax link rendering | <p>I want to make an ajaxlink, but it is not working:</p>
<p>My html: </p>
<pre><code><td class="apris"><p><a class="current desc" href="/?direction=asc&amp;sort=pris">Pris pr. md.</a></p></td>
</code></pre>
<p>My Jquery:</p>
<pre><code>$('.apris').live('change', function() {... | javascript jquery | [3, 5] |
4,767,673 | 4,767,674 | Redirecting Application-Level Error Handler | <pre><code>protected void Application_BeginRequest(object sender, EventArgs e)
{
const int maxFileSizeKBytes = 10240; //10 MB
const int maxRequestSizeKBytes = 305200; //~298 MB
if (Request.ContentLength > (maxRequestSizeKBytes * 1024))
{
Response.Redirect(".aspx?req... | c# asp.net | [0, 9] |
4,519,091 | 4,519,092 | Android - Generate CSV file from table values | <p>I am having a database containing one table, i want to generate CSV file with values of this table.</p>
<p>Actually, I want to email this CSV file as an attachment. I know about sending file as an attachment in Email intent(AcTION_SEND), but i dont know the procedure of creating or the method by which i can create ... | java android | [1, 4] |
882,552 | 882,553 | Testing function that creates a list of DOM components | <p>I have a function which creates an Array of components. Each component is an outer div with a few inner divs.</p>
<pre><code>function createDivs(quizQuestions) {
var returnElements = new Array();
$.each(quizQuestions.questions, function(i, val){
// create the div.
quizDiv = $('<div class="quest... | javascript jquery | [3, 5] |
5,620,539 | 5,620,540 | How to render a web page with android jdk? | <p>I want to show the web page normally,but still keep the user in my app,</p>
<p>how to make use of the available web render engines programmatically?</p>
<p><strong>UPDATE</strong></p>
<p>I'm now using the <code>webview</code> ,but can't render the page,reporting 404 page not found.</p>
<p>However,when I pack my ... | java android | [1, 4] |
4,912,996 | 4,912,997 | working with dropdownlist in asp.net c# | <p>i have 2 dropdownlist in asp.net c#, one has only two items in it('OK' 'PK') and the other one is bound to a database field and it has 158 items in it.</p>
<p>I want remove two Items from the second list when the user selects 'OK' and keep original list when user selects 'PK'.</p>
<p>How can i do it?? As i have bo... | c# asp.net | [0, 9] |
5,567,987 | 5,567,988 | Simplest way to animate button | <p>I have to code animated menu buttons for my Android app. It will be look something like this:
![enter image description here][1]</p>
<ul>
<li>simple mockup of menu: i.stack.imgur.com/vT788.png</li>
<li>Animation looks like some kind of cube rotation - one spin of cube, something like that..</li>
</ul>
<p>I'm looki... | java android | [1, 4] |
5,163,769 | 5,163,770 | String sequence similarity / difference ratio in javascript and python | <p>Say I had a reference string</p>
<p>"abcdabcd"</p>
<p>and a target string</p>
<p>"abcdabEd"</p>
<p>Is there a simple way in javascript and python to get the string sequence similarity ratio?</p>
<p>Example:</p>
<p>"abcdabcd" differs from "abcdabEd" by the character "E" so the ratio of similarity is high but le... | javascript python | [3, 7] |
3,780,356 | 3,780,357 | Function by using Recursion? | <p>I want to make a function which will display numbers starting from 1 to 100 and 100 to 1
I am confused that how i can do this using Recursion?</p>
<p>I dont want to do this using any other loop.
Please provide me hint and ignore my way of asking because i am new in c++ and c#.</p>
| c# c++ | [0, 6] |
4,258,750 | 4,258,751 | context menu does not appears | <p>have a look at the code below...why isnt my context menu being created ??? what may b the cause of this...?</p>
<pre><code>@Override
public void onCreateContextMenu(ContextMenu menu, View v,
ContextMenuInfo menuInfo) {
super.onCreateContextMenu(menu, v, menuInfo);
MenuInflater inflator = getMenuInf... | java android | [1, 4] |
367,243 | 367,244 | Jquery plugin for user mappings? | <p>I am building a web application using asp.net, which has three types of user's admin, dealers, and employees (under dealers). The employees can be associated with more than one dealers and which can be done only by the "admin".</p>
<p>So what i need is to make a neat employee and dealers mapping page visible to the... | jquery asp.net | [5, 9] |
1,258,094 | 1,258,095 | jQuery: Get attributes from "live" element | <p>I create a new window when i press a button. This window contains html input elements that i want to manipulate with jquery, but i can't catch the elements. Normally i would use the live function because the html is first added to the dom when the button is pressed, but its not working.</p>
<pre><code> jQuery(docum... | javascript jquery | [3, 5] |
2,817,271 | 2,817,272 | dynamic tag count on keyup | <p>I have a div that contains many spans and each of those spans contains a single href.</p>
<p>Basically it's a tag cloud. I have a textbox with a keyup event that filters the tag cloud div (It actually just hides the tags if not in filter condition).</p>
<p>Is there a way to get a count of the tags shown as the key... | javascript jquery | [3, 5] |
114,763 | 114,764 | JavaScript graph are not visible in android webview | <p>i want to call this <a href="http://mediasense2.appspot.com/" rel="nofollow">graph</a> in my android web view but i am unable to see it . The random below the graph i can see in webview but cant see the graph . i am taking help from <a href="http://benaskins.github.com/simplegraph/" rel="nofollow">here</a>
Thanks</... | java javascript android | [1, 3, 4] |
4,162,597 | 4,162,598 | Change the format of a number to readable in currency format? | <p>In my application, i want to be able to:</p>
<p>make this number <strong>300000</strong> appear like this <strong>300,000 USD</strong> ?
I don't want it to be necessarily "<strong>USD</strong>" , </p>
<p>I want to be able to choose my <strong>own</strong> currency too.</p>
| java android | [1, 4] |
4,743,543 | 4,743,544 | Implement partial methods across multiple assemblies | <p>In one of the applications I am working on, there are two basic functionalities included: Create and Update.</p>
<p>However, there is a need sometimes to add custom code, so I thought of extending the code by allowing 3rd parties to write and embed their own code:</p>
<p>OnCreating
OnCreated
OnUpdating
OnUpdated</... | c# asp.net | [0, 9] |
5,792,391 | 5,792,392 | How do I get a simple jQuery code to replace my current Javascript | <p>Goal : When click a link on my navigation will show spinning image until script fully loaded.</p>
<pre><code>function ahah(url, target) {
document.getElementById(target).innerHTML = '<img src="loading.gif" />';
if (window.XMLHttpRequest) {
req = new XMLHttpRequest();
} else if (window.ActiveXObject)... | javascript jquery | [3, 5] |
1,484,609 | 1,484,610 | how to pass a checkbox value using <a href | <p>example.php ~ when i check the checkbox in example.php webpage.. then i click the print button, the value will be pass on example1.php
<pre><code>if($items) {
foreach($items as $i)
{
print"<input name='checkbox[]' type='checkbox' id='checkbox[]' value='$i->logi_id'>";
}
}
echo... | php jquery | [2, 5] |
3,660,959 | 3,660,960 | Calling a c# function from a Javascript method | <p>I'm trying to call a c# function from a javascript function:</p>
<p>In my <strong>default.aspx</strong> I have following code: (javascript)</p>
<pre><code><script type="text/javascript">
function App() {
var temp;
temp = PageMethods.Connect();
alert(temp);
}
</script>
<... | c# javascript | [0, 3] |
3,647,407 | 3,647,408 | C# object sender - getting the Method from which it was called | <p>I've got these Methods:</p>
<pre><code> private void button_Click(object sender, EventArgs e)
{
//Changes the Text in the RichBox, EXAMPLE:
richtTextBox.Text = "Now Changed and calling Method richTextBox_TextChanged";
}
</code></pre>
<p>And,</p>
<pre><code> private void richTextBox_... | c# asp.net | [0, 9] |
3,048,634 | 3,048,635 | how can i bind image in listbox | <p>I have a listbox on my page where i am checking the driver status if driver status is 1 then i change the font color in red Status 2 then i change color of font in listbox in green . Like that i want that i place a image with item in listbox if status will be 1 then i display a red image with that . How can i do tha... | c# asp.net | [0, 9] |
1,969,848 | 1,969,849 | Adding class to each li automatically when pressing a button in a carousel | <p>Using JCarousel(circular), i made one list of items, where i want to add a class dynamically for each li after clicking a button,that too the class should be added one li after another.
so,for each click, only one li should have that class,so that i can write css for that class.
is there any jquery or javascript way... | javascript jquery | [3, 5] |
2,398,349 | 2,398,350 | How do I remove the default Google Search Value from Google Search box? | <p>I am trying to use a little jQuery to "hide" the initial value in a Google Search box when you click in the box and I am missing something.</p>
<p>Here is the search box code:</p>
<pre><code><div id="search_box">
<form action="http://mfrp.ehclients.com/search_results" id="cse-search-box">
<div>... | javascript jquery | [3, 5] |
2,863,696 | 2,863,697 | how to write the condition in jquery? | <p>I have two text input fields like so:</p>
<pre><code><input type="text" id="test1".../>
<input type="text" id="test2".../>
</code></pre>
<p>Now I want the visitor to only be able to fill in only one of those text inputs. For example, if <code>#test1</code> has a value, when the visitor tries to enter a... | javascript jquery | [3, 5] |
1,564,739 | 1,564,740 | automatic scroll down on search | <p>I have a jsp page in which there are some contents which are hidden.</p>
<p><code>onclick</code> of the search button I have displays much content.</p>
<p>But I want an automatic scroll down so that user doen't have to take the burden to scroll down.</p>
<p>I hope I was</p>
| javascript jquery | [3, 5] |
2,347,508 | 2,347,509 | Repeater split after X returned results | <p>I have the following code that outputs a number of list items <code><li></code> wrapped within a <code>UL</code></p>
<pre><code><asp:Repeater ID="RT_Footer" runat="server">
<HeaderTemplate>
<ul class="ftr-links"></HeaderTemplate>
<ItemTemplate>
<li>&... | c# asp.net | [0, 9] |
4,450,796 | 4,450,797 | Including Jquery or similar files, should it be conditional? | <p>Simple and fast question:</p>
<p>I need the jquery library for a site, so I access it in my header.php file as such:</p>
<pre><code><head>
<!-- include jQuery library -->
<script type="text/javascript" src="../javascript/jquery.js"></script>
</head>
</code></pre>
<p>Now my qu... | php javascript jquery | [2, 3, 5] |
4,977,848 | 4,977,849 | String Array doesn't show the expected value | <p>I have a String array initialized globally Like:</p>
<pre><code>String[] links={""};
</code></pre>
<p>in an onclick listener i m putting some values in it using a for loop</p>
<pre><code>links = new String[Link.size()];
String[] news = new String[Catagory.size()];
for (int k = 0; k < Catagory.size(); k++) {
... | java android | [1, 4] |
1,682,933 | 1,682,934 | Strange error while doing a multiplication in java? | <pre><code>public static int NUM_FRAMES = 8;
public static int FRAME_REPEAT_NO = 2;
int height = 24;
//bitmap.getWidth() is 168 and bitmap.getHeight() is 91
double w = bitmap.getWidth();
w = w/NUM_FRAMES;
w = w*FRAME_REPEAT_NO;
w = w*height;
w = w/bitmap.getHeight();
</code></pre>
<p>I do this and i get the value of ... | java android | [1, 4] |
2,957,158 | 2,957,159 | How to check if a button is from certain layout? | <p>Let's say I have 2 layouts with two buttons in each. When I click one of them, and then the next one, is there a way I can check if they are from the same layout? And lets say I tagged layout's as android:tag="1" and android:tag="2". I want if they are from the same layout to do nothing, and if they aren't to do som... | java android | [1, 4] |
610,675 | 610,676 | How to write a table content to an xml? | <p>Can somebody tell me how can i write a clientside table control content to an xml on a button click . I'm using a clientside table "selectedTexts" and on save button click i need to save the table content to an xml. Please help.</p>
<pre><code> $(document).ready(function() {
$('#<%=btnSave.ClientID %>').cli... | javascript jquery asp.net | [3, 5, 9] |
175,943 | 175,944 | When emptying a tag, do the event-attached-buttons inside get garbage collected? | <p>Having a code like this, I'm wondering if I ran this function a second time, which scenario will happen:</p>
<ol>
<li>When emptying the #deals tag, all <code>btn</code> inside will get wiped as well despite the event on them and life is good.</li>
<li>I have to unsubscribe from those <code>btn</code> first, otherwi... | javascript jquery | [3, 5] |
2,096,461 | 2,096,462 | .load a php page every 3 seconds with jquery | <p>Right now I have this jquery:</p>
<pre><code>$(".updatetwo").click(function () {
$('div.result').load('permissions.php);
});
</code></pre>
<p>I wanted to know, how could I .load the php every 3 seconds instead of on click?</p>
| php jquery | [2, 5] |
2,689,468 | 2,689,469 | Iterate through repeater | <p>There's this repeater...</p>
<pre><code> <asp:Repeater ID="myRepeater" OnItemCommand="rpt1_ItemCommand" runat="server" OnItemDataBound="rpt1_OnItemDataBound">
<HeaderTemplate>
<table width="99%" border="0" cellpadding="0" cellspacing="0">
<tr class="lgrey">
... | c# asp.net | [0, 9] |
4,454,657 | 4,454,658 | change VAT price with radio button using jquery and php without reloading | <p>I'm not sure if I am making this more complex then what it is... What I want to do: depending on which button the user presses $price should be calculated and displayed without the page beeing reloaded. The $price variable gets its data from a database. I cannot get this to work so if someone could help me would be ... | php jquery | [2, 5] |
810,404 | 810,405 | 'or' statement in function call | <p>In a file I am looking at, I saw a <code>||</code> statement in a javascript function call what does it mean? </p>
<pre><code>createObject(a_variable || b_variable)
</code></pre>
<p>Does the function take in a true/false value or it take in something else?</p>
<p>is the above code equivalent to </p>
<pre><code>c... | javascript jquery | [3, 5] |
623,611 | 623,612 | ASP.NET security | <p>I'm currently converting our company database application from VB to ASP.NET. This is pretty much my first ASP.NET application, and I had a question about security. I would like some users to have the ability to add or edit data, while other users can only view and print reports. Now, as I understand it, in ASP.NE... | c# asp.net | [0, 9] |
4,069,725 | 4,069,726 | Jquery dialog to open multiple windows | <p>I'm trying to make system of multiple dialogs in one page using jquery dialog... </p>
<p>Functions looks like... </p>
<pre><code> function open_w(id){
$('.opened').dialog('close');
$(id).addClass('opened');
$(id).dialog({position: 'center', modal:true, width: '750px' });
};
... | javascript jquery | [3, 5] |
1,710,630 | 1,710,631 | Javascript onKeyPress event not working? | <p>Why does this statement work with OnKeyPress event of Javascript in C#. </p>
<pre><code> txtPassword.Attributes.Add("OnKeyUp", "CheckPasswordStrength(\""
+ txtPassword.ClientID.ToString() + "\",\""+ lblMessage.ClientID.ToString() +"\")");
</code></pre>
<p>this code is working correctly, my pro... | c# asp.net javascript | [0, 9, 3] |
2,484,043 | 2,484,044 | how can i play vimeo player on image click? | <p>i have a situation i want to add a vimeo player in to my site,and above the player i need to show an image. when image is clicked i want vimeo player to play.
till now i have done a little in which i managed to get vimeo player on page on image click.but now i need to mannually play it. any one tell me how i can a... | javascript asp.net | [3, 9] |
1,578,070 | 1,578,071 | How do I hide the ScrollView scrollbar faster than the default? | <p>How do I change the delay before the scrollbar on a ScrollView is hidden? I want it to hide instantly after scrolling. I tried android:scrollbarDefaultDelayBeforeFade="0" but it still sticks around and i have to either wait for it to disappear or click twice to click a button inside the ScrollView.</p>
| java android | [1, 4] |
1,862,174 | 1,862,175 | How to trigger click event only for the clicked-on layer and not its parent too | <p><a href="http://jsfiddle.net/5xvkM/5/" rel="nofollow">Fiddle</a></p>
<p>I can of course take the <code>.inner</code> layer out of <code>.main</code> layer
and then use absolute position against another wrapper i.e <code>.outer</code> layer
to place it in the same position and this will stop it from triggering <code... | javascript jquery | [3, 5] |
1,526,446 | 1,526,447 | Can I add my caching lines to global.asax? | <p>Take the following lines of code that would work fine in a c# asp.net file:</p>
<pre><code>Response.Cache.SetExpires(DateTime.Now.AddSeconds(300));
Response.Cache.SetCacheability(HttpCacheability.Public);
</code></pre>
<p>Can I set these in some way in global.asax so that by default my entire application will supp... | c# asp.net | [0, 9] |
3,114,805 | 3,114,806 | Android or Java class naming with $ symbol | <p>I'm reviewing a certain project and I see that there are many classes with the same name, but with a dollar ($) symbol at the end + increasing number. For example</p>
<pre><code>Class.java
Class$1.java
Class$2.java
Class$n.java
OtherClass.java
OtherClass$1.java
OtherClass$n.java
</code></pre>
<p>What does it mean?... | java android | [1, 4] |
3,905,776 | 3,905,777 | display the images in publishing of website in server? | <p>I am using the following code for saving the images.</p>
<pre><code> if (RadUploadPageImage.UploadedFiles.Count != 0)
{
foreach (UploadedFile file in RadUploadPageImage.UploadedFiles)
{
targetFolder = "/ADDS/";
targetFileName = Path.Combine(targetFolder, file.GetNameWithoutExtension() +... | c# asp.net | [0, 9] |
5,936,057 | 5,936,058 | DropDownList Selected Item Incorrect When Using FindControl | <p>I have a number of dropdownlists embedded in a gridview. When I submit the page I loop through all the rows of the gridview and use the findcontrol method to get the dropdownlist e.g:</p>
<pre><code>foreach (GridViewRow gvrItem in gvItems.Rows)
{
DropDownList ddlOption = gvrItem.Cells[2].FindControl("ddlOpt... | c# asp.net | [0, 9] |
5,248,626 | 5,248,627 | Why does Android Activity move button after changing background? | <p>I have an Activity with the following image button:</p>
<pre><code><ImageButton android:id="@+id/nextPage"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:contentDescription="@string/nextPageString"
android:alignParentRight="True"
android:alignParentBot... | java android | [1, 4] |
3,962,812 | 3,962,813 | How to display details of SQLite query in a ExpandableListView? | <p>I have stored the names and friends in database.</p>
<p>For example ,</p>
<pre><code>person A,and his friends B,C,D
person Z,and his friends K,L,M
person Q,and his friends P,O,N
</code></pre>
<p>How to retrieve values from database and display in a expandable listview.</p>
<p>i,e.Person A,Z,Q should be the gr... | java android | [1, 4] |
4,853,373 | 4,853,374 | Reducing Output Page Size Perfomance Improvement asp.net | <p>I need to improve the speed of my website and perfomance.</p>
<p>I've tried everything under the book from compression handling , whitespace removal , update panels and enable view state false.. but nothing seem to work.</p>
<p>The output page size is still 764 kb.. which is quite a lot. So can you guys tell me an... | c# asp.net | [0, 9] |
2,788,783 | 2,788,784 | How can I calculate the numbers of month between two dates in C# | <p>Now I am working with asp.net and C#<br>
I would like to know how to calculate the numbers of Month between two dates.Is there any method to calculate it in C#.</p>
<blockquote>
<p>Eg1. Date1 = "2011/11/01"<br>
Date2 = "2012/02/01"<br>
Result. Numbers of Month =3 </p>
</blockquote>
<pre><... | c# asp.net | [0, 9] |
971,963 | 971,964 | How could i select folder or file from the asp.net web application? | <p>I have an ASP.NET web application and I need to put data from the web page to the output text file.
I would like to give user an ability to select the folder where the file will be saved. For example, when the user clicks on the 'Browse' button the select folder dialog should appear.</p>
<p>Is it possible to imple... | c# asp.net | [0, 9] |
1,053,537 | 1,053,538 | Change value of a button when clicked | <p>I have a list of jokes that I want to display in a box. When the page is loaded I want to display one at random in the box. Then when I click the box I want it to change the value again to another random one from the list.</p>
<p>At the moment I just cannot get it to work and can't work out where I am going wrong. ... | javascript jquery | [3, 5] |
996,419 | 996,420 | How to check if number is a decimal? | <p>I create android app for dividing numbers.</p>
<pre><code>int a,b;
int result = a/b;
if (result==decimal){
Log.v ("result","your result number is decimal")
} else {
Log.v ("result","your result number is not decimal")
}
</code></pre>
<p>How can I check if <code>result</code> is a decimal?</p>
| java android | [1, 4] |
5,863,844 | 5,863,845 | Using HttpModule instead of Global.asax | <p>How do I convert:</p>
<pre><code><%@ Application Language="C#" %>
<script runat="server">
void Session_Start(object sender, EventArgs e)
{
}
</script>
</code></pre>
<p>To a scheme that uses HttpModule?</p>
<p>Also, can I write the Global.asax as pure C# instead of using tags?</... | c# asp.net | [0, 9] |
3,060,040 | 3,060,041 | Create a timer in asp.net Server side | <p>I have a asp.net web application , in that application I will call a function once that function s called , it has to wait for some time interval then execution should take place how to do that.......</p>
| c# asp.net | [0, 9] |
102,008 | 102,009 | Control multiple-select box using a single select box using javascript | <pre><code>`<select multiple="multiple" name="state[]" id="state">
<option value="">Select a State</option>
<?php
foreach($state_list as $key=>$value){
echo "<option value=\"$key\"";
if($html['state']==$key|| $row['state']==$key){
echo ' selected="selected"';
}
echo ">$value</option>... | php javascript | [2, 3] |
1,331,567 | 1,331,568 | how to show popup box in windows mobile application? | <p>I am developing a windows mobile application in which i want to show popup box containing datagrid control of showing particular details when user clicks on a button in a form.</p>
<p>i am using ShowDialog() method but it is working.</p>
<p>can anyone suggest me how to implement this.</p>
<p>thanks in advance.</p... | c# asp.net | [0, 9] |
4,484,406 | 4,484,407 | Put element under focus in jquery | <p>I want to put element under <code>focus</code> just after <code>append</code> it, means something similar to :</p>
<pre><code>$("id").append($("elementid")).focus(); // not working
</code></pre>
| javascript jquery | [3, 5] |
3,930,215 | 3,930,216 | How to change the color of label depending on certain values in the gridview | <p>I have a sqldatasource and gridview.</p>
<p>I have two columns:</p>
<pre><code>ID | Status
1 Closed
2 Opened
3 Waiting
</code></pre>
<p>How to change the color of the label in the view state of the gridview depeding on the value from the <code>'status'</code> column. </p>
<p>For example if the value in the... | c# asp.net | [0, 9] |
2,850,939 | 2,850,940 | How to get Host IP address in android? | <p>Q:-Now a days I am facing problem in getting IP address of android device using programming. Can any one give ma a code for solving that problem. I have already read lot of thread about it but not getting solid answer from that. Please give me any suggesting about it its appreciated.
Thanks in advance. </p>
| java android | [1, 4] |
4,777,422 | 4,777,423 | How to validate if an HTMLLIElement is hidden with jQuery | <p>I'm iterating through a variable called content, it contains several HTMLLIElement objects.
How can i use jQuery's or JavaScript's functions with this object?, what I'm trying to do is the kind of validation written in the commented code.</p>
<pre><code> $.each(content, function(index, value){
//if(!val... | javascript jquery | [3, 5] |
371,155 | 371,156 | asp.net textbox search and replace | <p>In my ASP.NET C# application, within a TextBox control I would like to add search & replace functionality for the content of this control.</p>
<p>Functionality like match case, match whole word, replace all matches would be ideal.</p>
| c# javascript asp.net | [0, 3, 9] |
1,896,136 | 1,896,137 | Showing and hiding in jquery | <p>How can I hide and show a div (and change the width of another div) using the same link,for example I can show A div and change its widht. How can I make it so that if the user clicks again, the width goes back to 600px and the right div is hidden.</p>
<pre><code> $("a").click(function(event){
$('#main-con... | php jquery | [2, 5] |
187,669 | 187,670 | First a tag created in a Javascript loop not implemented | <p>I am trying to populate a div (class='thumb") with thumnailpictures. The name of the pictures is gathered from an xml file. Every thumnail picture is encapsulated with an a-tag that points to a function to show the full picture.</p>
<p>On some browsers the first thumbnailpicture seems not to have this a-tag...click... | javascript jquery | [3, 5] |
4,213,933 | 4,213,934 | Converting Java date string to JavaScript date | <p>Is there any JavaScript library that takes Java's <code>SimpleDateFormat</code> pattern and parses a date/time string into a <code>Date</code> object?</p>
<p>For example, given <code>"2010-12-20"</code> and <code>"yyyy-MM-dd"</code>, the function would parse <code>"2010-12-20"</code> and return a JavaScript <code>D... | java javascript | [1, 3] |
53,702 | 53,703 | How do I interpret. /glow.min.js?v=5 | <p>Please tell me what does /glow.min.js?v=5 means How this is used? i.e How the versioning is done here as file is one.</p>
| javascript jquery | [3, 5] |
4,938,696 | 4,938,697 | javascript functions doestnt work after using jquery | <p>I am using this jquery to have spell check on the textarea. Spell check works fine but after using jquery for spell check my other javascript functions are not working. Any idea why ? </p>
<pre><code><script type="text/javascript">
$Spelling.SpellCheckAsYouType('txt_comment1');
function showselected()... | javascript jquery asp.net | [3, 5, 9] |
438,180 | 438,181 | get text node of an element | <pre><code><div class="title">
I am text node
<a class="edit">Edit</a>
</div>
</code></pre>
<p>I wish to get the "Iam text node" do not wish to remove the "edit" tag and need a cross browser solution.
it might be something simple, but I can't think of another way of getting to it.</p>
| javascript jquery | [3, 5] |
5,264,435 | 5,264,436 | How to pass the textbox text to href | <p>I have a simple text box, a button and an <code>a</code> element and I am trying to write a website URL and I need to pass this URL to <code>a</code> element.</p>
<p>This is what I've got so far: </p>
<pre><code><a id="weburl" href="http://jquery.com/"></a>
<asp:TextBox ID="TextBox1" runat="server"... | javascript jquery asp.net | [3, 5, 9] |
2,601,013 | 2,601,014 | Validate Control using javascript | <p>I have asp.net web application where controls are getting loaded dynamically on the web page. Lets say I have a comboBox in my aspx page and on value change event of the ComboBox I am doing Postback. ComboBox is having validator associated with it. Also there are other controls in the web page with validators.</p>
... | javascript asp.net | [3, 9] |
5,958,394 | 5,958,395 | Converting Decimal To Integer | <pre><code>string retval;
retval = Decimal.ToInt32(1899.99M).ToString();
</code></pre>
<p>the output is 1899. But i want to if decimal is bigger .5 then output is 1900 else then ouput is 1899. how can i do this? thanks in advance !</p>
| c# asp.net | [0, 9] |
2,516,584 | 2,516,585 | Deleting file in asp.net using c#? | <p>When I save a document file in my solution explorer, I send that doc file through mail then I am wanting to delete the document file. It is giving an error like this: <code>process being
used by another process</code>. </p>
<p>Below please find my code:</p>
<pre><code>protected void btnsubmit_Click(object sender,... | c# asp.net | [0, 9] |
2,471,401 | 2,471,402 | How to compare Time in java/android (given input in strings)? | <p>I have two strings which are used to store time in the format <strong>hh:mm</strong>.I want to the compare these two to know which time is greater.Which is the easiest way to go about this?</p>
| java android | [1, 4] |
1,681,104 | 1,681,105 | Trello staying updated? | <p>How does <a href="http://trello.com" rel="nofollow">trello.com</a> keep all the users screens updated with new information as it comes in?</p>
<p>For example, if I change something on my screen, it automatically changes on all the other users screen who are also on that page...Are they just constantly refreshing th... | javascript jquery | [3, 5] |
2,499,662 | 2,499,663 | ASP.NET and JavaScript dynamic show/hide based on other form fields | <p>I seem to keep running into these complex show/hide scenarios in ASP.NET web forms where the logic goes "if Field A equals blah, and Field B equals blahblah, then Field C is shown/hidden/validated/whatever." Before I run off and start building custom validators and custom controls so I can more easily manage it in m... | asp.net javascript jquery | [9, 3, 5] |
3,878,539 | 3,878,540 | Fragments Intercommunication | <p>I have three Tabs implemented by using ActionBar.
Fragments are coded programatically. </p>
<p>I want to set listener on Fragment2 (Tab2) so that when Fragment1 sends some data by callback (Custom listener), Fragment2 updates its content fields.</p>
<p>I couldn't figure out a way to do it, would appreciate help.<... | java android | [1, 4] |
2,111,943 | 2,111,944 | How to intercept opening sms message inbox? | <p>is it possible to intercept user opening sms message inbox. I would like to provide auth mechanism on that event so you can protect your sms inbox from being opened without permission.</p>
| java android | [1, 4] |
1,990,684 | 1,990,685 | Jquery and IE 7 - selected property not working for multiple select boxes, even when options are selected | <p>I've a dropdown (multiple select). I choose a few values, they are highlighted correctly, but jQuery doesn't recognize them as selected. this works in firefox and chrome, doesn't work in IE. this is the code</p>
<pre><code>$("#myBox" +" option").each(function()
{
if ($(this).attr("selected") == true)
{
... | javascript jquery | [3, 5] |
3,014,412 | 3,014,413 | search with dropdown filter? | <p>does anyone have an example of a javascript searchbox with a dropdown filter?
so for example i'm looking to create a searchbox for my site and allow users to either search:
"Current Category" or "Whole Site". I could create a combobox and place it next to the input box but i'm trying to see if there is a fancier js ... | javascript jquery | [3, 5] |
1,017,297 | 1,017,298 | expectation failed in android during photo upload | <p>while uploading images to server, it gives me expectation failed error response code 417.</p>
<p>My server side coding is in php, and client is android</p>
| java php android | [1, 2, 4] |
3,889,938 | 3,889,939 | How to format the output of the javascript function date() ? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/3552461/how-to-format-javascript-date">how to format javascript date</a> </p>
</blockquote>
<p>I have the following bit of code </p>
<pre><code> $('#ins_date').attr('value', Date());
</code></pre>
<p>What i ge... | javascript jquery | [3, 5] |
4,501,607 | 4,501,608 | jquery.localize doesnt work | <p>i have followed instructions found on <a href="https://github.com/coderifous/jquery-localize" rel="nofollow">https://github.com/coderifous/jquery-localize</a>, and for testing purpose i have created this test file:</p>
<pre><code><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xh... | javascript jquery | [3, 5] |
4,803,870 | 4,803,871 | IndexOutOfBounds with array | <p>Each time I try to run this method</p>
<pre><code>private void resetOdds() {
mOdds[1] = 0.10;
mOdds[2] = 0.25;
mOdds[3] = 0.35;
mOdds[4] = 0.30;
}
</code></pre>
<p>I get an IndexOutOfBounds error. I don't know why, as I supply enough items in the array to change:</p>
<pre><code>private final doubl... | java android | [1, 4] |
3,129,297 | 3,129,298 | document.ready inside body tag | <p>I have a web app that has a universal HTML header include, so I'd like to put page-specific scripts in each page instead of having it load for everything. I tried putting <code>document.ready()</code> near the end of the <code><body></code> of a page and it seems to be working fine. Are there any potential haz... | javascript jquery | [3, 5] |
5,731,752 | 5,731,753 | How to convert the time format in android? | <p>I have the json response like this:</p>
<pre><code>{
"Modification": [
{
"lastModifiedTime": "1354024211735"
}
]
}
</code></pre>
<p>Now I want to convert the <strong>lastModifiedTime</strong> like this <strong>10 Dec 2012 18:41</strong> <em>(DD/MM/Year time)</em>. How I will to... | java android | [1, 4] |
384,387 | 384,388 | Is it possible to detect a visitor's browsing history using JavaScript or PHP? | <p>I want to check if my site's visitors have visited another particular site before coming to mine.</p>
<p>I know how to use JS and PHP to check to see (via referrer info) if the user has just come from that site to mine, but I would like to be able to detect if they have visited this site at any time before (not jus... | php javascript | [2, 3] |
1,871,874 | 1,871,875 | inject jquery into every ASP.Net page | <p>Is there any way to inject JQuery into every page on an ASP.Net site without adding the script tag to every page individually?</p>
| asp.net jquery | [9, 5] |
787,676 | 787,677 | Android get PID of other applications | <p>I would like to be able to start an activity or service and get the PID of that process as quickly as possible, immediately would be the best case scenario. Do I have any options other than browsing the /proc directory, which then leads to a variable-amount-of-time race condition between the time the activity/servic... | java android | [1, 4] |
555,353 | 555,354 | JQuery: How do I determine if a slideToggle has been toggled? | <p>How do I do the following pseudo code in JQuery?</p>
<pre><code>$(document).ready(function(){
$(".btn-slide").click(function(){
$("#divToSlide").slideToggle("fast");
if ($(this).isToggled) { // <---- DOESN'T WORK -------
// do something when toggled
} else {
/... | javascript jquery | [3, 5] |
5,469,218 | 5,469,219 | Disabling asp Controls using .attr does not work in FF & Chrome, Whereas it works with IE | <p>Here is what i am using to disable the controls on click of a button:</p>
<pre><code>$('#cmdbtnreleaseOwner').attr('disabled', true);
$('#cmdlnkbtnreleaseOwner').attr('disabled', true);
</code></pre>
<p>This disables the controls with respective ids in IE, but doesn't works with Mozilla FF and Chrome..</p>
<p>Ed... | jquery asp.net | [5, 9] |
870,526 | 870,527 | jQuery resource for Win32 programmer | <p>I know programming in general but always been doing either Delphi, VB 6 or C#.net! Now I must do web-dev and must do it fast! I haven't written a hello world in JavaScript yet and must learn jQuery because there are some charts that I must show in my web-app and looks like I must know JavaScript and jQuery to do th... | javascript jquery | [3, 5] |
5,581,804 | 5,581,805 | Correct number is not being displayed in the textbox | <p>Problem:</p>
<p>In the "Number of Answers" textbox, it should display the number 1, but it doesn't, it displays the number 2 and the reason it is displaying this number is that before the buttons changed, you selected 2 letter buttons, so it displays 2 in the textbox because you previously chose 2 letter buttons.</... | javascript jquery | [3, 5] |
1,393,211 | 1,393,212 | JQuery checkbox state not working | <p>can anyone tell me why this line isnt working? (i'm trying to access the value property of a checkbox and write it into my variable or otherwise if its not checked an empty string)</p>
<pre><code>var ri_ort = $('#ri_ort').attr('checked')?$('#ri_ort').val():'';
</code></pre>
<p>Thx a lot</p>
| javascript jquery | [3, 5] |
2,066,553 | 2,066,554 | dynamic button inside dynamic literal control | <p>I want to add dynamic literal control and dynamic button.</p>
<p>so I try like this:</p>
<pre><code> Literal lit = new Literal();
lit.Text = lit.Text + theRow["CaseExampleDescription"].ToString() + "\n\n";
Button btn = new Button();
btn.ID = "btn1";
... | c# asp.net | [0, 9] |
4,631,161 | 4,631,162 | How do I make my textview support telugu font? | <p>I fetched some data from JSON and added it into my Listview. It's fetching properly. But, in my listview some characters are not supported there? I'm using below code to decode from JSON.</p>
<pre><code> BufferedReader reader = new BufferedReader(new InputStreamReader(is,"iso-8859-1"),8);
</code></pre>
<p>I'm gett... | java android | [1, 4] |
1,889,513 | 1,889,514 | How do you get all the post request variables in C#? | <p>I am getting a post from an external vendor. I am not exactly sure what variables they are sending. How do I print out all the Request variables that they are sending in the post? there is no Request.Count or Request.Length so that I could loop and find everything.</p>
<p>Thanks in advance for your help.</p>
| c# asp.net | [0, 9] |
11,868 | 11,869 | How do I set maximum margin-top in jquery animation? | <p>I have the following code in jQuery, that animates a div marginTop. </p>
<p>How do I set it so that once the margin top is equal 900px, disable the click event?</p>
<pre><code>$("#tmbUp").click(function(){
$("#tmbHolder").animate({"marginTop": "-=100px"}, "slow");
});
$("#tmbDown").click(function(){
$("#tmbHolde... | javascript jquery | [3, 5] |
1,757,802 | 1,757,803 | jQuery/PHP - Resize an image with direct proportion | <p>Hi<br />
Suppose I have several image with different width and height, I want all of them to fit in the img tag with 200 width and 200 height and direct proportion(image won't be distortion).</p>
<p>How can I do it in PHP or Jquery?</p>
<p>Thanks</p>
| php jquery | [2, 5] |
1,603,567 | 1,603,568 | JQuery / JavsScript mechanism to schedule methods | <p>I want to be able to invoke a specific method at specific times. For example.</p>
<ul>
<li>after 10 seconds</li>
<li>after 20 seconds</li>
<li>after 35 seconds</li>
<li>after 50 seconds</li>
<li>after 60 seconds</li>
<li>after 65 seconds</li>
</ul>
<p>All times from the same starting point. I was looking at the JQ... | javascript jquery | [3, 5] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.