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
2,726,190
2,726,191
hide paging numbers in gridview?
<p>I am trying to hide paging numbers on gridview that shows on bottom of the gridview. I am using dropdown list instead of this number clicks. How can I hide them?</p> <p>Please advice</p>
c# asp.net
[0, 9]
2,435,949
2,435,950
Changing the inner tags class of a tag using jquery or javascript
<p>I have the following code:</p> <pre><code>&lt;li id="toto" class="jstree-leaf"&gt; &lt;ins class="jstree-icon2"&gt;&amp;nbsp;&lt;/ins&gt; &lt;a class=""&gt;&lt;ins class="jstree-icon2"&gt;&amp;nbsp;&lt;/ins&gt;Story B&lt;/a&gt; &lt;/li&gt; </code></pre> <p>I need to change the class of the <code>&lt;ins&gt...
javascript jquery
[3, 5]
966,604
966,605
From the web to games
<p>I'm a basic web developer. I know PHP, a little bit of Python and Ruby. JavaScript as well [some stuff]. I'm not a hardcore developer. I know what it takes do develop most of web cases.</p> <p>Now, I have this desire to go deeper and start developing games. I know it sounds a huge leap, but that is why I'm asking h...
php javascript python
[2, 3, 7]
2,719,680
2,719,681
Problem in show value jQuery toolti
<p>I created a tooltip and i have problem with it, i want:</p> <p>When that <code>mouseenter</code> on <code>hi</code> show value into next div it <code>value hi</code> <br> When that <code>mouseenter</code> on <code>hello</code> show value into next div it <code>value hello</code> <br></p> <p>But in following code, ...
javascript jquery
[3, 5]
4,451,308
4,451,309
Filter Input in Real-Time?
<p>I have an EditText (accepts 0-9) with a listener. I want to grab input as it's entered, apply a calculation, and display it in the same EditText box.</p> <p>The box initially displays $0.00. When the user inputs a 2, I want to grab that from the box, parse it to remove the $ and decimal, convert it to an int... div...
java android
[1, 4]
4,609,981
4,609,982
lightbox is not working in updatepanel + c#
<p>I have 6 thumbnail images as <code>asp:imagebutton</code> instances. These are treated as triggers for <code>asp:updatepanel</code> control on the page which contains an <code>asp:image</code> control. <br><br> When the user clicks on the thumbnail, the image in the <code>asp:updatepanel</code>'s image control chang...
c# asp.net
[0, 9]
5,788,632
5,788,633
asp.net regularexpressionvalidator ValidationExpression
<p>I want to make a asp.net regularexpressionvalidator ValidationExpression that will prevent to give input ; and –- .</p> <p>I can do for – and it is ValidationExpression="[^-]*"</p> <pre><code>&lt;asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="TextBox1" Display="D...
c# asp.net
[0, 9]
970,027
970,028
With JS add default date on TextBox
<pre><code>&lt;asp:TextBox ID="txtDate" runat="server" AutoPostBack="true" OnTextChanged="txtDate_TextChanged"&gt;&lt;/asp:TextBox&gt; </code></pre> <p>how can with Jquery add default date. I do not know where and when to call this code:</p> <pre><code>function addDefaultDate() { if ($('#txtDate').val().length ==...
jquery asp.net
[5, 9]
120,413
120,414
How to change the value of a dropdown box from within it's own change function so that the change function is called again
<p>I run some code when a value is selected from a drop-down box:</p> <pre><code>$('#temp_id').change( function() { if ($('#temp_id').val() == "temp_val") { $('#temp_id').val("temp_val2"); } }): </code></pre> <p>This code runs ok, but the <code>$('#temp_id').val("temp_val");</code> line changes th...
javascript jquery
[3, 5]
4,581,638
4,581,639
I would like to call setinterval, and when set interval completes, change the page
<p>I would like to use set interval, and when interval completes, change page - however, with this below, it changes the page after 1 interval run when I want to to change page when myNumber >= 300.</p> <p>I'd be grateful of any help, thanks</p> <pre><code> var myNumber = 0; function openportal() { var myInt...
javascript jquery
[3, 5]
5,539,879
5,539,880
how to hide/remove all text in-between two elements?
<p>lets say i have this lump of HTML:</p> <pre><code>&lt;div class="container"&gt; &lt;span class="title"&gt;Heading 1&lt;/span&gt; This is a description..&lt;br /&gt; This is the second line.. &lt;div class="image"&gt;&lt;img src="image.jpg" /&gt;&lt;/div&gt; &lt;/div&gt; </code></pre> <p>What i want to do using jQu...
javascript jquery
[3, 5]
2,206,586
2,206,587
On writing jQuery Plugins
<p>I've written my fourth plugin now and I'm starting to notice a trend in my development pattern and not sure if theres a better way to handle it.</p> <p>I'm using the Plugin method (lightweight start pattern outlined by Addy Osmani, see here: <a href="http://addyosmani.com/resources/essentialjsdesignpatterns/book/#j...
javascript jquery
[3, 5]
5,703,881
5,703,882
Run function based on hash tag using jQuery or Javascript
<p>On my site I have user profiles. Each user profile can have a number of tabs which have a javascript function to show the selected tab and hide all other tabs.</p> <p>What I'm trying to do is allow a group of users called authors to be able to send a link to their profile and when that profile is loaded, show a spe...
javascript jquery
[3, 5]
4,082,602
4,082,603
jQuery click event triggering more than once
<p>I am having trouble figuring out what is causing the click event to fire more than once in the webapp below. Please visit the url, click on any level [from Ground - 4], and then click on a unit.</p> <p><a href="http://plaza.foxqa.com.au/touch/index.html" rel="nofollow">http://plaza.foxqa.com.au/touch/index.html</a>...
javascript jquery
[3, 5]
2,341,585
2,341,586
Detect HTML5 Context Menu Support with JavaScript?
<p>I didn't notice it in Modernizr's documentation but I imagine you create a <code>menu</code> element then check if it exists? My only concern is that the browser may support that but not <strong>type</strong> <code>context</code>. Any ideas? Thanks.</p>
javascript jquery
[3, 5]
2,252,613
2,252,614
Is it possible to add transparency to jpg in Java and Android
<p>I want to load some images to the cloud, but I want to add some protections when someone views the photos and saves the images; they will not see anything because of the transparency. </p> <p>would the code be common for Java and Android? I would like to prototype it in Java first.</p> <p>I have found some code t...
java android
[1, 4]
3,730,033
3,730,034
How do you find Min & Max of a property in an array of objects in Javascript
<p>I have the following javascript object:</p> <pre><code>Person1.Name = "John"; Person1.Age = 12; Person2.Name = "Joe"; Person2.Age = 5; </code></pre> <p>I then have an array of persons, how do I find the Min/Max based on a persons age?</p> <p>Any solution in Javascript or Jquery is acceptable.</p> <p>your help i...
javascript jquery
[3, 5]
2,554,884
2,554,885
How to get a javascript function to execute only once on dom ready
<p>I'm getting alerted "hi" over and over again, how do I get it to do it once and stop:</p> <pre><code>function doSomething() { alert('hi'); } $(function() { doSomething(); }); </code></pre>
javascript jquery
[3, 5]
2,770,064
2,770,065
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]
4,294,457
4,294,458
Javascript 'this' Problem
<p>Why are 'me' and 'this' undefined when setTimeout calls it's anonymous callback? </p> <pre><code> var gMyObj = new MyObj(); gMyObj.myFunc(); function MyObj() { this.myFunc = function () { var me = this; alert(me.constructor); // defined setTimeout(functio...
javascript jquery
[3, 5]
3,393,900
3,393,901
export SQLite database from android phone to my system as mdb or accdb database format
<p>I want to export SQLite database file created by simple android code. I want to use that database in microsoft access (.mdb or .accdb). Is it possible? If it is possible means, Tell me the steps</p> <p><b>Note</b>:Here, I didn't put any code.. I just want know what are steps to exporting the sqlite database file to...
java android
[1, 4]
2,871,451
2,871,452
javax.script on Android
<p>I would like to port my Java project to Android devices, the problem I am facing is, that I need javax.script library. So the question is: Is it possible to import <em>javax.script</em> to an Android project? And if so, how can I do that?</p>
java android
[1, 4]
1,249,025
1,249,026
What does following a function with (jQuery, window, document); mean?
<p>I have the following plugin:</p> <pre><code>;(function($, window, document) { ... ... })(jQuery, window, document); </code></pre> <p>I can understand what the ; is for and also realize that $ is the jQuery but can someone explain why is the function followed by (jQuery, window, document);</p>
javascript jquery
[3, 5]
33,738
33,739
C#/C++ multiple apps pes solution
<p>How can I link multiple applications found within the same solution? Each app has a different objective, yet the output of each is determined by the input of the previous</p>
c# c++
[0, 6]
3,634,010
3,634,011
Translate KeyDown keycode to string (jQuery)
<p>I am looking for a way to translate a keypress into the string corresponding to the chracter. Something like this:</p> <pre><code>$(document).keydown(function(event) { console.log(String.fromCharCode(event.which)); }); </code></pre> <p>except that this code does not take into account capitalization and does no...
javascript jquery
[3, 5]
913,766
913,767
How do I detect, via javascript in Safari Mobile, if my iPhone application is installed?
<p>As you probably know, iPhone applications can register a custom URL scheme handler, ala "myapp:" and these can be used for links in a page viewed in Safari. </p> <p>I'd like to automatically launch my application from a specific page if the visitor has the app installed. If the app's not installed, I'll just show t...
javascript iphone
[3, 8]
60,452
60,453
Jquery - How to grab specific data-type of option after that option is selected?
<p>I'll jump straight with the markup, then explain what I'm trying to do.</p> <p>Html select options</p> <pre><code> &lt;select id="1d" name="camp"&gt; &lt;option data-url="week_1" value="Week 1"&gt;30th July&lt;/option&gt; &lt;option data-url="week_2" value="Week 2"&gt;6th August&lt;/option&gt; &lt;/...
javascript jquery
[3, 5]
897,728
897,729
Jquery $.post method doesn't work
<p>Background: I'm using Apache with XAMPP to set up localhost. I'm relatively new to programming, and very new to PHP. I'm trying to call a PHP file in the same directory as my Javascript file, but the code I'm using doesn't seem to work. Here's a sample:</p> <p>Javascript:</p> <pre><code>function SendPhps(){ var po...
php javascript jquery
[2, 3, 5]
3,360,310
3,360,311
How to disable/enable button when the edit text is empty/nonempty
<p>I have 2 edit text and 1 button. How can I make this button to be disabled until the user fill all the edit text? I used this code but when I run this code it always disable the button even when I fill the 2 Edit text, also I do not know what the onTextChanged and beforeTextChanged doing!!</p> <p>Please help me, I ...
java android
[1, 4]
4,024,399
4,024,400
Showing Who is online in ASP.NET
<p>what is the best simple way to show who is online in c# without using membership control? Is the only way is using session ?</p>
c# asp.net
[0, 9]
4,658,396
4,658,397
how to make a counter like badoo.com
<p>I'm really amazed with Badoo.com counter. How can we implement such a graphical counter, wich is by the way very eye-catching. When It adds one number it shows all the number from 0 to that number. With firebug I just noticed that all of it a picture. They use css to show a specific number.<br> thanks </p>
php jquery
[2, 5]
3,450,572
3,450,573
Page reload with a variable function
<p>I am trying to write a code to make a page reload when a new Post is set. So I figured that I could use the variable as an image, since everytime a new post is set,the image of new post appears. </p> <p>I started using the meta http refresh code. </p> <p>I could use jQuery or javascript (i know they are same, just...
javascript jquery
[3, 5]
5,162,833
5,162,834
jQuery: Detect element's height when window is resized
<p>I need help with the following issue.</p> <p>I'm creating a responsive site. Its structure is quite basic: header, nav bar, body and footer.</p> <p>In the header I have several elements and all these elements use percentages for their dimensions, so the <em>height</em> of the header is determined by the height of ...
javascript jquery
[3, 5]
3,213,147
3,213,148
I want Convert a Html page with all its content i.e. images like .png,.gif to ms word document with the same look and feel
<p>Can any one help me to convert a html page and its content to Microsoft Word file . Basically what i want is a ms word page which looks like my html page in Browser.</p> <p>i am using this code can any one suggest me something else.</p> <pre><code>object filename1 = @"html file path"; object oMissing = System....
c# asp.net
[0, 9]
801,911
801,912
object Key in javascript class/dictionary?
<p>I have a Javascipt object which I use as dictionary</p> <pre><code>var obj={ xxx:'1' yyy:'2' } </code></pre> <p>However - xxx and yyy should be a jQuery <strong>object</strong>.</p> <p>something like :</p> <pre><code>var obj = { $('#div1'):'1' , ...
javascript jquery
[3, 5]
5,172,265
5,172,266
javascript dropdownchecklist selected/checked options are not updated on deselecting
<p>I am new to javascript and jquery. I have a asp.net page where a dropdown checklist is used. When i select some options from the drop down i am able to get all the selected options first time. When i try to deselect some of the selected items, am not getting the updated selected options in my code. Still it contains...
javascript jquery
[3, 5]
281,750
281,751
How to store previous selected item from `DropDownList`
<p>I have a <code>DropDownList</code>, using which I have to store some values from the <code>CheckBoxList</code> in the database.</p> <p>Before I select another index from the <code>DropDownList</code>, the values in the <code>CheckBoxList</code> has to be stored, prompting the user with an alert "Save before proceed...
c# asp.net
[0, 9]
744,520
744,521
asp.net user control element is null
<p>I have a simple asp.net user control:</p> <pre><code>&lt;%@ Control Language="C#" AutoEventWireup="true" CodeBehind="QueryDefinitionItem.ascx.cs" Inherits="xxx.UserControls.QueryDefinitionItem" %&gt; &lt;link href="../Styles/Site.css" rel="stylesheet" type="text/css" /&gt; &lt;div class="title"&gt;...
c# asp.net
[0, 9]
2,270,619
2,270,620
How to set blur for brush?
<p>I have been developing the application which draws on a view using user's finger. So, I have a piece of code which demonstrate settings for Paint, Bitmap, Canvas:</p> <pre><code> mPaint = new Paint(); mPaint.setAntiAlias(true); mPaint.setDither(true); mPaint.setColor(mForegroundColor); mPaint.set...
java android
[1, 4]
3,852,230
3,852,231
How to use slideToggle on a set of elements?
<p>I'm attempting to use the jQuery slideToggle() function to minimize a set of table rows. The problem I'm encountering is that while the set of rows are minimized, the animation does not seem to be taking effect. I think it has something to do with the manner in which I'm using slideToggle, calling it on a set of re...
javascript jquery
[3, 5]
1,972,942
1,972,943
Can PHP and C++ pass data between each other?
<p>I have a lot of mathematical calculations in my PHP script, which can be quite slow at times. I'm wondering if it's possible to pass data from PHP to C++, do the calculations in C++, then pass the results back to PHP?</p> <p>P.S. I'm not very good at C++.</p>
php c++
[2, 6]
5,655,808
5,655,809
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]
4,614,618
4,614,619
Pushing to an Array within a jQuery each loop
<p>I'm using jQuery to parse an XML file, and I'm trying to push each element in the XML file to an array using a jQuery .each loop. Strangely, if I alert the value of the array within the loop it comes out as it should, but if I try to alert a value in the array after the loop has finished it results in "undefined". <...
javascript jquery
[3, 5]
3,833,614
3,833,615
ClassCastException with XMLRPC call to get ArrayList
<p>I've got a problem with ClassCastException - maybe you could please suggest something ? I'm trying to get response from server via XMLRPC and get a CCE.</p> <p>Here`s how I call it:</p> <pre><code>Object[] filesList = new Object[] { new Object[] {"somefile.txt", lengthOfThatFile}, new Object[] {"somefil...
java android
[1, 4]
2,412,988
2,412,989
Encrypt the querystring in C#.net
<pre><code>string emailfield=txtEmail.Text.ToString(); string url = "http://localhost:3076/user/Authenticate-Users.aspx?email="+emailfield; </code></pre> <p>I want to encrypt the querystring and then decrpyt. Is there any way to do this in C#?</p> <p>Thanks</p>
c# asp.net
[0, 9]
1,253,341
1,253,342
window.open and sending form data not working
<p>I'm trying to open new window and send form data with <strong>javascript</strong> and <strong>jquery-1.8.3</strong>. But, It's not woriking.</p> <p>This is source code.</p> <pre><code>&lt;a href="#" onclick="printPage()"&gt;Print this&lt;/a&gt; &lt;script type="text/javascript" src="/common/js/jquery-1.8.3.min.js...
javascript jquery
[3, 5]
5,856,782
5,856,783
What's th mean by "public abstract class SampleAdapter <T extends Adapter> extends ViewGroup"?
<p>I am not getting meaning by</p> <pre><code>public abstract class SampleAdapter &lt;T extends Adapter&gt; extends ViewGroup </code></pre> <p>What does it do? In general we perform normal inheritance, but here something extended form. can any body suggest me?</p> <p>thanks</p>
java android
[1, 4]
4,340,793
4,340,794
How to cast a STRING to a GUID
<p>I need cast a String to a Guid.</p> <p>I am using this code but</p> <pre><code>string myUserIdContent = ((Label)row.FindControl("uxUserIdDisplayer")).Text; Guid myGuidUserId = new Guid(myUserIdContent); // PROBLEM HERE MembershipUser mySelectedUser = Membership.GetUser(myGuidUserId); </code></pre> <p>I receive th...
c# asp.net
[0, 9]
4,229,113
4,229,114
Creating an ad widget
<p>I am trying to create an ad widget. This piece of code should be re-usable by anybody. I was wondering if it is ok to use jquery in such a widget or should i be writing the entire thing in pure javascript?</p>
javascript jquery
[3, 5]
1,747,670
1,747,671
How to trigger a toggle function by click another click-event-handler?
<p>I have already searched the google oracle etc and found this <a href="http://stackoverflow.com/questions/3370934/trigger-second-function-in-toggle">Trigger second function in toggle()</a> similar article, but it doesnt helps me.</p> <p>My pricip is the same, i have a toggle function which includes two other functio...
javascript jquery
[3, 5]
4,940,466
4,940,467
What pitfalls should be noted when moving from C# to PHP?
<p>So, I just stumbled across this one in another <a href="http://stackoverflow.com/questions/2321009/are-abstract-class-constructors-not-implicitly-called-when-a-derived-class-is-ins">question</a>: </p> <blockquote> <p>Parent constructors are not called implicitly if the child class defines a constructor.</p> <...
c# php
[0, 2]
5,537,573
5,537,574
smtpException was unhandled by user code
<p>here is the code.</p> <pre><code>void sendMail() { MailMessage mail = new MailMessage(); mail.To.Add("abc@gmail.com"); mail.From = new MailAddress("abc@gmail.com", txt_name.Text); mail.Subject = txt_subject.Text; mail.Body = txt_body.Text; SmtpClient smtp = new SmtpClient("smtp.gmail.com")...
c# asp.net
[0, 9]
1,358,608
1,358,609
How to show user entered EditText value in a android dialogue box
<p>my modified sample of my work basically below i have 2 editboxes i want the values of the both to be shown in an alertbox, rest of the code works fine, the alertbox does show up but without the entered values.</p> <pre><code>public class Main extends Activity { EditText username = null; EditText password = null; B...
java android
[1, 4]
5,738,812
5,738,813
jQuery make .change and .click event for different element to call same function
<p>I googled but most of them is to bind different event for SAME element. </p> <p>For</p> <pre><code>$('#a').change(function() { /bla /bla }); $('#b').click(function(){ /bla /bla }); </code></pre> <p>I want something like this</p> <pre><code>$('#a').change OR ('#b').click(function(){ /bla...
javascript jquery
[3, 5]
2,022,001
2,022,002
how to check whether a variable contain double or empty value using java in android
<p>how to check wheather the variable containing double value or empty </p> <p>?? i am getting response from web services which i have stored in 3 different different variable say for example </p> <p>var1=some double value var2= some double value and var 3=some double value </p> <p>now how to check var1,var2 and var...
java android
[1, 4]
4,365,274
4,365,275
ASP.NET: Problem with CheckBoxList and OnSelectedIndexChanged
<p>I'm having a problem with CheckBoxList and OnSelectedIndexChanged:</p> <pre><code> &lt;asp:UpdatePanel runat="server"&gt; &lt;ContentTemplate&gt; &lt;asp:CheckBoxList id="lstWatchEType" runat="server" ...
c# asp.net
[0, 9]
1,075,201
1,075,202
Make a bar being full every 15 seconds
<p>I was trying to make a sort of loading bar, I've made this but it won't work... Who can help me??</p> <pre><code>&lt;div id="loader" style="height: 2px; width: 0px; background: green;"&gt; Test &lt;/div&gt; &lt;script&gt; $('#loader').animate({width:'100px'}, 15000); &lt;/script&gt; </code></pre> <p>Thank you!</p>...
javascript jquery
[3, 5]
4,476,853
4,476,854
progress bar(animated GIF image) when page loads or some background process is going on::
<p>I want to have an animated GIF image to appear or load whenever my .aspx page (for my appln) is loaded or postaback or some background process is going on::</p> <pre><code>&lt;div id="WaitDialog" style="left: 480px; top: 255px; position: absolute"&gt; &lt;img src="http://developers.sun.com/docs/web-app-guidelines/...
c# asp.net
[0, 9]
1,942,309
1,942,310
jQuery/JS simulation
<p>I'm not an expert in jQuery or Javascript (I have only started with it recently), so this might sound like a silly question: I have 4 tabs, all of which are clickable. So, I made 2 functions, 1 to actually execute on click, and one to only "simulate" the click, so I could change the tabs every 5 seconds. What I've d...
javascript jquery
[3, 5]
4,544,005
4,544,006
jQuery not ready though still instantiating
<p>I am using a jQuery Class plugin as so :</p> <pre><code>jQuery(document).ready(function($) { window.SSK.calendar = new(Class.extend({ filter_by_filtered_names: function() { console.log('foobar!'); }, init: function() { if ( window.location.href.match(/name_filters/) ) { SSK...
javascript jquery
[3, 5]
1,719,281
1,719,282
Javascript/JQuery - How to get number of specific child elements
<p>I wish to get the number of all TR elements that have a input element in them somewhere. How should I proceed ?</p> <p>Html :</p> <p><code>&lt;tbody&gt; &lt;tr&gt; &lt;td&gt;Ignore this item 1&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Ignore this item 2&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;&lt;input...
javascript jquery
[3, 5]
2,284,315
2,284,316
Why I can't access variables from inside some functions (JavaScript)?
<pre><code>var myvar = "my value"; (function() { alert(myvar); // undefined })(); </code></pre> <p>or</p> <pre><code> var myvar = "my value"; $.post( url, function( data ) { alert(myvar); // undefined }); </code></pre> <p>and how can I solve this issue without storing this value in a hidden input or di...
javascript jquery
[3, 5]
9,969
9,970
How to make a super in javascript function
<p>Like in this example:</p> <pre><code>var teste = {name:'marcos'}; $(teste).each(function(){ var name = this.name; // i don't want to do that. // i want to have access to 'this' inside this function (sayName) var sayName = function(){ alert(name); // there is something like "super" in java? or ...
javascript jquery
[3, 5]
4,645,226
4,645,227
jQuery Accordion Menu Items Remain Open Until Clicked
<p>I have made a jQuery accordion menu but it doesn't seem to be acting in the default manner. Basically, when I click on a menu item the item opens as expected. However, when I click on a different menu item it also opens as expected but the first menu item remains open. The jQuery documentation states:</p> <p>"An...
javascript jquery
[3, 5]
1,506,398
1,506,399
Get output of PHP script from C#
<p>I was wondering if it is possible to get the HTML output of a PHP file using a C# Windows application. I have already googled for this, but all I could find was a compiler where you could use PHP together with C#.</p> <p>Is there any possibility to do this?</p>
c# php
[0, 2]
652,744
652,745
Creating a temporary element X made up of other elements?
<p>I am using a jquery print plugin that has the capability to print out particular elements from the page. </p> <p>If I call <code>$('.main-container').print();</code> it will print out all elements within the main container.</p> <p>However, there are many elements within the 'main-container' that I would not like t...
javascript jquery
[3, 5]
5,769,648
5,769,649
invoking keypress event without actually pressing key in javascript
<p>hi i want spacebar to be fired in javascript without pressing spacebar in textbox,i tried this code please help me to solve this</p> <pre><code> &lt;script language="javascript" type="text/javascript"&gt; jQuery(document).ready(function () { var getOldValue = jQuery("#&lt;%=txtCompany.ClientID%...
javascript asp.net
[3, 9]
780,498
780,499
mvc mini profiler alternative for vs 2008
<p>I am working on VS2008 project and it seems that mvc mini profiler does not support it. Do you know any decent alternative with simillar functionalities that will work in my environment?</p>
c# asp.net
[0, 9]
860,134
860,135
JQuery within PHP: How can I keep the browser from inserting a closing tag too early?
<p>The output of this code:</p> <pre><code>&lt;?php echo "&lt;script type='text/javascript'&gt; $('#query-info').append('&lt;div class=\"well\"&gt;')&lt;/script&gt;"; foreach ($_POST as $key =&gt; $entry) { echo "&lt;script type='text/javascript'&gt; $('#query-info').append('". $key . ": " . $entry...
php jquery
[2, 5]
4,111,318
4,111,319
how to return false if string has null or white space in c#
<p>I cannot return null because my <code>Hlist</code> is a non nullable type. What else can I return in the place of null?</p> <pre><code>HList findHListentry(string letter) { if (string.IsNullOrWhiteSpace(letter)) { HList result = listentry.Find(delegate(HList bk) { ...
c# asp.net
[0, 9]
3,282,536
3,282,537
Target a class whether or not it has a number in the name
<p>I'm struggling a bit with this : let's say I have a class in the body <code>&lt;body class="video page"&gt;</code> and in my page I have a pagination which add a number like this <code>&lt;body class="video-2 page"&gt;</code> at each page. I would like to target the class <code>video</code> whether or not it has a n...
javascript jquery
[3, 5]
2,640,719
2,640,720
Mask input for number - percent
<p>How can create a mask input for number that have percent by jQuery? Do I make input just accept until three numbers and put percent sign after numbers while user finished typing(<code>keyup</code>)?</p> <p><strong>I don't use plugins.</strong></p> <p>Example: <strong>1%</strong> Or <strong>30%</strong> Or <strong>...
javascript jquery
[3, 5]
5,234,134
5,234,135
How has my stack trace got file system references to the build machine?
<p>I use svn and asp.net. We have a website and there is an error in it. Im not really concerned about the error I know how to fix it what im wondering is how .net is showing the original file path that the .cs files were in when the prioject was built:</p> <pre><code>[SecurityException: Request for the permission of ...
c# asp.net
[0, 9]
1,858,022
1,858,023
How do I unbind another jQuery function on .click()?
<p>I have this script that run to fix my menu bar to the browser on scroll. Nothing really needs to change here (works as it should). However, you may need it...</p> <pre><code>var div = $('#wizMenuWrap'); var editor = $('#main_wrapper'); var start = $(div).offset().top; $(function fixedPackage(){ $.event.add(...
javascript jquery
[3, 5]
1,685,163
1,685,164
jTweetsAnywhere not working on live server, only on local server
<p>jTweetsAnywhere works on my local server, but isn't displaying tweets on the live server. Just an empty box and I even included the anywhere.js and consumer key.</p> <p>In my head:</p> <pre><code> &lt;script src="http://platform.twitter.com/anywhere.js?id=YQDAme3v6zI0CR1FiWCg&amp;v=1" type="text/javascript"&gt...
javascript jquery
[3, 5]
2,375,813
2,375,814
Android Java Text not being centered
<p>I'm trying to make the text all centered but it's not working out. Here's my xml code</p> <pre><code>&lt;TextView android:id="@+id/creditText" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textSize="20dp" android:textColor="#ffffff" android:layout_marginLeft="0dp" android:layout_m...
java android
[1, 4]
2,328,216
2,328,217
Group Validation of Two DateTime Picker Using Javascript in asp.net
<p>Group Validation of Two DateTime Picker Using Javascript in asp.net</p>
c# javascript asp.net
[0, 3, 9]
1,800,461
1,800,462
Javascript Library Quickstart
<p>I'm trying to build a Javascript library that will provide some functionality for a JQuery Plugin I'm putting together. </p> <p>I got the following skeleton code from searching online although I'm not quite sure how it all works (I do know it's a closure). I've added my functions via declarations.</p> <pre><code>(...
javascript jquery
[3, 5]
2,158,500
2,158,501
jQuery hash attribute
<p>At 4 minutes into the "Scroll Linked Navigation" podcast Posted: Wed, 18 Aug 2010 at <a href="http://feeds.feedburner.com/jqueryfordesigners-podcast" rel="nofollow">jQuery for Designers</a>, Remy uses the hash attribute.</p> <p>Q: Where is the hash attribute documented?</p>
javascript jquery
[3, 5]
1,140,736
1,140,737
Java/Android: Passing Intent Extras, then use it on another method
<p>Hello again everyone,<br> This time I have a problem with Intent &amp; Extras.</p> <p>here's my first activity</p> <pre><code>Intent i1 = new Intent(RoomSetting.this, App.class); i1.putExtra("subposition1", "right"); final int result=1; startActivityForResult(i1, result); </code></pre> <p>and in the 2nd activity ...
java android
[1, 4]
1,195,421
1,195,422
Adding a value from input to a div
<p>I have the below code that im trying to add the search results to a div by clicking on the result. Let me know if anyone can assist, I looked at the code about a hundred times and can't seem to figure out why it wont work. I have tried placing the javascript below the div, below the body, and in the head, no dice....
php javascript
[2, 3]
450,731
450,732
myIntent.getStringExtra returns null?
<p>Hey, I'm having a weird problem when I try to send strings with intents when switching activities.</p> <p>Here is what I do in class 1:</p> <pre><code>Intent myIntent = new Intent(SearchText.this, Search.class); myIntent.putExtra("searchx", spinnerselected); myIntent.putExtra("SearchText", input); startActiv...
java android
[1, 4]
1,403,461
1,403,462
jquery ajax error
<p>what data do i need to send from my server(php) so that jquery recognizes it as error and executes the error callback </p>
php jquery
[2, 5]
1,408,517
1,408,518
closests jquery
<pre><code>&lt;div class="panels"&gt; &lt;div&gt; &lt;h2&gt; Test &lt;/h2&gt; &lt;/div&gt; &lt;div class="inner_panel statict"&gt; Test2 &lt;/div&gt; &lt;/div&gt; </code></pre> <p>I want so that when people click on Test, Test2 appears. If not, they don't see Test2, How...
javascript jquery
[3, 5]
4,396,800
4,396,801
Image sliding right to cover text then revealing new text as it slides back
<p>I have an effect I want to achieve, but I'm having trouble thinking of exactly how I could achieve it. Here are some images that show the progression of the effect I want to achieve: <a href="http://imgur.com/a/In6IK" rel="nofollow">http://imgur.com/a/In6IK</a></p> <p>So essentially, I have multiple slides containi...
javascript jquery
[3, 5]
4,239,773
4,239,774
append a div to another div only once on droppable drop
<p>I have a draggable element , that when its dropped onto the target, it adds a delete button:</p> <pre><code> $( "#committed" ).droppable({ hoverClass: 'drophover', drop: function( event, ui ) { $(function() { ...
javascript jquery
[3, 5]
5,202,005
5,202,006
How to pass structure as pointer in C dll from C#
<p>I am working on simple telephony application where I am changing the class of service of panasonic pbx extension. For that I am using "Tapi32.dll" which has methods in c++. Now as per my need I have to pass two argument both integer pointer type. One Argument is getting passed correctly but I am not able to pass sec...
c# c++
[0, 6]
1,342,702
1,342,703
how to display the grid in div tag
<pre><code>&lt;script type="text/javascript"&gt; var showGrid = function() { $("#Grid1").load('/friends/names/fried'); }; &lt;/script&gt; &lt;div&gt; &lt;%= Html.Trirand().JQGrid(Model.OrdersGrid, "JqGrid1")%&gt; &lt;/div&gt; &lt;div&gt; &lt;/div&gt; </code></pre> <p>/////// i need to dispaly the Gr...
asp.net jquery
[9, 5]
5,592,306
5,592,307
Understanding this javascript jquery function in function snippet
<p>This is partly a jquery question, but most javascript. I just don't know javascript well enough to understand this code:</p> <pre><code>1 (function () { 2 $(function () { 3 //Global ajax progress dialog box 4 //Simply run $("#ajax-progress-dialog").dialog("open"); script be...
javascript jquery
[3, 5]
222,872
222,873
jquery: Change the background-colour of a column if its header has a class
<p>I have the following jQuery that I'm trying to use to change the background colour of a column where its header has a class.</p> <p>So for example:</p> <pre><code>$('th').each(function (i) { if ($(this).hasClass('headerSortUp') || $(this).hasClass('headerSortDown')) { sortIndex = $(thi...
javascript jquery
[3, 5]
4,402,721
4,402,722
forceful download not working for browser on Android phone on wap site
<p>I have a wapsite where i am implementing forceful download.</p> <p>The script is in PHP</p> <p>It works great for all the other mobile browsers, but when I access the site using ANDROID phone, it downloads the actual php file.</p> <p>following is my code snippet of file downloadFiles.php.</p> <hr> <p>$fileExt =...
php android
[2, 4]
5,720,705
5,720,706
Hide/show DIVs - change current effect to fade
<p>I'm currently using the code below found on web tutorial to show/hide DIVs. It works great but don't like the effect. Would like the DIVs to fade in / fade out instead (or something smoother, for the moment the DIVs are growing from the top-right corner). How could I adapt the code to do this? Youc ans ee it here <a...
javascript jquery
[3, 5]
5,538,025
5,538,026
how to add different time present in a column of a gridview and show the sum in footer textbox
<p>i have some values (08:12,09:22,01:09) in a column(datetime) in a gridview<br> what i want is to get the sum of all values present in that column in a textbox which is present in the footer of that column.</p> <p>i tried the below code - </p> <pre><code> int hours, minutes; TextBox footxt = (TextBox)GridVie...
c# asp.net
[0, 9]
3,937,918
3,937,919
replace a table cell with the text box, read the value typed and replace back the table cell with the new value using jquery
<p>I am new to Jquery and working on a small project with PHP, and Jquery. Below is on of the table cell. I would like to replace this cell with a text box and read the vale entered by user and bring back the original cell(replaced cell) with this new value. I am not sure how can I do this with Jquery. Any help is hig...
php jquery
[2, 5]
981,839
981,840
Measuring time of execution on method
<p>Let's say we have this:</p> <pre><code>function myMethod1() { ... } </code></pre> <p>and later in the code:</p> <pre><code>myMethod1(); alert('myMethod1() was executed!'); </code></pre> <p>I need to set timeout for the alert so that it will be called after myMethod1() executes. But how do I know the value of...
javascript jquery
[3, 5]
1,379,957
1,379,958
Data addition and updation in SQL tables
<p>Iam fairly new to SQLClient and all, and iam having a problem with my SQL tables..when ever i run my code, the data, rather than getting updated, attaches itself to the already existing records in the tables..here's my code</p> <pre><code>SqlConnection conneciones = new SqlConnection(connectionString); SqlCommand c...
c# asp.net
[0, 9]
4,326,977
4,326,978
How to change a color for standard button?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/1521640/standard-android-button-with-a-different-color">Standard Android Button with a different color</a> </p> </blockquote> <p>I have 1 problem - I need to change a color for standard button. I do it using "ba...
java android
[1, 4]
2,381,138
2,381,139
C# variable with jquery path referenced for jquery src file not working
<p>I'm trying to do something like this: </p> <pre><code>&lt;script src="&lt;%= ResolveUrl( Urls.jquery) %&gt;" type="text/javascript" &gt;&lt;/script&gt; </code></pre> <p>For importing jquery. The path is of the form <code>http://domain.com/js/jquery-1.3.2.min.js</code></p> <p>In my developer tools console, the pa...
c# javascript jquery asp.net
[0, 3, 5, 9]
4,811,688
4,811,689
need some help in android game developing?
<p>I'm developing a game for android and it's like a match game it looks like that:</p> <p><img src="http://i.stack.imgur.com/N8RET.jpg" alt="http://imageshack.us/photo/my-images/59/96718770.png/"></p> <p>the game work perfectly but the problem is the size of the cards " the clowns in the picture "didn't change I've ...
java android
[1, 4]
1,377,307
1,377,308
Front end Java, back end C++ , how to join?
<p>Lets give an over-basic example, I have a program which goes through a directory and grabs the list of files in the directory. Assume for argument's sake that this HAS to be done in C++. I then wish to present the list of files using Java Swing? </p> <p>How is this done?</p>
java c++
[1, 6]