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 |
|---|---|---|---|---|---|
279,126 | 279,127 | How to check if SqlDataSource.SelectCommand returned null | <p>I have a gridview and sqldatasource.</p>
<pre><code>I'm using : SqlDatasource1.SelectCommand = "Select Name from Table Where RowID=@RowID";
</code></pre>
<p>how can I check if the the selectedcommand returned null ( no value found ) </p>
<p>Thanks</p>
| c# asp.net | [0, 9] |
1,198,881 | 1,198,882 | Fading in background image with jQuery | <p>How would you fade in a background image (the body tag, and it is tiled) with jQuery? The background color is white and in a callback function I want to toggle the background image to on and off.</p>
<p>Any ideas?</p>
| javascript jquery | [3, 5] |
895,105 | 895,106 | How to can i drag and drop cross tags in browser using javasript or jQuery? | <p>It look like Google search by images
Not only images but also selected text,...
Give me some simple example
thanks!</p>
| javascript jquery | [3, 5] |
2,357,011 | 2,357,012 | Get closest elments of corresponding list of elements in javascript/jquery | <p>I have a list of elements:</p>
<pre><code>var checked_inputs = $('.select-feedback:checked');
</code></pre>
<p>Now i want to get their closest division element whose class is 'MessageRow'. I have done this trick to get it:</p>
<pre><code> $('.radiusRight').click(function(event) {
event.preventDefault();
... | javascript jquery | [3, 5] |
1,875,718 | 1,875,719 | Using JQuery, how do I turn a .click() event into something that happens with no user action? | <p>I'm currently working with the following code:</p>
<pre><code>$("li.className").click(function () {
$(this).fadeTo(1000, 0);
});
</code></pre>
<p>which turns the <code><li></code> opacity down on click. How do I make this happen with no user interaction at all, such as when the page loads or after a certa... | javascript jquery | [3, 5] |
28,639 | 28,640 | Get dynamic class each fieldset | <p>How can get(dynamic) each class <code>fieldset</code> that wrapping the elements in it?</p>
<p><strong>Like:</strong></p>
<p>if click on button <code>adult</code> =get class=> <code>.adult</code> from here in the html: <code><fieldset class="adult"></code><br>
if click on button <code>child wbed</code> =get ... | javascript jquery | [3, 5] |
3,611,068 | 3,611,069 | jQuery: Moving window (or FIFO) type DIV? | <p>I have been trying to get this effect for a couple of hours now and I must admit I am failing at it. I am trying to construct a DIV that accepts a particular number of items (say 5), when the 6th item is added, the first item that was aded should be removed (first-in-first-out). The feel should have some kind of a f... | javascript jquery | [3, 5] |
4,640,406 | 4,640,407 | Inserting Element Based on a Condition | <p>I want to insert different url's dynamically after checking a condition</p>
<p>Here's the pseudocode</p>
<pre><code>If div.id = "abc" then
create url <a href="www.zzz.html"'>Cosmetics</a>');
Append url to div
else if div.id = "xyz" then
create url <a href="www.abc.html"'>LEather goods</a>'... | javascript jquery | [3, 5] |
2,425,237 | 2,425,238 | Check color CSS file... change colors jquery plugin | <p>Is it possible to check with JavaScript (jQuery) if there is a certain CSS file? And if there is that it loads a color array for jQuery plot?</p>
<p>Example:</p>
<ul>
<li>I include a color CSS file (blue.css).</li>
<li>Javascript will check if there is a color CSS file (blue.css, red.css, grey.css).</li>
<li>There... | javascript jquery | [3, 5] |
316,135 | 316,136 | Difference between remove() and detach() in jQuery | <p>I have a question related to jQuery <code>.remove()</code> method. Consider this code:</p>
<pre><code>var x;
$("#btn1").click(function() {
x = $("p").remove();
});
$("#btn2").click(function() {
$("body").prepend(x);
});
</code></pre>
<p>If the code is checked on click on the button2, the paragraph element ... | javascript jquery | [3, 5] |
1,774,924 | 1,774,925 | Place a script immediatly after the opening <body> tag | <p>I would like to place a Google tag manager script and according to Google Tag documentation, the script should be placed immediately after the opening tag. </p>
<p>Since we cannot change the source code, we have to append the script using the following code snippet. </p>
<pre><code><script type="text/javascrip... | javascript jquery | [3, 5] |
3,042,299 | 3,042,300 | functionCallOnClose not working in JQuery DOMWindow plugin | <p><a href="http://jsfiddle.net/VtNaU/" rel="nofollow">http://jsfiddle.net/VtNaU/</a></p>
<p>'functionCallOnOpen' seems to work fine but 'functionCallOnClose' (the one I actually want to use) doesn't seem to work. I've also tried .closeDOMWindow click() but that only is called if the close button is clicked - not if t... | javascript jquery | [3, 5] |
1,547,860 | 1,547,861 | Transparent blurry view which blurs layout underneath | <p>I've got a Linearlayout which I've made transparent, and now I'm looking for a way to give it a Blur effect, so what's ever underneath it gets blurry. Just like the Windows 7 Aero look (see screenshot).</p>
<p>I know you can do a blur effect like this:</p>
<pre><code>getWindow().addFlags(WindowManager.LayoutParams... | java android | [1, 4] |
2,476,093 | 2,476,094 | jquery and multiple element hover check | <p>I have 3 boxes and once user hovers any, if changes the content of the big main div from default to the related div via <code>featVals hash table</code></p>
<p>At the <code>if ($('#estate-feature, #carrier-feature, #cleaning-feature').is(':hover')) {</code> part of my code, I want to check if any of these 3 div box... | javascript jquery | [3, 5] |
3,699,124 | 3,699,125 | how to select text naturally with jquery? | <p>Due to copyright laws and licensing agreements, I'm unable to allow copy+paste on certain parts of text we're displaying. So selecting is disabled and right click is disabled. It sucks, I know, but unfortunately its part of playing the game and remaining in business.</p>
<p>With jquery, I've been able to allow th... | javascript jquery | [3, 5] |
4,257,476 | 4,257,477 | How to close the box if click anywhere? | <p>I have an code that the function is autosuggestion. This code works good. And I just want to ask You about how to close the box after I input text in the textbox. In my code when I try to click anywhere, it didn't close the box. So what I want to do is when I click anywhere so the box must be close.</p>
<p>Here is ... | javascript jquery | [3, 5] |
3,598,052 | 3,598,053 | Replace numbers without change number in style or everything else by jQuery | <p>How can replace arabic number with latin number as that doesn't change number into div:style and doesn't change tag and ... ? How can done it?</p>
<p><strong>DEMO:</strong> <a href="http://jsfiddle.net/mCUvT/" rel="nofollow">http://jsfiddle.net/mCUvT/</a></p>
<pre><code><div class="myGrid">
<b style=... | javascript jquery | [3, 5] |
4,531,096 | 4,531,097 | Launching survey window when user exits site | <p>I have a survey request that will be presented to a small percentage of website visitors. I'm trying to figure out the best way to launch the survey when the user leaves the site. Initially, I was thinking of a pop-under that the user would happen upon when the closed their browser window - but I'm afraid this is p... | javascript jquery | [3, 5] |
4,394,919 | 4,394,920 | string to double | <p>i try to read text from screen and change it to double and it crash</p>
<pre><code>public void equesionOperation(int signNum1) {
S_numInTV=TV_calcScreen.getText().toString();
S_numUp=TV_calcUp.getText().toString();
D_numIn=Double.parseDouble(S_numInTV);
D_numToCalc=Double.parseDoub... | java android | [1, 4] |
5,147,890 | 5,147,891 | Getting .animate() and .data() to work together | <p>I'm trying to get the following code to work:</p>
<p>There's this strange issue, the second .animate does not work when I use elem.data to get the values, whereas when I use mention the values specifically such as <code>"left" : "200px"</code> it seems to work.</p>
<p>I've checked the existence of <code>elem.data(... | javascript jquery | [3, 5] |
5,654,265 | 5,654,266 | can't get height set in variable | <p>I have this in the footer, so when all content loads. The alert gives the correct result but when I apply that same var to the height of the #'container doens't work.</p>
<pre><code>$(document).ready(function() {
var original_height = $("#container").height();
var newDistance = $(".detta .content").outerHei... | javascript jquery | [3, 5] |
924,976 | 924,977 | What would be java equivalent code for this C# code? | <p>I am not sure how to implement this C# code into java? Dev is class that has this code.</p>
<pre><code> public enum ConfigSetupByte0Bitmap
{
Config5VReg = 0x80,
ConfigPMux = 0x40,
}
public void SetVReg(bool val)
{
//vReg = val;
if (val)
{
conf... | c# java | [0, 1] |
1,107,374 | 1,107,375 | javascript: completing action only if a div is visible | <pre><code>$.swapImage.swapOut = function() {
if ($(this).find('.popup').is(':visible') !== true)
{
alert(ASDASD)
$.swapImage.swap(this, "sout");
}
</code></pre>
<p>I am trying to find if the div "popup+this" (example popup1) is visible before completing the action. Any i ideas?</p>
| javascript jquery | [3, 5] |
4,752,519 | 4,752,520 | Datetime according to Client location | <p>I have The Date time in UTC in database, now I want to show that time according to the User's Timezone or user's computer machine, like if user <strong>A</strong> has summit a question from <strong>India</strong> then User <strong>A</strong> can see the Submitted date according to <strong>India</strong>, if user <st... | c# javascript asp.net | [0, 3, 9] |
3,936,944 | 3,936,945 | How can I use jQuery to tally up the total count of the values in my columns? | <p>The Created column should have "7" for the Total row. The Redeemed column should have "6" for the total row. Sometimes, there will only be two months of rows or there could be ten rows. How can I total the values up and stick them in the last row of the table using jQuery?</p>
<pre><code><table cellspacing="0" r... | javascript jquery | [3, 5] |
4,021,820 | 4,021,821 | How to increment current time? | <p>I am getting date in the format as yyyy-mm-dd hh:mm aa. I need to increment this by one hour. How can I do this?</p>
<p>example code ..</p>
<p>thanks in advance..</p>
| java android | [1, 4] |
3,942,028 | 3,942,029 | "Saving" appended children? | <p>Is there a way to keep children added to the DOM via .appendChild() after a POST/GET without regenerating them in JavaScript? Right now I'm regenerating them with a few function calls written in a script tag using php.</p>
| php javascript | [2, 3] |
1,444,042 | 1,444,043 | android email validation | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/1819142/how-should-i-validate-an-e-mail-address-on-android">How should I validate an e-mail address on Android?</a> </p>
</blockquote>
<p>I used this:</p>
<pre><code>Pattern.matches("^(.+)@([^@]+[^.])$", email)... | java android | [1, 4] |
1,622,984 | 1,622,985 | Is there a way to check if pipelining is enabled in php or javascript? | <p>Is there a way to check if pipelining is enabled in php or javascript?
There are certain services in the browser you can access in about:config that speed up the browser without uncertainty so I wanna check if some of these are or even get the value aas a string if needed in php or javascript, is this possible?
If i... | php javascript | [2, 3] |
2,519,866 | 2,519,867 | JQuery : Submit event not firing on FireFox | <p>I can't understand why the submit event described below is not firing on FireFox and IE.
Ok for Chrome</p>
<blockquote>
<pre><code>$("#frame-right").on("submit", "form", function(event){
alert('Submit done')
});
</code></pre>
</blockquote>
<p>Can you help me?</p>
<p><strong>EDIT</strong></p>... | javascript jquery | [3, 5] |
1,377,255 | 1,377,256 | jQuery Trim String by Width | <p>I want to trim a string down to a particular pixel width so that it can properly fit in a container. It will be similar to substring, except that I am trimming based on pixel width as opposed to number of characters. is there a built in function for this?</p>
| javascript jquery | [3, 5] |
2,826,397 | 2,826,398 | Why can't I call a method with a parameter of the wrong type? | <p>I tried using:</p>
<pre><code>//decodes image and scales it to reduce memory consumption
private Bitmap decodeFile(File f)
{
try {
//Decode image size
BitmapFactory.Options o = new BitmapFactory.Options();
o.inJustDecodeBounds = true;
BitmapFactory.decodeStream(new FileInputStrea... | java android | [1, 4] |
4,590,978 | 4,590,979 | Checkbox Filter results | <p>I am working on something similar to <a href="http://jsfiddle.net/j08691/YEtgM/5/" rel="nofollow">this</a>.</p>
<p>What I want to add is that when '1 Bedroom' is selected, any items that have 1 Bedroom should display, even if none of the location checkboxes are selected.</p>
<p>Thanks.</p>
| javascript jquery | [3, 5] |
5,712,587 | 5,712,588 | Adding optgroup in select menu | <p>I have a jQuery code which will create <code>select</code> from a <code>ul li menu</code>. I want to add <code>optgroup</code> from parent menu, but don't know how to. Here is my code:</p>
<pre><code>// Create the dropdown base
jQuery("<select />").appendTo("#module-menu");
// Create default option "Go to...... | javascript jquery | [3, 5] |
1,706,447 | 1,706,448 | can someone explain this bit of code? | <p>can someone explain this bit of code? </p>
<pre><code><script type="text/javascript"><!--
$('#button-confirm').bind('click', function() {
$.ajax({
type: 'get',
url: 'index.php?route=hybrid_directory/confirm',
success: function() {
lo... | php javascript jquery | [2, 3, 5] |
4,576,457 | 4,576,458 | emulating LiveHTTPheader in server side script or javascript? | <p>I ran into this problem when scraping sites with heavy usage of javascript to obfuscate it's data.</p>
<p>For example,</p>
<p>"a href="javascript:void(0)" onClick="grabData(23)"> VIEW DETAILS </p>
<p>This href attribute, reveals no information about the actual URL. You'd have to manually look and examine the grab... | php jquery python | [2, 5, 7] |
5,555,224 | 5,555,225 | Going to webpage using a combination of ScriptEngine and JavaScript | <p>I'm trying to go to a webpage using Javascript and ScriptEngine from Java. I did something like this for testing:</p>
<pre><code> ScriptEngineManager factory = new ScriptEngineManager();
ScriptEngine engine = factory.getEngineByName("JavaScript");
StringWriter result = new StringWriter();
PrintWrite... | java javascript | [1, 3] |
4,953,903 | 4,953,904 | repeated AJAX call with http code return | <p>When a button is clicked I have a jquery AJAX call such as:</p>
<pre><code>$(".play").click(function(){
function doAjax(){
$.ajax({
url: 'blah.php',
success: function(data) {
if (data==250)
{
setTimeout(doAjax, 2000);
}
else... | php jquery | [2, 5] |
3,074,213 | 3,074,214 | Execute Python program using PHP | <p>Can I simply execute Python program using PHP like this? (in a browser)</p>
<pre><code>exec("python myProgram /Applications/MAMP/htdocs/somefile.xml");
</code></pre>
<p>or like this:</p>
<pre><code>exec("/path/to/python path/to/myProgram /Applications/MAMP/htdocs/somefile.xml");
</code></pre>
<p>Is any of this m... | php python | [2, 7] |
3,707,725 | 3,707,726 | How to manage phone settings like text to speech settings with your code | <p>i am developing a Text-to-Speech application. in my application i have settings which allows user to select language, manage the volume and speech rate..
i was able to manage the volume by using the <code>AudioManager</code>..
now my only problem is the language and speech rate, i dont have any idea how to manage t... | java android | [1, 4] |
5,836,563 | 5,836,564 | check if file exist in javascript? | <p>i have to display auto-generated images from a folder in html.</p>
<p>how can i check if file exist in javascript/jquery so i can do a for-loop and display them all. they will be numbered 1.jpg, 2.jpg and so on.</p>
| javascript jquery | [3, 5] |
3,392,825 | 3,392,826 | jQuery find() Issue | <p>I have the following Code</p>
<pre><code>var page = '<h1>Hello!</h1><p>FOO</p><span class="username">this is ur name</span><p>sample text</p>';
</code></pre>
<p>when I alert <code>$(page).html()</code> i get Hello! and when I wrap the contents of the page in a div an... | javascript jquery | [3, 5] |
3,345,684 | 3,345,685 | how to pass the strMessage (from codebehind to the script) to get the alert message | <p>how to pass the strMessage (from codebehind to the script) to get the alert message </p>
<p>i.e
if my strmessage from code behind is hi,</p>
<p>then i need</p>
<p>You Have Used already the message : hi</p>
<p>My code...</p>
<pre><code><script type="text/javascript">
var strFileName;
function al... | c# asp.net javascript | [0, 9, 3] |
2,536,228 | 2,536,229 | On JavaScript + asp.net | <p>In my asp.net page i have java script calendar,on which i want the selected date & then that date has to passed to the code behind's method. How should it be done???</p>
| asp.net javascript | [9, 3] |
5,582,825 | 5,582,826 | OnListItemClick issue | <p>The following class is a handler for my listview populated from a DB. It works fine, but now I wont to start a new activity when an item is clicked. I've extended from 'activity' to 'listactivity' and I believe I need to implement an 'OnListItemClick()' method. I have typed this into my class but I get an error and ... | java android | [1, 4] |
2,750,993 | 2,750,994 | Jquery in PHP echo | <p>This is my php with jquery code:</p>
<pre><code><?php
require('connection.php');
$query="select title,content from blogs";
echo '<html><head>';
echo '<link rel="stylesheet" href="blog.css" />';
echo '<script src="jquery.js"></script>';
//echo '<script src="blogs.js"></scrip... | php jquery | [2, 5] |
324,480 | 324,481 | Avoid browsing cache in browsers | <p>i want to avoid browsing cache while viewing a document. Please help me solve this issue by using java script or by any other method. </p>
<p>Regards,</p>
<p>Arun</p>
| javascript jquery asp.net | [3, 5, 9] |
343,779 | 343,780 | Guides to help learn C++ specifically from a C# background | <p>Is there a guide/reference anyone would recommend to pick up C++ <em>specifically</em> if you have strong experience of C#?</p>
<p>There are C++ guides, but a lot start with the absolute basics and I feel I've covered a lot with my C# learnings.</p>
<p>But the absolute basics may be a good thing and I may be barki... | c# c++ | [0, 6] |
4,428,041 | 4,428,042 | How to encrypt and save a password | <p>I am working on the security issue in .net application and I have been reported that My code is vulnerable and I see the issue is the way I store the password </p>
<p>For example:</p>
<pre><code><add key="RegxxxChannelPassword" value="test"/>
<add key="xxxRegistrationConnStr" value="xxxxxxxxxx;
</code></p... | c# asp.net | [0, 9] |
3,990,653 | 3,990,654 | How to get a table cell value from another site (same domain) using jquery/js? | <p>I am looking for a very similar solution described under Q: How to get a table cell value using jquery? but in case where table is actually on another website within same domain (no server side scripting is available).</p>
<p>I will appreaciate your help.</p>
| javascript jquery | [3, 5] |
836,203 | 836,204 | How to show the overflow:hidden content using jQuery / JS when a user clicks on an image? | <p>I am building a feed reader and on my first page I show a lot of post previews. A user has the option to click on the title and visit the source link.</p>
<p>In addition I would like to give them the option to click on a small icon, like a plus sign <code>+</code> to view the rest of the post preview in my page.</p... | javascript jquery | [3, 5] |
3,434,056 | 3,434,057 | Restrict attaching big files using Javascript | <p>How can we restrict users from attaching file bigger than specified size (to say 20MB).
I do have a check at the server side to show errors in case of big files received on the server but that happens too late.</p>
<p>I want to achieve something like gmail, where you get a quick alert specifying </p>
<p><code>"Thi... | java javascript | [1, 3] |
2,081,228 | 2,081,229 | Return C++ char to C# | <p>I have a C++ project in which I have to return some variables from C++ to C#.</p>
<p>These char variables are in the main program: </p>
<p>char test1[MAX_Q_LEN], test2[MAX_Q_LEN], test3[MAX_Q_LEN];</p>
<p>After I finish doing something with these variables in my C program, I have to return the values of these var... | c# c++ | [0, 6] |
5,000,525 | 5,000,526 | How to choose landing page after user logs in? | <p>I was wondering when a user logs in using the login control for ASP.NET, how do we choose where the user goes after? Do we configure this in the web.config file?</p>
| c# asp.net | [0, 9] |
2,155,088 | 2,155,089 | Need to click button twice to get search results | <p>I'm just starting with ASP.NET in college, and I'm stuck on this one:</p>
<pre><code><asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:Button ID="searchGmapButton" runat="server" Text="Search" OnClientClick="SetMap();" />
</code></pre>
<p>when I click t... | c# javascript asp.net | [0, 3, 9] |
1,394,592 | 1,394,593 | Question about @Override annotation | <p>Im new to android development. I would like to know why do we have to precede every overriden method with @Override annotation in android ?. In regular java this is not a requirement.</p>
<p>Please Help
Thanks </p>
| java android | [1, 4] |
571,466 | 571,467 | Prevent keypress whilst shift key is held | <p>I'm trying to prevent certain keys from being entered into an input box, but only if that particular key is pressed <strong>whilst the <kbd>shift</kbd> key is held</strong>:</p>
<pre><code>$('selector').keydown(function(e) {
console.log(e.shiftKey);
if (e.shiftKey && e.which == 51) {
e.preventDefaul... | javascript jquery | [3, 5] |
4,263,352 | 4,263,353 | Count how many times a specific value appears in a table | <p>I've an html table that contains a list of names within sentences, which are inside <code><td></code> elements (i.e. <code><td>Mike (Jeremy's father) used to play piano</td></code> or <code><td>The only one who speaks french is Desmond, but Mike speaks very well spanish</td></code>). I ... | javascript jquery | [3, 5] |
5,765,913 | 5,765,914 | Download .EXE file via JQuery | <p>How can I do a function, that allow do the download of a file in C: ?</p>
<p>For example, when the link is clicked, trigger a javascript function that will open the file or made download.</p>
<p>I'm trying this, </p>
<p>But it execute the program, I need that execute a download! </p>
<pre><code> if (url == "S... | javascript jquery | [3, 5] |
5,573,247 | 5,573,248 | How to properly echo PHP variables within JS script? | <p>I have this script that needs to print and it is within a PHP file as I need to pass it options because I am using the jQuery UI Tabs plugin.</p>
<p>Here is what I have:</p>
<pre><code><?php
$collapsible = "true";
$active = "2";
$options = array( 'collapsible' => $collapsible, 'active' => $active );
?&g... | php javascript jquery | [2, 3, 5] |
3,890,531 | 3,890,532 | how to make a floating menu being pin or unpin with the same onclick event | <p>I have a floating menu in my aspx page and now I want to be able to pin or unpin it with an on-click event,it move with scroll but sometimes I prefer that be fixed and not move, is there any way that i can do this?</p>
<p>this is my jquery for this floating menu:</p>
<pre><code> <script>
$float_speed ... | javascript jquery asp.net | [3, 5, 9] |
2,372,488 | 2,372,489 | Get handle of back click in java class | <p>In my android application my Home activity calls Async task which is placed in another java class.If the user press on back of device i would like to perform some action in async task called.How can i get access of user back click in my java class which doesnot extend Activity. </p>
<p>Please let me know if any su... | java android | [1, 4] |
1,579,529 | 1,579,530 | Using JavaScript to Modify a Page on the Fly based on <select> contents | <p>So, I've got a form and within that form is a <code><select></code>. Based on what that select is(what <code><option></code> is selected), I want the contents of the form to change on the fly(i.e. before the user clicks anything else).</p>
<p>For example, if the user selects the <code>Photo Upload</code... | php javascript | [2, 3] |
4,576,603 | 4,576,604 | Using jQuery to hide/show a Panel inside of a table | <p>I have an ASP.NET web form, with table. Inside the table, I have a radiobuttonlist control and below that I have a Panel. Inside the panel are several tags with other web controls. </p>
<p>What I want to do is have the panel display or hide based on the selection in the radiobuttonlist. In my jQuery I have this... | jquery asp.net | [5, 9] |
2,625,626 | 2,625,627 | Restore android app stack from background | <p>Lets say I launch my app from the home screen, navigate through some activities, then I press the home key and do something else in the Gmail app. </p>
<p>After i'm done checking my mail,I press the home key again to leave the Gmail app and click my app's icon at the home screen again to return to it.</p>
<p>When ... | java android | [1, 4] |
3,291,285 | 3,291,286 | FormView Datakey Value | <p>I have two web pages- the first is a <code>GridView</code> and the second is a <code>FormView</code>. I have been able to retrieve the <code>DataKey</code> value from the <code>GridView</code> and pass it to the <code>FormView</code> page. Now I need to use that key value for my selection query. How do I assign t... | c# asp.net | [0, 9] |
951,358 | 951,359 | Selector performance to get val() from nested elements | <p>Is there a better more performance way to write this jQuery selector using either jQuery or JavaScript. I'm Mainly looking at selector speed. <a href="http://jsperf.com" rel="nofollow">http://jsperf.com</a> example is a plus. </p>
<pre><code>$('#formEdit div input.t:visible').val();
<div id="formEdit">
&l... | javascript jquery | [3, 5] |
4,177,168 | 4,177,169 | Which quotation marks to use and when? | <p>for example here in documentation <a href="http://api.jquery.com/attribute-contains-selector/" rel="nofollow">http://api.jquery.com/attribute-contains-selector/</a> it says</p>
<pre><code>$('input[name*="man"]')
</code></pre>
<p>I would write instead</p>
<pre><code>$("input[name*='man']")
</code></pre>
<p>is the... | javascript jquery | [3, 5] |
2,681,464 | 2,681,465 | jquery :selected not working as expected | <p>I have the following snippet of a HTML select box:</p>
<pre><code><select id="Obj_cboscreen" class="menubarselect" name="page">
<option att="1stOption" value="0" selected="">abc</option>
<option att="2ndOption" value="1">def</option>
</code></pre>
<p>When I run the following pieces of... | javascript jquery | [3, 5] |
1,365,561 | 1,365,562 | calling functions of the application via javascript from embeded browser? | <p>I have an embeded browser in C# application which I am displaying static webpages in. Can I call a function of the app by pressing a button in a webpage inside of the embeded browser via javascript?</p>
| c# javascript | [0, 3] |
793,744 | 793,745 | android email validation | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/1819142/how-should-i-validate-an-e-mail-address-on-android">How should I validate an e-mail address on Android?</a> </p>
</blockquote>
<p>I used this:</p>
<pre><code>Pattern.matches("^(.+)@([^@]+[^.])$", email)... | java android | [1, 4] |
5,014,394 | 5,014,395 | Can I increase the scope of 'this' in the following example? | <p>In using a jquery callback, I found that 'this' isn't defined anymore. I've found a work around, which is to set 'this' to another variable. For example, like so:</p>
<pre><code>function handler(DATA) {
var myThis = this;
$.post(
'file.php',
DATA,
function() {
... | javascript jquery | [3, 5] |
1,377,646 | 1,377,647 | Weird Behavior of Jquery Children | <p>The first children call alerts the id of the form's direct children which is ul's id : "mainId". As far as I understand then this is the expected behavior of children but the second call subscribes the change event of both checkboxes which are not the direct children of the form. How come?</p>
<pre><code><!DOCTY... | javascript jquery | [3, 5] |
837,413 | 837,414 | Making browsers ignore the URL hash when the back button is clicked | <p>For example, if an user is on <a href="http://example.com" rel="nofollow">http://example.com</a>, then the user goes to <a href="http://example.com#comments" rel="nofollow">http://example.com#comments</a>. If the user clicks "back" on his browser, how can I make him "ignore" <a href="http://example.com" rel="nofollo... | javascript jquery | [3, 5] |
887,089 | 887,090 | Jquery to stylize only certain word from para | <p>I want to stylize only certain word from my dynamic div</p>
<p>say,</p>
<pre><code><div id="info">{$info}</div> prints
<p>here you can get info about somnething. if you want more info about something then click here....</p>
</code></pre>
<p>I only want stylize the word <strong>'info'</str... | javascript jquery | [3, 5] |
3,700,858 | 3,700,859 | Saving a File on Android | <p>I'm sure this has been asked hundreds of times, but I just can't point myself to the right direction.</p>
<p>I'm working on an app that after the first startup, generates an instance of a class that takes and saves user input. After that first startup, on every consecutive startup, I want to read that same instance... | java android | [1, 4] |
5,225,763 | 5,225,764 | Access PHP variable in JavaScript | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/1808108/how-to-access-php-variables-in-javascript-or-jquery-rather-than-php-echo-vari">How to access PHP variables in JavaScript or jQuery rather than <?php echo $variable ?></a> </p>
</blockquote>
<p>Is t... | php javascript | [2, 3] |
2,178,779 | 2,178,780 | c# add a DataRow to a table in a separate function | <p>I need to add some "total rows" to a table. The code I am currently using for the sub totals is:</p>
<pre><code>DataRow shRow = ds.Tables[0].NewRow();
shRow["a"] = "SubHead";
shRow["b"] = "Wheel Subs";
shRow["c"] = totalWheels;
</code></pre>
<p>Since I need totals and sub totals and sub sub totals I have to cut an... | c# asp.net | [0, 9] |
4,499,562 | 4,499,563 | calling php with jquery file using jquery code | <p>Edited:
I am trying to follow this <a href="http://web.enavu.com/demos/paginate/" rel="nofollow">pagination tutorial</a>. I already made it work. However when I'm trying to load it through calling the php file(pagination), the jquery in the tutorial is not working. Do you have any idea why?</p>
| php javascript jquery | [2, 3, 5] |
690,993 | 690,994 | Is it safe to store confidential settings in .cs file instead Web.config? | <p>I want to store some confidential values (such as database connection strings, some passwords) in a Setting.cs (and there in a static class) file.</p>
<p>Is it 100% sure, that IIS 7 is not serving this file in plain text?
Or are there any known vulnerabilities? </p>
| c# asp.net | [0, 9] |
675,361 | 675,362 | how I can read text from html textarea in asp.net page? | <p>I set html textarea in asp.net page with out runat="server" and I need set the text in string variable by C# in code behind </p>
| c# asp.net | [0, 9] |
4,728,028 | 4,728,029 | Reading a text file with jQuery | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/1981815/jquery-read-a-text-file">jquery - Read a text file?</a> </p>
</blockquote>
<p>I want to read a local text file, using jQuery. So I try this:</p>
<pre><code>$.get('file_to_read.txt', function(data) {
... | javascript jquery | [3, 5] |
1,693,551 | 1,693,552 | How to assign text to variable after constant time through form? | <p>I need to assign a string value to a variable through a form, 10 seconds after, the form is processed.</p>
<p>Everything works, but how to make the form return when pressing submit?</p>
<p>Here is my code:</p>
<pre><code><h:body>
<script type="text/javascript">
setInterval(function () {
$(... | java jquery | [1, 5] |
41,941 | 41,942 | jquery datepicker onselect not working | <p>jquery function:</p>
<pre><code>$(function() {
$("#iDate").datepicker({
dateFormat: 'dd MM yy',
beforeShowDay: unavailable
onSelect: function (dateText, inst) {
$('#frmDate').submit();
}
});
});
</code></pre>
<p>html:</p>
<pre><code> <form id="frmDate" m... | javascript jquery | [3, 5] |
4,551,673 | 4,551,674 | Android Motionevent overlay | <p>Hello so im making a android app and it uses geolocation/Google maps, there are no buttons on the map/the app except a tab host. so I need it so if a user taps for 1500 ms then a dialog comes up, so far nothing happens but I get no errors here's my code thanks in advance</p>
<pre><code> class Touchy extends Overl... | java android | [1, 4] |
994,445 | 994,446 | How to develop java only parts in android | <p>I want to develop an Android App. It consists of three parts:</p>
<ul>
<li>client (the app)</li>
<li>server (java-only)</li>
<li>domain (used by client AND server)</li>
</ul>
<p>How can I develop client and server in one Eclipse project? There must be a way to set the correct java-only environment (jre7) for a pac... | java android | [1, 4] |
771,464 | 771,465 | Android static vs nonstatic issue | <p>I've been trying to call the following:</p>
<pre><code>public static void startfile() {
Log.i("File Works", "working2 ");
try {
FileOutputStream fos = openFileOutput("sdcard/sdtext.txt", MODE_WORLD_WRITEABLE);
} catch (FileNotFoundException e) {
// TODO Auto-generated catch block
... | java android | [1, 4] |
3,727,683 | 3,727,684 | what is the meaning of the word "this" in Jquery script | <p>Hello I'm a newcomer in JavaScript and JQuery language. I started to see some examples of JQuery script.</p>
<p>i have the following code segment:</p>
<pre><code> <script type="text/javascript">
$(document).ready(function(){
$("p").click(function(){
$(this).hide();
});
});
</script>... | javascript jquery | [3, 5] |
3,868,531 | 3,868,532 | Jquery Ajax Problem | <p><strong>Hi all;</strong></p>
<pre><code>var v_name = null;
$.ajax({
type: "GET",
url: "Testpage.aspx",
data: "name=test",
dataType: "html",
success: function(mydata) {
$.data(document.body, 'v_name', mydata);
}
});
v_name = $.data(document.body, 'OutputGrid');
alert(v_n... | javascript jquery | [3, 5] |
3,311,895 | 3,311,896 | Generate JS source code from a C++ AST | <p>Is there a library allowing to generate a js AST from a C++ API, then craft a source code from this AST ?</p>
<p>Something kinda like this :</p>
<pre><code>Expression * expression1 = new Number(42);
Expression * expression2 = new Number(69);
Expression * result = new Addition(expression1, expression2);
Statement *... | javascript c++ | [3, 6] |
5,023,620 | 5,023,621 | Get mouse location during mouse down? | <p>How can I continuously get the position of the mouse whilst its button is being held down?</p>
<p>I know I can do:</p>
<pre><code><element onclick="functionName(event)"></element>
<script>
function functionName(e){
e.pageX
e.pageY
//do stuff
}
</script>
</code></pre>
<p>and I know you can ... | javascript jquery | [3, 5] |
232,074 | 232,075 | Add multiple textbox .net | <p>I begin .net and to start I will create dynamically multiple textbox.</p>
<p>I have write this :</p>
<pre><code><%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication1._Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.o... | c# asp.net | [0, 9] |
4,800,558 | 4,800,559 | GIF File InputStream | <p>I want to get a gif file input stream. Like when we use getAssert().open(file) to get input stream. But unfortunately this method only can use in activity. How can I do it?</p>
<p>This is my code:</p>
<pre><code>protected void onDraw(Canvas canvas) {
InputStream inputStream = null;
try {
inputStrea... | java android | [1, 4] |
1,685,462 | 1,685,463 | HTTP POST via JQuery | <p>i am working on API, The API supports both HTTPS POST and HTTPS GET methods. </p>
<p>Moreover, it is a security risk to expose Web Registration credentials on a public web site. Instead, use a background HTTP POST (server side) to initiate the web registration. </p>
<p>how can i http post (aspx) via jquery?</p>
| jquery asp.net | [5, 9] |
2,535,620 | 2,535,621 | Correctly entered text changes image? | <p>I am trying to achieve an effect where the correctly entered text will result in the image changing, letting the user know he typed it in correctly. The only problem I am having is if the person types the first two characters correctly, even if the third is incorrect it still stays changed.</p>
<p>Example: Take t... | javascript jquery | [3, 5] |
2,490,687 | 2,490,688 | randomize display order for controls in asp.net | <p>I would like to know how I can randomize the order in which some controls are displayed.
Basically, I have 5 hyperlinks, and I want on each load the order in which they are displayed to be randomized.
Which way I can accomplish that?
Thanks, Laziale</p>
| c# asp.net | [0, 9] |
1,355,509 | 1,355,510 | Select (expand) a dropmenu when clicking on another element | <p>I have a div containing a select menu and another element (<em>.dropArrow</em>).</p>
<p>What I would like to do is select the menu when you click on .dropArrow.</p>
<p>Here's the jquery I've tried so far but with no success...</p>
<pre><code>$(".dropArrow").live('click', function() {
$(this).siblings("select"... | javascript jquery | [3, 5] |
5,114,286 | 5,114,287 | Prepopulating an email message using javascript | <p>I have an application which displays a list of users , When clicking on the email button I want the email client to open up with a prepopulated message ( I make the message using javascript) , I am not sure about how to prepopulate the message </p>
<p>Any help would be appreciated </p>
<p>I would post snippets , b... | javascript jquery | [3, 5] |
638,523 | 638,524 | drop down default selection causing search to begin | <p>We have a search page with several textboxes that user can enter data in to search by. There are date textboxes where a date range can be entered. There is a drop down where you select which date field you want to filter on.</p>
<p>the date range textboxes are not enabled by default. Only if you select a date fi... | c# asp.net | [0, 9] |
1,869,901 | 1,869,902 | How to reference a field within the current form only? -- JQuery beginner | <p>I've tried all variations of the following:</p>
<pre><code>$(this).("input[name='email']").val();
</code></pre>
| javascript jquery | [3, 5] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.