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 |
|---|---|---|---|---|---|
1,262,991 | 1,262,992 | How might I block an IP address using JavaScript or jQuery? | <p>I use the <a href="http://www.computersolutions.Spruz.com" rel="nofollow">www.Spruz.com</a> network for my website. I am not looking to use PHP or SSL blocking methods being that I can't as is. I can't seem to find JavaScript or jQuery code to possibly hide a DIV element or redirect without having to use PHP or SSL ... | javascript jquery | [3, 5] |
1,810,962 | 1,810,963 | Display an image in a <div>, jQuery | <p>The value of ig is being transfered fine, but I need to put this image into an image, please tell me what I am doing wrong.</p>
<pre><code>var ig = '<img src='+$(this).attr('src')+' style="z-index:1">';
$('#big').val(this)
</code></pre>
<p>Thanks
Jean</p>
| php jquery | [2, 5] |
4,368,768 | 4,368,769 | C++ or Java for android? | <p>I am thinking about picking up android development in my free time. I see that development is possible in Java and C++ but the latter is limited. </p>
<p>I am much more comfortable with C++.</p>
<p>So my question is what limitations exist with C++ on Android? Will I be able to develop full apps with it, or will... | java c++ android | [1, 6, 4] |
1,710,338 | 1,710,339 | replacing div content with a click using jquery | <p>I see this question asked a lot in the related questions, but my need seems very simple compared to those examples, and sadly I'm just still too new at js to know what to remove...so at the risk of being THAT GUY, I'm going to ask my question...</p>
<p>I'm trying to switch out the div contents in a box depending on... | javascript jquery | [3, 5] |
192,923 | 192,924 | Keypress event for Japanese text | <pre><code>$(document).ready(function () {
$("#id").keydown(function () {
});
})
</code></pre>
<p>This code perfectly works for everything(number,alphabet,symbol etc) except Japanese text. On key press it doesn't pass through this event. Does anybody know any solution?</p>
| javascript jquery | [3, 5] |
2,159,276 | 2,159,277 | Force page to reload from server instead of load the cached version | <p>I have webpage A. The user clicks on a form to submit data, and it takes him to webpage B. When he clicks the back button, I need webpage A to be refreshed from the server, rather that loaded from cache. I have this: <code><meta http-equiv="expires" content="0"></code> but it doesnt seem to work. I have also t... | php javascript jquery | [2, 3, 5] |
1,735,096 | 1,735,097 | check/uncheck tick checkboxes but ignore any disabled ones | <p>I'm using the following Jquery to check/uncheck checkboxes but some of the boxes in are disabled so I don't need to be checked. </p>
<p>Is there a way I can tell the script to ignore disabled checkboxes?</p>
<pre><code>$('.uncheck').click(function () {
if ($(this).is(':checked')) {
$('.customers input:... | javascript jquery | [3, 5] |
3,366,695 | 3,366,696 | Passing php variable to javascript | <p>I have a variable which stores the path of the file. I am using a pop up window to display that image. I am using following script</p>
<pre><code>function newPopup(url) {
popupWindow = window.open(
url,'popUpWindow','height=700,width=800,left=10,top=10,resizable=yes,scrollbars=no,toolbar=no,menubar=no,l... | php javascript | [2, 3] |
1,291,555 | 1,291,556 | JavaScript Security Concerns? | <p>I'm working on an eCommerce application that's using quite a bit of JavaScript and jQuery. Everything is checked server-side before anything is processed, but there has been a lot of news lately regarding web-based break-ins via JavaScript. I was just wondering what type of things I can do to reduce this threat an... | javascript jquery | [3, 5] |
454,092 | 454,093 | Using Python to grab output from a C++ program (thru cout) | <p>I have the following code in Python</p>
<pre><code>import subprocess
import time
info = subprocess.STARTUPINFO()
info.dwFlags |= subprocess.STARTF_USESHOWWINDOW
info.wShowWindow = subprocess.SW_HIDE
t1 = time.clock()
h = subprocess.Popen([r"C:\Users\MyName\Desktop\test.exe"], startupinfo=info)
h.communicate()
t2... | c++ python | [6, 7] |
712,202 | 712,203 | What is Control's DesignMode property and how to use it? | <p><br>
what is DesignMode property? When it is useful? I don't understand it from msdn definition <a href="http://msdn.microsoft.com/en-us/library/system.web.ui.control.designmode.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/system.web.ui.control.designmode.aspx</a></p>
<p>Some example? Thanks for ans... | c# asp.net | [0, 9] |
2,617,123 | 2,617,124 | Generating one location while the phone is not moving | <p>I would like to know <strong>how can I generate one location using the gps or network providers while the phone is not moving more then something like 10 meters</strong> which means you at home, or in the same place.</p>
<p>The minTime parameter doesn't really matters I guess (speaking about the requestLocationUpda... | java android | [1, 4] |
1,593,058 | 1,593,059 | Can anyone explain the meaning and usage of POJO or POCO | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/3326319/what-does-the-term-plain-old-java-objectpojo-exactly-mean">What does the term Plain Old Java Object(POJO) exactly mean?</a> </p>
</blockquote>
<p>I know those are recent concepts proposed by Mark Fowler.... | c# java | [0, 1] |
471,737 | 471,738 | PHP list() equivalent in Python | <p>Is there any equivalent to the PHP list() function in python? For example:</p>
<p>PHP:</p>
<pre><code>list($first, $second, $third) = $myIndexArray;
echo "First: $first, Second: $second";
</code></pre>
| php python | [2, 7] |
1,792,213 | 1,792,214 | Is there a plugin to validate jQuery code? | <p>Is there a jQuery plugin which can check our code before launch it ?</p>
<p>Example:</p>
<p>I write this :</p>
<pre><code>jQuery('.myclass')css('color','red');
</code></pre>
<p>The plugin will show me some message like 'parse error line ...' because I forgot a period</p>
<p>Or:</p>
<pre><code>function test() {... | javascript jquery | [3, 5] |
5,879,547 | 5,879,548 | How to detect if a JS variable is undefined? | <pre><code>// mystring contains dynamic text. Sometimes can be
// null
var a = mystring.split(" ");
var proc = a[0] + " " + a[1];
</code></pre>
<p>If <code>a</code> does not contain text, after <code>split</code> proc is undefined. If I try to assing its value to a textbox the result is "undefined":</p>
<pre><code>my... | javascript jquery | [3, 5] |
3,764,690 | 3,764,691 | How to toggle between list using buttons | <p>Hi when I click a option in the list a chart is generated then come back to the list and then click the second option to view the next one but i need to view the charts like images by giving next </p>
<p>Thanks in advance</p>
<p>Cheers</p>
<p>DeanJones.M</p>
| java android | [1, 4] |
3,997,519 | 3,997,520 | Clone is not working in Internet Explorer | <p>I am trying to use jQuery's <code>clone</code> method for a project, but it doesn't seem to be working in any IE version. Its working fine in Chrome though. But when ever it comes to IE, it just wont work. I am looking at some very similar issues but I cant figure out how to get around this.</p>
<p>This is what I h... | javascript jquery | [3, 5] |
603,497 | 603,498 | How to create setup for wep application in asp.net | <p>How will i create setup for web application.
Please help me and tell me step by step</p>
<p>thankx</p>
| c# asp.net | [0, 9] |
3,604,215 | 3,604,216 | jQuery to check empty string | <pre><code>var id = "<?php echo $val->id; ?>";
var myRadio = $('input[name=<?php echo "mala".$val->id; ?>]').val();
if (myRadio.val.length > 0){
$("#anketa").load('http://www.svastara.rs/anketa/anketa_m1_data',
{ answer: myRadio, id: id });
}
});
</code></pre>
<p>Why this <code>if... | javascript jquery | [3, 5] |
3,987,367 | 3,987,368 | $(document).on('click', selector, function() ) combined with :not | <p>I've got several list items, when I click on the item I want the browser to redirect to ".title > a" link (href). But I don't want any event on the "notThis" selector.</p>
<p>see the example
<a href="http://jsfiddle.net/VTGwV/29/" rel="nofollow">http://jsfiddle.net/VTGwV/29/</a></p>
<pre><code><div class="item... | javascript jquery | [3, 5] |
3,957,053 | 3,957,054 | how to darw the image faster in canvas | <p>I am capturing mobile snapshot(android) through monkeyrunner and with the help of some python script(i.e. for socket connection),i made it to display in an html page.but there is some time delay between the image i saw on my browser and that one on the android device.how can i synchronise these things so that the mo... | javascript python | [3, 7] |
3,408,336 | 3,408,337 | ASP.NET: Creating versions of the same website | <p>My new assignment at work is to create a second version of our existing web application. Currently, our application supports only full time brokers, but now we our launching a second site specifically for part time brokers.</p>
<p>The new site will be almost identical to our existing site with the following except... | c# asp.net | [0, 9] |
2,089,430 | 2,089,431 | setInterval jumps when move between browser tabs | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/5927284/how-can-i-make-setinterval-also-work-when-a-tab-is-inactive-in-chrome">How can I make setInterval also work when a tab is inactive in Chrome?</a> </p>
</blockquote>
<p><a href="http://www.datingjapan.co"... | javascript jquery | [3, 5] |
2,764,747 | 2,764,748 | Cancel Post Request after posting a form to an IFrame | <p>I want to know if it's possible to cancel a post after posting a form to an IFrame.</p>
<pre><code>$form = jQuery("<form target='iframetarget' method=post><files...></form>");
$form.submit();
</code></pre>
<p>I need <code>$form.cancelPost();</code> or something like that to cancel that request.<... | javascript jquery | [3, 5] |
5,152,914 | 5,152,915 | How to get the order of dynamically created DropDownLists | <p>I've created some drop down lists using JavaScript, ASP.NET. </p>
<p>A user can add as many drop down lists as he wants by clicking a "+" button and removing them by clicking a "-" button.</p>
<p>If it's hard to understand what I mean pls see " <a href="http://stackoverflow.com/questions/10101262/how-to-implement-... | c# javascript asp.net | [0, 3, 9] |
607,122 | 607,123 | jQuery Toggle Divs | <p>I'm having a little problem implementing some jQuery into a page I am doing.</p>
<p>I've got about half way to making it do what I want, but I can't get my head around the last part. Though I've used snippets of jQuery for a while I'm pretty new when it comes to writing my own code.</p>
<p>Basically I want 4 Divs ... | javascript jquery | [3, 5] |
438,750 | 438,751 | redirect to a different page | <p>I need some help here:</p>
<p>I am writing code to redirect a user to a different page and execute some code, if the user closes the window while he is working on something:</p>
<pre><code><script type="text/javascript">
window.onbeforeunload = function() {
location.assign('http://www.somesite.... | javascript jquery | [3, 5] |
2,504,387 | 2,504,388 | Where is file after create in android, where it is? | <p>I create a file in android emulator, after that I try it on phone but I don't have the same dir. Where can I find my file on PHONE?</p>
<pre><code>public void costam (String text)
{
try {
FileOutputStream fOut = context.openFileOutput("samplefile.txt",
... | java android | [1, 4] |
5,673,051 | 5,673,052 | break point is not hitting while debugging | <blockquote>
<p><strong>Possible exact duplicates:</strong></p>
<p><a href="http://stackoverflow.com/questions/1517311/reason-for-vs-net-current-breakpoint-will-not-be-hit-warning">Reason for VS.NET ‘current breakpoint will not be hit’ warning?</a><br>
<a href="http://stackoverflow.com/questions/1233188/why-do... | c# asp.net | [0, 9] |
2,116,572 | 2,116,573 | how to cache data repository in asp.net? | <p>I just wonder how to cache my data repository I mean there are some data repositories in my project they are so useful and I have to call their method several times so I need some tools or maybe patterns to cache them on the client to avoid get extra and duplicate queries.</p>
<pre><code><asp:DropDownList ID="Dr... | c# asp.net | [0, 9] |
1,678,623 | 1,678,624 | JQuery nested this references | <p>I have some JQuery Code as follows:</p>
<pre><code>$("#sh-zone-button-cart-menu").live("click", function(event)
{
event.preventDefault();
$("#sh-zone-cart-menu").toggle(0, function(){
if($(this).is(":visible")){
$(this).siblings(".sh-zone-button-link-menu-content").hide();
$(... | javascript jquery | [3, 5] |
2,809,756 | 2,809,757 | When browser close.How to run sqlk query when browser close in php | <p>I have some query regarding browser close issue.</p>
<p>I am using xcart.When user have logged in website and Any situation browser will be closed any so session will be destroyed..and also run the sql query for user status will be offline.</p>
<p>Regards,
Manish Patel</p>
| php jquery | [2, 5] |
1,881,732 | 1,881,733 | Create an app where I can physically write things out with my finger | <p>I am trying to create an app where I can physically write things out with my finger and erase them? Something like a big sticky note that you can just write on?</p>
<p>How Would do this, i am really new to programming so i would really appreciate your help.</p>
<p>My question is similar to a question asked here, s... | java android | [1, 4] |
5,966,925 | 5,966,926 | php language converter based on world map countries | <p>php language converter based on world map countries</p>
<p><strong>For Example:</strong></p>
<p>when i click on France Country</p>
<pre><code>All Website Content Will Convert Into French Language
</code></pre>
<p>when i click on USA Country</p>
<pre><code>All Website Content Will Convert Into English Language
... | php javascript jquery | [2, 3, 5] |
2,649,467 | 2,649,468 | select items in a checkbox list based on their text | <p>i have a check box list in my asp.net page ...i need to select the check box based on their text...am getting these string values form the database and storing it in a array.....the below code works fine for a single text ..What should i do in case of array..how should i pass the array values in the if loop</p>
<pr... | c# asp.net | [0, 9] |
445,688 | 445,689 | Cannot clear textbox after keypress event | <p>I know this questions is all over the place, but this is driving me crazy!!!</p>
<p>Here is my code:</p>
<pre><code>$(document).ready(function () {
$('#MainContent_LoginUser_Password').keypress(function (e) {
noCapsLock($('#MainContent_LoginUser_Password'), e, "Please turn off Caps Lock");
... | javascript jquery | [3, 5] |
3,630,609 | 3,630,610 | Jetbrains PHPStorm 5.0.4 tells me I have a Duplicated jQuery Selector | <p>This is the piece of jQuery I wrote,</p>
<pre><code>$('#editUser').click(function(){
if ($(".selectedTR")[0]){
if($('.form-actions').is(':visible')){
$('.form-actions').slideUp('slow',function(){
$('.form-actions > h3').text("Edit");
}).css(... | javascript jquery | [3, 5] |
1,846,991 | 1,846,992 | Page and control attributes not working when using masterpages | <p>I'm having a lot of problems with various ASP.NET control and page attributes e.g.</p>
<p><code>maintainScrollPositionOnPostBack</code> will not work in any shape or form, in markup, code-behind o web-config:</p>
<pre><code>Page.MaintainScrollPositionOnPostBack = true;
<pages maintainScrollPositionOnPostBack="... | c# asp.net | [0, 9] |
3,739,313 | 3,739,314 | Make top row of GridView non-scrollable | <p>I have a GridView of 9 rows of which the first one is sort of "header" row.</p>
<p>As there are 8 more rows they flow beyond the end of screen and need to be scrolled down to.
However this scrolling also causes the first row to go "off-screen".</p>
<p>Was wondering if there is any way I can prevent the first row a... | java android | [1, 4] |
1,105,248 | 1,105,249 | Toast Notification From FileObserver Class | <p>I have an issue similar to <a href="http://stackoverflow.com/questions/5963438/toast-from-fileobserver">Toast from FileObserver</a>. However, I do not understand how to properly implement the Handler.</p>
<p>Currently, I have a <code>FileObserver</code>-class and I am passing it context and a handler (context come... | java android | [1, 4] |
549,510 | 549,511 | Simple JQuery click-and-show doesn't work | <p>I'm using this simple bit of JQuery to show/hide a div by clicking on the link, I've used the same code a few times before and it worked perfectly but now all of a sudden it refuses to work.</p>
<p>JQuery is properly included and the page doesn't give a Javascript error (or any other error for that matter).</p>
<p... | javascript jquery | [3, 5] |
2,769,790 | 2,769,791 | Localized Alert MSG in asp.net | <p>I have a Localization Resources table that has resourceType, cultureCode, resourceKey, resourceValue columns.</p>
<pre><code>resourceType | cultureCode | resourceKey | resourceValue
Alert | en-US | Hello | Hello
Alert | es-ES | Hello | Hola
</code></pre>
<p>I need to create an... | javascript asp.net | [3, 9] |
2,262,036 | 2,262,037 | Calculate element height the way slideDown() does | <p>Have you noticed that by using jquery's slideDown(), even on elements with dynamic content, you always get the perfect height of the effected element. Which is, for me at least, impossible to do by simply animating the css height value. Mostly because there is no way for me to know how did the height of an element (... | javascript jquery | [3, 5] |
145,843 | 145,844 | Good tutorials/books for Java for the programmer with python background | <p>Lately I have come to realize that I should know some of Java for programming ( I want to program in android). When I read all the tutorials and some free e-books, they either assume no programming experience or assume the reader to come from C/C++ background. Since I am used to python and MATLAB for a long time, th... | java python | [1, 7] |
1,108,704 | 1,108,705 | Find unique attribute update children value with jQuery | <p>I would like to update the following:</p>
<pre><code><a data-fb="4dfsdgdsgsdfgsdfgcf08" class="fb-like" href="#">
<span class="like-icon">Likes:</span> 10</a>
</code></pre>
<p>I wish to update the value '10' with a result returned from a web service, I have the result stored in a variable c... | javascript jquery | [3, 5] |
1,809,719 | 1,809,720 | php jquery count down timer script | <p>i have one count down timer using <a href="http://keith-wood.name/countdown.html" rel="nofollow">http://keith-wood.name/countdown.html</a></p>
<pre><code>var austDay = new Date();
austDay = new Date(austDay.getFullYear() + 1, 1 - 1, 26);
$('#defaultCountdown').countdown({until: austDay,format: 'HMS'});
</code></... | php jquery | [2, 5] |
5,357,756 | 5,357,757 | Invoke javascript function from string | <p>I have the following code in my javascript module, however this requires me to make the functions visible to the outside world.</p>
<pre><code>var mymodule = function() {
var self = null,
init = function () {
self = this;
$('.actionButton').click(function () {
var workl... | javascript jquery | [3, 5] |
2,336,458 | 2,336,459 | asp:RadioButtonList add RadioButton to new line | <p>The problem is as:
I have horizontal asp:RadioButtonList, with 3 buttons witch i add programaticly C# code
The thing is that the third button must be on second line. How can i do it besides creating a new asp:RadioButtonList?
I have tried adding br and \r\n to caption but that dose not help me.</p>
<pre><code>Lis... | c# asp.net | [0, 9] |
2,659,930 | 2,659,931 | .aspx page - using document.getElementById in pageLoad() | <p>In writing a .net web application using AJax, should I <em>always</em> use global variables to store controls within the pageLoad() function?</p>
<p><strong>Example -</strong></p>
<pre><code> var x;
var y;
function pageLoad() {
x = document.getElementById("<%= cboX.ClientID %>");
... | javascript asp.net | [3, 9] |
2,175,118 | 2,175,119 | Passing a PHP variable to another page via jQuery | <p>EDIT: I can put the question in a shorter way that perhaps focuses more closely on the real problem:</p>
<p>Is there a way to keep PHP Sockets alive over multiple pages? That is, can I store the connection (the socket object) in any way?</p>
<p>I want to save a socket connection between two PHP pages where the oth... | php jquery | [2, 5] |
4,295,422 | 4,295,423 | How do I select elements based on all their content in jQuery? | <p>I have a series of <code><div/></code>'s as follows:</p>
<pre><code><div>.co.uk</div>
<div>.com</div>
<div>.gb.com</div>
<div>.uk.com</div>
<div>.net</div>
</code></pre>
<p>How do I select just the divs containing <code>.co.uk</code>, <code>... | javascript jquery | [3, 5] |
3,217,192 | 3,217,193 | Showing confirmation box not working | <p>I am having issues making this javascript box come up, I think i am doing it wrong but cant figure out what it is. Please excuse have not worked with the Page.ClientScript much before. Basically, I want to display this box and if they click OK it will continue processing my logic otherwise if they click cancel it wi... | c# asp.net | [0, 9] |
1,614,496 | 1,614,497 | Truncate a string with the remaining space | <p>I have a list where each li element contains two div inside one div "main" :</p>
<ul>
<li><p>div "main" has a fixed width (saying 200px),</p></li>
<li><p>div "part1" has a variable width (that of text and image that contains)</p></li>
</ul>
<p>=> I wish text inside div "part2" had as width that of div "main" less ... | javascript jquery | [3, 5] |
2,885,827 | 2,885,828 | How to tell if a drop down has options to select? | <p>How to tell if a drop down has options to select?</p>
| javascript jquery | [3, 5] |
105,330 | 105,331 | Java c++ Reference question | <p>In c++ we use & to represent pass by reference. Since objects are always passed by reference you do not need to use this &? Or does it not matter?</p>
<p>How do java and c++ differ in pass by value and reference. Everything in java I thought is pass by reference but it is pass by value? Why is this? So is i... | java c++ | [1, 6] |
1,920,496 | 1,920,497 | if () not working | <p>This is my code: </p>
<pre><code>Log.d("inf", loader);
if (loader == "Klasse"){
Log.d("inf", "Klasse yes");
OPTS = new String[] { //Something };
} else {
Log.d("inf", "Klasse no");
OPTS = new String[] { //Something };
}
</code></pre>
<p>In the first Line, the Output is exactly "Klasse" but the next... | java android | [1, 4] |
5,457,826 | 5,457,827 | Get changes to multiselect listbox selected items | <p>I have a listbox databound if not postback and items selected from a database (if applicable). If i select new items in the listbox and postback, my foreach logic always sees only the original selection, not the changes. Been banging my head trolling google for the answer. Here's the code behind:</p>
<pre><code>... | c# asp.net | [0, 9] |
642,105 | 642,106 | Converting double to string | <p>I am not sure it is me or what but I am having a problem converting a double to string.</p>
<p>here is my code:</p>
<pre><code>double total = 44;
String total2 = Double.toString(total);
</code></pre>
<p>Am i doing something wrong or am i missing a step here.</p>
<p>I get error <code>NumberFormatException</code> ... | java android | [1, 4] |
5,152,279 | 5,152,280 | Simple javascript issue | <p>It turns out this does exactly what I want it to do. But HTML does not replace the function call with a value, which is why I got confused. The correct value IS passed into the array though. I am leaving this question here in case others have the same issue.</p>
<p>I have some javascript:</p>
<pre><code><script... | javascript jquery | [3, 5] |
5,637,230 | 5,637,231 | Force jQuery to not register $ | <p>I know there exists a command like jQuery.noConflict. But for this it first registers $, then un-registers it afaik.</p>
<p>I want to edit the jQuery 1.3.2 code to stop it from registering the $ in the first place. I know its not the best of ideas, but I need this in a particular project. Am just not sure how it ca... | javascript jquery | [3, 5] |
5,144,358 | 5,144,359 | how to re-calculate variables in javascript | <pre><code>function scrollContent(){
var div = $('#scrolling-content'),
ul = $('ul.image'),
// unordered list's left margin
ulPadding = 0;
//Get menu width
var divWidth = div.width();
//Remove scrollbars
div.css({overflow: 'hidden'});
//Find ... | javascript jquery | [3, 5] |
5,711,029 | 5,711,030 | Is it possible to limit the user to upload an image with fixed dimension? | <p>Is there any Jquery Plugin to perform the image dimension operation on an image before being uploaded using uplodify. i want the plugin to check the image dimension with the fixed define size and then only process for uploading. </p>
<p>right now i am doing it with PHP function, instead of server side validation i ... | javascript jquery | [3, 5] |
3,957,472 | 3,957,473 | PHP syntax for setting a variable | <p>I have a JS script which im converting the code over to PHP but am stuck on what the correct syntax is to create the same as this piece of code in JS in my PHP script:</p>
<pre><code>var sdata = {
"13":{
"22":["618","22","1","1","0","0","0"],
"21":["617","22","1","1","0","0"... | php javascript | [2, 3] |
2,648,743 | 2,648,744 | substring of php var inside javascript | <p>i am trying to use the substring method inside a Js code wich echoes some php variable but it does not work.</p>
<pre><code>$('#tarif_public_total').val( <?php echo $_tarif_public; ?> * $('#tarif_public').val() )
u=$('#tarif_membre').val()* <?php echo $_tarif_membre; ?> + $('#tarif_public').val()* <... | php jquery | [2, 5] |
2,394,925 | 2,394,926 | FTP server returned 500 error with ASP.NET C# | <p>I 'm developing FTP exe ASP.NET、C#2.0 .</p>
<p>but I FTP server returned 500 error</p>
<pre><code>FtpWebRequest myReq;
FtpWebResponse myRes;
myReq = (FtpWebRequest)WebRequest.Create("ftp://test/aaa.txt");
myReq.Credentials = new NetworkCredential("xxxx", "xxxx");
myReq.Method = WebRequestMethods.Ftp.Download... | c# asp.net | [0, 9] |
5,483,983 | 5,483,984 | using self.location and url page values in jquery | <p>I currently have the following:</p>
<pre><code>$ul.append('<li>' +
'<a href="setlocale.aspx?returnURL=default.aspx&localesetting=' +
this.slice(0) + '">' + this.slice(3) + '</a>');
</code></pre>
<p>Lets say my URL ends with: <code>/c-577-camping.aspx</code></p>
<p>How do I use this value i... | javascript jquery | [3, 5] |
2,067,006 | 2,067,007 | jQuery .on() Not Working After Different Content Loaded | <p>If you go to <a href="http://www.elemovements.com" rel="nofollow">http://www.elemovements.com</a> and try clicking "Read more..." on the first article, it will work, along with if you click the same link in the archive. This is all taken care of by this block of code... it's messy, yes, but I've been trying to figu... | javascript jquery | [3, 5] |
3,935,878 | 3,935,879 | Avoid Page refresh on button click? | <p>I have this .net page where I have a media player control and a button. The button functionality is to call a stored procedure. I need the page NOT to reload and stop the video when the user clicks the button.</p>
<p>Is there a way to do this?</p>
<p>Here is the code</p>
<p>watching.aspx</p>
<pre><code><div i... | c# asp.net | [0, 9] |
4,078,048 | 4,078,049 | jquery select element with more then one id's | <p>I have to select an element, its id is assigned by mysql, it looks like this: <code>id="Monza ( Italien )5"</code> it works fine for other elements because there is only one name, but in this case it's the city name then the country name. I tried selecting like this <code>$('#Monza')</code> but it didn't work.</p>
| javascript jquery | [3, 5] |
2,536,295 | 2,536,296 | Generating a C++ executable from a C# application | <p>I have a WCF service accepting requests from our clients.
After analyzing the request I need to generate (compile + link) C++ EXE.
What is the best method to create an C++ EXE from a C# application???</p>
<p>10x</p>
| c# c++ | [0, 6] |
813,443 | 813,444 | How to set property to Guid in aspx page | <p>I have the following code in one of my aspx pages:</p>
<pre><code><% foreach (Dependency dep in this.Common.GetDependencies(this.Request.QueryString["Name"]))
{ %>
<ctl:DependencyEditor DependencyKey='<%= dep.Key %>' runat="server" />
<% } %>
</code></pre>
<p>When I run it, I get... | c# asp.net | [0, 9] |
5,075,414 | 5,075,415 | how to get value of a #t=querystring in asp.net? | <p>I use Request.QueryString["var"] to pull the value of <a href="http://test.com/test.aspx?var=test" rel="nofollow">http://test.com/test.aspx?var=test</a> into a string</p>
<p>the same thing doesn't work for test.aspx#var=test</p>
<p>how can I get it from that version of a querystring?</p>
| c# asp.net | [0, 9] |
4,615,042 | 4,615,043 | Master page - Only one instance of a ScriptManager can be added to the page | <p>I am using ajax toolkit in my project. My project is having a master page and i am inheriting this master page in my web pages.I am using Script manager on every page but now requirement came to display a real time clock also on the master page.I had written the code using Timer to display real time clock on master ... | c# asp.net | [0, 9] |
2,663,636 | 2,663,637 | Android, transmitting between classes? | <p>I have my main class in android, off this I have 2 classes, is there a way to send a message from the sub class to the main class?</p>
<p>Thanks for an help!</p>
| java android | [1, 4] |
1,694,130 | 1,694,131 | honoring rotation lock in android | <p>I am trying to honor the android rotation lock setting - I want my app to display in whatever orientation the home screen is locked in. I found the following knobs:</p>
<ol>
<li>Settings.System.ACCELEROMETER_ROTATION - determine if the screen orientation is locked.</li>
<li>Display.getRotation() - determine if the ... | java android | [1, 4] |
2,943,228 | 2,943,229 | Referrer stripped when coming from Google site builder page? | <p>Can anyone verify what I am seeing is not a bug? I am checking the referrer when someone comes to my site which is an ASP.NET C# store site. When I link from any of the other sites I control, my main page sees the referrer properly. </p>
<p>I am trying to support another third-party site that's linking to me and ... | c# asp.net | [0, 9] |
2,900,804 | 2,900,805 | How to append html to <head> with jQuery | <p>I am trying to append a Facebook open graph tag (based on dynamically generated content on the page) to the head of my html.</p>
<pre><code> $(document).ready(function(){
var stat = $('#random-message').text();
stat = jQuery.trim(stat);
//set facebook Open Graph description
$('head').append('<meta property="og:... | javascript jquery | [3, 5] |
5,842,934 | 5,842,935 | Refresh div content on form submit (ajax) | <p>On my page I have a form that inserts a new record in to the database. On the same page there is a DIV that contains the current resultset.</p>
<p>What I am trying to do is refresh just that DIV (not the whole page) when the form is submitted. The DIV will then contain the latest records (including the one just add... | php jquery | [2, 5] |
1,649,009 | 1,649,010 | Prototype is not working in IE6 | <p>This function is not working in IE6 but working in all other browsers. The error is propertyType is undefined and the function does not works for IE6. </p>
<p>My function is,</p>
<pre><code>function propertyType(){}
propertyType.prototype.contactClear=function()
{
$('#error_msg').text('');
$('#error_msg')... | javascript jquery | [3, 5] |
1,421,022 | 1,421,023 | Evaluate please my js code reliability | <p>I have 2 div tags </p>
<pre><code><div id="div_1" style="width: 100px; height: 100px; background-color: #090"></div>
<div id="div_2" style="width: 100px; height: 100px; background-color: #900"></div>
</code></pre>
<p>What I want: on mouse out on <code>div_1</code>, remove <code>div_2</code... | javascript jquery | [3, 5] |
222,115 | 222,116 | add next & back buttons for custom gallery | <p>I have this javascript code :</p>
<pre><code>$(function(){
$('.words-gallery div:gt(0)').hide();
setInterval(function() {
$('.words-gallery > div:first')
.fadeOut(1000)
.next()
.delay(995)
.fadeIn(1000)
.end()
.appendTo('.words-gall... | javascript jquery | [3, 5] |
241,194 | 241,195 | How to iterate through table with id='test' and get ids of each row inside table? | <p>How to iterate through table with id='test' and get ids of each row inside table using JQuery ?
I need to collect ids in array.</p>
| javascript jquery | [3, 5] |
2,454,606 | 2,454,607 | Finding controls that use a certain interface in ASP.NET | <p>Having a heckuva time with this one, though I feel I'm missing something obvious. I have a control that inherits from System.Web.UI.WebControls.Button, and then implements an interface that I have set up. So think...</p>
<pre><code>public class Button : System.Web.UI.WebControls.Button, IMyButtonInterface { ... }
<... | c# asp.net | [0, 9] |
5,089,535 | 5,089,536 | PHP Display curved paths in google map from one place to another | <p>Displaying curved path from place to another in google map api?
I need to display this curve from one airport to another,
I am very new to these maps.
I have tried some code in google api documentation:</p>
<pre><code>var map1 = new GMap2();
map.setCenter(new GLatLng(45.828799,-105.292969), 2);
var polyOptions = {... | php jquery | [2, 5] |
2,445,510 | 2,445,511 | Setting a JScript variable to contentplaceholder | <p>I have a content page in my ASP.NET-page and want to set a JScript variable to it programatically, so I can use it within the JScript sections of the rendered page afterwards.</p>
<p>How can I start with this problem? I have a "head"-content that fills a ContentPlaceHolder in a master page, but have no idea how to ... | c# asp.net javascript | [0, 9, 3] |
1,985,092 | 1,985,093 | How do I insert multiple image in Edit Text in android | <p>I am trying to insert multiple images in one editText. I have used following code to attach image to EditText</p>
<pre><code>txt = (EditText)findViewById(R.id.text);
Bitmap bitmap = BitmapFactory.decodeFile(attach);
Drawable drawable = new BitmapDrawable(bitmap);
txt.setBackgroundDrawable(drawable);
</code></pre>
... | java android | [1, 4] |
2,393,223 | 2,393,224 | Add rows to a table inside a repeater in client side with jquery | <p>I have a repeater which contains a table. I am giving the user the ability to add a new row in the repeater by adding a new row to the table.</p>
<p>Can anyone give me ideas? As I am very new to jQuery, can someone give sample code?</p>
| c# asp.net jquery | [0, 9, 5] |
4,886,069 | 4,886,070 | Issue at Code Access Security assembly file | <p>I am doing exercise on code access security to my project. But I faced one problem while import signed assembly with a strong name. </p>
<p>Problem is: </p>
<blockquote>
<p>The import is failed. The assembly does not appear to be valid. </p>
</blockquote>
<p>I created signed assembly with a strong nam... | c# asp.net | [0, 9] |
2,442,185 | 2,442,186 | jQuery extension (scope?) question | <p>I have some confusion over a jQuery extension not working as I'd expect. I have the following function defined:</p>
<pre><code>$.fn.poster = function() {
this.each(function() {
self = $(this);
self.click(function() {
/* does stuff */
$.post(url, data, function(d, t) { han... | javascript jquery | [3, 5] |
355,684 | 355,685 | Calling function to show/hide imageviews from another class | <p>In my MainActivity class I have this method:</p>
<p>MainActivity.java</p>
<pre><code>public void ClearImageViews() {
final ImageView image_a = (ImageView)findViewById(R.id.image_a);
image_a.setVisibility(View.INVISIBLE);
}
</code></pre>
<p>And in another file I have another class, which calls ClearImageViews... | java android | [1, 4] |
2,086,482 | 2,086,483 | How can i do button on hold for two second call function1 if less then two second call function2? | <p>I have this button which is not working correctly for hold button for a period (but it works like click only). </p>
<p>Where i was trying to do if the button is <code>hold</code> for greater/equal then 2 seconds then <code>callfunction1</code>, if the button was pressed less then 2 seconds then <code>callfuntion2</... | javascript jquery | [3, 5] |
4,126,007 | 4,126,008 | Loop through all checkboxes that are inside a div tag | <p>I need to loop through all checkboxes that are inside a div tag with id #abc123</p>
<p>How can I do this?</p>
<pre><code>$("#abc123").foreach( ???? )
</code></pre>
<p><b>Update</b>
my html row looks like:</p>
<pre><code><tr>
<td><input .../> </td>
<td>234</td>
</tr>
</c... | javascript jquery | [3, 5] |
3,870,598 | 3,870,599 | How to pause execution of javascript till jquery fade finishes | <p>I want to do something like this</p>
<ol>
<li>Fadein a div that covers some other div</li>
<li>change contents of that some other div</li>
<li>fadeout covering div and reveal that some other div below it.</li>
</ol>
<p>Here is a code for that:</p>
<pre><code>$pH('#coveringDiv').fadeIn(300);
//want to start doing ... | javascript jquery | [3, 5] |
790,364 | 790,365 | Why isn't my EventHandler firing? (Asp.Net C#) | <p>I am programatically making some LinkButtons, and they worked fine for a while, but now the events aren't firing and I can't figure out why?</p>
<p>This is what makes the button:</p>
<pre><code>protected void MakeUploadButton(attachment a, PlaceHolder ph)
{
LinkButton lb = new LinkButton()
{
Text =... | c# asp.net | [0, 9] |
1,742,779 | 1,742,780 | how to fire event on file select | <p>I've a form as</p>
<pre><code><form onSubmit="return disableForm(this);" action="upload.php" method="post" name="f" id="wizecho" enctype="multipart/form-data">
<input type="file" name="file" />
<button onClick="return disableForm(this),ajaxUpload(this.form,'wizecho_upload.php', '&lt;br&a... | javascript jquery | [3, 5] |
5,861,581 | 5,861,582 | jquery show only child | <p>I have a problem : I use classes on a div for simplicity, I would like to show a hidden div after a click, but only on that div, the problem is it shows on all divs, and I can't seem to get it working, here is a jsfiddle with the problem : <a href="http://jsfiddle.net/cWNvT/" rel="nofollow">http://jsfiddle.net/cWNvT... | javascript jquery | [3, 5] |
5,665,825 | 5,665,826 | How to optimize my if statements or make less if statements? | <pre><code>if(varName1 <= 1 && varName1 > 0)
{
$('#id1').addClass('ClassName');
}
if(varName2 <= 2 && varName2 > 1)
{
$('#id1').addClass('ClassName');
$('#id2').addClass('ClassName');
}
if(varName3 <= 3 && varName2 > 2)
{
$('#id1').addClass('ClassName');
$('#id2').addClass('... | javascript jquery | [3, 5] |
714,125 | 714,126 | Javascript comparison help | <p>I am having trouble with this statement and I was hoping I could get some help. Essentially, if <code>edweek</code> and <code>edevenings</code> (which are checkboxes) are not equal then I want to push to my array. The problem I am having is that I can get one of the values to be not equal, but when I add the secon... | javascript jquery | [3, 5] |
320,784 | 320,785 | Click function inside for loop | <p>I am trying to loop my .hide() and .show() click handlers and I can't get this simple part to work correctly. My buttons are called "#towelcome" etc. I'm assuminig I'm missing something stupid and obvious. All of the divs are hidden in css. </p>
<pre><code>var elements = ["welcome", "slides", "projects", "pages"];
... | javascript jquery | [3, 5] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.