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,515,032 | 3,515,033 | Enabling default behaviour link by link with jquery | <p>I am an html css design type who is not that comfortable with jquery. I have inherited a site with the link default behaviours disabled with what I can see is this code:</p>
<pre><code>$('a').click(function(event) {
event.preventDefault();
var locationHref = window.location.href;
var elementClick = $(t... | javascript jquery | [3, 5] |
325,059 | 325,060 | clearInterval not working | <p>This most likely just a frustration syntax error on my part. But resizeTime just won't clear. The timer just keeps going regardless of using clearInterval on it more than once. Any ideas folks? I have posted my real code:</p>
<pre><code> var resizeTime; // declared outside of wrapper function to INSURE no second d... | javascript jquery | [3, 5] |
1,592,418 | 1,592,419 | Open Image from assets using external program | <p>I've wrote content provider to open a png file in my app package with an external application (standard image viewer of Android). Image is stored in asset folder.</p>
<p>I cannot understand where is a problem, but it doesn't work for me.</p>
<p>openFile of ContentProvider:</p>
<pre><code> @Override
public Pa... | java android | [1, 4] |
5,085,895 | 5,085,896 | Why does IE complain about this js line? | <p>Why does IE complain about this javacript call?</p>
<pre><code>$.get("profile_completeness.php?id=<?php echo($user_id); ?>", function(data) {
var percentage = data.match(/id="percentage_complete" value="(\d+)"/)[1];
alert(percentage);
})
</code></pre>
<p>This works fine in Chrome, and FF but IE throw... | javascript jquery | [3, 5] |
4,321,832 | 4,321,833 | asp:imagebutton, change image from javascript / jquery | <p>How can i change the image of an image button clientside, on click.</p>
<p>I have tried this:</p>
<pre><code>function changetoDownload(theId) {
$(theId.id).delay(2000)
.queue(function (next) { $(theId).attr("ImageURL", "Images/Apps/free.png"); next(); });
}
<asp:ImageButton ID="ImageButton1" OnClick="But... | javascript jquery asp.net | [3, 5, 9] |
1,519,550 | 1,519,551 | How to register Javascript function to find when HiddenField value changed? | <p>I have a page that contains a <code>HiddenField</code> control, I register some javascript on page load which contains a function I want to run when the HiddenField value has changed. </p>
<p>Currently, I have the following code which executes the function if an input field's value has changed:</p>
<pre><code>$(':... | c# javascript jquery asp.net | [0, 3, 5, 9] |
3,071,043 | 3,071,044 | How to get the icon of other applications (Android) | <p>What I'm doing is getting a list of all the current running processes on the phone. Which I have done by, </p>
<pre><code>private List<RunningAppProcessInfo> process;
private ActivityManager activityMan;
...
activityMan = (ActivityManager)getSystemService(Context.ACTIVITY_SERVICE);
process = activityMan.getRu... | java android | [1, 4] |
5,571,368 | 5,571,369 | StreamWriter truncating text while writing to a text file | <p>I have a huge HTML content in a string variable and I want to write that content to a text file using stream writer but the stream writer is truncating the text. It is not wrting the whole content to file. I am using the following code:-</p>
<pre><code>using (StreamWriter sw = new StreamWriter(completeFilePath))... | c# asp.net | [0, 9] |
882,211 | 882,212 | How can I keep the focus on an input field if the input is incorrect | <p>Given the following code:</p>
<pre><code>sPosSelect="#fpJpos input[name=posnum" + iiPos + "]";
if (fIn>fPosMaxWtUse[iiPos]) {
alert(sprintf('%.0f is %.0f more than the position max of %.0f.',fIn,fIn-fPosMaxWtUse[iiPos],fPosMaxWtUse[iiPos]));
$(sPosSelect).val('');
$(sPosSelect).focus();
return;
}
</code></pr... | javascript jquery | [3, 5] |
3,675,387 | 3,675,388 | webservice in jQuery returns collection type | <p>I have an ASP.NET WebService that returns an object of List</p>
<pre><code>public class Students
{
public string StudentName { get; set; }
public int Age { get; set; }
}
</code></pre>
<p>I am accessing this webservice using this jQuery code</p>
<pre><code>$.ajax({
type: "POST",
url: "/Students.asmx/GetS... | asp.net jquery | [9, 5] |
5,383,468 | 5,383,469 | jquery load() after a h4 tag | <p>How do I get jqery's load to load sometime after a particular tag? In my case, I'll be loading a form after the h4 tag. That's where it needs to go. My problem is: the H4 tag will disappear. Is there anyway to get the form to load under the H4 tag?</p>
<p>jquery:</p>
<pre><code>$("#loadForm").click(function() {
... | javascript jquery | [3, 5] |
1,951,134 | 1,951,135 | how to make trial version of win and web application in .Net technology | <p>how to develop a trial version of window or web application in dotnet technology. as a result user can use that windows or web apps for certain day and also will not be able to use after resetting his system clock.how could make this type of trial version both in window and web.
please give me the concept in detail.... | c# asp.net | [0, 9] |
4,778,198 | 4,778,199 | Can I record the mouse movements? | <p>I would like to record mouse movements and clicks.</p>
<p>Can I do it with JQuery or other JS library?</p>
<p>Thank you</p>
| javascript jquery | [3, 5] |
150,770 | 150,771 | Page.User.Identity.Name returns empty string | <p>For some Page.User.Identity.Name always returns an empty string. Any ideas. I simply want to print it to the screen. IIS is set for integrated windows security.</p>
<p>Response.Write("Name = " + Page.User.Identity.Name);</p>
<p>Oops just noticed i hadnt set authentication to windows auth. Silly me</p>
| c# asp.net | [0, 9] |
1,234,634 | 1,234,635 | How to backpress pass an activity? | <p>I have an activity that loads some content using an AsyncTask.</p>
<p>If the content is null then i launch an activty that contains a WebView to load the data.</p>
<p>The only problem is when i launch the activity using regular intents. </p>
<p>When the back button is pressed to return out of the WebView.</p>
<p... | java android | [1, 4] |
3,848,326 | 3,848,327 | Pass a JS variable to a PHP variable | <p>I have a JavaScript value given by Google maps and I need to save it in a MySQL database.</p>
<p>Actually I have the variable </p>
<pre><code><script>
...
var lugar = results[0].geometry.location;// this gives me a latitud, longitud value, like: -34.397, 150.644
...
</script>
</code></pre>
<p>And I ne... | php javascript | [2, 3] |
3,179,332 | 3,179,333 | can't verify password input while using Titanium Mobile? | <p>I have a trouble in password validation while using Titanium mobile. Please help me out. This is my code</p>
<pre><code>var re = /(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{6,}/;
if(re.test(newPass))
{
return true;
} else
{
alert("Password must contain at least one number, one lowercase and one uppercase letter");
... | javascript iphone | [3, 8] |
4,166,646 | 4,166,647 | How to get the URL of the current page in C# | <p>Can anyone help out me in getting the URL of the current working page of ASP.NET in C#?</p>
| c# asp.net | [0, 9] |
5,740,142 | 5,740,143 | Javascript checkbox crazy if statement | <p>I've got a command.cgi that returns a website url, if the checkbox with id="simple" is checked then redirect the user to that page, if not, add the html formatted link to a container.
The problem is that it doesn't redirect the user to a html formatted link when the checkbox is checked and when it does, it redirects... | javascript jquery | [3, 5] |
1,430,018 | 1,430,019 | How to save "title" attribute of "a" with jQuery? | <p>How can I save the value of the title for a row? These are the values of the <code>title=%s:</code></p>
<pre><code><a class="false" title=1106 href="/useradminpage?main_id=%s&display=false"><span class="small">(hide)</span></a>
<a class="false" title=1153 href="/useradminpage?main_id... | javascript jquery | [3, 5] |
746,278 | 746,279 | Add Slide effect to Sliderman.js | <p>I'm using the Sliderman.js (http://www.devtrix.net/sliderman/examples.html) but can't seem to figure out how to get a simple effect to work, all the big ones work fine, just want my images to slide in from the right and slide out from the left so basically like a loop, need to modify the code but don't know how, hel... | javascript jquery | [3, 5] |
1,615,658 | 1,615,659 | Expandable Listview image changes on click? | <p>I have the below code running perfectly. When a user clicks on a group and it expands the image changes due to a change in the state. The xml file is below aswell. The problem I have is when I click on a child element it starts a new activity, but just before you can see that the image changes state to as if the gro... | java android | [1, 4] |
3,672,172 | 3,672,173 | problems with create an object on post back | <p>i have an issue with creating an object in ASP.net</p>
<p>My Page Load function is:</p>
<pre><code>public partial class hangMen : System.Web.UI.Page
{
abc ltr;
Words word = null;
static Label [] lbl = null;
static Button[] btn = null;
Game game;
protected void Page_Load(object sender, EventArgs e)
{
if (... | c# asp.net | [0, 9] |
1,291,860 | 1,291,861 | Why my edit button works only once even I use $('[isEditButton="true"]').on()? | <p>Here is my code, and I has been really frustrating on identifying the problem.</p>
<p>I tried to use </p>
<pre><code>$('[isEditButton="true"]').on('click', function(){ codes })
or
$('table tr td').on('click', '[isEditButton="true"]' , function(){ codes })
</code></pre>
<p>but both yield unexpected result, the ed... | javascript jquery | [3, 5] |
1,200,413 | 1,200,414 | Activity loading time issue( performance issue while loading Activity) | <p>Am moving from one Activity to another activity, in second activity am showing the listview. Am using arraylist's data to fill the listview, so for that i have used "for" condition for looping. so for that looping its taking time to load that page. That page loading time is depending up on the data in the arraylist... | java android | [1, 4] |
2,305,954 | 2,305,955 | Paging on GridView | <p>I'm stuck at the moment on how to show my Grid Data in another page.</p>
<p>Basically I have a GridView name "gdvRiders" with Paging Enabled. The problem is when I click on Page 2, I get a blank Page with no Data. Can someone help me? I'm starting to learn c#</p>
<p>Here is my code:</p>
<pre><code>protected void ... | c# asp.net | [0, 9] |
3,239,841 | 3,239,842 | Python-like decorators in Java? | <p>I spend most of my time programming in Python, so forgive me if my approach to this problem is short-sited:</p>
<p>I want to have certain methods of a class require login credentials. Simply, each method should check whether the class variable <code>user</code> is set, and if so, continue, but if not, spit out a "y... | java python | [1, 7] |
1,118,660 | 1,118,661 | IE7 opacity problem by Dropdown menu | <p>in the following website we have a dropdown menu with rollover effact.
this function perfactly but in IE7 the opacity is not working correctly.</p>
<p>Any tip?</p>
<p><a href="http://webentwicklungsserver.ch/2011-08-25/index.php" rel="nofollow">http://webentwicklungsserver.ch/2011-08-25/index.php</a></p>
<p>As bo... | javascript jquery | [3, 5] |
4,066,870 | 4,066,871 | Is it possible to send an arraylist as a response to jquery? | <p>Is it possible to send an arraylist as a response(from action class) to jquery?If so please give sample code</p>
| java jquery | [1, 5] |
3,224,465 | 3,224,466 | Using Android libs on a desktop Java VM (like OpenJDK or OracleJDK) | <p>I have never tried out the Android SDK and do not own an Android phone. However it seems that certain libraries are excellent, for example the text to speech lib. Is it possible to use this library with a desktop VM and did anybody here try this?</p>
| java android | [1, 4] |
342,901 | 342,902 | How to get value of "this"? | <p>I have this code:</p>
<p>HTML:</p>
<pre><code><!DOCTYPE html>
<html>
<head>
<title>To Do</title>
<link rel="stylesheet" type="text/css" href="stylesheet.css"/>
<script type="text/javascript" src="script.js"></script>
</head>
... | javascript jquery | [3, 5] |
4,490,258 | 4,490,259 | implement specific file to a class in android | <p>I have developed an application in android. I have a file 'Constants.java' implemented to an activity. This file contains constant values for application. I need to change this constants file according to device resolution.</p>
<p>Is there a way where I can build a preprocessor, where in I can check the resolution ... | java android | [1, 4] |
1,057,412 | 1,057,413 | Does jQuery do some magic with the `this` variable? | <p>jQuery has gotten us used to the following <code>this</code> pattern:</p>
<pre><code>$(selector).each(function () {
// do something with `this`
// `this` iterates over the DOM elements inside `$(selector)`
});
</code></pre>
<p>According to <a href="http://www.youtube.com/watch?v=ya4UHuXNygM" rel="nofollo... | javascript jquery | [3, 5] |
2,582,546 | 2,582,547 | how to make an ajax request after sending data by post? | <p>i meet a problem, when try to make an ajax request after sending data by post.</p>
<p>let's assume i have a index.php file. In the form i send data by post to the same file, and after posting i want to make ajax request, but it don't doesn't happen, because it "wants" to ask about resending data, but it doesn't sh... | php javascript jquery | [2, 3, 5] |
2,839,361 | 2,839,362 | unterminated string literal Javascript | <p>I'm using the following code in php:</p>
<p>PHP:</p>
<pre><code> $suggested_sentence[0] = "Hello, how are you?";
echo $suggested_sentence[0] . ' <input type="image" src="button.png"
onclick = update_textarea('. $textareacount.','. "'".$suggested_sentence[0]."')/>";
</code></pre>
<p>Javascript function:... | php javascript | [2, 3] |
410,296 | 410,297 | How do I access this variable outside of this jquery loop? | <p>I have a simple jquery loop that goes through my form and </p>
<ol>
<li>sees if there is empty fields. </li>
<li>If any are empty, mark them with an 'empty' class and </li>
<li>then create a 'error' variable</li>
</ol>
<p>Basically:</p>
<pre><code>// check all the inputs have a value...
$('input').each(function()... | javascript jquery | [3, 5] |
1,341,837 | 1,341,838 | return a single html element with jquery | <p>How can I get jQuery to return a html element exactly the way that <code>getElementById</code> does?</p>
<p>if I <code>console.log($('#container'))</code> I will get : </p>
<pre><code>[<div id="container"></div>]
</code></pre>
<p>But the API I am interacting with obviously doesn't want that (an array)... | javascript jquery | [3, 5] |
2,768,557 | 2,768,558 | Can I convert all files with jquery file upload to jpg? | <p>I'm using the <a href="http://blueimp.github.com/jQuery-File-Upload/" rel="nofollow">jquery file upload</a> script and it's working really well so far. The last obstacle I have is I only want to use <strong>jpg</strong> images for my website but allow users the option of uploading gif, png, or jpg. </p>
<p>I'm as... | php jquery | [2, 5] |
5,324,559 | 5,324,560 | Question about inline aspx tags | <p>I have this div that's got a style attribute..In that I am setting it's background image by calling a function from code behind..</p>
<pre><code><div id="id1" style = "background-image: url(<%=GetImage()%>);"></div>
</code></pre>
<p>now when I add runat="server" attribute in this div..it shows th... | c# asp.net | [0, 9] |
4,637,386 | 4,637,387 | Change server IPAdress and perform a redirection automatically | <p>I have created an web based application through which the users can change the server (where the web application is hosted) IPAddress.</p>
<p>The problem is that, once i have changed the IPAddress to a new IPAddress, Response.Redirect("MyHome.aspx") is not working any more. I have also tried to redirect the user to... | c# asp.net | [0, 9] |
1,928,885 | 1,928,886 | error paging and editing in gridview | <p>I had gridview which retrieve Products from database by sqldatasource1 ,and my manager asked me to filter this gridview by DDL to filter gridview with specfic Model ,I add some function on gridview as edit,paging .I did my code well and gridview filtred by the Model_Id which come from DDL .But when I tried to edit a... | c# asp.net | [0, 9] |
227,738 | 227,739 | How to display an alert if none of the case statements match? | <p>I have a case statement below where it checks for a file type in a file input which works correctly:</p>
<pre><code>function imageValidation(imageuploadform) {
var val = $(imageuploadform).find(".fileImage").val();
switch(val.substring(val.lastIndexOf('.') + 1).toLowerCase()){
case 'gif':
ca... | javascript jquery | [3, 5] |
363,057 | 363,058 | Jquery on new Window objects? | <p>Is it possible to use jQuery on a new Window javascript object?</p>
<p>Example:</p>
<pre><code>win = new Window('mywindow','width= 400', 'height=400');
win.getContent().innerHTML = xmlFindNodeContent(XmlHttp.responseXML, "windowHtml");
jQuery(win).ready(function(){
do jQuery stuff on the new window here??
}); ... | javascript jquery | [3, 5] |
4,469,880 | 4,469,881 | USB Host Development on Android 2.3 Device | <p>I just got a development kit that have a physical two USB Host port and the Android specification says it support USB Host, I am curious about this as USB Host is introduced in Android 3.1, where my kit only have Android 2.3</p>
<p>Does this mean that I can use the API as described here:</p>
<p><a href="http://dev... | java android | [1, 4] |
5,325,183 | 5,325,184 | How to differentiate two links with the same content using jQuery? | <p>I have a page that contains two links with the same text "Add new item", but are targeting different URLs. </p>
<p>I created a javascript that uses jQuery library which references the link by its text. The code is: </p>
<pre><code>var anchorElement = $("a:contains('Add new item')");
</code></pre>
<p>This is fine ... | javascript jquery | [3, 5] |
3,726,759 | 3,726,760 | How do I make new elements draggable with jquery? | <p>I'm loading new elements with a form. After the elements are loaded I need to make each one draggable. According to .on doc <em>"Delegated events have the advantage that they can process events from descendant elements that are added to the document at a later time."</em></p>
<p>I've tried oh-so-many variants of ... | javascript jquery | [3, 5] |
5,276,954 | 5,276,955 | How do I bind a dynamically created asp textbox to a dataset? | <p>I have a textbox generated by parsing an xml file.</p>
<pre><code> TextBox tb = new TextBox;
tb.ID = "MYDATA"
Parent.Controls.Add(tb);
</code></pre>
<p>I then read another Xml file for the data to populate the created TextBox. I have been trying all sorts of databinging and setting the text property to a datase... | c# asp.net | [0, 9] |
2,995,069 | 2,995,070 | My site works fine in FF, but IE7 gives me error | <p>Here is my site:
<a href="http://www.sumsy.com/temp/templatesys/config.php?template=1" rel="nofollow">http://www.sumsy.com/temp/templatesys/config.php?template=1</a></p>
<p>IE6, 7 give me errors.</p>
<p>Line 9
Char 3
Expected identifier, string or number
Code 0
URL: config.php?template=1</p>
<p>so for situation l... | php jquery | [2, 5] |
752,136 | 752,137 | Show hidden download box after user shares a link | <p>I am trying to make a hidden download box div appear after a visitor shares a link.I've tried here something <a href="http://jsfiddle.net/trefu/qNDJB/4/" rel="nofollow">http://jsfiddle.net/trefu/qNDJB/4/</a> but is not working. I don't know how to define FB so it can be called. Can someone help me?</p>
<pre><code> ... | javascript jquery | [3, 5] |
5,915,589 | 5,915,590 | How to create a .sln file in Visual Studio 2010 | <p>I have all the folders for a solution file for ASP.NET but I want to create a <code>.sln</code> file including those folders. How to create a .sln file? Please help me.</p>
<p>Example I have downloaded all the folders which are running in server. But I can't create a <code>.sln</code> file file for running that pro... | c# asp.net | [0, 9] |
799,423 | 799,424 | Getting inner html tag's text | <p>How can I get text stored inner <code><td></code> html tag? I've used <code>var v = $('td[class=someCls]').html()</code> but when I try to output it using <code>cosole.log(v)</code> it outputs unexpected string. how can i fix it?
<a href="https://docs.google.com/document/d/1ed0sDo98ST87gIURI7XO63drdv3dXqa_rSK... | javascript jquery | [3, 5] |
4,422,807 | 4,422,808 | How to get a value from a JSON hash | <p>In a jquery ajax call I get sent back some JSON from the server and want to use some of it in the success callback. I pass in the data, but how do I get at a specific value (say "id")?</p>
<p>I tried this but I get undefined:</p>
<pre><code> success : function(data) {
... | javascript jquery | [3, 5] |
488,839 | 488,840 | deleting parent which deleting child jquery | <p>I want to delete only the parent div and keep their children as it is :</p>
<pre><code> <div id="main">
<div id="1"></div>
<div id="2"></div>
</div>
</code></pre>
<p>How we can delete only the <code>#main div</code> without deleting its <code>children ... | javascript jquery | [3, 5] |
3,736,100 | 3,736,101 | How to find the Iframe content scrollheight and scroll width? | <p>I'm new to this Jquery and i have a trouble to find the iframe scrollheight and scrollwidth when the iframe hosting the external webpage.
i tried following code but its doesn't work and i searched a lot.</p>
<pre><code>$.fn.hasVerticalScrollbar = function () {
// This will return true, when the div has vertical... | javascript jquery | [3, 5] |
4,842,122 | 4,842,123 | function is setting all instead of each | <p>I have a simple function that sets the width of a bar based on an argument.</p>
<p>And I call the function on .each with jQuery.</p>
<p>The console logs the statement correctly, showing me it seems to work. However, the style seems to be overridden by the last value found.</p>
<p>Here is the function:</p>
<pre>... | javascript jquery | [3, 5] |
5,485,786 | 5,485,787 | On 'include' pages, where to call global scripts? | <p>I am brand new to PHP and just starting out, so apologies if this is a really dumb question! </p>
<p>I have an index.php page with the following code:</p>
<pre><code><?php include 'includes/header.php'; ?>
<?php include 'includes/repeated-content.php'; ?>
<?php include 'includes/footer.php'; ?>
<... | php javascript jquery | [2, 3, 5] |
1,141,655 | 1,141,656 | jQuery recognise click from user, not trigger | <p>So I have the code: </p>
<pre><code>function randomClick(interval){
$(".thumbnail_holder .nav li:not(.empty):eq("+select+") a").trigger("click");
window.randomTimer = setTimeout("randomClick("+interval+")", interval);
}
</code></pre>
<p>I need it so when a user click's <code>".thumbnail_holder .nav... | javascript jquery | [3, 5] |
5,816,137 | 5,816,138 | What is the best way to programmatically run javascript when an ASP.net page loads? | <p>In my <code>global.asax</code> file for my ASP.net project, I am checking for certain conditions. When those conditions are met, I want to automatically execute javascript code when the page runs.</p>
<p>This is my code:</p>
<blockquote>
<p>if condition Then<br>
Response.Write(" < script type=""text/j... | asp.net javascript | [9, 3] |
6,005,341 | 6,005,342 | bind and unbind function with a name | <p>I need to bind and unbind a function on click.
The problem is that I need the click event (also 'this' as the clicked element would be fine)</p>
<pre><code> function clickElement(e) {
[...]
//here I need event or this clicked element
}
</code></pre>
<p>this would works, but doesn't have the event parameter... | javascript jquery | [3, 5] |
4,841,690 | 4,841,691 | Using JQuery to set 'dirty' elements back to original values | <p>I have a Javascript object that basically represents a Row in an .NET GridView.
When a user clicks on any row in the grid, all the input elements in that row are 'enabled'.(ie 'Edit' mode). </p>
<p>I run this code depending on which row is selected</p>
<pre><code>$(":input", this._row).attr('disabled', true);
or
... | asp.net jquery | [9, 5] |
3,959,509 | 3,959,510 | in asp.net server side code? | <p>I have this code : </p>
<pre><code>string s = "royi";
string val = "5";
</code></pre>
<p>I also have a <code>label</code> <code><asp:Label ..../></code></p>
<p>I want to create <code>s+" "+val</code></p>
<p>but I want That the <code>" "</code> will be <code>&nbsp;</code></p>
<p>How can I do it in <em>... | c# asp.net | [0, 9] |
3,415,664 | 3,415,665 | How does caching work when a javascript file is loaded? | <p>I have some tabs that are ajax powered. So everytime a tab is clicked all data is loaded including javascripts. So if they click on say Tab A then click on Tab B and finally Tab A. All Tab A scripts will be loaded twice.</p>
<p>Now I am wondering how does the caching work. On the second time they click on Tab A how... | javascript jquery | [3, 5] |
3,800,035 | 3,800,036 | jQuery - prevent default, then continue default | <p>I have a form that, when submitted, I need to do some additional processing before it should submit the form. I can prevent default form submission behavior, then do my additional processing (it's basically calling Google Maps API and adding a few hidden fields to the form) -- and then I need the form to submit.</p>... | javascript jquery | [3, 5] |
1,813,862 | 1,813,863 | can't get string result of replaceWith | <p>this is what I'm trying to do:</p>
<pre><code>var x = $("<div><div class='aaa' /></div>").find('.aaa').replaceWith("hi");
alert(x);
</code></pre>
<p>the result of the alert is <code>object</code> I need <code><div>hi</div></code></p>
| javascript jquery | [3, 5] |
2,701,952 | 2,701,953 | Checking username and password in Android | <p>I have a username and password field and now i need to check and redirect him to the next page in Android. </p>
<pre><code> public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
final EditText loginText = (EditText) find... | java android | [1, 4] |
1,691,712 | 1,691,713 | Having trouble to run report from server from web applicaton | <p>I am using ASP.NET 2005, C# and Crystal Reports 8.5 for development. It's running fine on my development computer, but when I try to to run from the server it is giving me an error.</p>
<blockquote>
<p><strong>Could not load file or assembly 'CrystalDecisions.ReportAppServer.CommLayer,
Version=10.2.3600.0, Cult... | c# asp.net | [0, 9] |
1,324,783 | 1,324,784 | java method explanation | <p>This is probably really simple but i am having difficulty understanding it.</p>
<pre><code> @Override
// says override this method so it can inherit from the super-class,is this true?
public void onCreate(Bundle savedInstanceState) {
// its a public method, that returns
// no value, with the p... | java android | [1, 4] |
1,609,518 | 1,609,519 | How do get change value of <input> element? | <p>I have a input in datalist</p>
<pre><code><input type="text" value="1" id="txtcount">
</code></pre>
<p>I want get new value of it when text change.</p>
<p>I use this code but don't work for me .</p>
<pre><code><script>
//look no global needed:)
$(document).ready(function(){
// Get the initial va... | javascript asp.net | [3, 9] |
671,739 | 671,740 | How can I get the same fly-in and bounce affect that apple uses for their nav bar in the store? | <p>Go to store.apple.com and watch the to nav bar. It flies in, and does a little bounce.</p>
| javascript jquery | [3, 5] |
3,289,920 | 3,289,921 | Passing URL parameter with JavaScript | <p>I have some JavaScript that creates Forward and Back buttons. However, I need to pass a parameter in the URL (<code>?id=$idd</code>):</p>
<pre><code><a href="javascript:submitForm('mainForm','back');" title="Go back to the kit home page" style="float: left;"><img src="images/back.gif" alt="Go back to the k... | php javascript | [2, 3] |
4,240,694 | 4,240,695 | Moving the page | <p>I need to move the page from top to bottom, just like it happens in the best site of the world( <a href="http://stackoverflow.com/">stackoverflow</a>), when we change the type of sorting of our questions, it moves the page.</p>
<p>How can I get such an effect?
I even don't know how to search for information about i... | javascript jquery | [3, 5] |
5,477,068 | 5,477,069 | Declaring arrays | <blockquote>
<p><strong>Possible Duplicates:</strong><br>
<a href="http://stackoverflow.com/questions/587584/what-is-the-preferred-way-to-declare-a-java-array">What is the preferred way to declare a Java array?</a><br>
<a href="http://stackoverflow.com/questions/129178/difference-between-int-array-and-int-array">... | java android | [1, 4] |
1,375,408 | 1,375,409 | Loop Through jQuery Function Inifitly | <p>I have a jQuery Animation which I want to loop infinitely, I have the current code but it just returns nothing.</p>
<pre><code>$(document).ready(function() {
var i = 0;
document.write(i);
function runTest(){
$('#page_effect').fadeIn(1500).delay(3500).fadeOut(1500);
... | javascript jquery | [3, 5] |
523,807 | 523,808 | How do I find the current window offset using javascript? | <p>When I open a page, the window offset would be 0 but when i scroll through the page, the offset of the window would increase correspondingly? How can I find the window's offset at any particular point of my web page?</p>
| javascript jquery | [3, 5] |
2,644,139 | 2,644,140 | How to customize the dbo.aspnet_Users table of asp.net membership? | <p>I am using ASP.net membership, but I want to store additional information for client while registration instead of default columns as membership provider does, so how can I customize the <code>dbo.aspnet_Users</code> table and change the code so that it doesn't affect the other functionality and works fine?</p>
<p>... | c# asp.net | [0, 9] |
2,636,124 | 2,636,125 | How to read an object from internal storage? | <p>I've saved objects into myfile.txt. I'm confused about how to read an object from internal storage. Can anybody help me? I'd like to use part of that object in an app similar to the memo app.</p>
| java android | [1, 4] |
5,987,148 | 5,987,149 | Efficiently read binary data into int[] | <p>I have binary data in a file (a list of 32-bit integer values) that I need to get into an int array efficiently. I can't see any way to do this other than loading the data into a byte[] and then converting it into an int[] one element at a time. This is too slow for the amount of data I need to load. It takes about ... | java android | [1, 4] |
2,863,673 | 2,863,674 | How to get the previous month date in asp.net | <p>I need to get the previous months date in asp.net which means that if the current date is 5/2/2013 then I want to display the previous date as 5/1/2013. How to solve this?</p>
| c# asp.net | [0, 9] |
1,499,017 | 1,499,018 | Print contents of a list box as comma-separated values using JQuery | <p>I have a select box defined as shown below. I want to print out the name and email address of each item in the select box as comma seperated values, like</p>
<pre><code>Tom Wayne,tom@xyz.com
Joe Parker,joe@xyz.com
Peter Simons,peter@xyz.com
</code></pre>
<p>Any way to accomplish that using JQuery?</p>
<pre><code>... | javascript jquery | [3, 5] |
5,082,301 | 5,082,302 | How to pick color that will not be same next to each other | <p>I'm adding a random background color with this code</p>
<pre><code>var hue = ['#2dafe9','#5feec3','#fdaf17','#999999','#2b2b2b','#454323','#ab34ef', '#e324e2','#874edf','#18edf4'];
function getHue(){
return hue[Math.floor(Math.random() * hue.length)];
}
function rainbow(){
$("header[rol... | javascript jquery | [3, 5] |
188,610 | 188,611 | Calculate File Size using Javascript | <p>I need to calculate file size using javascript before the file starts to upload in server size. I need do the file size operation in client size itself.</p>
<p>Pls help me guys.,</p>
<p>Thanks.. </p>
| javascript asp.net | [3, 9] |
3,539,237 | 3,539,238 | Sending emails through SMTP client using current logged in user | <p>I have web site set up that has some forms authentication through LDAP. I'm sending an email when the currently logged in user clicks a button, however the email is being sent from my address, and not the user. This creates a bit of confusion.</p>
<p>What I want to do is send emails using the logged users account w... | c# asp.net | [0, 9] |
2,881,866 | 2,881,867 | jQuery - does the submit event hold the query string or data of the submitted form? | <p>I have this code</p>
<pre><code>$("#dummy_div").on('submit', "form", function(event){
console.log(event);
event.preventDefault();
});
</code></pre>
<p>Does the event object contain hold the query string or data of the submitted form? If not, is there a way to get them short of iterating over the form field... | javascript jquery | [3, 5] |
4,373,811 | 4,373,812 | CMS uses jquery 1.7, theme uses jQuery 1.6 == conflict | <p>I've been given a theme to implement into a cms.</p>
<p>The theme uses jQuery 1.6 and has no javascript errors.</p>
<p>The CMS (concrete5) uses jQuery 1.7.1 and has no javascript errors.</p>
<p>When I merge the theme into the CMS, I drop the include to jQuery (since I was to avoid including jQuery twice) and now ... | javascript jquery | [3, 5] |
2,853,296 | 2,853,297 | Getting an element's `id` attribute | <p>Can you get the <code>id</code> attribute of a html tag using jQuery or without?</p>
<p>For example:</p>
<pre><code><ul id="todo" />
</code></pre>
<p>How can I get the <code>id</code>, without using <code>jQuery("#todo")</code>?</p>
<p>Is there a way for that? Will <code>attr()</code> work?</p>
| javascript jquery | [3, 5] |
361,392 | 361,393 | removeClass() works outside the if statement but not within | <p>I have the following HTML:</p>
<pre><code><div id="wrapper">
<div class="p1">
<a href="#" class="quickFlipCta"><img src="Test Pictures/QuestionMark.gif" /></a>
</div>
<div class="p2">
<a href="#" class="quickFlipCta"><img src=... | javascript jquery | [3, 5] |
841,743 | 841,744 | Skip some code if the computer is slow | <p>Is there any way to detect if a computer is slow and not run some code (by either turning jQuery animations off or just running a function if it <em>is</em> fast)?</p>
<p>I know this question is probably really trivial, but I noticed that on some slower computers even the simplest margin animation to move something... | javascript jquery | [3, 5] |
982,747 | 982,748 | c# - Specified cast is not valid | <p>I'm trying to code for a project, but the non-valid specific cast error keeps coming out. Can anyone help me as I am stumped. Thanks in advance.</p>
<pre><code>Server Error in '/c#project' Application.
Specified cast is not valid.
Description: An unhandled exception occurred during the execution of the current we... | c# asp.net | [0, 9] |
1,443,654 | 1,443,655 | Automate slider with jquery? | <p>I have a slider that slides images across on the click of a button using the following function</p>
<pre><code>$(document).ready(function (){
$('#button a').click(function(){
var integer = $(this).attr('rel');
$('#myslide .cover').animate({left:-720*(parseInt(integer)-1)})
$('#button a').each(function(... | javascript jquery | [3, 5] |
519,349 | 519,350 | trace an asp.net website in production | <p>Is there a way that I can trace every method, basically a line trace, in an asp.net web site in production environment?</p>
<p>I don't want to go about creating db logging for every line - i see an intermittent error and would like to see every line called and performed by the website per user.</p>
| c# asp.net | [0, 9] |
1,163,936 | 1,163,937 | Cannot parse HTML with jQuery | <p>I want to parse home HTML like the following using jQuery. When I'm using <strong>document</strong> it is working. But not working when using string.</p>
<p><strong>Output:</strong> <em>null</em></p>
<pre><code>var str = "<html><title>This is Title</title><body><p>This is a content<... | javascript jquery | [3, 5] |
5,266,741 | 5,266,742 | Validate the string entered is of mm/dd/yyyy format | <p>I have a datepicker control for the users to pick the date, however, they also need to enter the date manually. As such, I need to validate the date entered by the user in the textbox.</p>
<p>Below is the code that I am using to validate </p>
<pre><code> DateTime Test;
if ((!string.IsNullOrEmpty(strtdate)))... | c# asp.net | [0, 9] |
265,494 | 265,495 | define include page in colorbox iframe | <p>i put in top of my include / external page any line for prevent Remote File Inclusion. this checked include file / extrenal load only in my index page . now when i load this (external page) in colorbox lightbox with iframe method this not work and i see blank page. if i remove this line worked ! how to fix this prob... | php jquery | [2, 5] |
4,350,946 | 4,350,947 | fadeout and fadein between two different pages in jquery | <p>Apologies if this may sounds simple, all im trying to do is fadeout the current page and fadein another page. However I'm having difficulties. I know how to do it between divs, the following fades out the leftcolumn div and inputs this in together with the myform on the stage3.php page. My question is how do i fa... | javascript jquery | [3, 5] |
4,323,426 | 4,323,427 | any website monitoring library/modules to use in my website? | <p>I'm trying to build a site which user can add their websites which should be monitored and can view a detailed report and statistics of it. And also it should be able to monitor local webservices (mainly), </p>
<p>1) is there any popular java library to use for monitoring a website? (in sense to ping a website and... | java javascript | [1, 3] |
5,175,031 | 5,175,032 | null pointer exception in GeoPoint on android | <p>in my app i am storing latitude and longitude in a List as GeoPoint as follows:</p>
<p><code>List<GeoPoint>geo;</code></p>
<p>here i convert latitude and longitude into GeoPoint and store in list. </p>
<pre><code>GeoPoint tmp;
new GeoPoint((int) ( 9.909228086471558 * 1E6), (int) ( 78.10081958770752 * 1E6))... | java android | [1, 4] |
1,523,162 | 1,523,163 | Trigger an event on click within body area | <p>I need to trigger the click, on click on my webpage. I tried the below and it triggers the click onload and not on click.</p>
<pre><code>$(function() {
$("body").click(function(e) {
alert("code");
})
$('#container').trigger('click');
});
</code></p... | javascript jquery | [3, 5] |
2,082,418 | 2,082,419 | Why are all the iterations run at the same time? | <p>Here's the <a href="http://jsfiddle.net/JaQmd/">jsfiddle</a> simulating my problem relating to this code:</p>
<pre><code>$('#button').click(function(){
var i;
for (i = 1; i < 4; ++i) {
$('#img' + i).fadeIn("slow").delay(1000);
$('#img' + i).fadeOut("slow");
}
});
</code></pre>
<p>I was expe... | javascript jquery | [3, 5] |
2,976,715 | 2,976,716 | How do you pass a Container.DataItem as a parameter? | <p>I'm using a repeater control and I'm trying to pass a parameter as such:</p>
<pre><code><%# SomeFunction( DataBinder.Eval(Container.DataItem, "Id") ) %>
</code></pre>
<p>It's basically calling:</p>
<pre><code>public string SomeFunction(long id) {
return "Hello";
}
</code></pre>
<p>I'm not abl... | c# asp.net | [0, 9] |
3,657,677 | 3,657,678 | Better way to structure/new keyword | <p>Some time ago I came across the following construct which I have rarely seen since, though I use it relatively frequently. I use it typically when checking on a whole list of conditions are true and it prevents large levels of indentation. Essentially it uses a for loop to provide a kind of structured goto. My qu... | java c++ | [1, 6] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.