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 |
|---|---|---|---|---|---|
5,131,553 | 5,131,554 | Transferring data from PHP to Java | <p>I have an XML file which I need to parse using PHP and send the parsed data to Java, what are some best practices to accomplish it ?</p>
| java php | [1, 2] |
5,673,580 | 5,673,581 | I can't remember programming 5 mins after learning? | <p>I'm learning Java, and I found a great teacher. He explains everything perfectly. I understand it <em>all</em>. My problem, is that after learning a short section, for example "Nested If Statements" or "Many Methods and Instances", I can type it all great, but in 5 mins, after going on to a new section (when I'm com... | java javascript | [1, 3] |
2,322,991 | 2,322,992 | button click event automatically fires | <p>My situation is like this i have a asp button inside my user control </p>
<pre><code> <asp:Button ID="btnSubmit"
Text="Send Notification" class="submit-btn01" onclick="btnSubmit_Click1" runat="server" />
</code></pre>
<p>in my browser when I refresh my page, button click event automatically happen... | c# asp.net | [0, 9] |
4,204,691 | 4,204,692 | How to get the css of a javascript container and all objects within it in javascript or jquery | <p>Some elements in my page are rendered through php code. Sometimes, on link clicks that redirect to a page in the same site, I want to insert html elements like div, span etc through javascript in their respective places. My main question is: how do I insert the elements in the appropriate place, and apply the same c... | javascript jquery | [3, 5] |
1,077,035 | 1,077,036 | Designing Game Randomization Logic | <p>I am creating a game that adds sprites to my scene randomly. The randomness is weighted and I can change the weight based on the supplied parameters to my method to change which sprite I want to be added more than others.</p>
<p>Now the game is round based. So, during round one I would like for the weight of the sp... | java android | [1, 4] |
2,662,406 | 2,662,407 | print an asp .net page without considering IE version | <p>net site with a print option (onclick = window.print())
the problem is that when using IE 7 it gets fine on the page
but when users using IE 6 print the page they get it larger than the page is</p>
| c# asp.net javascript | [0, 9, 3] |
2,328,609 | 2,328,610 | JQuery: replace a string inside a div | <pre><code><div id="content">
...
<p>NUMBER times...</p>
...
<p>Place N°: NUMBER</p>
</div>
</code></pre>
<p>How do I replace all NUMBER inside the content div?
I tried <code>replace</code> method but it didn't work.</p>
<p>Thanks.</p>
| javascript jquery | [3, 5] |
1,759,356 | 1,759,357 | How do i get parent caller | <p>Let us say that user opens Twitter app and hits share button for a selected tweet. He then sees my app in the list along with other apps like Gmail, SMS etc.</p>
<p>In OnCreate method of my activity, I process the tweet. Remove short links etc and then call the PostActivity of twitter app. Below code then shows "My... | java android | [1, 4] |
2,261,151 | 2,261,152 | div hides onmouseover event on a link | <p>I have a div and a simple jQuery code that calls the div on an 'onlclick' event and properly hides on 'onmouseout' event. The problem is when I put a text or a link inside this div and move a cursor over the text / link in this div - it triggers out() function effect and dissappears - even if the cursor is still in... | javascript jquery | [3, 5] |
3,818,890 | 3,818,891 | dynamically adding validators | <p>In my case I would like to dynamically add validators to my control based on given logic. For each control I first check something in my DB and if it goes aout that field is required I would like to add requiredField to that control. I firt iterate through each control and if its required I add attribute required="t... | c# asp.net | [0, 9] |
435,989 | 435,990 | Javacript for validating select box | <pre><code><select name="fruits">
<option value="apple">Apple</option>
<option value="orange">Orange</option>
<option value="pears">Pears</option>
</select>
/* fruits stored in the database */
<?php $items as $each_fruit) {
$fruit_count++;
$a[]=$each_f... | php javascript | [2, 3] |
3,710,613 | 3,710,614 | Getting value of dynamically generated textfield | <p>I have a table that has been generated dynamically using PHP. The table has a few textfields which are being used to update the database based on the row. This question can be referred at: <a href="http://stackoverflow.com/questions/9726265/save-dynamically-generated-textfield-from-php">Complete question</a>, based ... | javascript jquery | [3, 5] |
3,571,336 | 3,571,337 | regarding sending mail to user | <pre><code>MailMessage message = new MailMessage();
message.From = new MailAddress("admin@mysite.com");
</code></pre>
<p>Now for fetching email entered by the user in the textbox, I wrote:-</p>
<pre><code> message.To.Add(Convert.ToString(txtEmail));
</code></pre>
<p>but this is not working..isn't this the correct wa... | c# asp.net | [0, 9] |
5,180,245 | 5,180,246 | Why does putting jQuery code does not work sometime when placed inside <head> tag | <p>I often find myself in a place where even a simple jQuery code like below -</p>
<pre><code>jQuery(document).ready(function () {
jQuery("input[type='text']").click(function () {
this.select();
});
});
</code></pre>
<p>Does not work when placed inside "head" tag, but moving this snippet just before t... | jquery asp.net | [5, 9] |
5,333,844 | 5,333,845 | A sensible path to becoming a C# and ASP.NET guru? | <p>I suppose this question is pretty subjective, but I think there is bound to be a path that most people consider sensible.</p>
<p>I've been working with C# and ASP.NET for about 3 years, but I've only just started REALLY studying it. My goal is to become a guru in say... 5-10 years. What skills should I have? What s... | c# asp.net | [0, 9] |
5,865,744 | 5,865,745 | How to sorting the gridview data | <p>See the below code, I am try to sorting Grid view data by calling function provided by the Microsoft vs 2008, but the paging is done well but the sorting process is not work, tell me where should i change the following code and yes i put grid view in updated penal,is there problem regarding to update penal? </p>
<p... | c# asp.net | [0, 9] |
2,221,082 | 2,221,083 | Problem with jquery .submit() and variables | <p>I am not sure what to do and why it is not working it is my first attempt at something like this.</p>
<p>Here is a fiddle of it <a href="http://jsfiddle.net/ProjectV1/LVPtN/" rel="nofollow">http://jsfiddle.net/ProjectV1/LVPtN/</a></p>
<p>You will notice in javascript I have a var error which is by default false.</... | javascript jquery | [3, 5] |
4,287,203 | 4,287,204 | Placing a icon to display text onmouseover | <p>I have developed an e-commerce site. For user form input box, i want to put a question mark icon as help tool. When user takes mouse on that icon it should display the help text. I am not getting how to do it. Please someone help me in doing this .</p>
<p>Thanks</p>
| javascript jquery | [3, 5] |
472,026 | 472,027 | How to add data items to a List<Struct> | <p>I have the following struct defined in a user control:</p>
<pre><code>public struct ColumnData
{
public string ColumnName { get; set; }
public string ColumnDataItem { get; set; }
public bool ColumnIsHyperLink { get; set; }
public string ColumnHyperLinkURL { get; set; }
public string ColumnHyperL... | c# asp.net | [0, 9] |
5,550,661 | 5,550,662 | Jquery Table plugin | <p>I need a table plugin that does the following</p>
<ol>
<li>Uses json and html table as the datasource</li>
<li>supports pagination</li>
<li>can specify how many rows to show by the user(i.e user can change rows per page)</li>
<li>sorting of columns</li>
<li>searching (complex searching options is welcome)</li>
<li... | javascript jquery | [3, 5] |
132,091 | 132,092 | Button disable function after clicking on it | <p>i have save button in around 150 pages. when ever the user clicks on save button i should disable the button after the click. so that user does not keep clicking on save button again.</p>
<pre><code> protected void Button1_Click(object sender, EventArgs e)
{
// right now once the user cl... | c# asp.net | [0, 9] |
4,446,357 | 4,446,358 | Single declaration of connection string in application | <p>In my asp.net application I have added the connection string in each page <code>Page_Load</code> function and declared the string as public in top of the page.</p>
<p>I know this is wrong thing. The whole application is running the same connection, so I want to declare the connection string in only one place. Where... | c# asp.net | [0, 9] |
1,541,932 | 1,541,933 | how to get file names from input type file in html 5 using javascript or jquery | <p>below is my simple code using HTML 5 multiple file upload. All i need is to grab all the file names not the paths below is simple javascript code </p>
<pre><code> function getFileNames()
{
var path = $('#files').val();
console.log(' path = ' + path);
}
</code></pre>
<p>and ... | php javascript jquery | [2, 3, 5] |
273,294 | 273,295 | Disable browsers vertical and horizontal scrollbars | <p>Is it possible to disable the browsers vertical and horizontal scrollbars using jQuery or javascript?</p>
| javascript jquery | [3, 5] |
4,623,465 | 4,623,466 | Jquery slidetoggle question | <p>How can I get one script of jQuery to start after another one has finished (or time it when you want it to start)? I have a content area that fades in on page load:</p>
<pre><code>$(document).ready(function() {
$("#content").hide();
$(window).load(function() {
$("#content").fadeIn(3000);
});
... | javascript jquery | [3, 5] |
2,125,212 | 2,125,213 | reorder list elements - jQuery? | <p>I am experimenting with jQuery lately, and I was wondering if it's possible with js or pure jquery to reorder <code><li></code> elements. So if I have a silly list like the following:</p>
<pre><code><ul>
<li>Foo</li>
<li>Bar</li>
<li>Cheese</li>
</ul>... | javascript jquery | [3, 5] |
2,251,633 | 2,251,634 | Preventing jQuery function to repeat effect twice? | <p>i am making a something like this :
When a user <strong>mouseenter</strong> DIV1 , the DIV2 will <strong>fadeIn</strong> and when the user <strong>mouseout</strong> DIV1 , DIV2 will <strong>fadeOut</strong></p>
<p>But something weird is happening , when you hover in and out DIV1 quickly , the FADEIN and OUT effect ... | javascript jquery | [3, 5] |
2,283,248 | 2,283,249 | Get the parent/ancestor UL | <p>I have a HTML markup that looks like</p>
<pre><code><ul>
...
<li>
<ul class="x">
...
<a href="#"...
</code></pre>
<p>How can I get the parent <code>ul.x</code> element from a click event hooked on the link?</p>
<p><code>this.parentNode</code> works if the UL is th... | javascript jquery | [3, 5] |
4,217,434 | 4,217,435 | Cool UI templateing VS Jquery Templating | <p>i have read this article <a href="http://weblogs.asp.net/scottgu/archive/2006/10/22/Tip%5F2F00%5FTrick%5F3A00%5F-Cool-UI-Templating-Technique-to-use-with-ASP.NET-AJAX-for-non%5F2D00%5FUpdatePanel-scenarios.aspx" rel="nofollow">ScuttGu</a></p>
<p>for making use of User control to make Client side templates.</p>
<p>... | c# asp.net jquery | [0, 9, 5] |
551,092 | 551,093 | clear input with particular type attribute | <p>this:</p>
<pre><code>$("#registrant input").val('');
</code></pre>
<p>will clear all the <code><input></code> inside the div <code>#registarnt</code>.</p>
<p>But, how can i exclude the input with particular type? (like "submit")</p>
| javascript jquery | [3, 5] |
5,507,952 | 5,507,953 | display a particular number from dropdownlist | <p>Is there a way in dropdownlist to show the desired number on pageload.</p>
<p>eg.
I have a dropdownlist control</p>
<p>I am using a for loop to populate it</p>
<pre><code>for (int i = 1; i <= 100; i++)
{
DropDownList1.Items.Add(i.ToString());
}
</code></pre>
<p>Now thi... | c# asp.net | [0, 9] |
2,713,528 | 2,713,529 | Issue Releted to Parameter in RDLC Reports | <p>I have ASP.Net Application in Visual Studio 2008.
I have added Report Parameter in RDLC Report, I want to draw Parameter in my rdlc Report in Design View, but i dont find <code>"Report Data Panel"</code> in my ASP.Net Application... i Tried <code>ALT+CTR+D</code> but it doesn't work.
How can i draw Parameter in my R... | c# asp.net | [0, 9] |
4,304,096 | 4,304,097 | tool tips for creating on tab menu | <p>hi
in my application i have tab menu which i done using css.
when ever user moves the cursor on the tab he should been given an tooltip for that tab. is it ther any solution i can solve using JQuery or any other concept.</p>
<p>thank you </p>
| c# asp.net jquery | [0, 9, 5] |
5,045,668 | 5,045,669 | jQuery Slide + events | <p>I'm developing a page that will present the user with a content slider, so that the user can click 'next' to browse through the slides.</p>
<p>However, I also want to hide any 'previous' buttons/links and additionally, when the user reaches the last slide in the list the 'next' button needs to be replaced with a di... | javascript jquery | [3, 5] |
4,924,424 | 4,924,425 | Adding multiple boxes in one page and saving the info from each box | <p>I have this task - to make a simple CMS where one of the abilities should be to create a page and add as many boxes as the admin would like and then to have the ability to edit each one of them using ckeditor, and ofcourse the page should be visible in the frontend.</p>
<p>For now I'm just using CodeIgniter trying ... | php javascript | [2, 3] |
1,220,518 | 1,220,519 | how to handle two function | <p>I have two funtions <code>searching</code> and <code>searchhistory</code>. Currently these two function are running in my code but the value of <code>nbofimages</code> is not updated. </p>
<p>Also it's showing only one alert message after searchhistory function is completed.</p>
<pre><code>$.when(searching(searchk... | javascript jquery | [3, 5] |
627,130 | 627,131 | Adding start delay | <pre><code> function moveto(coordinates) {
step1 = coordinates[0];
step2 = coordinates[1];
var w = $(document).width();
var h = $(document).height();
$( "#full" )
.animate({left: -(step1 * w)}, 2000 )
.animate({top: -(step2 * h) }, 500 );
}
var randomNum = randomNumbers();
moveto... | javascript jquery | [3, 5] |
3,578,159 | 3,578,160 | change selecteditem of dropdownlist after binding | <p>i have a droplist in page that i bind this with code</p>
<pre><code> Category catObj = new Category();
dropCat.DataSource = catObj.GetAllCategory();
dropCat.DataTextField = "Title";
dropCat.DataValueField = "CategoryID";
dropCat.DataBind();
</code></pre>
<p>i want change selected item of droplist ... | c# asp.net | [0, 9] |
5,278,112 | 5,278,113 | JS: window.setInterval still running in the background? | <p>My code is like:</p>
<pre><code>window.setInterval(updateSeconds, 1000);
function updateSeconds() {
var remainingSeconds = $('#seconds').html() - 1;
if(remainingSeconds < 0) {
remainingSeconds = 0;
}
$('#seconds').html(remainingSeconds);
if(remainingSeconds == 0) {
//stop call... | javascript jquery | [3, 5] |
4,037,762 | 4,037,763 | jquery attr("onClick") - ie and ff | <p>Using jquery, I'd like to get the javascript from an A tag's onClick attribute.</p>
<pre><code><a href='#' onClick='alert("boo");' />
</code></pre>
<p>In Firefox: <code>alert($('a').attr("onClick"))</code> shows: <code>alert("boo")</code></p>
<p>In IE 6/7: <code>alert($('a').attr("onClick"))</code> shows: <... | javascript jquery | [3, 5] |
5,055,099 | 5,055,100 | Disable button refresh browers | <p>I have a problem with sending message. I create a jsp page with calling form to send message using method Post. when i click button refresh on browers FF, it automatically send message again. I don't want to again send it. How could i disable button refresh?.</p>
| java javascript jquery | [1, 3, 5] |
1,385,881 | 1,385,882 | Hide/Show elements with jQuery | <p>I have following site structure</p>
<pre><code><div id="movies">
<a href="">
<div>content</div>
</a>
<a href="">
<div>content</div>
</a>
...
</div>
</code></pre>
<p>There can be up to 50 <code>a tags</code... | javascript jquery | [3, 5] |
254,474 | 254,475 | Masked Input Plugin with a default value | <p>I've been using digitalbush's <a href="http://digitalbush.com/projects/masked-input-plugin/" rel="nofollow">masked input plugin</a>, and I was wondering if there was any way you could add a default value to the masked fields. </p>
<p>I've tried adding it using:</p>
<pre><code> <input id = "date" type="text" va... | javascript jquery | [3, 5] |
1,400,936 | 1,400,937 | Why is $(document).ready not firing for me? | <p>In a php file i have used <code>include</code> to include the following js.php file
and prior to that i have included the jquery file.</p>
<pre><code><script type="text/javascript">
$(document).ready(function(){
alert("hello");
});
</script>
</code></pre>
<p>But it doesn't work. Why? when I skip ... | php javascript jquery | [2, 3, 5] |
4,978,898 | 4,978,899 | unable to add textboxes to listbox | <p>hi I want to add textboxes to a listbox with everyclick on the add button.
so here are my codes</p>
<pre><code>this.ListBox1.Controls.Add(TB);//TB is the name of my TextBox and it has been defined and initialized
</code></pre>
<p>I even tried to use Addat </p>
<p>there are no errors but it doesnt work</p>
| c# asp.net | [0, 9] |
796,726 | 796,727 | DataSet or Reader or What? | <p>When using a Class to get one row of Data from the Database what is best to use:</p>
<ul>
<li>A DataSet? </li>
<li>A Reader and do what store the data in a Structure?</li>
<li>What else?</li>
</ul>
<p>Thanks for your time, Nathan</p>
| c# asp.net | [0, 9] |
2,144,567 | 2,144,568 | Access table based on selection criteria in C# | <p>I am working on application where I got to access data from 2 sheets, get the account number from first sheet and then look for those accounts in sheet 2.<br>
I am using <code>OleDbDataAdapter</code> to select and count the number of occurrance but now the issue is to access those records out of all.
One way I am t... | c# asp.net | [0, 9] |
858,988 | 858,989 | PHP : how to return back to previous page while closing pop up | <p>I have a form submission. While i Click Submit button, will check for mandatory fields and if the fields are blank, I am opening a popup window using javascript to show error message. So once I close the popup I am not going back to previous page Instead it shows a white blank screen.</p>
<p>My code for verificatio... | php javascript | [2, 3] |
1,949,056 | 1,949,057 | Convert to numbers in Android app | <p>I am trying to create an Android app and I have gotten stuck. I am getting input text with EditText and I need to convert it to a number (as I need to do some mathematical functions). My problem is that none of the integer.something functions works with EditText. Could you suggest something?</p>
<p>Cheers!</p>
| java android | [1, 4] |
1,517,639 | 1,517,640 | How to create a dict that contains Java Classes hierarchy (in Python)? | <p>I'm creating a class diagram drawer for Java and I need to look into standard Java Classes to check whether two classes have common ancestor (some additional feature). I was thinking of creating a dict that will contain class hierarchy, but I have no idea how to create it. The first thing I found is to create it fro... | java python | [1, 7] |
1,266,220 | 1,266,221 | image control not refresh the stream when saving snapshot images to avi file - ASP.net, C#, AForge.net | <p><br /> I am trying to get a snapshot from MJPEG stream of a Panasonic IP Camera and save all the jpeg snaphot image to avi file as a video file while the live video stream is loading to an image control of asp.net using aforge.net, and now I am facing a problem as the following: <br /><br /> - the live video stream... | c# asp.net | [0, 9] |
3,010,529 | 3,010,530 | How to use dynamic login ID and password in a Message API | <p>I am facing a problem in using a message API. I want to fetch the loginID and password of that message portal from the database of my web application but it is not working. I have to write the ID and Password in the code itself. I need help in making that code dynamic.</p>
| c# asp.net | [0, 9] |
4,851,877 | 4,851,878 | How to use an array value from php to javascript? | <p>it was always a question for me that how can i use an array value in javascript while that array is defined in my php scripts </p>
<p>For example consider reading some values from a file and use it in javascript.</p>
<p>what's ur plan to do so ? </p>
| php javascript | [2, 3] |
1,270,729 | 1,270,730 | jquery loading animation with php form that submits back to itself | <p>I have a PHP file that contains a form and which submits back to itself. Is there any way to show a loading animation after the form is submitted and run until the page is loaded?</p>
| php jquery | [2, 5] |
3,689,000 | 3,689,001 | why shouldn't we put any javascript code between the <script> tag if we only want to include external js file? | <p>i don't really understand why the author in the "Javascript & Jquery: the missing manual , second edition" advise the sentence below:</p>
<blockquote>
<p>When adding the src attribute to link to an external JavaScript file, don’t add any JavaScript code
between the opening and closing tags. If you want to ... | javascript jquery | [3, 5] |
1,385,937 | 1,385,938 | How to access a panel inside gridview from Javascript? | <p>I have a grid view, which contains a dropdownlist and a panel that i want to make invisible and visible by the selected value of the dropdownlist.</p>
<p>The javascript code which works when not used with the gridview is:</p>
<pre><code> function showPannel(panelId,dropdownId ) {
var panel = document.get... | c# javascript asp.net | [0, 3, 9] |
5,324,984 | 5,324,985 | for loop and appending the set of result to div | <p>I want to append every 3 records to one div in a for loop. numberList is dynamic so we are not sure of the exact length. requirement is that pick 3 records and wrap it in div.
For example if numberList.length is 7 then we should have 3 divs. first 2 div will contain 3 records and last div will have one record.</p>
... | javascript jquery | [3, 5] |
814,194 | 814,195 | Language redirect in java | <p>i have a page where i do not want to show a particular language e.g russian to the user as this language is currently in testing phase. But if a user has settings in firefox UNDER content tab to have russian as default language , this page shows up and i do not want to have this functionality , it should redirect to... | java javascript | [1, 3] |
2,372,969 | 2,372,970 | Problems with float: it does not return the fraction | <p>I am puzzled that a float does not return the fraction. The code:</p>
<pre><code>float max_stops;
int maxBellows = 330;
int lensFocal = 135;
max_stops = (maxBellows / lensFocal );
</code></pre>
<p>returns 2.0 instead of 2.44.</p>
<p>Can you pls help me get this right?</p>
| java android | [1, 4] |
1,989,024 | 1,989,025 | jquery onclick run | <p>I need to run all onclick events on page load.
how can I do something like this:</p>
<pre><code>$('.upload').foreach(function(){
//execute onclick for found element (ex: test(this, 'var') )
});
<div class="upload" onclick="test(this, 'var')">text</div>
</code></pre>
| javascript jquery | [3, 5] |
2,342,340 | 2,342,341 | Javascript or JQuery over scroll | <p>I have a table body</p>
<pre><code><tbody id='displaylaps' class='scroll' style='width: 100%'></tbody>
</code></pre>
<p>Which fills with data and scrolls when it reaches a certain vertical length. </p>
<p>I wanted to have an over scroll effect like the effect after an iOS safari page ends and bounces ... | javascript jquery | [3, 5] |
811,295 | 811,296 | Retrieve data from database using asp.net (Incorrect Syntax near 'user') | <p>The error I am receiving is "Incorrect syntax near 'user'" - however, I cannot see anything wrong with my code - does anyone have any ideas?</p>
<pre><code>protected void Page_Load(object sender, EventArgs e)
{
string db = "";
db = ConfigurationManager.ConnectionStrings["myConnection"].ConnectionString;
... | c# asp.net | [0, 9] |
5,939,370 | 5,939,371 | converting jquery to pure javascript | <p>I have a function that creates an image with the canvas object. The last line of the function says this:</p>
<pre><code>$('body').css({ 'background-image': "url(" + Canvas.toDataURL("image/png") + ")" });
</code></pre>
<p>I'm looking to convert this line into pure javascript to remove the jQuery dependency. Any su... | javascript jquery | [3, 5] |
1,662,293 | 1,662,294 | Add shortcut to application's menu | <p>I am trying to create an application which adds a menu item to the android installed applications menu. I have been successful at creating homescreen menu but still want my shortcut to be added to the applications menu as well. Is this possible? if so, how can i accomplish this?</p>
<p>Thanks</p>
| java android | [1, 4] |
1,885,893 | 1,885,894 | setSelection jQuery plugin issue (JavaScript) | <p>I've been trying to build an "auto-complete" function for time input using setSelection jquery plugin. Everything seems fine except for the fact that when I try to input time like "1:00AM" the setSelection script selects it and then unselects it for some strange reason. If I throw an alert anywhere in the function,... | javascript jquery | [3, 5] |
364,783 | 364,784 | How do I find the nearest tbody then loop through its rows and hide them | <p>I have a table that is split up into several tbody's. The first row in each tbody has a button which will be used to hide all other rows in this tbody apart from the row with the button in it. </p>
<p>Not sure how to achieve this.</p>
<p>My HTML :</p>
<pre><code><table>
<tbody>
<tr>
... | javascript jquery | [3, 5] |
4,683,745 | 4,683,746 | jQuery bind custom function to appended element | <p>I am trying to create a web app that will allow a user to define a custom JavaScript function and then add a button to their user interface that well preform that function.</p>
<p>Here is a sample of the code</p>
<pre><code>var customCommands = {
command1: {
text: 'Hello Console',
cFunctionRun: function(... | javascript jquery | [3, 5] |
536,316 | 536,317 | is there enter and leave event on TextBox - asp.net? | <p>Is there enter and leave event on an asp.net TextBox?</p>
<p>I need that when i click on the TextBox, the TextBox color will be yellow and when I leave the color will be white.</p>
<p>How can I do this?</p>
| c# asp.net | [0, 9] |
5,046,277 | 5,046,278 | Emulator show's spinner value's tablet show's empty value | <p>In my application i use an MYSQL databank. And i try to load the value's from the Database into the spinner. In the (eclipse) emulator this works perfectally (all items get loaded into the spinners) .</p>
<p>But when i try to run my application on my tablet (honeycomb 10.1) the value's from the database don't show... | java android | [1, 4] |
4,947,561 | 4,947,562 | Include jQuery Using JS Shorthand | <p>So I'm working on a site, and we need to check if jQuery is defined before writing it to the page. I want to convert it to use JS conditional shorthand, but for some reason when I do that the statement does not execute. Here is my code:</p>
<pre><code>Original (this works, tested):
if (typeof jQuery == 'undefine... | javascript jquery | [3, 5] |
4,720,531 | 4,720,532 | How to make more than one listview respond for different onItemClickListener? | <p>I'm using 4list views with class extending Activity. I have to perform different list item click function. Can i use the following method code for it? Any Help is really appreciated and thanks in advance.</p>
<pre><code> public void onItemClick(AdapterView<?> adapter, View view, int index, long id)
{
... | java android | [1, 4] |
5,959,717 | 5,959,718 | Explanation needed about linq queries | <pre><code>private bedrijf_modelDataContext dc = new bedrijf_modelDataContext();
public IList<Afdeling> selectAll()
{
var result = from a in dc.Afdelings
select a;
return result.ToList();
}
</code></pre>
<p>This code is supposed to return all the records from the Afdeling-table.
This code works... | c# asp.net | [0, 9] |
1,516,496 | 1,516,497 | autocomplete display distinct items | <p>How do I display distinct items in the autocomplete list? I don't want the duplicates to show up in the list. I'm reading the data from an XML file.</p>
<p>Here's my web service code:</p>
<p>[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[Scrip... | c# asp.net | [0, 9] |
1,094,721 | 1,094,722 | Which is the better way to get string from BufferedReader | <p>I get <code>BufferedReader</code> from the following networking code.</p>
<pre><code> URL url = new URL(request);
HttpURLConnection httpUrlConnection = (HttpURLConnection)url.openConnection();
InputStream inputStream = httpUrlConnection.getInputStream();
bufferedReader = new BufferedReader(new InputS... | java android | [1, 4] |
4,941,010 | 4,941,011 | sorting number via descending order without 0 | <p>I need to make numbers in descending order but when it reaches 0, the number should turn into 9..</p>
<p>for example, let say <code>num</code> is 2, the order should be <code>2, 1, 9, 8, 7, 6, 5, 4, 3</code></p>
<pre><code>var num = 2;
$(function() {
$(".one").html(num);
$(".two").html((num-1)%9);
... | javascript jquery | [3, 5] |
3,496,919 | 3,496,920 | How do you make a resizable rectangle for cropping images in android? | <p>I want to crop my image which is being displayed on an <code>ImageView</code>. How I want to go about it is that I want a re-sizable rectangle to be displayed on the image. That rectangle will have moveable corners (which I can drag around with touch) to increase/decrease its size.
The image below illustrates a demo... | java android | [1, 4] |
1,920,044 | 1,920,045 | Getting value of dynamically generated textfield | <p>I have a table that has been generated dynamically using PHP. The table has a few textfields which are being used to update the database based on the row. This question can be referred at: <a href="http://stackoverflow.com/questions/9726265/save-dynamically-generated-textfield-from-php">Complete question</a>, based ... | javascript jquery | [3, 5] |
2,202,434 | 2,202,435 | Accessing ASP.NET controls dynamically from JavaScript | <p>here's what I mean:</p>
<p>I have a few controls, for example, </p>
<pre><code><asp:DropDownList ID="ddlDate1" runat="server" />
<asp:DropDownList ID="ddlDate2" runat="server" />
<asp:DropDownList ID="ddlDate3" runat="server" />
</code></pre>
<p>in my javascript, I want to do something like this... | javascript asp.net | [3, 9] |
5,082,173 | 5,082,174 | Jquery removing and adding active class to li nodes & issues with preventDefault | <p>Jquery Removing & Adding 'Active' Class On LI Navigation Works With preventDefault, But Link No Longer</p>
<p>Jquery removing an adding active class to li nodes not working</p>
<p>I know it should be really basic to remove and add the active class to li's in order to highlight the current page's nav item, but ... | php javascript jquery | [2, 3, 5] |
1,524,262 | 1,524,263 | How to display something if variable is not set inside a each loop? | <pre><code>$.each(json.data,function(i,fb){
//some code here...
if (msg.length > 150) {
msg = msg.substr(0,200)+"...";
}
//more code here...
});
</code></pre>
<p>I have an issue here. If msg is not defined I got an error and I got nothing displayed on the browser.</p>
<p>Possible Sol... | javascript jquery | [3, 5] |
3,601,357 | 3,601,358 | How do I remove # sign from hash data? jquery? | <p>I need value of hash from url...</p>
<pre><code>var hash = window.location.hash;
</code></pre>
<p>So how do I get rid of <code>#</code> sign?</p>
| javascript jquery | [3, 5] |
1,180 | 1,181 | ASP.NET: Session expired after folder delete | <p>I am having code where i am moving files to another folder and deleting previous folders and files in an ASP.NET application. After deleting folder, my session is expired. How can I restrict to expire session values. </p>
| c# asp.net | [0, 9] |
2,134,690 | 2,134,691 | htmlencode() for a specific tags only | <p>i have a long string dat can contain html tags
applying htmlencode will encode all the tags
but i want this method to leave some specific tags intact
how is it possible</p>
| c# asp.net | [0, 9] |
4,223,727 | 4,223,728 | foreach radio button show more info | <p>I am trying to make for each radio button, when it is clicked on to show the div with more infos about that clicked title, when another radio button is clicked then the to show info about that radio button and hide the other one that was clicked on:</p>
<p>HTML:</p>
<pre><code><input type="radio" id="1" />
&... | javascript jquery | [3, 5] |
2,866,151 | 2,866,152 | Javascript iPhone code to download and save image in iphone memory from server | <p>What is the way to download and save image in iPhone memory from server in javascript??
Is it possible??
Thanks</p>
| javascript iphone | [3, 8] |
1,817,353 | 1,817,354 | Javascript Gets the contents of the textarea of the distance from the border pixels | <p>How can I be sure the text in the input box, the number of pixels from the left box? It may have utf8, Chinese
<img src="http://i.stack.imgur.com/NRreK.png" alt="enter image description here"></p>
| javascript jquery | [3, 5] |
1,875,662 | 1,875,663 | why this jquery selecter gives me error? | <p>i am using this code ti dynamically select attributes of a element but it gives me an error in firebug</p>
<p><strong>Error:</strong></p>
<p><strong>uncaught exception: Syntax error, unrecognized expression: ''</strong> </p>
<p>Here is my code:</p>
<pre><code>jQuery('.mydata').click(function(){
var current_... | javascript jquery | [3, 5] |
2,532,134 | 2,532,135 | Checking if an e-mail had already been added to a database | <p>I am editing an ASP form that is basically a newsletter subscription form. The issue is that I have no way of triggering an event alerting me if a user has already registered.</p>
<p>I want to find a way to make the form check if that user's e-mail address exists within my database. If so, then just say, "You have ... | c# asp.net | [0, 9] |
5,368,963 | 5,368,964 | How to dynamically show further information with jQuery and PHP? | <p>I have list of courses from MySQL and when I click the course it should display the correct course description to the right and again when I click the next course, the previous should hide and get the current click course description, Here is the code I did</p>
<p>jQuery</p>
<pre><code>$(document).ready(function()... | php jquery | [2, 5] |
4,221,502 | 4,221,503 | How to add a string to a text area with different colours? | <p>I am trying to work out how to write a function where I pass in a string and this string is added to a textarea. This I can do, but I want to parse that string and change the colour on different parts of the string.</p>
<p>In other words, find the words "select", "where" and turn them blue. Then find the words "AND... | javascript jquery | [3, 5] |
5,364,638 | 5,364,639 | Problem with JQuery onClick Event | <p>Please someone let me know what the problem is here, it just wont work :(</p>
<pre><code>function openLightbox(url) {
alert('test');
$('#Lightbox').attr('href', url);
$('#Lightbox').click();
}
openLightbox('test.asp?url=12313');
</code></pre>
<p>For some reason it will not work. When I change it to th... | javascript jquery | [3, 5] |
5,077,335 | 5,077,336 | asp.net listview select onmouseover | <p>How to highlight a whole row of a listview when you mouse over it?
For example if you hover over one row, the row's background colour changes.
I asume it is the onmouseover attribute of tr?</p>
| c# asp.net | [0, 9] |
2,343,901 | 2,343,902 | Message / confirm dialog | <p>I have a need for a confirm message box from a button click, but only on some conditions. I am cheking two values on the aspx.page, and if one is higher than another, I need a confirmation from the user. Are there any ( simple) way of doing this ? I have been reading about javascript and alert messages, but I cant s... | asp.net javascript | [9, 3] |
1,073,685 | 1,073,686 | how to Disable print screen in web page using JavaScript | <p>i am developing a website, i want disable print screen so i searched in the net and i used a JavaScript to disable print screen. it worked fine but during loading of a page it asks for the permission to access the clipboard.</p>
<p>the pop-up message that it shows,</p>
<p>"do u want to allow this webpage to access... | javascript asp.net | [3, 9] |
1,491,774 | 1,491,775 | How to Implement Google direction in asp.net | <p>google map direction in asp.net.
How can we achive</p>
<p>How to Implement Google direction in asp.net</p>
| c# asp.net | [0, 9] |
2,019,340 | 2,019,341 | Load external <script> without cache using Javascript | <p>I want to load an external javascript file into the page and make sure its not cached. I do not have access to php so I cant generate a random string after the filename.</p>
<p>In PHP the script would look like this:</p>
<pre><code><script src="http://site.com/cool.js?<?php echo $randomnumber; ?>"><... | javascript jquery | [3, 5] |
5,185,096 | 5,185,097 | Jquery Modal Pop Up | <p>I am using asp.net image button when we click the image button Modal popup will display. now My problem is when i click the button popup is coming but it post back to the server after that popup window is closed can u give the solution for this</p>
<p>My Code is</p>
<pre><code><asp:ImageButton ID="imgemail"... | jquery asp.net | [5, 9] |
313,474 | 313,475 | Safely wiping data from Android device: Gutmann or others? | <p>I've been reading a few articles on Gutmann method of securely wiping data. I understood that the method is designed for <strong>hard disks</strong>. I want to write my tiny app that securely wipes data (there are a few on Google Play, I know) from either phone memory or SD card.</p>
<p>My questions are</p>
<h3>Qu... | java android | [1, 4] |
4,296,659 | 4,296,660 | Change outerHTML in javascript | <p><code>$(editor[i])[0].outerHTML</code> has a value of:</p>
<pre><code> <p style="color: red;" data-mce-style="color: red;">some string</p>
</code></pre>
<p>I want <code>data-mce-style="color: red;"</code> to disappear.<br>
I'm doing that like this:</p>
<pre><code>$(editor[i])[0].outerHTML.replace('dat... | javascript jquery | [3, 5] |
4,687,938 | 4,687,939 | Session variables vs local variables | <p>Whenever I have to store anything in the session, I have picked up the habit of minimizing the number of times I have to access the session by doing something like this:</p>
<pre><code>private List<SearchResult> searchResults;
private List<JobSearchResult> SearchResults
{
get
{
... | 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.