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,860,337 | 3,860,338 | Orbit Object Around Center Point | <p>I am attempting to orbit an object around a center point, much like the sun and our planets. However I am having no luck at all. Any help would be really great. Thanks. I'm writing in luna and I dont think there is a category for that here, but this probably is just general code. But if its in the wrong place, my ap... | iphone android | [8, 4] |
249,211 | 249,212 | Switch between Android activities when listview item clicked | <p>I searched for hours to find good tutorial about switching between Android activities when a list view item clicked. All tutorials describe about calling different activities for different list view item clicked, but I want to run same activity without considering what item is clicked Here is the code I have used bu... | java android | [1, 4] |
681,670 | 681,671 | Dynamically change an application's icon / name Android | <p>I'm writing a security feature for Android which helps the user recover lost or stolen phones. I want to allow the user to change the application icon and name as it appears on the app page. I'm new to Android programming, so excuse me if this is a silly question.</p>
<p>To put it another way, I want to allow the... | java android | [1, 4] |
4,178,624 | 4,178,625 | $(document).ready not work in IE 7 | <p>i am using following code in other browser(mozilla, chrome etc.) then working fine but if i use that same code in IE 7 then it's not working(work in IE 8+). no error given to me. </p>
<pre><code>$(document).ready(function(){
alert("hello");
});
</code></pre>
| javascript jquery | [3, 5] |
1,881,912 | 1,881,913 | jQuery, show all elements by class name | <p>I want to show all elements with some class name (<strong>string</strong>). Something like:</p>
<pre><code>var somevar = "apple"
$( .... select all elements with class == somevar ).show();
</code></pre>
<p>How can it be done?</p>
| javascript jquery | [3, 5] |
1,871,431 | 1,871,432 | How to press a button with Enter Key | <p>How to bind click(from Button1's click event) event in textbox When I pressed the enter key </p>
| javascript jquery | [3, 5] |
689,696 | 689,697 | Code won't execute in $(document).ready but will in developer console | <p>I have some code wrapped in <code>$(document).ready(function(){ /*code*/ });</code>, and all of it works fine, except for one line. The code above it works fine, the code below it works fine, I'm not getting any errors in my console.</p>
<pre><code>$('.main-right.category').height( $('.footer').height() + $('.main... | javascript jquery | [3, 5] |
3,171,806 | 3,171,807 | how to use classes from imported package in android | <p>I have a package pkg1 which say I will import in pkg2. </p>
<pre><code>secondactivity.java:
package seconddemoapp.demoapp.demo;
public class seconddemoappActivity extends Activity
{
----
}
firstactivity.java:
package firstdemo.firstdemoapp.demo;
import seconddemoapp.demoapp.demo.seconddemoappActivity;
public cl... | java android | [1, 4] |
742,900 | 742,901 | Response.BinaryWrite DIV | <p>Is there a way to write PDF to a div from DataBase i.e. Retrieve a Byte[] from Database and Reponse.BinaryWrite to a div.</p>
<p>We do similar thing for Images using src = "anotherpage.aspx" where image is written on anotherpage.</p>
<p>Is it possible with PDF without using IFrame?</p>
| c# asp.net | [0, 9] |
1,412,600 | 1,412,601 | define an array in JavaScript | <p>how would you define an array in JavaScript like the one below and retrieve values by doing a search for country and gets the list of region.</p>
<pre><code>region['US'] = {'Region 1': 'East', 'Region 2': 'West'}
</code></pre>
| javascript jquery | [3, 5] |
3,360,335 | 3,360,336 | How should I choose where to store an object in C++? | <blockquote>
<p><strong>Possible duplicate</strong><br />
<a href="http://stackoverflow.com/questions/599308/proper-stack-and-heap-usage-in-c">Proper stack and heap usage in C++?</a></p>
</blockquote>
<p>I'm beginning to learn C++ from a Java background, and one big difference is the fact that I'm no longer forced... | java c++ | [1, 6] |
5,085,362 | 5,085,363 | Check Date and Display Until Event Date | <p>I want to list an event in the sidebar and have it automatically disappear on the day after the event.</p>
<pre><code><h6>Next Meeting</h6>
<dl id="nextmeeting">
<dt><a href="members-meetings.html">Oct 15, 2011</a></dt>
<dd>La Quinta Inn & Suites</dd>
<dd... | php javascript | [2, 3] |
5,024,118 | 5,024,119 | ui Dialog works once in IE | <p>I hope someone can help with this problem. I am using ui Dialog that pops up on clicking a link with the same class. The problem is that the link work great once but if i click it again or another link with the same class then only the overlay loads but not the content box in IE only. It works great in firefox.
My s... | javascript jquery | [3, 5] |
3,590,173 | 3,590,174 | chaining methods and selectors using jquery inside of a loop | <p>Is it possible to generate a chain of selectors and methods inside of a loop?</p>
<p>For example, I have an array of elements:</p>
<pre><code>array[0] = '.type1value1, .type1value2, .type1value3';
array[1] = '.type2value1, .type2value2, .type2value3';
array[2] = '.type3value1, .type3value2, .type3value3';
</code><... | javascript jquery | [3, 5] |
1,377,117 | 1,377,118 | JQuery / JS variable to alert text | <p>I have this code:</p>
<pre><code>$('#output').html("<strong>id:</strong>"+id);
</code></pre>
<p>then</p>
<pre><code><div id="output">this element will be accessed by jquery and this text replaced</div>
</code></pre>
<p>The above works fine but what I need is for the output to go into an a... | javascript jquery | [3, 5] |
468,065 | 468,066 | jscript/jquery: fade in divs 1 by 1, with pause inbetween | <p>I am totally stumped here.</p>
<p>I have a bunch of messages, each within a div "msg_feed_frame_$i" which increases, so message 1 is in div "msg_feed_frame_1", msg 2 is in "msg_feed_frame_2", etc etc. I want to fade these messages in one by one using jquery, but for some reason no matter what I do with settimeout a... | javascript jquery | [3, 5] |
4,736,943 | 4,736,944 | Highlighting search words like Chrome with jQuery | <p>I have recently done a very simple highlighting with jQuery and a highlight plugin. It looks like this:</p>
<blockquote>
<p>$('myButton').click(function() {</p>
<p>$('body').highlight($('#myInputText').val());</p>
<p>});</p>
</blockquote>
<p>But I wonder how can I do the Chrome like highlighting, I mea... | javascript jquery | [3, 5] |
4,025,200 | 4,025,201 | jquery remove element and also list selection | <p>I have a select list that when the user selects an item it builds an <code>li</code> element on the fly, when the users clicks the <code>li</code> element, the <code>li</code> is removed. Below is the code that I currently have,</p>
<p>The below adds the li on select of an option</p>
<p><code>$('#sectors').change(... | javascript jquery | [3, 5] |
2,352,599 | 2,352,600 | time that does not depend in system time | <p>I am developing a game in C++ for iPhone. I need to give hourly bonus to the player. I implemented this using time(NULL) method to check for next. But that can cheated easily by changing the device time. So what alternative I have to prevent this?</p>
<p>I of my friend told me to sync that to my server. But that is... | c++ iphone | [6, 8] |
118,288 | 118,289 | remove , from string if present | <p>What is the best way to remove <code>,</code> from following strings.</p>
<ol>
<li>one,two,three,</li>
<li>three,four,five</li>
<li><p>six,seven,eight,nine,ten,</p>
<blockquote>
<pre><code>int strLength = someString.Length;
if (strLength > 0)
{
findString = findString .Substring(0, str.Length - 1);
}
if ... | c# asp.net | [0, 9] |
2,183,638 | 2,183,639 | What does $ do when using JQuery? | <p>I am reading JavaScript and JQuery, The Missing Manual</p>
<p>and they start of with this Snippet : </p>
<pre><code>$(document).ready(function(){});
</code></pre>
<p>I know that <code>function(){}</code> is an anonymous function, and that document is an object with properties I can set / read, and that ready() is... | javascript jquery | [3, 5] |
3,519,231 | 3,519,232 | how to give confirm message box when selecting previous date in asp.net | <p>hello i have created one webpage in asp.net & in that webpage i am using Asp calendar control. I want to display message box whenever user selects the previous dates from that calendar control how can i do it please suggest me any solution.</p>
| c# javascript asp.net | [0, 3, 9] |
5,708,592 | 5,708,593 | Dynamically replace HTML element in UIWebView | <p>I have some HTML loaded in WebView like this: </p>
<pre><code><html><head></head><body>before <myTag>Content</myTag> after</body></html>
</code></pre>
<p>I want to replace element <code>myTag</code> with custom text so it should look like:</p>
<pre><code> <htm... | javascript iphone | [3, 8] |
1,265,336 | 1,265,337 | How to get DataTextField of DropDownList in javascript? | <p>I am using a DropDownList as </p>
<pre><code><asp:DropDownList
ID="ddlLocationName"
runat="server"
DataValueField="Guid"
DataTextField="LocationName"
AppendDataBoundItems="false"
AutoPostBack="false"
onchange="LocationChange()"
></asp:DropDownList>
</code></pre>
<p>and when I selec... | c# asp.net javascript | [0, 9, 3] |
4,145,714 | 4,145,715 | Creating web controls inside a content placeholder programmattically | <p>I've got a master page and a content page. How can I add controls to the master page's content placeholders programattically?</p>
| c# asp.net | [0, 9] |
5,266,925 | 5,266,926 | Server.UrlEncode vs. HttpUtility.UrlEncode | <p>Is there a difference between Server.UrlEncode and HttpUtility.UrlEncode?</p>
| c# asp.net | [0, 9] |
1,798,908 | 1,798,909 | Determine if SelectBox containing no options exists using jQuery | <p>So this question is asked a lot on the net and I see the answer is to check if the .length is > 0. </p>
<p>So in my case a select box may or may not exist. If it exists, it may have no options. </p>
<p>I have to code for the following:</p>
<p>If selectbox exists ...
if there are no select box options ...
... | javascript jquery | [3, 5] |
4,916,339 | 4,916,340 | How to put image in HashMap by giving a specific url | <pre><code>private static final String picpic = "picpic";
private ArrayList < HashMap < String, Object>> myBooks;
myBooks = new ArrayList<HashMap<String,Object>>();
HashMap < String, Object> hm;
hm = new HashMap<String, Object>();
drawable=LoadImage("http://www.wauhaha.com/smar... | java android | [1, 4] |
5,606,835 | 5,606,836 | windows Service / Web Service | <p>I've a application here that should automatically deploy the web service on local server(not in IIS). It is ok with running like windows service. Has any one help with Idea??</p>
| c# asp.net | [0, 9] |
688,625 | 688,626 | Tips for moving from C# to Java? | <p>So I'm going to a job interview next week at a Java place, and would like to not come across as clueless. I'm a pretty confident C#/.NET developer and am (clearly!) willing to consider jumping ship to Java - I'd like links to resources people would recommend for doing this. I'm interested in answers to questions l... | c# java | [0, 1] |
5,407,446 | 5,407,447 | From jquery back to JavaScript | <p>I need a pure JavaScript equivalent of this Jquery code:
because the use of libraries isnt allowed in my current project,</p>
<p>File handler.js</p>
<pre><code>$(document).ready(function(){
$("#some_button").click(function(){
alert('ok. works');
});
});
</code></pre>
<p>File index.html</p>
<pre><code><... | javascript jquery | [3, 5] |
1,456,484 | 1,456,485 | Slide Effect happening too many times | <p>I call this functions on onmouseover and onmouseout for several divs. </p>
<pre><code>//Takes effect on divs with id, 62,63,64,65...
function slide_it(id){
$('#options_'+id).slideToggle('slow');
}
</code></pre>
<p>The problem is that if I move my mouse over and then mouse out, then again, mouse over and then... | javascript jquery | [3, 5] |
3,024,046 | 3,024,047 | Defaulting hidden field value using inline server code | <p>I have an ASP.NET page where I defined a property in the code behind as follows:</p>
<pre><code> public int testProperty { get; set; }
</code></pre>
<p>In my page I define a hidden field and want to set the value using an inline server code as follows:</p>
<pre><code><asp:HiddenField ID="hftestProperty" run... | c# asp.net | [0, 9] |
3,207,908 | 3,207,909 | How to trigger .click() on disabled checkbox | <p>js/jQuery:</p>
<pre><code>$('input[type=checkbox]').click(function(){
// Does not fire if I click a <input type="checkbox" disabled="disabled" />
});
</code></pre>
<p>How do I make something happend in jQuery when someone clicks a disabled checkbox?</p>
| javascript jquery | [3, 5] |
3,386,827 | 3,386,828 | How should I code my jQuery so when I hover over my div, the image in it dissolves into another image? | <p>I know I need to use the hover function on the div, then change the images src attribute, but I don't know how to make it dissolve from one to the other. If I hide it, it just fades back in from white. But I want it to dissolve image to image.</p>
| javascript jquery | [3, 5] |
238,983 | 238,984 | adding values to the dropdownlist via loop in asp.net | <p>I'm developing web-application, in this I want to add all months values on the client side browser in registration form.</p>
<p>I'm doing it manually by adding all months' values one-by-one. I want to know is it possible to add all months with by putting one for loop in my code or not.</p>
<p>Suggest me if it's po... | c# asp.net | [0, 9] |
4,548,787 | 4,548,788 | Compiling default android applications | <p>Can i compile applications that are part of android separately? Probably modify them? </p>
<p>I downloaded them from <a href="http://grepcode.com/snapshot/repository.grepcode.com/java/ext/com.google.android/android-apps/2.3.4_r1" rel="nofollow">here</a> but have had no luck importing them into eclipse. I create a n... | java android | [1, 4] |
3,453,199 | 3,453,200 | delete rows and change pagination counters? | <p>I want change <code>1 تا 6 از 36</code>=translator to EN=> <code>1 to 6 of 36</code> after delete row(s)(with click on link <strong>DELETE</strong>) in table.<br>
<strong>EXAMPLE:</strong> total rows is <code>36</code> if we delete <code>3</code> rows, this total row online change to <code>33</code> (like when that ... | javascript jquery | [3, 5] |
3,597,083 | 3,597,084 | Find element within div and add text with jQuery | <p>I'm trying to write a small snippet of jQuery that validates my input fields. If they don't validate I want to write an error message to an empty <code><p></code> tag, only I can't seem to target it correctly. Can anybody see/explain where im going wrong?</p>
<p><a href="http://jsfiddle.net/xG2KS/19/" rel="no... | javascript jquery | [3, 5] |
4,694,897 | 4,694,898 | How to call javascript on user control | <p>I have webapplication in c# asp.net 4.0 </p>
<p>I have User Control in that I have written javascript :-</p>
<pre><code><script>
function SetValue() {
alert(document.getElementById('offSetClient').value);
}
</script>
<asp:HiddenField ID="clientDateTime" runat="server" />
... | c# javascript asp.net | [0, 3, 9] |
654,768 | 654,769 | Parsing a date in long format from ATOM feed | <p>I get this date in javascript from an rss-feed (atom):</p>
<pre><code>2009-09-02T07:35:00+00:00
</code></pre>
<p>If I try Date.parse on it, I get NaN.</p>
<p>How can I parse this into a date, so that I can do date-stuff to it?</p>
| javascript jquery | [3, 5] |
5,170,623 | 5,170,624 | how can i make $(document).on('touchstart') function work on ipad? | <p>I'm simply toggling the class when a specific button is clicked, when the user clicks outside document i then want to remove the class. This works fine if I change the event to click and test on desktop but on iPad nothing seems to happen. Can anyone offer any suggestions on how to make this work?</p>
<pre><code>$s... | javascript jquery | [3, 5] |
446,384 | 446,385 | how to create a GCM to send notification using Android phonegap and php | <p>I need the code to send push notification to android device from the php server. i am using phonegap technology. i need the gcm code for android phonegap and php.</p>
<p>Thanks in advance..</p>
| php android | [2, 4] |
3,399,522 | 3,399,523 | Get last child of div in Javascript function | <p>I am taking a fairly simple piece of code and wrapping into a function, the code builds a slide out menu from the items inside a div. I'm now trying to get the last child from a div:</p>
<pre><code>experimentOne('#experimentOne');
function experimentOne(masterContainer) {
var experimentOneMenuButton = $('ma... | javascript jquery | [3, 5] |
1,144,107 | 1,144,108 | flexigrid how to access url posted parameters when they are sent to script | <p>Edit to answer:</p>
<p>I have tried the following</p>
<pre><code>$(document).ajaxSuccess (function(ev, xhr, s) {
document.write('url: ' + s.data);
});
</code></pre>
<p>And I just get a blank page - it does write out the right data though, just not the rest of the page</p>
<p>Hi, I am using flexigrid, and im ... | php jquery | [2, 5] |
3,940,697 | 3,940,698 | Is there anything you can do in C++ that you cannot do in C#? | <p>I am trying to figure out if there is anything that you can do in c++ that you absolutely cannot do in c#?</p>
<p>I know that there are platforms that are targeted to native libraries, but I want to know if the lowest level c# can compare with the lowest level c++.</p>
| c# c++ | [0, 6] |
4,806,351 | 4,806,352 | filter to a gridview in c# | <p>I Have a gridview having column
names(batchname,firstname,schedule,startdate,enddate,labname)</p>
<p>I want to add a filter to a gridview. Can I add a filter bellow each column of the gridview header.Or Should i use it outside the gridview? Here I m using it outside the gridview.And fire a event of TextChanged.I ha... | c# asp.net | [0, 9] |
1,929,591 | 1,929,592 | Div is hidden but again showed up | <p>I have a situation where I have no of Divs on my page , based upon the autorization I want to hide show the data in those Divs , Problem is Divs are not Hidden ,this is my client script code.</p>
<pre><code>function ShowDiv(obj, condition) {
var dataDiv = document.getElementById(obj);
//alert(obj);
if (... | javascript asp.net | [3, 9] |
1,005,440 | 1,005,441 | jQuery: Getting value from input array | <p>We have the following form:</p>
<pre><code><form>
...
<table width="100%" cellspacing="0" class="datagrid_ppal">
<tbody>
<tr>
<th scope="row">Area 1 <input name="config_line" type="hidden" value="0,5,50" /></th>
<td class="... | javascript jquery | [3, 5] |
35,140 | 35,141 | Property Scope Issue? | <p>I'm attempting to reference the <code>discount_code</code> property from within the object, but I keep getting the following error. How can I access <code>discount_code</code>?</p>
<p>Error:</p>
<blockquote>
<p>Uncaught TypeError: Cannot call method 'val' of undefined</p>
</blockquote>
<p>HTML:</p>
<pre><code>... | javascript jquery | [3, 5] |
1,691,604 | 1,691,605 | Row_DataBound or Row_Created event in GridView | <p>I have doubt about the <code>Row_DataBound</code> and <code>Row_Created</code> events :</p>
<ol>
<li><p>What is the difference between <code>Row_DataBound</code> and <code>Row_Created</code> events?</p></li>
<li><p>What are the parameters for choosing between these two events?</p></li>
</ol>
| c# asp.net | [0, 9] |
556,886 | 556,887 | Why does it compile? | <pre><code> var cv = (new CustomValidator()
{
ErrorMessage="Formato de telefone inválido",
ControlToValidate = "txtTelefoneIni", //<-- see the extra comma
});
</code></pre>
| c# asp.net | [0, 9] |
4,890,438 | 4,890,439 | jQuery function similar to closest that will return elements outside of the parent chain | <p>Is there any jQuery function similar to closest() that will return elements outside of the parent chain, traversing sideways? For example, I want to call a function foo() on the div source that would return the div target. I know I could navigate using parent() and siblings(), but I need something generic that would... | javascript jquery | [3, 5] |
5,349,567 | 5,349,568 | How to redirect to login page on session time of any of the session created on multiple pages? | <p>I have developed a project having multiple .aspx pages. I am making use of many sessions in almost all the pages. If any of the session gets expire the application is throwing error. I dont want to check the session expiration on all the pages for all the session that i have created. Can anyone suggest me how can i ... | c# asp.net | [0, 9] |
4,258,694 | 4,258,695 | how a cursor blinks in jQuery text editor? | <p>I am just trying to know a text editor works ( jquery ), I found many jquery text editors on web. My question,the editor itself is not a textarea but an iframe I think, but How the cursonr blinks like a cursor in text area</p>
<p>please check this <a href="http://batiste.dosimple.ch/blog/posts/2007-09-11-1/rich-tex... | javascript jquery | [3, 5] |
3,051,599 | 3,051,600 | Astree view not working properly when we embedd this in to div which has scroll | <p>I am using as treeview which is downloaded from the following location:
<a href="http://www.codeproject.com/Articles/43057/ASTreeView-Free-ASP-NET-TreeView-Control" rel="nofollow">http://www.codeproject.com/Articles/43057/ASTreeView-Free-ASP-NET-TreeView-Control</a></p>
<p>There is two images when we drag a node (1... | c# asp.net | [0, 9] |
3,960,982 | 3,960,983 | Jquery Not able to fetch changed value of input field | <p>I am trying to fetch the changed input filed value using jquery which is getting changed javascript event of drop down select.
I simply am not getting where exactly the things are getting wrong. It is something related to dom tree refresh (.live)? Any help/suggestions would be great. Thanks.</p>
<pre><code>/* addin... | javascript jquery | [3, 5] |
5,388,076 | 5,388,077 | How do i buffer an image from external link | <p>I have a external link with an image which i want to stream, but i get this error when i try.</p>
<p>error
"URI formats are not supported."</p>
<p>I tried to stream:
Stream fileStream = new FileStream("http://www.lokeshdhakar.com/projects/lightbox2/images/image-2.jpg", FileMode.Open);
byte[] fileContent = new byte... | c# asp.net | [0, 9] |
860,511 | 860,512 | jQuery DatePicker set time and date | <p>Hello I was asked to modify some code. We got something like this:</p>
<pre><code>$("#expiration_datepicker").datetimepicker( "option", "disabled", false ).attr('value', '');
$("#expiration_datepicker").datetimepicker(
{
dateFormat: 'mm-dd-yy',
showOn: 'button',
buttonImage: '../chassi... | javascript jquery | [3, 5] |
5,315,467 | 5,315,468 | Use jQuery $ inside an iframe | <p>I would use an expression like this </p>
<pre><code>$("a[href*='2']").offset().left
</code></pre>
<p>but for iframe's elements ...</p>
<p>I tried this:</p>
<pre><code>$("#inside-slider").contents().attr("a[href*='2']").offset().left
</code></pre>
<p>but nothing. </p>
<p>(inside-slider is my iframe's id)</p>
| javascript jquery | [3, 5] |
2,718,415 | 2,718,416 | User control "ascx" file with C# | <p>I have a user control, basically consists of a tree view and also a drop down list..
The user control shows something like</p>
<p>(For the tree view)</p>
<pre><code> Books
Learn Algebra in 24hrs (30)
Learn Calculus in 1 week (16)
</code></pre>
<p>(For the Drop Down)</p>
<pre><code>--- Books ----
Learn A... | c# asp.net | [0, 9] |
2,747,646 | 2,747,647 | setting up an if else statement to check for a querystring | <p>I'm looking to make an if else statement that does one action if it detects a query string and another action if there isn't one detected. My trouble is in the syntax, I haven't been able to find a good example.</p>
<p>I'm looking for something along the lines of:</p>
<pre><code>if (requisition_id = null)
do ... | c# asp.net | [0, 9] |
2,966,112 | 2,966,113 | If URL contains string then run jQuery function? | <p>On my website id like to run a jQuery function if my url contains the word 'test'</p>
<p>All im trying to do is if my url contains the 'rest' string then add a margin to an element on the page? </p>
<p>Ive added a jSfiddle to try and show what Ive done so far. </p>
<pre><code>$(document).ready(function(){ ... | javascript jquery | [3, 5] |
970,446 | 970,447 | set tooltip based on different element id | <p>i am trying to get different elemenet id and set tooltip to each of them but i cant make it </p>
<pre><code><script type="text/javascript" src="Scripts/jquery-1.4.1.min.js"></script>
<script type="text/javascript">
var data = {
name: "enter your name",
family: "enter your family",
t... | c# javascript jquery asp.net | [0, 3, 5, 9] |
5,919,885 | 5,919,886 | jQUERY - accordion active state asp.net code behind | <p>Can anyone inform me how to maintain the jquery accordion active state panel when changing pages. Ideally i would like to change in the code-behind however really happy to just get it working.</p>
<p>developing in asp.net 3.5 </p>
<p>Hope this helps</p>
<p>Thanks</p>
| asp.net jquery | [9, 5] |
2,953,703 | 2,953,704 | Adding a line break to box | <p>I have a javascript box popping up with some message in it but I have not found how to add line breaks from code behind and I am asked to make it to do so, here is how it currently works:</p>
<pre><code> Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "key",
"function SendBox() {location.href = 'moveto... | c# javascript asp.net | [0, 3, 9] |
228,079 | 228,080 | Get the element that triggered focusout event | <p>How can i find, what element triggerd focusout event ?</p>
<p>I mean, if i'm focused on some text box, and i click on some element for example div with name (results)), i wan't to get that div attributes.</p>
| javascript jquery | [3, 5] |
1,243,851 | 1,243,852 | Listview getFirstVisiblePosition | <p>i am trying to get the position of the first visible row,which is entirely visible to screen. end of scrolling,if the portion of the row is visible in first row, i need to select next position. how to do this?</p>
| java android | [1, 4] |
4,270,605 | 4,270,606 | jquery blockUI and unblocui | <p>Having issue with unblockUI. It gives compile timne error. syntax error $.unblockUI();</p>
<pre><code><SCRIPT type="text/javascript">
var $ = jQuery.noConflict();
$('#toHide').show().blockUI();
setTimeout('document.getElementById("safeForm15").submit()', 100);
$.unblockUI();
</SCRIPT>
</cod... | javascript jquery | [3, 5] |
4,280,900 | 4,280,901 | IE Login Issue (Login page redirecting to itself) | <p>We have a login page in our website named Login.aspx, whenever a user enters username and password and clicks on submit button the user is again redirected to the login page itself.</p>
<p>The status in the page header changes to Logout but the user is redirected to the login page again.This is only happening in IE... | c# asp.net | [0, 9] |
1,801,864 | 1,801,865 | Get text written in Anchor tag | <pre><code><td class="td1">
<input name="CheckBox" id="c1" type="checkbox" CHECKED="" value="on"/>
<a class="a_c" id="a1">
</td>
</code></pre>
<p>If I know ID of Check box $(#c1) then how can i get text of Anchor tag?</p>
| javascript jquery | [3, 5] |
1,379,552 | 1,379,553 | Is it possible to stop redirection to another link page? | <p>I have already searched a lot, but it seems this can't work.</p>
<p>At the program, there is a jquery ready function to make the click event redirect.</p>
<pre><code>if($.isFunction(link.attr('onclick'))){link.click();return false;}
else{document.location.href=link.attr('href');}
</code></pre>
<p>so in the hyperl... | javascript jquery | [3, 5] |
3,156,148 | 3,156,149 | Looking for an image change on mouseover link | <p>Does anyone know of a jquery plugin or a simple javascript which could allow me to change the image depending on the text link I hover over with a mouse.</p>
<p>The image is fixed in one spot, and the links are displayed below. As I hover down the list of links, the image above changes. Any ideas?</p>
<p>Thanks ... | javascript jquery | [3, 5] |
2,788,074 | 2,788,075 | hide on second click | <p>I have a bubble that pops up when you select some text on a document. Now when you select some text, the body click event fires too. On body event, I have code to hide the bubble that pops up when you select some text. The problem is, I want to show the bubble when the text is selected (even though body event has fi... | javascript jquery | [3, 5] |
1,511,487 | 1,511,488 | dblclick event is triggered after jquery drag and drop | <p>I'm trying to add a double click event to a jquery connected list item. I add the double click event as shown below;</p>
<pre><code>$(a_elements[i]).dblclick(duplicate_building(a_elements[i]));
</code></pre>
<p>this is part of a function that is run after an li drop and loops through each element using the a_eleme... | javascript jquery | [3, 5] |
6,027,188 | 6,027,189 | Passing values from one page to another page in JS | <p>I have one query on JavaScript.</p>
<p>How we can pass values from one page to another page?</p>
<p>I am working with ASP.NET. My requirement is, I need to validate the user, whether his session expired or not. If the session expired then I need to show a pop up with two textboxes to enter his credentials.</p>
<p... | javascript asp.net | [3, 9] |
2,264,910 | 2,264,911 | get id parameter and increment count for each click in jquery | <p>I want to get the id value of <strong>c_i</strong>. And each time <strong>c_i</strong> is clicked I want to increment the value at <strong>chk_count</strong>, using jquery</p>
<pre><code><div id='d<? echo $i; ?>' style='margin-bottom:8px; border:#cccccc thin solid; height:25px;'>
<span st... | php jquery | [2, 5] |
3,329,529 | 3,329,530 | changing an images src value when the user scrolls jquery | <p>I'm trying to attach an event handler to the scroll event that changes the value of the image tag's src value by returning a random value from an array of src values (titles)</p>
<p>$( function(titlemagic){</p>
<pre><code>var titles =[
</code></pre>
<p>//ive omitted the actual array contents in consideration of p... | javascript jquery | [3, 5] |
477,820 | 477,821 | how to catch multiple ids? | <p>My button is dynamic. So, It has multiple ids say view-123, view-324, view-423 etc. On button click I am calling a <code>jQuery</code> file having:</p>
<pre><code> $(document).ready(function() {
$('tr[id^view-]').click(function() {
alert(this.id)
});
});
</code></pre>
<p>To catch th... | javascript jquery | [3, 5] |
5,404,857 | 5,404,858 | disable jquery datepicker | <p>I have used jquery datepicker in my .aspx page. The control is working fine. What i need is to disable the control if the textbox on which it is linked is disabled. For ex. I am showing datepicker on textbox "txtDateOfAssignment". If the Enabled property of this textbox is false then datepicker should not be active ... | asp.net jquery | [9, 5] |
3,416,054 | 3,416,055 | How to Pass Hidden field value in HyperLink control in navigateURL attibute? | <p>Can any one tell me how to pass any hidden filed value in Query string with hyperlink control.please see the problem in below code:</p>
<pre><code><asp:HyperLink ID="hlnkComment" runat="server"
onclick="return GB_show('Comment', this.href, 500, 650)"
ImageUrl="~/Images/Resources/forum.png" ToolTip="Com... | c# asp.net | [0, 9] |
5,198,116 | 5,198,117 | Which thread invokes SensorEventListener.onSensorChanged | <p>From my records it seems that SensorEventListener.onSensorChanged callback is
called by the same thread that registered the callback. I.e there must
be some message-queue synchronization going on in the background which
allows the activitys UI-Thread to handle the callbacks. </p>
<p>That leads to my question: Is... | java android | [1, 4] |
32,724 | 32,725 | jQuery.get() Variables Scope | <p>I'm working with jQuery's Ajax but in my case I need to store the response in global variables:</p>
<pre><code>var points = Array()
$.get("/data", {"id": 1}, function(data) {
for (var i=0; i < data.length; i++) {
points[data[i].someid] = data[i];
}
alert(points[22].someid.toString()); // it works... | javascript jquery | [3, 5] |
475,757 | 475,758 | JQuery/JavaScript : refactoring nested functions | <p>I have this interesting jQuery function. It basically adds a click handler to link, and when that is clicked, it will load a form to allow the user to edit the content. and the form is submitted by AJAX, and will display a success message when it's done. </p>
<p>The outline is below; needless to say, this is messy.... | javascript jquery | [3, 5] |
4,028,754 | 4,028,755 | The notification can't skip to another activity? | <p>my code is</p>
<pre><code>public class AlarmReceiver extends BroadcastReceiver {
public Notification mNotification = null;
public NotificationManager mNotificationManager = null;
@Override
public void onReceive(Context context, Intent intent) {
Toast.makeText(context, "time up!", Toast.LENGTH_SHORT).show();
... | java android | [1, 4] |
2,078,657 | 2,078,658 | How can I display a rendered object inside a different class layout? | <p>Okay, so I'm using Rajawali (See: <a href="http://www.rozengain.com/blog/2011/08/23/announcing-rajawali-an-opengl-es-2-0-based-3d-framework-for-android/" rel="nofollow">http://www.rozengain.com/blog/2011/08/23/announcing-rajawali-an-opengl-es-2-0-based-3d-framework-for-android/</a>) to create a 3D sphere with an ima... | java android | [1, 4] |
1,706,170 | 1,706,171 | Trouble having java and javascript interact | <p>I have seen several questions similar to mine, but none seem to quite answer my question. </p>
<p>I have some javascript in my assets folder, and i want to use a WebView (or any other way that works) to bind a java object to it so that my server can send updates to my js, and then have my js call my java object. </... | java javascript android | [1, 3, 4] |
2,764,744 | 2,764,745 | radio button change style on checked | <p>i have a set of radio buttons. </p>
<pre><code><ul class="ProductOptionList">
<li>
<label>
<input class="RadioButton" type="radio" value="157" name="variation[1]"/>
Lemon (200 ml)
</label>
</li>
<li>
<label>
<input class="RadioButton chosen" type="radio" value="160... | javascript jquery | [3, 5] |
2,296,708 | 2,296,709 | Help translating c++ code to java in the cutting sticks problem | <p>Im not used to code in java so i need help to translate this code to from c++ to java in a functional way. I tried it myself but the result was always 0. It is the CUTTING STICKS PROBLEM.</p>
<pre><code>#include <iostream>
#define MAXINT 2147483647
#define NCUTS 50
using namespace std;
int main() {
in... | java c++ | [1, 6] |
2,129,193 | 2,129,194 | jquery sucess dropdown | <p>//codes</p>
<pre><code> success: function(html){
// this is for input box - working
document.getElementById('val').value='';
$('#val').value='';
// how do i set it for dropdown box to reset after sucess?
document.getElementById('val2').value='';
$('#val2').value='';
}
</code></pre>
<p>Once user su... | javascript jquery | [3, 5] |
5,559,780 | 5,559,781 | issue with HttpURLConnection OutputStream | <p>I have the following code:</p>
<pre><code>String urlString = API_URL + "/checkins/add";
String inputdata = "v=20111111"+"&venueId="+venueid+"&broadcast="+broadcast+"&oauth_token="+mAccessToken;
String content="";
try {
URL url = new URL( urlStr... | java android | [1, 4] |
3,426,741 | 3,426,742 | Android - how to close notification in service started by startForeground? | <p>Say I start a notification via the following in a service of my app:</p>
<pre><code>notification = new Notification(R.drawable.icon, getText(R.string.app_name), System.currentTimeMillis());
Intent notificationIntent = new Intent(this, mainActivity.class);
PendingIntent pendingIntent = PendingIntent.getA... | java android | [1, 4] |
2,793,899 | 2,793,900 | Load php page results into div with ajax with link? | <p>I am trying to replace an iframe, essentially. I would like to load the result of a php page into a div. The results are being parsed through URL - <a href="http://example.com/view.php?id=1" rel="nofollow">http://example.com/view.php?id=1</a> - for exmaple. Sorry, I don't have much experience with javascript. </p>
... | php javascript | [2, 3] |
3,696,056 | 3,696,057 | What is the most cheap way to mix `this` and other selectors in JQuery | <p>what is the best way to mix <code>this</code> with other selectors in JQuery <code>:filter</code>,<code>[id=""]</code> and stuff like this, lets assume we wanna read <code>.val()</code> of an input with <code>name="input"</code> in form with that function is bind to it. </p>
<p>and if possible do they cost differe... | javascript jquery | [3, 5] |
2,357,160 | 2,357,161 | jQuery calling post URL | <pre><code> $.post('controller/method', $("#form").serialize , function(data) {
//alert data
});
</code></pre>
<p>It works if domain name is www.domain.com
It doesn't work if domain name is domain.com/category/</p>
<p>What should I do here? Or I must use PHP to help me? Thanks.</p>
| php jquery | [2, 5] |
1,146,559 | 1,146,560 | Return dynamic object | <p>I have a simple data layer routine that performs a password update, the user passes in the following:</p>
<ul>
<li>Current Password, New Password, Confirm New Password.</li>
</ul>
<p>In my data layer (proc) checks a couple things such as:</p>
<ol>
<li>Is the current password correct?</li>
<li>Is the new password ... | c# asp.net | [0, 9] |
3,784,876 | 3,784,877 | why can't I access this.property in my object literal? | <p>I've just been restructuring my code into objects and using the this keyword, I've got this problem whereby, setting the prop works, but then when the second method fires, <code>myProp</code> is undefined. I've noticed if I use <code>myObj</code> to set and get rather than this it works fine. What's the difference h... | javascript jquery | [3, 5] |
439,445 | 439,446 | Dialing phone number from Windows Gadget | <p>I'm calling JavaScript function from my Gadget application to dial phone number.</p>
<p>C# code:</p>
<pre><code>HtmlPage.Window.Invoke("CallPhone", string.Format("callto://{0}", Number));
</code></pre>
<p>Java script code:</p>
<pre><code>function CallPhone(Number) {
wnd = window.open(Number);
</code></pre>
<p>}... | c# javascript | [0, 3] |
5,216,960 | 5,216,961 | How to organize the custom utility JS functions of my website | <p>During the time my number of custom functions plus initialize calls of my jQuery plugins have grown causing a visual and functional mess.</p>
<p><strong>MY CUSTOM FUNCTIONS</strong></p>
<p>I am looking for a method to organize my custom functions into a library. </p>
<ul>
<li>should I create an object and organiz... | javascript jquery | [3, 5] |
5,898,990 | 5,898,991 | Web application to accept Tamil font | <p>I am just developing a web application using ASP.Net, which accepts TAMIL font. Here, if I type something in the textbox in tamil, it should be getting saved with the same values whatever I type in it. </p>
<p>For this I just changed the font style of that textbox to BAMINI, with this BAMINI style I can type the wo... | c# asp.net | [0, 9] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.