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,267,896
5,267,897
on selecting the dropdownlist 2 nd time textbox value not showing blank
<p>I have written following code.</p> <p>my 1st orderid has both records for process 1 and process 2 but my 2nd orderid has record only for process 1.</p> <p>when i select orderid 2 after selecting orderid 1 it keeps the value as it is for orderid 1 in process 2 textbox. i want that textbox to be blank</p> <pre><cod...
c# asp.net
[0, 9]
3,497,340
3,497,341
what is an algorithm that can sort students into bible study groups of 8 people each
<p>the groups should meet the following conditions: Group members should not be of the same gender, not of the same year of study, not from the same halls of residence</p>
java php
[1, 2]
5,283,433
5,283,434
JS: how to listen event after template contruction?
<p>I'm listening for an event with jQuery.on() but it is not working, I imagine is because the DOM element.</p> <p>Then, How can I listen to the "click" event?</p> <p><a href="http://jsfiddle.net/QbXLf/" rel="nofollow">http://jsfiddle.net/QbXLf/</a></p> <pre><code>$(".myClass").on("click", function(event){ alert...
javascript jquery
[3, 5]
5,770,650
5,770,651
Condition in ASP Repeater
<p>I am trying to put a condition into my ASP repeater tag. I have a table being created and one of the td items is a link. The problem is I need to create a link upon checking the value in one the variable that is in the repeater container. Here is my code: </p> <pre><code>&lt;td&gt;&lt;%#((VWApp.Code.TrackDM)Contain...
c# asp.net
[0, 9]
3,538,836
3,538,837
multiple scripts files via ajax or combined all?
<p>Content from my site gets changed via ajax. Each page its a ajax request.</p> <p>Right now each page from my site has some sort of jquery/javascript functions to handle any event require for that page. Each page has their own javascript loaded by getscript and its cached so the javascript is only request when the u...
javascript jquery
[3, 5]
3,577,648
3,577,649
Download file from virtual path URL asp.net
<p>I have a virtual path URL (http://xyz.com/eRoom/SPOmidrangesysdiv/EFT3%20Test%20Scorecard%20for%20Inyo.xlsx). Credentials required to brow this url. I want to download file from url using ASP.NET C#. </p>
c# asp.net
[0, 9]
1,788,172
1,788,173
How to get current date in jquery?
<p>I want to know using Date() function in jQuery how to get the current date in yyyy/mm/dd format.</p>
javascript jquery
[3, 5]
5,641,776
5,641,777
jQuery element as a variable
<p>I have:</p> <pre><code>function foo(element){ var idName= element.innerHTML.split(" ").join(""); $("#" + idName).fadeToggle(600); } </code></pre> <p>and it is not working. I'm just getting the text in a span and deleting the spaces. I use idName as the id of a div, and i'm toggling the div. I thought I could do ...
javascript jquery
[3, 5]
3,112,610
3,112,611
jQuery Code Style Guidelines
<p>One of the jQuery Core Style Guidelines indicate:</p> <blockquote> <p>All RegExp operations should be done using .test() and .exec(). "string".match() is no longer used.</p> </blockquote> <p>Why is <code>match()</code> not favoured?</p>
javascript jquery
[3, 5]
2,394,037
2,394,038
how to collect form ids using jQuery
<p>A jQuery selector <code>$(".thumb_up")</code> returns a collection of forms like this:</p> <pre><code>[&lt;form id="like_post_78" ...&lt;/form&gt; &lt;form id="like_post_79"&gt; ... &lt;/form&gt;] </code></pre> <p>Ultimately I want to generate a string consisting of the numerical ending portion of the form ids.</p...
javascript jquery
[3, 5]
803,471
803,472
How to append the same variable twice?
<p>I am trying to append the same variable twice but it appears the code only works on the second one.</p> <pre><code>var test=document.createElement('option'); test.innerHTML='some data'; $('#data1').append(test); $('#data2').append(test); </code></pre> <p>I want to append the variable te...
javascript jquery
[3, 5]
5,086,230
5,086,231
Time picker giving unusual time format on android
<p>I have used a time picker in my android project. In the onTimeChange method I did something like this:</p> <pre><code>@Override public void onTimeChanged(TimePicker view, int hourOfDay, int minute) { long PICK = ((hourOfDay * 60 * 60) + (minute * 60)) * 1000; String delegate = "hh:mm aaa"; ...
java android
[1, 4]
3,620,660
3,620,661
Android/Java: Split Data in an Array and display
<p>I am trying to do something extremely basic! And it wont work :(. I feel like I'm going in circles.</p> <p>Here's the rundown: I would like the user to input a series of numbers into an EditText box (separated by comma's). After the add button is selected a split method will separate each number into its own slot i...
java android
[1, 4]
337,362
337,363
ASP.NET: How to send file from database to printer?
<p>I have an ASP.NET 2.0 (C#) webpage with a link that pulls a blob from a MS SQL database and ouputs it in the appropriat file format, i.e., Word, WordPerfect, PDF.</p> <p>My users would like to print these files with one click. Right now they have to click the link to open the file, then click the "Print" button wit...
c# asp.net
[0, 9]
4,838,722
4,838,723
FormView change data before inserting to sql?
<p>I'm using FormView to add new data to the sql server. I try to change some of the data that the user inserting, like replace "a" with "A"</p> <p>I try to use the following code:</p> <pre><code>protected void FormViewInsertEventHandler(object sender, SqlDataSourceCommandEventArgs e) { e.Values["Institution_fax"...
c# asp.net
[0, 9]
1,243,043
1,243,044
jquery update table with load
<p>Can anyone help fix the code below...</p> <p>I'm loading data into a table with three columns using the code below into a table on clicking a link (This part works fine by itself):</p> <pre><code>$(document).ready(function() { $("#myTable").tablesorter(); $("#ajax-append").click(function() { $.ge...
php jquery
[2, 5]
836,014
836,015
Tools for rapid layout/interface creations?
<p>Does anyone know of any tools (besides DroidDraw) that can help me create the basics of my projects a bit quicker? I'm looking for something that will allow me to very quickly generate the XML for my layouts so I don't have to sit there typing like a robot for so long. </p> <p>Thanks!</p>
java android
[1, 4]
5,643,482
5,643,483
Is there a jQuery construct for "if (typeof someVar === 'undefined')"
<p>Does jQuery provide a way to to that test in a more concise way?</p> <p><strong>Update</strong> I should have left jQuery out of this. It is just an issue of JavaScript. It's been so long for me! I am testing to see is something externally-defined module was loaded or not. It appears that I can just use this in...
javascript jquery
[3, 5]
3,153,008
3,153,009
Can I convert all files with jquery file upload to jpg?
<p>I'm using the <a href="http://blueimp.github.com/jQuery-File-Upload/" rel="nofollow">jquery file upload</a> script and it's working really well so far. The last obstacle I have is I only want to use <strong>jpg</strong> images for my website but allow users the option of uploading gif, png, or jpg. </p> <p>I'm as...
php jquery
[2, 5]
1,002,541
1,002,542
How to select elements with exact one class name?
<p>so I have,</p> <pre><code>&lt;ul&gt; &lt;li class="foo"&gt; abc &lt;/li&gt; &lt;li class="foo bar"&gt; def &lt;/li&gt; &lt;/ul&gt; </code></pre> <p>If I do <code>$('.foo').css('font-size','x-large');</code></p> <p>this will change both li elements with the large font. How could I select the class with "foo" on...
javascript jquery
[3, 5]
5,364,696
5,364,697
What's the algorithm behind stack overflow's ajax tag search field
<p>I want to make an ajax auto complete field like stack overflow's tag search box(used to add favorite tags and add tags to your question). I used to call ajax every time key's up,but I think it's not efficient.</p> <p>I find stack overflow does it well. I guess it would only call ajax when key's up and some time has...
javascript jquery
[3, 5]
4,063,849
4,063,850
pass a javascript via ajax and process with php
<p>I need to pass a javascript object , info is a javascript object.</p> <pre><code>register.php?t="+accessToken+"&amp;u="+info </code></pre> <p>in php i tried to change </p> <pre><code>$data = $_GET['u'] ; var_dump($data); </code></pre> <p>It's not working help me to slove,</p>
php javascript
[2, 3]
2,528,148
2,528,149
jQuery - Combining multiple element selectors with :not - how
<p>I am having a devil of a time getting two selectors to work <em>together</em> as well as do when I declared seperate.</p> <p>My issue:</p> <p>I want to close a menu when I move to <em>any</em> input OR anchor tag that is NOT contained with a certain element. When I explicitly code for both input and anchor, I get ...
javascript jquery
[3, 5]
4,398,179
4,398,180
Where to put the php code in the php script below
<p>I have a javascript variable below where it is suppose to retrieve <code>$_SESSION['imagename']</code> from imageupload.php (a seperate page)</p> <pre><code>var imagename = &lt;?php echo json_encode(isset($_SESSION['imagename']) ? $_SESSION['imagename'] : null); ?&gt;; </code></pre> <p>But what my question is whe...
php javascript jquery
[2, 3, 5]
5,913,774
5,913,775
Regular expression to check current website location - small isssue
<p>I have this jquery code to highlight menu item corresponding to current page in my browser: </p> <pre><code> $(document).ready(function (){ $("ul#nav a").each(function (){ var hrefWindow = $(this).attr("href"); if (hrefWindow == window.location.href.match(/[^/]+$/g)) { $(this).parent().add...
javascript jquery
[3, 5]
1,794,555
1,794,556
On text-box length greater then zero clear listbox and disable
<p>Is it possible in java script that when a text box control is populated that it clears my list box and disables it and visa versa. I'm using ASP.net C# to bind the list box.</p> <pre><code>&lt;asp:TextBox ID="_tx_Zip" On??? runat="server" Width="197px"&gt;&lt;/asp:TextBox&gt; &lt;asp:ListBox ID="_lb_Zip" runat="s...
javascript asp.net
[3, 9]
4,642,015
4,642,016
why cant the php function wait for the click instead
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/8239891/function-running-automatically-instead-of-a-click">function running automatically instead of a click</a> </p> </blockquote> <p>Hi Guys I am trying so many ways of accomplishing something, I would like th...
php javascript jquery
[2, 3, 5]
4,203,661
4,203,662
Is it possible to determine whether the current browser tab has history?
<p>I have a button on a view, which on submit directs the user's browser back to the previous page using <code>window.history.go(-1);</code>. This is necessary for us to maintain session data to display the previous view correctly.</p> <p>My question is, is it possible for us to determine whether there is any browser ...
javascript jquery
[3, 5]
4,321,645
4,321,646
Save private data to public location
<p>I am trying to open my PDF file with PDF Reader, I am searching more on how can i done this, a lot of answer found but every answer tells that save that file to "SD Card".</p> <p>Saving file to SD Card is good idea but the problem is if user not installed SD Card in his phone. At present time many phone have large ...
java android
[1, 4]
5,377,412
5,377,413
How to display hidden placeholder without refreshing the page?
<p>I have two placeholders in one page and basically my requirement is that I want to show other placeholder on click of button which is in first placeholder without refreshing the page.</p> <p>But when I m clicking on the button in 1st placeholder it is refreshing the page and then showing me second placeholder.I m o...
c# asp.net
[0, 9]
2,688,414
2,688,415
Get the id of input on keyup
<p>I have an input box...</p> <pre><code>&lt;input type="text" id="search_member" onkeyup="lookup(this.value);"&gt; </code></pre> <p>When I type in the field, it will go to function lookup(). From there I want to get the id of this input. I tried...</p> <pre><code>var This_id = $(this).attr("id"); </code></pre> <p>...
javascript jquery
[3, 5]
6,013,141
6,013,142
ASP.NET radio button change
<p>I am trying to figure out why this code doesn't fire the radio button change event.</p> <p>here's the ASP page code for 2 radio buttons</p> <pre><code> &lt;asp:RadioButton ID="rdoButton1" GroupName="Group1" Text="Yes" Value="Yes" runat="server" OnCheckedChanged="Group1_CheckedChanged" /&gt; &lt;asp:RadioButton...
c# asp.net
[0, 9]
5,190,729
5,190,730
Is it possible to Serialize and Deserialize objects in C++?
<p>As we know c++ is also an Object Oriented Programming language where most the things are objects like java. So wanted to know is the Serialize and deserializ features are available in c++ as well as we do it in java?</p> <p>If yes how it can be achieved?</p> <p>In java We use Serializable Interface to say that thi...
c# java c++
[0, 1, 6]
1,110,027
1,110,028
Difference between response.redirect and server.transfer
<blockquote> <p><strong>Possible Duplicates:</strong><br> <a href="http://stackoverflow.com/questions/521527/response-redirect-vs-server-transfer">Response.Redirect vs. Server.Transfer</a><br> <a href="http://stackoverflow.com/questions/224569/server-transfer-vs-response-redirect">Server.Transfer Vs. Response.Red...
c# asp.net
[0, 9]
5,349,371
5,349,372
Javascript looping issue
<p>I know this is something easy that is just eluding me.</p> <p>Anyway, I have a simple function that loops through a series of six images and text and hides and shows them based on which one is visible.</p> <p>Issue I'm having is that when it gets to the last image, it should just start over with the first but inst...
javascript jquery
[3, 5]
1,195,457
1,195,458
Multi-line, multi-data source auto complete textarea
<p>Is there a jquery plugin that supports multi-line ,multi-data source autocomplete textarea? By that I mean every line in the textarea is bound to a different data source which is specific only for that line. For example, on the first line of textarea the user types in a country name,he is then presented with a list ...
javascript jquery
[3, 5]
3,671,211
3,671,212
Jquery autocomplete
<p>How do I customize the ac_results class generated by the autocomplete plugin?</p>
javascript jquery
[3, 5]
227,242
227,243
lightbox dynamic image retrieval
<p>I am constructing a lighbox gallery, currently experimenting with FancyBox (http://fancybox.net) and ColorBox (http://colorpowered.com/colorbox).</p> <p>By default you have to include a link to the large version of the image so that the Lightbox can display it. However, I am wanting to have the image link URLs poin...
php jquery
[2, 5]
826,024
826,025
Convert imageUrl to byte[] for caching
<p>I have an image that I capture from an ip camera and post it on a webpage to an image tag. Now I would like to convert to access the picture so that I can save it to our cache blob. Here is my code:</p> <p>asp tag:</p> <pre><code>&lt;asp:Image ID="imgPhoto" runat="server" ImageAlign="Middle" /&gt; </code></pre> <...
c# asp.net
[0, 9]
3,298,053
3,298,054
filling <img src="?"> dynamically in asp.net c#
<p>Hi would like to add img source path dynamically as shown in the snippet below, but giving error. I know img_src_path adding syntax is correct. Unfortunately I don't know the solution, need help.</p> <p>Environment:</p> <p>ASP.net, c#</p> <pre><code> &lt;% string a[0]="image/hello.jpg;" { String img_src_pa...
c# asp.net
[0, 9]
5,189,769
5,189,770
Is there means for synchronizing data of my application and MS Outlook?
<p>I have been developing Android applicatiom which should get dates from MS Outlook calendar. I can't find information/tutorials about how I can do it using USB connection. Please, tell me, is there any means for my task? Is there any tutorials how can I do it programmatically? </p>
java android
[1, 4]
2,171,699
2,171,700
Android simple widget
<p>I have a problem with my first android widget... I am doing like this:</p> <pre><code>public class TestwidActivity extends AppWidgetProvider { @Override public void onUpdate(Context context, AppWidgetManager appWidgetManager,int[] appWidgetIds) { Timer timer = new Timer(); timer.scheduleAt...
java android
[1, 4]
3,556,875
3,556,876
Script not working when called from .cs file
<p>I am tryong to do the following in a Row_Command event of a gridview. But the the pop up box never comes up, I have tried it in so many different ways.. but yet no luck. Please if someone can see the issue i would really appreciate a pointer.</p> <pre><code>protected void Gridview_RowCommand(object sender, GridVie...
c# asp.net
[0, 9]
4,579,261
4,579,262
How to set textview position constant in runtime?
<p>I am trying to display some textviews visible in runtime. Here's my code:</p> <pre><code>for (int i=0; i&lt;arrBool.length; i++) { arrBool[i] = r.nextBoolean(); if(arrBool[i]==true) { textView[i].setVisibility(View.VISIBLE); } } </code></pre> <p>When I run the application...
java android
[1, 4]
744,778
744,779
calender repeat at various frequencies
<p>I have an ASP.Net calendar feature which allows users to add events and configure whether or not they repeat at various frequencies (i.e, daily, weekly, monthly, Sat/Sun, etc.). What I'm looking for is some C# code that will calculate a date of "Every Other Week" based on a starting date and ending date.</p> <p>Exa...
c# asp.net
[0, 9]
5,448,846
5,448,847
popup windows and AnimationSet vs AnimationStyle
<p>After successfully experimenting with getting Layouts to animate by creating AnimationSet's programmatically, I wanted to try the same thing with popup windows. Unfortunately it appears that popup windows can only have their animations controlled by setting AnimationStyles (which I know can be defined in xml), but i...
java android
[1, 4]
1,446,566
1,446,567
jQuery : how to apply effect on a child element
<p>instead of re-writing the same function, I want to optimise my code :</p> <pre><code>&lt;div class="header"&gt; &lt;h3&gt;How to use the widget&lt;/h3&gt; &lt;span id="idwidget" &gt;&lt;/span&gt; &lt;/div&gt; &lt;div class="content" id="widget"&gt; </code></pre> <p>the JS :</p> <pre><code>&lt;script typ...
javascript jquery
[3, 5]
4,131,430
4,131,431
get android seekbar value and display it on screen
<p>I'm trying to get the value of the seek bar whenever it changes and display it underneath. I'm using the <code>onclick</code> method on my seekbar to call this method. </p> <pre><code>public void getNumber(View view) { SeekBar seek = (SeekBar) findViewById(R.id.seekBar1); int seekValue = seek.getProgress()...
java android
[1, 4]
2,084,815
2,084,816
Android -- Simple path, use of arcTo causes "UnsupportedOperationException?"
<p>I'm trying to create a simple path in the onDraw method of a SurfaceView object I've created and the layout editor keeps giving me "UnsupportedOperationException: null" whenever I add an arcTo command to the path.</p> <p>How do I fix this?</p> <p>Thanks,</p> <p>Ryan</p> <pre><code>public class myView extends Sur...
java android
[1, 4]
2,843,238
2,843,239
dynamic controls using client side processing
<p>I created a variable number of thumbs (images) and put them on a panel in a aspx code behind.</p> <p>On the client I have onClick, mouseover, mouseout functions that I do hit. </p> <p>I can get a reference to the individual control but I can't seem to turn the borders off and on. </p> <p>I put a class in the cod...
javascript asp.net
[3, 9]
5,922,756
5,922,757
How do you make a copy of an object?
<p>I created a class called Colors. I am setting certain properties on the Colors object and setting it in a Session variable. When I access the Session variable on another page, I am noticing that if I change properties on objColors below, it changes the Session and does not keep the original properties which is wha...
c# asp.net
[0, 9]
4,040,392
4,040,393
LiveValidation .remove() not working
<p>When I click on the Company account I want to remove validation for Normal account. J use LiveValidations + Ruby on Rails. When J use .destroy() it work but when clic on Normal account validation is off.</p> <pre><code>$(document).ready(function() { var user_email = new LiveValidation('user_email', { v...
javascript jquery
[3, 5]
4,769,842
4,769,843
Collect class names under a <div> tag in java script array
<pre><code>&lt;script type="text/javascript"&gt; $(document).ready(function () { }); &lt;/script&gt; &lt;div id="input"&gt; &lt;div class="feature draggable"&gt;Drag 1&lt;/div&gt; &lt;div class="feature resizable"&gt;Resize&lt;/div&gt; &lt;div class="feature downloadable"&gt;Download&lt;/div&gt; &...
javascript jquery
[3, 5]
4,200,496
4,200,497
Broadcast event when IP changes?
<p>I'm developing an application that is sending data through tcp/ip</p> <p>I've made my own Name server that the clients register their IP and listening port. All of this is working very well.</p> <p>Right now the clients send a ping to the server to get the latest IP and updates it if necessary. Since the app is al...
java android
[1, 4]
2,653,459
2,653,460
disable Parent window on window.open and re enable on close of popup window
<p>I have a parent window where i open up a Popup window on click of a button: </p> <pre><code>function Test() { $("body").append('&lt;div id="modalPopUp" class="modalOverlay"&gt;'); var popupWindow = window.open("test.aspx", 'popUpWindow', 'height=300,width=600,left=100,top=30,resizable=No,...
javascript jquery asp.net
[3, 5, 9]
2,364,633
2,364,634
Strange symbols in http response
<p>I came across a strange problem whilst using the jQuery AJAX functionality. Strange symbols are appearing at the beginning of the response from the server:</p> <p><img src="http://i.stack.imgur.com/RfEX9.png" alt="enter image description here"></p> <p>Here is the JavaScript I use:</p> <pre><code>$.post('/ajax/', ...
php javascript jquery
[2, 3, 5]
2,360,527
2,360,528
Passing JavaScript parameters through ASP.NET ListView
<p>I'm trying to pass parameters to a JavaScript function from a link button in a ListView the function only alerts the the passed parameters so I used Eval("Value") as my parameter but it seems that I'm making a mistake.</p> <p>My code for passing the parameter is</p> <pre><code>&lt;asp:LinkButton ID="LinkButton1" r...
javascript asp.net
[3, 9]
1,018,604
1,018,605
Find pixel value for line height when it's "normal" in Chrome
<p>I have a textarea whose line-height is set to "normal". However, I can still get the actual pixel value in FireFox:</p> <pre><code>// firefox &gt;&gt;&gt; $("#post_body").css('line-height') "19.1167px" </code></pre> <p>Whereas I cannot in Chrome:</p> <pre><code>// chrome &gt;&gt;&gt; $("#post_body").css('line-hei...
javascript jquery
[3, 5]
2,047,712
2,047,713
Can't find the function body in ASP.NET
<p>I recently started working on a project that has been in development for some time now. The problem is this - in the web site page, a have a frame (amongst 4 others) in a frameset which contains the SVG map object (the whole site is GIS based). Also, in the same frame, there is a icon for opening the form in which u...
c# javascript asp.net
[0, 3, 9]
5,499,575
5,499,576
Image not showing up on ASP.NET
<p>I have an image in a folder, when I try to set the <code>ImageUrl</code> from the behind code I get a little symbol that looks broken in half instead of the picture. If I set the <code>ImageUrl</code> in the Image properties it works. What am I doing wrong?</p> <pre><code>var imagepath = Server.MapPath(@"~/images/c...
c# asp.net
[0, 9]
871,607
871,608
Android onKey w/ virtual keyboard
<p>I am catching keyboard events/presses using the onKey method:</p> <pre><code>public boolean onKey(View arg0, int arg1, KeyEvent arg2) { //do something return false; } </code></pre> <p>This fires off just fine for physical keyboard presses but it does not fire on virtual keyboard presses. Is there an event ...
java android
[1, 4]
5,993,664
5,993,665
Are there any tools to convert Java to C#?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/443010/where-can-i-find-a-java-to-c-converter">Where can I find a Java to C# converter?</a> </p> </blockquote> <p>Are there any free converters or tools that can convert java projects to C#? I have java code and...
c# java
[0, 1]
5,873,341
5,873,342
maintain scrollback on ajax modal pop up extender
<p>I have the following site structure. This is a .net 3.5.</p> <p>Master Page -> Content Page -> Modal Pop up extender -> User control -> Panel -> Update Panel -> div</p> <p>The div is where all the form elements are. Now, when I click a checkbox or any button that results a postback, the usercontrol starts from the...
c# asp.net
[0, 9]
3,515,670
3,515,671
Why is this class being involved in serialization
<p>I am getting the following serialization error and I am trying to read my object that I saved to a file</p> <pre><code>java.io.InvalidClassException: com.testGame.scoreCard; Incompatible class (SUID): com.testGame.scoreCard: static final long serialVersionUID =-5895378336422852901L; but expected com.testGame.scoreC...
java android
[1, 4]
531,144
531,145
Change hash without triggering a hashchange event
<p>I'm using the hash to load content dynamically. To make the back button work I am capturing hash changes. However sometimes I need to change the hash without triggering the hash changed function (eg, when the page was redirected server side and I need to update the hash once the content has returned.)</p> <p>The be...
javascript jquery
[3, 5]
3,851,772
3,851,773
Identify which control my application is using
<p>I got a method into my masterpage wich populates a value to every label I pass:</p> <pre><code>function FillLabel(field, text) { $(field).html(text); } </code></pre> <p>I'll need to make it adaptable to the situation that my <code>field</code> recieve an html input and to put the text inside this input I need t...
javascript jquery
[3, 5]
3,690,669
3,690,670
Javascript Jquery doesn't work. $(this)
<pre><code>$(document).ready(function() { $(".delete_user_button").click(function(){ var username_to_delete = $(this).attr('rel'); $.ajax({ type:"POST", url:"/delete/", data:{'username_to_delete':username_to_delete}, beforeSend:function() { ...
javascript jquery
[3, 5]
1,195,499
1,195,500
Android get a bitmap of a view before drawing?
<p>I am looking to take a view hierarchy and turn it into a Bitmap. Using the <a href="http://developer.android.com/reference/android/view/View.html#getDrawingCache%28boolean%29" rel="nofollow">view.getDrawingCache()</a> does exactly what I want it to do but will not work if I try that before the view is drawn. Is ther...
java android
[1, 4]
3,687,447
3,687,448
Remove columns from DataTable in C#
<p>I have a DataSet which I get a DataTable from that I am being passed back from a function call. It has 15-20 columns, however I only want 10 columns of the data.</p> <p>Is there a way to remove those columns that I don't want, copy the DataTable to another that has only the columns defined that I want or is it just...
c# asp.net
[0, 9]
3,959,136
3,959,137
selectbox value calculation
<p>I want to do a calculation between selectbox values. The problem with my code is that the first part of the calculation only gives me <code>0</code>, which Motherboard value*quantity. the second part works fine which Chassis*quantity. My formulas is <code>motherbord*Quanity+chassis*quantity</code>. </p> <p>Here is ...
php javascript
[2, 3]
1,643,042
1,643,043
Downloading and storing files with checksum information in Java
<p>We are building a service to front fetching remote static files to our android app. The service will give a readout of the current md5 checksum of a file. The concept is that we retain the static file on the device until the checksum changes. When the file changes, the service will return a different checksum and th...
java android
[1, 4]
2,835,955
2,835,956
Is there a way to __doPostBack to another page using javascript?
<p>I'm writing a suite of admin tools to sit on top of our existing site that will allow a user to quickly administer a number of pages from one convenient jquery ui window.</p> <p>The issue I'm running into is that a lot of the functionality requires <strong>postbacks on specific pages</strong>, while this admin over...
javascript jquery
[3, 5]
3,938,365
3,938,366
noob- How to write simple text exander application?
<p>I am looking for an open source text expander/autocorrect/auto typing application but haven't quite found what I need. The language must be in C++/C#. The application must work system wide for text input.</p> <p>Can you please give me some guide on how to start with this application?</p>
c# c++
[0, 6]
1,396,762
1,396,763
problem with Check box selection when multiple gridview exists on the form
<p>I am working on check box selection in a grid view. I have gone though the following link <a href="http://www.highoncoding.com/Articles/228_GridView_CheckBox_Selection_With_a_Twist.aspx" rel="nofollow">Grid view checkboxes</a></p> <p>This works fine when i am having one grid view on my form , but if i have multiple...
c# asp.net
[0, 9]
2,277,853
2,277,854
How to reduce the size of JQuery datepicker
<p>I managed to run the JQuery datepicker into JSF page.</p> <p><img src="http://i.stack.imgur.com/sK3dK.png" alt="enter image description here"></p> <p>But as you can see the buttons and the calendar are not symmetric - they are more big than usual. Can you tell me how I can reduce the size of the calendar?</p>
javascript jquery
[3, 5]
452,712
452,713
jQuery mobile, html5 phone links with javascript instead
<p>I'm using a split-button list in jQuery mobile, and I notice I can't have links inside of my buttons without some strange formatting happening.</p> <p>Because of this, a phone link I would normally write as:</p> <pre><code>&lt;a href="tel+1234567898"&gt;123-456-7898&lt;/a&gt; </code></pre> <p>I am trying to do wi...
javascript jquery
[3, 5]
5,151,334
5,151,335
c# ItemDataBound new event handler
<pre><code> protected virtual void DataGrid1_ItemDataBound(object sender, DataGridItemEventArgs e) { this.list = (DropDownList)e.Item.FindControl("edit_list"); if (list != null) { list.SelectedIndexChanged += new EventHandler(List_SelectedIndexChanged); } } </code></pre...
c# asp.net
[0, 9]
3,047,044
3,047,045
the this in jquery plugin is giving back undefined
<p>Could someone explain why this.rel is giving back undefined and also what the regex is supposed to do. If this.rel is undefined the regex will not work either and is causing some kind of error because the alert underneath will not fire? </p> <pre><code>$.fn.facebox= function(settings) { init(settings) f...
javascript jquery
[3, 5]
774,398
774,399
Load first div from another page using jquery or php
<p>I am not ever sure this is possible but I know you guys will know the answer. </p> <p>I wonder if it is possible to load the first div on a page into a different page. </p> <p>Example:</p> <p>This code is on "list.php"</p> <pre><code>&lt;div class="message_details"&gt; Some Content 1 &lt;/div&gt; &lt;div class="...
php jquery
[2, 5]
5,761,747
5,761,748
Save Paths, Virtual directories, and static locations
<p>I had a file upload that was uploading to a folder in the web application root, i.e. I had</p> <pre><code>string savePath = @"~/documentation/" string filename = Path.GetFileName(FileUploadControl.FileName); FileUploadControl.SaveAs(Server.MapPath(savePath) + filename); </code></pre> <p>and that worked fine, uplo...
c# asp.net
[0, 9]
2,366,707
2,366,708
Selecting the correct input field using jquery
<p>I'm trying to select the id's of dynamic input fields in my code. When clicking a button, the form will create a form field like this:</p> <pre><code>&lt;td&gt;&lt;input type="text" id="field_a_1"&gt;&lt;/td&gt; &lt;td&gt;&lt;input type="text" id="field_b_1"&gt;&lt;/td&gt; &lt;td&gt;&lt;input type="text" id="field_...
javascript jquery
[3, 5]
3,745,611
3,745,612
scheduling files for upload
<p>I want to schedule the files for upload. Files are residing in companies network(on intranet)</p> <p>I use "FileUpload" to browse the files on screen which are scheduled for upload. But the FileUpload does not give the full path of the file. So what is the way to workaround this limitation.</p> <p>Thanks, Harish</...
c# asp.net
[0, 9]
1,394,482
1,394,483
why does jquery's .load() ignore <script>?
<p>I have a every common page a.html which looks like this:</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;script type="text/javascript" src="xyz.js" &gt; &lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;div&gt; ... &lt;/div&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>In b.html, I use jquery's <code>...
javascript jquery
[3, 5]
4,246,398
4,246,399
How to check if text in asp.net textbox is selected with jQuery?
<p>I was wondering if this is at all possible, I want to check whether a user has selected text inside a textbox control, just like <a href="http://stackoverflow.com/questions/5001608/how-to-know-if-the-text-in-a-textbox-is-selected">this solution</a> (but this is just for html input controls and not asp.net server con...
javascript jquery asp.net
[3, 5, 9]
4,578,350
4,578,351
At what point in the control life cycle does Control.Visible stop rendering?
<p>I am trying to write a simple utility webcontrol to display one-line messages inside a web page - status updates, error messages, etc. The messages will come from other controls on the page, by calling a method on the webcontrol. If the control doesn't have any messages by the time it gets to pre-render, I don't wan...
c# asp.net
[0, 9]
2,255,337
2,255,338
Displaying label control depending on condition
<p>I have three pages on my site. Page 1 is home page. When user visits the site, i display label control to user in Page 1. When the same user goes to page 2 , 3 and returns back to page 1, i do not want the label to show again. How can i do this?</p>
asp.net jquery
[9, 5]
3,370,594
3,370,595
Facebook like image Uploader
<p>I was wondering how could it be possible to show the user if the files he/she trying to upload is the right type and size before moving it to a folder where it will be saved. I mean like when you Upload a photo on a Facebook if the file is not image the the system rejects but if it is a image you can see it and have...
php javascript jquery
[2, 3, 5]
2,586,955
2,586,956
remove show effect
<p>I am trying to disable my show effect for certain dialogs. It seems, if I don't specify <code>show</code> in the initialization of a dialog, the dialog simply shows as intended. If I specify <code>show</code> with an effect it works properly as well. How can I return back to the initial <code>show</code> after in...
javascript jquery
[3, 5]
4,241,364
4,241,365
convert array_chunk from php to java
<p>my php code is:</p> <pre><code>$splitArray = array_chunk($theArray,ceil(count($theArray) / 2),true); </code></pre>
java php
[1, 2]
2,970,952
2,970,953
jQuery is not a function error
<p>What is wrong with this statement?</p> <pre><code>message = $("#contact-form").find(".long-text"); if(message.val().length &lt; 15) { message.css("border","2px solid red"); alert("Your message must be more than 15 character long"); } </code></pre> <p>I get message.val is not a function error in <a href="h...
javascript jquery
[3, 5]
4,068,859
4,068,860
Different Popup, change focus after time
<p>I use a function to open 3 sites in a popup (fullscreen) from a "parent"-Site. Now I want to switch automatically between this 3 popups after time.</p> <p>The times (im ms) will be set in a div.</p> <p>Does anybody know a good and easy solution for this case? </p> <p>My div</p> <pre><code>&lt;div id="time"&gt;20...
javascript jquery
[3, 5]
4,958,696
4,958,697
Javascript to load image from server asynchronously
<p>I want to load images from my server to an image gallery. The problem is that after loading the web page my program loads all the images first and then displays them all at the same time. As a result, there is a significant wait for them to load.</p> <p>I would like to display the images one at a time as they loa...
javascript jquery
[3, 5]
1,570,597
1,570,598
How can I place an Adsense ad (script tags) inside of javascript tags?
<p>How can I put an Adsense ad inside of javascript tags? </p> <pre><code>&lt;script type="text javascript"&gt; var ad = "&lt;script type="text/javascript"&gt;&lt;!-- google_ad_client = "ca-pub-12345"; google_ad_slot = "12345"; google_ad_width = 728; google_ad_height = 90; ...
php javascript
[2, 3]
2,604,982
2,604,983
jQuery override css hide on mouse out
<p>I have a hidden div that I show when the mouse hovers.</p> <p>Then when I click the text changes and I want the div to be permanently shown. The problem is that it disappears again when the mouse moves off.</p> <p>Is there a way in jQuery to override the mouse out hide in the css?</p> <p>Thanks</p> <p>CSS</p> <...
javascript jquery
[3, 5]
3,190,358
3,190,359
Is it possible to upload data URIs with jQuery or PHP?
<p>I have this array at the moment which contains a lot of data URIs. I set this earlier in the code like this:</p> <pre><code>dataArray = []; dataArray.push({name : file.name, value : this.result}); </code></pre> <p>After doing a few things with the data URIs I want to upload them when the user finally presses the u...
php javascript jquery
[2, 3, 5]
1,180,551
1,180,552
How to load a huge graph into memory to repeatedly find shortest path between two given nodes?
<p>I am writing an application in which I need to load a huge graph into memory and answer "shortest path between x and y" for different pairs of x and y. The graph is static and can be loaded once for all into main memory. </p> <p>The query for shortest path between x and y is made by a UI written in PHP. How can I k...
java php
[1, 2]
4,347,883
4,347,884
how can i fill the some columns in datagridview when page is changed? c#
<p>I have a gridview in page load I change the some images of buttons by using checkfunction However, when i change the index of page. page load don't be called in the program I tried the GridView1_PageIndexChanging, GridView1_SelectedIndexChanged,GridView1_PageIndexChanged events</p> <p>In codes in page load, I copie...
c# asp.net
[0, 9]
5,856,212
5,856,213
Identifying explicit intent purpose in Android, or building seperate activities?
<p>This may be in the RTFM category but I can’t seem to figure out the proper way to do this. One of my activities shows some random data from a database, it uses some user-defined search-criteria from a previous activity to filter out which data blocks to search from. But it’s main purpose is to display the data, and ...
java android
[1, 4]
3,868,855
3,868,856
How to HTML encode a csv export
<p>I get</p> <pre><code> Quattrode® </code></pre> <p>From a string that is HTML encoded as </p> <pre><code>Quattrode® </code></pre> <p>when viewing inside Excel 2007. </p> <p><strong>Routine</strong></p> <pre><code> Response.Clear(); Response.Buffer = true; Response.ContentType = "text...
c# asp.net
[0, 9]
1,173,341
1,173,342
jquery and php, how to go to a specific tab after posting a form?
<p>i have a simple jquery tab and a form. When i post the form the page refreshes and it goes to the default tab. you can see the code in <a href="http://jsfiddle.net/patrioticcow/HysJ6/13/" rel="nofollow">jsfiddle</a> also here:</p> <pre><code>&lt;ul class="tabs"&gt; &lt;li&gt;&lt;a href="#tab1"&gt;Home&lt;/a&gt; | &...
php jquery
[2, 5]