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,858,766 | 3,858,767 | Strange Behavior for Delay? | <p>In the code below the page will fade in, and then it will fade in the list items on the left, and then its suppose to fade in each thumbnail on the right. But because of me using .delay() it ends up skipping the loading of some or all of the thumbnails. Is there something else other than .delay() I can use to halt... | javascript jquery | [3, 5] |
2,485,014 | 2,485,015 | Something with callback | <p>Already for 15 minutes I can not understand</p>
<pre><code>if(send == true){
$.getScript('index.php?get_names_from_ajax=true', function(data){
$('#firstnames').remove();
$('#lastnames').remove();
$('#content').prepand('<div class="block" id="firstnames">'+firstnames+'</div>');
$('#firstnames').after('&l... | javascript jquery | [3, 5] |
2,545,447 | 2,545,448 | What's the purpose of jQuery.fn | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/4083351/what-does-jquery-fn-mean">What does jQuery.fn mean?</a> </p>
</blockquote>
<p>Part of the jQuery source code states:</p>
<pre><code>jQuery.fn = jQuery.prototype = {
</code></pre>
<p>Given this, wouldn'... | javascript jquery | [3, 5] |
1,493,213 | 1,493,214 | How to remove .aspx from url | <p>How can i remove .aspx from my urls as I used UrlRewritingNet and its giving me page not found error when i host the site to the server but its alright in the IDE browser. </p>
| c# asp.net | [0, 9] |
3,576,292 | 3,576,293 | Printing into a particular printer on c# | <p>I have a web application in ASP.NET and c#. Is it possible to print in a particular printer attached to server for all print button click..??
Ie, If one clicks print button on client machine, the print is taken on the printer attached with the server....</p>
<p>If anybody knows this pls help me..... thanks in adva... | c# asp.net | [0, 9] |
5,234,804 | 5,234,805 | Can someone explain to me the role of the Application class in android? | <p>I'm studying Java and Android development by myself from PDFs. I'm trying to figure out what the <code>Application</code> class is for, and when should it be used? </p>
<p>I couldn't understand it from reading through either the PDFs or the android developers website.</p>
<p>Anyone care to explain it to me?</p>
| java android | [1, 4] |
153,525 | 153,526 | send a variable to another function? | <p>Is there any way to send a variable to another function? like for this example:</p>
<pre><code>function test2(){
$('body').append(lol);
}
function test1(){
var lol = "test";
test2();
}
</code></pre>
<p>Thank you for your input :)</p>
| javascript jquery | [3, 5] |
5,375,640 | 5,375,641 | Using jQuery, how do I get the text value of an element? | <p>how do I retrieve the text between the href tag?</p>
<pre><code><a href="blah">GET THIS TEXT</a>
</code></pre>
<p>It is wrapped in this DOM:</p>
<pre><code><div class="c1">
<div class="c2"><a href="#">GET THIS TEXT</a>
</div>
</div>
</code></pre>
| javascript jquery | [3, 5] |
4,314,522 | 4,314,523 | Is it good to write javascript functions inside functions and not use 'new' on the main function? | <p>I now know this works:</p>
<pre><code>function outerfunction(arg1, arg2, arg3) {
var others;
//Some code
innerFunction();
function innerFunction() {
//do some stuff
//I have access to the args and vars of the outerFunction also I can limit the scope of vars in the innerFunction..!
... | javascript jquery | [3, 5] |
5,034,734 | 5,034,735 | Issues exporting datagridview to excel | <p>I'm trying to do an export of a datagrid to excel. For some reason, known working methods aren't working. The export is done from a user control. My page (default.aspx) uses a master page and the page has a user control that actually has the datagrid I'm trying to export. </p>
<p>Here's my code on the ascx:</p>
... | c# asp.net | [0, 9] |
443,893 | 443,894 | Suspend Default Event in jQuery | <p>I am trying to delay the default event or events in a jQuery script. The context is that I want to display a message to users when they perform certain actions (click primarily) for a few seconds before the default action fires.</p>
<p>Pseudo-code:
- User clicks link/button/element
- User gets a popup message stati... | javascript jquery | [3, 5] |
2,392,523 | 2,392,524 | Best way to display dynamic list of objects in asp.net | <p>I'm building an asp.net page that is designed to display links for a user that views the page.</p>
<p>The links are to reports, which have security on them, and that will be delegated as part of this site.</p>
<p>An SQL table will hold a record for each report that exists, with its corresponding security requireme... | c# asp.net | [0, 9] |
3,398,782 | 3,398,783 | how can i get one value to another on user click? | <p>i have two text box
when i press a button text of textbox one can automatically display on textbox2.
i used V S 2010
I need this code in c#</p>
| c# asp.net | [0, 9] |
5,736,054 | 5,736,055 | jQuery - Best way to populate a hidden field with list data? | <p>I have two unordered lists populated with users. The idea is to drag users from one list to add them to a group in the other list. Each user also has a dropdown to select a role in the group.</p>
<p>I'd like to add to/remove from a hidden field with the values of the "added" users and their role. I'm not really sur... | javascript jquery | [3, 5] |
3,914,409 | 3,914,410 | how to check the valid Youtube url using jquery | <p>In Jquery i want to check the specific url from youtube alone and show success status and others i want to skip by stating it as not valid url</p>
<pre><code>var _videoUrl = "youtube.com/watch?v=FhnMNwiGg5M";
if (_videoUrl.contains("youtube.com"))
{
alert('Valid');
}
else
{
alert('Not Valid');
}
</code></pr... | javascript jquery | [3, 5] |
4,681,125 | 4,681,126 | What's more important: To write programs fast or to write fast programs? | <p>What's more important: To write programs fast or to write fast programs? According to: <a href="http://math.stackexchange.com/questions/17478/how-quickly-with-better-tool">http://math.stackexchange.com/questions/17478/how-quickly-with-better-tool</a> it is better to write fast programs, but I wanted to ask this Q he... | java c# c++ | [1, 0, 6] |
1,264,979 | 1,264,980 | Use jQuery to fade image out | <p>I am using the following script to fade an image out after 5 seconds: </p>
<pre><code>var $j = jQuery.noConflict();
$j(document).ready(function() {
var fade_out = function() {
$j("#fadeout").fadeOut().empty();
}
setTimeout(fade_out, 5000);
});
</code></pre>
<p>When the image goes away it just... | javascript jquery | [3, 5] |
2,321,352 | 2,321,353 | how to display moving elapsed time in jQuery? | <p>let's say im returning a datetime string like this in JS:</p>
<p>"8/18/2010 9:35:27 AM"</p>
<p>I would like to have a function that displays an elapsed time based on the current date-time in this format:</p>
<p>"x days x mins and x secs"</p>
<p>is there a faster way to do this in jQuery? thanks!</p>
| javascript jquery | [3, 5] |
2,736,609 | 2,736,610 | Centering a div within another div while scrolling | <p>I am trying to center the navigation within the main content div and have it stuck there while scrolling. The problem that I just can't wrap my head around is that it needs to be parallaxy because of the header and the footer. I have a staging environment <a href="http://stage.golishlaw.com/portfolio/" rel="nofollow... | javascript jquery | [3, 5] |
4,531,158 | 4,531,159 | C++ and Java Byte Array | <p>Sorry for the newbie questions. I do not have any experience in c++. I have a method in C++ that generates hash value given an input. The output is stored as <code>char outCode[outlen]</code>. I have a java method that generates hash values given an input and the output is stored as <code>byte[] output</code>. I am... | java c++ | [1, 6] |
902,575 | 902,576 | PHP Problem : filesize() return 0 with file containing few data? | <p>I use PHP to call a Java command then forward its result into a file called result.txt. For ex, the file contains this:
"Result is : 5.0"
but the function filesize() returns 0 and when I check by 'ls -l' command it's also 0. Because I decide to print the result to the screen when file size != 0 so nothing is printed... | java php | [1, 2] |
3,636,198 | 3,636,199 | IndexOutOfBounds with array | <p>Each time I try to run this method</p>
<pre><code>private void resetOdds() {
mOdds[1] = 0.10;
mOdds[2] = 0.25;
mOdds[3] = 0.35;
mOdds[4] = 0.30;
}
</code></pre>
<p>I get an IndexOutOfBounds error. I don't know why, as I supply enough items in the array to change:</p>
<pre><code>private final doubl... | java android | [1, 4] |
3,378,605 | 3,378,606 | Converting PHP code in Java | <p>I'm a PHP programmer starting my adventures in Java and I was trying to create a function in an auction program to award my suppliers (it's something really simple, that I am using just for doing some tests). </p>
<p>As I wasn't finding a way to do this, I decided to write a sketch of how I could possibly do that i... | java php | [1, 2] |
2,528,447 | 2,528,448 | Sort ListBox items using Javascript/Jquery | <p>I have a Listbox with some items on a page. Is there any simple way to sort the items using Jquery or native javascript?</p>
<p>Best Regards,</p>
| javascript jquery | [3, 5] |
2,027,392 | 2,027,393 | jQuery $( function() {} ) and $(document).ready the same? | <p>To have a working datepicker on a field, I have to put this script inside my element</p>
<pre><code>$( function() {
$( "#date_datepicker" ).datepicker( { dateFormat: "yy-mm-dd" } );
});
</code></pre>
<p>Removing the <code>$( function() {</code> makes the datepicker not work.</p>
<p>So does it mean that the <... | javascript jquery | [3, 5] |
5,612,639 | 5,612,640 | Observe Form Submit | <p>I use this to invoke a function when a form on the page is submitted:</p>
<pre><code>$$("form").invoke("observe", "submit", submitForm);
</code></pre>
<p>I'm having a problem getting this to work in IE when a text field has focus and the enter key is pressed. Firefox submits the form in this case but not IE.</p>
... | javascript jquery | [3, 5] |
870,509 | 870,510 | What causes this error? The TargetControlID of <CheckBoxControlName> is not valid. The value cannot be null or empty | <p>I have searched on the net for this error, but there doesn't appear to be alot on it.</p>
<pre><code>The TargetControlID of 'CheckBoxControlName' is not valid. The value cannot be null or empty.
</code></pre>
<p>Does anyone know of the main causes for this error?</p>
| c# asp.net | [0, 9] |
1,693,358 | 1,693,359 | how can i execute my own code after default event happened? | <p>is there a function which we can execute some code after default event happened?
for example, i want to get the scrollTop value after default mouse wheel happened.
can jquery or javascript do this for me?</p>
| javascript jquery | [3, 5] |
4,017,632 | 4,017,633 | jquery load page with switch case | <p>it's me again!!</p>
<p>Now.. i don't know what i'm doing wrong with this Switch Case... can help me?</p>
<p>When i click in some LINK, the alert dont apear...</p>
<p>this is my HTML:</p>
<pre><code> <div class="menu-site">
<ul class="topo-menu" id="topo-menu">
<li id="aabruz... | javascript jquery | [3, 5] |
4,434,829 | 4,434,830 | Dynamic Loading of external javascript file | <p>How do I accomplish this? Every time I try to load an external javascript file from google maps, it crashes the webpage and it becomes blank.</p>
<p>I used the $JQuery.get(); function.</p>
<p>I am using JQuery to load the file into the head.</p>
| javascript jquery | [3, 5] |
1,978,519 | 1,978,520 | jquery- info/docs about list of attributes applicable to different types of input elements in a form | <p>I am working with input elements in a form using jquery...I am trying to obtain the name of a form parameter in a web page, as well as its value (or multiple values in case its something like a drop down box)</p>
<p>I want to do some operations on these form elements... Is there some place you can point me to where... | javascript jquery | [3, 5] |
4,368,905 | 4,368,906 | Calculate Total Value In Gridvew In ASP.net C# | <p>I am using a website which contains a gridview for view details of Product details... It contains columns like name,area,phnoe no,quantity,price,total.... now i want to calculate toatal value for that i hav to multiply the columns quantity and Price and also put that answer to total column in grid... How Shall i do ... | c# asp.net | [0, 9] |
3,483,021 | 3,483,022 | How to bind the enter/return key to user-defined function | <p>I'm developing an application that runs on one page, and does not reload. I have a form with only an input type text, no submit button. I included the onchange event, after filling the textbox with data, I want to execute the function bound to the onchange event when I press enter, but the form is rather submitted a... | javascript jquery | [3, 5] |
1,307,286 | 1,307,287 | Can we use dhtmlxscheduler in asp.net? | <p>I want to use dhtmlxscheduler in asp.net.</p>
<p>But i do not know how to bind event data with it.</p>
<p>Even i do not know it works in asp.net or not.</p>
<p>Can any one help me for this?</p>
<p>Please help me guys.</p>
<p>Thanks,</p>
<p>Rajbir</p>
| jquery asp.net | [5, 9] |
5,818,115 | 5,818,116 | Consultation about date format in java for android | <p>i have this date: <code>Date d = new Date(2012, 8, 1)</code>;</p>
<p>but in the screen i see: <code>61304700000000</code></p>
<p>how to fix it that i can see: <code>01/08/2012</code></p>
<p>thanks</p>
| java android | [1, 4] |
3,137,243 | 3,137,244 | asp:CheckBoxField in GridView - VS 2008 | <p>I have a gridview control bound to an object data source. in addition to the columns that i want to display i want to display this</p>
<pre><code> <Columns>
<asp:CheckBoxField DataField="Locked" Visible="true" AccessibleHeaderText="On Hold" ReadOnly="false"/>
</Columns>
</code></pre>
<p... | c# asp.net | [0, 9] |
821,414 | 821,415 | How Can i Access values from .aspx page to .aspx.cs page? | <p>I have code something like this.</p>
<pre><code>ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "Submit", "Confirm()", true);
</code></pre>
<p>Confirm is the JavaScript function in .aspx page. I want to catch the "true" or "False" value returned based on the Click performed on the Confirm window to m... | c# javascript asp.net | [0, 3, 9] |
1,487,393 | 1,487,394 | How do I clear the selection in an Android Submenu? | <p>I have a menu in my Android application and this menu has a <code>SubMenu</code>. The items are exclusively selectable.</p>
<p>How can I remove a selection made by the user (such that the submenu looks like it was at the beginning, with no item selected?</p>
<p>I was looking for a method that would do this, in a s... | java android | [1, 4] |
2,504,778 | 2,504,779 | Using C++ DLL (pointer method) in C# | <p>I have a C++ DLL file, I need to use it's function from C#. C++ file have a method called "Status" in ServiceState. C++ code for that block is given below.</p>
<pre><code>STDMETHODIMP ServiceState::Status(/*[out]*/VARIANT *Primary,VARIANT *Secondary )
{
if(primary())
Primary->boolVal = TRUE;
else
Sec... | c# c++ | [0, 6] |
2,568,009 | 2,568,010 | How to make so that the function run only one time? | <p>Script number one performed for each of a given set of elements DOM, append to the first element of the DOM script number two. </p>
<p><strong>Script number one:</strong></p>
<pre><code>function ptmedia(){
$('.ptmcss').eq(0).html('<div class="ptmcss"></div>')
.append('<div class="append"><scri... | javascript jquery | [3, 5] |
3,737,212 | 3,737,213 | Updating an image that is re-uploaded periodically | <p>I have a webcam script that sends a JPG via FTP to my webserver every 10 seconds (overwriting the original).</p>
<p>How can I get jQuery to refresh that image? I tried:</p>
<pre><code>window.onload = function() {
$('body').prepend('<img id="cam" src="ww.jpg" alt="" />');
setInterval(r... | javascript jquery | [3, 5] |
4,802,036 | 4,802,037 | failed to get repeater checkboxlist text | <p>i am trying to get all the check value from user,but i failed to do so</p>
<p>refer the the //problem below, while checkboxlist item is selected, it should return to me what user has selected, but it cant detect what user has checked</p>
<p><strong>bind repeater item</strong></p>
<pre><code>if (Session["test"] !=... | c# asp.net | [0, 9] |
1,043,553 | 1,043,554 | How to handle problem with Network Connectivity in Java | <p>I have a simple java code which gets html text from the input url:</p>
<pre><code>try {
URL url = new URL("www.abc.com");
// Get the response
BufferedReader rd = new BufferedReader(new InputStreamReader(url.openStream()));
while ((line = rd.readLine()) != null) {
String code = code + li... | java android | [1, 4] |
2,981,645 | 2,981,646 | Why does this work in jsfiddle but not in my document | <p>I found a wonderful jsfiddle that someone has made and wanted to use part of it in my project:</p>
<p><a href="http://jsfiddle.net/manuel/29gtu/" rel="nofollow">http://jsfiddle.net/manuel/29gtu/</a></p>
<p>It works on the jsfiddle but not in my HTML document. Here is what in my document:</p>
<pre><code><!DOCTY... | javascript jquery | [3, 5] |
2,381,645 | 2,381,646 | error opening main.xml file | <p>I am staring to learn android, I have done everything as mentioned in the guide, and I tried the hello android example.</p>
<p>but I just can´t open the main.xml file to edit, it give me this error: Could not initialize class java.awt.Font. I am on linus kde. </p>
<p>I don´t what I should do, and please avoid any ... | java android | [1, 4] |
821,257 | 821,258 | How to create this 4type or 3type tab list? | <p>how can I create the 4type or 3type tab list that are in this page - <a href="http://demos.brianmcculloh.com/swagger/" rel="nofollow">http://demos.brianmcculloh.com/swagger/</a> located in right side? I have seen that on many sites. Basically is there any free plugins, that would allow me to create something like th... | javascript jquery | [3, 5] |
4,087,443 | 4,087,444 | Hide a div using C# code | <p>I need to hide a div in page load based on some session value.
Can any one help me out please.</p>
<p>Thanks in advance</p>
| c# asp.net | [0, 9] |
4,181,605 | 4,181,606 | Read server-side JavaScript from PHP | <p>I have a JS library file of variables (caption strings) used by <em>server-side</em> JavaScript. Can I read/interpret that from PHP?</p>
<p>The path to the data isn't the issue, but whether PHP can read/use the JS variables. Currently I've the same variable stored in both a JS file and PHP include with obvious scop... | php javascript | [2, 3] |
2,308,537 | 2,308,538 | How to show an absolutely positioned sibling div on hover using jQuery? | <p>I have a grid of images with accompanying info in a sibling div that needs to show when the image is hovered over, then disappear when the cursor is off the image. I've looked at several similar questions here but none really have worked for what I need exactly.</p>
<p>It's for a site I've inherited that uses a dif... | javascript jquery | [3, 5] |
3,343,557 | 3,343,558 | What data type does memory see when I use void? | <p>When I create a method of type int the compiler reserves X number of bits in memory. So how does the see a void type? How many bits/bytes does a void type take up? </p>
| c# c++ | [0, 6] |
2,789,976 | 2,789,977 | Trouble inserting javascript to current webpage using C# | <p>I am encountering a problem with not being able to inject javascript through a webbrowser contol without writing to a new html. Is there a way to inject a string of javascript to the currently browsed webpage? </p>
<pre><code>javascript:(function(){var s=document.createElement('script');s.setAttribute('src','file:/... | c# javascript | [0, 3] |
31,619 | 31,620 | Set default value for jQuery slider and override when needed | <p><strong>Background:</strong> I currently have a <strong>working</strong> jQuery slider on my website inside my .js file</p>
<pre><code>$( "#slider-range-min" ).slider({
range: "min",
value: 100,
min: 1,
max: 100,
});
</code></pre>
<p>I need to be able to override the "Value" from 100 to... | javascript jquery | [3, 5] |
4,144,970 | 4,144,971 | jQuery-style function that can be accessed like an object | <p>I am creating an AJAX API for a web service and I want to be able to call jQuery-like accessors.
jQuery seems to be able to execute 'jQuery' as a function, but also use it to directly access the object that is the result of the function EG:</p>
<pre><code>jQuery();
jQuery.each({});
</code></pre>
<p>This is the tr... | javascript jquery | [3, 5] |
3,522,608 | 3,522,609 | Search gridview based on the value typing in textbox? | <p>I am using ASP.NET and C#.This is my code.</p>
<pre><code><asp:UpdatePanel ID="gridSearch" runat="server">
<ContentTemplate>
<asp:GridView ID="jobcardSearch" runat="server">
<Columns>
<asp:TemplateField>
... | c# javascript jquery asp.net | [0, 3, 5, 9] |
2,274,055 | 2,274,056 | jquery to javascript - $.ajaxSetup() | <p>Since I am using ExtJs framework in my project I can't use jquery in my project. now I've a piece of code in jquery (given below), can someone help me to convert jquery into javascript? thanks</p>
<pre><code>setup: function (networkErrorCallback) {
this._networkErrorCallback = networkErrorCallback;
... | javascript jquery | [3, 5] |
721,464 | 721,465 | Asp.Net "Instant" PM System | <p>I need to send "instant" messages (like forum PMs) between users with my asp.net application. As many others I use a webhotel to host my site. I have searched around for awhile and I can't find any solutions that would be a good fit with my system. I was thinking about writing a javascript that would call for each 3... | c# javascript asp.net | [0, 3, 9] |
6,012,952 | 6,012,953 | Good way to make a launcher screen for sub-apps within your app? | <p>I'm making an app for a company, and they want a main screen when you first enter the app with a couple sub-apps (right now they're separate activities) that you can go into (glossary, faq, calculator, etc).</p>
<p>Any ideas what the best way to do this is? I'm new to all this.</p>
<p>Thanks</p>
| java android | [1, 4] |
3,583,116 | 3,583,117 | Assign javascript value to php variable | <p>I'm trying to check screen width and assign it to a php variable to do some if else statements. This is what I got. </p>
<pre><code><script>
var mobileFormWidthCheck = $(window).width();
var mobileFormReady;
if(mobileFormWidthCheck < 767){
mobileFormReady = 22;
}
else{
m... | php javascript jquery | [2, 3, 5] |
2,643,201 | 2,643,202 | How to get AudioSessionId from Sip call on Android? | <p>I used sample Android code(SipDemo) to implement simple SIP client, but noticed strong echo while calling.</p>
<p>I found new(API 16) Android class AcousticEchoCanceler that can reduce echo effect but i don't know where can i get AudioSessionId.</p>
<pre><code> AcousticEchoCanceler aec = AcousticEchoCanceler.creat... | java android | [1, 4] |
3,271,251 | 3,271,252 | How to replace date on a jQuery countdown script with a PHP variable? | <p>How can this script is modified to accept a php variable instead in the place of writing <code>date:"august 12, 2011 23:59"</code> ?</p>
<pre><code><script type="text/javascript">
$(document).ready(function() {
$("#time").countdown({
date: "august 12, 2011 23:59",
onComplete: function( eve... | php javascript jquery | [2, 3, 5] |
358,023 | 358,024 | only check one radio button using jquery in asp.net | <p>I have the following grid view.</p>
<pre><code><asp:GridView ID="GridView1" runat="server" AllowPaging="True" BackColor="White"
BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="4" DataSourceID="UserModule_allusers"
ForeColor="Black" GridLines="Horizontal" On... | jquery asp.net | [5, 9] |
2,644,647 | 2,644,648 | Updating parent page from dynamically loaded user control | <p>Hosting page:</p>
<pre><code>protected void Page_Load(object sender, EventArgs e)
{
LoadMyControl(Parameters); //Do it every page load to preserve it's state
}
protected void LoadMyControl(string parameters)
{
plchld.Controls.Clear();
Control userControl = LoadControl("TheUserControl.as... | c# asp.net | [0, 9] |
2,951,535 | 2,951,536 | Android memory management question | <p>I have bunch of queries regarding android memory management . I know each app is provided with jvm , but how about memory size , do they increase and decrease with respect to other apps on phone?</p>
<p>The main part how do jni memory allocation in each jvm taken care ? </p>
<p>When accessing one of the android de... | java android | [1, 4] |
5,412,542 | 5,412,543 | Live update textblock | <p>I am trying to figure out the best way to have a text field live update between two different users. I have done some googling and what I could find was the setInterval.</p>
<p>That works but is really straight forward and seems like the "wrong" way. I don't know why it seems like that but I feel like there would... | php javascript jquery | [2, 3, 5] |
4,755,807 | 4,755,808 | link click event not firing button click event on the first try (IE only). Works on second click. | <p>This is driving me mad. I've got a div on my page that opens up in colorbox. When the user clicks one of the links in the div, it fires an event to the code (below) which should in turn populate the hidden field and then click a server button to run some code behind.</p>
<p>Problem is, in IE(9) it won't click the ... | c# javascript jquery asp.net | [0, 3, 5, 9] |
2,770,133 | 2,770,134 | Javascript - Set date 30 days from now | <p>I need to set a date that would be 30 days from now taking into account months that are 28,29,30,31 days so it doesn't skip any days and shows exactly 30 days from now. How can I do that?</p>
| javascript jquery | [3, 5] |
141,861 | 141,862 | Jquery if div doesn't exist | <p>I'm using 1 js for 2 different pages. 1 page doesn't have a div which the other does. So when I submit the values, I get a <code>$(</code> js error</p>
<p>for</p>
<pre><code>$('.description'+save_id+'').html(description_val).show(); //update category description
</code></pre>
<p>I suspect that I get the error bec... | javascript jquery | [3, 5] |
3,845,396 | 3,845,397 | how to use datePicker() plugin in jquery | <p>In reference to the site "</p>
<ul>
<li><a href="http://www.kelvinluck.com/assets/jquery/datePicker/v2/demo/datePickerClickInput.html" rel="nofollow">http://www.kelvinluck.com/assets/jquery/datePicker/v2/demo/datePickerClickInput.html</a></li>
</ul>
<p>", i used the datePicker() plugin of jquery. But its not work... | javascript jquery | [3, 5] |
819,976 | 819,977 | Why cant java be used over C++ for all programming purposes | <p>It is said that Java overcomes all disadvantages of C++</p>
<blockquote>
<p><strong>Disadvantages of C++:</strong></p>
<ul>
<li>Does not provide very strong type-checking. c++ code is easily
prone to errors related to data types,
their conversions, for example, while
passing arguments to functions... | java c++ | [1, 6] |
1,378,168 | 1,378,169 | C++ code meaning and conversion in Java | <p>I have in C++</p>
<pre><code>char *s, mask;
// Some code
If(*s == 0){ //Some more code}
If(*s & mask){ //Some code}
</code></pre>
<p>In Java can I write this like</p>
<pre><code>byte s,mask;
//Some code
If(s == (byte)0x0){ //Some more code}
If((s & mask) != (byte)0x0){ //Some Code}
</code></pre>
<... | java c++ | [1, 6] |
5,924,411 | 5,924,412 | jquery not working when i'm not putting it inside a jQuery(document).ready | <pre><code>jQuery(document).ready(function(){
jQuery(".test").click(function() {
alert(1);
});
});
</code></pre>
<p>When I try not to put :</p>
<pre><code>jQuery(".test").click(function() {
alert(1);
});
</code></pre>
<p>inside a <code>jQuery(document).ready()</code> it won't work... | php javascript jquery | [2, 3, 5] |
5,952,643 | 5,952,644 | ASP.NET implementing a search box like stackoverflow search box | <p>I use VS2010,C# to develop an ASP.NET web app, I'm going to implement a search box like the one used in Stackoverflow (or other sites), initially there is a phrase (for instance "search") in the search text box, when user click in text box, its text is emptied and user can type his phrase, but if he leaves the text ... | javascript asp.net | [3, 9] |
1,292,073 | 1,292,074 | jquery: not selector problem? | <p>The following snippet applies a #breadcrumb hash to each link once it's clicked. That works fine.</p>
<pre><code>$('#main a').live('click',function() {
$(this).attr('href', $(this).attr('href') + "#breadcrumbs");
});
</code></pre>
<p>Now I want to make sure that happens just if a link does not already hav... | javascript jquery | [3, 5] |
497,847 | 497,848 | asp.Net Checkbox has NO value? | <p>SOLVED: How can I get VALUE from a checkbox in a datalist? Checkboxes have no VALUE.</p>
<pre><code><asp:DataList
ID='dlTest'
runat='server'
RepeatColumns='2'>
<ItemTemplate>
<asp:HiddenField ID='cbTestID' runat='server' value='<%# Eval("id") %>' />
<... | c# asp.net | [0, 9] |
3,626,849 | 3,626,850 | jQuery determining if element exists on page | <p>How can I determine if an element exists on a page... for instance... </p>
<pre><code>$('select[name="modifier_option"]')
</code></pre>
<p>If that select box exists on the screen I need to validate it's value on the page to ensure it's value is > 0, but if it doesn't exist I don't need to worry about it.</p>
| javascript jquery | [3, 5] |
877,197 | 877,198 | how to kill a phonefacade in between in android through python? | <p>I am using "phoneDialNumber ApI" it makes a call of near around 45 seconds to other mobile , how i can kill it in between? </p>
| android python | [4, 7] |
2,303,390 | 2,303,391 | HttpSessionState as parameter | <p>What is the highest class in the hierarchy I can use to pass HttpSessionState as a parameter and add values to it?</p>
<p>For instance to a method like</p>
<pre><code>public void MyMethod(IDictionary<string, object> input)
{
input.Add("something", something);
}
</code></pre>
<p>I see that implements ICo... | c# asp.net | [0, 9] |
421,320 | 421,321 | jQuery: Move element position | <p>In each div, there are two buttons: higher and lower. When 'higher' is clicked, if this div is not at the top position, then it is moved higher than original. When 'lower' is clicked, then the element will be moved lower than original. </p>
<p>The question is: How to the elements can be moved up and down of with re... | javascript jquery | [3, 5] |
70,681 | 70,682 | Returning a value and then assigning it - possible race condition? | <p>If I had code like so - lets simplify it.</p>
<pre><code>someObj.newVal = returnSomVal();
function returnSomVal(){
return grabproperVal();
}
function grabproperVal(){
var someVal;
//some js figuring to get proper value for somVal;
return someVal
someObj.newVal = setSomeCookie(someObj.newVal,'c... | javascript jquery | [3, 5] |
617,159 | 617,160 | read ArrayList with index | <p>I've a class wich returns an array list, but when i'm reading it i want to write the values in a page.</p>
<p><strong>i've this class:</strong></p>
<pre><code> public ArrayList users(string table)
{
ArrayList list = new ArrayList();
foreach (DataRow item in com.Execute("selec... | c# asp.net | [0, 9] |
4,348,195 | 4,348,196 | Is it possible to loop through a textbox's contents? If not, what's the best strategy to read line-by-line? | <p>I am designing a crawler which will get certain content from a webpage (using either string manipulation or regex).</p>
<p>I'm able to get the contents of the webpage as a response stream (using the whole httpwebrequest thing), and then for testing/dev purposes, I write the stream content to a multi-line textbox in... | c# asp.net | [0, 9] |
1,290,106 | 1,290,107 | Post a link on twitter wall? | <p>I am trying to post a link on my twitter wall just like update status or post a tweet on wall.</p>
<p>I am currently using <strong>twitter4j-core-2.1.11.jar</strong> library to post tweet on twitter but I also want to post a link with tweet text.</p>
<p>How can i do it please help!</p>
| java android | [1, 4] |
2,309,517 | 2,309,518 | Cloning a field with text in it clones text as well? | <p>I have a piece of code that clones three fields, but when it clones the three fields, it also clones the text entered inside of it, is there a way to clear the content inside of the field when it is cloned?</p>
<pre><code>$(document).ready(function() {
$('#btnAdd').click(function() {
var num = $('.c... | javascript jquery | [3, 5] |
4,033,900 | 4,033,901 | Removing the last two instances of a character | <p>I'm building a string based on selected checkboxes. I wrote a statement that will add pluralization if there are multiple strings selected, but I cannot figure out how to remove the last two commas that are put into the 'policyHidden' field by the array.</p>
<pre><code>$(document).ready(function(){
$('input:che... | javascript jquery | [3, 5] |
2,619,812 | 2,619,813 | How to manually collect jQuery sequence? | <p>I have two jQuery objects:</p>
<pre><code>var one = $("#one");
var two = $("#two");
</code></pre>
<p>And I'm looking for a way to compile another jQuery object like:</p>
<pre><code>var oneAndTwo = $(one, two); // pseudo-function
</code></pre>
<p>So I could work with it like as I get them with <code>$("#one, #two... | javascript jquery | [3, 5] |
5,176,417 | 5,176,418 | Link a search interface in android to a php search page | <p>hi im wondring if i can do something like this , i have mobile website that have two pages . one for search and the second for results . my goal is to make an android app which have a search interface exactly like the php search page . and when the options selected the results page will show up as a webview .sorry f... | php android | [2, 4] |
5,158,169 | 5,158,170 | How to add opacity to a div? | <p>I am trying to add opacity to a div.</p>
<p>Here is my Jquery:</p>
<pre><code>$('.redDiv').fadeIn(0, 0.5);
</code></pre>
<p>My HTML:</p>
<pre><code><div class="redDiv" style="background:red;width:20px;height:20px;"> </div>
<div class="divBlue;" style="background:blue;width:20px;height:20px;"> &... | javascript jquery | [3, 5] |
3,481,073 | 3,481,074 | Mouse position relative to div | <p>I am using jquery ui for drag and drop. I am trying to get mouse position relative to div, here is my code:</p>
<pre><code>$( "#db_tables " ).droppable({
activeClass: "ui-state-default",
hoverClass: "ui-state-hover",
drop: function( event, ui ) {
var x = ui.position.left - ui.offset.left; // tired event.p... | javascript jquery | [3, 5] |
2,475,243 | 2,475,244 | Why is it possible to query jQuery('div') like an array? | <p>I got another question regarding jQuery's architecture. <code>$('div')</code> constructs a new <code>jQuery</code> object:</p>
<pre><code>$('div') instanceof jQuery; // true
</code></pre>
<p>I'd like to know why it is possible to query it like an array, allthough it isn't an array?</p>
<pre><code>$('div')[0]; // ... | javascript jquery | [3, 5] |
3,923,716 | 3,923,717 | How to use jQuery slideDown() to display _almost_ all contents? | <p>I have a div within a div. On page load, they should both be hidden, then when I trigger the <code>slideDown()</code> function on the outer div, I want the inner div to remain hidden. How can I achieve this?</p>
<pre><code><script>
$(function(){
$('.body').hide();
$('.display').click(function(){
... | javascript jquery | [3, 5] |
3,521,655 | 3,521,656 | Only show parts of image under a div using jquery | <p>I'm displaying a background picture with some semi-opaque div over it, so that it appears somewhat darker than it actually is. On top if it, I have a number of smaller, draggable divs. </p>
<p>I'd like the image to be completely visible, or revealed under these divs. These smaller divs should be like looking throug... | javascript jquery | [3, 5] |
4,229,364 | 4,229,365 | Using find() excluding some elements? | <p>I need to use find() to find all inputs in a form and change its value to ''. But I also need to exclude 2 inputs, the name of these inputs are: 'data', and 'date'</p>
<p>I tried this (with no success)</p>
<p><strong>$('#contactForm').find("input[ @name != 'data' ][ @name != 'date' ]").val('');</strong></p>
| javascript jquery | [3, 5] |
4,614,032 | 4,614,033 | using javascript with server controls | <p>I am trying to use javascript with server controls.</p>
<p>Aim<br>
To make my panel visible on mouseover event of text box(asp control)</p>
<p>Problem areas<br>
new to javascript and asp.net.<br>
getting javascript errors at run time<br>
went thru all possible solutions from different forums but not able to custom... | javascript asp.net | [3, 9] |
33,342 | 33,343 | Page does not load when ScriptManager is not included on MasterPage, but does when ScriptManager is commented out | <p>I have been editing an existing ASP.NET website, and removing old code that is no longer necessary. </p>
<p>On the MasterPage there was a ScriptManager control that I removed. The page would then stop loading any content, and I would just get an empty body tag. However, if I leave the ScriptManager control in, b... | c# asp.net | [0, 9] |
2,374,503 | 2,374,504 | jQuery API-compatible micro framework (other than Zepto)? | <p>I would swear on my cat's grave that I just read about such a thing in the last couple weeks, but I can't for the life of me find it now. I am looking for a minimal framework covering basic DOM selecting (e.g., including Sizzle, so it works with IE6 -- so Zepto doesn't qualify), manipulation & event binding, but... | javascript jquery | [3, 5] |
5,415,574 | 5,415,575 | How do I add JavaScript code on a webpage? | <p>Could someone please tell me how to get this code working on a webpage? Particularly what should go in the header?</p>
<p><a href="http://jsfiddle.net/mekwall/TJcP4/1/" rel="nofollow">http://jsfiddle.net/mekwall/TJcP4/1/</a></p>
<p>Sorry if this is a basic question...steep learning curve!</p>
<p>Thanks</p>
| javascript jquery | [3, 5] |
376,181 | 376,182 | How to access documentation in javascript | <p>Is it possible to access the documentation in the javascript at runtime as we do in python like </p>
<pre><code>object__doc__
</code></pre>
<p>I am just looking for an easy way to discover about inbuilt functions rather then googling for them all the time.
Also is there something equivalent to python's <code>dir(o... | javascript python | [3, 7] |
5,503,656 | 5,503,657 | Alternative Jquery mouse event | <p>Alright so the code below works fine if I click outside the #nav div. I was asking if it is possible to just move the mouse away from the #nav div to make it disappear. I don't want to 'click' to hide the div.</p>
<pre><code>$(document).mouseup(function (e)
{
var container = $("#nav");
if (container.has(e.... | javascript jquery | [3, 5] |
3,527,592 | 3,527,593 | javascript and asp.net | <p>I am going to be doing a lot more front end work on one of our asp.net projects and I suspect there will be a lot more JavaScript involved. I have seen and used a lot of tutorials/info on the fundamentals of the JavaScript language but could someone point me towards some resources on JavaScript specifically for usin... | javascript asp.net | [3, 9] |
5,216,472 | 5,216,473 | Javascript, local copying of a variable's value... struggling to achieve it | <p>I have what i thought was a simple javascript / jquery function (fade out of one div, fade into another... loop until it reaches a maximum and then start back from the begining. The problem i have though is that to fadein the next div i need to increment the global counter. Doing this increments double increments it... | javascript jquery | [3, 5] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.