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 |
|---|---|---|---|---|---|
4,869,180 | 4,869,181 | How can I set up a $.fn. function so it gets executed when called? | <p>I have the following code:</p>
<pre><code> function init() {
var $contentButtonPanel: JQuery = $('#content-button-panel')
$contentButtonPanel
.find('.arbo .toggle, .collapsible-list li:has(ul) > :first-child, .collapsible-list li:has(ul) > :first-child + span')
.clic... | javascript jquery | [3, 5] |
5,661,616 | 5,661,617 | jquery to color code text | <p>I give php code examples on my site and was wondering if their was a way I could colour code them so that it is easier to read like an IDE would do. I always display the code in a div with a class of code and then in pre tags. See my example below.</p>
<pre><code><div class="code">
<pre>
<?... | php jquery | [2, 5] |
3,126,436 | 3,126,437 | ASP.NET - Are there any advantages or differences in using (Type)Container.DataItem and Eval() within Server tags? | <p>Are there any advantages or differences between using the following?</p>
<pre><code><%# Eval("Item.Details")%>
</code></pre>
<p>and <code><%# ((ItemDetails)Container.DataItem).Item.Details%></code></p>
| c# asp.net | [0, 9] |
3,069,874 | 3,069,875 | Client side & server side at the same event (onselectedindexchanged) | <p>I have this drop down list. is it possible to call a javascript function and the server side function at the same time from the onselectedindexchanged event?</p>
<pre><code><asp:DropDownList ID="drpPartGroup"
runat="server"
Height="19px"
Width="169px"
... | javascript asp.net | [3, 9] |
1,201,576 | 1,201,577 | Generate Dynamic Pages With ASP.Net | <p>I am currently programming classic asp and have my own CMS and it's a good one but I'd like to move it to c#.net meanwhile. (customers don't like this old language anymore)
on my current CMS I generate Pages physically with ASP FSO(filesystem object).
so my question is should i use this method at asp.net too? I revi... | c# asp.net | [0, 9] |
1,567,219 | 1,567,220 | jQuery trim and remove on parent break child events | <p>Note: I have a workaround to this problem, but I'd prefer to comma-separate the values as I describe below rather than separating them with spaces (which is what my workaround does).</p>
<p>I have an ASP.NET website that allows instructors to choose from a DropDownList of preset comments and apply these comments to... | javascript jquery | [3, 5] |
1,208,244 | 1,208,245 | Problems with ImageHandler | <p>I have problem with calling ImageHandler..in asp i add imageurl like this:</p>
<pre>
ImageUrl= "~/DesktopModules/Philip.E1013542_skupine/Handler.ashx?id=62"
</pre>
<p>This shows picture in asp:image control. But i would like to retrieve id integer from query string like this:</p>
<p>.../Default.aspx?id=62</p>
<p... | c# asp.net | [0, 9] |
5,896,643 | 5,896,644 | Small riddle: Why this isn't working on Chrome? | <p>Any ideas on why the following code perfectly 'posts' when using FF (I can see the DB updated) but fails on Chrome?</p>
<pre><code> $("a").click(function() {
$.post("ajax/update_count.php", {site: 'http://mysite.com'});
});
</code></pre>
<p>Tip: jQuery version is <code>jquery-1.4.3.min.js</code></p>
<p>... | javascript jquery | [3, 5] |
3,372,099 | 3,372,100 | Fight theft of plugin by sending parameters with AJAX callback | <p>I have built a new jQuery plugin and I want to be able to demo this to the user before they can purchase this. But I also don't want anybody to be able to simple copy the code without paying for it. </p>
<p>For that reason I have encoded the plugin using <a href="http://www.vincentcheung.ca/jsencryption/" rel="nofo... | javascript jquery | [3, 5] |
1,320,343 | 1,320,344 | Jquery methods? | <p>I keep seeing codes like this:</p>
<pre><code> $(document.documentElement).keyup( function(event) {
var slides = $('#slides .pagination li'),
current = slides.filter('.current');
switch( event.keyCode ) {
case 37: // Left arrow
if ( slides.filter(':first').is( current ) ) {
... | javascript jquery | [3, 5] |
5,961,719 | 5,961,720 | loop in object array element jquery | <p>Hello i'm using map() jquery to create a new object array
<a href="http://jsfiddle.net/minagabriel/BKDLt/" rel="nofollow">DEMO</a> but this code is not working </p>
<p>i need to have a new object array with the same name for all objects but with different number
so how can we point over each element in the old a... | javascript jquery | [3, 5] |
1,216,033 | 1,216,034 | What does "a." mean in this snippet of Javascript? | <p>In the Javascript below, what does the <code>a.</code> before the <code>cell1</code> signify?</p>
<pre><code><script type='text/javascript'>
$(function(){
$("a.cell1").click(function(){
</code></pre>
<hr>
<p>EDIT: Thanks for the answers. Would it work if I did this to the Facebook Like button:</p>
<p... | javascript jquery | [3, 5] |
31,950 | 31,951 | Best way to fill textbox with list of values by double click using java script or jquery? | <p>I need to fill a textbox with list of values just by double click on it using java script or j query?</p>
<p>Eg:- I have a list of 10 users and i want to fill a textbox control like a dropdownlist just by clicking on it using java script or j query.</p>
<p>Is it possible than how?</p>
| javascript jquery | [3, 5] |
1,373,347 | 1,373,348 | Jquery watch certain fields for certain values | <p>I have some test code here</p>
<pre><code><input type="radio" name="group1">1
<input type="radio" name="group1">2
<input type="radio" name="group1">3
<br>
<input type="text" name="text1">
<br>
<input type="radio" name="group2">1
<input type="radio" name="group2">2
<... | javascript jquery | [3, 5] |
5,115,323 | 5,115,324 | javascript parseFloat can't determine if the input is float or not | <p>I am new to javascript and php and programming so pls bear with me.</p>
<p>I am trying to create javascript function to check if the user enters a float value or not. The event is keypressed so it will check every character.</p>
<p>What happens is that if the first character is a float it say its float for the res... | php javascript | [2, 3] |
1,558,026 | 1,558,027 | ASP.NET how to check type of the file type irrespective of extension | <p>If somebody renames the extension of any file (other than excel) to xls and xlsx (please dont ask me why :-( ), I need to check for its validity (if that is still a valid excel file). I am using mime type and Its not working. Am I missing anything?</p>
<pre><code>const string excel2007MimeType = "application/vnd.op... | c# asp.net | [0, 9] |
3,624,173 | 3,624,174 | How to place Checkboxes with ListView (Android) | <p>I was following the ListView official tutorial - [url]http://developer.android.com/resources/tutorials/views/hello-listview.html[/url], because I get the entries dinamically through a webservice.</p>
<p>Problem is, I want to place checkboxes at it. I have this</p>
<p>(aux (String [] aux) is previously and correctl... | java android | [1, 4] |
5,888,730 | 5,888,731 | Stop next mouseover event from firing until inner function has finished | <p>I am implementing a simple image swapping feature with a fade in jquery.</p>
<pre><code>$('#thumbs img').mouseover(function(){
// code to swap images here
});
</code></pre>
<p>If I move the mouse really quickly the mouseover keeps firing and the code to swap the images cant keep up. How do I stop the mouseover e... | javascript jquery | [3, 5] |
2,311,894 | 2,311,895 | How to make a list of recent/running apps | <p>When holding the home button on your phone a pop up comes up showing recent applications. Does anyone know how to do this same action through code? I need to be able to choose one in a listview.</p>
| java android | [1, 4] |
4,480,405 | 4,480,406 | Generate my links automatically | <p>I would like to generate my links automatically via a static class in each of my aspx pages (or in a common BasePage).</p>
<p>Currently I use this:</p>
<pre><code>private const string TEMPLATE =
"~/One.aspx";
public static string Link ()
(
string link = String.Format(TEMPLATE);
return link;
)
</code><... | c# asp.net | [0, 9] |
5,134,591 | 5,134,592 | execute a fuction on the first element matching selection using Jquery | <p>I know <code>$('.test').each(testFuntion);</code> invokes the <code>testFunction</code> for all matching <code>.test</code> elements on the page. How do I tell it to do just the first matching one.</p>
<p>I tried <code>$('.test:first').each(testFuntion);</code> and it still seems to run for all of them.</p>
| jquery asp.net | [5, 9] |
4,684,792 | 4,684,793 | Issues with json_encode array | <p>I am having issues with my JSON_encode and jQuery, I am getting it to post the full array with the following code, but I can't get it to echo just the one array I need.</p>
<pre><code>$.get("/indexget.php", { page: "goals" },function(data) {
$('#bodyContentStuff').text(data);
</code></pre>
<p>Full jQuery code</p>
... | php javascript jquery | [2, 3, 5] |
4,386,801 | 4,386,802 | jQuery Split where numeric number occur | <p>I have a string like </p>
<p>this-is-my-0-string.
this-is-my-new-1-string-occur.</p>
<p>i want to break string where number occurs</p>
<p>like </p>
<p>this-is-my , 0 , string </p>
<p>and this-is-my-new,1, string-occur</p>
<p>in common words i need to break my string where numbers occur. number is any from 0, ... | javascript jquery | [3, 5] |
2,127,514 | 2,127,515 | filling javascript object "on the fly" | <p>HI, i have an object: var myobject = new Object;
and i want to dynamically fill it with properties while looping through jquery input collection in that manner:</p>
<pre><code>$('.test').each(function(){
myobject.$(this).attr('name') = $(this).val();
});
</code></pre>
<p>what i'm doing wrong here?
thanks in ad... | javascript jquery | [3, 5] |
5,344,856 | 5,344,857 | Selecting a random image from a flickr set and appending it to a div | <p>I've run into a bit of a problem and was hoping to get a little help. I am trying to select a random image from a flickr set and append it to a div to use as a background image. Here is the function:</p>
<pre><code>$.getJSON("http://***", function (data){ ... | javascript jquery | [3, 5] |
1,253,837 | 1,253,838 | Hide page when second click on menu | <p>I use jQuery to display an accordion menu when clicking on a menu title.</p>
<p>The first click displays the corresponding details page, and it works fine. Now, I need to hide this details page when the user clicks on that link for the second time.</p>
<p>Thanks in advance for help.</p>
| javascript jquery | [3, 5] |
1,174,606 | 1,174,607 | jquery change event without postback | <p>I have a listbox and on a particular selected value i want to display a dropdown and on selection of a value from the dropdown i want to display another dropdown.</p>
<p>I have achieved this using jquery but the dropdowns are displayed only after postback. How to avoid the postbacks ?</p>
<p>This is my jquery code... | jquery asp.net | [5, 9] |
1,846,306 | 1,846,307 | Dynamically Loading a UserControl with LoadControl Method (Type, object[]) | <p>I'm trying to return the html representation of a user/server control through a page method. It works when I call the overload which takes the virtual path to the user control, but not when I try to call the overload which takes a type. The sample code is below. Any suggestions?</p>
<pre><code>[WebMethod]
public st... | c# asp.net | [0, 9] |
340,104 | 340,105 | Javascript boolean if statement not working | <p>I'm trying to animate a panel to come in and out from the top of the page. Unfortunately my if statement is not working. Here's my code:</p>
<pre><code>var panelShown = false;
$(document).ready(function(){
$('#nav_arrow').click(function(){
panelShown = true;
$('#nav_panel').animate({top: '0px'},... | javascript jquery | [3, 5] |
4,541,062 | 4,541,063 | last day of the month | <p>How can obtain the last day of the month with the timestamp being 11:59:59 PM?</p>
<p>Thanks,
rodchar</p>
| javascript jquery | [3, 5] |
3,882,174 | 3,882,175 | Lanch simpledialog manually | <p>How can I throw a simpledialog manually from a js function? </p>
<pre><code><div id="loading_dialog_div"><img src="img/indicator.gif" alt="" /></div>
<a href="#" onclick="return addCustomer()" class="button pill simpledialog" rel="loading_dialog_div">Add customer</a>
</code></pre>
<p>... | javascript jquery | [3, 5] |
702,219 | 702,220 | Scroll textarea upwards/downwards on clicking prev and next hyperlinks in web page | <p>I want to show a hyperlinks "prev" "next".
Clicking on "next hyperlink should scroll textarea to next location.
Clicking on "prev" hyperlink should scroll textarea to previous location.</p>
<p>The locations to jump in textarea are known e.g. line: 10, then line 40 , 50 , 70 , 101 , ....
textarea has a fixed height... | javascript jquery | [3, 5] |
5,133,027 | 5,133,028 | How to use my PHP function in JavaScript code | <p>I'm trying to use my PHP function in JavaScript like this:</p>
<p>PHP code:</p>
<pre><code>function checkevents($date){
$ev = new CalendarModelEventss();
$wh = "`event_date` = '".$date."'";
$all = $ev->getAllEvents('event_date', $wh);
if($all == $date){
//echo 'event is available'.$all; ... | php javascript | [2, 3] |
528,836 | 528,837 | show arrow only when tab is active | <p>jsfiddle: <a href="http://jsfiddle.net/PBvk9/" rel="nofollow">http://jsfiddle.net/PBvk9/</a></p>
<p>I want the arrow for its respective tab to show up only when the tab is active. Can someone help me out?</p>
| javascript jquery | [3, 5] |
1,992,518 | 1,992,519 | JavaScript catch event | <p>I have a problem. I have too many events in my DOM. The upper layer is catching the deeper event.</p>
<p>Easy Example:</p>
<pre><code><!DOCTYPE html>
<html>
<head>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script>
$(docu... | javascript jquery | [3, 5] |
1,409,629 | 1,409,630 | jquery accessing php jason_encoded array | <p>in test.php:</p>
<pre><code><?php
array_push($stack, "BLABLA");
array_push($stack, "BLABLA2");
echo json_encode($stack);
?>
</code></pre>
<p>in test.html:</p>
<pre><code><script type="text/javascript">
$(document).ready(function(){
$.post(
'test.php', // location of your php script
{}, //... | php jquery | [2, 5] |
1,920,207 | 1,920,208 | How I can sort images by dimension in javascript or jquery | <p>How I can sort images by dimension in JavaScript or jQuery. My code is following:</p>
<pre><code>var imgsrc = '';
if (document.images.length < 1) {
alert('No images to open');
return;
}
for (var i = 0; i < window.parent.document.images.length; i++) {
imgsrc + = '\n';
}
if (imgsrc != '') {
var... | javascript jquery | [3, 5] |
4,954,687 | 4,954,688 | ASP.NET Jquery check is checked not working | <p>I have an onChange event for a checkbox which fires a function that toggles the Visibility of some TRs. My problem is this code only works in firefox. I want it to work for ie8.</p>
<pre><code>function toggleVisibility() {
if ($("#ctl00_PageContent_chkVisibility").is(':checked')) {
$('#ctl00_PageConten... | jquery asp.net | [5, 9] |
805,518 | 805,519 | jquery image gallery slide animation | <p>I am trying to make a simple image gallery like this. <a href="http://dimsemenov.com/plugins/royal-slider/#image-gallery" rel="nofollow">http://dimsemenov.com/plugins/royal-slider/#image-gallery</a> When I click a thumbnail image, image element will create and loading image will appear a little time and created el... | javascript jquery | [3, 5] |
3,411,152 | 3,411,153 | How can i send io stream to specific USB? | <p>I need to send some io stream ( the io information can be text or video stream ) to some of the existing USB connectors. </p>
<p>I don't know how can i send this stream directly to this port - and if this actually possible.</p>
<p>Someone can help me ? </p>
<p>Thanks</p>
| c# c++ | [0, 6] |
3,740,996 | 3,740,997 | jquery .show not running | <p>The following code doesn't seem to execute properly for me, and I'm puzzled as to why. <code>NonITView</code> and <code>ITView</code> are both divs in my ASP page. <code>txtIsIT</code> is an <code>asp:textbox</code> on the page that gets either "yes" or "no" on page load.</p>
<pre><code> if (document.getEl... | javascript jquery asp.net | [3, 5, 9] |
3,006,688 | 3,006,689 | JavaScript in Android | <p>Is it possible to use JavaScript in Android?? if so, how? Please provide some examples.</p>
<p>Thanks.</p>
| java javascript android | [1, 3, 4] |
5,691,860 | 5,691,861 | timer schedule method exceeds the time | <p>I use the timer schedule method to send location information to the db every 5 min.</p>
<p>Here is the code:</p>
<pre><code>public void onStart(Intent intent, int startId)
{
this.timer.schedule(new Send(), new Date(), TEN_SECONDS*6*5); //ten_seconds = 10000
}
class Send extends TimerTask
{
public void ru... | java android | [1, 4] |
5,813,648 | 5,813,649 | hosting a webserver inside iphone and android phones | <p>i am planning to do some servlet for my app to work offline on both android and iphone devices. for this i need to have the stubbed responses on a server.i saw there is one such server for android (<a href="http://code.google.com/p/i-jetty/" rel="nofollow">http://code.google.com/p/i-jetty/</a>). is there is similar ... | php android iphone | [2, 4, 8] |
2,900,717 | 2,900,718 | jQuery Dropdown Check List: jQuery click() anomaly | <p>I have a page with several dropdownchecklists, all with checkboxes (multiple selects possible). Inside document ready, I have this simple code:</p>
<pre><code>$(":checkbox").click(alert('TEST'));
</code></pre>
<p>The problem is that when the page first loads, the alert fires. What I want to do is only fire the al... | javascript jquery | [3, 5] |
1,977,291 | 1,977,292 | Javascript - arrays sorting | <p>I have two arrays:</p>
<pre><code>keys_array = [2,4,5,8,9]
values_array = ['two','four','five','eight','nine']
</code></pre>
<p>I need to get:</p>
<pre><code>#transitional result
#values sorted alphabetically
sorted_by_value_name_array = [
['8','eight'],
['5','five'],
['4','four'],
['9','nine'],
['2',... | javascript jquery | [3, 5] |
2,002,247 | 2,002,248 | Android: Prompt user to save changes when Back button is pressed | <p>I have an activity that contains several user editable items (an EditText field, RatingBar, etc). I'd like to prompt the user if the back/home button is pressed and changes have been made that have not yet been saved. After reading through the android documentation, it seems like this piece of code should go in th... | java android | [1, 4] |
1,454,961 | 1,454,962 | Adding Views to another View | <p>Is there a possibility to add a view or derivative (button, textview, imageview etc...) to another view without having to go through layouts?</p>
<p>I have a class called ScreenView, it derives from View (e.g. public class ScreenView extends View).
I wanted to display text into it, labels, images etc..</p>
<p>On a... | java android | [1, 4] |
2,691,577 | 2,691,578 | Android: Scan music files from specific directories? | <p>I want to my application to scan for music files only in those folders which I have specified in preferences. So that other music files like audio books do not get included.</p>
<p>Currently, I've written this code, that scans all music files:</p>
<pre><code>private String[] getTrackList() {
String[] resu... | java android | [1, 4] |
948,030 | 948,031 | Why is array[0] returning a different object than array.first using jQuery and why can't I use .val( )? | <p>I'm selecting an array of input objects using jQuery and I'm running into an interesting problem when I try to chain together multiple methods after selecting one of the array elements. Can anyone explain to me why I get this behavior?</p>
<pre><code>jQuery('.custom-size').first().find('input:hidden')
returns =>... | javascript jquery | [3, 5] |
1,542,516 | 1,542,517 | jQuery/javascript optimization | <pre><code>$("#mySelect").change(function() {
var myVar = $('#MyDiv');
for (var i=0;i<this.value;i++)
{
myVar.clone().appendTo('#formContainer');
}
});
</code></pre>
<p>Any improvements to readability or performance welcome</p>
| javascript jquery | [3, 5] |
5,110,070 | 5,110,071 | Change value of Onclick function vars | <p>I have the onClick function attached to a button. I want to be able to change the function var from 'create' to 'update' on the page load and through other functions. I have tried the code below but no luck.</p>
<pre><code><input type="button" name="save_customer" id="save_customer" value="Save" onClick="custome... | javascript jquery | [3, 5] |
4,734,964 | 4,734,965 | Auto Submit Form after 10 characters | <p>I want my form to be autosubmitted when user enters the tenth character in an input field.</p>
<p>Here is my code:</p>
<pre><code><form id="Form" action="action.php" method="post">
<input name="htno" type="text" value="" />&nbsp;
<input type="submit" value="Submit" />
</form>
</code></p... | javascript jquery | [3, 5] |
3,366,999 | 3,367,000 | JQuery - loading multiple pages in one newly opened window | <p>I'm total beginner in js and JQuery and have to complete such task:</p>
<p>I have to open new window with some document print preview. It is not a problem for single document, but there's a need to print more than one document. I was trying to do this like that:</p>
<pre><code>var win = window.open("", "test", "wi... | javascript jquery | [3, 5] |
899,511 | 899,512 | Programming a multiplayer game with a PhP/MySQL server, and JavaScript/jQuery clients | <p>Here is the situation. I would like to develop a game based on content delivered by MediaWiki. MediaWiki is PhP based and has MySQL as database. So far, I did the client side animations using JavaScript and jQuery.</p>
<p>The game doesn't have to be strictly real-time. I simply want to be notified when the person I... | php jquery | [2, 5] |
335,421 | 335,422 | Try - Catch return strategy | <p>When using <code>try-catch</code> in methods, if you want you application to continue even if errors come along, is it okay to return the default value as return through the catch block, and log the error for later review?</p>
<p>For Example:</p>
<pre><code>public static string GetNameById(int id)
{
string nam... | c# asp.net | [0, 9] |
1,085,735 | 1,085,736 | Pass 2 arguments to check box | <p>In <a href="http://www.cleancode.co.nz/blog/279/checkbox-repeater-event-handling-argument" rel="nofollow">this</a> example they are passing only 1 argument. Wat if I wanna pass two ?</p>
<p>When I was using Link Button I was using the two Command arguments like <a href="http://stackoverflow.com/questions/4263489/ne... | c# asp.net | [0, 9] |
1,569,911 | 1,569,912 | how to open jquery popup window through header redirect using php? | <p>I'm using jquery for popup window. This pop-up window will contain 2 file uploading and other text input tag and finally Submit button.Now If user upload a file from the 1st file upload the action is send to upload.php file then redirects to this page, but the pop is closed.So i want the pop-window to be open after ... | php jquery | [2, 5] |
5,307,184 | 5,307,185 | Seeing if a checkbox is checked by default | <p>I have a javascript function that sets a variable everytime a checkbox is clicked:</p>
<pre><code> function handleClick(cb) {
alert('entered function');
setTimeout(function () {
if (cb.checked ) {
$("#IsChecked").val('true');
}
else
... | javascript jquery | [3, 5] |
1,614,123 | 1,614,124 | access one web user control datalist Template Item to some othere web user and check validation | <p>I have a web user control suppose a.ascx there is a datalist template item linkbtn lnktbnA</p>
<p>i am adding the data in that and binding it.</p>
<p>I have a web user control suppose b.ascx there is a btn BB</p>
<p>now i want to check IF there is any item named as Final Page then page redirect to some other page... | c# asp.net | [0, 9] |
654,635 | 654,636 | Simplest way to communicate data between php and android | <p>I am trying to build an android application based on hotel management. The app simply provides the list of deals to the user. The website stores the data regarding the user and deals in sql tables in database.</p>
<p>Is there any simple way to communicate data such as deal details and user details like user name, h... | php android | [2, 4] |
3,511,384 | 3,511,385 | call a function with a specific index value of nodelist | <p>Is it possible to call a function on specific index value of nodelist which is storing div like following :</p>
<pre><code>var txtElem = txtdiv.getElementsByTagName("div");
</code></pre>
<p>the thing i want is that i am storing list of divisions in txtElem nodelist now i want to call a function on click event of t... | javascript jquery | [3, 5] |
1,324,115 | 1,324,116 | Function Not Defined OEmbed Vimeo API | <p>Started messing around with Vimeo API in an attempt to create a clickable gallery like this (http://www.aideffectiveness.org/busanhlf4/vimeo/php-example.php). However, when I moved some of the code into a "script.js" file as a way to organize my code from the other parts of the site, the json callback keeps saying t... | javascript jquery | [3, 5] |
1,163,637 | 1,163,638 | What exactly is this structure | <p>Is this an object that contains objects or an array of objects? </p>
<pre><code>var rgb = {
ball: { Red: 232, Green: 23, Blue: 23},
square: { Red: 42, Green: 83, Blue: 32},
};
</code></pre>
<p>I need to generate it with php and then declare it in my script, so want to know what I should be building in php</p>
| php javascript jquery | [2, 3, 5] |
1,347,734 | 1,347,735 | Check if/time Image loads ASP.net Web Application | <p>Ive looked around and havent seen anything on what I can do for my problem, so maybe someone here can help me. Basically I have an image (http://mysite.com/Sites/P/PA/25?encoding=UTF-8&b=100 note there is no file extension as this served through a script) and I want to check to see if this image returns an Image... | c# asp.net | [0, 9] |
4,226,811 | 4,226,812 | Programmatically View image hash values | <p>How to Programmatically View image hashes in C# or PHP ?</p>
| c# php | [0, 2] |
545,609 | 545,610 | Read file.inputstream twice | <p>I need to read csv file twice. but after first reading:</p>
<pre><code>using (var csvReader = new StreamReader(file.InputStream))
{
fileFullText += csvReader.ReadToEnd();
file.InputStream.Seek(0, SeekOrigin.Begin);
csvReader.Close();
}
</code></pre>
<p>using file in enother function:</p>
<pre><code>pu... | c# asp.net | [0, 9] |
265,604 | 265,605 | How do you put jsfiddle on your html | <p>This may be the thickest question ever! But how do I get this to work on my html?</p>
<p>HTML</p>
<pre class="lang-html prettyprint-override"><code><div class="test2"></div>
<div class="test"></div>
<div class="test3"></div>
</code></pre>
<p>CSS</p>
<pre class="lang-css pret... | javascript jquery | [3, 5] |
838,222 | 838,223 | JQuery - Javascript | <p>The following is my code for one form of a two form aspx page. Would this code work? Or any help to make it work is much appreciated.</p>
<pre><code><form action="
$(document).ready(function(){
DoSearchSubmit('Search.aspx','Results.aspx')
});"
method="POST"
id="SearchForm" >
... | javascript jquery | [3, 5] |
2,806,338 | 2,806,339 | Receiving JQuery $.post data and returning specific results with PHP | <p>I'm trying to make a dynamic website on a single webpage and I'm almost there. All that's left is to do some php coding. </p>
<p>Here is a few lines of code from my "index.php"</p>
<pre><code>$('.open').click(function(){
current = $(this).html();
$.post("source.php", {name: current}, function(src){
... | php javascript jquery | [2, 3, 5] |
477,753 | 477,754 | How to show the progress bar to diffrent clients.? | <p>User1 open the website did something the progress bar starts.
User2 open the same website that progress bar needs to display here.Please tell me.</p>
| c# asp.net | [0, 9] |
5,115,671 | 5,115,672 | Colums name of SMS Cursor? | <p>I have 2 lines code:</p>
<pre><code>private static final Uri SMS_INBOX = Uri.parse("content://sms/inbox");
Cursor c = getContentResolver().query(SMS_INBOX, null, null, null, null);
</code></pre>
<p>Anybody know where to find column list of this cursor?</p>
| java android | [1, 4] |
1,975,474 | 1,975,475 | Is there any alternate to TextView? | <p>I m new to android application development. I made a project on getting feeds of sites. I displayed the title and description of feeds in textview which is not looking very presentable. Is there any alternate to it? I just need my application to look a bit presentable. </p>
| java android | [1, 4] |
5,391,952 | 5,391,953 | TimeZone.getAvailableIDs in Android and Java | <p>I am TimeZone.getAvailableIDs for List of TimeZone in android.It is behaving differently in android as compared to Java.</p>
<pre><code> String[] tzone = TimeZone.getAvailableIDs(-3 * 3600 * 1000);;
for (String string : tzone) {
do something
}
</code></pre>
<p>It skiping all those TimeZone which... | java android | [1, 4] |
167,486 | 167,487 | phpmyadmin html connect | <p>i am currently creating a web application. the problem here it is coded purely in HTML and JScript. Is it possible to use a php script as well to connect to PHPmyadmin? i have been encountering the same problem where the script is being displayed as text file</p>
| php javascript | [2, 3] |
1,139,469 | 1,139,470 | Static Methods in ASP.NET | <p>i am a little confused about static methods within asp.net-pages. E.g. what if i create a static Database-Method to get Userdata out of the database (something like UserDBHandler.getUser()) - is it safe to call that method from within web-pages? Isnt a new thread created for every page-call?
And does HttpContext.Cur... | c# asp.net | [0, 9] |
4,488,327 | 4,488,328 | GridView trouble in .Net | <p>i think this maybe an easy one...<br>
I have a Gridview, bound to a dataSource with this query:<br>
select userid, name, phone from users<br>
I need to change the content of the Name cell to a link, like so:<br>
<code><a href="http://www.domain.com/page.aspx?userid=12345">User's Name</a></code><br>
so On... | c# asp.net | [0, 9] |
465,224 | 465,225 | Clear dropdownlist with JQuery | <p>I wrote this little function to fill a drop down list with data from the server.</p>
<pre><code>function fillDropDown(url, dropdown) {
$.ajax({
url: url,
dataType: "json"
}).done(function (data) {
// Clear drop down list
$(dropdown).find("option").remove(); <<<<&l... | javascript jquery | [3, 5] |
3,328,196 | 3,328,197 | WVGA800 (480x800) & Density ANDROID | <p>Table 3 on this page:
<a href="http://developer.android.com/guide/practices/screens_support.html" rel="nofollow">http://developer.android.com/guide/practices/screens_support.html</a></p>
<p>shows that WVGA800 (480x800) is available with 3 Densities. Does this mean that for each density the game will be loaded with ... | java android | [1, 4] |
4,628,055 | 4,628,056 | Problems with a method imported from a SDK library | <p>I am new to C# and ASP.NET and I have a problem with a library that I am importing. I have a small application that is going to convert a sound file in a format that is proprietaty to the vendor and they have an SDK that provides a method to make the conversion from their extension to .WAV format.</p>
<p>The issue ... | c# asp.net | [0, 9] |
3,989,001 | 3,989,002 | How can I add dashes (custom formatting) inside a string of numbers? | <p>I have a site where users enter a numeric code of 10 numbers:</p>
<pre><code>xxxxxxxxxx
</code></pre>
<p>When displaying this value (read from the database), I want it to display in this format:</p>
<pre><code>xxxx-xxxx-xx
</code></pre>
<p>How can I do this with PHP or jQuery?</p>
| php jquery | [2, 5] |
1,529,752 | 1,529,753 | ASP.NET RegisterClientScriptBlock, RegsiterStartupScript issues | <p>I am working on a set of ASP.NET applications using a master page.
When I try to register a clientscript - an alert box for instance, in the Page_Load it works fine. However if I try to do the same from any method or event handler of the same class it doesn't.
Also, it doesn't seem to matter which Register method yo... | javascript asp.net | [3, 9] |
39,084 | 39,085 | add second onclick to Listview | <p>I want to add a second <code>on click</code> to a ListViewItem.
I already created the View (ImageView) and i set the on Click. The function gets called.
But: How can i get the Informations of this ListViewItem? It would be enough to get the Position in the ListView?</p>
<p>The ImageView:</p>
<pre><code><ImageV... | java android | [1, 4] |
719,730 | 719,731 | how to add a hyper link in a gridview | <p>I have a gridview control and I would like the field Title to be a hyperlink and execute a stored procedure when clicked. Can anyone assist me in this?</p>
<p>Does this code look right?</p>
<pre><code><Columns>
<asp:TemplateField>
<ItemTemplate>
<asp:HyperLink ID="hpTit... | c# asp.net | [0, 9] |
5,901,786 | 5,901,787 | Support move to SD in Android when the project is 2.1 | <p>I have an application, its a 2.1 project. I'd like to add "Move to sd" option to my application. How should I do it?
I must create a new project for android 2.2? If yes how can I make for keep the whole app maintainable and don't have two sepparated projects?</p>
<p>Thanks in advance</p>
| java android | [1, 4] |
1,686,729 | 1,686,730 | CSV file export | <p>I have some data with in different datatables.
Each datatable is not assured of having the same no of records.
Using all these datatables i need to put those data into a comma delimeted CSV file.
But I found examples only for exporting using a single dataset.
Can any one suggest a way to do this?
And if I insert rec... | c# asp.net | [0, 9] |
840,513 | 840,514 | jquery horizontal news ticker using google jsapi | <p>I need to make some changes to this news ticker which is based on goldyberg's jquery horizontal newsticker using Google JSAPI:</p>
<p><a href="http://inetwebdesign.com/jQueryTools/tickers/horizontal-news-ticker2/horizontal-news-ticker3.html" rel="nofollow">http://inetwebdesign.com/jQueryTools/tickers/horizontal-new... | javascript jquery | [3, 5] |
3,326,721 | 3,326,722 | Can i use resolveurl in javascript | <pre><code> <script language="javascript" type="text/javascript">
banner2.add("FLASH", "../Banners/1.swf", 10, 60, 468,"http://www.techpint.com","_blank");
banner2.add("FLASH", "../Banners/2.swf", 10, 60, 468,"http://www.tapasya.co.in","_b... | c# asp.net javascript | [0, 9, 3] |
4,700,065 | 4,700,066 | Highlight the text using jquery | <p>I have one textbox, button and and list box with some text.</p>
<p>When I click on button what ever the text I enter in text if it matches the text in the list box I am trying to highlight that text using jquery I used this code.</p>
<p>Jquery Code</p>
<pre><code>$("#btnhighlight").click(function () {
alert("... | javascript jquery | [3, 5] |
325,704 | 325,705 | Convert input field to text with jquery? | <p>I need to convert <code><input type="text" value="1" class="simpleCart_input"></code> to plain text. Is it possible?</p>
<p>Like I need it to be</p>
<pre><code><span class="simpleCart_input">1</span>
</code></pre>
<p>But how?</p>
| javascript jquery | [3, 5] |
5,518,640 | 5,518,641 | Not violating "compareTo" contract in a changing list | <p>This is kind of a general java question and doesn't relate too much to Android.</p>
<p>In my application I have a list of some objects of a medium complex class which implements <code>Comparable</code>. The <code>compareTo()</code> method's result depends on some of the fields. The method is consistent and doesn't ... | java android | [1, 4] |
3,966,702 | 3,966,703 | How to add a class to empty h1 with jQuery? | <p>I'd like to add a class 'hideme' to a empty div.</p>
<pre><code><div id="infocontent" class="grid_15 prefix_1">
<h1 id="mainhead" class="grid_15 alpha omega" ></h1>
<div id="infoinner" class="grid_13 prefix_1 suffix_1 alpha omega">
<FORM ACTION="command.asp" METHOD="get" ... | javascript jquery | [3, 5] |
3,200,059 | 3,200,060 | How to display timepicker dialog when radiobutton is clicked? | <p>I'm trying to display time picker dialog by using <code>showDialog(1);</code> when radio button is clicked. But i cannot display if i write onclick event for radio button. How to solv this problem? Any help is appreciated and thanks in advance...</p>
| java android | [1, 4] |
4,567,109 | 4,567,110 | Using jquery, how do you reorder rows in a table based on a TR attribute? | <p>I have a table with rows similar to the following. These rows get updated from time to time via jquery calls. Using jquery, how would I construct a function that reorders these table rows based on the myAttribute value putting the highest myAttribute value rows at the top and the lowest myAttribute value rows at the... | javascript jquery | [3, 5] |
5,569,022 | 5,569,023 | Library file for c# dot net | <p>I'm a relatively new c#.net programmer and need some advice on adding a Library file to a c# project.</p>
<p>This project is not done in proper C# fashion and I realize that, but am not looking to solve that today.</p>
<p>I have 3 .aspx pages and each has a corresponding .cs file set up as a code behind. That all... | c# asp.net | [0, 9] |
4,830,556 | 4,830,557 | .before to insert multiple elements | <p>I have an element <code>var destination</code> which I'm trying to insert multiple elements before it. I use <code>.before</code> but I use it multiple times because I'm moving multiple elements. </p>
<p>Is there a way to improve this code, and move all the elements at once? I'm moving an element <code>moveElement<... | javascript jquery | [3, 5] |
2,290,008 | 2,290,009 | How can i define my own event in jQuery? | <p>How can i define my own event in jQuery?</p>
| javascript jquery | [3, 5] |
5,368,348 | 5,368,349 | Click on an object, get another object? | <p>On click I get an objects id.</p>
<p>The id will be something like 'about-me'.</p>
<p>Now in the on click function I want to target the object that's called 'content-about-me'.</p>
<p>How can I do this? Ive tried this with no luck:</p>
<pre><code>$('.sub-nav').on('click', function(){
$('#content-'$(this... | javascript jquery | [3, 5] |
4,112,545 | 4,112,546 | Resizing image size using javascript | <p>I am trying to resize the image using javascript, but I am getting errors </p>
<pre><code> var y;
var y = new Image();
y.src = s;
var wd = y.width/600;
var ht = y.height/600;
if(ht>wd){
var rw=round(wd * (1/ht));
var hw1 = ht * (1/ht);
... | javascript jquery | [3, 5] |
5,288,754 | 5,288,755 | Get last line from a textarea on keypress | <p>I have a textarea field and on every keypress, I would like to push the last line in the textarea to an array.</p>
<p>Currently, I am constructing the array on every keypress to get the last line in the textarea. Is there a way to optimize this? Meaning, get last line in the textarea without having to construct an ... | javascript jquery | [3, 5] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.