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 |
|---|---|---|---|---|---|
4,702,221 | 4,702,222 | run event once only | <p>i have code to check for browser and at the moment it is running each time i refresh page. is it possible to run only once on each visit so if i refresh or are taken to that page by link then the code is ignored. thanks</p>
<pre><code> <script type="text/javascript">
if($.browser.msie &&... | javascript jquery | [3, 5] |
3,256,464 | 3,256,465 | How do I write an extension method in JavaScript? | <p>I need to write a few extension methods in JS. I know just how to do this in C#. Example:</p>
<pre><code>public static string SayHi(this Object name)
{
return "Hi " + name + "!";
}
</code></pre>
<p>and then called by:</p>
<pre><code>string firstName = "Bob";
string hi = firstName.SayHi();
</code></pre>
<p>... | c# javascript | [0, 3] |
3,098,773 | 3,098,774 | catch url by javascript | <p>catch url by javascript</p>
| java javascript | [1, 3] |
958,081 | 958,082 | Create a thumbnail from only part of an image | <p>I'm creating a thumbnail right now like this:</p>
<pre><code>// create thumbnail and save
var image = Image.FromFile(Server.MapPath(imageFilename));
var thumb = image.GetThumbnailImage(image.Width / 10, image.Height / 10, () => false, IntPtr.Zero);
thumb.Save(Server.MapPath(Path.ChangeExtension(imageFilename, "t... | c# asp.net | [0, 9] |
5,562,363 | 5,562,364 | Jquery url replace | <p>How can I modify this:</p>
<pre><code>/services/type/single_dwelling/
</code></pre>
<p>to this:</p>
<p><code>/ajax/services/single_dwelling/development</code></p>
<p>Currently I have:</p>
<blockquote>
<p>linkUrl =
$(this).attr("href").replace(/(\/(services)\/)/,
"$1ajax/");</p>
</blockquote>
<p>Which out... | javascript jquery | [3, 5] |
4,297,167 | 4,297,168 | how do you change the color of a link once clicked, then change it back once another link is clicked? | <p>I have two links inside a div called div A. when link 1 is clicked a div with some info is shown (div B) and when the link 2 is clicked a different div(div C) is shown. This is done using jquery's show/hide.</p>
<p>I would like the color of the <strong>selected</strong> link to change and then return only <strong>o... | javascript jquery | [3, 5] |
5,590,949 | 5,590,950 | How to clip text in android canvas? | <p>I'm creating kids learning application in android.
I created Imageview on which text is displayed and i applied canvas for Imageview so i can able to
paint on whole canvas. Upto this working fine.</p>
<p>Now my problem is i have to clip the text present in canvas imageview.
I know to clip the region with shapes li... | java android | [1, 4] |
4,005,566 | 4,005,567 | Changing access modifier of CreateRow method of GridView | <p>Is it possible to change the access modifier in c# asp.net for a dll file. </p>
<p>For example, i am trying to use CreateRow of GridView in C# asp.net and the error i get is </p>
<p>"System.Web.UI.WebControls.GridView.CreateRow(int, int, System.Web.UI.WebControls.DataControlRowType, System.Web.UI.WebControls.DataC... | c# asp.net | [0, 9] |
4,221,042 | 4,221,043 | How to access specific div child of certain class? | <p>In my div i have a child div of class "someClass". I want to access that child by classname, not id.</p>
<p>EDIT: Only in this particular div, not all the other divs with same classname</p>
| javascript jquery | [3, 5] |
611,385 | 611,386 | creating self-contained job postings component | <p>we have a job postings page on our web site. Our clients would like to include this job postings page on their web site. This way applicants can directly go to the client site to apply for the jobs rather than being redirected to our site. But when they apply for the job, the information will be saved in our system.... | javascript asp.net | [3, 9] |
525,325 | 525,326 | Why does onLongPress() not return a boolean like all other SimpleOnGestureListener? | <p>As the title states. The fact that I can't consume the event is causing a <code>click</code> event to occur immediately afterwards. Now I am manually keeping track of whether or not a longpress has occurred when handling a potential click.</p>
<p>Am I missing something here? I mean, I can't even get around this try... | java android | [1, 4] |
4,282,278 | 4,282,279 | Action Attribute | <p>I want to send form data to aspx.cs page view below codes.</p>
<p>But this error generated:Object reference not set to an instance of an object.</p>
<p>Please guide me.</p>
<pre><code> <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %>
<!DOCTYPE html P... | c# asp.net | [0, 9] |
2,029,204 | 2,029,205 | Error with selected item from the ListBox property (C#)? | <pre><code>for (int counter = 0; counter < countSelected; counter++)
{
string groupName = txt_GroupName.Text;
//Get GroupID from the created group
string GroupIDQueryText = "SELECT GroupID FROM tbl_group WHERE GroupName ";
int groupID = Convert.ToInt32(server.p... | c# asp.net | [0, 9] |
4,030,751 | 4,030,752 | convert this php code to javascript - strpos, str_replace, substr | <p>I have a piece of code written in PHP inside my javascript tag. I figured it would be better to have all javascript inside my script tag.</p>
<p>So I would need help to convert these 3 lines of code in javascript:</p>
<pre><code>if (strpos($video['thumbs']['master'], '/thumbs_old/') !== false) {
$position = st... | php javascript | [2, 3] |
1,094,154 | 1,094,155 | Regarding custom java library | <p>Can someone tell me how to create my own custom library in java that I could use in my Android Project. Actually I am looking to make a kind of Android 3D racing game.And also could you tell me that how could I make it.
Thanks!</p>
| java android | [1, 4] |
2,879,129 | 2,879,130 | Is there any way to get "global" events when working with nested iframes? | <p>My problem is I need to capture a keypress but at any given time the user can be inside of an iframe inside of an iframe inside of an iframe.</p>
<p>At first, I thought I could just put the listener on document but that doesn't work if the user is inside of one of those iframes.</p>
<p>Next I thought of attaching ... | javascript jquery | [3, 5] |
1,522,674 | 1,522,675 | Get and loop through all Select Boxes in a Table with Jquery | <p>i am new with jQuery.. i have a table with a number of boxes in it. I want to grab all the select boxes in the table and loop through them..</p>
<p>I am trying to create a function that does this and it looks like this:</p>
<pre><code>function calculatePercentageTotal(tableName) {
var total = 0;
for (i = ... | javascript jquery | [3, 5] |
6,010,694 | 6,010,695 | How can I display a rendered object inside a different class layout? | <p>Okay, so I'm using Rajawali (See: <a href="http://www.rozengain.com/blog/2011/08/23/announcing-rajawali-an-opengl-es-2-0-based-3d-framework-for-android/" rel="nofollow">http://www.rozengain.com/blog/2011/08/23/announcing-rajawali-an-opengl-es-2-0-based-3d-framework-for-android/</a>) to create a 3D sphere with an ima... | java android | [1, 4] |
4,299,975 | 4,299,976 | Find control in ListView that inside a Repeater | <p>I have a ListView inside the Repeater and i like to retrieve the Id value from a tbl in repeater and assign it to a txtBox inside the ListView. My problem is i can not find controls in List view(which is inside the repeater control). (i am fairly new btw)</p>
<p>I get this(Object reference not set to an instance of... | c# asp.net | [0, 9] |
2,296,289 | 2,296,290 | Updating an input's value without losing cursor position | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/8219639/stop-cursor-from-jumping-to-end-of-input-field-in-javascript-replace">Stop cursor from jumping to end of input field in javascript replace</a> </p>
</blockquote>
<p>I want to mandate that the value of a ... | javascript jquery | [3, 5] |
2,621,165 | 2,621,166 | Submitting forms on enter/return when using anchors as submit-input | <p>I'm using anchors to submit forms:</p>
<pre><code>$("a[title=submit]").click( function(){
$(this).parents("form").submit();
});
</code></pre>
<p>It works very well, however I still want the user to be able to submit the form when pressing enter or return.</p>
<p>Anyone know how to do this?</p>
| javascript jquery | [3, 5] |
4,447,544 | 4,447,545 | Is it OK to create multiple threadpools (ExecutorService)? | <p>I created multiple ExecutorService instances in my code, usually each UI page has one ExecutorService instance. Each ExecutorService instance will execute some http get request threads.</p>
<pre><code>private ExecutorService m_threadPool = Executors.newCachedThreadPool();
</code></pre>
<p>Is it OK to do that?</p>
... | java android | [1, 4] |
1,112,693 | 1,112,694 | pass javascript value to asp.net function | <p>the question says it all : i have a linkbutton to which i pass through CommandArgument a value and i need that value to be a javascript value. Thanks!</p>
<p>Edit : </p>
<p>here is my linkbutton tag :</p>
<blockquote>
<p>< asp:linkbutton id="prevBut"
runat="server" OnCommand="load_com"
CommandArgument=... | javascript asp.net | [3, 9] |
5,760,765 | 5,760,766 | how to delete or hide a li | <pre><code><li>ff<strong>foobar</strong><a class="icon-close" href="#."></a></li>
<li>ff<strong>foobar</strong><a class="icon-close" href="#."></a></li>
<li>ff<strong>foobar</strong><a class="icon-close" href="#."></a>... | javascript jquery | [3, 5] |
303,213 | 303,214 | jQuery: Preventing list scroll? | <p>I have this scenario: Using an ajax query I fetch some data items and push them into a <code>ul</code> element as an <code>li</code> element. I use <code>$("ulele").append(new_li_item)</code>. I wrote my own custom scroll for this <code>ul</code> element using the following whenever an event is detected:</p>
<pre><... | javascript jquery | [3, 5] |
639,307 | 639,308 | Ajax call not working in IE7 and FF | <p>Dear All,
I have one js file with a ajax call which is working fine in IE6, but not in IE7 or FF. Can somebody help?</p>
<pre><code>window.onload = function() {
var xmlhttp;
var url = "myurl";
if (window.XMLHttpRequest) {
// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp = new XML... | javascript jquery | [3, 5] |
5,392,536 | 5,392,537 | can't access C# method using jquery | <p>I am trying to call a C# method from java script ,I am new to web development and after a bit of searching decided on using jquery to do the same,the way I try to call the method is:</p>
<pre><code>$.ajax({
type: "POST",
url: "Default.aspx/IncrementJ",
data: "{}",
contentType... | c# jquery asp.net | [0, 5, 9] |
2,166,888 | 2,166,889 | jQuery: animate to height of div | <p>I have this function:</p>
<pre><code>function fixedFeeSize(i){
var num1 = $('#num' + i);
if (num1.hasClass("extended")) {
num1.stop(true, true).animate({height: '59px'},500);
num1.removeClass("extended");
}else{
var height = 0;
num1.animate({height: '360px'},500);
num1.addC... | javascript jquery | [3, 5] |
3,785,945 | 3,785,946 | jQuery autocomplete; want Return key to behave as Tab | <p>The following code behaves different when <strong>tab</strong> and <strong>enter</strong> keys are pressed:</p>
<p>--<strong>tab</strong> replaces the text field's value with the value of the selected item and focus goes to the next input box</p>
<p>--<strong>enter</strong> replaces the text field's value with the... | javascript jquery | [3, 5] |
4,613,306 | 4,613,307 | Prevent users from re-clicking "Like" button on page refresh | <p>I want to stop a user from clicking a <em>Like</em> button multiple times. I can disable the button on the first click using jQuery, but when the page is refreshed, the user can again click the button. How do I prevent a user from re-clicking the button on page refresh?</p>
| php jquery | [2, 5] |
1,441,181 | 1,441,182 | iPhone jQuery breaks after triggering the email overlay | <p>I'm developing a mobile site for iPhone using jQuery. I have a hidden div (class <code>.tile-content</code>) that holds some content. Clicking a link with <code>onclick="showContent(this)"</code> calls fadeIn like this:</p>
<pre><code> function showContent(obj)
{
alert($(obj).html());
... | jquery iphone | [5, 8] |
785,396 | 785,397 | How get PDU from SMS | <p>Just wondering whether is it possible to recreate PDU from SMS and how?
I have looked at </p>
<pre><code>@Override
public void onReceive(Context context, Intent intent) {
Bundle bundle = intent.getExtras();
Object[] aPDUArray = (Object[]) bundle.get("pdus");
// Here it represent as a byte array, how can i convert ... | java android | [1, 4] |
4,198,527 | 4,198,528 | Call C# method from another page in javascript function with jQuery | <p>In GridViewData.aspx.cs I have a method I want to call inside a javacsript function.</p>
<pre><code>//This simple example method is from GridViewData.aspx.cs
private int ValidateNameUpdateable()
{
return 22;
}
</code></pre>
<p>I want to call this function from Javascript in default.aspx</p>
<pre><code><... | c# javascript jquery asp.net | [0, 3, 5, 9] |
5,411,891 | 5,411,892 | Iframe in the jquery UI dialog | <p>I have an iframe in the jquery UI dialog , setting its src at doument.ready event :</p>
<pre><code> $(document).ready(function() {
$("#iframe").attr("src", whatever);
$("#button").click(function() { $("#dialog").dialog(); });
});
<div id="dialog">
<iframe src="" id="iframe">&l... | javascript jquery | [3, 5] |
2,425,050 | 2,425,051 | How to apply selected color to selected cell | <p>Sir,
There is one table with different colors.
Under that second table suppose with 3 columns,3rows.</p>
<p>After clicking on the color i will click any cell in the below table.that color have to apply for that particular cell. It is like paint bucket.
Can u tell me how to do this?</p>
| php javascript | [2, 3] |
3,057,246 | 3,057,247 | How do I use two .siblings with the same input type? | <p>I want to get "The walking dead" also but it only gets the first hidden. Can i put a class on .this or how should I do?</p>
<pre><code>$(".articel input[type='button']").click(function(){
var price = $(this).siblings("input[type='hidden']").attr("value");
var quantity = $(this).... | javascript jquery | [3, 5] |
1,104,515 | 1,104,516 | passing parameters in url to another page | <p>I am going to create two pages.</p>
<p>The first page will be www.rentzamm.com?adv=1256&loc=768 ...On this page I am going to have a link which takes you to www.rentzamm.com/result.asp ..... Now when i press the link from page 1 I want the link of page 2 to be like this: www.rentzamm.com/result.asp?adv=1256&... | javascript jquery | [3, 5] |
2,386,251 | 2,386,252 | Value of object in UI variable only | <p>Pass data object value from class to UI, want to pass it in array type variable only so that i can print respective values easily? ways to pass these values to UI?</p>
| java php javascript | [1, 2, 3] |
3,119,737 | 3,119,738 | How can i convert a time (12:30 am) into timestamp using javascript? | <p>Can anyone tell me how to that? I would like to compare 2 times and find out which one is greater? like 12:30 pm and 5:30 pm</p>
| javascript jquery | [3, 5] |
3,628,139 | 3,628,140 | Retrieving selected text with offset values | <p>I want to annotate a text and store the annotated text in database .what am doing is, storing the offset values and selected text in the database.Is there is a possible way to retrieving selection using offset values.</p>
| php javascript | [2, 3] |
3,875,601 | 3,875,602 | After .load() Reset Textbox with User Entered Value using JavaScript and jQuery | <p>My function below calls a partial view after a user enters a filter-by string into the text box <code>'#DocId'</code>. When the user is done typing, the partial view is displayed with filtered data. Since my textbox needs to be in the partial view, when user is done entering a filter-by string and is shown the fil... | javascript jquery | [3, 5] |
1,562,667 | 1,562,668 | ScrollView in android | <p>I have a TableLayout, in which rows are dynamically created, thus it may cross the limited screen size. To avoid this I am trying to add a scroll view after creating the table layout as:</p>
<pre><code>TableLayout tl = (TableLayout) findViewById(R.id.tableLayout1);
ScrollView sv = new ScrollView(this);
tl.addView(s... | java android | [1, 4] |
3,868,619 | 3,868,620 | ASP Button Edit in GridView ASP.NET C# | <p>I'm trying to make an Edit button in gridview. So far I can only add a delete asp:button but what about edit button? Is there any way I could modify the CommandField to look like asp:button instead of linkbutton?</p>
<p>Any help would be much appreciated.
Thanks in advance ;) </p>
| c# asp.net | [0, 9] |
2,653,525 | 2,653,526 | How to change button text color programmically on press? | <p>I create button like this:</p>
<pre><code>Button button = new Button(this);
button.setText("2012");
button.setBackgroundColor(Color.TRANSPARENT);
button.setOnClickListener(mCorkyListener);
layout.addView(dateButton);
</code></pre>
<p>On click listiner i have this method. Here i want to change button text color. B... | java android | [1, 4] |
5,330,797 | 5,330,798 | Accessing data from server through php in iphone | <p>I am using this code for accessing data from server,</p>
<pre><code>NSString *post = [[NSString alloc] initWithFormat:@"Email=%@",GEmail];
NSData *postData = [post dataUsingEncoding:NSASCIIStringEncoding allowLossyConversion:YES];
NSString *postLength = [NSString stringWithFormat:@"%d", [postData length]];
... | php iphone | [2, 8] |
3,241,462 | 3,241,463 | Select Columns runtime in LINQ LIST<> | <p>I have <code>List<Employee> listEmployees</code></p>
<p>I want to select some dynamic columns which are not known at compile time, like:</p>
<pre><code> var result = from l listEmployees
select ""
</code></pre>
<p>I tried <code>listEmployees.select("Name");</code></p>
<p>But it throws an err... | c# asp.net | [0, 9] |
3,922,563 | 3,922,564 | Partial Text Replace with Script | <p>Trying to replace Your Price with Discount price on this <a href="http://bit.ly/unxGy0" rel="nofollow">page</a>, what am I doing wrong?</p>
<pre><code><script type="text/javascript">
$(document).ready (
function() {
$("td:contains('Your Price:')").text("Discount Price:");
}
);
</script&... | javascript asp.net | [3, 9] |
515,070 | 515,071 | Don't understand the constructor of my View | <p>My code is working and so, but I don't understand one thing.
I've started game programming and now works my whole SurfaceView and so on. I have draw a background so it all works.</p>
<p>When I created this I followed a tutorial, so know I'm commenting on my own language. :)
When I now started to comment some things... | java android | [1, 4] |
5,842,985 | 5,842,986 | How to use json data that 'arrives' X seconds later? | <p>I'm filling out a list with a json. However that json (php file) gives me the result X seconds later (unknown time). </p>
<p>External file - Getting the json data:</p>
<pre><code>$(function(){
// can't modify this file
$.getJSON('json.php',
function(data) { ... | javascript jquery | [3, 5] |
3,599,560 | 3,599,561 | using an asp.net literal inside the <title> element | <p>This is such a simple scenario that I can't see what can possibly be going wrong. I'm using asp.net 4.0 (haven't tried older versions)</p>
<pre><code><title>Welcome to Page: <asp:Literal ID="Literal1" runat="server">
</asp:Literal></title>
</co... | c# asp.net | [0, 9] |
33,116 | 33,117 | Getting NewLine character in FreeTextBox control in Asp.net | <p>I am using <a href="http://freetextbox.com/" rel="nofollow">FreeTextBox control</a></p>
<p>in asp.net.When I am getting its HtmlStrippedText in my code I am getting the String without HTML tags.Now how can I get the new line character from this String i.e. I want to Replace All the NewLine characters with Special S... | c# asp.net | [0, 9] |
5,368,839 | 5,368,840 | Installing .net framework v4.30319 | <p>I want to install .net framework v4.30319 for web service. When run this command in cmd: </p>
<pre><code>C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet.reggis.exe -i
</code></pre>
<p>it creates administrative rights issues. But I am already logged in with an administrator account. How can I resolve the adm... | c# asp.net | [0, 9] |
2,409,451 | 2,409,452 | Adding an input name upon creation of new table row | <p>I have an order form I had put together for a client, you can view it <a href="http://www.tdidesign.com/designerorderform.php" rel="nofollow">here</a>.</p>
<p>As you can see it creates a new row with 5 input fields (per row). Here's my problem, I have this form outputting the form in html format to the clients emai... | javascript jquery | [3, 5] |
2,469,014 | 2,469,015 | Dynamically populating and setting value in dropdownlist in ASP.Net | <p>I have a form where I have 4 dropdowns Country, State, District and City. Country is populated on form load and rest are populated on selected index changed event. The sequence is On Country's selected index changed States are populated. On State-> Districts populated and on Districts -> Cities are populated. </p>
... | c# asp.net | [0, 9] |
5,577,043 | 5,577,044 | Can jQuery be used server side? | <p>I know that you can use JavaScript server side with node.js, but can we use jQuery for backend as well? Or will I just have to learn CoffeeScript instead of jQuery?</p>
| javascript jquery | [3, 5] |
1,466,781 | 1,466,782 | read Data from text files | <p>I'm trying to read a text files and insert the data from these text files into a URL;
but i have this error "java.lang.illegalargumentexception contains a path separator file" </p>
<p>this is the read method that im using </p>
<p>></p>
<pre><code>public String ReadFile (String Path){
String res = nu... | java android | [1, 4] |
942,770 | 942,771 | PHP code of javascript | <p>How do I write this HTML code in PHP?</p>
<pre><code><input class="input" name="email" value="Email:" id="email" type="text" onBlur="if(this.value=='') this.value='Email:'" onFocus="if(this.value =='Email:' ) this.value=''" >
</code></pre>
| php javascript | [2, 3] |
323,057 | 323,058 | Avoid displaying javascript confirmation when no checkbox is set | <p>Like the title says, I have a problem with checkbox validation.
So, I have this line in my php file which displays users.</p>
<pre><code><a href='#' onclick='if(confirm("Are you sure?"))checkbox.submit()' class='bt_red'><span class='bt_red_lft'></span><strong>Delete items</strong><s... | php javascript | [2, 3] |
3,313,383 | 3,313,384 | jQuery autocomplete focus one more time after hide | <p>Does anybody know why after clicking outside the search field and hiding autocomplete results a focus activate one more time? See please at <a href="http://layot.prestatrend.com/" rel="nofollow">http://layot.prestatrend.com/</a>
Type for example just 3 letters at search field 'ipo'. Thanks for any reply!</p>
| javascript jquery | [3, 5] |
5,990,208 | 5,990,209 | jQuery scrolling DIV: stop scrolling when DIV reaches footer | <p>I have a <code>#sidebar</code> (which starts below my <code>#header</code> div) and a <code>#footer</code> (around 120px off the bottom of the page).</p>
<p>I'm trying to make the sidebar scroll with the content of the page. The code below does this semi-successfully:</p>
<pre><code>/* profile sidebar */
#sidebar&... | javascript jquery | [3, 5] |
5,889,633 | 5,889,634 | jquery remove all child elements and leave text | <p>Whats the best way to remove all child elements from a div but leave any text that is directly inside the div in jquery.</p>
<p>I have tried .childre().remove() but this is adding loads of whitespace in firefox and opera. Works fine in ie though.</p>
| javascript jquery | [3, 5] |
5,682,149 | 5,682,150 | JQuery Custom Image From Checkbox to Radio | <p>I am using the following code to make a custom checkbox with my own images and it works but it's using a Checkbox and I need to use Radio buttons.</p>
<pre><code><script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script>
<script>
$(document).re... | javascript jquery | [3, 5] |
3,985,067 | 3,985,068 | Highlight selected list item only on long click? | <p>I'm using this to make a list item visible selected:</p>
<pre><code><item android:state_activated="true" android:drawable="@android:color/holo_blue_light" />
</code></pre>
<p>But I want the item only to be highlighted if a longclick is performed (so to say: only during the context menu bar is displayed above... | java android | [1, 4] |
3,142,617 | 3,142,618 | use $(this) in ajax callback jquery | <p>i'm doing a <code>jQuery.post</code> to a php file, and the file return's me a value.</p>
<p>the question is: why the <code>$(this)</code> dosent work in the callback function ?
any alert passing something to show, using <code>$(this)</code>, return's me <code>null</code></p>
<pre><code>$(".class").live("focusout"... | javascript jquery | [3, 5] |
358,239 | 358,240 | if width == 200px run function | <p>Here is a <a href="http://jsfiddle.net/hSqYG/" rel="nofollow">jsFiddle showing the problem</a></p>
<p>I'm not sure why this doesn't work:</p>
<pre><code>if ($('#menu').width() == '200px') {
alert("what");
}
</code></pre>
<p>I want an alert to appear when the animation is completed. So I assumed that I could s... | javascript jquery | [3, 5] |
863,943 | 863,944 | JavaScript Date in this format: "Wednesday, March 03, 2010 05:44:15 PM" | <p>I want to display date like this in my website "Wednesday, March 03, 2010 05:44:15 PM".</p>
<p>If I use JavaScript it will take lengthy code. Is there any other way to do this?</p>
| javascript jquery | [3, 5] |
3,578,627 | 3,578,628 | Best practices in realization of inner lists in android | <p>I'm newbie in android developing so I'd like to ask for advice about solving the next problem.</p>
<p>I have 2 SQlite tables: <code>cards</code> and <code>meanings</code>. Each card has one or several meanings. My android application should show a list of the cards with the realted meanings.
I should realise next ... | java android | [1, 4] |
761,275 | 761,276 | Add html elements dynamically to a inner html of an li element | <pre><code> function showHideMinMax(typeid ,value){
// extract the index number from typeid
var indexNr = typeid.match(/\d+/);
if(value == "blah"){
$("input#A"+indexNr).hide();
$("input#B"+indexNr).hide();
$("label[for=C"+indexNr+"]").hide();
... | javascript jquery | [3, 5] |
581,412 | 581,413 | Strip "http://" from pasted text into textbox | <p>I'm a total newbie when it comes to Javascript/jQuery so hopefully you can help me.</p>
<p>I have a textbox where most people are gonna paste links into. Is there a nice way for the textbox to detect that a link has been pasted (starts with <code>http://</code>) and then remove the protocol dynamically in the textb... | javascript jquery | [3, 5] |
1,724,065 | 1,724,066 | Check whether connection to the database is possible or not? | <p>I need to connect to the sql server database from my c# code.
sometimes because of some error( i dont know what it is) i cannot open connection
that is
conn.open() throws exception
so i need to check whether i can connect to the database before i am opening connection.</p>
<p>Thanks for helping me.</p>
| c# asp.net | [0, 9] |
4,427,769 | 4,427,770 | Execute complete function only once in jQuery animation? | <p>I'm trying to animate the font size of some text:</p>
<pre><code>$("p").delay(500).animate({
"font-size": "+=50"
}, 1000, function() {
alert("Done");
});
</code></pre>
<p><a href="http://jsfiddle.net/DerekL/e6FFt/" rel="nofollow">Here's a demo.</a></p>
<p>I want to do something after animating the <code>... | javascript jquery | [3, 5] |
4,011,039 | 4,011,040 | Swtich between text with each click | <pre><code>$("#mute").click(function(){
$("#audioplayer")[0].muted = $("#audioplayer")[0].muted;
$("#message").text("Volume muted");
})
</code></pre>
<p>What I need to achieve is when the users clicks again the button "mute", they will receive another message with "Volume UnMuted", instead of mute... | javascript jquery | [3, 5] |
5,325,857 | 5,325,858 | Javascript plugin to manage placeholder | <p>Look at the Twitter sign up page at <a href="https://twitter.com/signup" rel="nofollow">https://twitter.com/signup</a></p>
<p>Even when you click on first input field "Full name" placeholder stays there until I start typing something. That is awesome.</p>
<p>Does anyone know of a good jQuery plugin that comes clos... | javascript jquery | [3, 5] |
2,459,482 | 2,459,483 | cursor not stopping until button click completes in window.onbeforeunload? | <p>I have below javascript code for window.onbeforeunload. I am calling code behind button click method when pressed browser back button. </p>
<p>Now the problem is cursor is not stopping until <code>$("#buttonclientid").click()</code> completes. Just calling the method and moving to next statement. How to hold or st... | javascript jquery asp.net | [3, 5, 9] |
3,112,555 | 3,112,556 | Javascript and JQuery conflict | <p>I'm not very expert in using javascript and jquery but I'm working with them for a client.<br>
I have encountered a problem using two script: the first one makes a top panel sliding, the second is in a form. This one is used in order to hide or show a particular field basing on the drop down list choice. </p>
<p>I'... | javascript jquery | [3, 5] |
3,159,972 | 3,159,973 | Jquery - is it possible to bind css hover/focus behaviours to keydown? | <p>I hope I can be succinct with my question.</p>
<p>Lets say I have some css defined.</p>
<pre><code>.someCSS-name:hover > .list-item,
.someCSS-name:active > .list-item,
.someCSS-name:focus > .list-item { display:block; }
</code></pre>
<p>Now, in my jquery code how can I create or possible bind a tab press... | javascript jquery | [3, 5] |
4,601,586 | 4,601,587 | Changing img src does not display image | <p>Edit: Okay, the code is fine. There was some other code that was supposed to set other attributes somewhere else and I fell prey to the "copy/paste forgot to change the ID name" disease. Thanks for everyone's input. Sorry for being a bonehead.</p>
<p>I have a situation where I am using jquery to dynamically change ... | javascript jquery | [3, 5] |
2,922,668 | 2,922,669 | remove <a href> from a draggable when being dragged - jquery | <p>I have this site which is a grid of draggable links. When dragged a drop down appears where the user can drag to trash the draggable. </p>
<p>Problem is that when they drop it on the droppble, the link opens up! Which is not supposed to be happening. I've tried adding</p>
<pre><code>ui.draggable.find('a').removeA... | javascript jquery | [3, 5] |
1,341,445 | 1,341,446 | javascript and asp.net using json | <p>I've question about asp.net and javascript post and get, I know how to get the value from drop down list in asp.net connected to database, but how to send thing to asp.net and asp.net send it back ...</p>
<pre><code><div id="map" style="width: 500px; height: 500px">
<asp:SqlDataSource ID="SqlDataSo... | javascript asp.net | [3, 9] |
5,768,000 | 5,768,001 | How to get HTML from a current request, in a postback | <p>I have a report that I generate with HTML. </p>
<p>I'd like to get the HTML output of the page, and be able to send it via email. I'm having problem with session, because the report redirect me to the login page because when I create a new WebRequest, it doesn't use the information of the current session.</p>
<p>I... | c# asp.net | [0, 9] |
3,129,223 | 3,129,224 | Convert InputStreamReader to InputStream | <p>How can I convert <code>InputStreamReader</code> to <code>InputStream</code>? I have an <code>InputStream</code> which contains some string and byte data and I want to parse it. So I wrap my <code>InputStream</code> to <code>BufferedReader</code>. Then I read 3 lines from it. After that I want to get the rest of dat... | java android | [1, 4] |
5,427,468 | 5,427,469 | From Java to C++ or C# | <p>I am having a technical interview in a week where I expect questions in C++ or C#. I have strong knowledge and experience in Java. Which one (C++ or C#) would be easy to jump and be prepared in a week for simple questions like binary tree, linked list etc? I have never worked with any of them. So syntax similariness... | c# java c++ | [0, 1, 6] |
4,507,245 | 4,507,246 | Unsaved changes warning popup | <p>I'm trying to implement a "Unsaved changes" warning in my web application but I'm struggling to get this working properly. I know about the existence of onbeforeunload event in javascript, but I was requested to use a custom div with some fancy formatting as a modal popup to prompt the user about those unsaved chang... | javascript jquery asp.net | [3, 5, 9] |
5,890,651 | 5,890,652 | how to get value into a php variable after setting value of textfield with javascript within same page | <pre><code> <form name="demo" method="GET">
<input name="test" value="">
</form>
<script>
document.demo.test.value=2;
</script>
<?
$s=$_GET[test];
echo $s;
?>
</code></pre>
| php javascript | [2, 3] |
5,714,231 | 5,714,232 | Way to include a .js inside a .js? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/950087/include-javascript-file-inside-javascript-file">Include javascript file inside javascript file?</a> </p>
</blockquote>
<p>Is this possible? Including a reference to another .js that your current .js file... | asp.net javascript | [9, 3] |
1,790,631 | 1,790,632 | Good resources for learning JavaScript | <p>Can someone suggest good learning materials or websites to learn JavaScript and jQuery? Am pretty new to this and want to learn right from basics.</p>
<p>Thanks in advance,
Geetha</p>
| javascript jquery | [3, 5] |
2,396,465 | 2,396,466 | jQuery - choosing sum at random | <p>I am creating a "whack-a-mole" style game for primary school children where they have to click on the correct number in correspondence to the sum given. </p>
<p>At the moment the program is generating addition sums like this.</p>
<pre><code>function createPlusSum(total) {
console.log(total)
var int1 = Math... | javascript jquery | [3, 5] |
5,273,605 | 5,273,606 | Jquery refresh image after source change | <p>I have a JavaScript function where I play a sound file (using phonegap). It normally works fine but I want to change the <code>img src</code> to a loading icon while the file is being downloaded. However, the src is changed
after the file is played.</p>
<p>I tried to add <code>+new Date().getTime()</code> to the en... | javascript jquery | [3, 5] |
5,204,485 | 5,204,486 | Click event is not triggered in jQuery | <p>I am binding a click event with an elementid like this:</p>
<pre><code> $("#a").bind({click : dosomestuff });
</code></pre>
<p>After that when I am trying to trigger it with the <code>.trigger()</code> function like this:</p>
<pre><code> $("#a").trigger("click");
</code></pre>
<p>The function is not triggering... | javascript jquery | [3, 5] |
1,786,289 | 1,786,290 | javascript: problem with function | <p>I have this simple function:</p>
<pre><code><script type="text/javascript">
//<![CDATA[
jQuery(function($){
function here(b){alert(b);} ;
here(6);
});
//]]>
</script>
</code></pre>
<p>and i have this button on page:</p>
<pre><code><button onclick="here(7);">TEST<... | javascript jquery | [3, 5] |
1,437,561 | 1,437,562 | Which JavaScript function is compatible with PHP urldecode function? | <p>On the server side the PHP code will be using <code>urldecode()</code> function to decode, but the JavaScript code is responsible to encode the URL. Which of the following JavaScript function is compatible with the PHP <code>urldecode()</code> function:</p>
<blockquote>
<ul>
<li>escape() </li>
<li>encodeU... | php javascript | [2, 3] |
876,734 | 876,735 | take user to certain point on page where div fades in? | <p>Can someone please help, I am fading in several <code>div</code>'s on a page and each time the user closes one <code>div</code> another will fade in, what I want to try and achieve is a way to take the user up/down the page to the focal point of where the <code>div</code> is?</p>
<p>Is this possible and if so how c... | javascript jquery | [3, 5] |
813,587 | 813,588 | Jquery Show Hide Function | <p>I am using the jQuery function</p>
<pre><code>function ShowHide(){
$(".login").animate({"height": "toggle"}, { duration: 1000 });
}
</code></pre>
<p>and the link to show hide the .login div is:</p>
<pre><code>onclick="ShowHide(); return false;"
</code></pre>
<p>But this link only toggles the div to show and hi... | javascript jquery | [3, 5] |
5,821,815 | 5,821,816 | Tip on building a role-based security module for rich user interfaces (Using Extensive Javascript/JQuery)? | <p>These days, building rich user interfaces for your application is very essential and im a fan of slick and easy to use interfaces.</p>
<p>Today, we have sliding panels, hiding html elements, timelines ... All these use javascript/JQuery. Sometimes when used in a role-based security application. One sometimes need t... | c# asp.net | [0, 9] |
1,207,713 | 1,207,714 | Add validation method to "jquery validation plugin" | <p>Hello im using jquery validation plugin to validate my form.
I want to add one more rule to the validation, but cant get it to work.
<strong>Input value should be less or equal previous element value.</strong></p>
<p>It is possible to do it ?</p>
<p>Here is the code -</p>
<pre><code><input type='text' value='&... | javascript jquery | [3, 5] |
3,576,527 | 3,576,528 | Conditional popup on html document close | <p>I have a content management page on my CMS on which I have a popup that warns the user on page close. It is a very simple warning implemented like so:</p>
<pre><code>window.onbeforeunload = function (e) {
return 'Are you sure you want to close?';
}
</code></pre>
<p>It works, but the problem is that the popup... | c# javascript asp.net | [0, 3, 9] |
378,132 | 378,133 | run asp.net function when The page is closing | <p>I have an asp.net page
when Loading this page it creates a Thread to do some thing
My Question is :
How to kill this thread when the user close the page ?
I have tried with "onUnload" event
but it just works with javascript function (as I know)
and we can't use asp.net code in javascript function
Do You have a way ... | c# asp.net | [0, 9] |
2,284,107 | 2,284,108 | Calling a Javascript function within C# | <p>I am trying to pop something based on a condition... but it is not working... and I am kind of a newbie at this so I appreciate the help</p>
<pre><code>if (myFileName == OldFileName)
{
btnSubmit.Attributes["OnClick"] = "return confirm('This file already exists, do you want to rep... | c# asp.net | [0, 9] |
3,287,013 | 3,287,014 | Dynamically added input to form doesn't validate after first validation | <p>I have a form where I add some inputs dinamically.</p>
<p>Every time the user select another "fornecedor" from addMaterialFornecedor select I add a input for preco.</p>
<p>My problem is that when I click the button and call the validate() function <a href="http://js.sapo.pt/SAPO/Ink/FormValidator/doc.html" rel="no... | javascript jquery | [3, 5] |
3,787,789 | 3,787,790 | Correct approach using Collections with GridView control asp.net c# | <p>Here is my typical scenario:</p>
<p>I have many c# business objects that more or less match my database design. I also have collections of these objects that I use to bind to gridviews. What is the best way to combine fields from both of these objects to my gridview (without using datatables or creating a view)</p>... | c# asp.net | [0, 9] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.