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
682,427
682,428
How do I find if an element contains a specific class?
<p>I need to check if an element contains a certain child class using JQUERY.</p> <p>I tried:</p> <pre><code>if ($('#myElement').has('.myClass')) { do work son } </code></pre> <p>Didn't work.</p> <p>My html code is laid out like this:</p> <pre><code>&lt;div id="myElement"&gt; &lt;img&gt; &lt;span&gt;som...
javascript jquery
[3, 5]
5,756,805
5,756,806
Use of Response.Redirect in C#
<p>I am working on a website that I inherited (ASP.NET and C#), and I noticed that in almost EVERY method in the code behind of the project pages (except some helper methods), the original author uses Response.Redirect() to redirect to a page (typically home.aspx, but not always).</p> <p>What is the purpose of doing t...
c# asp.net
[0, 9]
3,886,511
3,886,512
using javascript .preventDefault() inside an asp server control
<p>I am having an asp.net sever control as below</p> <pre><code>&lt;asp:HyperLink Visible='&lt;%# (GetAnswer(Eval("AnsQID"))) != 1 %&gt;' ID="HyperLink1" runat="server" NavigateUrl="#" ToolTip='Like this answer' onclick="javascript:(likeThis(this))"&gt;Like &lt;/asp:HyperLink&gt; </code></pre> <p>I am handling ...
javascript jquery asp.net
[3, 5, 9]
2,130,515
2,130,516
Previewing TIF documents on the Web (.Net C#)
<p>I am looking for a way to display TIF documents on a web page. It basically needs to render a Multi-page TIF in some form of container on a web page.</p> <p>Do I need a control or is there a simple way to build something like this? Is there any free stuff that we could simply implement?</p> <p>I have looked at the...
c# asp.net
[0, 9]
2,344,137
2,344,138
Prevent jQuery from traversing parts of document
<p>I am working on a website with heavy use of Ajax request that build up a tab based structure in the DOM. My concern is that the DOM will accumulate so many tabs and elements that JQuery selectors will eventually perform poorly.</p> <p>Is there a way to maintain a large DOM, but offer JQuery a "hint" to exclude cert...
jquery asp.net
[5, 9]
4,934,045
4,934,046
Is there a replaceWholeText Equivalent in jQuery? - How to replace TextNode
<p>Is there a way in jQuery to replace only the textNode of an element without destroying any child DOM elements?</p> <pre><code>&lt;a href="#"&gt;&lt;span&gt;Text we don't want replaced&lt;/span&gt; Text we want replaced&lt;/a&gt; </code></pre> <p>When using <code>jquery.text([content])</code> it will replace any ch...
javascript jquery
[3, 5]
153,419
153,420
How to Click and Drag Columns Using JQuery - Example Included
<p>I'm trying to create a similar effect to the one seen <a href="http://www.pubdesign.com.br/" rel="nofollow">here</a>.</p> <p>I've looked through their Javascript and I feel like it's very specialized to their website. Besides, I don't want to steal hard-earned code.</p> <p>How does one create the effect where the ...
javascript jquery
[3, 5]
940,913
940,914
Asp.net same page but different content depends on user
<p>I have a page that needs to have different content depending on if the user is an Owner of a profile, or if the user is a visitor of another user's profile.</p> <p>How do I show different content based on the current user?</p>
c# asp.net
[0, 9]
3,039,904
3,039,905
Jquery droppable live disabling/enabling
<p>I have a some draggables in a list of droppables (1 draggable per droppable li). </p> <p>When I move a draggable from one droppable to another free droppable, I want to diable the receiving droppable, and enable the droppable it is leaving from. </p> <p>In firebug the droppable class gets removed – but the functi...
javascript jquery
[3, 5]
1,569,136
1,569,137
css() function call failing silently?
<p>I am having a strange problem with the css() function. Here's my code snippet.</p> <pre><code>console.log('' + $(this).css('left') + ':' + $(this).css('top')); console.log('Desired position - ' + return_to_left + ':' + return_to_top); $(this).css('top', return_to_top + 'px'); $(this).css('left', return_to_left + 'p...
javascript jquery
[3, 5]
5,253,773
5,253,774
ASP .NET - RequiredFieldValidator creates space after textbox
<p>I have a DetailsView with a number of textboxes setup with RequiredFieldValidators.</p> <p>The code for both is:</p> <pre><code>&lt;InsertItemTemplate&gt; &lt;asp:TextBox ID="TextBox1" runat="server" Text='&lt;%# Bind("date_time") %&gt;'&gt;&lt;/asp:TextBox&gt; &lt;asp:RequiredFieldValidator ID="Re...
c# asp.net
[0, 9]
4,905,230
4,905,231
Coverting MS Word documents to HTML
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/253834/convert-doc-to-html-in-php">Convert .doc to html in php</a> </p> </blockquote> <p>I want to know how can I convert word to html so that I can embed it in a web page. I want to use php (I prefer it). How c...
php javascript
[2, 3]
4,878,376
4,878,377
Converting Some Code to jQuery
<p>Hey guys, I have some code that I found that I would rather use as jQuery instead of direct JavaScript. Hopefully you guys can help me convert it:</p> <pre><code>var sub = document.getElementById('submit'); sub.parentNode.removeChild(sub); document.getElementById('btn-area').appendChild(sub); document.getElementByI...
javascript jquery
[3, 5]
2,429,139
2,429,140
how can i stop my sound file from being auto download in php jquery
<p>i have following code in my php jquery call...</p> <pre><code>&lt;object type="application/x-shockwave-flash" data="mysounds/player.swf" id="audioplayer1" height="1" width="1"&gt; &lt;param name="movie" value="mysounds/player.swf" /&gt; &lt;param name="FlashVars" value="playerID=audioplayer1&amp;autostart=yes&amp...
php jquery
[2, 5]
4,773,882
4,773,883
how is it calculated?
<p>I want to know why the answer of this script is </p> <pre><code>var h1Array = $('h1').first().text().split(' '), h1Last = h1Array[h1Array.length-1], answerElem = $('#jschl_answer'); answerElem.val(22+14*10); answerElem.val(pars...
javascript jquery
[3, 5]
1,799,638
1,799,639
How to update views in activity with data from another thread?
<p>I need to update views in activity every 1-2 seconds with data that i must get from the other thread. How can i do that ? I was reading about broadcast receiving, but i can`t imagine how to do that in my case. Can you ,please , give me some example with it, hope with comments ) Thanks, P.S. Sorry for clumsy english....
java android
[1, 4]
3,182,607
3,182,608
Getting source code from page AFTER jQuery function in PHP
<p>I'm trying to get the source code from <a href="http://www.cinesion.ch/horaires" rel="nofollow">this page</a>, to get the code of the timetables, and then parse it. </p> <p>But when I fetch it with <code>file_get_contents</code>, the <code>div</code> I'm looking for is <strong>empty</strong>. I searched in the code...
php jquery
[2, 5]
5,753,557
5,753,558
Dynamically generate a <li>?
<pre><code>&lt;span id="n-email" class="email-btn"&gt;&lt;a href="#."&gt;&lt;/a&gt;&lt;/span&gt; </code></pre> <p>On clicking this, a list item with a text field shows</p> <pre><code>&lt;li id="new" class="select"&gt; &lt;a&gt; &lt;input type="text" id="emails" class="add-email" value="Untitled" onfocus="...
javascript jquery
[3, 5]
3,360,250
3,360,251
Show or Hide div from label Click
<p>I have three labels having folowing code on all with different ids and three divs with different ids</p> <pre><code>&lt;asp:Label ID="CA" runat="server" Font-Bold="False" Font-Names="Arial" Font-Size="10pt" style="padding-top:6px;" ForeColor="#CCCCCC" Height="100%" Text="Current Activities" onmouseover="var b = Ch...
javascript asp.net
[3, 9]
5,147,557
5,147,558
How to make Android emulator boot faster
<p>I'm currently stuck with using Atom CPU desktop for my Android app development. What are the ways to improve its boot time. When running the emulator I can see that the number of cores used by the emulator is just one, I'm running the emulator from within the Eclipse ADT plugin. </p> <ul> <li>How can I make the emu...
java android
[1, 4]
712,215
712,216
hidden field value using javascript/ jquery
<p>I have a page where I am loading a another page and a js file. The child page has a hidden field</p> <pre><code> &lt;input type="hidden" name="eventOk" id="eventOk" value="" /&gt; </code></pre> <p>This child page has a an event which is setting value of this variable:</p> <pre><code>function onEndClientCallBack(s...
javascript jquery
[3, 5]
3,538,541
3,538,542
Checking if an ASP page is dirty before asking user if they want to leave
<p>I have a ASP.NET form and it has a bunch of user inputs, text boxes, checkboxes, etc. I need to be able to check if the user has made an edit on the form without saving and if so prompt then beforeunload. </p> <p>I have a dirty flag that set once the user edits one of the text boxes. If they save the data on the fo...
javascript jquery asp.net
[3, 5, 9]
5,550,530
5,550,531
Pass array of strings via jquery post to ASP.net
<p>What I have is a table that holds 3 input elements, They represent order, name, value. The user can add a new row of 3 inputs to add as many of these sets of data as they want.</p> <p>To accomplish the dynamically adding in of inputs I use jquery's clone method.</p> <p>That works fine and I am able to iterate thro...
c# asp.net jquery
[0, 9, 5]
3,444,234
3,444,235
A Better way? Finding ASP.NET controls, finding their id
<p>I have a method that finds all the controls, iterates through them, determines if they are a textbox,drop down list, etc.. retrieves their ID name, and depending on the ID name it will set a boolean statement (thus I would know if that section of the form is complete, and will email to a certain group of people) unf...
c# asp.net
[0, 9]
385,089
385,090
Translate <body onload function to Javascript function?
<p>Hello guys can you help me to translate this function same functionality just in other way? Because of CloudFlare (CDN) my code isn't working and it will most likely will if to change the approach I'm using.</p> <p>Here is the code: </p> <pre><code> &lt;body onload=\"javascript:document.aa.submit();\"&gt; </code><...
javascript jquery
[3, 5]
3,097,733
3,097,734
passing parameters to an event handler
<p>In jquery how can you pass additional parameters to an event handler function?</p> <p>So for example</p> <pre><code>mySaveFunction: function(i) { var msg = "my message " + i; $.ajax({ ... success: this.successFunction, // i want to pass msg to successFunction ... }); successFunction: function(response) { ...
javascript jquery
[3, 5]
2,527,981
2,527,982
Prevent toggle all items
<p>I have this line of code in an for loop:</p> <pre><code>echo '&lt;toggle_me style="display: none"&gt;&lt;img align="center" src="images/icon/pdf_mail.png" /&gt;&lt;/a&gt;&lt;/toggle_me&gt;'; </code></pre> <p>With this jQuery:</p> <pre><code>&lt;script&gt; $("img").click(function () { $("toggle_me").toggle(); ...
php jquery
[2, 5]
5,850,733
5,850,734
Fetch data which is in between html tags
<p>I have a word document. When I upload that document, I need to fetch the name from that. I always have the name in the first row, the data in the word document is like,</p> <pre><code>Shanish K shanish@gmail.com ..... ...... </code></pre> <p>For this, I just converted the word file to html, and from that am trying...
c# asp.net
[0, 9]
1,923,470
1,923,471
Storing data in session using jquery and accessing that value in PHP
<p>How can I store data in session or cookie using jquery or JS and access it in php?</p>
php javascript jquery
[2, 3, 5]
2,109,981
2,109,982
can I use both php and java for a same web application
<p>I want to use php in place of jsp/servlets for my web app whose service layer and database layer has been written in java. It is possible to do so? If yes, can a web hosting server run both of them simultaneously?</p>
java php
[1, 2]
2,294,901
2,294,902
Detect change in URL hash usining JavaScript
<p>I'm working on a simple application which is single page based (due to project restrictions) and has dynamic content. I understand the dynamic content alright but what I don't understand is how to setup a script that changes the html of a div when the hashtag in the URL changes.</p> <p>I need a JavaScript script to...
javascript jquery
[3, 5]
842,297
842,298
How to share objects between activites, serialization or SingleInstance?
<p>I have certain data in the data model class and want to share this data/object to the other activity. Single Instance could be a good choice but want to finish my previous activity and hence will got null pointer. Please Suggest the best possible way to do it?</p>
java android
[1, 4]
603,345
603,346
jquery paging records and cookie data
<p>Im paging records of data with filter paramters that is stored in a cookie if i select a data record and go to that record and i go back to the paged data the page loads the cookie and and loads the last place where i was in filtering and paging the records the thing is if i were to go any where else in the applicat...
jquery asp.net
[5, 9]
2,357,320
2,357,321
print copyright symbol in TextView
<p>I am parsing the xml which has copyright symbol in some tag which i'm getting as String and displaying it on TextView. But instead of symbol it is printing #174; . Can anyone tell that how can I print appropriate symbol.</p> <p>EDIT: It is like this in xml <strong>Raghav©</strong> and i want to display it like this...
java android
[1, 4]
4,948,742
4,948,743
Python csv.reader() to JS?
<p>I have a python code such as :</p> <pre><code>import csv reader = csv.reader(open('myText.txt', 'r'), delimiter=",") for row in reader: print row[0] + 'is' + row[1] + '&lt;/br&gt;' </code></pre> <p>I look for a similar action/code[1] <strong>in JS or JQuery</strong>. The name of this action is welcome too. I'am ex...
javascript jquery python
[3, 5, 7]
1,700,667
1,700,668
Validating script pasted in a field
<p>I want to add a textarea field to my website where users can paste a whole script into it and save it.</p> <p>What I'm worried about is users trying to inject other code into the field.</p> <p>This is how the script would look ... ID and hex would change but nothing else:</p> <pre><code>&lt;script type="text/java...
php javascript
[2, 3]
3,322,300
3,322,301
How parseInt get its value
<pre><code>parseInt('bcedfg',16) </code></pre> <p>Base on this code I am getting <em>773855</em> in a JavaScript,</p> <p>I go through the conversion table , and not sure how to get this "773855" value</p> <p>my question is how parseint come out with this "773855" value , because I wanted to translate this tiny code ...
c# javascript
[0, 3]
4,801,282
4,801,283
Hiding element after firing click handler
<p>Say I have the following code to add a clickable image after a set of elements. The click handler fires every time the image is clicked which is not what I want. I guess hiding the image using .hide() in the click handler is one approach but I can't figure out how to refer to the img element in the click handler.</p...
javascript jquery
[3, 5]
4,269,256
4,269,257
get number of hours between start and end time(HH:MM) 24Hr
<p>Hai am new to javascript, I have two textboxes with start and end time How to calculate the number of hours between two times which are in 24 hr format (HH:MM)</p>
javascript jquery
[3, 5]
4,428,050
4,428,051
Javascript sort with function not working on iPhone
<p>When calling sort(function) in Javascript on an iPhone it doesn't seem to sort. For example:</p> <pre><code>devices.sort(function(a, b) { return a.name &gt; b.name; }); </code></pre> <p>Are there some known limitations or can someone help me how to do this on an iPhone. It seem...
javascript iphone
[3, 8]
4,462,735
4,462,736
jquery select all textboxes in a listview
<p>I have a listview which is databound to X items. On a submit button click I would like to use jquery to go through the listview rows and do basic form validation. This validation isn't systems critical so I am not worried about someone manipulating or sending back malicious scripts. It is things like, you must have ...
jquery asp.net
[5, 9]
4,643,809
4,643,810
Returning to previous page
<p>If a user is making an edit and clicks cancel, how can i return them to the page before the edit was made? Not jus refering them back to the previous page, but referring them back to how it was before they decided to edit.</p> <p>If i need to me more thorough please ask.</p> <p>I used this code but it just refers ...
c# asp.net
[0, 9]
4,881,537
4,881,538
How can we set the background color in datatable through code-behind?
<p>I am binding my data in a datatable and then bind that datatable into a datagrid. I want that some rows of the datatable should be highlighted with some color. How can we do that from code-behind? </p>
c# asp.net
[0, 9]
2,326,157
2,326,158
jQuery create function and call it on each separately
<p>Hey guys I'm trying to create a function and call it inside another each loop. I got it to work, but the each loop is not working. So I tried to add an extra <code>$(this)</code> and it didn't work either...any help is appreciated.</p> <pre><code>.moveClass { position:relative; } $(function() { $('.a_projectLoa...
javascript jquery
[3, 5]
771,152
771,153
How to get the top position of an element?
<p>Is possible with javascript/jquery to get the top position of an element? </p> <p>The element is a table, if that matter.</p>
javascript jquery
[3, 5]
3,392,146
3,392,147
Get a sibling div with specific class and is not disable
<p>I want to find a div with a class associated with it, but it must not be disabled. I am using following code for getting the next sibling, but it will return the next element with the "menuDiv" class.</p> <pre><code>var nextDiv=jQuery('div.subMenuBarhover').nextAll('.menuDiv:first'); </code></pre> <p>but now I nee...
javascript jquery
[3, 5]
1,055,099
1,055,100
Is it okay to include many .js files to make my code look modular?
<p>I have a page where almost all functions were using Ajax request. I have so many lines of js code. Is it a good practice to dissect my js codes and just include it in my page, for example:</p> <pre><code>&lt;script src="../js_code_func_1.js"&gt;&lt;/script&gt; &lt;script src="../js_code_func_2.js"&gt;&lt;/script&gt...
javascript jquery
[3, 5]
5,957,915
5,957,916
Access a resource name programmatically
<p>I have many string arrays in my resource files, and I want to access them programmatically depending on user input. </p> <pre><code>int c = Getter.getCurrentNumber(); String[] info = getResources().getStringArray(R.array.n_&lt;c&gt;); </code></pre> <p>So if c==12, info should be the string-array with name "n_12". ...
java android
[1, 4]
2,437,643
2,437,644
PHP work with JS Jquery
<p>How do i make PHP work with JS? I mean more like, i want to check if the user is logged in or not, and if he is then it will: $("#message").fadeIn("slow"); ..</p> <p>How should i do this? I have an idea maybe have a file that checks it in php, and then it echo out 1 or 0.</p> <p>And then a script that checks if...
php javascript jquery
[2, 3, 5]
4,188,748
4,188,749
Kinda like dynamic function in java/android
<p>I am coming from PHP to Java and I have some questions about "dynamic" functions. </p> <p>Kinda like in php where you can do an <code>include(VARNAME.".php");</code> and if varname is <code>a</code> it'll include <code>a.php</code> if its <code>x</code> it'll include <code>x.php</code>. </p> <p>I wanna do that in ...
java android
[1, 4]
2,913,080
2,913,081
Trying to fetch ID from inside of repeater
<p>Inside a repeater there's a list of addresses ..when address link button is clicked, the address is shown inside of text boxes above repeater with all text boxes greyed out and an Edit button is rendered on the page OUTSIDE the repeater and below the text boxes..Now how do I edit this address ?</p> <p>I need the Ad...
c# asp.net
[0, 9]
3,252,481
3,252,482
javascript foo.call(object) vs. object.foo()
<p>i was looking on the <a href="https://github.com/jquery/jquery/blob/master/src/core.js" rel="nofollow">jQuery source code</a> and then i saw that they use <code>foo.call(context)</code> instead of <code>context.foo()</code>.<br> for example- assuming <code>this</code> is array they use:</p> <pre><code>return slice....
javascript jquery
[3, 5]
2,293,865
2,293,866
how do use $.post() in jquery?
<p>The program run successful and update the data in Database, but it's didn't display jquery message ("success") under the save button. Processing time "status bar display error logo". So i double click the logo, the error message is "Permission denied". So i thought the error may be in $.post(). Please check my cod...
php jquery
[2, 5]
1,537,818
1,537,819
Bind click handler with variables in scope when created?
<p>I'd like to create a list of items dynamically in jQuery, and dynamically bind a click handler to each one, with the variables in scope at the moment the click handler is created. </p> <p>The code below creates a list of items from 1-6, but the click handler only seems to bind with the value of the final item - the...
javascript jquery
[3, 5]
5,982,172
5,982,173
How to make this code more useful (preventing special characters in textarea)
<p>i am using this code and working fine but the problem with this code is, its not optimized and for an example if i want to add few more characters then i will end-up having ifs.... </p> <pre><code>if (keychar == "#" || keychar == "!" || keychar == "$" ..........) </code></pre> <p>is there a way to optimized this c...
javascript jquery
[3, 5]
1,642,600
1,642,601
calculations and probably approach getting the better with slider, advice really required
<p>I've created a slider consisting of a list of panels, basically when the code loads I want to work out some calculations and present .active dead center of #wrapper, then when you click a panel i want to basically position that .active panel dead center of the page. At the moment my calculations are way off and I'm ...
javascript jquery
[3, 5]
2,195,969
2,195,970
How to escape "[" character in jQuery code
<p>I'm trying to set some values in some INPUT elements but my code doesn't work. See the code below:</p> <pre><code>&lt;?php foreach($languages as $language): ?&gt; $('input[name="product_description\\[&lt;?php echo $language["language_id"]; ?&gt;\\]\\[name\\]]"').val(data.items[0]['volumeInfo']['title']); $('i...
php javascript jquery
[2, 3, 5]
2,022,787
2,022,788
how to read array data without assigned to array variable
<p>I have a file <code>data.json</code>. It has following data</p> <pre><code>[ "101 200", "102 201", "102 202", "103 202" ] </code></pre> <p>How can I read this data using javascript? Notice it is not assigned to any variable and the name of the file ended up with <code>.json</code> but the data inside doesn't look ...
javascript jquery
[3, 5]
4,388,784
4,388,785
Learning JAVA for android
<p>Hi I'm interested in creating applications for android but I have no knowledge of java programming. So what I wanna know is that should I first go through java tutorials or should I learn java specifically for android? Cause I've read that they have some major differences.</p>
java android
[1, 4]
5,272,570
5,272,571
how to mark row on gridview by any value?
<p>i have gridview that contain:</p> <pre><code>Fname|Born aa |03/05 bb |19/01 cc |03/08 dd |19/01 </code></pre> <p>if today is: <code>19/01/2011</code> how to mark in red color the 2 rows that Satisfies the condition ?</p> <p>in C# asp.net</p> <p>thanks for any help</p>
c# asp.net
[0, 9]
1,167,519
1,167,520
Need random virtual keyboard in asp.net
<p>Hi all i need a virtual keybopard to be displayed when user selects an option as use virtual keyboard. This keyboard should be generated randomly for each time i selects the option</p>
c# asp.net
[0, 9]
5,622,282
5,622,283
TextView setText from another class
<p>My problem is that i've a tabhost with two tabs. The first is a listview and the second only have two textviews.</p> <p>What i want is when i click on an item in the listview on tab one, the array position id (int) should be sent to tab/class two, where there is an array who fetches a text by the position id that w...
java android
[1, 4]
5,698,864
5,698,865
Single Instance Login Implementation
<p>I am facing a serious problem in my project (a web application built in ASP.NET 2.0) explained below.</p> <p>Let say I have given userid “singh_nirajan” and A user say “User1” logged into the system using this userid. Now my requirement is whenever other user let say User “User2” try to log in to the system using s...
c# asp.net
[0, 9]
31,369
31,370
StreamReader C# - read only a specific line
<p>I am trying to log only 3rd line (or lines 1 to 3 if logging just one line is not possible) from a webResposne.</p> <p>here is a snippet of the code that I am using for now.</p> <pre><code>StreamReader read = new StreamReader(myHttpWebResponse.GetResponseStream(), System.Text.Encoding.UTF8); String result ...
c# asp.net
[0, 9]
4,276,062
4,276,063
Is it possible to check whether a request is from <script> tag in PHP?
<pre><code>&lt;script src="test.php"&gt;&lt;/script&gt; </code></pre> <p>I want my <code>test.php</code> executed only when it's from <code>&lt;script&gt;</code>, is it possible?</p>
php javascript
[2, 3]
5,353,018
5,353,019
Google Nexus 4.0.4 USB HOST UsbDeviceConnection.bulkTransfer() returns -1 every time
<p>I have a problem with my galaxy nexus 4.0.4. I try to connect to my Device over the USB. I have done all initializations without failure. The <code>UsbDeviceConnection.controlTransfer()</code> function works fine in both directions.</p> <p>However if I call <code>UsbDeviceConnection.bulkTransfer()</code> it always...
java android
[1, 4]
3,469,468
3,469,469
jQuery reversing the direction of an effect
<pre><code>$("#left_image1").delay('1000').animate({width:'toggle'}, 1000); </code></pre> <p>This causes the element to collapse in such a way that it appears to be moving off the LEFT side of the screen. How can I reverse the effect so that the element appears to be moving off the right side of the screen?</p>
javascript jquery
[3, 5]
4,091,685
4,091,686
create bitmap with alpha from multiple drawables
<p>I am drawing multiple resources onto a bitmap via a canvas. I would like the end result of the composite image to have a certain alpha. Right now I'm setting paint's alpha to the level i want and then drawing each bitmap with that alpha, but i know this would create a composite image of a lot of different alphas....
java android
[1, 4]
4,851,134
4,851,135
select option error on server side, but runs on client side
<p>I have selection box and it has values and <strong><a href="http://jsfiddle.net/marafee1243/NLGPT/" rel="nofollow">client example</a></strong></p> <p>and i have server code as below</p> <pre><code> &lt;select name="customer_id" id="customer_id"&gt; &lt;?php get_customer_list_options(); ?&gt; &lt;/select&gt; | ...
php jquery
[2, 5]
1,608,414
1,608,415
How to catch a given user ID to display different Activity in Login?
<p>with this Login form, an admin with (ID: 001) should get a 'AdminActivity' whereas every other userID should get a 'UserActivity', and this is the code. It's not returning the adminID for some reason. Thank you</p> <pre><code>btnLogin.setOnClickListener(new View.OnClickListener() { public void onClick(...
java android
[1, 4]
5,836,645
5,836,646
adding values to the dropdownlist via loop in asp.net
<p>I'm developing web-application, in this I want to add all months values on the client side browser in registration form.</p> <p>I'm doing it manually by adding all months' values one-by-one. I want to know is it possible to add all months with by putting one for loop in my code or not.</p> <p>Suggest me if it's po...
c# asp.net
[0, 9]
2,773,247
2,773,248
Context Menu with TabHost issue
<p>I have a TabHost with 2 Fragments, both lists. The onCreateContextMenu works fine for both, but both onContextItemSelected are "pointing" to the first Fragment class. I'm using different names for the lists in the XML files, so the ID isn't the same.</p> <p>Here is the code for both onCreateContextMenu</p> <pre><c...
java android
[1, 4]
5,603,364
5,603,365
iPhone PHP integration
<p>I want to make an iPhone application that send some data to php web site. </p> <p>Which is the best way to do it? Someone know how application like facebook do it? I can avoid to use SSL?</p> <p>Thanks!</p>
php iphone
[2, 8]
4,375,284
4,375,285
How can I get event of Wi-Fi appearing?
<p>I need to make Android application which should send some data into my server every night. If wi-fi connection is absent application should send data when connection become avaiable automatically. Why can I get event about wi-fi availability? Should I use broadcast receiver? Please, give me an example or idea. Thank...
java android
[1, 4]
4,745,668
4,745,669
What's an easy way to truncate an array with Jquery?
<p>Linq has a convenient operator method called Take() to return a given number of elements in anything that implements IEnumerable. Is there anything similar in jQuery for working with arrays?</p>
javascript jquery
[3, 5]
4,199,138
4,199,139
Save dataset value as an integer
<p>I have a dataset that has just one column and one row. It gives me an integer. I have to save it in an other integer. I am a learner. please help me out! Thanks!</p> <pre><code>Dataset pds; if (pds.Tables[0].Rows.Count &gt; 0) { int Islocationcount = pds.Tables[0].Columns[0].ColumnName[1]; } </code></pre>
c# asp.net
[0, 9]
1,954,006
1,954,007
Detect if iPhone is rotating as it's rotating?
<p>I have the following code which will update the background image of my page when you rotate it a certain way:</p> <pre><code>window.onorientationchange = function() { var orientation = window.orientation; switch (orientation) { case 0: $(".bg-img").css("background-image", "url(" + portrait + ")"...
javascript jquery
[3, 5]
2,280,125
2,280,126
browser back button issue in c#
<p>In my application browser back button is taking user to previous page though user is logged out. i want to prevent this. Browser back button should work properly for logged in user and i don,t want to disable cache.</p>
c# javascript
[0, 3]
1,049,042
1,049,043
How does Wordpress handle HTML Tables interaction with jQuery
<p>I have javascript that gets the width of a table and reduces the css fontsize of text within the table until the table width is less then the width of its parent div.</p> <p>The code bellow shows the principle ONLY.</p> <p>This approach works out side Wordpress. Within Wordpress the fontsize is reduced to 0px and ...
jquery javascript
[5, 3]
10,640
10,641
$("*") with exception?
<p>A long time ago a friend made this for me:</p> <pre><code>$(".rnd1").click(function(){ $("*").click(function (event) { event.stopPropagation(); $(this).fadeOut(); }); $('#random-button').hide(); $('#recover-button').show(); }); </code></pre> <p>now i would like to protect some elem...
javascript jquery
[3, 5]
2,416,505
2,416,506
How to select all values in drop down list by clicking a button using jQuery?
<p>If I use this </p> <pre><code>$("select option").attr("selected", "true"); </code></pre> <p><strong>Or</strong></p> <pre><code>$(function(){ $('select').children('option').attr('selected', 'selected'); }); </code></pre> <p>the list of dropdown will be selected automatically.</p> <p>But in my position I shou...
javascript jquery
[3, 5]
555,942
555,943
how to change value of progress bar
<pre><code> temp_volume=temp_volume-2; if(temp_volume&lt;0) { temp_volume=0; } else { $('#inchat li.'+name_of_inchatting...
javascript jquery
[3, 5]
1,591,743
1,591,744
State storage in GridView
<p>gridview has 20 pages. The user is see first gridview page . He decide to apply highlite style using jquery on few row . Now he move to second page . He apply style this page too. Now when he go back to first page, he cannot see row with style he apply before he move to page 2.</p> <p>How to store state of the rows...
asp.net jquery
[9, 5]
3,612,265
3,612,266
Replacement of the complex character string
<p>The string is "hi\how \ r\ u\" and need to replace "\" with the space.</p> <p>String stringToModify = "hi\how \ r\ u\";</p> <p>stringToModify = stringToModify .replace("\\", "");</p> <p>System.out.println(stringToModify ); </p>
java android
[1, 4]
6,025,443
6,025,444
Error when trying to stream file for download using ASP.NET
<p>Below is my code to download at client when user click on a download link</p> <pre><code>Response.AppendHeader("Content-Disposition", "attachment; filename=.pdf"); Response.TransmitFile(FileName); Response.End(); </code></pre> <p>Content Types are of different: pdf,word,swf,.zip,ppt,xls</...
c# asp.net
[0, 9]
5,495,747
5,495,748
jQuery hover functions IE error
<p>I've been having some difficulty with jQuery hover functions. Proberbly as a result of staring at the same code for far too long, but perhaps someone can help.</p> <p>I have the following function:</p> <pre><code> $("#div1").mouseover(function () { $("#div2:hidden").show(); }); $("#div1").mouseo...
javascript jquery
[3, 5]
117,559
117,560
jQuery JS scroll to top on click works only once?
<p>I'm trying to make a page scroll to top when a link is clicked. Heres what I got so far.</p> <pre><code>&lt;script&gt; jQuery(document).ready(function () { jQuery("ul.pager a").click(function() { scroll(0,0); return false; }); }); &lt;script&gt; </code></pre> <p>Problem with that code is t...
javascript jquery
[3, 5]
5,604,193
5,604,194
How to use javascipt to create auto refresh data only for Repeaters in asp.net?
<p>I want to do a mail system in inbox with function auto refresh in repeaters only for data.How to do it?</p> <pre><code> &lt;asp:Repeater ID="Repeater1" runat="server" DataSourceID="dsInbox"&gt; &lt;ItemTemplate&gt; &lt;tr id="trInbox" class="normal" style='cursor:pointer; font-weight:&lt;%# StyleB...
javascript asp.net
[3, 9]
3,399,394
3,399,395
insert an element at a certain time of the day
<p>what is the best way to do something , like inserting an element at a certain time of the day ? should I use setTimeout() os is there a better way to do it ?</p>
javascript jquery
[3, 5]
1,361,036
1,361,037
Doing this with a for cycle
<p>And now a very easy java question....</p> <pre><code> Object[] objectList={ new Object(name[0], description[0], R.drawable.creep_0), new Object(name[1], description[1], R.drawable.creep_1), new Object(name[2], description[2], R.drawable.creep_2), new Object(nam...
java android
[1, 4]
2,599,863
2,599,864
Javascript setting Date to previous year from the current year
<p>i want to show jquery calendar dates from 1st september 2010 to current date. </p> <p>for example</p> <p>consider if i am spooling a report on 12th january 2011 ,i should allow jquery calendar selection from 1st september 2010 to 12th janyary 2011 .My question is how to set the date to 1st sep 2010 from current d...
java javascript jquery
[1, 3, 5]
5,947,988
5,947,989
Display in a toast array list
<p>How do i display my array list in a toast.. This is the code i have, but it's not displaying the full items in the array..what is my problem?</p> <pre><code>public static EditText txt1; String ag; public static ArrayList&lt;String&gt; playerList = new ArrayList&lt;String&gt;(); String playerlist[]; /** Called whe...
java android
[1, 4]
2,551,952
2,551,953
jQuery reduce the width from left to right
<p>Hello I have a DIV that has a width of 500px.</p> <p>I am trying to reduce the width with an animation from 500px to 0px and from 0px to 500px again.</p> <p>There is only a problem, that the DIV is reduced starting from the right to the left.</p> <p>I want the opposite thing.</p> <p>From the start the width will...
javascript jquery
[3, 5]
5,547,072
5,547,073
how to remove text between <script> and </script> using python?
<p>how to remove text between <code>&lt;script&gt;</code> and <code>&lt;/script&gt;</code> using python?</p>
javascript python
[3, 7]
3,379,789
3,379,790
Iterate through repeater
<p>There's this repeater...</p> <pre><code> &lt;asp:Repeater ID="myRepeater" OnItemCommand="rpt1_ItemCommand" runat="server" OnItemDataBound="rpt1_OnItemDataBound"&gt; &lt;HeaderTemplate&gt; &lt;table width="99%" border="0" cellpadding="0" cellspacing="0"&gt; &lt;tr class="lgrey"&gt; ...
c# asp.net
[0, 9]
3,598,576
3,598,577
"return false;" for form submission is not working
<p>"return false;" for form submission is working for the rest of my code, just not this section. Any ideas why?</p> <pre><code>function checkForm() { $("select[name*=lic_company]").each(function() { if($(this).val() != '') { var i1 = $(this).parent("td").next("td").children("select"); ...
javascript jquery
[3, 5]
2,724,921
2,724,922
Crop image using a crop tools to crop
<p>I have a piece of code as below: I want to crop image with 4 attributes:</p> <blockquote> <p><code>top, left, width, height</code></p> </blockquote> <p>I can alert to see <code>top,left,width,height</code> correctly as where I want to crop, but when I click the button <code>#crop</code>, it doesn't crop to the l...
javascript jquery
[3, 5]
4,544,675
4,544,676
Send and Receive TCP socket android client
<p>I wrote c# client-server application, server is sending data using socket.send(byte[]) and receive using socket.receive(byte[]) now i want to send and receive from android and totally new to android.</p> <p>i appreciate any kind of help.</p>
c# java android
[0, 1, 4]
45,962
45,963
Replace strings in native .exe using c#
<p>how can I catch all strings from a native windows .exe file and replace them later with others using c# ?</p> <p>Background: I want to create a c# tool to extract and replace strings from a simple .exe file.</p> <p>Is this possible somehow?</p>
c# c++
[0, 6]
1,630,184
1,630,185
Need to position div element outside document area not working
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/4531489/position-element-through-css">Position element through css</a> </p> </blockquote> <p>Im have a problem with css positioning</p> <pre><code>jQuery(this).css({"left": (jQuery(document).css("left") - jQuer...
javascript jquery
[3, 5]