Unnamed: 0 int64 302 6.03M | Id int64 303 6.03M | Title stringlengths 12 149 | input stringlengths 25 3.08k | output stringclasses 181
values | Tag_Number stringclasses 181
values |
|---|---|---|---|---|---|
1,169,251 | 1,169,252 | JQuery On Select change assign value to variable and reload script | <p>Is it possible at all to be able to assign the selected value of a select and assign it to the variable of a script and re-run the script?</p>
<p>Here is my current code sample:</p>
<pre><code><select onchange="reload_script;">
<option value="123">Select 123</option>
<option value="456">... | javascript jquery | [3, 5] |
2,518,333 | 2,518,334 | Why does my if condition prevent either clause from executing? | <p>I'm trying to re-write the URLs of a set of links that I select using a jQuery class selector. However, I only wish to re-write the links that don't already have a <em>href</em> attribute specified, so I put in an if/else construct to check for this... However, it's not working. It does work without the if else stat... | javascript jquery | [3, 5] |
2,544,763 | 2,544,764 | Display word/pdf/excell etc. files in browser. (Asp.net , C#.net 2008) | <p>I have a requirement where in need to display the Pdf / Word doc(any version) or excel in the browser. Something similar to the GMAIL feature. How can I achieve this?
I am using Asp.net with code behind as C#. Application is in 2008</p>
<p>Thanks in advance</p>
| c# asp.net | [0, 9] |
1,503,649 | 1,503,650 | How do i reset values of dynamically created controls on ASP .NET c# page? | <p>i have an array of buttons added to a panel control and need to reset them to their original values, is this possible pragmatically?</p>
<pre><code> protected void Page_Load(object sender, EventArgs e)
{
RenderTable();
}
private void RenderTable()
{
Button[] board = new Button[9];
for(int i =0; i <bo... | c# asp.net | [0, 9] |
4,951,288 | 4,951,289 | Jquery variable not set | <p>In the top part of my document I have this Jquery code:</p>
<pre><code>// RATING
$('.rateit').click(function(){
var position = $(this).position();
});
</code></pre>
<p>In the footer I have a ajax call:</p>
<pre><code> jQuery.ajax({
url: frm.attr('action'), //your server side script
dat... | javascript jquery | [3, 5] |
4,980,298 | 4,980,299 | Using JavaScript to switch through tabs without changing layout? | <p>My webpage is at <a href="http://sarahjanetrading.com/js/j/index.html" rel="nofollow">http://sarahjanetrading.com/js/j/index.html</a></p>
<p>I have done all the layout and coding. I want the tabs to toggle when clicked over them. I tried google but was in vain. I am willing to achieve the effect using either JavaSc... | javascript jquery | [3, 5] |
5,744,645 | 5,744,646 | Setting the value of an input field without refreshing the page | <p>I am trying to use AJAX to auto complete the users text. Right now I got AJAX to return the results I need for the auto complete feature to the 'suggestions' div as the user types. However, what I am trying to accomplish is a dropdown coming out of the input field ("prod-name") with suggestions as options where the ... | php javascript jquery | [2, 3, 5] |
795,266 | 795,267 | using jquery to load data from mysql database | <p>I'm currently using jquery's ajax feature or whatever they call it. To load data from mysql database. Its working fine, but one of the built in features of this one is to load all the data which is on the database when you press on backspace and there's no character left on the text box.</p>
<p>Here's my query:</p>... | php jquery | [2, 5] |
4,674,960 | 4,674,961 | need to get the left property of an object | <p>I can't get the left property of an object</p>
<p>i've tried</p>
<pre><code>$('myobject').left() //it doesn't work`
$('myobject').css().left() //invalid property
$('myobject').css('left') //invalid property
</code></pre>
<p>i've been using offset().left which is totally wrong, i need to get the left property of a... | javascript jquery | [3, 5] |
4,012,200 | 4,012,201 | Is there a C# equivalent to File.separator in Java | <p>How does C# cope with file separators? Is it always assumed the file separator is "\" (or "\\" and does this have to be escaped like this?</p>
| c# java | [0, 1] |
4,478,182 | 4,478,183 | JQuery need to clear a text box when clicking calendar button | <p>I have a textbox with calendar button. Here my requirement is I need to clear the text box when user clicks Calendar Image control. Please provide JQuery for this. </p>
<p>Thanks in advance.</p>
| c# asp.net jquery | [0, 9, 5] |
2,560,594 | 2,560,595 | In Asp.net (c#) ,how to store an image as binary(bytearray)? | <p>i need to store a image(system.web.ui.image) in a sql[i use linq],for that i need to convert it into Binary(System.Data.Linq.Binary)....how to do this ?</p>
| c# asp.net | [0, 9] |
3,239,956 | 3,239,957 | How can I add a new row to my datagrid? | <p>Currently, it's outputting everything on one row. How can I separate the rows?</p>
<p>For example, the code is outputting:</p>
<pre><code><tr>
<td>blah</td>
<td>blah</td>
<td>blah</td>
</tr>
</code></pre>
<p>When it should be:</p>
<pre><code><tr>
<td&g... | c# asp.net | [0, 9] |
4,055,155 | 4,055,156 | automatically submit a file in jquery | <p>how would I automatically submit a form to a php file in jquery. I have this form right now:</p>
<pre><code> <form action = 'add.php' method='get'>
<input type='hidden' name = 'title' value='$title'>
</form>
</code></pre>
<p>I ask this because I want to use this to pass a post variable to anot... | php jquery | [2, 5] |
2,551,463 | 2,551,464 | how to add new datatable to dataset at first position | <p>i have one dataset with 3 data tables again i have to add one more data table in same dataset at first position(Ex:mydataset.tables[0]th position) .can any one help me regarding this.</p>
| c# asp.net | [0, 9] |
2,346,964 | 2,346,965 | How to get a form processing event | <p>My code is as simple as like this</p>
<pre><code>$(document).ready(function(){
$('#somebutton').click(function(){
$('#someformid').submit();
return false;
});
});
</code></pre>
<p>During this form submit ,normally the page will wait for 1 or 2 sec for the load ,in this mean time user ... | javascript jquery | [3, 5] |
5,141,301 | 5,141,302 | android inline class | <p>This might be a dumb question, but I've been thinking about it for some time and I have no idea what it's really called.</p>
<p>So for Android, for OnClickListeners, OnTouchListeners, etc., you're allowed to do the following:</p>
<pre><code> bio.setOnCancelListener(new OnCancelListener() {
public void ... | java android | [1, 4] |
1,051,163 | 1,051,164 | javascript not execute at live | <p>I am using Visual Studio. My javascript is functioning if I debug it at local host, the function is very simple, photo change at mouseOver.</p>
<p>But after I upload my file to my server, this function is not working. I have tried it on Chrome, Firefox, IE and Safari:</p>
<pre><code>function mouseOver1()
{
var... | c# javascript | [0, 3] |
1,503,054 | 1,503,055 | 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] |
3,273,316 | 3,273,317 | How to remove Main Domain cookie from Sub Domain | <p>is it possible to remove Main Domain cookie from Sub Domain ?I am using single sign on .On logout i want to remove the maindomain cookie </p>
| c# javascript asp.net | [0, 3, 9] |
4,681,734 | 4,681,735 | Android ProgressDialog delayed before showing up | <p>I'm using the ProgressDialog in android to prevent the user from, say, pressing a button multiple times while a long task is updating the UI. </p>
<p>My problem is that the ProgressDialog does not seem to show up after awhile, as it seems to be another thread. </p>
<p>In my experiment I called this ProgressDialog ... | java android | [1, 4] |
90,654 | 90,655 | Jquery Image Slide Up After Page Load | <p>Pls I am working on a website. I want a situation on the home page where an image of a man standing will slide up 1 or 2 seconds after the whole page has loaded. I need someone to help me with a codepen example.</p>
<p>Below is the code I inserted in the head section. I set the image to display:none in css, but whe... | javascript jquery | [3, 5] |
2,735,120 | 2,735,121 | Robust Javascript parser in Java | <p>I am looking for a <em>robust</em> Javascript parser written in Java - by which I mean a Javascript parser that is able to handle most real world Javascript.</p>
<p>I am only interested in <em>parsing</em> Javascript, <em>not</em> in executing it.</p>
<p>I have found Rhino:
<a href="http://groups.google.com/group/... | java javascript | [1, 3] |
5,672,748 | 5,672,749 | jQuery custom draggable control slide without jQuery UI | <p>I have successfully made a custom control-slider, but it's not draggable. I tried searching for solutions online but most of them use jQuery UI. </p>
<p><a href="http://jsfiddle.net/LWabn/1/" rel="nofollow">http://jsfiddle.net/LWabn/1/</a></p>
<p>How do I make the control-slide-button draggable and dynamically upd... | javascript jquery | [3, 5] |
2,648,638 | 2,648,639 | How to get all input elements from page using only plain JavaScript? | <p>How to get all input elements from page using only plain JavaScript ( I have only three ) ? I cannot use any framework because I need to use this in android WebView.</p>
| javascript android | [3, 4] |
3,313,018 | 3,313,019 | asp.net - how do i synchronize users on domain for windows authentication | <p>i am trying to do windows authentication on my site because it is only local on our network:</p>
<p>im using the website administration tool and selected windows authentication, but when i try to choose users for specific roles it does not give me any users that are on my domain</p>
<p>my question is how do i sync... | c# asp.net | [0, 9] |
5,029,786 | 5,029,787 | pdf download functionality asp.net | <p>I am making a web site in asp.net with c sharp.
I need to place a download file functionality(pdf, doc, xls) on one of my web page.</p>
<p>How can I do that?</p>
| c# asp.net | [0, 9] |
2,036,250 | 2,036,251 | Live video stream from Android to server , pc and, android device | <p>I'm going to do my final project on android video streaming ,so i need your help guys.
actually i want to send Live video streaming from Android to server , pc and, android device. Can any body refer to similar <strong>code</strong> or doc. related to this topic. I'll appreciate that. </p>
<ul>
+
</ul>
| java android | [1, 4] |
468,601 | 468,602 | How to display the content coming from .exe file to Web Page | <p>I want to plot a graph from the data coming from a device attached to source. I dont want to store it. So i am just trying to post a sample data using a C# console application and display it on the web page. My C# code is :-</p>
<pre><code>WebRequest request = WebRequest.Create("http://localhost:49537/asp1.aspx");
... | c# asp.net | [0, 9] |
4,729,571 | 4,729,572 | Default select issue for JQuery UI 'selectable' | <p>Below is my JS. When the page loads, I want it to automatically run the function as if its being clicked on. The default selection makes it started selected, but doesn't initiate the function. Any idea on how to make that work?</p>
<pre><code>$(function() {
$( "#selectable" ).selectable({
selected: up... | javascript jquery | [3, 5] |
1,674,404 | 1,674,405 | How to receive notification form web in Android? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/1378671/push-notifications-in-android-platform">Push Notifications in Android Platform</a> </p>
</blockquote>
<p>Hey i want to create notification for my project. The back end is MySQL server. If any user update... | java php android | [1, 2, 4] |
1,911,779 | 1,911,780 | Javascript not working on site | <p>I've recently created my first wordpress site, and have installed it all manually. It's all working fine, except that none of the Javascript on the site works. I think this may have been corrupted when installing the site, as there were a few issues. What needs to be in the site and where in order for Javascript to ... | jquery javascript | [5, 3] |
1,032,523 | 1,032,524 | limiting of strings or numbers in text boxes Java android | <p>How to limit or restrict the words or numbers in the EditText boxes in android Java?</p>
| java android | [1, 4] |
5,769,160 | 5,769,161 | Multiple JQuery actions based on timer | <p>I have a testimonial box that has the testimonial within it, and then I have icons indicating whom provided the testimonial underneath. Connected to the box and right above the icon is a little arrow that can be generated via CSS or an image.</p>
<p>Every 5 seconds, it should change the testimonial content via a fa... | javascript jquery | [3, 5] |
5,209,906 | 5,209,907 | Label id is changing, how to fix this? | <p>I have this asp:label in my page and what I want is to change the text from time to time. But label id is changing from page to page when i run the code. its been appended with "ctl00_bh_" something...</p>
<p>how to fix this?</p>
<p>here are my code snippets.</p>
<pre><code>protected void Page_Load(object sender... | javascript asp.net | [3, 9] |
5,619,874 | 5,619,875 | Converting Microsoft Word Smart Quotes to Straight Quotes | <p>We have a program where the user needs to do a Copy-Paste of some content from Microsoft Word into a HTML editor (Visual Studio 2008).</p>
<p>That content in the HTML is then used in our confirmation emails.</p>
<p>Some of the characters like curly quotes turn into ? on the browser & in our confirmation email.... | c# asp.net | [0, 9] |
813,625 | 813,626 | How to draw dotted lines between geopoints in google map on android | <p>I have displayed the locations on map with marker images, but now i want to connect the locations by dotted lines, in same line locations.</p>
<p>Please give any idea....</p>
| java android | [1, 4] |
4,703,798 | 4,703,799 | Calling a function and pass it a json object | <p>I have a json object named data like below</p>
<p><img src="http://i.stack.imgur.com/1Rw9b.png" alt="enter image description here"></p>
<p>And I have a function denomination in a string like below</p>
<p><img src="http://i.stack.imgur.com/G8x09.png" alt="enter image description here"></p>
<p>test is the name of ... | javascript jquery | [3, 5] |
451,920 | 451,921 | jQuery post array | <p>Am wondering how to post an array using $.ajax. My array is something like this:</p>
<pre><code>var a = new Array();
a['test'] = 1;
a['test2'] = 2;
and so on...
</code></pre>
<p>I tried:</p>
<pre><code>$.ajax({
url: baseUrl+"chat.php",
data: { vars: a},
type: 'post',
success: function(data) {
alert(data);... | javascript jquery | [3, 5] |
755,049 | 755,050 | getting values from price range slider jquery | <pre><code><meta charset="utf-8">
<title>jQuery UI Slider - Range slider</title>
<link rel="stylesheet" href="jquery.ui.all.css">
<script src="jquery-1.7.1.js"></script>
<script src="jquery.ui.widget.js"></script>
<script src="jquery.ui.mouse.js"></script>
<... | php jquery | [2, 5] |
396,279 | 396,280 | how do I tell if an event is fired by .click() or by the user? | <p>I want to differentiate actual mouse clicks from script generated clicks.How can i do it with jquery?</p>
| javascript jquery | [3, 5] |
4,795,973 | 4,795,974 | Achieving slideUp() without content distortion | <p>I want to implement a simple slide up and slide down mechanism for revealing content on the press of a button. Using the out of the box jquery functions slideUp() and slideDown() squishes the content. I want the slide mechanism to be similar to the one used in twitter (in the timeline when you click on a tweet, more... | javascript jquery | [3, 5] |
3,062,351 | 3,062,352 | Which JavaScript framework does Visual Studio natively support? | <p>Is it jQuery? Is there a way to integrate support for the excellent ExtJS or YUI libraries?</p>
<p>Any news on whether Visual Studio 2010 will support another JS framework?</p>
| asp.net javascript | [9, 3] |
1,639,014 | 1,639,015 | Check if an asp:FileUpload control has a file selected in JavaScript | <p>How do I check if an asp:FileUpload control has a file selected in JavaScript?</p>
<p>I've tried <code>.HasFile</code> and <code>.value</code>, both have returned undefined.</p>
| javascript asp.net | [3, 9] |
2,458,183 | 2,458,184 | retrieve objects own tag | <p>I am using jQuery to sort a list of li tags, My current code is:</p>
<pre><code>var arr = [];
$("ul li").each(function() {
arr.push($(this));
});
arr.sort(cmpFunction);
$("ul").find("li").remove();
$.each(arr, function(index, item){
console.log(item.html());
});
</code></pre>
<p>What i'm finding with the c... | javascript jquery | [3, 5] |
1,837,005 | 1,837,006 | onCreate method is called after calling onConfigurationChanged method in an Activity class | <p>I am a beginner in android programming, now i am working on an android application which displays the data in a sort order by default and also provides a search facility. For this i have written an activity called search that will search the contents and displays in a listview. My problem is when i rotate the device... | java android | [1, 4] |
4,859,805 | 4,859,806 | Single UL that auto creates a paginated slide depending on the number of LIs that fits a container? | <p>I wonder if there's an existing js/jquery plugin to achieve something similar on Jay Salvat's portfolio site <a href="http://jaysalvat.com" rel="nofollow">http://jaysalvat.com</a>. </p>
<p>He got a single UL that automatically/dynamically creates a paginated slide depending on the number of LIs that fits a specifie... | javascript jquery | [3, 5] |
3,605,653 | 3,605,654 | Onclick event for image tag inside PHP echo, is not working | <p>In my image.php file i have code</p>
<pre><code>$id=abs($_GET['id']);
$query = mysql_query("SELECT image FROM table1 WHERE id=$id");
$data=mysql_fetch_array($query);
header('Content-type: image/jpg');
echo $data['image'];
</code></pre>
<p>And while retrieving i am using query</p>
<pre><code>$query = mysql_query(... | php javascript | [2, 3] |
1,767,636 | 1,767,637 | How to obtain the current time differences between two timezones | <p>I want to calculate the current time differences between US/Central timezone and British Summer Time. I mean, currently these both timezones have daylight savings going on, so they have a 6 hours time difference. But after Sunday October 31 2010, daylight savings will be off for British summer time, at which moment ... | c# asp.net | [0, 9] |
3,428,344 | 3,428,345 | Notify a running Java process with PHP | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/3350231/how-can-i-communicate-between-php-and-a-java-program">How can I communicate between PHP and a Java program?</a> </p>
</blockquote>
<p>I'm currently writing a web service which needs to handle events in r... | java php | [1, 2] |
3,307,987 | 3,307,988 | How to use payment gateway in asp.net using C# | <p>I'm new to asp.net and I want to use Payment Gatway Process for my application. I would appreciate if any one can suggest for me how do for that...</p>
<p>I referred so many websites, but have been unable to implement it.</p>
| c# asp.net | [0, 9] |
286,336 | 286,337 | Send array in JS to php | <p>I'm trying to do something similar to this <a href="http://stackoverflow.com/questions/2793891/send-selects-values-in-array">question</a>.
I want to send to the server the id's of the selected checkboxes. I'm using jquery only because the example. my ajax code is pure JS.</p>
<p>This is my code:</p>
<p>js:</p>
<p... | php javascript | [2, 3] |
2,692,338 | 2,692,339 | Accessing a control dynamically added to a placeholder during an event | <p>I'm creating an ASP.NET control dynamically based on a value selected in a dropdown; for instance the field can be a textbox or a checkbox (for now), and then it gets added to a placeholder control. However, I'm unsure how to retrieve the value - using the placeholder's <code>FindControl</code> method returns null ... | c# asp.net | [0, 9] |
2,635,171 | 2,635,172 | ArrayList Filter Logic | <p>I have an arraylist <code>arrTotalItems</code> of <code>class Operation.Operation</code>.</p>
<p>the class has two properties one is <code>ID</code> and <code>name</code>.
Now I have other <code>arraylist arrSelectedItems</code> which contain ID of <code>operations</code></p>
<p>Now I have to bind two <code>DataLi... | c# asp.net | [0, 9] |
4,643,334 | 4,643,335 | Set Activity title ellipse to middle? | <p>I have an Activity whose title keeps change, but sometimes its long and get ellipses by end. Can I set ellipse to middle ?</p>
| java android | [1, 4] |
5,561,872 | 5,561,873 | add event to Jquery Plugin | <p>I have a JQuery plugin and I want to add some event to it.
Any help, tips, or tutorial?</p>
| javascript jquery | [3, 5] |
2,136,855 | 2,136,856 | Obtaining selected item, value or index from drop down list in formview after button press | <p>I have a formview with an insertion template. In this template there is a drop down list with a number of items I want users to be able to select from. Beside the drop down list there is a button which I am using to add the selected item from the drop down list to a gridview which also exists in the insertion temp... | c# asp.net | [0, 9] |
2,467,403 | 2,467,404 | How do I make a Generic Data Access Class? | <p>ASP.net C# 3.5 Framework, working in Visual Studio 2008 currently.</p>
<p>What I want is a Generic Data Access Class. I have seen several of them but what I want is to see one that I pass the Connection String and the SQL statement and it will return a List of Objects or when only one item an Object or when no res... | c# asp.net | [0, 9] |
28,009 | 28,010 | Issue Related to Hidden Field in asp.net | <p>I have an asp.net application. i have added Hidden field on Master Page..</p>
<pre><code><asp:HiddenField runat="server" ID="hiddenCriteria" Value="abcd"/>
</code></pre>
<p>When I try to get the value of Hidden field from Javascript :</p>
<pre><code>alert(document.getElementById("ct100_hiddenCriteri... | c# asp.net | [0, 9] |
2,486,076 | 2,486,077 | Widget Building: Uncaught TypeError: Object [object Object] has no method 'fancybox' | <p>Why is it that this works: <a href="http://jsfiddle.net/w82W8/1/" rel="nofollow">http://jsfiddle.net/w82W8/1/</a>
But this doesn't?: <a href="http://jsfiddle.net/w82W8/2/" rel="nofollow">http://jsfiddle.net/w82W8/2/</a></p>
<p>This question may seem convoluted; you may wonder, why not just use the first!? Why are y... | javascript jquery | [3, 5] |
291,159 | 291,160 | How do I scroll to the right on a page that overflows horizontally? | <p>I want to scroll to the far right edge of a page that is really wide (it's wide on purpose) when the user closes a modal (specifically, the Reveal modal in Foundation 4).</p>
<p>I've tried setting an id on a div that's aligned all the way right, but that obviously doesn't work.</p>
| javascript jquery | [3, 5] |
1,313,618 | 1,313,619 | PHP/JavaScript form validation? | <p>I'm new with PHP and JavaScript. I eant to validate form, and if the form input fields are correct, then send it to php external script. I've tried something like this:</p>
<pre><code><head>
<script type="text/javascript">
function Validate(){
var x=document.forms["form"]["firstname"].value;
v... | php javascript | [2, 3] |
2,466,622 | 2,466,623 | Popup window in ASP with image | <p>Can I have a popup window in ASP page when I click on a hyperlink? And on that popup, can I display my image?</p>
| asp.net javascript | [9, 3] |
4,053,036 | 4,053,037 | how to call a code behind button_click in jquery | <p>I opened a Popup using Jquery dialog it contains all asp.net controls [ submit,textbox]</p>
<p>When i click submit on popup no action is performing.....how can i call that action with jQuery </p>
<p>i am beginner..can u explain in detail...if possible with sample code.......</p>
| jquery asp.net | [5, 9] |
4,179,747 | 4,179,748 | How to run new window.open and auto add Ctrl key? | <p>In ff & chrome Ctrl + click the url, it will open a new tab and the screen keep on the old url.
When I try to use javascript window.open it will open a new tab too, but the screen will change to the new tab.
How to use window.open open new tab and keep the screen in the old url ??</p>
<p>Or,.. can I use jquery ... | javascript jquery | [3, 5] |
320,096 | 320,097 | Making the most of available memory on higher end devices? | <p>I've noticed that e.g. the Samsung Galaxy S allows apps to allocate much more memory (>24Mb) than a Droid (<=24Mb) or a G1 (<=16Mb) before OutOfMemoryExceptions are thrown. I'd like my app to scale to higher end devices like the Galaxy and take advantage of the higher allocation limit.</p>
<p>Is there a relia... | java android | [1, 4] |
1,821,857 | 1,821,858 | Prevent link <a> without href from clicking | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/1164635/how-to-enable-or-disable-an-anchor-using-jquery">How to enable or disable an anchor using jQuery? </a> </p>
</blockquote>
<p>I have this:</p>
<pre><code><a onclick="javascript:btnSave_onclick();" cla... | javascript jquery | [3, 5] |
322,736 | 322,737 | Execute javascript after a partial postback of an updatepanel? | <p>I have a page that add tree file script to it .</p>
<pre><code><script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/init.js"></script>
<script type="text/javascript" src="js/easing.js"></script>
</code></pre>
<p>I have a updatepa... | javascript asp.net | [3, 9] |
3,049,419 | 3,049,420 | Java equivellent c# implicit | <p>I have an object A </p>
<pre><code>class A {
B contained = new B();
}
class B
{
}
</code></pre>
<p>and a collection of A's </p>
<pre><code>Queue<A> q1 = new PriorityQueue<A>();
</code></pre>
<p>what I want to do </p>
<pre><code>Queue<B> q2 = new PriorityQueue<B>(q1);
</code></p... | java android | [1, 4] |
5,616,772 | 5,616,773 | How to send data to new activity from current activity via intent? | <p>How I can use the intent to send the data to the second class?</p>
<p>I am doing this actually</p>
<pre><code>Intent connectGetData = new Intent(Main.this, GetData.class);
startActivityForResult(connectGetData, REQUEST_GET_DATA);
</code></pre>
<p>From <code>Main.java</code> activity I am calling the <code>Getdat... | java android | [1, 4] |
2,107,229 | 2,107,230 | Running queries, good design here? | <p>Sorry for posting so many nubbin questions on ASP.net, I'm getting the hang of it slowly.</p>
<p>I execute queries on my pages as such (working):</p>
<pre><code><%@ Import Namespace="System.Data" %>
<%@ Import Namespace="System.Data.SqlClient" %>
<script runat="server">
// When the registrat... | c# asp.net | [0, 9] |
3,820,033 | 3,820,034 | click to add border to div | <p>I have a web page with multiple div. When the user clicks on the body, all div elements will have their border changed to red. However, when the user clicks on a div, only that div will have their border changed to blue.Every other div element will remain with a red border. this is my code so far:</p>
<pre><code>$(... | javascript jquery | [3, 5] |
5,706,135 | 5,706,136 | Python C++: is the any python.split() like method in c++? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/53849/how-do-i-tokenize-a-string-in-c">How do I tokenize a string in C++?</a><br>
<a href="http://stackoverflow.com/questions/236129/splitting-a-string-in-c">Splitting a string in C++</a> </p>
</blockquote>
<p... | c++ python | [6, 7] |
2,523,870 | 2,523,871 | 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] |
2,429,433 | 2,429,434 | changing colour of a background image with js on the fly | <p>I have been looking to changing image colours with javascript but the problem is that I need to change the background colour of an image - ie add a tint to it</p>
<p>so i have read a lot of posts on here and it seems possible when the html has a img in it (ie an src) but i cant find any solutions for a background i... | javascript jquery | [3, 5] |
2,967,719 | 2,967,720 | javascript equivalent of jquery code | <p>Can someone help what's the javascript equivalent of below jquery line. </p>
<pre><code>$("#abc option[value='1']").text();
</code></pre>
<p>abc is the id of selectbox</p>
| javascript jquery | [3, 5] |
4,543,066 | 4,543,067 | jQuery $('form').serialize() returns only one element of a form serialized | <p>Given the following form:</p>
<pre><code><form id="form" name="form">
<input name="name"/>
<input name="version"/>
<input name="template"/>
<textarea name="elements"></textarea>
<textarea name="features"></textarea>
<textarea name="layout"></textarea>
<... | javascript jquery | [3, 5] |
5,679,841 | 5,679,842 | JavaScript won't work unless I use alert()! | <p>I run into this issue from time to time and I don't know how to solve it. Here's my code that fails:</p>
<pre><code>function on_lightbox_open() {
system.contextBrowserInit();
updateUrl(year + '/' + month + '/' + id);
ads.reload();
system.analytics.reload();
FB.XFBML.parse($('#bottom_flap .fb_... | javascript jquery | [3, 5] |
733,700 | 733,701 | Getting access to standalone JVM / Java Access bridge | <p>I want to get access through the Java Access Bridge to an application that has its own JRE. JAB works fine for me with the "public" JRE (SE 7). But the target application has its own JRE (SE 6). Well neither Monkey nor Ferret display any information about the application. But I know that it is possible due to third ... | java c++ | [1, 6] |
4,683,658 | 4,683,659 | Positioning images to fit all size screens | <p>I'm having a problem with positioning images,I need to position a lot images over another larger background image.</p>
<p>An image Like this
<img src="http://i.stack.imgur.com/P5tf3.jpg" alt="enter image description here"></p>
<p>I have tried Absolute but it does not keep the position of the image say I wanted to ... | java android | [1, 4] |
1,537,240 | 1,537,241 | Checking whether a click event was triggered by physically mouse clicking or not? | <p>I have a button, and I decided to trigger that button:</p>
<pre><code>$(button_name).trigger("click");
</code></pre>
<p>The handler of the function requires that the left button triggers the click when triggering using the mouse, but also does accepts clicks by triggering using code, like the line shown above. How... | javascript jquery | [3, 5] |
2,957,686 | 2,957,687 | onerror=string . $varible - fails | <p>Why it fails? It works when onerror=is not a varible but just a hadrtyped string.</p>
<pre><code><?php
$error = "onerror='this.src = \'http://userlogos.org/files/logos/pek/stackoverflow2.png\'';";
for ($i = 1; $i <= 10; $i++) {
echo "<img src='http://services.runescape.com/m=itemdb_rs/3716_obj_sprite.g... | php javascript | [2, 3] |
1,290,586 | 1,290,587 | Android RSS Example | <p>How do you do you fetch a single RSS feed and show it in an ListView?</p>
<p>I realize there's hundreds of ways, but a clean and simple example would be appreciated.</p>
| java android | [1, 4] |
4,574,838 | 4,574,839 | Look for multiple classes with jQuery | <p>I have a simple script to hide/show a table row. I'd like it to look for an additional class, but I can seem to get it to work. Here is the original:</p>
<pre><code> jQuery(function () {
jQuery(".toggle").click(function () {
jQuery(this).closest("tr").next("tr").find(".hide1").slideToggle("none");
... | javascript jquery | [3, 5] |
3,175,533 | 3,175,534 | Passing Evercookie values out of the function | <p>I'm totally stuck trying to get the best evercookie value out of the retrieval function and into a JS or PHP function I can use. </p>
<p>The code below works to trigger the alert for best_candidate, but I can't figure out how to return the value out of the function (I'm guessing the nested functions are what are t... | php javascript | [2, 3] |
4,459,739 | 4,459,740 | Caps and Shift key using jquery/javascript | <p>I am facing a problem. I have to identify my Caps Lock is on or not?</p>
<p>If my caps lock on then i have to tell user that your caps on. but the problem is if some one press <kbd>shift</kbd> + <kbd>A</kbd> then it should behave normally.i think key events of <kbd>Caps Lock</kbd> on + <kbd>a</kbd> equal to <kbd>S... | javascript jquery | [3, 5] |
454,600 | 454,601 | Proper way of binding events with jQuery | <p>I am somewhat new to Javascript but even more green with jQuery. I've already come across something that's got me scratching my head.</p>
<p>What is the difference between:</p>
<pre><code>$('.foo').click(function(){
//blah
});
</code></pre>
<p>and</p>
<pre><code>$('.foo').onclick = function(){
//blah
}
</code></... | javascript jquery | [3, 5] |
694,792 | 694,793 | How do I trigger a function when the time reaches a specific time | <p>I want to trigger a javascript function when the time reaches, say, 3:00 PM.</p>
<p>The time will be assigned dynamically. So is there any javascript function to achieve that??</p>
| javascript jquery | [3, 5] |
3,591,750 | 3,591,751 | Static countdown with javascript/php, how? | <pre><code>var austDay = new Date("May 18, 2012 00:00:00");
$('#countdown').countdown({until: austDay});
</code></pre>
<p>Is what I got. I wish to make this static, which I mean by it shows the same countdown in all timezones. So no matter if you change your timezone or your date on your pc, it should not ... | php javascript jquery | [2, 3, 5] |
1,055,671 | 1,055,672 | Mobile ERP-Android | <p>I have a Project of "An Android Based Mobile ERP Assistant for an Educational Institute". in which i m gonna create a mobile UI application in Android which is capable of fetching the ERP data from server(oracle or any other) e.g. simple select queries...no record insertion will be done using Mobile.
as well as i wa... | java android | [1, 4] |
4,989,898 | 4,989,899 | Javascript validation for a dynamic gridview have checkbox | <p>I have created a GridView Dynamically. This dynamic gridview has two Template Field column. Both the column has checkboxes in every row. How do I write the client side validation so that only one checkbox is checked at a given time in a particular row.</p>
<p>I tried using this code but it didn't work</p>
<pre><co... | c# javascript | [0, 3] |
3,205,964 | 3,205,965 | download zip files by use of reader in c# | <p>I have been working on this application that enables user to log in into another website, and then download specified file from that server. So far I have succeeded in logging on the website and download the file. But everything ruins when it comes to zip files.</p>
<p>Is there any chunk of code that could be helpf... | c# asp.net | [0, 9] |
2,658,494 | 2,658,495 | Getting variables values from URL after being dynamically added by JQuery | <p>I am using this code below</p>
<pre><code>var delLink = $('#deleteItem').attr('href');
</code></pre>
<p>to get the URL <code>(href)</code> of a link identified by <code>#deleteItem</code>.</p>
<p>The problem occurs when I use JQuery to add new variables onto this URL and I want to see the new dynamically added va... | javascript jquery | [3, 5] |
4,200,358 | 4,200,359 | Shift select table rows | <p>I know this question has been asked a lot but there is really no definite answer that I can find.
Here is my code. Basically I have everything set up. I'm just lost on where to get the rows of a table by index. I've tried the .index function but I that's not working. I'm trying to do something like <code>$('#pkg... | javascript jquery | [3, 5] |
5,531,362 | 5,531,363 | ASMX HTTP Get Parameter is a C# Keyword | <p>I use asp.net 2 and need to consume a 3rd party HTTP GET call that includes a parameter named <code>interface</code></p>
<p>I have created an asmx file and have a function like</p>
<pre><code>[WebMethod]
[ScriptMethod(UseHttpGet = true)]
public void Test(string interface)
{
}
</code></pre>
<p>However, this is... | c# asp.net | [0, 9] |
2,387,794 | 2,387,795 | how to use try catch on <object> attribute? | <p>if i have declared <code><object></code> under my .aspx page named MyPage.aspx as shown below.
for example, this class will receive two parameter for performing a division.</p>
<pre><code><object classid="clsid:XXXXXX-XXXX-XXXX-XXXX-XXXXXX" name="MyControl1" id="Object1">
<PARAM name="param1" VAL... | c# asp.net | [0, 9] |
1,142,775 | 1,142,776 | Delete null items from a dictionary | <p>I have a web page which queries a database and and stores the results in a mapped array dictionary type. the issue im having is that some of the "rows" in the results are null, so I might have 20 records returned and the first three might be null</p>
<p>so I am going through each individual array and checking if th... | c# asp.net | [0, 9] |
2,141,935 | 2,141,936 | Session Capturing and Modifying | <p>I want to know how can I capture web sessions and modify them.</p>
<p>I`m developing websites and desktop apps, and I want to know if they can be penetrated using the sessions that are created or not. So I want to know how to capture session variables and how to modify them.</p>
<p>If possible, a sample code in <s... | c# php | [0, 2] |
1,521,609 | 1,521,610 | Correct way to deal with potential session expiration | <p>I am wondering what is the best (e.g. most efficient, commonly accepted, industry standard) way to deal with the potential expiration of a session when you are regularly using the values stored in it in your code.</p>
<p>For example, I am often using (in C#) lines similar to the following:</p>
<pre><code>Guid pers... | c# asp.net | [0, 9] |
3,079,416 | 3,079,417 | Jquery not called? | <pre><code><div>
<asp:Button ID="btnCalculate" runat="server" Text="Calculate Claim" OnClientClick="cfrm();"/>
</div>
<div style="visibility: hidden;">
<asp:Button ID="btnYes" runat="server" OnClick="btnYes_Clicked" />
</div>
<script language="javascript" type="text/javascrip... | c# jquery asp.net | [0, 5, 9] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.