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,789,462 | 1,789,463 | PHP ajax request return string | <p>Im getting an error 200 in my ajax request. Im wanting to post 1 value which is a email address to the page in my ajax request. Could someone tell me what is wrong</p>
<p>Error:</p>
<pre><code>message=:[object Object], text status=:parsererror, error thrown:=SyntaxError: JSON.parse: unexpected end of data
</code><... | php jquery | [2, 5] |
2,353,468 | 2,353,469 | jqTransform and ASP.NET does work, why? | <p>I get this message while pressing on ASP:Button in IE 8 in Compatibility Mode while my form has jqTransform applied to it.</p>
<p>"A potentially dangerous Request.Form value was detected from the client (ctl00$ContentPlaceHolder1$ButtonRegister="register..."). " </p>
<p>Without it works fine, if i don't override C... | asp.net jquery | [9, 5] |
1,267,762 | 1,267,763 | Export a excel file from a location using jquery or javascript | <p>I am having an excel file on my c drive in a folder.Now i want to export/open it from jquery/javascript.
Please help me out.</p>
| javascript jquery | [3, 5] |
2,675,843 | 2,675,844 | Handling "other" option in dropdown select with free text input field | <p>I'm trying to figure out the best way to handle a dropdown list where one of the options "other" shows a hidden text field (via jQuery), where the user can then enter text. Should both the dropdown and the input field be given the same "name" attribute, then server side code runs a check on the values of each in ord... | php jquery | [2, 5] |
1,556,967 | 1,556,968 | jQuery slideToggle - callback function on slideUp action only | <p>Does anyone know a good way to fire a callback function on the slideUp event only during a slideToggle? The default callback function fires on both slideUp and slideDown.</p>
<p>Thanks!</p>
| javascript jquery | [3, 5] |
3,658,630 | 3,658,631 | Print both in Android and pure Java | <p>How to print both to Log.e/d/etc. and to System.out/err/etc.? I have some code that I test on desktop and sometimes I use it on Android and I want to see logs there too.</p>
| java android | [1, 4] |
1,907,684 | 1,907,685 | how to deploy the asp.net project on server | <p>i create one website. the excel file has name and mail id information. the mail id fetch by excel file when i give excel file name after send mail automatically to this mail id without design the subject, from,to ,cc,bcc,content. how to i create this project. now i export the excel file to ms-access.then i fetch nam... | php asp.net | [2, 9] |
3,737,924 | 3,737,925 | how to acces the responseText in the jqxhr.complete function | <p>first of all i'm a complete javascript and jQuery noob so i'm sorry if this question is dumb. but i really haven't found the answer in the jQuery documentation or on google</p>
<p>i'm trying to perform an action on the response when the request is completed
but i can't access responseText. i was under the impressi... | javascript jquery | [3, 5] |
5,995,871 | 5,995,872 | how to change the value of a Div according to whats typed into a form input | <p>I know if I want to change the value of an input on a form according to what a user types into another input using:</p>
<pre><code>$('#inputName').change(function() {
$('#inputURL').val($('#inputName').val());
});
</code></pre>
<p>But I'd like to have it so when someone types into the input it updates a Div wi... | javascript jquery | [3, 5] |
988,426 | 988,427 | Adding a keydown event to a jQuery modal popup window with dynamic content | <p>I have created functions to create a Yes/No confirm window that popups with jQuery that I use in a .net project to confirm responses from the user. I have generated buttons that trigger functions depending on what you click on.</p>
<p>//load a specailized popup for confirming things in a localized manner
function p... | jquery asp.net | [5, 9] |
733,193 | 733,194 | jQuery slide down toggle, impossible? | <p>I want to do a slide down with jQuery, but I can't find it anywhere. </p>
<p>I do <strong>not</strong> want it to <a href="http://api.jquery.com/slideDown/" rel="nofollow">scale as it slides</a><br>
I do want it to perform <a href="http://see.weareinto.com/3tyP" rel="nofollow">this action</a> ( click slide ), but v... | javascript jquery | [3, 5] |
2,943,533 | 2,943,534 | Android string extraction | <p>I have an abstract class which contains method for setting header text. It looks like:</p>
<pre><code>TextView header = (TextView) findViewById(R.id.hTitle);
header.setText(getString(this.getHeaderStringID()));
</code></pre>
<p>At this moment methods that override the abstract getHeaderStringID() return integers l... | java android | [1, 4] |
4,782,310 | 4,782,311 | jQuery cannot get the file part from href attribute | <p>I am trying to get the href value of an anchor tag using jquery, instead of getting the absolute url, jquery returns just the url without the file part: This is what i mean:</p>
<p>My Html/php</p>
<pre><code>$url = "http://localhost/mysite/assets/data.txt";
<a class='view-chart' href="<?php echo $url?>"&g... | php jquery | [2, 5] |
1,408,818 | 1,408,819 | fadeout and fadein between two different pages in jquery | <p>Apologies if this may sounds simple, all im trying to do is fadeout the current page and fadein another page. However I'm having difficulties. I know how to do it between divs, the following fades out the leftcolumn div and inputs this in together with the myform on the stage3.php page. My question is how do i fa... | javascript jquery | [3, 5] |
2,731,482 | 2,731,483 | What is the equivalent to Java's string.getBytes() in C#? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/7089640/equivalent-of-getbytes-in-java-to-c-sharp">Equivalent of getBytes() in Java to C#</a> </p>
</blockquote>
<p>In Java:</p>
<pre><code>String s="abcde";
byte bar[] = s.getBytes();
</code></pre>
<p>In C#:... | c# java | [0, 1] |
4,014,387 | 4,014,388 | proper onclick format | <p>What is the proper way of doing this?</p>
<pre><code>$chatterhtml .= '<span style="float:right;" >
<a href="javascript:void(0);" onClick="deletecmnt(this, "'.$val['id'].'", "'.BASE_URL.'");" title="Delete Chatter">x</a>
</span>';
</code></pre>
<p>I am receiving an ... | javascript jquery | [3, 5] |
2,637,373 | 2,637,374 | Removing a replacing character using jquery | <p>In a variable I have a string value Agriculture & Development. I want to remove Whitespaces and character '&' from the string Agriculture & Development so that it looks like Agriculture_Development using jquery or javascript.</p>
| javascript jquery | [3, 5] |
3,116,052 | 3,116,053 | Check if javascript file was loaded | <p>I am loading the following javascript files from a CDN. Is there any way I can check if these have been loaded correctly and if not, load them from a local folder?</p>
<p><a href="http://ajax.microsoft.com/ajax/jQuery/jquery-1.4.2.min.js" rel="nofollow">http://ajax.microsoft.com/ajax/jQuery/jquery-1.4.2.min.js</a>
... | javascript jquery | [3, 5] |
384,251 | 384,252 | how can I clean up this javascript jquery | <p>I have these two functions.</p>
<p>The first is well written because someone who knows how to write js did it.</p>
<p>The second I did.</p>
<pre><code>var GetURLParameter = function($param){
var sPageURL = window.location.search.substring(1);
var sURLVariables = sPageURL.split('&');
for(var i = 0;... | javascript jquery | [3, 5] |
2,884,623 | 2,884,624 | How to set a variable a users referal | <p>I am trying to create some stats and need to print a users referal site, or search keyword. How to get a Users referal site or search keyword with javascript and print it?</p>
| javascript jquery | [3, 5] |
5,833,869 | 5,833,870 | Javascript - How to remove all extra spacing between words | <p>How can I remove all extra space between words in a string literal?</p>
<pre><code>"some value"
</code></pre>
<p>Should become</p>
<pre><code>"some value"
</code></pre>
<p>Also, </p>
<pre><code>" This should become something else too . "
</code></pre>
<p>Becomes</p>
<pre><code>"This sho... | javascript jquery | [3, 5] |
5,656,122 | 5,656,123 | Prevent single word of being edited in a Textarea | <p>Hey guys
What I want to achieve is the following;</p>
<p>I have a textarea filled with text in our CMS. That text contains some special strings that are variable names. In the site these variables are replaced with something else (e.g "$!test;" will be replaced with "Hello this is a test").</p>
<p>Now I want to pr... | javascript jquery | [3, 5] |
5,567,428 | 5,567,429 | Indexing through Android string resources | <p>OK, I've got the code to allow me to index through the string resources. Now, how do I get the value of a specific resource item without knowing its name?</p>
<p>Here's the index loop:</p>
<pre><code>Field[] fLst = R.string.class.getFields();
for(Field f : fLst){
Log.i(dbgTag, "Field Entry: R.string." + f.getN... | java android | [1, 4] |
4,086,793 | 4,086,794 | Android: Grouping of ListView | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/1606320/android-custom-separator-or-even-item-in-listview-depening-on-content-of-item">Android: custom separator (or even item) in ListView depening on content of item</a> </p>
</blockquote>
<p>I am new to the a... | java android | [1, 4] |
5,447,882 | 5,447,883 | How to find out what JavaScript code is slowing down my page | <p>Some code in my page is making my browser slow after 20-30 min. I need to know which one. What tools can i use to debug this out.</p>
<p>Following js files are being loaded </p>
<ol>
<li>Jquery</li>
<li>Jquery ui</li>
<li>History</li>
<li>Mustache </li>
</ol>
<p>Yes i <strong>had</strong> settimeout and thought t... | javascript jquery | [3, 5] |
863,348 | 863,349 | Can I run some custom script after ASP.NET client side page validation fails? | <p>I'm trying to run some client side script if, <em>and only if</em>, the client side Page validation fails, and can't figure out where I can hook it in.</p>
<p>If i bind my JavaScript function to the OnClientClick of the button that submits the form, it runs before the client side validation. If I bind it to the OnS... | javascript asp.net | [3, 9] |
4,211,292 | 4,211,293 | How to get and then change this drop-down value to default? | <p>I have a drop-down list as,</p>
<pre><code><select id='idleReason' onChange="loadXMLDoc(this.value)" size="1">
<option value="nothing" selected="selected">Select a site</option>
<option value="Option 1">Option 1</option>
<option value="Option 2">Option 2</option>
<option... | javascript jquery | [3, 5] |
1,845,746 | 1,845,747 | Why is a click event not stopped by stopping mousedown/mouseup? | <p>Coulda sworn this wasn't how it used to work, but with jquery my click event is firing even if I return false on both mousedown and mouseup.</p>
| javascript jquery | [3, 5] |
3,225,559 | 3,225,560 | Strip "http://" from pasted text into textbox | <p>I'm a total newbie when it comes to Javascript/jQuery so hopefully you can help me.</p>
<p>I have a textbox where most people are gonna paste links into. Is there a nice way for the textbox to detect that a link has been pasted (starts with <code>http://</code>) and then remove the protocol dynamically in the textb... | javascript jquery | [3, 5] |
5,568,766 | 5,568,767 | Understanding "this" keyword | <p><a href="https://github.com/jquery/jquery/commit/6e066a4db72ff6b0d12dd8a43faec0a80e4a1fed#L0L31">In this commit</a> there is a change I cannot explain</p>
<pre><code>deferred.done.apply( deferred, arguments ).fail.apply( deferred, arguments );
</code></pre>
<p>becomes</p>
<pre><code>deferred.done( arguments ).fai... | javascript jquery | [3, 5] |
3,744,368 | 3,744,369 | ASP.Net form submission that returns CSV | <p>I'm having trouble getting my ASP.Net page to return CSV on submit being clicked. Here's the asp button definition I have for the submit button in Form.aspx:</p>
<pre><code><asp:Button id="submitreport" name="submitbutton" text="submit" OnClick="Report_Submit" runat="server" />
</code></pre>
<p>And this is t... | c# asp.net | [0, 9] |
1,832,081 | 1,832,082 | ASP.NET Generate a table from list with dynamic number of rows and columns | <p>I have a list of items which I want the user to be able to tick which are appropriate to them.</p>
<p>Currently I have a <code><ul></code> generated by a <code>Repeater</code> with checkbox and label controls placed in side, all working fine.</p>
<p>However, the <code><ul></code> is taking up too much ... | c# asp.net | [0, 9] |
5,719,409 | 5,719,410 | Pageindex is not work properly | <p>i try in button control:</p>
<pre><code>protected void btnImgBack_Click(object sender,EventArgs e)
{
try
{
gdvFile.DataSource = GetFiles();
gdvFile.DataBind();
gdvFile.PageIndex=1;
}
catch(Exception ex)
{
throw ex;
}
}
</code></pre>
<p>If <code>btnImgBack</code> is click i w... | c# asp.net | [0, 9] |
5,165,165 | 5,165,166 | how to stop video player after it has played a video in android | <p>I'm trying to play a video from a website in an android app. I got the video to play but there are two things I'm concerned about:</p>
<ol>
<li><p>When I rotate the phone while the video is playing, it reloads the video and starts from the beginning again.</p></li>
<li><p>After the video has ended it seems like it ... | java android | [1, 4] |
583,684 | 583,685 | find() not working | <p>I'm creating a bunch of <code>li</code> elements dynamically </p>
<pre><code>$.each(data.attributes.listingImages, function (i, obj){
if(i == 1){
$('#js-carousel-menu').append('<li media class="active"><a media-frame><img class="js-carousel-item" src=" '+obj.thumbnail+ ' " /></a></li&g... | javascript jquery | [3, 5] |
4,227,176 | 4,227,177 | Jquery plugin hovercard not work in dynamically generated content | <p>Jquery plugin Hovercard works well in simple HTML code but does not work when i used it in javascript code (dynamically creating html code through javascript). Maybe this is also a general problem, how can jquery plugin work in js code generated content? </p>
| javascript jquery | [3, 5] |
4,806,406 | 4,806,407 | Raw DOM element vs. jQuery object | <p>I'm looking at the following example of explicit iteration from <a href="http://jqfundamentals.com/chapter/jquery-basics" rel="nofollow">http://jqfundamentals.com/chapter/jquery-basics</a>:</p>
<pre><code>$( 'li' ).each(function( index, elem ) {
// this: the current, raw DOM element
// index: the current elemen... | javascript jquery | [3, 5] |
1,513,789 | 1,513,790 | code a number into letters | <p>Lets say I have something like 97463</p>
<p>I want to code it into letters say kljhs</p>
<p>I'm using php/javascript at the moment, but I guess its a universal problem. </p>
<p>Whats the most efficient way to do this in a way thats reversible? </p>
<p>(reversible meaning given numbers I can make the letter code... | php javascript | [2, 3] |
2,893,171 | 2,893,172 | epub file read and display in adnroid | <p>i weak in English sorry ,i want to build a epub reader application in android like fbreader,
GMreader,pageturn etc. if any one known and tell me that how to start and which jar file and plugin is required, i know the about fbreader plugin, but i don't know that how it plugin using programming please tell me step by ... | java android | [1, 4] |
2,569,027 | 2,569,028 | asd scroller - how to pause on hover JS/jQuery | <p>I have a simple scroller for ads ;]
Need help whit pause it on hover.</p>
<pre><code>$(document).ready(function(mnmTicker){
var mnmAdsInterval = 2000;
/* Do not modify code below */
var mnmAdsLenght = m3ads_numberadverts;
function mnmSlideAds(){
hT = $('.someClass').find('a');
hT2 = hT;
slideMargin = ... | javascript jquery | [3, 5] |
2,734,626 | 2,734,627 | How to trigger dropdownlist's SelectedIndexChanged event by clicking enter or left mouse down? | <p>I have a dropdownlist on a page like this;</p>
<pre><code><asp:DropDownList ID="ddlCities" runat="server"
AutoPostBack="true" ClientIDMode="Static"
OnSelectedIndexChanged="ddlCities_SelectedIndexChanged">
</asp:DropDownList>
</code></pre>
<p>This works great in normal conditions. But I have to chang... | c# asp.net | [0, 9] |
4,019,393 | 4,019,394 | How to set up Python server side with javascript client side | <p>So there is already a Python program set up that runs on the console that I must build upon. I will be building a web GUI interface for the application using Javascript.
How would I:</p>
<p>a. Go about handling the input/output of this Python program without touching the original code.</p>
<p>b. Go about sending c... | javascript python | [3, 7] |
4,367,088 | 4,367,089 | File.Exists - Wrong? | <p>i'm trying to see if the picture exists but this says that isnt there, and the path is correct!
The path is correct, and it has a picture, but this allways go to "else".</p>
<pre><code>string path = @"c:\folder\pic.jpg";
if (File.Exists(path))
{
//Do something here
}
else
{
}
</code></pre>
| c# asp.net | [0, 9] |
3,029,911 | 3,029,912 | To insert Image in text file in asp.net using C#.net | <p>Is it possible to insert image in file in asp.net using c#.net. Please do the helpfull as soon as possible. </p>
| c# asp.net | [0, 9] |
5,261,789 | 5,261,790 | Javascript in asp.net masterpage head content seems not working | <p>I'm using a ready made jquery date picker with ASP.NET text boxes. I'm also using MasterPage so here's what I've done so far -</p>
<p><strong>Page linked to Master Page</strong></p>
<pre><code><asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<link href="overcast/jquery-ui-1.8.15.cust... | jquery asp.net | [5, 9] |
3,632,144 | 3,632,145 | Change form url query parameter with jquery on input change state | <p>Trying to create an "add to cart" button with quantity of items to add, i've added an <code><input id="product_quantity" value="1" onChange="updateQuantity()" /></code> to a main <code>form</code> so whenever i change a value inside that <code>input</code> it should update a form's action url withing a query p... | javascript jquery | [3, 5] |
4,639,326 | 4,639,327 | PHP's exit; in Javascript? | <p>What is the equivalent of PHP's exit; in Javascript/jQuery?</p>
<p>I need to stop my script early depending on certain conditions... The only answers I could find from search was stopping forms from submitting...</p>
| javascript jquery | [3, 5] |
1,228,627 | 1,228,628 | Removing images that a user has clicked on | <p>I am working on a memory matching game. I have some code that checks if two images that the user clicked on have the same source and removes the images if they do have the same source.</p>
<pre><code>(function compareClicked() {
var lastclicked = "";
$("img").click(function() {
var path = $(this).at... | javascript jquery | [3, 5] |
1,293,578 | 1,293,579 | Make sure elements are equal height | <p>I have an issue with two adjacent div "columns". It is a common use case that one of them might be gargantually taller than the other one, and this can be a usability issue, since users drag'n'drop items from one div to the other.</p>
<p>Using jQuery, I'd like to make sure that these two columns are always equal he... | javascript jquery | [3, 5] |
3,706,308 | 3,706,309 | Convert a javascript piece of code into php | <p>I just want to properly translate this</p>
<pre><code>foo.push(("000" + parseInt(foo1.charAt(loc3), 16).toString(2)).slice(-4));
</code></pre>
<p>into php.</p>
<p>Anyone can help me?</p>
| php javascript | [2, 3] |
5,160,852 | 5,160,853 | using javascript function to initialize php variable | <p>hi i want to initialize php variable in javascript function and than call the php function with php initialized variable. Please help me for solving this problem... </p>
<pre><code> <?php
function printDiv($abc) {
echo '<div align="center" width="100%"> ' . $abc . ' </div>';
}
... | php javascript | [2, 3] |
3,621,901 | 3,621,902 | 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,448,169 | 5,448,170 | Android Download Listner | <p>Is there any way to find out that the download is successfully or not.
i am using following code to download files from other mobiles phones p2p, but some time other user is out of wifi range. the i wanted to know that the source is out of range so download is not possible at that time.</p>
<p>is there any listener... | java android | [1, 4] |
2,967,393 | 2,967,394 | Need help to use this | <p>Can any one please make it simple or clear to me how the coder has used (this) here in the last line:</p>
<pre><code>@Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
// Set up click listeners for all the buttons
View continueButton... | java android | [1, 4] |
4,140,235 | 4,140,236 | Jquery - Pseudo-recursive function with "this" element | <p>I'm trying to apply a cool animation effect on a list with Jquery using a pseudo-recursive function.</p>
<p>It works pretty well for the first item, but after the first loop, the <code>this</code> which was selecting <code>#column-left section</code> becomes the <code>li</code> so of course, the function does not ... | javascript jquery | [3, 5] |
5,642,050 | 5,642,051 | jQuery submit ajax form with 2 submit buttons | <p>im trying to achieve the following, in php i have a form like this:</p>
<pre><code><form method="post" id="form_1" action="php.php">
<input type="submit" value="add" name="sub"/>
<input type="submit" value="envoi" name="sub"/>
</form>
</code></pre>
<p>the form action file is:</p>
<pre><co... | php javascript jquery | [2, 3, 5] |
1,198,545 | 1,198,546 | Send array from jQuery(ajax) to PHP | <p>class <code>email</code> is an array of email addresses. How do i get the array in jQuery and then send the data with AJAX to send.php along with class <code>title</code> and <code>message</code>?</p>
<pre><code> <input type='text' size='30' class='email' value='testing1@gmail.com' />
<input type='t... | php jquery | [2, 5] |
4,269,605 | 4,269,606 | What is the cost of finding a node in JQuery? | <p>I always save the result of the <code>find()</code> in order to avoid multiple sub tree traversal if I need the value several times:</p>
<pre><code>var $a_bar = $('div.foo').find('a.bar');
$a_bar.removeClass(...);
// ... code here
$a_bar.bazz();
</code></pre>
<p>instead of </p>
<pre><code>$('div.foo').find('a.bar... | javascript jquery | [3, 5] |
5,617,110 | 5,617,111 | Uncaught TypeError: Property '$' of object [object Window] | <p>I've been working on a site recently that is now coming up with jQuery errors!
It has been behaving fine until recently when I have noticed these errors in chromes console. These seem to be coming up within the google hosted jQuery. I've tried using previous versions of jQuery as well but it keeps showing the errors... | javascript jquery | [3, 5] |
745,530 | 745,531 | How to format a dollar? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/149055/how-can-i-format-numbers-as-money-in-javascript">How can I format numbers as money in JavaScript?</a> </p>
</blockquote>
<p>I am doing a divide and multiply to figure out the value of a field and the valu... | javascript jquery | [3, 5] |
3,475,457 | 3,475,458 | Need help to call the java script from c# | <p>I need to format the value as currency like ($1,000), i am having the code with me but i need to know how to call the java script from c#</p>
<p><strong>aspx.cs page</strong> (code page</p>
<pre><code>x= 2345
textbox1.text = x.ToString();// i need the format currency here
</code></pre>
<p><strong>JavaScript</stro... | javascript asp.net | [3, 9] |
5,931,124 | 5,931,125 | Android Improve SQLite Performance Optimise | <p>I have an onCreate that currently opens an sqlite database and reads off 4 values. I then have a conditional and depending on what activity has sent it there it either displays those values or updates two values and then displays the other.</p>
<p>Now if I run this activity without updating the database it is light... | java android | [1, 4] |
3,196,482 | 3,196,483 | Interacting controls within a Grid | <p>I've been designing a website which has a grid on the page. The grid has multiple comboBoxes within it. These comboboxes interact. ie When one value is changed by the user another one has it's value change or is disabled/enabled etc.</p>
<p>I find in order to do this I have to use FindControl a lot. Like in the sel... | c# asp.net | [0, 9] |
5,182,635 | 5,182,636 | JQuery - work with divs | <p>I want to set another class for the clicked menu-part. Clicking generates url with #NAME. Here is my menu:</p>
<pre><code> <div id="head_menu">
<a href="#order"><div name="order" id="menu_part">make order</div></a>
<a href="#portfolio"><div id="menu_part">... | javascript jquery | [3, 5] |
192,820 | 192,821 | ExecuteStoreQuery passing parameter to SQL statement | <p>Could someone help with passing a parameter object into my <code>ExecuteStoreQuery</code>. I'm executing this from my Entities db and then creating my procedure on the fly is this possible and is my SQL correct. I need to pass a <code>Id</code> parameter value into my SQL statement</p>
<pre><code>var node = db.Exec... | c# asp.net | [0, 9] |
4,846,393 | 4,846,394 | Testing if URL and querystring is valid | <p>What is the best way to test if a url & querystring is valid? For example, after a login redirect I want to make sure the target url is valid. If not, go to a default page.</p>
<p>We seem to have a problem with the querystring, starting with "ReturnUrl=", being duplicated and that throws an exception. We'd rath... | c# asp.net | [0, 9] |
2,421,755 | 2,421,756 | Why does my app skip an if statement? | <p>I have a tictactoe app, with an array of 3x3 imageButtons, all of them pointing to a common <code>onClick()</code> method. This method gets the imageButton id and gets the array coordinates of the clicked button. I am making a special Tic tac toe, where once you have placed 3 pieces, you can't place any more... | java android | [1, 4] |
809,041 | 809,042 | detecting browser close all conditions | <p>This question has been asked many times before but none of the previous ones hit all the issues. I have a shopping cart that I store in session state. I'd like to detect when the user leaves the site so I can ask if they'd like to save their cart. I'd prefer not to automatically store the cart, I hate sites that ... | javascript asp.net | [3, 9] |
1,049,083 | 1,049,084 | Double to String, how to delete 0 after dot | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/703396/how-to-nicely-format-floating-types-to-string">How to nicely format floating types to String?</a> </p>
</blockquote>
<p>I have number: </p>
<pre><code>Double d1=(Double)0;
Double d2=(Double)2.2;
Double d... | java android | [1, 4] |
2,291,675 | 2,291,676 | How to send variable to php from javascript and return the result back to JS | <p>I have this code.</p>
<pre><code>var book = document.getElementById('txtBook').value;
switch(book.toUpperCase())
{
case "GEN": var bk = "101"; break;
case "EXO": var bk = "101"; break;
case "LEV": var bk = "101"; break;
case "DEU": var bk = "102"; break;
... and so on...
... | php javascript jquery | [2, 3, 5] |
2,403,283 | 2,403,284 | Prevent Refresh 'Jump' with Javascript | <p>I've noticed that if you are on a page and you have scrolled down a good bit, if you refresh the page, most browsers will jump you back down to your position. Is there any way to prevent this? </p>
<p>I have looked at two options and neither are consistent across Webkit / Firefox.</p>
<pre><code> window.scrollT... | javascript jquery | [3, 5] |
3,929,268 | 3,929,269 | dynamically add a name anchor tag within dynamic content page | <p>I have a page that lists over 100 items and I need to dynamically add a name="" tags to the beginning of each new section of items that starts with the next alphabet.</p>
<p>For example:</p>
<pre><code><a name="a"></a>
<h1>Amazon River</h1>
<h1>Arrow Heads</h1>
<a name="b"&... | php javascript | [2, 3] |
1,025,141 | 1,025,142 | Can I send a string to a php file from my mobile Java app? | <p>I want to be able to send a parameter to a php page that contains a devices IMEI/MEID.</p>
<p>I then want the php page to take that IMEI parameter and check a list of IMEI's to see if the IMEI sent as a parameter from my Java mobile app is contained in a database, if it is then return true.</p>
<p>I only know the ... | java php | [1, 2] |
4,989,940 | 4,989,941 | fade in/out between two divs on a loop | <p>How would i go about make two divs fade in/out alternating between the two, so that only one is visible at a time? And also make it in a never ending loop?</p>
<p>Thanks in advance!!</p>
<p>I know it should be done with the .fadeOut and .fadeIn - but not sure how to make it loop over and over again.</p>
| javascript jquery | [3, 5] |
2,286,281 | 2,286,282 | Find Html Inside a String Using Jquery | <p>I am not sure how practical this question is , but what i am trying to do is find html inside a string and then append pre tags to it using jquery. let say i have a variable with following string.</p>
<pre><code>var string = "Some normal text <html><body><div> This is the html </div> </bo... | javascript jquery | [3, 5] |
3,298,223 | 3,298,224 | How to detect left click anywhere on the document using jQuery? | <p>I have this right now:</p>
<pre><code>$(document).click(function(e) { alert('clicked'); });
</code></pre>
<p>In Firefox, this event is firing when I left-click OR right-click. I only want it to fire when I left-click.</p>
<p>Does attaching a click handler to the document work differently than attaching it to othe... | javascript jquery | [3, 5] |
750,218 | 750,219 | Python script executing by PHP | <p>I've got a question. I'm gonna make few charts on my website, but I would like to have all the time fresh data.</p>
<p>I've got a TXT file: <code>temperature.txt</code><br>
It's getting information every 1 minute about temperature. Now, I would like to make a chart for example "Temperature in last hour". I would li... | php python | [2, 7] |
3,806,530 | 3,806,531 | javascript within php | <p>I am trying to do the following in jquery</p>
<pre><code><?php
echo "<script>";
echo "$(document).ready(function(){";
echo "$('#mainbody-wrapper').removeClass('mainbody-wrapper')";
echo ";";
echo "$('#mainbody-wrapper').addClass('newStyle')";
echo ";";
echo "contentHeight=$('.... | php jquery | [2, 5] |
714,503 | 714,504 | How long will take from an average C# developer to an average Java developer? | <p>I know the ideas and features between C# and Java programming language is very similar. So as a senior C# web developer(average) how long will it take to make it feel comfortable programming Java web applications? Will it just like from VB.net to C#? </p>
| c# java | [0, 1] |
5,435,933 | 5,435,934 | Java: updated class files not used | <p>I'm developing a Java program through Eclipse locally, and debugging on a remote machine. Whenever I make a change to my program, I copy the corresponding class file to the bin directory on the remote machine. I run my program (a simulator) through a python script via the OS.system command.</p>
<p>The problem is t... | java python | [1, 7] |
3,982,593 | 3,982,594 | good jquery content separators | <p>just wondering if anyone knows of any pre built content switchers powered by jquery like the one depicted below (only have a screenshot, otherwise I wouldn't be asking :P):</p>
<p><img src="http://i.stack.imgur.com/bALm6.png" alt="enter image description here"></p>
| javascript jquery | [3, 5] |
5,818,330 | 5,818,331 | Code only executes once but should continue | <p>The code below should prevent the popup from closing if you mouseover it, or the button, however, it only works once on reload and then stops working. </p>
<pre><code>$('.popover3-test').popover({
placement:'bottom',
template: $('.popover2'),
trigger: 'manual',
}).mouseenter(function(e) {
$(thi... | javascript jquery | [3, 5] |
1,972,749 | 1,972,750 | C# advantages and disadvantages over C++ | <p>I use C++ for more than 10 years(high school, university, and now at work). I had some time between projects and started to learn C#. I wanted to make simple things(in my opinion). </p>
<ul>
<li>to get a form window handle</li>
<li>to call a function written in C++ and compiled as dll</li>
<li>to populate a Propert... | c# c++ | [0, 6] |
431,932 | 431,933 | Jquery click alert() | <p>Do you know why this method click doesn't show alert? Because I'm not able to catch this event.</p>
<pre><code><!DOCTYPE html>
<html>
<head>
<script src="jquery.js"></script>
<script>
jQuery(function () {
jQuery(".jtable-command-button.jtable-edit-command-button").click(funct... | javascript jquery | [3, 5] |
641,415 | 641,416 | How to access complex object in jquery | <p>The beans are defined as,</p>
<pre><code>class A
{
String id;
}
class B
{
A a;
String name;
}
</code></pre>
<p>From the controller class, an object of B is returned, I can access name but not a.</p>
<pre><code><script type="text/javascript">
$(document).ready(function(){
$("#name").change(func... | java jquery | [1, 5] |
5,013,676 | 5,013,677 | How do I keep a div in the center of the page? | <p>I'm using jQuery to create a "dialog" that should pop up on top of the page and in the center of the page (vertically and horizontally). How should I go about making it stay in the center of the page (even when the user resizes or scrolls?)</p>
| javascript jquery | [3, 5] |
2,281,487 | 2,281,488 | Variable from JavaScript to PHP | <p>Here is the code:</p>
<pre><code> $('#sousmenu a').click (function (){
startSlideshow(<?php echo json_encode(glob("photos-" .$_GET["folder"]. "/*.jpg"));?>);
return false;
});
</code></pre>
<p>The question is I like the HREF to change and get caught by PHP, now it doesn't do anything, ... | php javascript jquery | [2, 3, 5] |
5,386,335 | 5,386,336 | Is it realistic for an android newbie to successfully complete a project in 30 days and submit it to ADC2? | <p>Just for the disclaimer, I'm not trying to win the prize in Android Developer Challenge, but just want to participate.</p>
<p>I heard about the Android buzz lately and got interested in it. And today I stumbled upon a site talking about Android Developer Challenge 2. Luckily, the submission hasn't ended but unfortu... | java android | [1, 4] |
4,069,482 | 4,069,483 | How can I select an element with a certain exact text with jQuery | <p>I know :contains() could be used to select all elements that contain the specified text. but is there a way to find an <strong>exact</strong> match ?</p>
<p>What I mean is using <code>jQuery(':contains(josh)')</code> will also apply to nodes with joshua or joshephin. Is there a way to find out a specific text?</p>
| javascript jquery | [3, 5] |
3,335,723 | 3,335,724 | Access object child properties using a dot notation string | <p>I'm temporarily stuck with what appears to be a very simple JavaScript problem, but maybe I'm just missing the right search keywords!</p>
<p>Say we have an object</p>
<pre><code>var r = { a:1, b: {b1:11, b2: 99}};
</code></pre>
<p>There are several ways to access the 99:</p>
<pre><code>r.b.b2
r['b']['b2']
</code... | javascript jquery | [3, 5] |
905,017 | 905,018 | How get user location using user IP Address? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/1409108/how-to-get-visitor-location-country-state-and-city-using-asp-net">How to get visitor location ( country, state and city ) using ASP.NET</a> </p>
</blockquote>
<p>How get user location using user IP addre... | c# asp.net | [0, 9] |
5,898,361 | 5,898,362 | keyboard - resizing viewgroup, overlaying viewgroups and custom editor view | <p>im writing a keyboard and there are a number of things i want to do:</p>
<p>1) i want to be able to dyamically resize the the keyboard view. I
have a custom view for my keyboard, created by my
InputMethodService.onCreateInputView</p>
<p>i've tried calling invalidate, requestLayout, forceLayout, on the
keyboard vie... | java android | [1, 4] |
1,697,259 | 1,697,260 | how to write this java code in c# | <p>I have this java code, that I want to translate to c#:</p>
<pre><code>ByteArrayOutputStream baos = new ByteArrayOutputStream();
PrintStream ps = new PrintStream(baos);
ps.printf("\n\n+++++ %s %s\n",Environment.UserName, new SimpleDateFormat("MM/dd/yyyy HH:mm:ss aa").format(new Date()));
</code></pre>
| c# java | [0, 1] |
2,006,315 | 2,006,316 | Insert Data in database | <p>I am using jquery first time ,so please help me out . I search lot but not get the answer.</p>
<p>Here The Code.I am using jquery Raty Plugin from this site : <a href="http://www.wbotelhos.com/raty/" rel="nofollow">http://www.wbotelhos.com/raty/</a> by Washington Botelho.All this work fine .Problem is that I want t... | php javascript jquery | [2, 3, 5] |
4,007,758 | 4,007,759 | Not able to access Data inside Javascript Array | <p>HI , </p>
<pre><code> var jsonObj = [] ;
for (var i = 0; i < data.jobs.length; i++) {
jsonObj.push({id: data.jobs[i].Dater, optionValue: data.jobs[i].INCPU});
}
alert(jsonObj);
</code></pre>
<p>I am getting as result as </p>
<pre><code>[object Object],[object Object],[object Object]
</co... | javascript jquery | [3, 5] |
5,469,886 | 5,469,887 | Simple JQuery Flip-Card animation customisation | <p>I have a working Jquery flip card animation. When you click the front panel, it flips to the back panel and vice versa. Now I added 3 links onto the front panel, and I want each link to flip to its own back panel and back, but I'm not getting it to work. My working example: NOTE: I attached the flipcard js file as a... | javascript jquery | [3, 5] |
1,080,027 | 1,080,028 | Accessing value from the controls within a dynamically loaded web user control (asp.net c#) | <p>I have created a web user control (MemberDetails.ascx) which is loaded dynamically on a page (Member.aspx) for my website. The control has some TextBoxes. I want to store the values inputted by a user in these TextBoxes to a database on the click event of a button that is on the Member.aspx page (i.e. not a part of ... | c# asp.net | [0, 9] |
5,355,932 | 5,355,933 | Pros and cons of using HTML5 vs frameworks for cross-platform mobile development | <p>I'm going to start developing an app for my job, and I would like to know what is the best approach. The app will be a basic tracker for some application that we have, and since our employers uses both Android and Apple phones I don't want to develop the app twice just so it could work on both platforms.</p>
<p>Is ... | android iphone | [4, 8] |
1,383,695 | 1,383,696 | how to set a default dropdownlist selecteditem | <p>I have a login page where user enters Username(textbox), Password(textbox), and location(dropdownlist) then login. </p>
<p>On the server page, for the location dropdonwlist I have a connection string to access SQL server database to get all locations from location table and bound the data to the dropdownlist. </p>
... | c# javascript | [0, 3] |
4,930,011 | 4,930,012 | how to send json to php file to save on server | <p>Im developing a javascript/php/ajax application and have stumbled across some problems.</p>
<p>Im confident at javascript and ajax but my php is a little rusty.</p>
<p>My aim is to get a json file from the server, modify it using javascript, and then save this modified json back to the server.</p>
<p>After some r... | php javascript | [2, 3] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.