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,761,064 | 5,761,065 | Formatting text in dynamicaly created textboxes | <p>I have jquery that generates textareas with different id's. Now i need to make some buttons that will format text inside that textareas. For example: when user clicks in certain textarea, enter text, and click "bold" button, only text inside of that textarea will become bold (in other will be normal). I did manage t... | javascript jquery | [3, 5] |
3,060,435 | 3,060,436 | jquery checkbox checked state changed event | <p>I want an event to fire client side when a checkbox is checked / unchecked:</p>
<pre><code>$('.checkbox').click (function(){
var thisCheck = $(this);
if ( thischeck.is(':checked') ) {
// Do stuff
}
});
</code></pre>
<p>Basically I want it to happen for every checkbox on the page. Is this method of firin... | javascript jquery | [3, 5] |
1,063,297 | 1,063,298 | Show/hide table row based on value of a cell | <p>I am using the range slider from JQuery-UI (http://jqueryui.com/slider/#range) which a user uses to pick a price range, and I want to show/hide table rows depending on whether or not they fall inside the range selected by the user.</p>
<p>This is what I have found from other answers: the following code hides the ta... | javascript jquery | [3, 5] |
600,118 | 600,119 | ASP.NET beginner question: Need help regarding using some class library | <p>My code:</p>
<pre><code> protected void Page_Load(object sender, EventArgs e)
{
String userHost = Request.UserHostName
}
</code></pre>
<p>This is fetching the IP address alright, but now I want to know the country of the visitor and USE that country name to redirect the visitor to some webpage a... | c# asp.net | [0, 9] |
4,582,718 | 4,582,719 | Correct Syntax to Include object data in jquery selector | <p>I'm trying to make a jquery selector as per the below code. However, my js is pretty poor and i'm not sure what the correct syntax is to use data.key as the value here (data.key should have a numeric value btw). I'd know how to do this in php! But not sure here :(</p>
<pre><code>onClick: function(data) {
if($("... | javascript jquery | [3, 5] |
5,594,844 | 5,594,845 | Reload when setTimeout function finishes | <p>I want to reload window after a this custom function finishes:</p>
<pre><code><script type="text/javascript">
$(document).ready(function(){
setTimeout(function () {
$('#order_form').dolPopupHide({});
}, 3000);
//window.location.reload();
});
</script>
</code></pre>
<p>Is there a way... | javascript jquery | [3, 5] |
2,373,684 | 2,373,685 | Who passed the "args" to the main method? | <p>I tried to run a small c# and java program (using VS and NetBeans not from the command line) and print the value of the args[0] but I got an <code>IndexOutOfRangeException</code>.<br/>
I know that the <code>args</code> is for passing in command line parameters but it is <strong>still</strong> in the main method any ... | c# java | [0, 1] |
6,031,707 | 6,031,708 | fadeIn/fadeOut div tag after executing some server side code | <p>Here is my code</p>
<pre><code><div id="AuthenticateUser" runat="server" style="display:block" >
//login control
<asp:button id="ValidateUser" ... />
</div>
<div id="ForceToChangePassword" runat="server" style="display:none" >
//reset password control
</div>
</code></pre>
<p>... | asp.net jquery | [9, 5] |
186,703 | 186,704 | How can I interact java program using python | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/9333637/how-to-execute-java-program-using-python-considering-inputs-and-outputs-both">How to execute java program using python considering inputs and outputs both </a> </p>
</blockquote>
<p>I want my python vari... | java python | [1, 7] |
358,250 | 358,251 | Get jQuery slider values from DB | <p>I have a database with these tables</p>
<pre><code>company
==========
id | name |
==========
1 | C1 |
2 | C2 |
3 | C3 |
position
=================
id | level | name |
==================
1 | 1 | SE |
2 | 2 | SE1 |
3 | 3 | SE2 |
4 | 1 | SA |
5 | 2 | SA1 |
3 | 3 | SA2 ... | javascript jquery | [3, 5] |
2,732,165 | 2,732,166 | fire event on adding a character-jquery | <p>I want to reload a page when I type a character into a textbox and after reload, take cursor back to the textbox. It should not reload when I delete a character from the textbox.</p>
<p>I was trying this but it doesn't work</p>
<pre><code>$('#id_BasePairs').bind('input', function() {
location.reload();
$('textbo... | javascript jquery | [3, 5] |
4,067,056 | 4,067,057 | Equivalent of PHP's 'array_splice' in java | <p>How can I implement <code>array_splice()</code> in java</p>
<pre><code>$input = array("red", "green", "blue", "yellow");
array_splice($input, 2);
// $input is now array("red", "green")
</code></pre>
<p><a href="http://php.net/array_splice" rel="nofollow">http://php.net/array_splice</a></p>
| java php | [1, 2] |
5,137,068 | 5,137,069 | How can I use a JavaScript file in my ASP.NET project? | <p>I want to use a JavaScript file, lying in the root folder. How can I include that JS file?</p>
| asp.net javascript | [9, 3] |
678,941 | 678,942 | Making a redistributable component or library for Android | <p>I'm just starting out on Android and Java programming, coming in from a C++ background. I was wondering - whats the best way to go about making a library/UI widget/component that I can license to third-party developers? </p>
<p>In C++ I'd ship the customers my headers and *.a files, but I don't know the equivalent ... | java android | [1, 4] |
2,636,457 | 2,636,458 | jQuery: mouseover makes image visible that has the same last 4 numbers in their id as the trigger | <p>I am currently working on a website and got stuck with the following problem: </p>
<p>On the website I have small dots (images) with the ids "dot0001", "dot0002", "dot0003", etc. . I also have hidden images (visibility:hidden) with the ids "info0001", "info00002", "info0003", etc. </p>
<p>I am looking for a jQuery... | javascript jquery | [3, 5] |
1,677,129 | 1,677,130 | How to call custom jquery function onClick | <p>Hi. I am new to jQuery.. I want to know how to call custom jQuery function by onClick attribute of HTML. This was the basic I was trying.Further I want to make parametrised function and want to call that function onClick attribute.</p>
<p>my jQuery function is:</p>
<pre><code>jQuery.fn.myFadeIn=function() {
r... | javascript jquery | [3, 5] |
4,582,434 | 4,582,435 | cursor not stopping until button click completes in window.onbeforeunload? | <p>I have below javascript code for window.onbeforeunload. I am calling code behind button click method when pressed browser back button. </p>
<p>Now the problem is cursor is not stopping until <code>$("#buttonclientid").click()</code> completes. Just calling the method and moving to next statement. How to hold or st... | javascript jquery asp.net | [3, 5, 9] |
4,190,062 | 4,190,063 | How to clear a text box when clicked on it? | <p>I am using this JS to clear text box when user click on it, so this works fine and clears all the text box in the page, I want to clear only the search text box
Search..
How can I do that, Other text box should not be cleared and only this search text box should be cleared when I click on it.</p>
<pre><code> <... | c# javascript jquery asp.net | [0, 3, 5, 9] |
443,601 | 443,602 | Add to Array jQuery | <p>I know how to initliaize one but how do add I items to an Array? I heard it was <code>push()</code> maybe? I can't find it...</p>
| javascript jquery | [3, 5] |
1,056,484 | 1,056,485 | javascript - Is there a way to grab these values with php? | <p>I have this JS code which works by using the <code>onclick</code> method and opens an image in a new window which is the exact size of the image.</p>
<p>I adapted it from the BolGallery script. but the bolGallery script parses this in PHP and is able to get the the 'title','width' and 'height' values dynamically. a... | php javascript jquery | [2, 3, 5] |
2,200,218 | 2,200,219 | Is it possible to use function of one php extension in other? | <p>I want to make a php C++ extension. Is it possible to use redis functions into my PHP C++ extension?</p>
| php c++ | [2, 6] |
1,372,832 | 1,372,833 | How much Java should I have learnt before trying Android programming? | <p>I have been seeking beginner learning books in Android, and of course found out that I should learn Java first. So I began studying Java and now I am quite comfortable with objects, classes, inheritance, interfaces, and just moved onto Layouts in Swing as well as Swing Features. But I am starting to wonder.... do ... | java android | [1, 4] |
5,600,511 | 5,600,512 | Trouble using findcontrol to find values from dynamic Literal Control | <p>I'm having problems with finding my controls in my dynamically created literal control. I want to be able to grab the value in the label with the <code>fnameID(x)</code> id.</p>
<p>ASPX:</p>
<pre><code><div>
<asp:Panel ID="Panel1" runat="server">
</asp:Panel>
</div>
<asp:Button ID="B... | c# asp.net | [0, 9] |
4,142,104 | 4,142,105 | Anyway to get an indexed item from $(".box") | <p>Suppose I get a list of items like <code>$(".box")</code>. Is it possible to get an indexed jQuery object </p>
<p>like </p>
<pre><code>var $boxes = $(".box"),
$box2 = $boxes[1]
</code></pre>
<p>currently I do something like</p>
<pre><code>var $boxes = $(".box");
$boxes.each(function(i, box) {
var $box = ... | javascript jquery | [3, 5] |
966,660 | 966,661 | Passing a variable from Java class to another for Android | <p>Screen2.java file has the following code :</p>
<pre><code>public class screen2 extends Activity {
public int globalZip=0;
//Some validations & update globalZip
//Code control goes to Screen3,java
}
</code></pre>
<p>Screen3.java file has the following code :</p>
<pre><code>public class Sc... | java android | [1, 4] |
1,158,240 | 1,158,241 | Show hidden tabs from slider | <p>I have a slider with more tabs then visible on the main page, so my idea is to put them in a ul set at overflow hidden.
Once the last tab is active and you click next, the next tab is not displayed, the slide itself (on top) is displayed. </p>
<p>What should happen once the last visible tab is active (current class... | javascript jquery | [3, 5] |
3,474,884 | 3,474,885 | Save a MotionEvent for latter processing | <p>I'm starting with a 2D game.</p>
<p>I followed the hints of the book "Beginning Android 4 Games Development", there the autor process each MotionEvent,transform the touch from the screen coordinates to the game coordinates, create its own "TouchEvent" and store it in a pool for being processed with the next UI refr... | java android | [1, 4] |
4,174,979 | 4,174,980 | How to call an action after click() in Jquery? | <p>I want to load an image and some other actions after I click a certain DOM element, but I want to load them AFTER the clicking action finished.</p>
<p>Here is a code example:</p>
<pre><code> $("#message_link").click(function(){
if (some_conditions...){
$("#header").append("<div><img alt=\"Loader... | javascript jquery | [3, 5] |
2,007,860 | 2,007,861 | javascript split, each, check if exists in select if not add option | <p>Can anyone see what im doing wrong here?</p>
<p>I am trying to split <code>tag_filter</code>, then for each of the <code>tag_filter</code> values, I would like to check if the option value already exists in <code>tag_select_dropdown_filter</code>. If it does not exist then add option to <code>tag_select_dropdown_fi... | javascript jquery | [3, 5] |
6,009,069 | 6,009,070 | How do I include indicator images with <div> show/hide code in JavaScript? | <p>I'm using this code to hide and show <code>div</code>s:</p>
<pre><code>$(function() {
$('a.hide').click(function() {
$(this).closest('.hideable').find('.hide-container').toggle();
});
$('a#hide-all').click(function() {
$('.hide-container').hide(); });
$('.hide-container').hide();
}... | javascript jquery | [3, 5] |
4,701,572 | 4,701,573 | Android Save Image and read | <p>Hı a have a bitmap(from byte array). I want to save that as PNG file in internal storage. </p>
<p>Then I want load this image to webview ?</p>
<p>How can ı do this ?</p>
| java android | [1, 4] |
3,241,220 | 3,241,221 | Recording audio not to file on Android | <p>I want android.media.MediaRecorder. to record audio not into file, but into same variable, for example char[ ] or byte[ ] or some other datta buffer structure. I want to send it to the remote server via Wi-Fi, can android.media.MediaRecorder provide this functionality?</p>
| java android | [1, 4] |
4,525,996 | 4,525,997 | How to execute code everytime url changes | <p>I'm making an ajax site. How would I go about executing some javascript every time the url changes. Say when "/#page/aboutus/" changes to "/#page/news/".</p>
<p>I want users to be able to bookmark ajax-pages.</p>
| javascript jquery | [3, 5] |
4,337,735 | 4,337,736 | How to develop application for Hide files in Android | <p>I am trying to develop application to <strong>HIDE</strong> files in Android.The files may be video or mp3 files.So please help me to solve this problem.</p>
| java android | [1, 4] |
1,735,543 | 1,735,544 | Javascript/jQuery encoding for special characters when using val() | <p>I have a problem with special characters like &, ä, etc. and their corresponding HTML encoded writing like <code>&amp;</code>, <code>&auml;</code> etc.</p>
<ul>
<li><p>When they are used in the value tag of input fields, the browser decodes it automatically, no problem at all.</p></li>
<li><p>When using... | javascript jquery | [3, 5] |
2,085,067 | 2,085,068 | Where does JQuery call setInterval for .fadeIn and .fadeOut()? | <p>Here is a <a href="http://james.padolsey.com/jquery/#v=1.6.2&fn=jQuery.fn.fadeIn" rel="nofollow">source viewer</a> for fadeIn() but it does not link out to custom() for some reason.</p>
<p>Also, as a second question, how does one conceptualize all this code...there are so many function calls that I can't even g... | javascript jquery | [3, 5] |
6,018,392 | 6,018,393 | .focusout() only reading through first if() statement | <p>Why is this not reading through both if statements even though they are both true?</p>
<p><strong>HTML</strong></p>
<pre><code><textarea name="test">
Focus out to test prompts
</textarea>
</code></pre>
<p><strong>jQuery</strong></p>
<pre><code>var disableA = 1;
var disableB = 1;
$('textarea[name="... | javascript jquery | [3, 5] |
2,352,066 | 2,352,067 | Making a button element submit | <p>Using ASP.NET, how do I make this button tag submit my ASP.NET form when clicked:</p>
<pre><code><button>Submit</button>
</code></pre>
<p>I'd like it to do a post back just like a regular asp.net server control button would work. I'd prefer a jquery way to do it if possible.</p>
| c# jquery asp.net | [0, 5, 9] |
291,316 | 291,317 | Remove a span implemented in first toggle using second toggle | <p>I'm having trouble removing a span that is created on the first click in the toggle and removed on the second click of the toggle.</p>
<pre><code>$(document).ready(function(){
$("td").toggle(
function(){
var current = $("input[name=prices]:checked").val();
$(this).html("<img src='images/1.gif... | javascript jquery | [3, 5] |
5,085,262 | 5,085,263 | jquery - Get the occurrence of an element | <p>I have a div which contains 5 images.</p>
<p>I want to write to a p tag every occurrence of the img</p>
<pre><code>$("#myDiv img").each( function() {
$("p").append($(this).length);
});
</code></pre>
<p>The above returns:</p>
<p><code>11111</code></p>
<p>What I want to return is:</p>
<p><code>12345</code></... | javascript jquery | [3, 5] |
5,293,852 | 5,293,853 | ASP.net web application data integrity issue | <p>Let say...</p>
<p>If we ASP.net banking application. When user press a button then it will debit $100 from his account.</p>
<p>Issue:
What happened if user two or three times click on this button without waiting for first inform or it press F5/refresh page.</p>
<p>How we can prevent or get data integrity.</p>
| c# asp.net | [0, 9] |
862,096 | 862,097 | How to get jQuery infinitely repeat function? | <p>I currently have the following piece of code. When "true" is returned from tv.php the code seems to stop. How can I make this code check tv.php every 60 seconds, and repeat regardless of what TV.php returns? (I want the to refresh every time it detects "true", and keep checking every 60 seconds infinitely)</p>
<pre... | javascript jquery | [3, 5] |
5,853,587 | 5,853,588 | Javascript function that reassigns itself | <p>How do I keep <code>accordions</code> from being initialized when the page loads... I'd like it only to be run from inside of a method (other than <code>init()</code> of course) but only when needed</p>
<pre><code>$.extend($.fn, {
accordion: function () {
var accordion = (function () {
... | javascript jquery | [3, 5] |
3,800,670 | 3,800,671 | Can malicious javascript code be injected trough $()? | <p>Example:</p>
<pre><code>if($('#' + untrusted_js_code).length) > 0
....`
</code></pre>
<p>Normally "untrusted_js_code" should be a simple string representing the ID of an item. The value of the variable comes from an iframe (trough postMessage), this is why it's untrusted. And I'm just checking if that item ex... | javascript jquery | [3, 5] |
906,746 | 906,747 | Tooltip Issue with jQuery | <p>I have this code</p>
<pre><code><?php
if(!empty($auction['Auc']['beginner'])){
?>
<a href="#" id="trigger_beginner"><?= $html->image('badge/beginner_icon.png', array('width'=>"30", 'height'=>"30", 'border'=>"0", 'alt'=>"Beginner auction", 'title'=>"Beginner auc"))?></a>... | php javascript | [2, 3] |
3,254,728 | 3,254,729 | android: generate random number without repetition | <p>can anybody help me in making a method to generate random number without repetition in Android?
The maximum number is: <code>prjcts.size();</code> it's my JSON Array. And the return value should be in integer. </p>
<p>What I've already had is:
<code>int i = (int)(prjcts.size() * Math.random());</code> I casted the ... | java android | [1, 4] |
5,872,026 | 5,872,027 | Buzzbox SDK For Android | <p>Can anyone tell me what kinds of information that Buzzbox collects off of devices? I am very interested in the SDK as it looks really convienient but I am very concerned about how much data will be skimmed by Buzzbox. Any input would be greatly appreciated.</p>
| java android | [1, 4] |
193,329 | 193,330 | Get Entry from URL | <p>I am writing classic asp.net website and struggling with a problem. </p>
<p>Usually in URL send data by doing this: localhost/MyrandomPage.aspx?UserName=RandomUsername</p>
<p>But i am trying to make a page more personal so i want Url to look like this: </p>
<p>localhost.com/Profile/RandomUsername</p>
<p>And i am... | c# asp.net | [0, 9] |
5,086,252 | 5,086,253 | How to find the closest element to the current position with jQuery | <p>I have a document with several sections like this:</p>
<pre><code><div class='section' id='sec1'>
lalala
lalala
lalala
</div>
<div class='section' id='sec2'>
lalala
lalala
lalala
</div>
<div class='section' id='sec3'>
lalala
lalala
lalala
</div&... | javascript jquery | [3, 5] |
263,157 | 263,158 | Javascript/Jquery if statement and hasClass | <p>I have a bunch of images that have an opacity of 80%.<br>
When I hover over the image, I use <code>mouseenter</code> and <code>fadeTo('fast' 1);</code> to make the opacity 100%.<br>
When I hover away from the image, I use <code>mouseleave</code> and <code>fadeTo('fast' 0.8);</code> to get the opacity back to 80%.</p... | javascript jquery | [3, 5] |
3,625,587 | 3,625,588 | Max return parameter limit for HtmlPage.Window.Invoke method | <p>What could be the maximum limit of string values return from the following code?</p>
<p>is there is any limit on that application? </p>
<p>string o = (String)HtmlPage.Window.Invoke("CallMe", "data here!!");</p>
| javascript asp.net | [3, 9] |
5,421,080 | 5,421,081 | Android, make scrollable view overflow to the left instead of right? | <p>I was recommended using a parent view to get horizontal scrolling right in my TextView:</p>
<pre><code><HorizontalScrollView android:layout_width="fill_parent"
android:layout_height="fill_parent">
<TextView android:layout_height="wrap_content"
android:layout_width="wrap_content"
an... | java android | [1, 4] |
3,488,081 | 3,488,082 | Hiding/unhiding list elements with jQuery | <p>I'm attempting to create a "filterable" list of items. The user should be able to click on a list element (the parent), which would hide all other parent elements and show the "children".</p>
<p>An example of the html is:</p>
<pre><code><ul class='parent_list'>
<li>Parent 1</li>
<... | javascript jquery | [3, 5] |
33,293 | 33,294 | How do I select and unselect multiple elements with JavaScript or jQuery? | <p>I am working currently on some online editor and I would like to have there the posibility to select multiple elements (all this same class) while holding ctrl key - just like in most of the programs and then make some actions on them - eg. align.</p>
<p>The second thing what I want to achive is to be able to desel... | javascript jquery | [3, 5] |
3,355,545 | 3,355,546 | Help to make a decision on which programming language | <p>We're developing a system which can be best described as a layer above social networking. It's extremely data heavy, would involve a huge user base, data base would be beefy basically, but it wouldn't involve complex computations. The most complexity would involve fast retrieval of data. Now, we have programmers who... | java php | [1, 2] |
3,527,252 | 3,527,253 | Is it possibile to wait till all javascript files are loaded before executing javascript code? | <p>We have several javascript files which we load at the bottom of the master page. However, I have the situation that I need to perform some javascript before the other scripts are loaded. Is it possible to wait till all the javascript files are loaded and then execute some javascript code?</p>
<p>I thought <code>$(d... | javascript jquery | [3, 5] |
4,226,706 | 4,226,707 | Get result PHP code in jQuery function? | <p>I use codeigniter and i want make uniqid code with php as following code(by random_string()):</p>
<pre><code>function coding(){
echo random_string('unique');
}
</code></pre>
<p>I want use result top function in a, jquery function (for use in js code), i in jquery code try as this, but this output in <code>aler... | php javascript jquery | [2, 3, 5] |
3,378,244 | 3,378,245 | scrollheight of an element gives undefined value | <p>In an element i've given CSS, overflow:scroll;
Now in jquery i want to have its original height (Containing all child element height). Children under this elements are dynamically changing. I want to have height on scroll event.
Here is the code:</p>
<pre><code>$("#container").scroll(function(e) {
scrollAll();
... | javascript jquery | [3, 5] |
4,712,056 | 4,712,057 | How to get location, I want to display a div at the location of the bottom left side of a table row | <p>I have a table with rows.</p>
<p>I have the ID of the row I want to display a div block under when a button is clicked.</p>
<p>How can I get the location?</p>
<pre><code><table>
<tr id="tr1">
...
</tr>
<tr>
...
</tr>
</table>
</code></pre>
...
<p>So when a button is clicked... | javascript jquery | [3, 5] |
3,349,307 | 3,349,308 | KCFinder install | <p>Does anybody could help me with KCFinder installation?</p>
<p>I downloaded KCFinder 2.51, on my htdocs folder "project" created dir "kdfinder" and I copied all to it. I configured config.php file, but what now? Ho do I know, I did it right? How can for example include it in my filemanager.php file?</p>
<p>I've rea... | php javascript | [2, 3] |
3,819,757 | 3,819,758 | ASP.NET w/ C# SortedList | <p>How do I create a SortedList that holds multiple variables? I want to keep multiple instances of (date, height, weight).</p>
| c# asp.net | [0, 9] |
4,495,697 | 4,495,698 | How can I stop jquery effects from cloning nearby elements during execution of effect? | <p>I have observed some strange behavior with a few jquery effects. The one that always exhibits the behavior that concerns me is slideUp(1000). My HTML is formatted similar to:</p>
<pre><code><ul>
<li>Nav Element</li>
<li>Another...</li>
<li>...</li>
</ul>
&l... | javascript jquery | [3, 5] |
3,732,086 | 3,732,087 | Client side image resize and save | <p>is there a way to resize and save an image to a temp file through a web browser client side?</p>
<p>What I am trying to accomplish is resize an image to a max 1024px wide/high, save it locally and then upload the resized image to a server.</p>
<p>The reason is that I am building an online app that allows users to ... | php javascript jquery | [2, 3, 5] |
498,761 | 498,762 | Marshalling data for C# | <p>I have not many experience in such language as C# so I would be pleased if you guys could help me. I wrote this method in C++ using MPIR library:</p>
<pre><code>mpz_class SchnorrProtocol::getX(const mpz_class& r) const
{
mpz_class x;
mpz_powm(x.get_mpz_t(), this->params_.getBeta().get_mpz_t(), r.get_... | c# c++ | [0, 6] |
5,562,528 | 5,562,529 | howto sort a asp:Table? | <p>is it possible to simply sort a asp:Table by columns?</p>
| c# asp.net | [0, 9] |
3,193,101 | 3,193,102 | Why is OnCreate() being called when the app is "quit", this causes my initiliazation code to run multiple times | <p>So this should be easy I am sure I am just missing something.</p>
<p>in my OnCreate() method, I do most of my games initilization (oh by the way I am making a game!)...
in OnCreate I create a Panel, which is a class that extends view, and is responsible for all displaying. In the constructor of this panel I update ... | java android | [1, 4] |
550,408 | 550,409 | Ways to overcome sending email delay in asp.net | <p>I added a comment box and each time the user add new comment im calling an Insert Handler to apply this into the DB. What i like here is the quickness things done.</p>
<p>what i wanted to do now is to send each time a new comment inserted, WITHOUT DELAYS.</p>
<p>so i added <strong>SmtpClient</strong> and send the ... | c# asp.net | [0, 9] |
4,064,639 | 4,064,640 | What does this property do in a user control | <p>I have been trying to research information about this property but have not had luck finding a good explanation.</p>
<p>What does the property of a user control "Mode" do? or what is it used for?</p>
<pre><code> <uc1:MyWebControl runat="server" ID="uxMyWebControl" Mode="10" Visible="false" />
</code></pre>
... | c# asp.net | [0, 9] |
5,922,933 | 5,922,934 | Call instances of custom object with different parameters | <p>I want to call an instance of a custom object twice with one parameter different, the problem is if I set its config property it changes accordingly if I create 2 instances, but if I don't specify the property when calling the second instance of the object, it inherits the set parameter from the first instance.</p>
... | javascript jquery | [3, 5] |
2,755,080 | 2,755,081 | append data is not showing? HELP! | <p>im trying to append data using jquery, but its only showing the status messages but not the button! although the button deos show on firebug?</p>
<pre><code>$("form.follow-form").live('submit', function(e) { /* stop event */
e.preventDefault(); /* "on request" */
$(this).find('i').addClass('active'); /* sen... | php javascript jquery | [2, 3, 5] |
2,414,985 | 2,414,986 | Android When arriving from a particular Intent | <p>I have a class with two buttons. Depending on which one is clicked a different value is sent to the next intent. That intent has to work with the value sent in the bundle.</p>
<p>The problem I am having is that the intent is also my home page and can be accessed via other classes. When these try to open it they are... | java android | [1, 4] |
3,929,660 | 3,929,661 | asp.net regular expression validator for decimal | <p>Am using the below expression to validate a textbox with decimal number. But it accept 12, -1.0,12.0,12.5,1.0 etc. But i want a regular expression like this "12.4". First two digit and decimal point and followed by a single digit. </p>
<pre><code>ValidationExpression="^-?[0-9]{0,2}(\.[0-5]{1,1})?$|^-?(100)(\.[0]{1,... | c# asp.net | [0, 9] |
4,011,114 | 4,011,115 | calling a php from javascript as src file | <p>i have a question
when a .php file called as a javascript what dose this mean? and when this is needed to be used ?</p>
<p>ex:</p>
<pre><code><head>
<script src="dir/myphpfile.php" type="text/javascript"></script>
</head>
</code></pre>
| php javascript | [2, 3] |
3,783,169 | 3,783,170 | Gridview losing row index value | <p>Iam having a gridview with textboxes in itemtemplate. If textbox validation fails whiling clicking the submit button gets into exception and loses its rowindex values. Based on the row index value iam setting theme for gridview rows. So when i click the row it throws null value exception. Help me to solve this. ( I ... | c# asp.net | [0, 9] |
2,296,581 | 2,296,582 | How can I send TCP requests from my phone? | <p>I have following task: to make Android application which connects to router, sends TCP requests for system and gets response. I have made Android application already which uses PHP web-services, but I never make application for TCP requests. Please, tell me, what means should I use for my task? Thank you.</p>
| java android | [1, 4] |
2,316,331 | 2,316,332 | Javascript - dumping all global variables | <p>Is there a way in Javascript to get a list or dump the contents of all global variables declared by Javascript/jQuery script on a page? I am particularly interested in arrays. If I can get the array names, it will be enough to me. Seeing its values is a bonus.</p>
| javascript jquery | [3, 5] |
5,968,802 | 5,968,803 | How to control mouse scroll default value javascript | <p>Hey guys How to control mouse middle button.. I want to override mouse wheel for example when I clicked wheel button..The browser is scrolling default value(I guess 112 ) but I want 200 </p>
<p>How can I do that Sorry about my english</p>
| javascript jquery | [3, 5] |
3,879,839 | 3,879,840 | How can I programmatically monitor the activity on an already opened serial port? | <p>Is there a library or code sample (preferably C# or Java, but not required) that allows to "sniff" what is happening on a serial port which is being used by another application? Like this software does:</p>
<p><a href="http://www.eltima.com/products/serial-port-monitor/" rel="nofollow">http://www.eltima.com/product... | c# java | [0, 1] |
2,336,596 | 2,336,597 | Javascript, or Jquery and posting to php | <p>I want to send a javascript variable to a php file. What I would like to know is could you do it via this method?</p>
<p>Jquery:</p>
<pre><code>Var UserName;
UserName = John;
$.post("InsertRunInfo.php", { UserName: UserName } );
</code></pre>
<p>Pass to php:</p>
<pre><code><?php
$con = mysql_connect("*****","... | php javascript jquery | [2, 3, 5] |
2,989,220 | 2,989,221 | Call Javascript function from codebehind on button click | <p>I want to execute a javascript function on a button click and if the result is a sucess only then the server side code should be executed on that button click.</p>
<p>Below is what I am trying to do</p>
<pre><code> protected void btnAdd_Click(object sender, EventArgs e)
{
if (btnAddItem.Text == "Add")... | javascript asp.net | [3, 9] |
4,658,529 | 4,658,530 | Create a link on the fly when a user enters a code in a form box | <p>I have a form....</p>
<pre><code><form id="orderform" method="post" orderform="" name="">
<table width="533" cellspacing="0" cellpadding="2" border="0" id="ordertable">
<tbody>
<tr>
<td>Product Code</td>
<td>Meterage</td>
<td>Sample Img... | php jquery | [2, 5] |
5,990,161 | 5,990,162 | PHP & Jquery - open a small div over others div when mouse go on a link | <p>i need to open a div (or somethings other, dunno what) when mouse go on a link. But this div doesnt move other div. It must open OVER the others div (like this website...when there are the "popup/error" div over others div. How can do it? Transparent? Or somethings like it?</p>
<p>for example, if i write somethings... | php jquery | [2, 5] |
4,491,021 | 4,491,022 | after mod-rewrite, all images file paths are not visible | <p>I want to add an url rewrite to a website and when I try to access the page it's loading with no images and css file.
Here is my code:</p>
<pre><code> < rewriter>
< rewrite url="~/item/(.+)/(.+)" to="~/item.aspx?imageId=$1&amp;category=$2"/>
< /rewriter>
and
< location path="~/ite... | c# asp.net | [0, 9] |
1,078,396 | 1,078,397 | How can I cut the 1st char from a string in jquery? | <p>Does anyone know how can I cut the 1st char from the string in jquery?</p>
<p>Example:
If I have string as following:</p>
<pre><code>var test = '3265';
</code></pre>
<p>How can I cut only the 1st char so that the output will be '3' instead?</p>
| javascript jquery | [3, 5] |
1,812,281 | 1,812,282 | whats wrong with this simple snippet (parsing string into array)? | <p>Assuming element with id 'id2' is a textarea with the following entries:</p>
<p>a@123.com, b@123.com, c@123.com</p>
<p>When I run this, I am getting values 0, 1 and 2 - why?</p>
<pre><code>jQuery('#myid').submit(function() {
var temp = jQuery('#id2').serializeArray();
var email_arr = temp[0].value.split('... | javascript jquery | [3, 5] |
5,908,777 | 5,908,778 | G722 Java or C++ impelementation | <p>I am developing a VoIP application and Need to know if there is any open-source implementation for G722 speech codecs. ?!</p>
| java c++ | [1, 6] |
4,285,727 | 4,285,728 | validate variable with javascript | <p>it is a code to submit several grades in one submission<br>
this is the javascript code fore validation</p>
<pre><code>function validateForm() {
var x='<?php echo ($grade);?>';
if (x>100) {
alert("Invalid Data Entry");
return false;
}
</code></pre>
<p>it is not accessing the v... | php javascript | [2, 3] |
510,982 | 510,983 | Adding Sliding Effect to Counter | <p>I currently have a javascript counter which looks something like this towards the output.</p>
<pre><code>out=
"<div id='days'><span>"+ days +"</span></div>" +
"<div id='hours'><span>" + hours +"</span><</div>" +
"&l... | javascript jquery | [3, 5] |
3,929,090 | 3,929,091 | show message when like button is clicked? | <p>I am using the following code to alert the user when he click the facebook like button. It is alerting the user only on Opera browser. How do I fix this problem and make it work with all browsers ?</p>
<pre><code><script>
FB.Event.subscribe('edge.create',
function(response) {
alert("You liked the ... | javascript jquery | [3, 5] |
5,163,214 | 5,163,215 | jQuery's after method not working with newly created elements | <p>Insofar as I can tell, the following code should work, creating a <code><div></code> element, and then creating a <code><p></code> element; the expression should result in a jQuery object with two elements:</p>
<pre><code>$("<div>first element's content</div>").after("<p>second element... | javascript jquery | [3, 5] |
2,656,785 | 2,656,786 | Is it possible to base 36 encode with JavaScript / jQuery? | <p>I'm thinking about using the encode/decode technique here (Encoding to base 36/decoding from base 36 is simple in Ruby)</p>
<p><a href="http://stackoverflow.com/questions/6338870/how-to-implement-a-short-url-like-urls-in-twitter">how to implement a short url like urls in twitter?</a></p>
<p>Idea being to track use... | javascript jquery | [3, 5] |
3,696,272 | 3,696,273 | Error while passing series of numbers as a parameter to a JavaScript function in PHP | <p>Here's my PHP code - </p>
<pre><code>for ($i=1;$i<=10;$i++)
{
$numbers .= $i."\n";
}
echo "<input type='button' onclick=ShowNumbers('$numbers') value='Show Numbers'>";
</code></pre>
<p>And my Javascript code - </p>
<pre><code>function ShowNumbers(numbers)
{
alert("Numbers:: "+numbers);
}
</code></p... | php javascript | [2, 3] |
1,336,157 | 1,336,158 | javascript show hide div | <p>how to do show and hide div in javascript and simillarly in c# pageload how to call div based on id value.can any one help on this ?</p>
<pre><code><ul>
<li><a href="#cat1">cat1</a></li>
<li><a href="#cat2">cat2</a></li>
<li><a href="#cat3">cat3</... | c# javascript asp.net | [0, 3, 9] |
4,982,802 | 4,982,803 | Base64 Encode - Decode Python and ASP.Net? | <p>i m trying encode data on python with "base64.encodestring()" then i send encodedData to my asp.net service and trying decode this data.But this data is invalid.</p>
<p>Python function code () : </p>
<pre><code>randomString=''.join(random.choice(string.ascii_uppercase + string.digits) for x in range(10))
fileNameS... | c# asp.net python | [0, 9, 7] |
5,419,206 | 5,419,207 | Java locale annotation - C# culture attribute | <p>In C# I have the following attribute above a method:</p>
<pre><code>[Test, SetCulture("en-GB")]
</code></pre>
<p>which, I assume, means that whatever happens inside this test method (e.g. number parsing) will obey the rules of the en-GB culture.</p>
<p>Is there any way to do the same thing in Java? Have some anno... | c# java | [0, 1] |
1,678,057 | 1,678,058 | Javascript getJSON not working (Possibly Cross Domain) | <p>Im getting a JSON from a server, and when I type the url into the browser, I can see the JSON data. And when I use curl to get the JSON I can also see the data. But when I try to use a html page locally to access the data i get an error. I've tried using </p>
<pre><code>$.support.cors = true;
</code></pre>
<p>but ... | javascript jquery | [3, 5] |
1,094,995 | 1,094,996 | Closing exe and running from memory | <p>Since exe is an archive, I want my program to be able to save stuff to it's own exe file. Unfortunately, Windows keeps the file open while it's running. I'd like to find a way in Python and/or C++ to force the program to run from memory and have the file close.</p>
| c++ python | [6, 7] |
4,176,202 | 4,176,203 | Navigation and Update record in mysql database with html form | <p>I am new in php and I want to make navigation buttons Next, Previous, Top, Bottom in html form which retrieves data from mysql database in php. And I also want to edit, delete buttons on html form. Please help in this regards.</p>
| php javascript | [2, 3] |
4,745,759 | 4,745,760 | How to pop out <select> list via button? | <p>I want to know how to pop out the native list using either jQuery or just plain JavaScript. I'm currently working on a mobile website and instead of having the users click on the object, the will click on a button instead and the list should pop out. The object will be hidden too.</p>
<p>How do I go about doing... | javascript android jquery | [3, 4, 5] |
3,226,241 | 3,226,242 | how to make system tray alert using php or jquery or java? | <p>I am writing a program which requires to alert the user when a particular event occurs, it can be a balloon tip, or system tray alert like skype, or antivirus alert? </p>
| php javascript jquery | [2, 3, 5] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.