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,740,665
1,740,666
prevent form submission if validation failed after iterating over each form element with jquery's .each() function
<p>I have the following code in which I'm trying to iterated over html text input elements, do some validation and prevent the form submission if the validation fails:</p> <pre><code>$("#the_form").submit(function(){ $(":text", this).each(function(){ if($(this).v...
javascript jquery
[3, 5]
3,649,428
3,649,429
Get text from span with a specific class
<p>I have the below HTML and JQuery code and i am needing some help to do the following, i have some radio buttons with freight types, when the user choose one of them i need to get its price, it is in the span with the class <code>price</code>. I've tried to use <a href="http://api.jquery.com/closest/" rel="nofollow">...
javascript jquery
[3, 5]
2,468,849
2,468,850
How to render response stream with jquery?
<p>I have this </p> <pre><code> MemoryStream export = new MemoryStream(); iCalendarSerializer serializer = new iCalendarSerializer(iCal); serializer.Serialize(export,System.Text.Encoding.UTF8); return export; </code></pre> <p>so I am using the C# DDay.iCal library for exporting my calendars. Serialize ...
c# asp.net jquery
[0, 9, 5]
4,581,794
4,581,795
Thumbnail Generation
<p>Is there a "good" way to generate a thumbnail for a JPEG file that doesn't have on in the EXIF information?</p> <p>If a user uploads an image, I'm trying to display the thumbnail, but if there's no thumbnail in the image the display is blank (src=""). Currently we replace blank images with a loading image that gets...
javascript jquery
[3, 5]
3,189,271
3,189,272
to store data in mysql from android
<p>Here i have attached my code this doesn't show me any sort of error.. But data is not being inserted into mysql table. can anyone help me out. I have made my ddms connection correctly. But still its not working.</p> <p>my java code:</p> <pre><code> public class MainActivity extends Activity { Button b1; E...
php android
[2, 4]
4,698,664
4,698,665
What are the basic measures upon building a good form?
<p>Basic measures when building forms that interact with the sql database. What are the security measures (check insert strings, sql injection etc), and Do people use special controllers in order to format their data? I am using GridView and realizing its tables, which I dont like. If so are there any suggestions fo...
c# asp.net
[0, 9]
5,523,410
5,523,411
Selecting an element inside of the hovered "li" tag
<p>I have a few <code>&lt;li&gt;</code> tags and I need to hide an element inside of the hovered <code>&lt;li&gt;</code>tag. The following code is not working, please let me know how can I get it worked...</p> <pre><code>$(function(){ $("#deals ul li").hover(function(){ $(this:has(".transform")).hide(); }); }...
javascript jquery
[3, 5]
3,610,719
3,610,720
jquery array checkbox
<pre><code>var others = $("#6"); others.click(function() { $('input:checkbox').attr('checked',false); $("#6").attr('checked',true); }); </code></pre> <p>I have an array of check boxes which is drawn from database. I want to uncheck other check boxes when a certain check box is ticked in my case checkbox with i...
javascript jquery
[3, 5]
5,248,363
5,248,364
Open a new window for each url created
<p>I want to open a new window for each $url created how could I do that?</p> <pre><code>&lt;?php require_once('sql.php'); $result = mysql_query("SELECT * FROM gamertags ORDER BY id DESC LIMIT 10"); while($row = mysql_fetch_array($result)){ // Prepare gamertag for url $gamertag = strtolower($row['gamertag'])...
php jquery
[2, 5]
5,429,384
5,429,385
remove </tr> from html query
<p>In my jQuery I have a <code>myTable</code> string:</p> <pre><code>var myTable = "&lt;table width='100%'&gt;&lt;tr&gt;"; </code></pre> <p>After adding some data in <code>&lt;td&gt;</code>s to <code>myTable</code> like</p> <pre><code>myTable += &lt;td&gt;...&lt;/td&gt;&lt;td&gt;...&lt;/td&gt; </code></pre> <p>then...
javascript jquery
[3, 5]
4,814,375
4,814,376
How to evaluate data return boolean from jQuery $.get
<pre><code>$('#my_theme').click ( function() { $('#my_theme option').each(function(){ //how do I test for this $.get to return true? if ($.get('&lt;?php echo get_bloginfo('template_directory') ?&gt;/getStyle.php', {template: $(this).val()})==true) { $(this).attr("dis...
php jquery
[2, 5]
3,996,132
3,996,133
Http requests for php pages from android
<p>I am trying to request for a php page from my android app. The response text is supposed to be in an EditText view. Well there is no response text. I dont know what am doin wrong but in a normal java class when i system.out.println the reponse, it actually shows. What is it with android? Here is my code:</p> <pre><...
php android
[2, 4]
5,747,193
5,747,194
Android to php (url) to sql, db shows nothing. Works in browser
<p>I execute by new CreateNewThread().execute();</p> <pre><code>class CreateNewThread extends AsyncTask&lt;String, String, String&gt; { @Override protected void onPreExecute() { super.onPreExecute(); pDialog = new ProgressDialog(CreateThread.this); pDialog.setMessage("Creating Thread.....
java android
[1, 4]
1,398,642
1,398,643
how to view Listview edit template for user in ASP.NET
<p>I want the user to be able to switch between list view templates, according to button click event</p>
c# asp.net
[0, 9]
5,297,370
5,297,371
If element exists in a document
<p>It's possible situation that my function is use out of date jquery element. For example when I use closer and callback:</p> <pre><code> $("input").each(function () { var input = $(this); //here for example we remove input from DOM //and insert the new one input $.ajax(url, function(...
javascript jquery
[3, 5]
2,726,437
2,726,438
Get iframe url variable from inside the iframe
<p>I want to use jquery/javascript if possible and grab a url variable frim inside the iframe</p> <p>my iframe link looks like the below - the source changes dynamically</p> <pre><code>&lt;iframe class="box" src="lightbox.html?img=images/lightbox/blue-shoes.jpg" scrolling="no" frameborder="0"&gt;&lt;/iframe&gt; </cod...
javascript jquery
[3, 5]
5,666,122
5,666,123
Javascript : Alert box only once when the user lands
<p>Is there a way to display an alert box literally only once, i.e. when the user hits the website, then when they navigate through it does not appear any more?</p>
javascript jquery
[3, 5]
2,162,105
2,162,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]
5,340,001
5,340,002
How to reference dynamically created controls?
<p>Is there a way to reference dynamically created controls, such as a couple TextBoxes and maybe a RadioButtonList when the user either click a button or changes the selected radio button.</p> <p>I need to insert a record into a database but I need all of the values. I cannot hard-code the controls because they must ...
c# asp.net
[0, 9]
2,087,894
2,087,895
ANDROID: If...Else as Switch on String
<p>I'm writing an Android app for work that shows the status of our phone lines, but thats neither here nor there.</p> <p>I make a call to one of our servers and get returned JSON text of the status. I then parse this putting each line into a SortedMap (TreeMap) with the Key being the name of the line and my own class...
java android
[1, 4]
2,809,483
2,809,484
Display JS Calculation Sum In An Input Field
<p>I want to display the sum of this calculation in an input field:</p> <pre><code>function calculateSum1() { var sum = 0; //iterate through each textboxes and add the values $("input.miles").each(function() { //add only if the value is number if(!isNaN(this.value) &amp;&amp; this.value.len...
javascript jquery
[3, 5]
3,291,887
3,291,888
can a web page be manipulated through ajax from new window?
<p>Hi... I want to know that when a user posts a comment to my site ... to open a web page (in new window, with a fixed width and height like <code>window.open</code> ) which contains the form and after submit, I want to close that windows and show that comment in the parent page through ajax ... (or i guess after clos...
php jquery
[2, 5]
4,181,305
4,181,306
Keep user-only logs displayed in a PHP chatbox
<p>Well, the quetion isn't only "how" to keep them displayed but also how to "store" them. Notice, that I'm a semi-newbie in PHP development when it comes for a live chat application.</p> <p><strong>Application Overview</strong></p> <p>I'd like to creat a web-based chat room with jquery &amp; php. Everything is fine,...
php jquery
[2, 5]
780,190
780,191
onclick div colour should change
<p>Am having several boxes(more than 100) that will create dynamically with</p> <pre><code>&lt;div id="window5"&gt;&lt;/div&gt; &lt;div id="window18"&gt;&lt;/div&gt; &lt;div id="window190"&gt;&lt;/div&gt; </code></pre> <p>Now If i click on one box the colour should be red,then if i click on the other box the colour s...
c# javascript asp.net
[0, 3, 9]
397,022
397,023
jQuery random image fader
<p>I have a header area which is divided up into block areas for images, these images are absolutely positioned within the block and are all different heights and widths.</p> <p>I have a URL /random-image?width=x&amp;height=y&amp;random=34234 which generates a random image to use for the specific place.</p> <p>I want...
javascript jquery
[3, 5]
2,313,853
2,313,854
How to upload files to ftp using asp.net and C#?
<p>I tried to upload image through ftp using asp.net &amp; c# but it doesn't work. Please guide me to solve the issue asap.</p> <pre><code>try { //host name //string ftphost = "fubar.walnut.com"; string ftphost = "fubar.walnut.com"; //file path ...
c# asp.net
[0, 9]
4,334,077
4,334,078
how do I strip white space when grabbing text with jQuery?
<p>I'm wanting to use jQuery to wrap a mailto: anchor around an email address, but it's also grabbing the whitepace that the CMS is generating.</p> <p>Here's the HTML I have to work with, the script as I have it and a copy of the output.</p> <p>html</p> <pre><code>&lt;div class="field field-type-text field-field-ema...
javascript jquery
[3, 5]
1,428,480
1,428,481
multirow(array) form validation preventing user to leave textbox if user enters wrong value
<p>Is it possible in php (multirow(array) form) to prevent user from leaving textbox when user enters wrong value?</p>
php jquery
[2, 5]
4,821,328
4,821,329
Multiply input value on keyup and add them
<p>I have some input generated like that</p> <pre><code>while($donnees = mysql_fetch_array($reqmodel)){ ?&gt; &lt;form action="#" name="order" method="post"&gt; &lt;div style='float:left;width:100%'&gt; &lt;input type='text' name='order_item_sku[]' value='&lt;?php echo $donnees['product_sku'] ;?&gt;'&gt; &lt;input typ...
php jquery
[2, 5]
4,826,973
4,826,974
Send message from a hotspot to a connected client
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/10777678/send-message-from-a-basic-server-to-a-specific-client">Send message from a basic server to a specific client</a> </p> </blockquote> <p>Here is a scenario. I have enabled a hotspot through wifi tethering...
java android
[1, 4]
129,849
129,850
submitting form with two buttons
<p>I have 2 buttons in HTML form. And both of them should submit the form. I would need to capture which button has been clicked so i can use it to perform different actions based on which button was clicked.</p> <p>I am able to submit the form with both the buttons but how would i capture which button was clicked in ...
php jquery
[2, 5]
1,924,621
1,924,622
Customizing Spinner Android?
<p>I have spinner and code <code>android.R.layout.simple_spinner_dropdown_item</code>. But I get weird height like this:</p> <p><img src="http://i.stack.imgur.com/VhjzK.png" alt="enter image description here"></p> <p>I want to have <code>dropdown_items</code> like they are by default but also I don't want to have wei...
java android
[1, 4]
3,658,713
3,658,714
call a function in jquery namespace from outside the jquery namespace
<p>here is the code</p> <pre><code>test ('e'); function test(e) { test2(e); //undefined } (function ($) { function test2(e) { alert('test'); } }) </code></pre> <p>Because of something restriction, i have to call like this. Anyone knows?</p>
javascript jquery
[3, 5]
2,009,801
2,009,802
javascript windows "Yes/No" asking twice?
<p>I am using below code for javascript window "Yes/No". It is firing twice. Is there any way I can avoid this? Or use any other code?. I need this code behind.</p> <pre><code>Response.Write("&lt;script language='javascript'&gt; { self.close() }&lt;/script&gt;"); </code></pre>
asp.net javascript
[9, 3]
661,467
661,468
Android face detection
<p>Can someone tell me if there is <code>Face detection</code> API for android? If so can someone share the link and any sample code that would help ?</p> <p>Edit: I need to detect in real time (from the camera - like from a video)</p>
java android
[1, 4]
4,814,011
4,814,012
Dynamically create and repeat the set of fields
<p>I have a PHP form which shows one 'User details' block by default. 'User details' section has first name, last name and address etc. I have a requirement to repeat the same block after clicking on the button so the user can enter 'n' number of users into on the form. Also I need to save all the information in MyS...
php javascript
[2, 3]
109,116
109,117
Slide up from bottom with jQuery?
<p>I have a dropdown menu which animates the dropdown by increasing height, however it goes from the top to the bottom. Is it possible to go from the bottom to the top?</p> <p>Here's my code:</p> <pre><code>animate({height:'show',opacity:'show'}, ddsmoothmenu.transition.overtime) </code></pre> <p>Thanks.</p>
javascript jquery
[3, 5]
4,558,797
4,558,798
Redirect and count down, jquery onclick
<p>Here is our current code:</p> <pre><code>$('#click').click(function(e){ var country = $("#country").val(); $this = $("#conv"); $this.css({"text-align":"center","font-size":"18px"}); $this.html("&lt;div style='margin-top: -4px;'&gt;We're sorry but this website is not available in your country &lt;str...
javascript jquery
[3, 5]
1,312,358
1,312,359
Which pattern jQuery $.fn.extend or $.extend use
<p>I was just reading <a href="http://stackoverflow.com/questions/3790909/javascript-module-pattern-vs-constructor-prototype-pattern">Javascript: Module Pattern vs Constructor/Prototype pattern?</a> and I was curious to know that when we extend our class with $.fn.extend or $.extend which pattern is used, Module Patter...
javascript jquery
[3, 5]
5,249,517
5,249,518
javascript to hide div if homepage
<p>I want to hide a #div if it's on homepage. Anyone can help with the javascript or php?</p> <p>I found something like this but its certainly not working. Bear with me as im really clueless on codes.</p> <pre><code>&lt;?php if (!is_page('home') ) { echo &lt;div id="toolbar"&gt;;} ?&gt; </code></pre>
php javascript
[2, 3]
853,748
853,749
edittext validation
<p>I have following small block of code to set validation on edit text when a button is pressed and display the validation message in a dialog.</p> <p><strong>Java Code</strong> </p> <pre><code>setContentView(R.layout.addnewcontacts); Button buttonSave = (Button) findViewById(R.id.buttonSave); ...
java android
[1, 4]
386,976
386,977
Wrap all non-child HTML into a DOM-element
<p>I am working on a little hyphenation engine for a website, and I got to get my head around this. I am matching all <code>p.hyphenatable</code> and send the content to a PHP-script to have it hyphenated like this:</p> <pre><code>jQuery(".hyphenatable").each(function() { var hyphenatableObject = jQuery(this); ...
javascript jquery
[3, 5]
3,397,127
3,397,128
Upload half file?
<p>Is it possible to upload a specific part of the file rather than the whole file? Say, I want to upload only first 100 bytes of the file, or the rest of the file given offset 100 bytes?</p>
php javascript
[2, 3]
3,602,506
3,602,507
update query slider position based on value from textbox
<p>how can i update slider's position if slider's value differs from value from a textbox ?</p> <pre><code>$("#slider").slider({ max: 30000, min: 1000, step: 1000, range: true, animate: true, values: [1000, 15000], slide: function(even, ui) { $("#edit-field-price-value-min").val(ui.values[0]); $("#edit-field-price...
php javascript jquery
[2, 3, 5]
675,769
675,770
how to make running activity disable while progress bar running in java android
<p>i have an activity or screen which contains mainly 3 views (ex.textview1,textview2,textview3) and a progress bar.</p> <p>While progress bar running or loading if i click on either of textview1,textview2,textview3, corresponding next activity or screen is opening.</p> <p>But i want like while progress bar running r...
java android
[1, 4]
5,320,146
5,320,147
Firing event when TextBox is blank
<p>I need to fire an event when a TextBox in ASP.NET has been defocused - I currently handle the TextChanged event for this, but this obviously doesn't fire if they don't type into the box and then defocus. Can I do this?</p> <p>EDIT: To clarify, I want to fire a server side event - not client side</p>
c# asp.net
[0, 9]
4,360,175
4,360,176
How to get excel functions kind of functionality in text fields?
<p>I have a page which looks like below. Where some of the data are from database and there will be form fields also beside database data. All are dynamic so we need to validation for every field also. </p> <p>Please check this <a href="http://jsbin.com/efinak/22/edit" rel="nofollow">http://jsbin.com/efinak/22/edit</a...
php javascript jquery
[2, 3, 5]
3,403,816
3,403,817
Compulsory option of jQuery plugin
<p>I am making my custom jQuery plugin whose code is this:</p> <pre><code>(function($) { $.fn.foo = function(options) { var opt = $.extend({}, $.fn.foo.defaults, options); return this.each(function() { //do operation with opt }); }); $.foo.defaults = { item1...
c# php asp.net jquery
[0, 2, 9, 5]
2,072,844
2,072,845
Hot to map html input properties to object with jQuery?
<p>I want to read all page inputs ids and values into object and pass it to function which loop throuhg them and extract id and value.</p> <p>I started with:</p> <pre><code>function send() { var data = []; var inputs = $(":text"); for (var i = 0, l = inputs.length; i &lt; l; i++) { var input; input.id = inputs[...
javascript jquery
[3, 5]
3,548,235
3,548,236
How can I performance tunning on that javascript code? (JQuery selector based)
<p>How can I performance tuning in that code</p> <pre><code>var isHighLighted = this.HighlightCell(this.GetOutcomeInList(i), i, "selectedByEditor "+((isCommonChoice) ? "Common" : "") ); if (!isHighLighted) { isHighLighted = this.HighlightCell(this.GetOutcomeInOtherBetsButton(i), i, "selectedByEditor "+((isCo...
javascript jquery
[3, 5]
4,998,784
4,998,785
Why didn't header files catch on in other programming languages?
<p>Based on the response to this question: <a href="http://stackoverflow.com/questions/333889/in-c-why-have-header-files-and-cpp-files">Why does C++ have header files and CPP</a></p> <p>I have seen the responses and understand the answers - so why didn't this catch on? C# Java?</p>
c# java c++
[0, 1, 6]
1,983,653
1,983,654
Using enum in c++ and c# via c++ header
<p>I've got a server written in C++ that sits at the end of a named pipe, um, serving things. The commands which can be sent to the server are defined in an enum which is located in a header file.</p> <pre><code>enum { e_doThing1, e_doThing2 ... e_doLastThing }; </code></pre> <p>The value of the desir...
c# c++
[0, 6]
2,781,796
2,781,797
php javascript callback function
<pre><code>O3Global.Ajax.loadXML('Lackeys', 'hire', aPost, function (oResponse) { hireCallback(oResponse, iCurLackey, iCredits); }, Lackeys.cancel); </code></pre> <p>Is the oResponse calling back 2 times? how to handle this call back?</p> <pre><code>this.doHire = function() { if (!aLackeys[iCurLackey]) retur...
php javascript jquery
[2, 3, 5]
3,638,109
3,638,110
Javascript/jQuery undefined
<p>The reason that the title is named "jQuery / Javascript undefined" isn't because that I assume jQuery is a language, I do know that jQuery is a library of javascript language, just in case if some pedantic readers read this. The reason why I wrote that as the title is because I don't know what is wrong with the code...
javascript jquery
[3, 5]
5,844,209
5,844,210
What is PHP's pendant to pythons encode('hex')?
<p>In python you can encode a string as</p> <pre><code>encoded = text.encode('hex') text = encoded.decode('hex') </code></pre> <p>What are the corresponding functions in php?</p>
php python
[2, 7]
5,391,292
5,391,293
Haschildnodes() does not work
<p>I have a tree view and a delete button on the webpage. The tree view loads with parent nodes and child nodes. If I click on delete after selecting a parent node with child nodes, it should give me a message provided below accordingly with a confirmation box.</p> <p>Right now, when I select a parent node without any...
javascript asp.net
[3, 9]
1,509,605
1,509,606
jQuery access parent object attribute?
<p>So I have this code:</p> <pre><code>function theObject(){ this.someelement = $("#someelement"); this.someotherelement = $("someotherelement"); this.someelement.fadeOut(500, function(){ this.someotherelement.attr("title", "something"); this.someelement.fadeIn(500); }); } </code></pre> ...
javascript jquery
[3, 5]
1,554,941
1,554,942
Why jQuery doing unwanted multiple actions of single command?
<p>When i resize browser the it gives multiple alerts. I used "return false" not working. </p> <p>If I used unbind()/unbind('resize') then it works but it creates an other problem- the resize() function stops working from second time browser/window resize.</p> <p>My code-</p> <pre><code>&lt;script src="jquery.min.j...
javascript jquery
[3, 5]
5,797,341
5,797,342
Get Current Date time of the server on which my website is hosted
<p>Am working on a functionality that involves a few timing based tasks.I need to retrieve current EST time to continue with my functionality.I do not need the system time since it may be different for each users.Is it possible using javascript or c# to get Eastern Standard Time from another time server or get time fr...
c# javascript asp.net
[0, 3, 9]
1,111,155
1,111,156
Doesn't jQuery('#id') do the same thing as document.getElementById('#id') in javascript?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/4069982/document-getelementbyid-vs-jquery">document.getElementById vs jQuery</a> </p> </blockquote> <p>I have a function that will take all the spans with a certain class ("jobStatus") and remove an additional c...
javascript jquery
[3, 5]
822,215
822,216
Android Application Class Globals instance or static
<p>I am using the android.app.Application class (a subclass) to store some "global" information. An example is the user location the last time we grabbed it from the GPS/wifi. My question is whether I should be storing these "globals" as static variables or instance variables. Not sure which scenario is better or mo...
java android
[1, 4]
3,053,106
3,053,107
how to insert php on jquery/javascript
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/9451212/how-to-insert-php-into-jquery">How to insert PHP into jQuery?</a> </p> </blockquote> <p>how to insert php on jquery/javascript ? for example </p> <p>php </p> <pre><code>$tot =4; </code></pre> <p>javas...
php jquery
[2, 5]
4,634,353
4,634,354
Swap image and show image zoom
<p>I have a website using BigCommerce that has a feature on the product page that displays some thumbnail images. When a user clicks on a thumbnail image, it shows some description for that image and should also swap the main image on the left to the large version of the selected thumbnail.</p> <p>The script is doing ...
javascript jquery
[3, 5]
752,494
752,495
What are the benefits and/or pitfalls of calling a function directly from an anchor tag vs creating events onload?
<p>Is there a proper/standard way?</p> <pre><code>&lt;a href="#" onclick="function();"&gt;Link&lt;/a&gt; </code></pre> <p>vs</p> <pre><code>&lt;script&gt; $(document).ready(function(){ $('#link1').click(function(){ ... }); }); &lt;/script&gt; &lt;a href="#" id="link1"&gt;Link&lt;/a&gt; </code></pre>
javascript jquery
[3, 5]
1,000,315
1,000,316
Validation of viewstate MAC failed -View State Error
<p>In my website, when a web page is idle for more than 5 minutes, then that page is not working until I refresh. The following error occurs:</p> <blockquote> <p>Error: Sys.WebForms.PageRequestManagerServerErrorException: Validation of viewstate MAC failed. If this application is hosted by a Web Farm or clus...
c# asp.net
[0, 9]
4,578,150
4,578,151
Drop down list issue
<p><strong>Html</strong></p> <pre><code> &lt;a id="btn" class="btn" href="#."&gt;&lt;/a&gt; &lt;div id="main-dropdown" class="hide"&gt; &lt;ul id="dropdown"&gt; &lt;li&gt;&lt;a href="/"&gt;Back &lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="/foo"&gt;Foo &lt;/a&gt;&lt;/li&gt; &lt;...
javascript jquery
[3, 5]
332,800
332,801
ckEditor potentially dangerous Request.Form value
<p>I am using <strong>ckeditor control</strong> in my web site to add page contents, On edit page when i changed contents and click on submit button i am getting error as <code>potentially dangerous Request.Form value was detected from the client</code> i have also used <code>ValidateRequest="false"</code> but still i...
c# asp.net
[0, 9]
5,894,104
5,894,105
What are some fun beginner-level Android programs to try?
<p>I'm beginning to write Android applications for one of my CS classes and I want to know what some fun things to try would be. I'll be writing them in Java (which I'd say I'm alright with) but I'm completely new to Android/mobile programming. Advice and suggestions are much appreciated. I want to learn what I can do....
java android
[1, 4]
1,534,400
1,534,401
how to change supports disabled attribute to true in c#
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/8521688/disabled-button-with-a-alert-is-clickable-in-ie8-browser-compatibility-issue-in">Disabled button with a alert is clickable in IE8 (browser compatibility Issue in Asp.net website)</a> </p> </blockquote> <...
c# asp.net
[0, 9]
4,021,665
4,021,666
jQuery Confirm Before Submit
<pre><code>&lt;form action ="/submit-page/" method='post' class="editable"&gt; &lt;fieldset&gt; &lt;select name="status" id='status'&gt; &lt;option value="Submitted"&gt;Submitted&lt;/option&gt; &lt;option value="Canceled"&gt;Canceled&lt;/option&gt; &lt;option value="Application"&gt...
php javascript jquery
[2, 3, 5]
481,139
481,140
Sending Binary Data problem
<p>I'm trying to send binary data from a database over an ASP.NET page. I can see that the property data.Length is 2400, that means 2400 bytes, right? The weird thing is that when i receive this data the size is ~4kb, and appears to be corrupted. Any idea what the problem might be?</p> <pre><code>byte[] data = proxy.g...
c# asp.net
[0, 9]
1,798,732
1,798,733
How can i use Python and PHP together effectively
<p>I know PHP and i am currently learning django Python. </p> <p>I am wondering the strengths and weaknesses of each language so that i can effectively use them together in order to program fater and more securly.</p> <p>I know that PHP has much better(easier) string manipulation but python has better security. What ...
php python
[2, 7]
3,239,767
3,239,768
How to programatically signin to website and download a file
<p>I am visiting a website regularly and need to download a file. When I visit the site it prompt me for login (No separate page for login. they might have used a script on Default.aspx) and then I need to make 3, 4 more clicks. After that I reach my file-download link.</p> <p>I also tried to use Javascript make auto ...
c# javascript asp.net
[0, 3, 9]
2,428,851
2,428,852
How to use JavaScript to print the contents on a div?
<p>I would like to use the print() function to print the contents of a <code>&lt;div class="pagecontent"&gt;&lt;/div&gt;</code></p> <p>I know you can do something like <code>onClick="window.print()"</code> but this prints the entire window...I only want the contents of <code>.pagecontent</code> to be printed.</p> <p>...
javascript jquery
[3, 5]
766,836
766,837
Passing Array of string from C# application to C++ DLL
<pre><code>string []URL = {"www.facebook.com","www.orkut.com","www.yahoo.com"}; Int32 result = URL.Length; SetPolicyURL( URL,result ); </code></pre> <p>this is my C# code where i am trying to pass the array of string to C++ Dll which is imported like this</p> <pre><code> [PreserveSig] ...
c# c++
[0, 6]
1,087,595
1,087,596
I want the elements which are in sequence (1,2,3) (6,7) (10,11) (15,16,17). separately
<p>Am having following array:<code>arrtooth</code></p> <pre><code>var arrtooth = tooth.split('|'); </code></pre> <p>It gets value </p> <pre><code>arrtooth=[1,2,3,6,7,10,11,15,16,17]; </code></pre> <p>I want the elements which are in sequence <code>(1,2,3) (6,7) (10,11) (15,16,17)</code>. separately.My code is in Jq...
javascript jquery
[3, 5]
1,910,157
1,910,158
On button click, select a sibling element with JQuery
<p>I have this code:</p> <pre><code>&lt;div class="item"&gt; &lt;div class="hidden"&gt;44&lt;/div&gt; &lt;input type="submit" id="btnAddCommentForAnswer" value="Add Comment" /&gt; &lt;script type="text/javascript"&gt; $(document).ready(function () { $('#btnAddCommentForAnswer').click(function () { ...
javascript jquery
[3, 5]
2,401,271
2,401,272
Jquery and closure or function reference not working?
<p>I think it has something to do with a function running in a difference scope from where the jquery library is not accessable (shown being called as the last parameter on the second line below)</p> <pre><code>var funcExpandHeight = container.animate({ height: '300px' }, 300, function () {}); foo.animate({ he...
javascript jquery
[3, 5]
3,744,867
3,744,868
Jquery modification to add 1 and save the number in a txt file on every click
<p>I am using the following click function for a purpose. What can I add so it will add 1 in a txt file when it is clicked? Like a counter on how many times it was clicked.</p> <p>Thank you</p> <pre><code>$("#clearme").click(function(e) { e.preventDefault(); // i have some stuff here }); </code></pre>
javascript jquery
[3, 5]
5,079,196
5,079,197
toggle checkbox attribute with jquery
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/1467228/click-toggle-with-jquery">Click Toggle with jQuery</a> </p> </blockquote> <p>i tried 1 hour to toggle a checkbox. tried everything but i cant get this to work. </p> <pre><code>$('#edit-customer-profile-...
javascript jquery
[3, 5]
205,710
205,711
ssl.SSLHandshakeException occurs when try to read xml from URL
<p>I got SSLHandshakeException when try to read XML from URL. The error happens in this line: Document doc = db.parse(new InputSource(url.openStream())); </p> <pre><code> protected LinearLayout doInBackground(String... string) { LinearLayout layout = new LinearLayout(DevicesActivity.this); layout.se...
java android
[1, 4]
4,758,170
4,758,171
Is it possible to replace a table cell without deleting it with javascript or jQuery?
<p>Is it possible to replace a table cell without deleting it with javascript or jQuery? For example, if I have a table with several rows, each row having 5 cells, could I change the first cell of the first row through assignment instead of removing the cell and then inserting a new one?</p> <p>EDIT (simplified):</p>...
javascript jquery
[3, 5]
5,174,330
5,174,331
Time to transfer skills to java and resources
<p>I'm thinking about learning Java. I'm already a more than competent c# developer. Has anybody else been in a similar situation? Roughly how long (whilst doing a typical 9-5 job) did it take you to transfer your skills? What resources would you recommend?</p> <p>(When talking about resources, I specifically mean...
c# java
[0, 1]
4,325,220
4,325,221
jQuery and document.ready() firing twice
<p>I know it is quite a common issue, but even with research I was not able to understand what goes wrong in my call to document.ready() Javascript function.</p> <p>For some reason, it gets called twice, even when I don't execute anything else than an alert.</p> <p>As I said in the title, I am using jQuery, and figur...
javascript jquery
[3, 5]
2,453,014
2,453,015
Why is my Javascript not working from the PHP file?
<p>I have the following files. For some reason my JavaScript (inside PHP 'echo' tags) does not work:</p> <p>HTML (index.php):</p> <pre><code>&lt;form action="submit.php" method="post"&gt; &lt;div id="edit-box"&gt; &lt;INPUT type="submit" name="save-text" id="save-text" value="Save"&gt; &lt;textarea id="editor" name="...
php javascript
[2, 3]
2,185,980
2,185,981
How to bind tooltip on datagrid rows?
<p>I'm trying to bind datagrid rows with tooltip. In which event should i write the code? The row created event doesnt hold my data to bind and returning blank. The code reference is given below:</p> <pre><code> protected void gdvActionItemView_RowCreated(object sender, GridViewRowEventArgs e) { e.Row.Ce...
c# asp.net
[0, 9]
4,247,117
4,247,118
How to hide check all, clear all checkbox
<p>I am having check box in the column header. The function of this is to check or uncheck all the check boxes in that column.If the row check box is checked and say delete, that row can be deleted from the dataTable.</p> <p>If the row object is used in some other table as a foreign key i put '-' in that row instead o...
javascript jquery
[3, 5]
4,222,144
4,222,145
jQuery Children selector question
<p>I have the following code:</p> <pre><code>$("#Table1 tbody").children().each(function(e){ $(this).bind('click', function(){ // Do something here }, false) }); </code></pre> <p>The Table1 html table has 2 columns; one for Names and one for a <code>&lt;button&gt...
javascript jquery
[3, 5]
557,219
557,220
Finding the name of "this"
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/2236028/jquery-finding-the-name-of-the-element-i-have-a-reference-to">jquery - finding the name of the element I have a reference to</a> </p> </blockquote> <p>I have a small problem with droppables / draggables....
javascript jquery
[3, 5]
5,517,041
5,517,042
Fancybox for .flv
<p>Is there a way to manipulate jquery Fancybox plugin to display flash video files (.flv)? I mean making it behave like Malsup's Media plugin that can handle both .swf and .flv</p> <p><strong>Putting my question in context:</strong></p> <p>I have a php file that works dynamically to read the videos:</p> <pre><code>...
php jquery
[2, 5]
2,606,410
2,606,411
How can I add a simple counter function in javascript jquery?
<p>I'm using Shadowbox a jquery overlay and I wanted to count how many people are actually using the overlay. Thus, I would need a function that would write a counter to a file or sending a query through a php api...</p> <p>has to be a a php url api because I cant use php on the server where the overlay is.</p> <p>So...
php javascript jquery
[2, 3, 5]
4,116,392
4,116,393
JQuery - using .on with element insertion
<p>I have a function which creates a tooltip for specific objects. Currently, I am running a tooltip function after ajax insertions to create and append the new tooltip objects. I am curious if there is a way to use .on() to auto-run the tooltip function on insertion, rather than manually running it. </p> <p>For insta...
javascript jquery
[3, 5]
5,334,674
5,334,675
how to call an ajax request from subdomain
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/3076414/ways-to-circumvent-the-same-origin-policy">Ways to circumvent the same-origin policy</a> </p> </blockquote> <p>Currently i'm trying to to call <code>site.com/ajax/countPM</code> from <code>jack.site.com<...
php javascript jquery
[2, 3, 5]
1,033,429
1,033,430
Looking for a programmer
<p>Where is a good place to find a programmer to assist me in the endeavour of creating a free computer game. Something fun. I would provide all of the artwork and i have a couple good ideas, one in particular that i have a few sketches for (I have more of a cartoon style and an obsession with beards). I know this isnt...
java c++
[1, 6]
240,903
240,904
How to set text of Image Button (Android)?
<p>In my Android project, I've a image button whose background is set to some image. I want so set some text on the image button. How do i do that/</p> <p>I want to set the text because localization would be used in the project....</p>
java android
[1, 4]
2,967,882
2,967,883
How can I reverse the order of HTML DOM elements inside a JavaScript variable?
<p>I need to print out receipts that inserted into my database, and the latest receipt should be on the top of my page. But when I query my database, I store all the data inside a var s, and naturally it will make the data that was inserted earliest on the top of my page, how do I reverse this?</p> <pre><code>function...
javascript jquery
[3, 5]
5,068,012
5,068,013
Deserilization an object in web browser
<p>I have a serialized object in C# .net 4 which contains some images and strings. </p> <p>What I want is send that object to web browser and deserialize it in client's web browser. </p> <p>What are the technologies that I will need? Is is possible to do this? My requirement is to save a class with images and few str...
c# asp.net
[0, 9]
5,591,205
5,591,206
When you use jQuery .removeClass() does it return an error when run on an element that does not have that class?
<p>I have four html elements that when clicked I want to have a specific class applied to. The problem is that that class is only for one of the four at any one time. I want to when one element is clicked have that class removed from the other three elements and applied to the one that was clicked. If I were to run a l...
javascript jquery
[3, 5]
3,986,560
3,986,561
How can I add a GET param to some anchor elements in jQuery?
<p>I have a bunch of <code>a</code> elements and I want to add a GET param to their <code>href</code> attribute.</p> <p>I want to use <code>?</code> or <code>&amp;</code> where appropriate.</p> <p>For example, <code>http://example.com</code> should become <code>http://example.com?extra=true</code> and <code>http://ex...
javascript jquery
[3, 5]
5,461,714
5,461,715
The remote server returned an error: 227 Entering Passive Mode ()
<p>I am doing code which uploads file from one server to another, Following is my code:</p> <pre><code> string CompleteDPath = "ftp://ExampleURL/photos/"; string UName = "USerName"; string PWD = "Password"; WebRequest reqObj = WebRequest.Create(CompleteDPath + fileName); reqObj.Met...
c# asp.net
[0, 9]