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,936,873 | 3,936,874 | HOw to call custom validtor on page load? | <p>On the page load i wanna call a custom validator which validates my page and display corresponding error messages.
How can i do this?</p>
<p>I am using javascript in the custom validator.</p>
| c# asp.net | [0, 9] |
3,951,457 | 3,951,458 | Does the browser "cache" javascript code? | <p>I was fine tuning a page that is heavy on jquery and stumbled across this website:</p>
<p><a href="http://www.componenthouse.com/extra/jquery-analysis.html" rel="nofollow">http://www.componenthouse.com/extra/jquery-analysis.html</a></p>
<p>When I click on the "Run Test" button the first time, the numbers are way h... | javascript jquery | [3, 5] |
418,047 | 418,048 | inline image captions plugin? | <p>Is there such thing as an inline image caption plugin for jquery?</p>
<p>So a user can someone select a point on an image, and then insert a text caption. Whenever someone hovers over the image, the caption displays.</p>
<p>Flickr has this type of functionality.</p>
| javascript jquery | [3, 5] |
5,731,791 | 5,731,792 | How to create .rdlc files? | <p>i am using visual studio 2010 for generating reports using report viewer... As i am totally new for that i do'nt know how to create RDLC file and how to use it... Please tell me also that what connection between reportviewer and rdlc please help me out. Thanks</p>
| c# asp.net | [0, 9] |
1,463,426 | 1,463,427 | Can you refer to the element on which a handler called a function? | <p>I usually never use this programming style, but thought I would give it a try just so I know whats up with it.</p>
<p>Here is my input tag HTML:
<code><input id="Read" type="checkbox" onclick="readClicked()" checked></code></p>
<p>And my associated function:</p>
<pre><code>function readClicked() {
conso... | javascript jquery | [3, 5] |
2,581,355 | 2,581,356 | What is the most elegant way to make this kind of string array change? | <p>If I have an array of string like:</p>
<pre><code>var myStrArr=['book-in-my-house',
'chair-in-my-house',
'bed-in-my-house',
'TV-in-my-house'];
</code></pre>
<p>I would like to change <strong><em>myStrArr</em></strong> to <strong><em>herStrArr</em></strong> like:</p>
<pre>... | javascript jquery | [3, 5] |
2,600,553 | 2,600,554 | my array "is not a function" error message | <p>I am trying to store some DOM information into an Array so I can use it elsewhere.</p>
<p>This works if I use a Variable, but if I try to use an Array I get "Arrayname is not a function" error message? I'm not sure why this would work in a Variable and not an array.</p>
<p>This is the code I'm running:</p>
<pre>... | javascript jquery | [3, 5] |
4,998,721 | 4,998,722 | response.redirect doesnt work | <p>When control reaches response.redirect line then the following error is produced in browser.
the url in response.redirect is correct.<br>
The page isn't redirecting properly</p>
<p>Firefox has detected that the server is redirecting the request for this address in a way that will never complete.</p>
<pre><code>* ... | c# asp.net | [0, 9] |
2,429,551 | 2,429,552 | How to represent 2 parent child drop down in javascript? | <p>I have 2 drop down lists, when the user selects dropdown#1 then I need to update dropdown#2 with options that are relevant for the dropdown#1 selection.</p>
<p>e.g.</p>
<p>Dropdown#1 has car manufacturers: ford, toyota, honda</p>
<p>Dropdown#2 will be cars for that specific manufacturer.</p>
<p>How should I go ... | javascript jquery | [3, 5] |
4,543,038 | 4,543,039 | using closest().find().text() | <p>Hi guys i previously asked a question and got a good solution. here is the question:</p>
<p><a href="http://stackoverflow.com/questions/2536892/jquery-how-to-find-an-element-which-is-comming-2-elements-before-current-element">http://stackoverflow.com/questions/2536892/jquery-how-to-find-an-element-which-is-comming-... | javascript jquery | [3, 5] |
242,901 | 242,902 | JQuery traversal problem | <p>I am trying to select the DIV with the class 'container'.</p>
<pre><code><a href="#" class="playButton">Start</a>
<div class="overlay">
<div class="overlayClose">Close</div>
<div class="container">Foo</div>
</div>
</code></pre>
<p>Using variations o... | javascript jquery | [3, 5] |
4,393,558 | 4,393,559 | What is wrong with this javascript | <p>ARGH! What's wrong with this??</p>
<pre><code>$(document).ready(function() {
var monkeyTrouble = $('#monkeyTrouble').attr('rel');
if (monkeyTrouble = "banana") {
alert("oooh oooh ahh ahhh");
}
});
</code></pre>
| javascript jquery | [3, 5] |
2,848,038 | 2,848,039 | Create an Event Handler whenever a new Node is added in treeview | <p>I want to write a custom class in which whenevr I add a node to treeview it should call an event. so that I can run it recursively.</p>
| c# asp.net | [0, 9] |
1,855,008 | 1,855,009 | Detect specific devices within android application | <p>Is there a way of telling, within the application the spcific device model that the app is being run from. For example for it to be able to tell the difference if the app is running on a Nexus S or a HTC Desire or the Samsung Galaxy Tab?</p>
| java android | [1, 4] |
4,129,892 | 4,129,893 | jQuery select child of closest element | <p>Basically I want to be able to select the div level2 parent from the child level4 div. My application does not has such classes, otherwise I'd just select level2 :)</p>
<pre><code><div class="level1">
<div class="level2">
<div class="level3">
<div class="level4"></div>
... | javascript jquery | [3, 5] |
5,431,331 | 5,431,332 | How can I get the difference between 2 dates in days, hours and minutes | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/1968167/difference-between-dates-in-javascript">Difference between dates in JavaScript</a> </p>
</blockquote>
<p>How can I get the difference between 2 dates in hours, minutes and seconds? This is my code which ... | javascript jquery | [3, 5] |
1,661,322 | 1,661,323 | How to know if javac compiled cleanly using system() in python | <p>In python, how can I tell if a certain system() call is successful? In the program I am writing I need to know if a java program compiled correctly using javac, which is called using system() (in the python program). So I need to know if javac threw any exceptions, if there were any syntax problems with the java pro... | java python | [1, 7] |
4,447,649 | 4,447,650 | How to clear all the textbox fields in a parent page using jquery | <p>Is their any way to clear all the textbox values in a parent form using jquery or javascript.
Now i am clearing each fields using</p>
<pre><code>var parentDoc1 = window.opener.document;
parentDoc1.getElementById(id).value="";
</code></pre>
| javascript jquery | [3, 5] |
4,799,650 | 4,799,651 | jQuery - has class that starts with | <p>What would be the best way to get all divs that have any class that starts with <code>input</code>? In other words, <code>a</code> and <code>b</code> should be returned from what's below, but not <code>c</code>.</p>
<pre><code><div id="a" class="input1 foo"></div>
<div id="b" class="foo input2">&... | javascript jquery | [3, 5] |
1,965,084 | 1,965,085 | Detect scroll on bottom on iphone | <p>I want to detect if i'm at the bottom of a page. This works fine on any browser - but not on iPhone.</p>
<pre><code>if ($(window).scrollTop() == ($(document).height() - $(window).height())){
alert('on bottom');
}
</code></pre>
<p>What i'm doing wrong?</p>
| javascript jquery | [3, 5] |
5,816,637 | 5,816,638 | is there a security issue when using Jquery to develop asp.net web applications | <p>I'm new to web applications. I have developed a web application using ASP.net. After hearing about jquery and going through some examples, I changed the existing application and used jquery to do most of the ajax work. On the server side I used html handlers for db connections and data processing.</p>
<p>Because I'... | asp.net jquery | [9, 5] |
3,748,314 | 3,748,315 | Any SDK function in Java to Push number unto a Stack and calculate the average? | <p>I tried to Google for an answer but I think I am using wrong keywords. What I am trying to do is - I have a collection of numbers (ints), and as I add new numbers I am computing the new average. I noticed that as my array grows, once I get to a certain count of elements (lets say 200), the calculation time becomes ... | java android | [1, 4] |
5,266,867 | 5,266,868 | How to Center Facebox | <p>I like to center facebox on a project im working on. when i added this code it will center</p>
<pre><code> $(document).bind('close.facebox', function() {
$(document).unbind('keydown.facebox')
$('#facebox').fadeOut(function() {
$('#facebox .content').removeClass().addClass('content')
$('#facebox... | javascript jquery | [3, 5] |
543,750 | 543,751 | How to update a label when a dropdown is changed | <p>My page has a label and a drop down list, which has time zones in it. Is it possible to get the label text to change automatically to display the selected value from the drop down, every time the value in the times zones dropdown is changed? How would I go about doing it?</p>
| c# asp.net | [0, 9] |
5,805,304 | 5,805,305 | When we use a thread, will it work as a parallel process or a serial process in C#? | <p>When we use a thread, will it work as a parallel process or a serial process in C#?</p>
| c# asp.net | [0, 9] |
3,873,387 | 3,873,388 | allow third parties to change elements | <p>Take the <a href="http://demo.tutorialzine.com/2010/03/sponsor-wall-flip-jquery-css/demo.php" rel="nofollow">following plugin</a>- What would be the best way to actually allow third parties to make changes to the image,description and link elements - like allow each individual their own block ,as in membership or ad... | php jquery | [2, 5] |
5,568,815 | 5,568,816 | Session expired before timeout | <p>I set sessiontimeout in web.config file like following.</p>
<pre><code><sessionState timeout="120"
cookieless="false"
mode="InProc"
/>
</code></pre>
<p>Some times above code working fine.But many times session expired after 10 to 15 minutes automatically.</p>
<p>and this errors ex... | c# asp.net | [0, 9] |
469,433 | 469,434 | Employee Activity Monitoring Software? | <blockquote>
<p>Right now I am working on EAMS (Employee Activity Monitoring
Software), Includes following structure. Server (Monitor) -Client
(nth) number</p>
<p>Every client have some sort of services to be installed that will
fetch his screen and browsing data and send to server using some port;
Same... | java php asp.net | [1, 2, 9] |
2,888,488 | 2,888,489 | How to switch activity with item specific data sent | <p>I've had a look around, and it might be because I'm not sure what I'm looking for, but I can't find out how to do something I presume should be quite easy with android.</p>
<p>I have an array of data to display on the screen. This data is a class that holds a database key, name and image.</p>
<p>I'm currently disp... | java android | [1, 4] |
1,143,635 | 1,143,636 | How do I make a list of items where each item has associated information in Android? | <p>How do I make a list of items where each item has associated information in Android?</p>
<p>For example, I want to be able to have a list of countries and then be able to click on the country and find the population, language, w/e associated with that country.</p>
<p>I found this the following link with shows how ... | java android | [1, 4] |
3,300,615 | 3,300,616 | does android sdk give any convenience methods for converting Shape to Path? | <p>the Canvas class does not take Shape as a parameter for any of its methods. There is no drawShape or clipShape, etc... So, I need to use Path instead. Does android sdk expose any way to convert Shape to Path or Path to shape? I haven't been able to find relationship any between the 2 classes...?</p>
<p>Thank yo... | java android | [1, 4] |
1,733,453 | 1,733,454 | Parsing Line Breaks in PHP/JavaScript | <p>EDIT: Ok, thanks for your help guys. Using zerkms' suggestion, I have managed to get <code><br></code> tags inserted instead of carriage returns, so it is displayed properly on the page and doesn't break the javascript. The problem is now that when the user clicks on this text, it becomes a textarea and is the... | php javascript | [2, 3] |
3,910,326 | 3,910,327 | how can I get asp.net aspx page name from javascript? | <p>Trying to get the aspx name from the current page from javascript?</p>
| javascript asp.net | [3, 9] |
144,448 | 144,449 | override action in JavaScript / jquery | <p>In my requirement, a user can select multiple check-boxes.
however after checking each check-box i need to call the url and pass selected checkbox value with time-delay of 3 seconds.This delay is required , so that user can select/de-select another checkbox , old action should be canceled and new selected value(s) s... | javascript jquery | [3, 5] |
2,613,030 | 2,613,031 | How To find Out if Element is Wrapped by jQuery? | <p>How can i find out if an Object is Wrapped by jQuery.</p>
<pre><code>var obj = $('div');
if(obj is a jQuery wrapped object)
{
then do something
}
</code></pre>
<p>I am quite new in the Javascript World.</p>
<p>Thanks in advance.</p>
| javascript jquery | [3, 5] |
3,352,200 | 3,352,201 | How do i convert this code snippet to c# | <p>I am trying to figure out <a href="http://stackoverflow.com/questions/4747702/implementing-javascript-confirm-box-in-code-behind-on-drop-down-boxs-selected-in">how to display confirm box when drop down list's selected indexchanged</a> event is fired. </p>
<p>Browsing thru some forum I came across the following sol... | c# javascript asp.net | [0, 3, 9] |
5,611,138 | 5,611,139 | ASP.NET save files from dynamically added FileUpload controls | <p>I'm building an ASP.NET UserControl where users of the website can upload several pictures at once. I'm doing it the old fashioned way by letting the user enter the amount of FileUpload controls wanted and then add them dynamically from C# to a asp:Panel control. </p>
<p>While this works, the values/files from the ... | c# asp.net | [0, 9] |
2,228,231 | 2,228,232 | How to use shouldOverrideKeyEvent to trigger Javascript function | <p>I'm currently building a simpel app for Android with a webview that loads a page that should be controlled from the app.
For this, I want to completly override the default keybehaviour, and just call a function with the keycode from the key that is pressed. </p>
<p>For this, I've tried the following</p>
<pre><cod... | javascript android | [3, 4] |
3,412,819 | 3,412,820 | jQuery: sharing function between page code and document.ready code | <p>I have some nice dialogues defined as such in jQuery:</p>
<pre><code><script type="text/javascript">
$(document).ready(function() {
$( "#someDialog" ).dialog({
autoOpen: false,
model: true,
buttons: {
"Do Something": function() {
var cleanInput = saniti... | javascript jquery | [3, 5] |
5,993,354 | 5,993,355 | ASP.Net auto-generated Admin tool | <p>I need to create an administrative site for managing my web site's db. I don't want to build this myself, I simply want the framework in place so that I can add customization myself after it is in place.</p>
<p>Django has a great auto-generated admin. What's an equivalent auto-generated admin site built under asp.n... | c# asp.net | [0, 9] |
1,317,538 | 1,317,539 | How to find a form using jquery | <p>I have multiple forms on a page. How do I find a form by its name? I think in pure javascript it is something like document.forms['FormName'] .</p>
<p>I want to do a form.submit. But I want to be able to select a form by its name.</p>
| javascript jquery | [3, 5] |
2,978,789 | 2,978,790 | Window object as Global Variables Inside Function always undefined | <p>Hi I dont know what I'm missing but if its always says undefined.</p>
<pre><code>function report_grid() {
$.ajax({
type: "POST",
url: "filter_option.php?action=filter",
data: $('#form1').serialize(),
async: false,
success: function(rdata) {
window.my_var = rdata
}
})
}
$('#onscreen')... | javascript jquery | [3, 5] |
2,218,295 | 2,218,296 | The complexity of member looking up: Python Vs. Javascript | <p>I am curious about the complexity of Python and JS 's looking up: </p>
<p>Python supports multi-inheritance, which affects the member lookup. Specifically, when referencing a member from an instance of a class, the process will start from the instance's dict, then to the class of the instance, then up to the super ... | javascript python | [3, 7] |
3,269,294 | 3,269,295 | Looping through two different selectors at the same time | <p>I am using JQuery to calculate some totals figures and I have run into a problem.</p>
<p>Let's say I have two sets of inputs, each with a unique name.</p>
<pre><code>$('[name="quantity\\[\\]"]')
$('[name="price\\[\\]"]')
</code></pre>
<p>I want to cycle through each set of inputs at the same time so that I can ch... | javascript jquery | [3, 5] |
100,896 | 100,897 | How to stop jquery animate at onclick? | <p>I'm new in jquery, I don't know much about it, but I need it because I'm building a template...Here is situation, I have a div which I want to slide in to page ( from outside, top) when I click on link, and when I click anywhere else on the page to slide out... This is what I have:</p>
<pre><code>var tmpl_name = '&... | javascript jquery | [3, 5] |
5,822,996 | 5,822,997 | Why isn't my text saving when i leave the activity? | <p>I have a notes app and basically i want it to save the text input and restore it when i return to the activity. But why isn't my code doing that? I tried onRestoreInstancestate and onRestore but it's not working. Any one know how i can save the text input after i exit the app? </p>
<p>notes.java:</p>
<pre><code>p... | java android | [1, 4] |
2,108,218 | 2,108,219 | Changes not being saved back to database | <p>I am trying to connect to my NorthwindDataSet, when the user clicks the button I want the data to be saved back to the database. When I run the code below I get no errors but the data is not saved. I think I am connecting to the DataSet correctly and am not sure why this isn't saving back. </p>
<pre><code>North... | c# asp.net | [0, 9] |
5,468,379 | 5,468,380 | changing the index positioning in InputStream | <p>I have a binary file which contains keys and after every key there is an image associated with it. I want to jump off different keys but could not find any method which changes the index positioning in input stream. I have seen the <code>mark()</code> method but it does not jump on different places.</p>
<p>Does any... | java android | [1, 4] |
719,215 | 719,216 | How to change the weight size of a fragment in android? | <p>Here is the xml-Layout of my fragment view</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="horizontal"
android:weightSum... | java android | [1, 4] |
54,640 | 54,641 | Costs of Switching to Java | <p>I'm a C# dev and I have plans of starting to develop apps targeting Android, which of course means Java. I have heard good things about Mono for Android and the idea of reusing my skill set is appealing, however the licensing cost (for now) is a bit prohibitive to me. On the other hand, from what I can see, Java is ... | java c# android | [1, 0, 4] |
1,245,135 | 1,245,136 | Form submit using jquery & passing values | <p>I want to accomplish the following using jQuery:</p>
<pre><code>frm_rooms.action="create_rooms.php?action=Save";
frm_rooms.submit();
</code></pre>
<p>I tried following jQuery but it doesn't work:</p>
<pre><code>$('#frm_rooms').submit(function(event) <br/>{
$.post("create_rooms.php", { action: "Save" } )... | javascript jquery | [3, 5] |
4,735,351 | 4,735,352 | JQuery Get current ID of Widget | <p>I have have the following</p>
<pre><code><div id="dualList"></div>
</code></pre>
<p>And I have written a plugin but for the sake of testing I have stripped it away. I am having problems with the plugin displaying the id of the div.</p>
<pre><code><script>
(function($) {
$.fn.DualList = func... | javascript jquery | [3, 5] |
5,959,141 | 5,959,142 | array empty on jquery? | <p>I'm trying to learn on making my first dynamic loader from scratch with jQuery (for learning purpose) here is where I got stuck:</p>
<pre><code><script type="text/javascript">
jQuery.learningdynamicloader= function(){
var js = [];
var css = [];
console.log(js,css);
};
</script>
<script... | javascript jquery | [3, 5] |
3,908,780 | 3,908,781 | How can I databind to a string array? | <p>How can I databind a string array (<code>string[]</code>) to a <code>dropdownlist</code>?</p>
<p>Does it implement <code>iEnumerable</code>?</p>
| c# asp.net | [0, 9] |
3,083,057 | 3,083,058 | Javascript - Get Multiple textarea values with jquery | <p>I'm newbie with jQuery. I Want to get value from these two textarea,
I have html like this and jquery below : </p>
<p><strong>Html :</strong></p>
<pre><code><pre>
<a id="send-thoughts" href="">Click</a>
<textarea id="message1" class="message">Hello</textarea>
<textarea id="message... | php javascript jquery | [2, 3, 5] |
162,238 | 162,239 | filtering the records in the second grid according to the selection in the first in .Net | <p>which control can i use?, how to do this .Net?</p>
| c# asp.net | [0, 9] |
4,040,609 | 4,040,610 | Best Way Of Getting Data In Separate Javascript File? | <p>Let me first describe the situation the best I can.</p>
<p>So I am working in a PHP MVC framework. Inside the controller of a method I collect and format the data as it needs to be and I send it off to the view. The view page in turn uses that data but also includes separate javascript script files that also need... | javascript jquery | [3, 5] |
4,714,777 | 4,714,778 | unescape a string | <p>I've looked everywhere, it seems this would be common, and simple. I have a string from a database, "Ros%E9" What is the simplest way to convert it to "Rose" with an accented e?</p>
| java android | [1, 4] |
3,832,746 | 3,832,747 | Search XML file using javascript | <p>I'm trying to make a page where a user may enter a url into an input box, click submit, and the script will return the WebCite page. (WebCite is a url caching service. For example, if I "archive" www.google.com, the archive page is www.webcitation.org/65YgIgei6.) So WebCite has a query syntax that when given a url t... | javascript jquery | [3, 5] |
424,815 | 424,816 | "Diferent" Parallax Scrolling effect | <p>I'm working in my new portfolio, and I want to do a effect like this, in the site:</p>
<p><a href="http://nizoapp.com/" rel="nofollow">http://nizoapp.com/</a></p>
<p>The effect of the iPhone and parts appearing from the sides when we scroll. It's a kind of parallax scrolling.</p>
<p>I tried to search how to do bu... | javascript jquery | [3, 5] |
1,980,294 | 1,980,295 | JS Replace characters with link? | <p>If I have a block of text inside a div like:</p>
<pre><code><div id='t1'>
This is a great testing string. Tomorrow grass is green.
</div>
</code></pre>
<p>and I want to replace all instance of the letter "g" with a link to google, like </p>
<pre><code><a href='www.google.com'>g</a>
</code... | javascript jquery | [3, 5] |
1,608,799 | 1,608,800 | two forms on one asp.net page | <p>I have an asp.net page with a nested master page. Parent master page has form tag like this:</p>
<pre><code> <form runat="server">
...
....
</form>
</code></pre>
<p>and in child master page. I have a side bar where I have another form ( not runat=server") like this:</p>
<pre><code><form method="... | c# asp.net | [0, 9] |
576,110 | 576,111 | Dictionary object accessed by concurrent users in Asp.Net | <p>In Asp.Net page i have a static dictionary object where values can be added and retrieved, When 100's of concurrent users access the page is there any chance my dictionary object may get locked / throw error ?</p>
<p>User can
1) Add new value if it does not exist
2) Retrieve existing value. They cannot modify / d... | c# asp.net | [0, 9] |
126,704 | 126,705 | How to block form submission when the enter key or return key is pressed? | <p>I have a form that I use JQuery, I don't think I need to put code in this post, the question is pretty basic.</p>
<p>But I would like to block the form from submitting when people press the Enter Key or the Return Key.</p>
<p>At the same time, I have textareas, where the user will need to be able to press the Ente... | javascript jquery | [3, 5] |
1,541,995 | 1,541,996 | jQuery expression in PHP | <p>I have tested the following script is working in my PHP page:</p>
<pre><code><script>
function calculate<?=$performance_item_id;?>(){
alert('<?=$performance_item_id;?>');
$.post('complete_calculate.php',{
tid: document.getElementById('performance_item_id<?=$performance_item_id;?... | php javascript jquery | [2, 3, 5] |
5,170,952 | 5,170,953 | Jquery .change() to view currently assigned method | <p>Is there any way I can view the current method assigned to a selects change event.
I have tried. </p>
<pre><code>$('#select').change()
</code></pre>
<p>but that just returns me the change event. I don't really need to do this but would be very handy for debugging. Save me hunting through the code to find the meth... | javascript jquery | [3, 5] |
5,117,923 | 5,117,924 | JavaScript error no Object [object Object] has no method 'dialog' | <p>I have this page where I get that error: <a href="http://www.problemio.com/index_new.php" rel="nofollow">http://www.problemio.com/index_new.php</a>
It isn't a page users see. It is a test page I am working on and I copied the general template from here: <a href="http://www.problemio.com/" rel="nofollow">http://www.p... | javascript jquery | [3, 5] |
2,238,515 | 2,238,516 | window.open() not working in firefox to open new popup window using javascript | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/726761/javascript-open-in-a-new-window-not-tab">JavaScript open in a new window, not tab</a> </p>
</blockquote>
<p>Code</p>
<pre><code><asp:Button ID="btnPopupWindow" runat="server"
Text="Popup Wind... | javascript asp.net | [3, 9] |
5,545,094 | 5,545,095 | How can I write float value in python that can be read natively in Java? | <p>How can I write float value to file in python so that it can be later read in Java with <code>ObjectInputStream#readFloat</code>?</p>
<p>I need high read performance, so I'd like to avoid parsing the float from String.</p>
| java python | [1, 7] |
763,451 | 763,452 | jQuery how can you verify date formatted mm/dd/yyyy is not greater than current date today | <p>How do I verify in jQuery that a date entered on a input text box or value in html such as mm/dd/yyyy is not greater than todays date. Example would be "5/5/2011" would pass as true b/c its not greater than today "6/17/2011", but "5/5/3011" would be greater than today and should return false. Is there a simple func... | javascript jquery | [3, 5] |
1,672,060 | 1,672,061 | Problems simulating click of ASP.NET button | <p>I have some code like this</p>
<pre><code><asp:Button ID="cancelDummyButt" runat="server" CausesValidation="False"
Text="cancel" onclick="cancelDummyButt_Click" Enabled="True" />
</code></pre>
<p>(Javascript:)</p>
<pre><code>buttid = '<%=cancelDummyButt.ClientID.ToString%>';
eltoclick = document.... | asp.net javascript | [9, 3] |
1,454,606 | 1,454,607 | Merge two JavaScript objects | <p>I've got a big JavaScript object literal I am reusing with very few modifications each time. It would be good to make a variable containing most of the object, then reference that each time I need it.</p>
<p>But how can I do that? I tried to do this, but it didn't work:</p>
<pre><code>var settings = {
legend: {
... | javascript jquery | [3, 5] |
77,403 | 77,404 | Table generation from Code Behind | <p>I know what my fault is, but not sure how to resolve. I am trying to generate an asp:table from Code Behind.</p>
<p>The table should be 3 cells wide... I'll work on the row limit later.</p>
<p>Here's my code:</p>
<pre><code>GallaryImage g = new GallaryImage();
var images = g.GetAll();
photos.Styl... | c# asp.net | [0, 9] |
1,741,942 | 1,741,943 | Create javascript property like C# property | <p>Is it possible to create a property on a javascript object that behaves similar to a property in C#.</p>
<p>Example:
I've created an auto-sizing textarea widget using dojo. In order to get the "value" property out of my widget, I've hooked up to the onchange event and I'm setting a variable everytime the value of ... | c# javascript | [0, 3] |
1,598,381 | 1,598,382 | toggle highlight tr/td on live click, but don't toggle if clicking on input/select | <p>I hope someone can assist me, I think that it must be straight forward but I think I'm missing something... I've made a table that will highlight onclick or de-highlight if the same cell is clicked. This I don't have a problem with. What I'm having a problem with is that it still toggles if I click on an input:text ... | javascript jquery | [3, 5] |
1,111,538 | 1,111,539 | Delete a line in file (Android/java) | <p>In my app (Android) I create a file. To this file I add a line by line after some situation. Then I send a data to the server line by line. When all transmission is OK I erase the file, like this:</p>
<pre><code>fos_kasowanie_pliku = openFileOutput(FILENAME, Context.MODE_PRIVATE);
fos_kasowanie_pliku.write("".getBy... | java android | [1, 4] |
2,670,780 | 2,670,781 | jQuery .toggle() breaking a line | <p>I'm working on <a href="http://beta.mobilityhosting.com/services/" rel="nofollow">http://beta.mobilityhosting.com/services/</a> and wanting to use jQuery's .toggle() function on the "Learn More..." links. I have it implemented on the first link but when the hidden content is revealed, a line is breaking.</p>
<p>I c... | javascript jquery | [3, 5] |
4,757,227 | 4,757,228 | How to cancel navigation when user clicks a link? | <p>I'm trying to load some stuff using AJAX when a user clicks a link, but I want the link to actually go somewhere so that the app still works when javascript is disabled. Is there any way to just do something with javascript and cancel navigation when a link is clicked?</p>
<p>What's the best practice? Can that be d... | javascript jquery | [3, 5] |
3,646,879 | 3,646,880 | Get web page height through jQuery | <p>How can I get the height of viewable web page of browser with jquery? I have tried <code>$(window).height()</code> but it did not return accurate result.. Thanks..</p>
| javascript jquery | [3, 5] |
1,218,843 | 1,218,844 | How to implement roles in web application | <p>I was create a website it runs perfectly. But I have one problem am having two folders, called <code>user</code> and <code>admin</code>. Both folders contain a home.aspx file. Suppose you are a user, not an admin, and you have logged in using a username and password.</p>
<p>Given an URL like this: <code>http:local... | c# asp.net | [0, 9] |
309,775 | 309,776 | speeding up the recursive function | <p>The function below, will change the <code><meta ... content="...densityDPI=250dpi" /></code>
so the density DPI will be reduced 20dpi each time it loops.</p>
<p>is there a way I can speed this up, so it does it in about 4 loops by comparing the ratio of previous values...? I think there should be a something ... | javascript jquery | [3, 5] |
4,658,357 | 4,658,358 | Why doesn't $(this) work inside a javascript function? | <p>I've attached an onlick event to a function. I want to reference the element being clicked from inside the function so I can change its inner HTML, but why is it not working? Is there any other way to reference the clicked element?</p>
<p><strong>HTML</strong> </p>
<pre><code> <div class="save_button" on... | javascript jquery | [3, 5] |
3,324,270 | 3,324,271 | Open excel file in asp.net | <p>I am trying to open a Excel(.xls) file from asp.net.The code i am using is given here.It is showing a save as dialog box which i don't want .Please help me !!!</p>
<pre><code> Response.ContentType = "application/xls";
Response.Flush();
Response.WriteFile(fileName);
Response.End();
</code></pre>
| c# asp.net | [0, 9] |
5,480,558 | 5,480,559 | SMSManager and Pending Intent | <p>I have a question about an SMS app i am creating (learning purposes).</p>
<p>On sending an SMS i would like to have a toast message appear once it has been deleivered (or not)</p>
<p>Problem is once i have hit send i would like to close the activity but still have the toast message (in this case) appear giving me ... | java android | [1, 4] |
739,572 | 739,573 | Is it possible to create ASP.NET pages without the autogenerate javascript? | <p>As a test, I wanted to have an ASP.NET page rendered without the auto-generated javascript. Is this possible?</p>
| asp.net javascript | [9, 3] |
2,381,908 | 2,381,909 | how to call java function from c++? | <p>Hello all
how can i call java function from c++ application ( not using cmd methods.. )
Thanks </p>
| java c++ | [1, 6] |
2,204,086 | 2,204,087 | How to display a wait gif until image is fully loaded | <p>Most popular browsers, while rendering an image, they display it line-by-line top-to-bottom as it loads.</p>
<p>I have a requirement that a wait gif should be displayed while the image is loading.
When the image is fully loaded then it should be displayed instead of the wait gif.</p>
| javascript jquery | [3, 5] |
3,133,268 | 3,133,269 | Reading large file using byte[] gives error | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/6094306/hash-sha1-large-files-over-2gb-in-c-sharp">Hash SHA1 large files (over 2gb) in C#</a> </p>
</blockquote>
<p>I have a large file in size of terms and it gives me error "Exception of type 'System.OutOfMem... | c# asp.net | [0, 9] |
3,281,094 | 3,281,095 | Adding break every 2 consecutive floated elements (nth:child) | <p>I created this fiddle so that you can see what i am trying to do easily.
I would like to add that break after every 2 consecutive div elements (div.column) </p>
<p>Fiddle example:
<a href="http://jsfiddle.net/j5qS5/" rel="nofollow">http://jsfiddle.net/j5qS5/</a></p>
<p>I tried:</p>
<pre><code>$(".column:nth-child... | javascript jquery | [3, 5] |
4,454,021 | 4,454,022 | Use class names to load corresponding image paths | <p>How could I write javascript that iterates through a table, grabs the class, and then replaces with an image? So for example I have a table with columns that have numeric classes appended to them: </p>
<pre><code><td class="images 12-345"></td>
<td class="images 98-763"></td>
</code></pre>
... | javascript jquery | [3, 5] |
3,965,757 | 3,965,758 | Is there a JavaScript way to do file_get_contents()? | <p>Here is the <a href="http://php.net/manual/en/function.file-get-contents.php" rel="nofollow">PHP documentation</a></p>
<p>Here is how I would use it in an Ajax call, if I don't find a pure client way to do this.</p>
<pre><code>$homepage = file_get_contents('http://www.example.com/');
echo $homepage;
</code></pre>
... | php javascript | [2, 3] |
1,841,486 | 1,841,487 | Unable to use javascript with a php file | <p>I have some experience with javascript but I cant seem to get it working
inside one particular .php file. </p>
<p>I've tried placing the javascript code inside this php file and in an external js file. </p>
<p>The .php file has 2,500 lines of code, I'm guessing I need to structure this code in order to get javasc... | php javascript | [2, 3] |
3,843,423 | 3,843,424 | Using JQuery to set 'dirty' elements back to original values | <p>I have a Javascript object that basically represents a Row in an .NET GridView.
When a user clicks on any row in the grid, all the input elements in that row are 'enabled'.(ie 'Edit' mode). </p>
<p>I run this code depending on which row is selected</p>
<pre><code>$(":input", this._row).attr('disabled', true);
or
... | asp.net jquery | [9, 5] |
1,061,255 | 1,061,256 | JQuery: Hover function, how to add a delay | <p>I have some JQuery that pops up a JQuery Dialog (<a href="http://docs.jquery.com/UI/Dialog" rel="nofollow">http://docs.jquery.com/UI/Dialog</a>) box when you hover over an image like so:</p>
<pre><code> $(document).ready(function() {
$("img").hover(function() {
$("#dialog").dialog();
});
});
<... | javascript jquery | [3, 5] |
343,988 | 343,989 | How to schedule function calls with JavaScript / jQuery | <p>I have a web application that scrapes data from a page on another domain. This data is updated at a specific time several times a week, lets say 2pm on a Wednesday and a Friday.</p>
<p>I have a JS function which scrapes specific data from this page and stores it in a database. How do I go about scheduling this func... | javascript jquery | [3, 5] |
900,565 | 900,566 | 'Neatest' way of adding javascript to a page footer in asp.net | <p>Whenever i want to add a javascript library programatically, say jquery for example, it generally involves making sure there is a <code>placeholder</code> at the footer of my page, then calling a codebehind method that will take a link to the src as a parameter and return an <code>htmlgeneric</code> control, which i... | c# asp.net javascript | [0, 9, 3] |
5,953,363 | 5,953,364 | expand dropdown on focus jquery | <p>I am expanding the dropdown on focus which is same as clicking on the dropdown and selecting an option. </p>
<pre><code> <script type="text/javascript">
$(document).ready(function () {
$('#<%= ddlNature.ClientID %>').focus(function () {
$('#<%= ddlNature.ClientID %... | jquery asp.net | [5, 9] |
4,285,863 | 4,285,864 | jQuery - multiple event listeners for same button | <p>Say I have an button with an id:</p>
<p><code><input id='someButton' /></code></p>
<p>I want to attach an event listener on this button:</p>
<pre><code>$('#form').on('click', '#someButton', function() {
alert("My listener called");
</code></pre>
<p>});</p>
<p>However, unbeknownst to me, someone previ... | javascript jquery | [3, 5] |
3,394,210 | 3,394,211 | Java move <Preference> from one PreferenceScreen to another? | <p>I'm trying to do something similar to iOS editable UITableView. I have a list of "added items" if the user clicks on "Add new item" he is taken to a PreferenceScreen with multiple <code><Preference></code> elements, onclick I remove them from this screen and add it to the "Added list" (actually a <code><Pre... | java android | [1, 4] |
5,482,063 | 5,482,064 | How to find the number of HTML elements with a name that starts with a certain string in c#? | <p>I'm not sure if the topic describes my problem very well but I am creating some HTML elements (textboxes) on the fly with jQuery and I never know how many I will create (it loops through a database). I then want to get all the elements in the code behind and perform some actions (insert them into another database).<... | 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.