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 |
|---|---|---|---|---|---|
2,339,446 | 2,339,447 | calling c# method from tag inline | <p>how i get this work:</p>
<pre><code><script type="text/javascript" runat="server" src='<% getSrc("ddd") %>' ></script>
</code></pre>
<p>getSrc is a method in code-behind file.</p>
<p>tanks.</p>
| c# asp.net | [0, 9] |
4,428,915 | 4,428,916 | Play sound only in one window of which is active (within one website) using javascript (possibly jquery) | <p>Alright, I've found a bunch of answers concerning native functions like window.onblur and window.onfocus... But they won't help so I'd like to be more specific</p>
<ol>
<li>Say you open several tabs of one website</li>
<li>Say you receive a message and there's a sound to announce the message</li>
<li>As you have se... | javascript jquery | [3, 5] |
905,038 | 905,039 | Php keeps giving me an incorrect response for android in-app-billing server verification | <p>For some reason I got this script to work without fault but once i tried to decode the JSON the script started messing up. I reverted back to the old script and it still isn't working. Here it is below. $result keeps giving me 0 which if the PHP documentation is correct means that the verification failed. I have dou... | php android | [2, 4] |
5,268,960 | 5,268,961 | Convert a String into Java Source code in Android | <p>Does anyone know if it's possible to convert a String/file into java source which can be compiled at run time using something like JavaCompiler. It looks like this is possible with Java 6, but I haven't seen anyone say that JavaCompiler is available in Android. </p>
<p>Basically my main goal is to turn a String or ... | java android | [1, 4] |
5,343,189 | 5,343,190 | Send email to IDN email ID | <p>How do I send email to non-Ascii email ID, for example I have adad@ÄÖß.com as emailID and when I try to send email to this emailID using </p>
<pre><code>sendTo="adad@ÄÖß.com";
MailMessage msg = new MailMessage();
msg.To.Add(sendTo);
</code></pre>
<p>msg.To.Add(sendTo) throws an error saying "The specified string ... | c# asp.net | [0, 9] |
3,391,534 | 3,391,535 | reading bytes without using any loop | <p>I have a 16mb binary file and I want to read bytes without using any loop. like if i want to read 16 byte i can pass 16 to some method(if there is any) and it give me my desired result... right now i am using loop for reading bytes but my application is so huge i am afraid that it do not get slow.kindly give me some... | java android | [1, 4] |
762,278 | 762,279 | How can I rewrite jQuery without guard clause? | <p>How can I rewrite this jQuery to be more terse and without the guard clause?</p>
<pre><code>var myTextBox = $('#myTextBox');
if (myTextBox )
myTextBox.val("");
</code></pre>
<p>The guard clause is there simply to ensure that the element exists on the page before trying to set it's value but the code seems blo... | javascript jquery | [3, 5] |
5,308,294 | 5,308,295 | How to hide view source | <p>Could some one please help me out to hide a view source option of a web page in dot net ?</p>
| c# asp.net | [0, 9] |
4,530,133 | 4,530,134 | pass data and get data into php file from html to jquery to php and then from php to jquery to html | <p>OK i have this code</p>
<p>HTML:</p>
<pre><code><html>
<head>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.1.min.js"> </script>
<script type="text/javascript">
function get() {
$.post('tt.php',
{
$('#name')
},
function(output) {
... | php javascript jquery | [2, 3, 5] |
4,678,193 | 4,678,194 | Is it possible to set audio file after receiving call of out side | <p>I want to play audio file at the time the receiver receive call at receiver side.</p>
<p>My application will call a caller and if caller receive a call, i want to listen audio file or recorded file to receive.</p>
<p>If this is possible, then please give me some instruction for this.</p>
| java javascript android | [1, 3, 4] |
334,566 | 334,567 | Load div contents into a different div | <p>I have a value which is created around the middle of a page and I want to show it in the header...</p>
<p>So, I have the following:</p>
<pre><code><div id=lines style=display:none;><? echo ($line_no-1); ?></div>
</code></pre>
<p>Now, I want to load that value ($line_no-1) into a div in the heade... | javascript jquery | [3, 5] |
4,188,126 | 4,188,127 | Java or C# for a PL/SQL Developer | <p>Can you Please suggest as what should be my next carrer move , I am an Oracle Developer , I worked in Forms and reports and know good PL/SQL and SQL.</p>
<p>Now , I am thinking to learn new technology as there no jobs in PL/SQL alone and Oracle front-end Forms and reports are on the verge of extinction.</p>
<p>The... | c# java | [0, 1] |
434,488 | 434,489 | Get check box value in jQuery? | <p>I need to get a check box value in jQuery.
Here is my code:</p>
<pre><code>$(document).ready(function() {
$('input[type="checkbox"]').bind('click',function() {
var tObj = $('#checkpermission');
var tVal = tObj.val();
alert(tVal);
});
});
$query="select * from tbl_user where use... | php javascript jquery | [2, 3, 5] |
2,134,026 | 2,134,027 | Add next/previous year button to asp calendar control | <p>Need to add a button for next previous year in ASP calendar control dynamically.</p>
<p>How can I add it right next to the existing next and prev controls? Is it possible to do this via dayrender event ?? Please help</p>
| c# asp.net | [0, 9] |
424,853 | 424,854 | Jquery - Show a javascript alert box when you click on a disabled text input | <p>I have a form where one of the text inputs is set to disabled. It's important that we keep this text input but it has confused some users. They try to click and edit and think that the form is broken because they can not edit that box.</p>
<p>I've tried to add an onclick to trigger a window.alert box to warn them t... | javascript jquery | [3, 5] |
3,356,866 | 3,356,867 | How to create a custom function which i can turn it off on a click? | <p>I am running a bit of code once the page load so in the footer i have got:</p>
<pre><code>$(function(){
//code to run on page load
});
</code></pre>
<p>But then i need to stop that code to run on a</p>
<pre><code>.click()
</code></pre>
<p>I was thinking of having a custom function which runs on page load and ... | javascript jquery | [3, 5] |
5,612,457 | 5,612,458 | How to write code to put an extra load on "Disk Queue Length" keeping "Processor Time" scores low | <p>I would like to test the program which shows an alert when the average of "Disk Queue Length" exceeds 3.<br>
But alert gets to be showed also when the average of "Processor Time" exceeds 75%. I would like to test only about "Disk Queue Length".<br>
Could you tell me how to write the stress-test code by C#?</p>
| c# asp.net | [0, 9] |
2,172,740 | 2,172,741 | How can I access the state of "clicked" in this piece of jQuery | <p>I have this piece of jQuery. Is it possible to determine whether the <code>#mydiv</code> element has been "clicked" from outside this piece of code.</p>
<p><a href="http://jsfiddle.net/byronyasgur/BxF9R/" rel="nofollow">JSFIDDLE</a></p>
<pre><code>$.fn.clicktoggle = function(a, b) {
return this.each(function(... | javascript jquery | [3, 5] |
3,991,024 | 3,991,025 | ScrollView Height does not wrap onto parent activity in code | <p>I have this little problem regarding layout with scroll view on my android code</p>
<pre><code>import android.os.Bundle;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.graphics.Color;
import android.view.Menu;
import android.view.ViewGroup.LayoutP... | java android | [1, 4] |
1,978,745 | 1,978,746 | How do i timeout a jquery script thats set to run every second after half an hour? | <p>I have a jQuery script that runs a function every second with setinterval. But i want to set a timeout for that so after half an hour it kills the script. How do i do this? Thanks :)</p>
<p>source code:</p>
<pre><code><script type="text/javascript" src="http://ajax.googleapis.com/ajax/
libs/jquery/1.3.0/jquery.... | javascript jquery | [3, 5] |
5,923,585 | 5,923,586 | accessing methods of page when accessing page with a page method | <p>I have a code behind file of an aspx file that looks like this:</p>
<pre><code>public partial class Pages_MyPage : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
.....
}
protected int MyMethod()
{
.....
}
[WebMethod]
public static int MyPageMethod()
{
i... | c# asp.net | [0, 9] |
635,592 | 635,593 | how to get the right class name innerHTML content? | <pre><code><div class="Name">
<div class="Image"></div>
<ul>
<li><h5><span class"myName">I want this text</span></h5></li>
<li class="description">The description</li>
</ul>
<butto... | javascript jquery | [3, 5] |
3,441,046 | 3,441,047 | jquery loading images dynamically | <p>I have an img element and each time I change its src dynamically I want to get new image's width (after it's completely loaded)</p>
<p>.load() seems not trigger if image is in cache already(?), but I don't want to load it again in this case, as:</p>
<pre><code> 'image.jpg?' + new Date().getTime();
</code></pre>
... | javascript jquery | [3, 5] |
1,005,912 | 1,005,913 | How to highlight div using javascript or jquery | <p>I spent about hour and did not find any clue how to highlight my div.</p>
<p>Ok example my code.</p>
<p>1.proccess.php</p>
<pre><code>$_SESSION['msg']='<div class="success">Your account has been updated</div>';
header("location:http://domain.com/account.php/");
</code></pre>
<p>2.account.php</p>
<pr... | php javascript jquery | [2, 3, 5] |
5,363,425 | 5,363,426 | Retreiving DateTime x-axis value from Chart control | <p>I have a chart control with a data in it. The x-axis data is of DateTime and the Y-axis is an integer. I'm trying to pull the data out of the graph and export it to excel, but the DateTime values aren't coming out in a way I can understand them or figure out how to decode them.</p>
<p>Example values are as such:</p... | c# asp.net | [0, 9] |
4,887,922 | 4,887,923 | finding all the HtmlInputCheckBox controls with master.pages with recursion | <p>I thought this would work. But it's not working. It's never getting inside of if (c is HtmlInputCheckBox)</p>
<pre><code>private string GetAllCheckBoxes(ControlCollection controls)
{
StringBuilder sb = new StringBuilder();
foreach (Control c in controls)
{
if (c.HasControls())
{
... | c# asp.net | [0, 9] |
1,196,413 | 1,196,414 | paste option for edittext | <p>I have an edittext and I would like to paste some text in it. I can copy the text from some web page but I am not able to paste the text in my edittext control.How can I enable my edittext to paste some text.Here is my main.xml for edittext ;</p>
<pre><code>enter code here
<EditText
android:id="@+id/enter"
... | java android | [1, 4] |
2,484,873 | 2,484,874 | issue with expandable listview setOnChildClickListener | <p>I am developing application with expandable listview and get display data in this listview very well,but problem is with <code>setOnChildClickListener</code> which is not working. there are no interactive widget(checkbox or edittex)which cause the issue of focus and we need to false the focus ,no there are not I hav... | java android | [1, 4] |
1,289,200 | 1,289,201 | How to use jQuery slideDown() to display _almost_ all contents? | <p>I have a div within a div. On page load, they should both be hidden, then when I trigger the <code>slideDown()</code> function on the outer div, I want the inner div to remain hidden. How can I achieve this?</p>
<pre><code><script>
$(function(){
$('.body').hide();
$('.display').click(function(){
... | javascript jquery | [3, 5] |
149,740 | 149,741 | JQuery - passing variable to php script | <p>im stucked with following issue. I have an javascript (jquery) function where i need to pass a variable to php ON .success method. See below Please:</p>
<p><a href="http://paste.org/55404" rel="nofollow">http://paste.org/55404</a></p>
<p>Any idea how to achieve this? Or is it even possible?</p>
<p>Thanks in advan... | php jquery | [2, 5] |
2,348,427 | 2,348,428 | where the memory allocated when we declare static? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/3849634/static-allocation-in-java-heap-stack-and-permanent-generation">static allocation in java - heap, stack and permanent generation</a> </p>
</blockquote>
<p>its a small confusion...defining static to class,... | java android | [1, 4] |
5,469,428 | 5,469,429 | How to match external links with javascript (but ignore subdomains)? | <p>I have the following (jquery) selector looking for external links.</p>
<p>This works, and ignores all links that include <code>location.hostname</code> <em>(e.g. www.domain.com)</em></p>
<p>My question is, how to extend this to also ignore links to subdomains of your site? <em>(e.g. new.domain.com)</em></p>
<pre>... | javascript jquery | [3, 5] |
151,170 | 151,171 | when a web app generate most markup by javascript ... | <p>I have seen a web app that generate most of a page's markup by javascript+ jquery. The server only generate a web page with just 1 DIV . The rest are done with create on client side via javascript+jquery+AJAX .</p>
<p>What are the pros and cons of this javascript centric approach ?</p>
| javascript jquery asp.net | [3, 5, 9] |
2,464,118 | 2,464,119 | JavaScript / jQuery why doesn't this work? | <pre><code>function checkSession(){
$.ajax({url: "session.php", success: function(data){
if( data == 1){
var postFilen = 'msg.php';
$.post(postFilen, function(data){
$("#msg").html(data).find("#message2").fadeIn("slow")
}
} else {
... | javascript jquery | [3, 5] |
1,855,004 | 1,855,005 | Regular expression for validating phone | <p>I need to validate textbox for validating phone number in C# allowing only hyphens(-) and integer values.</p>
<p>I want a regular expression which allows only those.</p>
<p>Thanks in advance</p>
| c# javascript | [0, 3] |
988,465 | 988,466 | jQuery fn() isn't loading / working? | <p>There is one div which changes frequently it's innerHTML by ajax. Once the page loads, jQuery function() works but when innerHTML changes by ajax then some functionality doesn't work. I checked the code using firebug and try to explain it in short.** </p>
<p>I think DOM loads the js file only when the page loaded ... | javascript jquery | [3, 5] |
5,726,489 | 5,726,490 | categorization of location to | <p>how to categorized location such as office, school etc from address,
For example.
my address is "gigaspace IT park,vimannagar,pune"
How to infer "office" from address.
Is there any model or any text or algorithm available or calculation from the address i need to do that.</p>
| java android | [1, 4] |
1,062,066 | 1,062,067 | jquery dropdown focus | <p>I am trying to set a focus on a dropdown within GridView(gridViewDropDown class) when page loads:</p>
<pre><code>if ($('select.gridViewDropDown').length)
{
alert("Found my dropdown");
//$('select.gridViewDropDown:first').focus();
setTimeout(function() { $('select.gridViewDropDown').focus(); }, 10)... | asp.net jquery | [9, 5] |
5,914,750 | 5,914,751 | How to Implement Google direction in asp.net | <p>google map direction in asp.net.
How can we achive</p>
<p>How to Implement Google direction in asp.net</p>
| c# asp.net | [0, 9] |
5,118,171 | 5,118,172 | JavaScript In UserControl Wont Run | <p>I am trying to run the following script from my usercontrol:</p>
<pre><code><script type="text/javascript" language="javascript">
function RebindUpdatePanelControls(sender, args) {
$("#divUpload2").hide();
$("#divUpload3").hide();
alert("Hi Neck");
$('#lnkMore').click(func... | javascript asp.net | [3, 9] |
4,756,715 | 4,756,716 | Android - Opening phone deletes app state | <p>I'm writing an android application that maintains a lot of "state" data...some of it I can save in the form of onSaveInstanceState but some of it is just to complex to save in memory.</p>
<p>My problem is that sliding the phone open destroys/recreates the app, and I lose all my application state in the process. Th... | java android | [1, 4] |
5,369,341 | 5,369,342 | Set programmaticaly the Text property calling a function from code behind | <p>I'd like to initialise the label of the button from function from code behind:</p>
<pre><code><asp:Button ID="BtnAjoutClient" runat="server" Text='<%= GetText()%>' />
</code></pre>
<p>and in the code behing a simple function like:</p>
<pre><code>protected String GetText() {
return "test";
}
</code><... | c# asp.net | [0, 9] |
3,314,365 | 3,314,366 | jQuery Calculate Date | <p>Any reason why this is landing on the wrong day?</p>
<p><a href="http://jsfiddle.net/SparrwHawk/MH5wP/" rel="nofollow">http://jsfiddle.net/SparrwHawk/MH5wP/</a></p>
<p>I've written the code below for reference, but it's obviously clearer on jsfiddle</p>
<pre><code><p>Sun / Closed</p>
<p>Mon / Cl... | javascript jquery | [3, 5] |
5,108,772 | 5,108,773 | Can we use javascript in C#? | <p>I want to use Javascript functionality in c#.
Is it possible to use Javascript in c#? If yes how?</p>
<p>Can anyone provide me some guide or sample code?</p>
<p>Thanx</p>
| c# javascript | [0, 3] |
5,555,404 | 5,555,405 | If statement, $(this) == $("#div") | <p>Hya,</p>
<p>I would like to run a bit of code only if the focused text-box has a certain ID.
Here is my code:</p>
<pre><code>$("input:text").focus(function() {
if ($(this) == $("#divid")) {
//action
}
});
</code></pre>
<p>It does not work, I'm not to sure why.</p>
| javascript jquery | [3, 5] |
43,309 | 43,310 | How to use jQuery.validity properly | <p>Yesterday, I started here asking a question about my own project, and when I saw how helpful the people are and how fast they answered, I was really happy. My father is making a project by himself, and he asked me to write a question here for him because of English knowledge matters.</p>
<p>Well, he is trying to va... | php javascript jquery | [2, 3, 5] |
5,321,953 | 5,321,954 | Close popup (div) jquery | <p>I have a div which appears when a textbox gets focus. DIV has <em>n</em> number of textboxes. I want to say display:none when a user Clicks anywhere in the window. Div should not close if the user is switching between textboxes. </p>
<p>All these jquery plugins, say the calendar control closes if user clicks outsid... | c# jquery | [0, 5] |
4,420,961 | 4,420,962 | how to assign the html value to the php variable without post or get method | <p>in my program i had a php value $test = 2 using this value i done some operation
for example: in my page i had a 2 block A and B and one select box. If the test value is A it enable the div A, if the value is B it hide div A and also i am able to show and hide the div using the select box onchange event. please che... | php javascript | [2, 3] |
3,296,393 | 3,296,394 | How to Edit Hyper Link GridView record in UserControl and Bind Data | <p>In Web Application, How to edit the record of Hyperlink Gridview in Usercontrol.</p>
<p>I have one .aspx page which contains textboxes for new record and Hyperlink Gridview for editing.If I click hyperlink field, it redirects to the another .aspx page which has included usercontrol.</p>
<p>Usercontrol has three te... | c# asp.net | [0, 9] |
3,009,923 | 3,009,924 | Android ProgressDialog delayed before showing up | <p>I'm using the ProgressDialog in android to prevent the user from, say, pressing a button multiple times while a long task is updating the UI. </p>
<p>My problem is that the ProgressDialog does not seem to show up after awhile, as it seems to be another thread. </p>
<p>In my experiment I called this ProgressDialog ... | java android | [1, 4] |
864,051 | 864,052 | Accessing raw partition in Android using Java | <p>I have a partition in Android that's not mounted because it doesn't have a file system, and I need to write a string into it. I tried three different methods, and only the first (from adb) works. I need to do this under program control, which is what the second and third methods do, but both fail. I tried adding ... | java android | [1, 4] |
3,481,229 | 3,481,230 | ical event item is saved on windows outlook but not on Mac outlook? | <p>I have a situation where users can save an event item from my site to their outlook.</p>
<p>So everything works fine on Windows outlook, but not on Mac outlook. When I test it on Mac it ask me to save it, but when i click on okay it is not saving the item on the calendar.
Please let me know how to differentiate the... | c# asp.net | [0, 9] |
1,067,456 | 1,067,457 | give code to validate textbox if the textbox not contains the value except "mm-dd-yyyy" fromate it shoud display error message | <p>give code to validate textbox if the textbox not contains the value except "mm-dd-yyyy" fromate it shoud display error message.</p>
| c# asp.net javascript | [0, 9, 3] |
5,096,078 | 5,096,079 | Correction of the mouseout and mouse over in relation to table | <p>Goal:<br>
The row should have a different background color if the mouse's icon is inside of table's rows. When the icone is outside of the row, the background of the row should be turned back into default.</p>
<p>Problem:<br>
I can't make the sourcode in jQuery to be working properly.</p>
<p>I would like to use jQ... | javascript jquery | [3, 5] |
2,116,534 | 2,116,535 | can anyone give a complete example of how to call a js using java file? | <p>My code is like</p>
<h3>SJCL.js</h3>
<pre><code>function encrypt(data, key){
......
}
</code></pre>
<h3>abcd.java</h3>
<pre><code>public String callJavascript(String data,String key)
{
// i want to call the encrypt method here with data,key value passing to it
}
</code></pre>
<p>any help????</p>
<p>us... | java javascript | [1, 3] |
4,669,002 | 4,669,003 | how to know if UI is idle for X time? | <p>I have a servery app. That ask questions from users.
What I want to do. If user did not do any thing with UI for the 1 mint... Then I must terminate the server.</p>
<p>What should I do for this?</p>
<p>I know ACTION_SCREEN_OFF. This event actually called when screen time out. That may be 30 mint? depend on user se... | java android | [1, 4] |
3,599,736 | 3,599,737 | how to fix notice and check file on server side? | <p>I have an application <a href="http://helios.hud.ac.uk/u0867587/Files/Files.php" rel="nofollow">here</a></p>
<p>I have 2 questions:</p>
<p>Question 1: How do I fix the notice?</p>
<p>Below is the code:</p>
<pre><code><?php
If(isset($_POST))
{
$allowedImageTypes = array("image/pjpeg","image/jpeg","image/jp... | php jquery | [2, 5] |
3,700,383 | 3,700,384 | Removing duplicate strings using javascript | <p>I have an array of 800 sentences. I want to remove all duplicates (sentences that have the same exact words, but in different order) from the array. So for example "this is a sentence" and "is this a sentence" are duplicates. Only one one of them should remain in the array (it doesn't matter which one). </p>
<p>My ... | javascript jquery | [3, 5] |
175,934 | 175,935 | advertisement issue in slideshowextender | <p>i have use 5 usercontrols for advertisements.in that usercontrols i had use slideshow extender.when i click on any image within any user control that image url should be open in new tab.the url is like image desription which can be access from the database
But the problm is that when i click on image from any user ... | c# asp.net | [0, 9] |
4,939,870 | 4,939,871 | HtmlControl changing class | <pre><code><div ID="btnWebL" runat="server" class="left_selected"></div>
<asp:LinkButton ID="btnWeb" runat="server" CssClass="center_selected" OnClick="btnWeb_Click"
Text="<%$ Resources:ViaMura.Web.Default, WebSearchButtonText %>"></asp:LinkButton>
... | c# asp.net | [0, 9] |
2,918,722 | 2,918,723 | Android Notification Preferences | <p>I am trying to connect my check box preferences with my notification such that when the user clicks on any of the check box preferences, the Notification works as specified. I want the "entering" to work only if the preference "alarm entering" is clicked on. Same for exiting and vibration.</p>
<pre><code> ... | java android | [1, 4] |
5,625,131 | 5,625,132 | CKeditor and RSV validator issue | <p>I'm using ckeditor in content management system but can't validate ckeditor textarea. Used following code</p>
<pre><code>$("#submit_btn").click(function () {
CKEDITOR.instances.content.updateElement();
});
</code></pre>
<p>Now the problems with RSV validator gone but now ckeditor gives bunch of errors... | javascript jquery | [3, 5] |
5,878,830 | 5,878,831 | Getting A Specific Twitter Status | <p>I've been trying to get the contents of a specific status using the status url e.g <a href="http://twitter.com/#!/jquery/status/36102693709680640" rel="nofollow">http://twitter.com/#!/jquery/status/36102693709680640</a> and also get the username associated with the status. In this case, @jquery</p>
<p>Is there a w... | php jquery | [2, 5] |
724,363 | 724,364 | Dynamically adding attributes to <head> tag ASP.NET | <p>How would I go about finding on my ASPX page (from codebehind) and then adding the attribute "runat=server" to it?
I have tried using <code>Page.header.attributes.add(...)</code> and<code>(HtmlHead) Page.FindControl("head");</code> The second one obviously won't work as the Head tag doesnt have an ID.</p>
<p>I ca... | c# asp.net | [0, 9] |
3,017,864 | 3,017,865 | Autorefresh some list of items every X seconds | <p>I have a list of items that I want to refresh every X seconds. Basically these list of items may be some data coming from database that meets a certain criteria. Now I could very well do this using setTimeout or setInterval and then manually calling <code>$.ajax</code> and set the html of div or something. However i... | javascript jquery | [3, 5] |
1,488,580 | 1,488,581 | Counted bytes and total bytes differ | <p>I'm writing an Android application which copies files from the assets to one file on the device's drive (no permission problems, bytes get from the assets to the drive). The file that I need to copy is larger than 1 MB, so I split it up into multiple files, and I copy them with something like:</p>
<pre><code>try {
... | java android | [1, 4] |
2,606,836 | 2,606,837 | asp.net dropdown datasource | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/7694098/converting-enumerable-range-to-a-list-of-strings">Converting Enumerable.Range to a List of Strings</a> </p>
</blockquote>
<p>In ASP.NET how do I populate a drop down list and also include text for the de... | c# asp.net | [0, 9] |
5,791,766 | 5,791,767 | Scroll if on the right side (jQuery) | <p>i have create a gallery with jquery.</p>
<p><a href="http://www.rialto-design.de/endkunden/galerie/galerie-armaturen/?album=3&gallery=2" rel="nofollow">http://www.rialto-design.de/endkunden/galerie/galerie-armaturen/?album=3&gallery=2</a></p>
<p>so my question is, how can i make the thumbs scroll left or r... | javascript jquery | [3, 5] |
5,005,362 | 5,005,363 | Why Rich:toolTip not work Under rich:calendar | <p>Why is Rich:toolTip not working under rich:calendar?</p>
<pre><code><td>
<rich:calendar id="valuereq" requiredMessage="Requested Date Required" inputClass="inside_text" value="#{projectDetailManageBean.projectDetail.requestDate}" datePattern="M/dd/yy" required="true">
<rich:toolTip for="valuereq"... | java php c++ | [1, 2, 6] |
5,932,692 | 5,932,693 | .push breaking in for loop | <p>I have the following loop that adds an object to an array if certain criteria are met. </p>
<pre><code>var form = $('form[id^="product-form"]'),
submit_button = $('#add-to-cart'),
attr_fields = $('.additional input[type=text]'),
attr_fields_default = {};
// Get the default values for each attribute fiel... | javascript jquery | [3, 5] |
1,461,825 | 1,461,826 | How can I extract a URL from url("http://www.example.com")? | <p>I need to get the URL of an element's background image with jQuery:</p>
<pre><code>var foo = $('#id').css('background-image');
</code></pre>
<p>This results in something like <code>url("http://www.example.com/image.gif")</code>. How can I get just the "http://www.example.com/image.gif" part from that? <code>type... | javascript jquery | [3, 5] |
4,130,286 | 4,130,287 | CMS uses jquery 1.7, theme uses jQuery 1.6 == conflict | <p>I've been given a theme to implement into a cms.</p>
<p>The theme uses jQuery 1.6 and has no javascript errors.</p>
<p>The CMS (concrete5) uses jQuery 1.7.1 and has no javascript errors.</p>
<p>When I merge the theme into the CMS, I drop the include to jQuery (since I was to avoid including jQuery twice) and now ... | javascript jquery | [3, 5] |
2,780,387 | 2,780,388 | jQuery outside events plugin not funcitoning properly | <p>I have downloaded the jQuery outside events plugin as Sarfraz suggested, which seems really great, except, I cannot appear to get it functioning correctly.</p>
<p>Here is my code that I'm trying to call it with:</p>
<pre><code>$("#player").bind( "clickoutside", function(event){
if($('#player').is(':visible')) {
... | javascript jquery | [3, 5] |
1,447,959 | 1,447,960 | Script to limit the no. of characters in a textbox not working. Any Ideas? | <p>I have a script which is supposed to limit the no. of characters entered in a text box or textarea. I know I can do this using maxlength attribute. But I want to use JS implementation.</p>
<p>Below is the fiddle:</p>
<p><a href="http://jsfiddle.net/xTrKD/" rel="nofollow">http://jsfiddle.net/xTrKD/</a></p>
<p>CODE... | javascript jquery | [3, 5] |
2,969,362 | 2,969,363 | a jQuery image-group animation | <p>I've got a div with three same images.</p>
<pre><code><div>
<img class="movlights" src="files/images/movelights.png" alt="10 years logo" />
<img class="movlights sec" src="files/images/movelights.png" alt="10 years logo" />
<img class="movlights third" src="files/images/movelights.p... | javascript jquery | [3, 5] |
1,011,198 | 1,011,199 | Swapping list elements with jQuery | <p>I have a list:</p>
<pre><code><li>item one<img src="/assets/img/site/up_arrow.png" class="upArrow"/><img src="/assets/img/site/down_arrow.png" class="downArrow"/</li>
<li>item two<img src="/assets/img/site/up_arrow.png" class="upArrow"/><img src="/assets/img/site/down_arrow.png" ... | javascript jquery | [3, 5] |
3,462,065 | 3,462,066 | Using PHP and C++ for data exchange? | <p>Is it possible to send data from C++ to PHP? I have wrote a server in C++ that connects to a database, and I was wondering if it is possible at all to use the socket library built into PHP to connect to the socket server written in C++. Would it just be PHP itself? I mean, would I not use JavaScript (AJAX) to call a... | php c++ | [2, 6] |
360,399 | 360,400 | Does a function inside jQuery constructor do anything different? | <p>I feel like I've only ever seen this here on SO, but I can't seem to find any documentation on it. The code I am talking about is stuff like this:</p>
<pre><code>$(function foo(){
alert('foo');
});
</code></pre>
<p>Is there anything to that or is that just something that novices do because they think jQuery is... | javascript jquery | [3, 5] |
1,662,648 | 1,662,649 | Display custom ASP.NET error page without rewriting URL | <p>Currently working on error pages for my website in ASP.NET. I'm using a web configuration file to redirect the user to an error page if the server was unable to find the requested page. Below is the customErrors tag I used in my configuration file:</p>
<pre><code><customErrors mode="On" defaultRedirect="~/ErrorP... | javascript asp.net | [3, 9] |
5,062,691 | 5,062,692 | How to reference a div using id contained in another element? | <p>I have an alphabetical index that when clicked unhides a div that contains it's content.</p>
<p>Here is the HTML so I can explain properly:</p>
<pre><code><ul class="index">
<li>A</li>
<li>B</li>
<li>C</li>
</ul>
<div id="index-A" class="hide">A co... | javascript jquery | [3, 5] |
3,571,016 | 3,571,017 | Create JS execution blocking dialogs using jQuery | <p>I have an existing web application which uses <code>window.showmodaldialog()</code> to show certain forms and based on the return value it executes some other JavaScripts</p>
<p>For example:</p>
<pre><code>var retVal = window.showmodaldialog('...');
if (retVal==XXX)
callXXX();
else
callYYY();
</code></pre>
<... | javascript jquery | [3, 5] |
2,453,943 | 2,453,944 | Remove all but a specific row from a table | <p>I want to remove all rows apart from the row with id 'row0' from a table:</p>
<pre><code><table class="mytable">
<tr id="row0" class="myrow">
<td>aaa</td>
</tr>
<tr class="myrow">
<td>bbb</td>
</tr>
<tr class="myrow">
... | javascript jquery | [3, 5] |
227,286 | 227,287 | Help to Understand PHP Code into C# | <p>I am a C# guy and got this logic into php from a website. Need to implement the same in C#.</p>
<pre><code>$items = array();
while($row = mysql_fetch_assoc($query))
{
//parent id
$pkey = $row['parent_id'];
//child id
$ckey = $row['category_id'];
//store this
$items[$pkey]['children'][$ckey] = $row['categoryname'];
... | c# php | [0, 2] |
1,733,464 | 1,733,465 | How to save grid created by jquery | <p>I have create a graph using jquery but I can't save it as .jpg or .png format. Here is my code for jquery grid. Link <a href="http://ushatech.com/customer/Palletized_Material_Handling_Conveyors/build.php?num1=50&num2=50" rel="nofollow">is here</a></p>
<p>HTML part: <code><div id="working-area" name="working"... | javascript jquery | [3, 5] |
3,649,662 | 3,649,663 | How to open popup windows in background using javascript? | <p>Is it possible to open pop-up windows BEHIND the current active screen using java script?</p>
<pre><code> var win= window.open(value,'_blank');
</code></pre>
<p>the above script opens pop windows in browser tab but I loss active page from my sight.</p>
<p>any suggestion?</p>
<p>Thanks in advance</p>
<p>Solution... | javascript jquery | [3, 5] |
1,582,107 | 1,582,108 | problem with drop down list | <p>I have a drop down list control populated with items and some code to take the currently selected item value. The problem is I only get the value of the first item in the list regardless of what item is actually selected.</p>
<p>Here is my code to populate the drop down:</p>
<pre><code>protected void displayCreate... | c# asp.net | [0, 9] |
1,774,531 | 1,774,532 | Can running 2 document.ready make them conflict? | <p><br>
In my application i am running <code>$(document).ready(</code> twice on on the same page is there going to be a conflict between them?<br>
Thanks in Advance,<br>
Dean </p>
| javascript jquery | [3, 5] |
5,153,374 | 5,153,375 | Why this can't work - live update using jquery | <p>I am writing my code like this:</p>
<pre><code>function updates_cb()
{
in a while loop to call append_message
}
function append_message(message)
{
append the html of message into the page
now I am using selector to add callback to newly added element
$(jmsg).hover(function(){console.log("hover");})... | javascript jquery | [3, 5] |
2,814,438 | 2,814,439 | Conversion of Date | <p>I am getting date in two different formats.<br>
1) <code>2012-01-05</code><br>
2) <code>05/01/2012</code><br>
But i want this to be in the below format. <code>"5 Jan 2011"</code> </p>
<p>Please help..
Now i'm having <code>String d1="2012-01-05"</code> and <code>String d2="2012-01-05".</code><br>
urgent..</... | java android | [1, 4] |
4,047,962 | 4,047,963 | How to access main window element from iframe | <p>I hope someone can help with this issue. I have a popup iframe using lytebox. I would like it that when i click a link in my iframe with the class "mylink" that it executes the ajax call and update a div in my main window with the id "mydiv".
I know how to do the onclick events and the ajax call but i do not know ho... | javascript jquery | [3, 5] |
1,580,039 | 1,580,040 | ASP.NET How to allow users to watch video in a specific date and time ? | <p>I'm developing a website that will allow registered users to watch video on specific date and range of time </p>
<p>Example: User X will be allowed to watch video on Sunday at 6 pm. The video will be available only at this time.</p>
| c# asp.net | [0, 9] |
4,752,531 | 4,752,532 | databinding directly to a sqldatasource | <p>in Asp.net C# I'm simply tring to bind a control to a sqldatasource that returns ONE record (one row).</p>
<pre><code><asp:SqlDataSource ID="sqldatasource1" runat="server"
ConnectionString="<%$ ConnectionStrings:ApplicationServices %>"
SelectCommand="SELECT * FROM [Data_Events] WHERE ([Entry_ID] = @Entry_I... | c# asp.net | [0, 9] |
5,988,503 | 5,988,504 | If a <li> is clicked, hide the inner div | <p>My DOM looks like this:</p>
<pre><code><li id="li1">
<div class="c1"></div>
</li>
<li id="li2">
<div class="c1"></div>
</li>
</code></pre>
<p>Using jQuery, if the first <li> is clicked, I want the inner to be hidden.</p>
| javascript jquery | [3, 5] |
2,766,730 | 2,766,731 | delete rows and change pagination counters? | <p>I want change <code>1 تا 6 از 36</code>=translator to EN=> <code>1 to 6 of 36</code> after delete row(s)(with click on link <strong>DELETE</strong>) in table.<br>
<strong>EXAMPLE:</strong> total rows is <code>36</code> if we delete <code>3</code> rows, this total row online change to <code>33</code> (like when that ... | javascript jquery | [3, 5] |
2,479,901 | 2,479,902 | jQuery click function for <ul><li> elements | <p>I have a unordered list looking like this:</p>
<pre><code><ul id="frozen" data-name="nameOfSelect" class="tagit">
<li class="tagit-choice" tagvalue="2" style="padding-right: 4px;" id="tag-2">
<div class="tagit-label" data-value="2">kázeň</div>
</li>
<li class="tagit-c... | javascript jquery | [3, 5] |
2,882,873 | 2,882,874 | How to run a randomly selected function in JavaScript? | <p>I'm trying to run a random function but haven't quite figured it out: </p>
<pre><code><script>
function randomFrom(array) {return array[Math.floor(Math.random() * array.length)];}
function randomchords(){randomFrom(['poop()', 'poop2()', 'poop3()']);}
function poop() { $(function() {ionian_... | javascript jquery | [3, 5] |
4,843,053 | 4,843,054 | Triggering Script VIA URL | <p>I have this script calling a lightbox to trigger if the URL is site.com/page.html?globe=1 and it is not working here is the code:</p>
<pre><code>var $j = jQuery.noConflict();
$j(document).ready(function() {
var url = window.location.href;
url = url.toLowerCase();
if (url.indexOf('globe=1') != -1) {
... | javascript jquery | [3, 5] |
327,391 | 327,392 | How to remove empty li in ul list using jquery? | <p>I have the below HTML structure:</p>
<pre><code><ul>
<li><a>one</a></li>
<li><a>two</a></li>
<li></li>
<li><a>three</a></li>
<li><a>four</a></li>
<li></li>
<li... | javascript jquery | [3, 5] |
2,895,675 | 2,895,676 | Executing math equation in Android | <p>I need to be able to handle a math equation such as "(45+9)/8" in my app. I wanted to just eval it using JavaScript, but realized that I can't use javax.script in Android. So, I found WebView, but I'm having a bit of trouble using it. Most of the examples refer to using an external page with the JS code, or using "j... | java javascript android | [1, 3, 4] |
3,482,592 | 3,482,593 | Jquery disable autocomplete in input | <p>I have this code:</p>
<p>The html:</p>
<pre><code><input id="register_username" type="text">
<input id="register_password" type="text">
<input id="register_repeatpassword" type="text">
<input id="register_email" type="text">
</code></pre>
<p>The Jquery:</p>
<pre><code>$(document).ready(fu... | javascript jquery | [3, 5] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.