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,131,714 | 2,131,715 | How to get the value of a javascript object? | <p>I have an object and inside that object are further objects. I want to get the value of those objects. Thanks!</p>
<pre><code> foreach($query as $row){
$vehicles[$row->deviceID] = Array(
'description' => $row->description,
'deviceID' => $row->deviceID
);
... | php javascript | [2, 3] |
1,400,943 | 1,400,944 | How can I make a function act like a callback | <p>How can I make <code>shwOpts.show("fast");</code> to act when <code>removeHighlight()</code> is done?</p>
<p>I thought if I put an anonymous function as an argument in the other it will act as a callback. This didn't work.</p>
<pre><code>removeHighlight : function(f) {
// remove previous highlight.
... | javascript jquery | [3, 5] |
4,157,433 | 4,157,434 | php or javascript for client performance? | <p>What's quicker?</p>
<p>I'm using php simply to return json (restapi call) to a client and then using javascript to render the data.</p>
<p>Or</p>
<p>Would it be quicker to render the data using php instead and replace client-side javascript for this?</p>
<p>I'm looking for the best performance for the client bro... | php javascript | [2, 3] |
5,666,487 | 5,666,488 | Passing custom functional object in js via addJavascriptInterface | <p>Is it possible s.t arbitrary functional objects in js are passed to Java side, java can call that js object?</p>
<p>for example, (access is function that already registered)</p>
<pre><code>access(function(blabla){
...
});
</code></pre>
<p>Are there any great techniques that can deal with callback function in ... | javascript android | [3, 4] |
3,141,478 | 3,141,479 | Handling code which relies on jQuery before jQuery is loaded | <p>I'd like to follow the general guideline of putting all JavaScript at the very bottom of the page, to speed up loading time and also to take care of some pesky issues with conflicting jQuery versions in a web app (Django).</p>
<p>However, every so often I have some code, code which depends on jQuery, but which must... | javascript jquery | [3, 5] |
2,254,782 | 2,254,783 | jQuery "load()" Can't Load PHP "curl_exec()" Result | <p>I want an HTML file to load the result of "curl_exec()" method of a PHP file.</p>
<p>The PHP file is located in localhost, and the HTML file can be anywhere.</p>
<p>Eg the PHP file name is "curl.php".</p>
<p>I used jQuery "load()" to load the result, but it doesn't work, even after I upload the files to a web ser... | php javascript jquery | [2, 3, 5] |
3,510,179 | 3,510,180 | convert c# datatype to equivalent java datatype | <p>I have few datatypes used in C# that I need to translate to Java.</p>
<p><code>uint</code>, <code>Int16</code>, <code>UInt16</code>, <code>Nullable<Int16></code></p>
<p>What will be the appropriate datatype for these in Java?</p>
| c# java | [0, 1] |
4,504,591 | 4,504,592 | js remove certain words that don't match | <p>I have a js string...</p>
<pre><code>var string = "Hi how are you <b>today</b>";
</code></pre>
<p>I now have a new js string... </p>
<pre><code>var newstring = "are today";
</code></pre>
<p>I want to remove all the words from <code>var string</code> that don't match <code>var newstring</code>. I woul... | javascript jquery | [3, 5] |
3,823,863 | 3,823,864 | Upon jQuery onClick, incrementing a PHP variable? | <p>I have a link like this: <code><a href="javascript:window.print();">Print</a></code>. I'm trying to increment a PHP variable when that is clicked. I could technically do it by submitting a form, but I'm sure there is an easier way. Any ideas?</p>
| php javascript jquery | [2, 3, 5] |
2,172,193 | 2,172,194 | Dynamically add "items" (ASCXs) to a repeater on a page | <p>I am looking to build an ASPX page where I have a this repeater to pull out these 5 questions items. Each item has a user control (with radio buttons) which need to be displayed.
Now what I want to achieve is:</p>
<ol>
<li>At first just the first user control is displayed. The user selects a certain radio-button f... | c# asp.net | [0, 9] |
5,612,486 | 5,612,487 | Show javascript alert and do other actions? | <p>Here's my code and nothing is happening:</p>
<pre><code><!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-git.js"></script>
<script>
$(".clickMe").click(function() {
alert('hi!');
// Do other stuff
});
</script>
</head>
<body>
&l... | javascript jquery | [3, 5] |
3,140,206 | 3,140,207 | How to do Year / Month Calculations in Javascript? | <p>We have a Year/Month HTML control. The underlying value is kept as a decimal.
For Example: 15 year and 2 months is equal to "15.02".</p>
<p>We want to do calculations based on 2 year/month controls (add/substract).</p>
<p>Just doing basic math calculations doesn't work:</p>
<pre><code> Value1 : 65.00
Value2 :... | javascript jquery | [3, 5] |
2,277,697 | 2,277,698 | Change current element background in jQuery | <pre><code><label class="default" for="checkbox1"><input id="checkbox1" name="checkbox1" type="checkbox" style="display:none" /> some text</label><br />
<label class="default" for="checkbox2"><input id="checkbox2" name="checkbox2" type="checkbox" style="display:none" /> some text<... | javascript jquery | [3, 5] |
719,032 | 719,033 | Problems upgrading jquery 1.4.2 to 1.5.1 | <p>I'm trying to upgrade from jquery 1.4.2 to 1.5.1 and I'm getting the following error:</p>
<p>Uncaught Syntax error, unrecognized expression: [rel*=address:] </p>
<p>I can't figure out what it's related to. Any ideas?</p>
| javascript jquery | [3, 5] |
5,285,859 | 5,285,860 | jQuery pop-up menu on Internet Explorer | <p>Here - <a href="http://desandr.ci-team.ru" rel="nofollow">http://desandr.ci-team.ru</a> (mouse click on "КАТАЛОГ")</p>
<p>On FF and Chromium works fine - on "mouse in" under element shows menu.
On internet explorer 8 - nothing. </p>
<p>What's this, and how i can fix that?</p>
| javascript jquery | [3, 5] |
720,836 | 720,837 | gyroscope iphone | <p>Im rotating a cube with the below function and need to know how to stop listening to it because i want to apply touch movements also and right now the gyroscope overrides the touch and makes a weird behaviour. </p>
<p>I thought putting an if and a variable isTouched and setting it to true when is touched should wor... | javascript iphone | [3, 8] |
1,388,956 | 1,388,957 | Generate Dynamic Pages With ASP.Net | <p>I am currently programming classic asp and have my own CMS and it's a good one but I'd like to move it to c#.net meanwhile. (customers don't like this old language anymore)
on my current CMS I generate Pages physically with ASP FSO(filesystem object).
so my question is should i use this method at asp.net too? I revi... | c# asp.net | [0, 9] |
2,540,742 | 2,540,743 | set value of input that do not allow it to be changed | <p>I have the following text box input code. I do not have access to it to add the default value to it so i used this Jquery code to add the value and then disable the input but it doesn't send the added value. How would I add the value but not allow them to change it. I was going to use "hidden" but I want them to see... | javascript jquery | [3, 5] |
182,691 | 182,692 | Error in callback rate with CountDownTimer? | <p>I have been building a small darkroom timer application, as I learn Android and java.<br>
Ended up using CountDownTimer, as it does most of the work for me. :{)<br>
However, I ran into what looks like an error in the class. </p>
<p>My initial structure used the onTick() callback to decrement my time counter, and u... | java android | [1, 4] |
1,302,054 | 1,302,055 | Change div content on load | <p>I am trying to wrote a script that, when the page is loaded, change the content inside 2 divs. At the moment the script should only put the variable inside the div but my next step will be to write the same script using arrays.
At the moment the script is not working and I can''t figure out why...have I to use AJAX ... | javascript jquery | [3, 5] |
2,497,860 | 2,497,861 | Delete text and other elements before and after the element | <p>I need to delete everything (text and other elements) before and after the element <code><a></code> with value class <code>chatlink</code>.
All this, within each element <code><div></code> with value class <code>main</code>.</p>
<p><strong>But only if <code><div></code> element with the value <cod... | javascript jquery | [3, 5] |
4,487,129 | 4,487,130 | How can i kill a background task instantly? | <p>I'm starting an <code>Activity</code> with an <code>Intent</code>. This <code>Intent</code> contains a <code>Serializable</code> Object which is then sent to a server in the <code>onCreate</code> method in order to get the response to display.</p>
<p>I'd like to be able to do the following: When i close the <code>A... | java android | [1, 4] |
5,982,838 | 5,982,839 | Concatenate DateTime string with Arabic String | <p>I'm trying to concatenate an Arabic string with a leading DateTime, I have tried in various way but the DateTime always ends up at the end of the string</p>
<pre><code>var arabicText = "Jim قام بإعادة تعيين هذه المهمة إلى John";
var dateTime = DateTime.Now;
System.Globalization.CultureInfo ci = new System.Globaliz... | c# asp.net | [0, 9] |
4,089,153 | 4,089,154 | how to access enums in jquery | <p>I am using ajax to post a request to a php script and a enum is returned from the script i.e.</p>
<pre><code>success: function(data){
console.log(data)
}
</code></pre>
<p>on the console I see:</p>
<pre><code>enum('Engineering','Finance','Economics','Project Management')
</code></pre>
<p>Now how can I iterat... | php jquery | [2, 5] |
3,047,772 | 3,047,773 | Dialog by single method call | <p>I'm new to Java/Android developing, and I have the habit of creating a tool library when learning a new platform, where I put functions for very common tasks. In this case, an OK/Cancel-Dialog.</p>
<p>What I want to achieve is something like this:</p>
<pre><code>if (tools.ask("Are you sure")) {
//do something
}... | java android | [1, 4] |
5,325,396 | 5,325,397 | How to change PreferenceActivity theme? | <p>I'm trying to change the theme for the PreferenceActivity in my app and I just can't get it to be working.</p>
<p>So, this is the xml:</p>
<pre><code> <?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" >
<SwitchPreference a... | java android | [1, 4] |
2,995,272 | 2,995,273 | How to make an application fixes oriented in android? | <p>I want to make my android application fixed oriented, where no one can change the app's orientation by any kind of force. So far I used these in my manifest's activity tag:</p>
<pre><code>android:screenOrientation="portrait"
android:configChanges="orientation|keyboardHidden"
</code></pre>
<p>it's working fine in m... | java android | [1, 4] |
778,590 | 778,591 | Javascript variable not defining in function | <p>I'm writing a small script to clear my search forms when they're clicked on for "only" the first time. So far I have the follow:</p>
<pre><code>$(function() {
if(typeof firstClick == 'undefined')
{
$("#search").live("focus", function() {
$(this).val("");
var firstClick = true;
});
}
});
... | javascript jquery | [3, 5] |
460,060 | 460,061 | Basic action on click | <p>For some reason, I can't get jQuery to do what I want it to do.</p>
<p>What I need is for the container div to disappear when one of its children is clicked.</p>
<p>Here's example HTML</p>
<pre><code><div id="container">
<a href="link">
<div id="child1">
When this is clicked, #container di... | javascript jquery | [3, 5] |
3,298,976 | 3,298,977 | jQuery.trim does not work when i try to filter a table | <p>I have a textbox to put text in order to filter an html table. I want to trim the textbox contents before filter the table:</p>
<p><strong>Demo</strong>: <a href="http://jsfiddle.net/QFQ5k/94/" rel="nofollow">http://jsfiddle.net/QFQ5k/94/</a></p>
<p>The line that makes the filtering is:</p>
<pre><code>return $(th... | javascript jquery | [3, 5] |
5,320,304 | 5,320,305 | How to save the selected value of checkboxlist in array? | <p>I want to save the values of checkbox in an array using javascript or jquery.
My checkboxlist is inside the datalist. Whenever the user select an item, I want to add the value of that selected item to a array.</p>
<pre><code>ASPX :
<asp:DataList ID="dl_Groups_1" RepeatColumns="1" runat="server" OnItemDataBoun... | javascript jquery asp.net | [3, 5, 9] |
2,085,569 | 2,085,570 | Repeater - Save data in viewstate with the Dropdownlist selection change action? | <p>I need some help in the technical approach with the following scenario:-</p>
<p>1) A dropdownlist with some options. It has a postback action on the selectedIndexChange server side event handler. For example, lets say it contains language options such as english, french etc.</p>
<p>2) Repeater with a label and the... | c# asp.net | [0, 9] |
4,537,470 | 4,537,471 | Array from database not working with json_encode | <p>If I change the array <code>$foo</code> to <code>$foo = array("one","two","three","four","five");</code>
Then javascript will show me drop down lists when as i type the value, but when I am getting array $foo from database, the form is silent. </p>
<p>PHP:</p>
<pre><code><?php
mysql_connect("localhost","root... | php javascript | [2, 3] |
5,966,430 | 5,966,431 | jQuery / JS - Detecting / Matching an URL string to determine it's type | <p>I have two URLs types, (TYPE A)</p>
<pre><code>/items
</code></pre>
<p>Or /items/XXXX with a trailing number (TYPE B)</p>
<pre><code>/items/187
/items/12831
</code></pre>
<p>I would like to know how to detect if the URL is type A or Type B</p>
<pre><code>if (TYPE A) ... else if (TYPE B) ....
</code></pre>
<p>A... | javascript jquery | [3, 5] |
3,908,173 | 3,908,174 | Jquery bind & ready event? | <p>In my jquery code, I am trying to <strong>//Do things</strong> every time the page is reloaded/refreshed and when the select box is clicked. But when I add the ready function (as in document is ready,) yet what is supposed to go inside <strong>//Do things</strong>, only gets executed with a click event, but not read... | javascript jquery | [3, 5] |
3,580,434 | 3,580,435 | Passing data from mobile app (iPhone, Android) to ASP.NET web application | <p>can we pass data from mobile phone application (iPhone app / Android app) to ASP.NET website application?
Does it need to be on a secure channel like SSL?
ASP.NET website, I was thinking of having a WCF service to get data from the mobile phone application, but what would be the better data format?
REST? Json? Plain... | android iphone asp.net | [4, 8, 9] |
802,226 | 802,227 | Jquery cloud zoom issue in chrome | <p>I have a cloud zoom section in mycode and two section for thumbnails.
in one section the thumbnail image is clicked it will load the main image area and cloud zoom will work in main image area(its fine ). other thumbnails , on mouse over the main image needs to change and cloud zoom needs to work but in Chrome its ... | javascript jquery | [3, 5] |
1,616,779 | 1,616,780 | Random interval upwards counter | <p>I'm currently using a jQuery plugin for counting upwards. However, I want this to be a bit more random, simulating number of downloads. For now, the counter counts upwards every 1 seconds, but I want it to be more random every time it ticks. (range from 1sec to 4sec)</p>
<p>I'm currently using: <a href="http://code... | javascript jquery | [3, 5] |
2,786,132 | 2,786,133 | jQuery: How to disable hover on parent element when hovering over child element? | <p>So I have some HTML like this:</p>
<pre><code><a class="tooltip" title="my tool tip">
Hover over me for a tool tip!
</a>
</code></pre>
<p>the javascript changes the html into something like this:</p>
<pre><code><a class="tooltip">
Hover over me for a tool tip!
<span style="positio... | javascript jquery | [3, 5] |
1,474,836 | 1,474,837 | Passing Variable from page to page using ASP.NET (C#) without using QueryString | <p>Looking for advice on passing variables from page to page without using QueryString. The web crawlers such as google get caught up on the querystrings found in a URL. I'm trying to get away from using it. Is there another suggested method for passing the variables? I've thought about using session variables, but... | c# asp.net | [0, 9] |
5,769,187 | 5,769,188 | jQuery "array" is returned undefined | <p>Namaste!</p>
<p>My simple issue is that $sortedData becomes undefined in the following code upon execution:</p>
<pre><code>(function($) {
$.fn.shuffle = function (){
var i = this.length, j, temp;
if ( i == 0 ) { return; }
while ( --i ) {
... | javascript jquery | [3, 5] |
4,165,364 | 4,165,365 | How I can execute a javascript function by placing it inside head tag with runat="server" attribute in page having Master pagewith head tag | <p>How I can execute a javascript function by placing it inside head tag with runat="server" attribute.
My page is using Master Page that already contains head tag with runat="server" attribute.
As obvious I can use just head in my page but not with runat="server" attribute.
Is it possible to execute the javascript... | c# javascript asp.net | [0, 3, 9] |
4,514,909 | 4,514,910 | Unable to update the header summaries for PreferenceActivity on smartphones running 4.x | <p>From what I've noticed, on smartphones running 4.x when you have a PreferenceActivity with headers, the OS will first create an activity containing the headers. When the user clicks on one item from the headers list, another activity will be created representing the PreferenceFragment for that entry. On tablets, the... | java android | [1, 4] |
3,077,403 | 3,077,404 | Get Video Name and Id From url | <p>I have a video url (not youtube url), but my url redirect to the entire page which contains the video. my need is getting that video name and id from that url </p>
<p>Thanks in advance</p>
| php javascript jquery | [2, 3, 5] |
3,305,070 | 3,305,071 | Lost mouseover when mouse is over inner element | <p>I have example like below. How to avoid "lost of mouseover" on <code><div></code> when mouse is over inner <code><span></code> ?</p>
<pre><code><div id="box">
ABC
<span style="font-size: 10px; font-weight: normal;">abc</span>
</div>
</code></pre>
<p>Live demo <a href="http:/... | javascript jquery | [3, 5] |
3,787,341 | 3,787,342 | Javascript replace expression | <p>I'm having trouble replacing some url variables in javascript. I'm trying to replace the value of <code>&s=</code> and <code>&so=</code>. Below is my code:</p>
<pre><code>url = url.replace(/(s=).*?(&)/, '$1' + $("#sort_by").val() + '$2');
url = url.replace(/(so=).*?(&)/, '$1' + $("#sort_ord").val() ... | javascript jquery | [3, 5] |
2,206,653 | 2,206,654 | Problem in form auto submit | <p>How do i submit my form when the timer goes and also if refresh is clicked.??
The problem i faced is whenever refreshed it is asking for user confirmation, if clicked cancel, it remains on same page.</p>
| php javascript | [2, 3] |
699,090 | 699,091 | Any tutorials or books that teach C# the way I learned java (commandline, without intelliSense or VS)? | <p>I'm a good java programmer and want to learn C# (seems fun, delegates, linq, lambda expressions, access to native dlls and unmanged code etc).</p>
<p>Every tutorial, book seems to teach C# with Visual Studio. But at the learning state I want to write everything manually without intelliSense or project/solution etc ... | c# java | [0, 1] |
4,933,240 | 4,933,241 | str_replace() works on WampServer but not on live server? | <p>I have a function which builds a multi-line string that needs to be echo'd out as a JavaScript variable, so after the string is built I run it through <code>str_replace()</code> before returning it like this:</p>
<pre><code>return str_replace("\r\n", "\\\r\n", $output);
</code></pre>
<p>Here's the weird thing: thi... | php javascript | [2, 3] |
4,176,802 | 4,176,803 | jquery php embedding DOM element same problem | <p>When i embed or use php loops to create multiple div's with some id.
I want each of them to use with jquery. Say anything like simple hide/show interface.</p>
<p>But as the id is the same it wont work. I assign a variable lets say $i to php loop for the reference of uniqueness. I can assign id to a DOM element with... | php jquery | [2, 5] |
1,839,681 | 1,839,682 | Eval in asp.net | <pre><code> public void item_bound(object sender,DataGridItemEventArgs e)
{
try
{
if((e.Item.ItemType == ListItemType.Item) || (e.Item.ItemType == ListItemType.AlternatingItem))`enter code here`
{
string Status =(string)DataBinder.*... | c# asp.net | [0, 9] |
1,426,597 | 1,426,598 | Is it possible for an Android app to modify the screen at all times? | <p>To give a ridiculous example, could you have a water app/service that stayed on the display AT ALL TIMES (or perhaps only when not actively using another application) and caused ripples to occur when you touched the screen? I would not want an app like this, but it's just an example.</p>
<p>I know there is a live w... | java android | [1, 4] |
1,968,272 | 1,968,273 | jquery dynamic dropdown menu - appending issue | <p>I am making a dynamic drop down using JSON info. Basically it works, but I can't append the sub menu with the parent. Can anyone give a good suggestion?</p>
<p>json:</p>
<pre><code> "navigation":[
{
"title":"Home",
"link":"index.html"
},
{
"title":"Products",
... | javascript jquery | [3, 5] |
3,487,068 | 3,487,069 | back Button issue...and logout button | <p>I have searched lot on google for this. I got all the code but that code doesn't work. I created a logout button and on button's click redirecting user to logout page...but further things don't go well.</p>
<p>here is code for logout page</p>
<pre><code>protected void Page_Load(object sender, EventArgs e)
{
Se... | c# asp.net | [0, 9] |
1,266,416 | 1,266,417 | On what factors should we opt Java or .Net technology for a windows application? | <p>I am quite aware of both java and C# .Net .when i try to create a new windows application which are the factors that decide which technology should be opted?
I know of one thing ,for great and faster UI development Visual studio helps a lot.</p>
| c# java | [0, 1] |
1,006,359 | 1,006,360 | Javascript find if english alphabets only | <p>Am trying to find some text only if it contains english letters and numbers using Javascript/jQuery.</p>
<p>Am wondering what is the most efficient way to do this? Since there could be thousands of words, it should be as fast as possible and I don't want to use regex.</p>
<pre><code> var names[0] = 'test';
var na... | javascript jquery | [3, 5] |
948,193 | 948,194 | regex function 4 letters and 4 numbers? | <p>i dont understand how regex works so this may be is a simple question for many people, but for me is very important that a person can explain me with simple words how can i use this.</p>
<p>i need to validate in jquery adding a new function</p>
<pre><code>$.validator.addMethod("loginRegex",function(a,b){return thi... | javascript jquery | [3, 5] |
4,550,192 | 4,550,193 | How Jquery/Javascript dynamically add td (table) | <p>I need help, any ideas?</p>
<p>Firstly i want to hide some input element when page open,
My approach creating dropdown <code>$counter (1-8)</code> and then depending on <code>$counter</code> Example:3.</p>
<p>I create/show existing element dynamically <code>($counter)<td></td></code> inside <code>tr</c... | javascript jquery | [3, 5] |
1,269,729 | 1,269,730 | EXC_BAD_ACCESS and char pointer to float pointer cast | <p>I'm currently writing a file loader for an ipad program and I'm getting strange EXC_BAD_ACCESS exceptions. Here is a short snipped of code that I think is the reason for the error:</p>
<pre><code>float testFloat() {
char mem[32];
char *charPtr = &mem[0];
float *floatPtr = (float*)(charPtr + 1);
... | iphone c++ | [8, 6] |
2,933,848 | 2,933,849 | How to use broadcast DATE_CHANGED? (android) | <pre><code> <receiver android:name="com.BillManager.DateChanged">
<intent-filter>
<action android:name="android.intent.action.DATE_CHANGED"/>
</intent-filter>
</receiver>
</code></pre>
<p>in class...</p>
<pre><code> if (acti... | java android | [1, 4] |
3,304,594 | 3,304,595 | whats wrong with this JS | <p>firebug is complaining its there is a syntax error</p>
<pre><code>if (document.getElementById("fromAddress").value == "") ||
(document.getElementById("fromAddress").value == "Enter Address, City, Directions") {
</code></pre>
| javascript jquery | [3, 5] |
2,152,099 | 2,152,100 | jquery POST method callback function query | <pre><code>$("#submit_js").click(function() {
var commentmsg = $('#comment').val();
$.post(
"user_submit.php",
{comment: $("#comment").val(), aid: imgnum, uid:$("#uid").val()},
function(data){
/*alert(data);*/
//$('#greetings'... | php javascript jquery | [2, 3, 5] |
4,670,444 | 4,670,445 | To building a jQuery web widget for other domains | <p>I spent two days to develop a web widget for other domains but I didn't get any success. I found a <a href="http://alexmarandon.com/articles/web_widget_jquery/" rel="nofollow">tutorial</a> to develop a widget that is quite useful but my problem is:</p>
<p>If user clicks on my widget button then the widget will chec... | php jquery | [2, 5] |
2,175,166 | 2,175,167 | BlockUI scrolls to top | <p>I am using the JQuery BlockUI plugin:</p>
<pre><code>function block(msg) {
$.blockUI({
message: msg,
css: {
border: 'none',
padding: '15px',
backgroundColor: '#000',
'-webkit-border-radius': '10px',
'-moz-border-radius': '10px',
... | javascript jquery | [3, 5] |
28,910 | 28,911 | copy .aspx webform error | <p>I wanted to copy my .aspx file and paste it with all its content,
but I run into an error.</p>
<p>this is what I did :
1. Copy - Paste.
2. rename the new aspx file in the solution explorer.
3. rename the Inherits in the aspx file (the "code behind" there was already changed automatically for some reason..)</p>
<p... | c# asp.net | [0, 9] |
2,585,346 | 2,585,347 | Using a SAVE Button | <p>I have have completed an application and would like to add a save button to store all the string values throughout the activity. I have read about csv write, sqlite and others and trying to determine the best way to go. I would like to basically create a report with a header, column headings and then the data and ... | java android | [1, 4] |
4,640,888 | 4,640,889 | how to tell a string is all in english in php or javascript? | <p>how to tell a string is all in english of php. eg:$test="eeeeeeeeeeeee"
how to tell that the <code>$test</code> string is writen all in english.</p>
| php javascript | [2, 3] |
6,018,729 | 6,018,730 | Pattern checking .Check for incorrect operators in an expression | <p>In an expression , How to
1.Check if operators and operands are correct or not.
2.check if brackets match or not.
Example 1: (a+b)- has a one extra operator How do i confirm that the number of operators are incorrect.
Example 2 :((a+b)/(c-d) has one extra opening bracket. how to check such irregularities.
Any re... | c# javascript asp.net | [0, 3, 9] |
97,167 | 97,168 | what is the best practice to do the following using jquery/javascript? | <p>So I am just trying to add some functions to hover. the below does about the same thing except the one with the for loop i have the target stored in an array. I actually have a few questions.</p>
<ol>
<li>is this the correct use of stopPropagation?</li>
<li>what's the best practice for doing something like this? </... | javascript jquery | [3, 5] |
4,425,011 | 4,425,012 | Jquery Remove Image | <p>My overall problem is to lazy load images. I've gotten to the point where I'm loading the images only when they are on screen. I need to remove the images that are not on screen. </p>
<p>I thought </p>
<pre><code>$(image).removeAttr("src")
</code></pre>
<p>would do it and it rightly removes src, but it does not c... | javascript jquery | [3, 5] |
5,642,642 | 5,642,643 | PHP Audio Streamer for Facebook like Chirbit | <p>I want to use a third party like chirbit through which we can upload the audio files and can use the url in the facebook post to play the audio in Facebook. Chirbit worked well, but it didn't provided <code>api</code>, since I want to this whole stuff through android code. Can anyone suggest to similar kind of third... | php android | [2, 4] |
2,443,920 | 2,443,921 | for a newbie,what is the best web app to develop firstly? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/987057/small-projects-ideas-to-teach-beginners-web-developent-using-asp-net">Small projects ideas to teach beginners web developent using ASP.Net</a> </p>
</blockquote>
<p>I am learning about technical skills to... | c# asp.net | [0, 9] |
3,876,024 | 3,876,025 | ("kg"=="kg") returns false. How Do I tell java, that this comparison returns true? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/995918/java-string-comparison">Java string comparison?</a> </p>
</blockquote>
<p>I was trying to do this:</p>
<pre><code>boolean exit = false;
while(exit==false && convStoreIndex<convStoreLength) {
... | java android | [1, 4] |
3,283,752 | 3,283,753 | Android SharedPreferences NullPointerException on getSharedPreferences | <p>I'm trying to create a single class which will deal with storing and retrieving two user settings 'radius' and 'cluster'.</p>
<p>Upon loading the 'Settings' activity I get a null pointer exception.</p>
<p><strong>Snippet from the user settings:</strong></p>
<pre><code> storage = new Persistence();
radius =... | java android | [1, 4] |
6,018,621 | 6,018,622 | Pass string variable from java to php function | <p>I am a beginner java and php
I must pass a string variable from Java client to php server using WebView</p>
<p>Is what I am doing right?</p>
<p>In java side:</p>
<pre><code>String Coords=CoordsString;
String PHPPagePath="http://10.0.2.2/ReceiveLocation.php?Coords=" + CoordsString";
</code></pre>
<p>and on the p... | java php android | [1, 2, 4] |
5,171,728 | 5,171,729 | How do I get some JavaScript/jQuery to run in sequence | <p>I have an HTML file which contains two divisions. One has id 'welcome' and the other is named 'welcome_distort'.</p>
<p>With jQuery imported, I have a seperate js file which contains some code that operates on these divs.</p>
<pre><code>$("#welcome").fadeTo(50,0.1);
$("#welcome").fadeTo(10,1.0);
$("#welcome").fade... | javascript jquery | [3, 5] |
1,490,630 | 1,490,631 | Should I do my object oriented design class with Java or C++? | <p>I learned the C programming language and did my data structures class with C. What I am thinking is to learn Java. I know how the low level stuff works and people suggested that C++ is not a good language to do object oriented design. What do you think? Should I skip C++ and learn object oriented design using Java o... | java c++ | [1, 6] |
2,666,592 | 2,666,593 | jQuery idle timeout for pages with iframes | <p>Idle timeout plugin, Google search brings couple of them, but not any which takes care of pages containing iframes. I have a lot of iframes in my pages. I use a jQuery idle timeout plugin. I click anywhere in page timer is rest, but if I click on iframe timer is not rest. Please advice, is there any plugin which wor... | javascript jquery | [3, 5] |
1,915,834 | 1,915,835 | How to convert signs in url/text to hex characters? (converting = to %3D) | <p>With the script I'm making, jquery is getting vars from url parameter. The value that its getting is an url so if its something like </p>
<p><code>http://localhost/index.html?url=http://www.example.com/index.php?something=some</code> </p>
<p>it reads:</p>
<pre><code>url = http://www.example.com/index.php?somethin... | javascript jquery | [3, 5] |
2,609,840 | 2,609,841 | How to validate incoming Urls? | <p>I need to validate incoming urls from my application following is the scenario</p>
<p>on url <a href="http://abc.com/login.aspx" rel="nofollow">http://abc.com/login.aspx</a> - need to validate incoming urls from anyone of following</p>
<p><a href="http://xyz.com/start.aspx" rel="nofollow">http://xyz.com/start.aspx... | c# asp.net | [0, 9] |
3,847,048 | 3,847,049 | jquery ui Autocomplete causing error with headers | <p>I'm getting an error when trying to redirect. It only started after I installed a search box with autocomplete. When I pull the bit of code out, the page redirects properly again. I know it isn't my php.ini settings.</p>
<p>This is the error I'm getting:</p>
<blockquote>
<p>Warning: Cannot modify header informat... | php javascript jquery | [2, 3, 5] |
5,381,337 | 5,381,338 | JQuery - Pass value from an input box to a input box in another page | <p>quick question here.</p>
<p>Normally, using JQuery, if I want to pass the value from an input box to another one on the same page, I`d just do something like this :</p>
<pre><code> <script type="text/javascript">
$('#postalCodeBtn').live('click', function(){
var text = $('#from1').val();
$('#... | javascript jquery | [3, 5] |
2,538,737 | 2,538,738 | Jquery using the click function to just reference buttons | <p>Hi I have this line in my script to reference any button click on my page </p>
<pre><code> $("input").click(function() {
alert ("clicked") ;
but_id = (this.id);
});
</code></pre>
<p>It will then work on any input element but I cant seem to reference just a button . I thought this woul... | javascript jquery | [3, 5] |
3,811,711 | 3,811,712 | Android key hold repeatedly generating event | <p>Is it normal that when you press and hold the Dpad key (or any other
keys), it will first generate 1 key event, and after like 1 second or
2, it will then generate other key events repeatedly, as long as you
are still pressing the key?? I am trying to write a game and want to
use the Dpad as the game control, bu... | java android | [1, 4] |
182,104 | 182,105 | how to add text to span jquery | <p>I have this jquery code that I am using to create a dynamic menu</p>
<pre><code>function createList(test){
alert(test);
$('#nav')
.append('<li class="top"><a href="nogo2" id="products" class="top_link"><span class="down"></span></a></li>');
$('.down'... | javascript jquery | [3, 5] |
3,956,401 | 3,956,402 | How to focus in div tag in javascript | <p>I have created a tabs using div tag in javascript. I have asp.net button on each tab. whenever I clicked on button the focus is set to first tab.</p>
<p>I am using following code in page load event.</p>
<pre><code>HtmlGenericControl content_1 = new HtmlGenericControl("content_1");
HtmlGenericControl content_2 = ne... | javascript asp.net | [3, 9] |
1,522,333 | 1,522,334 | asp.net int? when in debug being converted to Hex problem | <p>when I debug the values of variables set to an int?are being converted to hex values.<br>
Does anyone know how to prevent the conversion from occuring?</p>
<p>thanks,
Niall</p>
| c# asp.net | [0, 9] |
3,286,708 | 3,286,709 | jQuery click event problems when selecting by class and <div> | <p>When I access <code><div></code> or <code><p></code> elements by class with jQuery for a click function, it repeats the event by how many elements are in the array or stack. So, if I have 3 <code><div></code> elements on top of each other or next to each other, the one on the bottom, or the one to ... | javascript jquery | [3, 5] |
553,212 | 553,213 | Tossing the coin over learning PHP or JavaScript first | <p>In your opinion which should I learn first: PHP or JavaScript?</p>
<p>I am going to learn both but which order do you feel I should learn them in? </p>
| php javascript | [2, 3] |
1,449,743 | 1,449,744 | How to Restart my Previous Activity from Next Activity | <p>I have critical stage can anyone help if you know,Actually i have 1 to 5 activities and 6th one is common activity,first i need to go 1st activity to 6th activity,Now my doubt is in 6th activity having one refresh button for activity 1st activity but its not working in my code,i have used
_Try_Again.setOnClickLi... | java android | [1, 4] |
744,710 | 744,711 | JQuery click event not working correctly after class change | <p>I have JQuery script similar to this:</p>
<pre><code>$('.follow_link').click(function(){
// Do some stuff
$(this).removeClass();
$(this).addClass("unfollow_link");
});
$('.unfollow_link').click(function(){
// Do some stuff
$(this).removeClass();
$(this).addClass("follow_link");
});
</code></pre>
<p>My... | javascript jquery | [3, 5] |
3,927,931 | 3,927,932 | Print PDF file to default printer on client side using Jquery or javascript | <p>I am creating an PDF file to print badges for Cloud Based application. Until now it's fine.</p>
<p>Now I need to print this PDF file on client side default printer. As they are using DYMO printer. My code is not supporting the dymo printer.</p>
<p>So is there any code, using javascript or jQuery to do this? .</p>
... | javascript jquery | [3, 5] |
1,106,488 | 1,106,489 | Formatting percentages in ASP.NET C# databinding using Eval | <p>There is a col in a database that is declare as decimal 4 precision 3. I need to multiply this number by 100 (I am doing that in the stored proceure query) and display it as a decimal with only significant zeros afte the decimal point. If the resulting value is less than 1%, I supose it should be displayed with a 0 ... | c# asp.net | [0, 9] |
431,205 | 431,206 | javascript async woes | <p>This is a newbie JavaScript question, but something I'm not quite sure how to google for help because I'm not sure how to describe the problem in an easy way.</p>
<p>I have a large, somewhat complex JSON that I need to manipulate so that I could reshape the JSON in a way that I get a list of only countries, cities,... | javascript jquery | [3, 5] |
2,008,954 | 2,008,955 | jQuery: Any way to "refresh" event handlers? | <p>I have two divs, one that holds some stuff and the other with all possible stuff. Clicking on one of the divs will transfer items to the other div. The code I came up with is:</p>
<pre><code>$("#holder > *").each(function() {
$(this).click(function(e) {
$(this).remove();
$("#bucket").append(t... | javascript jquery | [3, 5] |
2,589,641 | 2,589,642 | Why do I need to set the Visibility of LinkButton in a ListView Layout in the LayoutCreated event instead of directly on the LinkButton? | <p>I have a ListView control and in the LayoutTemplate I have a LinkButton. I tried setting the Visible property to <%# IsUserAdmin %>, where IsUserAdmin is a method which returns true or false depending on whether the user is an admin or not and sets the visibility of the control, but I found out that this does no... | c# asp.net | [0, 9] |
2,301,005 | 2,301,006 | Adding start delay | <pre><code> function moveto(coordinates) {
step1 = coordinates[0];
step2 = coordinates[1];
var w = $(document).width();
var h = $(document).height();
$( "#full" )
.animate({left: -(step1 * w)}, 2000 )
.animate({top: -(step2 * h) }, 500 );
}
var randomNum = randomNumbers();
moveto... | javascript jquery | [3, 5] |
4,133,354 | 4,133,355 | why document.write doesn't complete as expected | <p>Just trying to set up a little test page and even it doesn't behave as expected.</p>
<p>Given the following working code:</p>
<pre><code><!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8">
<title>Terry's Test Page</... | javascript jquery | [3, 5] |
5,978,632 | 5,978,633 | Android: save file to SD-card | <p>.txt file need save in SD-card.</p>
<pre><code>Save("n" + String.valueOf(key) + ".txt");
private void Save(String FileName){
File fileName = null;
String sdState = android.os.Environment.getExternalStorageState();
if (sdState.equals(android.os.Environment.MEDIA_MOUNTED)) {
... | java android | [1, 4] |
2,371,171 | 2,371,172 | jQuery equivellent for dynamically create id | <p>I am looking for jQuery equivellent for the following. Please help. </p>
<pre><code>var request = document.getElementById('request_' + id1)
var response = document.getElementById('response_' + id1);
modifyText(request.firstChild.nodeValue,response.firstChild.nodeValue);
</code></pre>
| javascript jquery | [3, 5] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.