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 |
|---|---|---|---|---|---|
1,120,750 | 1,120,751 | Jquery - need help on usage | <p>Is this the right way of using the php script in the jquery function?
The pathToTabImage variable</p>
<pre><code><script type="text/javascript">
$(function(){
$('.slide-out-div').tabSlideOut({
tabHandle: '.handle', //class of the element that will become your tab
... | php jquery | [2, 5] |
1,089,046 | 1,089,047 | When I add jQuery library it invalidates my other jQuery on the same page | <p>I am trying to create a page that has a scroller of images and a voting system (which I copied from here: <a href="http://yensdesign.com/2008/09/how-to-create-a-stunning-and-smooth-popup-using-jquery/" rel="nofollow">http://yensdesign.com/2008/09/how-to-create-a-stunning-and-smooth-popup-using-jquery/</a>).</p>
<p>... | javascript jquery | [3, 5] |
5,985,947 | 5,985,948 | JQuery script conflict | <p>I am using a jQuery Lightbox for a gallery on a page with a jQuery Slideshow and menu bar, whilst the menu bar and Slideshow work ok, the Lightbox does not.</p>
<p>CONFLICT WITH LIGHTBOX
see <a href="http://concertorestaurant.creativeconnect.com.au/functions_gallery.html" rel="nofollow">http://concertorestaurant.cr... | javascript jquery | [3, 5] |
525,627 | 525,628 | System.NullReferenceException: Object reference not set to an instance of an object in C# | <p>I have written following code in my <strong>global.asax</strong> file </p>
<pre><code>void Application_PreRequestHandlerExecute(object sender, EventArgs e)
{
ConnStr = objConnStr.GetConnectionString();
if (HttpContext.Current.Session["LOGIN"] != null )
{
}
}
</code></pr... | c# asp.net | [0, 9] |
892,469 | 892,470 | why this Javascript function doesn't work? | <p>I use the following javascript function,</p>
<pre><code>function get_check_value(formId,checkboxId,TxtboxId)
{
alert(formId);
var c_value = "";
for (var i=0; i < document.formId.checkboxId.length; i++)
{
if (document.formId.checkboxId[i].checked)
{
c_value = c_value + document.formId.checkboxI... | php javascript | [2, 3] |
963,098 | 963,099 | Add separators in DropDownList | <p>i have a scenario where i have to add separators in DropDownList in asp.net. Please, suggest.</p>
| c# asp.net | [0, 9] |
4,577,744 | 4,577,745 | switching selections between two select menus | <p>I'm trying to build some kind of currency converter and I have two select menus with the list of currencies.
I want to create a button that when clicked, it will switch the selection between the "from" select menu and the "to" select menu.
how do I implement it using the select menus I already have?</p>
| javascript jquery | [3, 5] |
5,028,989 | 5,028,990 | How to remove an element slowly with jQuery? | <p><code>$target.remove()</code> can remove the element,but now I want the process to be down with some feel animation,how to do it?</p>
| javascript jquery | [3, 5] |
2,747,163 | 2,747,164 | How to Resize the bitmap image in Android using Touch events? | <p>I have a very simple layout containing only an ImageView and now i wish to bring some touch events for resize (expand / reduce) the image. What is the best way to do this task?
Thanks in Advance</p>
| java android | [1, 4] |
4,906,594 | 4,906,595 | jQuery: Simultaneously fadeIn + fadeOut | <p>I'm designing a small portfolio website for my friend and I am having difficulty trying to get the fadeIn + fadeOut effect to work properly. The images are sliding + fading, however, there is a long delay in between the fades and you can momentarily see the background. The slider I am using is based off of the follo... | javascript jquery | [3, 5] |
3,008,624 | 3,008,625 | How do I use jQuery on an HTML document instead of the DOM? | <p>I'm trying to modify an HTML document, but its not the same as the DOM. However, I found that the syntax that I used with the DOM itself doesn't work with the other document. For example, I could find the title using <code>$("title")</code> with the DOM. However, with the document I have to use <code>doc.find("title... | javascript jquery | [3, 5] |
4,535,292 | 4,535,293 | DHTML newbie question | <p>I have just started learning Javascript and I am absolutely overwhelmed with the number of technologies available especially on the browser side. Earlier I thought that just Javascript should suffice but now it appears that I need to understand JQuery, GWT, YUI and another dozen acronyms I do not even know the expan... | javascript jquery | [3, 5] |
3,706,892 | 3,706,893 | Why isn't jQuery.append working? | <p>I am in the middle of creating a small script to 'help' me with my homework. It uses jQuery. The script (so far) is below:</p>
<pre><code>var s = document.createElement('script');
document.body.appendChild(s);
s.src = "http://code.jquery.com/jquery-latest.js"; // Include jQuery
var tmp_1 = document.embeds[0].GetVa... | javascript jquery | [3, 5] |
739,214 | 739,215 | What does EnableViewState on a HyperLink do or mean? | <p>What does EnableViewState on a HyperLink do or mean?</p>
<pre><code><asp:HyperLink ID="RegisterHyperLink" runat="server" EnableViewState="false">Register</asp:HyperLink>
</code></pre>
<p>What does it mean? and what will it do if I set it to true. Thanks! I looked it up, but the definition was not in s... | c# asp.net | [0, 9] |
3,165,879 | 3,165,880 | Which is better way to introduce variables in Java/Android? | <p>Does the first example produce more efficient code
than the second in Java/Android and in generally in Java?</p>
<p>At least the first example can not be slower than second,
I think..</p>
<p>I do not care here that the variable v may live longer time in first
example, perhaps eating memory for a longer time.</p>
... | java android | [1, 4] |
5,234,266 | 5,234,267 | How to stop control creation inside a repeater based on a condtition? | <p>Here is the control i want to be created only if the condition is true. How do I do that using say the "Visible" attribute or something easy like that?</p>
<pre><code> <p><%# (GetAnswer(Eval("AnsQID"))) != 1 ? (Eval("AText")) : ""%></p>
</code></pre>
| c# asp.net | [0, 9] |
5,045,919 | 5,045,920 | Android 4: Give buttons another style/appearance | <p>I'd like to change the appearance of the default Android 4 buttons. They look like that: </p>
<p><img src="http://i.stack.imgur.com/hvE37.png" alt="enter image description here"></p>
<p>I'd like them to be completely black, a white border, no rounded corners, that's all. The blue hover effect is great, no change t... | java android | [1, 4] |
3,200,236 | 3,200,237 | How can I tell wheter a file is opened by an other application? | <p>Is there a way to tell whether a file is opened by another application in PHP of Java?</p>
| java php | [1, 2] |
6,012,378 | 6,012,379 | jquery (null is null or not an object) error on IE8 | <p>When I load jquery using: </p>
<pre><code><script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
</code></pre>
<p>it works on IE9, firefox, chrome, safari but not IE8. I tried the developer/debugger tools but still don't understand why this is an ... | javascript jquery | [3, 5] |
3,164,921 | 3,164,922 | ASP.NET Response.End Problem | <p>i got a page users downloading files from there.And when a user click download link and finish downloading file , i am insertin' a new record for my File Download Counter event. (FileID,Date,blalbla..) </p>
<p>But there is problem with my script ... after download starts and finish, its adding a new record but afte... | c# asp.net | [0, 9] |
249,718 | 249,719 | Jquery mouse-over fade-in/out (best practices) | <p>I've got working Jquery code to fade in/out descriptive text in a div below the question. The problem? The solution is not very elegant. Here's what I've got:</p>
<pre><code>$("#home").mouseover(function() {
$("#homeText").fadeIn("slow");
});
$("#homeText").mouseout(function() {
$("#homeText").fadeOut();
})... | javascript jquery | [3, 5] |
5,734,517 | 5,734,518 | updating config file | <p>I am trying to update the app.config file of another application from my project both are in c#. I know how to update it for the project in memory but not sure how to access the app.config file of my other project. I have following code but that will change the app.config file of my current project not the other one... | c# asp.net | [0, 9] |
3,888,298 | 3,888,299 | Add list in Javascript | <p>I want to add another list while I click on anchor or button in Javascript, which should contain multiple textboxes, an option-list and a delete button on the second and onward lists. Look at:</p>
<p><a href="http://jsfiddle.net/KMLkn/3/" rel="nofollow">http://jsfiddle.net/KMLkn/3/</a></p>
<p>Can we use clone(jque... | javascript jquery | [3, 5] |
5,519,488 | 5,519,489 | Application stopped working unexpectedly. Please try again | <p>I am trying to display the name and number of a contact from android phone book, i have one contact stored in my AVD. can anyone tell me whats wrong with this code please...it is showing application stopped working Please try again...thanks in advance...</p>
<pre><code>public class get extends Activity {
pr... | java android | [1, 4] |
1,391,874 | 1,391,875 | Converting string array to Name/Value object in javascript | <p>I currently am dealing with a Web Service that is returning an array of strings to the client. From here I would like to take this array of strings and convert it into an object that gives each string a name so to reference it later.</p>
<p>So start with this:</p>
<pre><code>var result = ["test", "hello", "goodby... | javascript jquery | [3, 5] |
112,383 | 112,384 | c# webbrowser click radio button in a form | <p>I am using webbrowser element in my code to automate some stuff. I am loading a form in this webbrowser, which contains several radiobutton in. My purpose is just to select one of the radi buttons. However, in the html code, there is a JS code which changes the form action target depending on the selected radio butt... | c# javascript jquery | [0, 3, 5] |
2,833,434 | 2,833,435 | how to send variable form javascript to php? | <p>how can i send variable from java script function and use it for a function of PHP?</p>
<pre><code>enter code here
<script>
function showpopup(var1){
document.getElementById('popup').style.display='block';
document.getElementById('mane').value=var1;
}
</script>
</code></pre>
| php javascript | [2, 3] |
2,061,002 | 2,061,003 | Convert java to c# .net | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/896867/tool-to-convert-java-to-c-code">Tool to convert java to c# code</a> </p>
</blockquote>
<p>I have done a project in java and I want to convert it to C#.Net. I'm using Visual Studio 2008. How can I convert th... | c# java | [0, 1] |
3,456,654 | 3,456,655 | out.write with android EditText | <p>I have many out.write lines of code (515 in total) that build an excel.xml file. I now need to be able to build a out.write line of code to include values from a string. Here is an out.write code line</p>
<pre><code>out.write (" <Cell ss:StyleID=\"s44\"><Data ss:Type=\"Number\">25</Data><N... | java android | [1, 4] |
143,069 | 143,070 | findviewbyid returns null in a dialog | <p>I have a custom dialog and when I try to get the value of an EditText it returns null.</p>
<p>This line returns null</p>
<pre><code>EditText et = (EditText)findViewById(R.id.username_edit);
</code></pre>
<p>Here is the code in its entirety.</p>
<pre><code>protected Dialog onCreateDialog(int id) {
switch (id)... | java android | [1, 4] |
2,325,420 | 2,325,421 | Jquery comparing elements | <p>I have an array on javascript and i insert the elements on it like this:</p>
<pre><code> var parentRow = $(button).parent().parent();
list.push({ parent: parentRow, detailRow: newRow });
</code></pre>
<p>On the click of another button i do the following:</p>
<pre><code> var parentRow = $(button).parent().pa... | javascript jquery | [3, 5] |
4,504,722 | 4,504,723 | How can I remove a browser's cache server-side, using ASP.NET? | <p>How can I remove a browser's cache server-side, using ASP.NET (C#)?</p>
<p>A coupon shows by itself (I believe it comes from cache as I did also browse for other apparel sites). It breaks my JavaScript as well as my server-side code, as I am using an UpdatePanel for Ajax, and it duplicates the UpdatePanel's ID. I h... | c# asp.net | [0, 9] |
3,294,179 | 3,294,180 | rawurldecode and regexp for splitting words with and without quotes in javascript? | <p>so here is the case:</p>
<p>i have a string in php (containts 2 words):</p>
<pre><code>windows "mac os"
</code></pre>
<p>i encode it with rawurlencode and put it in the URL after ?name= in an anchor.
when i click it i see the following in the browsers url.</p>
<p>index.php?name=windows%20%5C%22mac%20os%5C%22</p>... | php javascript jquery | [2, 3, 5] |
5,789,996 | 5,789,997 | How to prevent script loading in different domain | <p>I have <code><script src="bla"></script></code> that can be loaded in several domains.
I want to know if there is a way to control the domains it will be loaded on.
To clarify: My script is server-side rendered, so basically I can return empty string if the requested domain is invalid.</p>
<p>This is t... | c# javascript asp.net | [0, 3, 9] |
4,056,327 | 4,056,328 | Appending to Second Last element | <p>This is the final output
<img src="http://img2.pict.com/cc/dc/64/3257730/0/20100330041140.png" alt="Output"></p>
<p>My HTML</p>
<pre><code><li id='$id'>TEXT
<ul class='indent'>
<li id='$id'>TEXT</li>
<li id='$id'>TEXT</li>
<li class='formContainer'... | javascript jquery | [3, 5] |
3,149,607 | 3,149,608 | What does jQuery ajax() return? | <p>Is this in the API documentation:</p>
<pre><code>jQuery.ajax( url [, settings] )
</code></pre>
<p>when you run</p>
<pre><code>done();
</code></pre>
<p>on it</p>
<p>What is done acting upon?</p>
<p>I'm looking for documentation on done().</p>
<p>It is working on this object ( slang )</p>
<pre><code>xhr
</code... | javascript jquery | [3, 5] |
878,091 | 878,092 | Moving a blinking image from left to right jquery | <p>I am working on a project where I am assigned a task to make a blink image moving on the web page from the left to the right.
The image should move(step up) and blink each second.
I know how to make it blink, my code is below:</p>
<pre><code>function blink(time, interval){
var timer = window.setInterval(functio... | javascript jquery | [3, 5] |
752,942 | 752,943 | How to get values from dynamically added (using javascript) elements? | <p>On my aspx page I dynamically create html controls on client side using javascript. For example, after page load you can click button in a browser, by clicking button html <em>input</em> and <em>select</em> elements appear. You may click once again, and this elements (<em>input</em> and <em>select</em>) will added a... | javascript asp.net | [3, 9] |
3,629,642 | 3,629,643 | how to close activity after x minutes? | <p>I am looking for simplest way to close opened activity after x minutes. Does android provide countdown class or do I have to made one by my self ?</p>
<p>I've tried this code but its not working</p>
<pre><code>Thread isOnDisplayThread = new Thread(new Runnable() {
@Override
public void run(... | java android | [1, 4] |
290,022 | 290,023 | Web Application Authentication | <p>I have two questions concerning authentication of a intranet website and how to go about doing it.</p>
<ol>
<li>I want the first page the user comes to, to be the login page. I could have sworn there was a tag, something like [Authorize] that you put in your C# code that did this for you but I can't find it anymor... | c# asp.net | [0, 9] |
905,737 | 905,738 | How to tweak the content in the drop down list in asp.net | <p>I have a drop down column and the drop down contain a value "accidents" .Now I want to make the value to read as upper case "Accidents" and there are many as such in the grid .One way is to update the current value to uppercase but as these values are being used in the application where they want the wording to b... | c# asp.net | [0, 9] |
1,692,908 | 1,692,909 | jquery cycle IE7 transparent png problem | <p>I'm having trouble getting jquery cycle to work when I have transparent png files in IE7</p>
<p>It's fine in Firefox and Chrome but in IE (version 7) I get a black colour where
the png transparency is during the fade.</p>
<p>Can this be made to work right?</p>
| asp.net jquery | [9, 5] |
1,004,572 | 1,004,573 | Controlling the animation | <p>I am creating a whack-a-mole style game where a sum is given and numbers animate from the bottom of the container to the top. The aim of the game is to click the correct answer to the sum and collect as many correct answers as possible.</p>
<p>I have also added a couple of extra icons to make the game more fun. One... | javascript jquery | [3, 5] |
2,357,337 | 2,357,338 | Best practice to save data for anonymous users? | <p>I'm building a web app and i'd like to allow anonymous users to use it and to save some data without signing up.</p>
<p>let's assume the user save a list of favorites image urls without singing up.</p>
<p>now i'm using this way: I save those favs in db and then i save the user's ip address
so every time the user g... | php javascript | [2, 3] |
4,584,130 | 4,584,131 | How can i hide a span using javascript? | <p>How can i hide a span content using JavaScript.</p>
<pre><code><span class="price">My content goes here</span>
</code></pre>
| javascript jquery | [3, 5] |
198,290 | 198,291 | Need advises how to make authentication in asp.net | <p>Im developing asp.net c# web site where i want to make user authentication. without any roles or something. </p>
<p>i have database with user table where i store all user data, this table have relationship with many other tables.</p>
<p>I like asp.net from authentication controls, but problem is that it have her c... | c# asp.net | [0, 9] |
1,502,528 | 1,502,529 | Would it be possible to intercept all redirects and open the contents in a new window/pop up? | <p>So I have a page that contains an iframe. Inside the iframe, there are links that opens up new page in the same window (self.location.href) (window.open(urlstring,'false') etc...etc...</p>
<p>Is there a way that I could force all links inside this window to open up their contents in a new window/pop up? Overrides t... | javascript jquery | [3, 5] |
3,503,673 | 3,503,674 | php jquery count down timer script | <p>i have one count down timer using <a href="http://keith-wood.name/countdown.html" rel="nofollow">http://keith-wood.name/countdown.html</a></p>
<pre><code>var austDay = new Date();
austDay = new Date(austDay.getFullYear() + 1, 1 - 1, 26);
$('#defaultCountdown').countdown({until: austDay,format: 'HMS'});
</code></... | php jquery | [2, 5] |
4,751,741 | 4,751,742 | A sticky situation for jQuery slideshow | <p>I'm required to develop a slideshow (not an existing one) with jQuery. I was able to change picture with a function that I created named changePic (takes an image link). It incorporates the fading animation from the jQuery library. </p>
<p>For the slideshow I'm trying to use a while loop. It kind of works, except t... | javascript jquery | [3, 5] |
5,756,908 | 5,756,909 | javascript to jquery | <p>This function call ResizeableTextbox('myRT'); works well inside javascript(produces a resizeable text box) but doesn't work inside jQuery code.Why?</p>
<p>This produces the resizeable textbox.</p>
<p><code><script type="text/javascript"></code><br />
ResizeableTextbox('myRT');<br />
<code></script></... | javascript jquery | [3, 5] |
1,820,158 | 1,820,159 | How to change and track changes to a textarea | <p>I found it really hard to come up with a question title for this one so I apologise that it's fairly cryptic but I'll try explain better there.</p>
<p>Basically part of an app I'm developing involves placing 'placeholders' in a textarea and then modifying those placeholders outside of the textarea. </p>
<p>For exa... | javascript jquery | [3, 5] |
666,829 | 666,830 | Is there a good alternative to having JavaScript code as string literals in my ASP.net code? | <p>Working on an ASP.net web application, I've been wondering if there is a good way to avoid writing JavaScript code in string literals in my ASP.net code. See here: <a href="http://www.4guysfromrolla.com/articles/030202-1.aspx" rel="nofollow">http://www.4guysfromrolla.com/articles/030202-1.aspx</a>. </p>
<p>In the ... | javascript asp.net | [3, 9] |
2,312,816 | 2,312,817 | What is wrong with selecting with my drop down element | <pre><code><html>
<head>
<script type='text/javascript' language='javascript' src="http://localhost/javascript/jquery-1.4.2.js">
</script>
<script type='text/javascript' language='javascript'>
$(document).ready(function(){
$("#button").mouse... | javascript jquery | [3, 5] |
25,772 | 25,773 | Check permission on every page | <p>in my web site i need to check permission on every page,
i found my self repeating the same code every page.</p>
<p>this is one of my pages</p>
<pre><code>public partial class KitView : AmsBasePage
{
protected void Page_Load(object sender, EventArgs e)
{
IddUser user = new IddUser();
user =... | c# asp.net | [0, 9] |
2,075,506 | 2,075,507 | Why do I need to set the Visibility of LinkButton in a ListView Layout in the LayoutCreated event instead of directly on the LinkButton? | <p>I have a ListView control and in the LayoutTemplate I have a LinkButton. I tried setting the Visible property to <%# IsUserAdmin %>, where IsUserAdmin is a method which returns true or false depending on whether the user is an admin or not and sets the visibility of the control, but I found out that this does no... | c# asp.net | [0, 9] |
4,295,855 | 4,295,856 | Jquery add tr to last but one row in a table | <p>Sample Code </p>
<pre><code>`<table>
<tr>
<td> first column </td>
</tr>
<tr id ="addRow">
<td><input type="button" id="add_button" name="add" value="Add" /></td>
</tr>
</table>
`
</code></pre>
<p>Now when i click this Add ... | javascript jquery | [3, 5] |
3,302,681 | 3,302,682 | Edit attribute value in an HTML string | <p>So, I've got a string. The string contains html. I'm checking the string for 'name', if it doesn't have one I'm using sneaking one in there if it does I need to change what it is.</p>
<pre><code>var myString = '<input id="accountUser_c967817c993e62b1de50e4f0401a03ae" type="hidden" value="c967817c993e62b1de50e4f0... | javascript jquery | [3, 5] |
422,135 | 422,136 | Add javascript pixel values? | <p>Is there a way in javascript/jQuery to take two variables with values "60px" and "40px" and add them together to get "100px"?</p>
<p>Or in a more general sense, I'm trying to calculate positions of objects relative to other objects and it would be really convenient if I could do something like this:</p>
<pre><code... | javascript jquery | [3, 5] |
1,786,989 | 1,786,990 | Deleting files from a folder - android | <p>I have a folder which contains some files that I want to deleted after processing them. The files have the extension <code>.FIR</code> After some googling I found a recursive method that I modified a bit:</p>
<pre><code>void delete(File f) throws IOException {
if (f.isDirectory()) {
for (File c : f.li... | java android | [1, 4] |
4,170,333 | 4,170,334 | How can I use my coding skills for good? | <p>By this autumn my two small websites should be generating around a total of $1200 a month with minimal/zero input which is enough to for me to live on comfortably enough. </p>
<p>Rather than embark on another business venture, I would love to spend the next few years doing something genuinely good or that helps oth... | c# java php javascript jquery | [0, 1, 2, 3, 5] |
5,009,775 | 5,009,776 | Alternative of VMRuntime.getRuntime().setMinimumHeapSize in Gingerbread | <p>I know there's a VMRuntime.getRuntime().setMinimumHeapSize in Android 2.1/2.2 for developer to adjust the starting heap size of the application, and it is one of the most effective solution sfor solving the OutOfMemory error during BitmapFactory.decodeStream()</p>
<p>However, since Android 2.3, this VMRuntime class... | java android | [1, 4] |
1,005,690 | 1,005,691 | how to display image created dynamically in asp.net 3.5 c# on localhost | <p>I have to display image dynamically. I have written code for that, i got the name of the image & path also from database i.e Filename & filepath which i stored earlier, but I didnt get image(not displaying image even i stored path of that image). Please give me idea about how to set imageurl of image here on... | c# asp.net | [0, 9] |
4,992,182 | 4,992,183 | Facebook Style "Like" button without postback | <p>How would one go about creating a facebook-style "Like" button in C# ASP.NET without doing a postback? Are there any code examples or tutorials that you know of? I assume that would have to use asynchronous javascript. (this is a tough one to search for due to the Facebook keyword!)</p>
<p>This would have to work w... | c# asp.net | [0, 9] |
631,154 | 631,155 | jquery related question | <p>i am modifying the inner html through javascript, and the inner html involves a button
but when i put in the jquery code to run on the button click event it fails to do so ..
sorry but im a newb when it comes to javascript</p>
<p>content im adding into the html .. </p>
<pre><code>function add()
{
var val=docum... | javascript jquery | [3, 5] |
4,939,350 | 4,939,351 | How do I serialize an javascript array into html attribute and fetch it back with jquery? | <pre><code>var arr=[...];
var html = '<input attr="' + serialize(arr) + '">';
</code></pre>
<p>I can't simply <code>join(' ')</code> the <code>arr</code> as there may be white space or other special characters.</p>
<p>How do I do it properly?</p>
| javascript jquery | [3, 5] |
2,865,391 | 2,865,392 | jQuery adding a number to text | <p>I am trying to do something I though would be really simple. add the value of 1 to a number.</p>
<p>However the number was plain text and things are getting a little confusing. As you may be able to guess, I am fairly new to this.</p>
<p>My goal is to add 1 point to an existing score, the score has one decimal pla... | javascript jquery | [3, 5] |
4,745,301 | 4,745,302 | JS/jQuery: How to highlight or select a text in a textarea? | <p>I don't want to highlight text (by changing background color to yellow - NO), I just want to select a portion of the text inside textarea, exactly as if the user clicked and hold the click then moved the mouse to highlight only a portion of the text</p>
<p>How to do that? is it possible?</p>
| javascript jquery | [3, 5] |
3,571,568 | 3,571,569 | How to get the eq() of $(this)? | <p>Here's my code:</p>
<pre><code>$('div.menu > ul > li > a').click(function(e) {
alert($(this).eq());
e.preventDefault();
});
<div class="menu">
<ul>
<li><a href="">Animals</a></li>
<li><a href="">Cars</a></li>
... | javascript jquery | [3, 5] |
1,068,630 | 1,068,631 | Prevent "bubbling"? | <p>I am not sure this is really bubbling, I will explain.</p>
<p>I have this:</p>
<pre><code><div>
<div>
text here
</div>
</div>
</code></pre>
<p>How to bind an on click event so that it will affect only the enclosed div? If I set it like this:</p>
<pre><code>jQuery('div').bind('clic... | javascript jquery | [3, 5] |
4,724,062 | 4,724,063 | How to Copy a Folder(Not File by File) from server to Android Device | <p>I want to copy a folder from server which contains many files but without traveling through files in that folder.
I have URL of that folder and i want to copy that folder from web service.
Is is possible? if yes then please explain? </p>
| java android | [1, 4] |
2,695,664 | 2,695,665 | Python List not getting in rendered in javascript | <p>I have a javascript which takes two variables i.e two lists one is a list of numbers and the other list of strings from django/python</p>
<pre><code>numbersvar = [0,1,2,3]
stringsvar = ['a','b','c']
</code></pre>
<p>The numbersvar is rendered perfectly but when I do {{stringsvar}} it does not render it.</p>
| javascript python | [3, 7] |
324,064 | 324,065 | export SQLite database from android phone to my system as mdb or accdb database format | <p>I want to export SQLite database file created by simple android code. I want to use that database in microsoft access (.mdb or .accdb). Is it possible? If it is possible means, Tell me the steps</p>
<p><b>Note</b>:Here, I didn't put any code.. I just want know what are steps to exporting the sqlite database file to... | java android | [1, 4] |
2,014,858 | 2,014,859 | Jquery dragging tab | <p>the below is a nice dragging tab, which I would like to implement in my project. Is there any jquery plugin for this.</p>
<p><a href="http://www.blitzagency.com/our-people/#meet-the-blitizens" rel="nofollow">http://www.blitzagency.com/our-people/#meet-the-blitizens</a> </p>
| javascript jquery | [3, 5] |
1,632,855 | 1,632,856 | Trying to pass in a callback function fails | <p>I am trying to create some functionality when a user clicks on an element on the webpage. The callback function executes as soon as the page is executed. It is only supposed to execute when the user clicks on an element.
Here is the code:</p>
<pre><code><!DOCTYPE html>
<html>
<head>
<titl... | javascript jquery | [3, 5] |
1,409,592 | 1,409,593 | detect back button click in browser | <p>I have to detect if a user has clicked back button or not.
For this I am using </p>
<pre><code>window.onbeforeunload = function (e) {
}
</code></pre>
<p>It works if a user clicks back button. But this event is also fired if a user click F5
or reload button of browser. How do I fix this?</p>
| javascript jquery | [3, 5] |
4,881,351 | 4,881,352 | An application is working on one server but doesn't work on another? | <p>I have a new web application. I've setup the application and it's working on one server(xxx) but it's not working on another(yyy). I changed the web.config file(checked throughly and I've changed the connection string and appsettings). </p>
<p>What could be the error?</p>
<p>The login page is working but when I pr... | javascript asp.net | [3, 9] |
486,208 | 486,209 | Advice for logging in an asp.net application | <p>My current project structure is made to do logging of exceptions and such into the database instead of log files.</p>
<p>In order to log down details, it goes through web services of another project (logToDBService).
So I'm wondering that if by chance the web service fails, I will not be able to log down new messag... | c# asp.net | [0, 9] |
1,318,698 | 1,318,699 | IE8 not working with jQuery .show() and working on all other browsers including ie9 | <p>I have the following HTML:</p>
<pre><code><a class="select_class" style="font-size: 15px;"></a>
<div class="dropDown" style="display: none;" >
<!--somecode-->
</div>
</code></pre>
<p>And Javascript:</p>
<pre><code>$('.select_class').click(function(){
var isVisible = $('.dr... | javascript jquery | [3, 5] |
3,238,645 | 3,238,646 | What is the difference between $('#div') and _$('div')? | <p>What is the difference between <code>$</code> and <code>_$</code> in jQuery, and where we should use <code>$</code> and <code>_$</code></p>
<pre><code>_$('Set_txtDateinputBox_From')
$("#Set_drpdnAvailability")
</code></pre>
| javascript jquery | [3, 5] |
25,134 | 25,135 | Enter keyword in search box of any website using php script | <p>I am a beginner and i was wondering can we write a code in PHP by which we can enter keyword in search box of any website and submit.</p>
<p>so there will be 2 inputs to this php function:</p>
<pre><code>function enter_keyword($website_url, $keyword)
{
}
function enter_keyword($website_url, $keyword) { }
</code>... | php javascript | [2, 3] |
5,796,327 | 5,796,328 | Chrome problems | <p>I have a few annoying problems.
The thing is, that when I am looking with Firefox every thing work perfect, after I try it with Chrome, sometimes happens that the code appears one web page (it is not all the time).</p>
<p>So, it appears in input text it display " />" or some piece of code of java script, which is w... | php javascript jquery | [2, 3, 5] |
4,761,680 | 4,761,681 | Android color picker - updating color array | <p>I'm trying to create a color picker for Android that looks like a minimalistic version of Gimp's. So, it has a hue slider and a rectangle with saturation/value variants of a color chosen in hue slider.</p>
<p>Question: what is the best way to create the rectangle?</p>
<p>Right now, I'm creating an 200x200 array of... | java android | [1, 4] |
326,215 | 326,216 | simple jquery on asp.net does not work on firefox | <p>I have been struggling with getting this work on Firefox. Hope there is somebody help me!</p>
<p>Basically; Firefox ignores the button click function and it's sub functions and the button posts the page instead of running the jquery code.</p>
<p>It works on IE and Chrome but not on Firefox.</p>
<p>Thank you for y... | javascript jquery | [3, 5] |
4,565,390 | 4,565,391 | How to get portion of the attribute value using jquery | <p>I have attribute value as:</p>
<pre><code><div id = "2fComponents-2fPromotion-2f" class = "promotion">
</code></pre>
<p>Now I want to get only portion of it, say <code>Promotion</code> and its value <code>2f</code>, how can I get this using jquery ? Do we have built in function for it ?</p>
| javascript jquery | [3, 5] |
5,452,462 | 5,452,463 | Calculating Jday(Julian Day) in javascript | <p>I have requirement to calculate <code>jday</code> in javascript , for doing client side validation , Can any one help me how to calculate <code>JDAY</code> in javascript or script to change given JDAY to actual date or vice versa . </p>
<p>To know what is JDay ,I found the following site , </p>
<p><a href="http://... | c# java javascript jquery | [0, 1, 3, 5] |
4,003,894 | 4,003,895 | How to calculate time in asp.net? | <p>My webapplication is online exam site. when user click on start for writing test, i have to restrict the user particular time only, after time is completed message should display to the user that your exam time is finished and he redirect to home page, how can i write the code, can i go for timer control or webserv... | c# asp.net | [0, 9] |
356,546 | 356,547 | Why this code does not work on Chrome? | <p>i just installed mobiscroll. I use date scroller. I use this below code to manage the textbox.</p>
<pre><code><script type="text/javascript">
$(function() {
// create a datepicker with default settings
$("#beginDate")
.mobiscroll()
.date({
invalid: {... | javascript jquery | [3, 5] |
1,783,900 | 1,783,901 | Android avoid OnResume | <p>I have 3 Acivity based application, It's work flow like this <code>MainActivity</code> <code>ListView</code> and <code>DetailView</code>. when onResume event trigger , need to call MainActivity. without going to other two activity.</p>
<p>Is there any way to call <code>MainActivity</code> when onResume event trigge... | java android | [1, 4] |
5,278,397 | 5,278,398 | How to send emails from an address without logging into the server | <p>I'm building an asp.net application for a client that requires a confirmation email to be sent. I've gotten the code working but the only problem is that I can't get the code to work with their web host (godaddy). Is there a way to send emails with the from address marked as the clients' without having to use godadd... | c# asp.net | [0, 9] |
5,986,219 | 5,986,220 | JavaScript and ASP.NET - Cookies with Key / Value Pairs | <p>This question mixes client-side scripting with server-side parsing.</p>
<p>In some cases, I'm writing a cookie to the user's browser using the <code>document.cookie</code> property. In other cases, I'm writing the same cookie to the user's browser through the ASP.NET <code>Response</code> object. </p>
<p>When I'm ... | asp.net javascript | [9, 3] |
4,026,560 | 4,026,561 | Using jQuery, how can I limit my number of ad units based on page height? | <p>My app is built using a 2-column design, with the right 300-pixel column being used to show <strong>one</strong> Adsense ad unit.</p>
<p>Since some pages are taller, I am wondering if there's a way to have jQuery determine the height of my <code>#main_wrapper</code> and show <strong>an additional ad unit</strong> i... | javascript jquery | [3, 5] |
3,885,703 | 3,885,704 | how to avoid session timeout in web.config | <p>What should I write in web config file in asp.net so that my session time is extended. and please tell me the exact location where should I place the code in web config</p>
| c# asp.net | [0, 9] |
5,995,978 | 5,995,979 | Get Date after adding month and leave above days | <pre><code>$start_date = "2012-01-05";
$end_date = "2012-02-10";
</code></pre>
<p>How to get month and after getting month date should like in above example</p>
<p><code>$end_date</code> should "2012-02-05"; leave above 5 days. don't count a above day.</p>
<p>How can i do this in php?</p>
<p>I wan't to like</p>
... | php javascript | [2, 3] |
1,481,887 | 1,481,888 | Solved: Java: Cannot instantiate the type Foo | <p>I'm trying to create my own version of <code>HashMap</code> with some utility methods. </p>
<p><strong>Foo.java</strong>:</p>
<pre><code>import java.util.HashMap;
public class Foo<String, Parameter> extends HashMap<String, Parameter> {
public Foo() {
super();
}
public Parameter Ad... | java android | [1, 4] |
1,529,465 | 1,529,466 | How to declare function in MasterPage.Master instead of code-behind? | <p>In my MasterPage.Master I have this code:</p>
<pre><code><% if (Convert.ToBoolean(Session["FullVersion"])) { %>
<asp:LinkButton ID="LinkButton1" Text="Gå til mobilversjon" OnClick="GoToMobileVersion" runat="server" />
<% } %>
</code></pre>
<p>Instead of declaring this function in MasterPa... | c# asp.net | [0, 9] |
3,101,281 | 3,101,282 | Jquery how to call click on a link? | <p>I have a link with the id: </p>
<pre><code>nyhedsklik
</code></pre>
<p>I this function that gets triggered when clicking on the link:</p>
<pre><code> $('a.poplight[href^=#]').click(function() {
var popID = $(this).attr('rel'); //Get Popup Name
var popURL = $(this).attr('href'); //Get Popup href... | javascript jquery | [3, 5] |
3,321,874 | 3,321,875 | Creating an object array in jQuery | <p>I want to store an array of latitudes/longitudes. I have these inputs on my page:</p>
<pre><code><input type="hidden" class="latitude" value="-12.3456" />
<input type="hidden" class="longitude" value="12.3456" />
<input type="hidden" class="latitude" value="98.7654" />
<input type="hidden" clas... | javascript jquery | [3, 5] |
1,539,828 | 1,539,829 | Jquery Datepicker not working in ASP.NET | <p>I have looked all over to solve this issue and all suggestions I have received have not worked. This is what I'm importing:</p>
<pre><code><link href="css/jquery-ui-1.8.12.custom.css" rel="stylesheet" type="text/css" />
<script src="js/jquery-1.5.1.js" type="text/javascript"></script>
<script s... | jquery asp.net | [5, 9] |
411,564 | 411,565 | Can't set tag/attribute value using c# codebehind on aspx page | <p>I have a custom .ascx control and would like to set one of it's properties using code. In the .aspx I have this:</p>
<pre><code><uc1:CustomContent ID="bunchOfContent" runat="server" contentPayload='<%# getRegionID() %>' />
</code></pre>
<p>In the codebehind I have:</p>
<pre><code> public partial c... | c# asp.net | [0, 9] |
3,741,922 | 3,741,923 | Hold execution of script | <p>just wanted to know if it is programatically possible to halt the execution of script the same way javascript function "confirm" does. "confirm" stops further execution of script until user input, i want to acheieve same thing for BlockUI plugin of Jquery. </p>
| javascript jquery | [3, 5] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.