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 |
|---|---|---|---|---|---|
5,987,650 | 5,987,651 | HTML encode asp.net tree view nodes | <p>I would like to know how to html encode nodes in a asp.net treeview control? I have a requirement that requires the nodes to have items that accepts "<" ">" symbols.</p>
<p>The code sample below is what I'm currently using as a treenode.</p>
<pre><code>public class SampleTreeNode : TreeNode
{
public SampleT... | c# asp.net | [0, 9] |
2,781,370 | 2,781,371 | how do i stop a form submit with jQuery | <p>I have this form <a href="http://posnation.com/shop_pos/" rel="nofollow">here</a> and i dont want them to go to the next page without certain selections</p>
<pre><code><form method="post" action="step2/" id="form1">
....
....
....
<input type="submit" class="submit notext" value="Next" />
</code></pre>
... | javascript jquery | [3, 5] |
3,718,761 | 3,718,762 | How to add a fade-in effect in jQuery text | <p>How to add a fade-in effect when the data is returned to the <code>#results</code> div?</p>
<pre><code>$('#results').html(data);
</code></pre>
<p>I tried</p>
<pre><code>$('#results').html(data).fadeIn('slow');
</code></pre>
<p>but it doesn't seem to work</p>
<p>My code</p>
<pre><code> submitHandler: fun... | javascript jquery | [3, 5] |
5,722,553 | 5,722,554 | How to show dropdownlist dynamically | <p>I am using grid view to display data from database. There is a status column which holds 3 values. I wan the user to be able to change the value using a dropdownlist in the grid which will be visible when the user clicks on the ChangeStatus but which is present on each row.Any ideaa how to achieve this??</p>
| c# asp.net | [0, 9] |
1,090,442 | 1,090,443 | Adding OutPutCache to Control Definition Alters its Class ...? | <p>I'm working on a web app (CMS) that loads controls dynamically into a holder page. Using .Net version 3.5.</p>
<p>All my controls inherit from a custom base class.</p>
<p>So at runtime I have a bit of code that does something like this:</p>
<pre><code>Sarx.cms.BaseControl bctl = (Sarx.cms.BaseControl)LoadControl(... | c# asp.net | [0, 9] |
2,870,775 | 2,870,776 | Set the ViewState of the parent class in the child class asp.net | <p>I am working on an existing portal wherein I have a class which is inheriting from another class. In the base class the <code>Page.EnableViewstate</code> has been set to <code>false</code> as shown below.</p>
<pre><code>Page_Load()
{
Page.EnableViewState=false;
}
</code></pre>
<p>However in the child class am usin... | c# asp.net | [0, 9] |
668,069 | 668,070 | How do people name the $(this) when it's used within code? | <p>I have the following code:</p>
<pre><code>$('#detailData')
.on('change', '.updatable', function () {
var type = $(this).attr('id').split('_')[1];
updateField(entity, $(this), type);
return false;
})
</code></pre>
<p>I would like to add to the code and use <code>$(this)</code> multip... | javascript jquery | [3, 5] |
1,341,326 | 1,341,327 | Single application with different UIs depending on the user's role | <p>I will be working on Android application to be used inside an organization.<br>
Four different types of users categories will use the application and upon login, each user will see and interact with interfaces depending on his role. </p>
<p>I'm familiar with -well- regular Android applications but not with applica... | java android | [1, 4] |
4,601,174 | 4,601,175 | jQuery modal dialog cancel button isn't working | <p>I am using jQuery modal dialog in my web application. I have used one <code>button (cancel)</code> and want to close dialog by clicking on it but it's not working, while <code>disable & destroy</code> is working.<br>
any idea please....</p>
<p><em><strong>Code :</em></strong></p>
<pre><code>$("#dialog-form" ).... | javascript jquery | [3, 5] |
1,061,030 | 1,061,031 | on click for jquery not being recognized | <p>I have done on hover and on click with jQuery plenty of times, but this is baffling me. I have the jQuery library imported, and I have the following:</p>
<pre><code>$(document).ready(function() {
$('.content_main_left_bottom').bind("click", function(e) {
alert('hi');
});
});
</code></pre>
<p>For s... | javascript jquery | [3, 5] |
4,596,951 | 4,596,952 | jQuery - Selecting Multiple Classes | <p>I've had a good look and can't seem to find how to select all elements matching certain classes in one jQuery selector statement such as this:</p>
<pre><code>$('.myClass', '.myOtherClass').removeClass('theclass');
</code></pre>
<p>Any ideas on how to achieve this? The only other option is to do</p>
<pre><code>$(... | javascript jquery | [3, 5] |
3,282,928 | 3,282,929 | Help With Scalable JavaScript Application Architecture and Chaining | <p>I'm currently trying to roll my own javascript application architecture based off of the recommedations by <a href="http://yuilibrary.com/theater/nicholas-zakas/zakas-architecture/" rel="nofollow">Nick Zakas</a> and I am using jQuery as the base library. I have everything pretty much working but it dawned on me tha... | javascript jquery | [3, 5] |
2,677,254 | 2,677,255 | how can i load the contents of an xml file at a url into a string? | <p>how can i load the contents of an xml file at a url into a string?</p>
<p>eg there is an xml file at <a href="http://www.example.com/test.xml" rel="nofollow">http://www.example.com/test.xml</a></p>
<p>I want the text of the xml to be assigned to a string.
How can i do that using c#?</p>
<p>thanks</p>
| c# asp.net | [0, 9] |
3,426,225 | 3,426,226 | How do I prevent the error: System.FormatException: Input string was not in a correct format | <p>My code works just fine as long as the database returns a result set. When it returns nothing it breaks and gives me the following error:</p>
<pre><code>System.FormatException: Input string was not in a correct format.
</code></pre>
<p>Here is my code:</p>
<pre><code>DataTable data = GeneralFunctions.GetData( qu... | c# asp.net | [0, 9] |
3,070,070 | 3,070,071 | fading between images with attr src | <p>I have the code below,but I don't get the pictures to be fade and replace</p>
<p>I see the I'm getting on the firebug console :</p>
<p>"missing ) after argument list"
and also when I click on the function changeBg the console say that "changeBg is not defined"</p>
<pre><code> JS:
<script language="JavaScript... | javascript jquery | [3, 5] |
4,933,855 | 4,933,856 | Need Help With HttpWebRequest object | <p>I'm trying to build a proxy module for .NET, but I'm having trouble copying the Headers from the current request to the new request. I am setting the headers of the new request, because I want the proxy to support SOAP requests. Here is a portion of my code. I can post everything if need, but this is the only par... | c# asp.net | [0, 9] |
502,901 | 502,902 | how can i add multiple images to image source in php? | <p>i have multiple Images in drop down List and I have to Show the Selected Images in a Particular box when i click on any image in Drop Down list.after Clicking the image,the previous image should replaced by clicked image in box.
but after loading or refreshing the page the updated image disappear and
showing the... | php javascript | [2, 3] |
5,922,910 | 5,922,911 | What is the Java equivalent of creating an anonymous object in C#? | <p>In C#, you can do the following:</p>
<p><code>var objResult = new { success = result };</code></p>
<p>Is there a java equivalent for this?</p>
| c# java | [0, 1] |
3,233,246 | 3,233,247 | Select first children in nested list using JavaScript | <p>I am trying to select only the first children under Sally. Using JavaScript, how would I select Car, Boat, & Bike and change the font color to red?</p>
<pre><code><script type="text/javascript">
$(document).ready(function() {
var j = jQuery.noConflict();
j('#content2 ul li ul').children().css('col... | javascript jquery | [3, 5] |
5,856,690 | 5,856,691 | update progress for ASP:Button | <p>I want to use show a "Loading Image" on the click of server side button, that should be unloaded after the button event completes.</p>
<p><a href="http://ajax.net-tutorials.com/controls/updateprogress-control/" rel="nofollow">http://ajax.net-tutorials.com/controls/updateprogress-control/</a>
have to use Javascript ... | javascript jquery asp.net | [3, 5, 9] |
4,166,249 | 4,166,250 | $.ajax and ashx page | <p>I am using the following code to store values in aspx session.</p>
<p>Code:</p>
<pre><code> $("div.menu_body a").click(function() {
var linkHeaderID = $(this).parent().attr("id");
$.ajax({
type: "GET",
url: "SessionHandler.ashx",
data: "headerLink=" ... | c# asp.net jquery | [0, 9, 5] |
5,553,471 | 5,553,472 | jQuery autocomplete; want Return key to behave as Tab | <p>The following code behaves different when <strong>tab</strong> and <strong>enter</strong> keys are pressed:</p>
<p>--<strong>tab</strong> replaces the text field's value with the value of the selected item and focus goes to the next input box</p>
<p>--<strong>enter</strong> replaces the text field's value with the... | javascript jquery | [3, 5] |
199,700 | 199,701 | jQuery attribute selector unrecognized expression error | <p>I'm using the following code to select the list item for current page from a navigation unordered list, but I keep getting an unrecognized expression error on <code>'a[href$="{server-relative URL}"]'</code></p>
<p>I've checked matching quotes/brackets that other questions mention, and the link will not contain char... | javascript jquery | [3, 5] |
2,503,256 | 2,503,257 | Wrapping string in tags | <p>I want to take a string and wrap it in tags like this:</p>
<pre><code><!-- What I've got: -->
<div class="calendar">Feb 22</div>
<!-- What I want:
<div class="calendar">
<div class="calendarMonth">Feb</div>
<div class="calendarDay">22</div>
</di... | javascript jquery | [3, 5] |
1,808,135 | 1,808,136 | Jquery Timer To server time | <p>I am creating a game where i need the user to enter a deadline time using a jquery dateTime plugin (my PC time) and i save it in the database along with the current time using php (server time).. Then i run a cron (on the server time) where i need the difference of these two times for further work. but there is a lo... | php jquery | [2, 5] |
5,629,181 | 5,629,182 | fadeout and fadein between two different pages in jquery | <p>Apologies if this may sounds simple, all im trying to do is fadeout the current page and fadein another page. However I'm having difficulties. I know how to do it between divs, the following fades out the leftcolumn div and inputs this in together with the myform on the stage3.php page. My question is how do i fa... | javascript jquery | [3, 5] |
553,640 | 553,641 | How to take the value of two EditText fields and perform simple mathematics | <p>I am new to Android development and am working on a simple practice project where the user enters a number into two EditText fields and presses a Button labeled "Calculate" and the sum of the two numbers is displayed. Here is the code I have so far, but I don't know how to add the two string values and output it to ... | java android | [1, 4] |
1,601,755 | 1,601,756 | how to change the alterbox and confirm box buttons and Icons in asp.net2.0? | <p>I am writting like that in asp.net2.0 .cs file , after executing code disply alert message 'Invoice Created Successfully' but warning icon displayed in that message but it display information icon and same as confirm box also pls help me</p>
<pre><code>Response.Write("<script>alert('Invoice Created Successful... | c# javascript jquery asp.net | [0, 3, 5, 9] |
4,659,796 | 4,659,797 | Android Limit EditText to Integer input only | <p>I am trying to apply some kind of verification to an edittext. A user should only be able to enter integers between 1 and 60. I am wondering whether I should let them type whatever they like and when they focus off of the edittext check the contents and if it is out of bounds change the value to a default, say 0.</p... | java android | [1, 4] |
1,576,601 | 1,576,602 | How to save original height of a series of boxes when height is unkown? | <p>I have a series of boxes:</p>
<pre><code><div class="box"></div>
<div class="box"></div>
<div class="box"></div>
<div class="box"></div>
</code></pre>
<p>The css:</p>
<pre><code>.box {
height: auto;
}
</code></pre>
<p>The actual height is set only once the boxes... | javascript jquery | [3, 5] |
3,097,337 | 3,097,338 | How to Display a Status Message on the Next Page after a Redirect with .net Framework? | <p>I am adding a form to my .net web forms application and I want to redirect the user to another page but display a status message after the redirect such as 'Your articles has been submitted successfully'.</p>
<p>Any good ways of doing this?</p>
<p>I was thinking of doing it with sessions and a user control but wan... | c# asp.net | [0, 9] |
808,187 | 808,188 | c# equivalent for php @ | <p>I need an equivalent of "@" in php for c#. here is example i want to do:</p>
<pre>
<code>
//in php
$str = @$_POST['x'].@$_POST['y'];
//in c#
string str = Request["x"]+Request["y"];
//if the given key is not exist it will break the code.
//also i dont want to use "try catch" because variables is many.
</code>
<... | c# php | [0, 2] |
3,102,360 | 3,102,361 | Error while creating chart using c# asp.net | <p>Hi this my first time I'm trying to create a chart and I have an error, so can any one help me please ? </p>
<p>This is the code ( I'm using line chart ) : </p>
<pre><code>protected void Page_Load(object sender, EventArgs e)
{
Chart1.ChartAreas.Add("chtAres");
Chart1.ChartAreas[0].AxisX.Title =... | c# asp.net | [0, 9] |
5,000,394 | 5,000,395 | Replace text using jquery | <p>Hi
I need to replace a text within div that says "Please wait..." with "Ok.Its done." after a random delay.Please help.Thanks in advance.</p>
| javascript jquery | [3, 5] |
2,510,898 | 2,510,899 | Need to generate ASP.NET controls from a database | <p>I am writing an application where the controls for a page need to be determined from data in a Sql Server table.</p>
<p>For example: I have a PropertyGroups with Properties(Join Table)
I then have categories to Propertygroups, the Properties have a values table, blah blah. Not to get too much in to the DB schema, b... | c# asp.net | [0, 9] |
3,580,719 | 3,580,720 | how to play and stop sound control by javascript in wmplayer? | <p>how to play and stop sound control by javascript in wmplayer in asp.net ?</p>
| asp.net javascript | [9, 3] |
420,549 | 420,550 | Can't add new lines in JavaScript alert Box? | <p>I'm generating a string in PHP and then eventually passing this string into a Javascript alert box, my problem is I actually can't add line breaks in my alert box.</p>
<p>My code looks as follows</p>
<pre><code>$str = "This is a string\n";
$alert = $str."This is the second line";
if(!empty($alert)){
... | php javascript | [2, 3] |
5,653,997 | 5,653,998 | Is adding custom attributes using jquery metadata plugin cross browser? | <p>Imagine I have some make-believe markup containing a list of books with custom attributes using the <a href="http://plugins.jquery.com/project/metadata" rel="nofollow">metadata plugin</a>.</p>
<pre><code><div>
Haruki Murakami
</div>
<div>
<ul>
<li><span id="book5" data="{yea... | javascript jquery | [3, 5] |
3,530,887 | 3,530,888 | Querying MySQL tables and displaying results in tabbed-panes | <p>I have an PHP array. I have to loop over it to query 3 MySQL tables. The attributes of all the tables are the same, just the table names are different. </p>
<p>Once I get the results I have to display it in tabbed-panes. I will have 3 tabbed-panes. When I click on the tab, respective results should populate the tab... | php javascript | [2, 3] |
4,586,299 | 4,586,300 | Only Cyrillic input text form | <p>How do I restrict input text into a web form textbox only <strong>Cyrillic</strong> characters?</p>
| javascript jquery | [3, 5] |
1,203,000 | 1,203,001 | How to show a html button for asp:button click | <p>I have an asp.net web page with asp:button control. I need to show two (normal) HTML buttons for the click event of the asp:button control.
My requirement is when the page load for the first time there will be only asp:button there visible. After I click on that asp:button other two HTML buttons should be visible. ... | c# jquery asp.net | [0, 5, 9] |
2,325,117 | 2,325,118 | Checkbox problems inside jQuery dialog and Repeater | <p>So I've been basically beating my head against the wall on this for a while now. Excuse me if I throw up too much code here, don't know a better way to explain it. I've got a Repeater with an ItemTemplate of:</p>
<pre><code><ItemTemplate>
<div id='FileFrame<%#Eval("Id")%>' class="view">
... | c# jquery asp.net | [0, 5, 9] |
2,143,536 | 2,143,537 | How to find out where variable is being set? | <p>I have a page and there is a public variable that is being set somewhere, but I can't find where it is being set. I have tried using 'Find Usages' but it only finds where it used within the same page.</p>
<p>Are there any other ways I can find out where it is being set?</p>
| c# asp.net | [0, 9] |
1,096,721 | 1,096,722 | Avoid repetition by passing in a value | <p>I'm inserting images into dom with javascript and I would like to pass in the second classname and some other properties of the images while calling the function.</p>
<p>So I have functions containing code this:</p>
<pre><code>function movieCreator(movieName){
'<img class="clip terminator" src="images/terminat... | javascript jquery | [3, 5] |
3,948,677 | 3,948,678 | how can I store a newly appended element into a variable? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/1162677/how-can-i-get-a-reference-to-a-node-directly-after-it-is-appended">How can I get a reference to a node directly after it is appended?</a> </p>
</blockquote>
<p>as an example:</p>
<pre><code>$(document).... | javascript jquery | [3, 5] |
5,029,242 | 5,029,243 | jQuery fadeOut / fadeIn scroll issue in Chrome | <p>I am using jQuery fadeOut & fadeIn to dynamically change the content on a page, inside a div. All browsers work great, except Chrome for Mac. In Chrome for Mac, on the first page, if you scroll down, fadeOut and then fadeIn the newly faded in content is "off the screen" - in other words, missing. If you don't sc... | javascript jquery | [3, 5] |
5,932,634 | 5,932,635 | Farbtastic jQuery Color Picker Callback Issues | <p>I'm trying to play around with the Farbtastic: <a href="http://acko.net/dev/farbtastic" rel="nofollow">http://acko.net/dev/farbtastic</a> color picker plugin but I'm having some issues.</p>
<p>I want to setup a callback function so that I can change the bg color like so:</p>
<pre><code> $('#picker').farbtastic(fu... | javascript jquery | [3, 5] |
1,797,887 | 1,797,888 | Compare journey date with return date in asp.net c# | <p>I have to compare Journey date with return date. Return date should be Greater than equal to journey date. Which validator should be used for that & how?
Help me.
Asp.net c#.
Thank you.</p>
| c# asp.net | [0, 9] |
2,695,104 | 2,695,105 | How to send an Email with longitude and latitude coordinates or maybe send a Google static map using c# | <p>How to send an Email with longitude and latitude coordinates or maybe send a Google static map using c#. The information should represent the sender email address or IP address as to where the sender is located. </p>
<p>I am using a simple email form and would like to add this feature to it. How do I go about this ... | c# asp.net | [0, 9] |
3,116,670 | 3,116,671 | How to use live method with zclip plugin? | <p>How to use live method with this -> <a href="http://www.steamdev.com/zclip/" rel="nofollow">http://www.steamdev.com/zclip/</a></p>
<p>Edit:</p>
<pre><code>$(document).ready(function(){
$('a#copy-description').zclip({
path:'js/ZeroClipboard.swf',
copy:$('p#description').text()
});
</code></pre>
<p>i need to use li... | javascript jquery | [3, 5] |
3,980,253 | 3,980,254 | Ignore escape sequences in strings java? | <p>In C#, I can write the string <code>"\\myDir\\myFile"</code> as <code>@"\myDir\myFile"</code>. What is the equivalent for this "@" character in Java, if any?</p>
| c# java | [0, 1] |
4,765,939 | 4,765,940 | Setting a dynamic margin | <p>So I have this issue with setting a margin that dynamical decreases and increases to a minimum of 8px and maximum of 40px.</p>
<p>The margin is being set between 11 different blocks which are inside a container. The container can be a minimum width of 960px or a maximum of 1280px and always has a fixed height.</p>
... | javascript jquery | [3, 5] |
1,329,853 | 1,329,854 | Jquery Theme Reload | <p>I've changed my jquery theme but when I try to open website into my browser then it loads old theme. I have checked with CTRL + R, CTRL + F5 and also restarted browser. Its loading old theme again. I've also tried with CHROMe but same problem. But When I open this website on another computer where I haven't opened i... | php javascript jquery | [2, 3, 5] |
3,989,794 | 3,989,795 | Equivalent to PHP function number_format in jquery/javascript | <p>PHP Function:</p>
<pre><code>function formatNumberForDisplay($number, $decimal=0, $decimalSeperator='.', $numberSeperator=',')
{
return number_format($number, $decimal, $decimalSeperator, $numberSeperator);
}
</code></pre>
<p>My need:
Can any body suggest me the equivalent functionality in jquery/javascript. ... | php javascript jquery | [2, 3, 5] |
5,957,994 | 5,957,995 | how to get data from web to android app ? | <p>I'm android beginner. I'm programming stock market application for android.<br>
I don't know any way to do that, what should I do to get data about stock market?<br>
Thanks very very much!!!</p>
| android asp.net | [4, 9] |
1,434,507 | 1,434,508 | Opening a specific node in an asp.net tree view dynamically | <p>Can any one help to expand a particular node according the value passed from a previous page..i.e:</p>
<p>Page1: Value to pass : hyp1</p>
<p>Page 2: Tree View--> if (val == hyp1) then</p>
<p>SubNode in a node2 should open....</p>
<p>Can any one help me in doin this using C# in asp.net?</p>
| c# asp.net | [0, 9] |
3,073,077 | 3,073,078 | provide software as a service just like google docs | <p>I want to view file on my client machine through web browser which is uploaded on server...without client having that file and software to open it...in short to give software as a serrvice to my clients just like google docs.I have done uploading of file to server..not getting further part of viewing my file on bro... | c# asp.net | [0, 9] |
468,202 | 468,203 | Javascript: How can I make that if the user check a checkbox then all nested checkbox are selected too? | <p>Let say I have this:</p>
<pre><code><input id="album" name="album" type="checkbox" value="1" />
<label for="album">Albums</label><br>
<ul>
<li>
<input id="albums_155596787784467" name="albums[155596787784467]" type="checkbox" value="1" />
<label ... | javascript jquery | [3, 5] |
538,774 | 538,775 | difference between XMLHttpRequest and $ajax | <p>Hello I have read about jQuery ajax method, jQuery wraps some XMLHttpRequest inside.
I need(want) to redo next stuff to $ajax, but i wearied about parameters, is it possieble send to $ajax url with parameters with out param key just in URL param ?</p>
<pre><code>var element ;
...
if (window.XMLHttpRequest) {... | javascript jquery | [3, 5] |
5,880,234 | 5,880,235 | Get selected value from select list | <p>I have this part here, which i use in order to print some values in a list:</p>
<pre><code><select id = "paisja" name="paisja" >
<?php
while( $row = odbc_fetch_array($resultpaisja) ) {
?>
<option value="<?php echo $row['id_paisje']; ?>"><?php echo $row['paisje']; ?></option>
&l... | php javascript jquery | [2, 3, 5] |
1,871,704 | 1,871,705 | Common base class for usercontrols and pages in ASP.NET | <p>Right now I have a base class for my pages which inherits <code>System.Web.UI.Page</code> and another base class for my usercontrols which inherits <code>System.Web.UI.UserControl</code>, these classes contains the same methods. Since C# doesn't support multiple inheritance I can't combine the two classes into one t... | c# asp.net | [0, 9] |
3,564,925 | 3,564,926 | Display url in text box | <p>I have a textbox as follows:</p>
<pre><code><asp:TextBox runat="server" ID="txtOtherApps" Height="400" Width="400"
TextMode="MultiLine" ontextchanged="txtOtherApps_TextChanged" ></asp:TextBox>
</code></pre>
<p>How to display link in this textbox?</p>
| c# asp.net | [0, 9] |
3,364,947 | 3,364,948 | Rewrite code so that filter is mutually inclusive rather than exclusive jquery/js | <p>I'd like to make multiple filters inclusive not exclusive. Please see this demo: <a href="http://codeblog.cz/pitch/portfolio_thumbnails_a.html" rel="nofollow">http://codeblog.cz/pitch/portfolio_thumbnails_a.html</a></p>
<p>Look at the sidebar, there is a cool filter, you click radio button and only items with <code... | javascript jquery | [3, 5] |
4,814,875 | 4,814,876 | pass "calendar.selectedvalue" in querystring from gridview | <p>I wanted to pass "calendar1.Selecteddate" in a query string from gridview in one page to another gridview (I have written sqlquery in that gridview) in another page. As seen in the below code I tried passing it but this did not work. Can anyone tell me how to pass the selected date from calendar in query string</p>
... | c# asp.net | [0, 9] |
3,785,528 | 3,785,529 | Anonymous Overriding HashSet hashCode | <p>I'm trying to use a <code>HashSet</code> to remove the duplicates from a list of <code>ApplicationInfo</code> objects and I'm trying to use more advanced ways to accomplish this than the good old loop and compare.</p>
<p>I've been recently learning about the anonymous abilities in Java and I'm trying to apply that ... | java android | [1, 4] |
284,821 | 284,822 | Holding Information in Android App | <p>I've only just started to write in Java on Android, so please bear with me.</p>
<p>I have some settings I want to hold in my app, normally I would have used an xml file. Trouble is i'm not sure how to load it into the xml parser to read it. </p>
<p>I thought I might be able to drop it into /res/values/Info.xml and... | java android | [1, 4] |
2,964,808 | 2,964,809 | jQuery vs. javascript? | <p>I recently stumbled upon some javascript forums (sadly, link is lost somewhere in the universe), where you could feel real hate against jQuery for not being... any good?</p>
<p>Most arguments seem to make sense actually.</p>
<p>Now, I really like jQuery, mostly for letting me concentrate on things I want to do rat... | javascript jquery | [3, 5] |
1,153,416 | 1,153,417 | Parsing a date in long format from ATOM feed | <p>I get this date in javascript from an rss-feed (atom):</p>
<pre><code>2009-09-02T07:35:00+00:00
</code></pre>
<p>If I try Date.parse on it, I get NaN.</p>
<p>How can I parse this into a date, so that I can do date-stuff to it?</p>
| javascript jquery | [3, 5] |
2,944,276 | 2,944,277 | Should, in a web app using a 3-tier design pattern, one of the bottom layers provide some checking mechanism to ensure…? | <p>I’m trying to write a web app using 4-tier design pattern ( Data Store, DAL, BLL and UI).
Among other things this app would also implement a forum. </p>
<p>Suppose I want to move a thread from one forum to another. In order to do this, UI layer must pass down to other layers the ID of a thread and the ID of a forum... | c# asp.net | [0, 9] |
399,473 | 399,474 | I need some form of BMI Calculator | <p>I need to develop some form of BMI calculator for part of a medical site I am working on.</p>
<p>In Javascript preferably.</p>
<p>Anyone? </p>
| php javascript | [2, 3] |
5,645,825 | 5,645,826 | jQuery multiple conditions within if statement | <p>What is the syntax for this loop to skip over certain keys? The way I have it written is not working properly.</p>
<pre><code> $.each(element, function(i, element_detail){
if (!(i == 'InvKey' && i == 'PostDate')) {
var detail = element_detail + '&nbsp;';
$('#showdata').append('<d... | javascript jquery | [3, 5] |
1,785,392 | 1,785,393 | how to bring drag and drop operations for controls in runtime? | <p>For example i've developed a website which contains some controls like button,treeview,etc....Then how can i drag and drop those controls....while running that application....</p>
| c# asp.net | [0, 9] |
5,620,353 | 5,620,354 | Disable page scroll until page loads - JQuery | <p>I have built a parallax scrolling intro for a clients website - the site contains many high res images - so I have created a quick loader which blanks out the screen with a full screen high z-index div and then uses the setTimeout method to fade in the page 4 seconds after document ready (not sure if this is the bes... | javascript jquery | [3, 5] |
1,985,551 | 1,985,552 | an android app code | <p>string comparison not working.it is going to the next activity even if password does not match neeed help.Code is pasted below</p>
<pre><code>if(m.equals(w)) {
Toast.makeText(getApplication(), "done", Toast.LENGTH_SHORT).show();
Intent intent = new Intent();
intent.setClass(v.getContext(),Mysubactivity.... | java android | [1, 4] |
5,233,625 | 5,233,626 | Checking to see what item is selected in an HTML select list via jQuery | <p>How do I get the actual value (or text) of the item selected in an HTML select box? Here are the main methods I've tried...</p>
<pre><code>
document.getElementById('PlaceNames').value
</code></pre>
<pre><code>
$("#PlaceNames option:selected").val()
</code></pre>
<pre><code>
$("#PlaceNames option:selected").text(... | javascript jquery | [3, 5] |
1,070,298 | 1,070,299 | Dynamically created divs get hidden after postback | <p>I have several divs in a nested gridview which are bound to att runtime with the command div id="div<%# Eval("id") %>". I then set the visibilty of the div via javascript. The problem is that the visibilty setting isnt retained between postbacks. (Im using a filter feature that filters the rows in the nested grid... | c# asp.net | [0, 9] |
1,303,851 | 1,303,852 | Add predefined function to onclick with jQuery | <p>This might be a little confusing. I'm creating this slider thing. When a slide is displayed, its onclick == "", and if it is hidden, onclick == "slide(#)" where # is the number of the slide. When you select a number to slide to, the current slide slides out, and the next slide comes in. During that, the onclick for ... | javascript jquery | [3, 5] |
4,888,438 | 4,888,439 | jQuery .add method seemingly not working? | <p>I wonder if anyone can explain this:</p>
<pre><code>$(document).ready(function() {
var popup = $('<div id="popup"><div class="popup-content"></div></div>');
var popupContent = popup.children('div');
var overlay = $('<div id="overlay"></div>');
con... | javascript jquery | [3, 5] |
2,997,161 | 2,997,162 | Is it easier to learn PHP if you know Java? | <p>I'm taking classes this spring semester, and what I want to know is whether it will be easier to learn PHP if you already know Java.</p>
| java php | [1, 2] |
2,388,546 | 2,388,547 | Create voice recognition app | <p>I need to develop an App witch detects voice when it´s running (not what are they saying, just if someone speaks) and if so, I need to launch an especific mp3 from my sd.</p>
<p>I never developed for android/iphone but I need to especify my boss in how many hours it could be done.</p>
<p>Is there any easy way for ... | iphone android | [8, 4] |
1,127,987 | 1,127,988 | javascript length duration | <p>i have following function in php, how can i convert this in javascript?</p>
<pre><code> function length_duration ($seconds)
{
$hours = $mins = $sec = NULL;
//for seconds
if($seconds > 0)
$sec = ($seconds % 60 < 10) ? "0".($seconds%60) : ($seconds%60);
//for mins
if($seconds > 60)
$mins ... | php javascript jquery | [2, 3, 5] |
1,161,021 | 1,161,022 | Simple Javascript Funtion - 2 Choices, each going to a different URL | <p>I'm trying to figure out how to have a Confirm/Decline box pop up when someone clicks a link. When they click "Ok" it takes them to one place, when they click "Cancel" it takes them to another place. Most of my experience is with php but usually I can take other javascript functions and make them work.. can't seem t... | php javascript | [2, 3] |
3,068,444 | 3,068,445 | Accessing datatable from different methods | <p>I am creating a web application with back-end on ISeries.
In the page load I am populating a datatable and using it as a datasource for my gridview.</p>
<p>What is the best possible way to access the data in the datatable from other methods, on the same page? And in other pages?</p>
<p>The way I do currently is to... | c# asp.net | [0, 9] |
880,080 | 880,081 | Get HTTP for a site which also has Javascript on it in C# | <p>I need to get the HTML of a website which is heavy on Javascript. When I try to do I get a receive code, but it is filled with Javascript. </p>
<p>Can I execute that JS after downloading and get the resulting HTML out of it?</p>
| c# javascript asp.net | [0, 3, 9] |
2,486,247 | 2,486,248 | msrdpclient.connect failed to connect when accessign with IP on win7 | <p>I am using msrdpClient ActiveX control in my web app to connect to other system on network remotly. My app simply get username, passwrod , domain and resolution and call connect function. But problem is when i use "http://localhost:8080/CMSServer/ie.html" to connect it works fine but if i use my system IP instead of... | java javascript | [1, 3] |
1,087,614 | 1,087,615 | 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] |
2,594,804 | 2,594,805 | Getting name of object as a string in JavaScript | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/85992/how-do-i-enumerate-the-properties-of-a-javascript-object">How do I enumerate the properties of a javascript object?</a><br>
<a href="http://stackoverflow.com/questions/3982721/javascript-getting-a-single-pro... | javascript jquery | [3, 5] |
1,923,672 | 1,923,673 | Shuffling an array in c++ | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/3169015/how-exactly-should-i-implement-a-shuffle-or-random-number-algorithm-for-an-array">How exactly should I implement a shuffle or random-number algorithm for an array to display quotes in random order?</a> </p>... | c++ python | [6, 7] |
4,283,753 | 4,283,754 | Unexpected JS/jQuery Loop Behavior | <p>I have the following loop. The goal is to automatically show text boxes when a user chooses certain options in a dropdown list.</p>
<p>For some reason, in the following code, the loop assigns the "sponsor" field to the associated array for "blurb". I cannot figure out why. How can I make this work?</p>
<p>Thanks s... | javascript jquery | [3, 5] |
2,492,570 | 2,492,571 | .net - based Help & Support / Knowledge base | <p>I am looking for a .net-based Help & Support / Knowledge base to plug in to our website. It can be either open source or for purchase. Can anyone make a recommendation as to what are the best products?</p>
| c# asp.net | [0, 9] |
1,278,779 | 1,278,780 | Need help understanding why javascript object property is undefined | <p>I need help understanding why the following piece of code returns an undefined object property: </p>
<pre><code>var count = 0;
var intervals = {
collection : []
}
intervals.collection[0] = function () {
this.timer = setInterval(function(){
count++;
$("p").html(count); ... | javascript jquery | [3, 5] |
5,884,049 | 5,884,050 | default resolution is lower than actual resolution of my device | <p>i have used</p>
<pre><code>DisplayMetrics metrics = new DisplayMetrics();
getWindowManager().getDefaultDisplay().getMetrics(metrics);
cube.height=metrics.heightPixels;
cube.width=metrics.widthPixels;
</code></pre>
<p>to get height and width of my display but the resolution is low for my sony xperia p device which ... | java android | [1, 4] |
5,220,858 | 5,220,859 | always keep the window in the center when move the scroll bar | <p>I am trying to built a window located in the center of the screen and when I scroll down it will always be in the center, I have tried the follwing code:</p>
<pre><code> <style>
#Window {
display: none;
text-align: center;
border: 1px solid #333;
position:absolute;
width: 200px;
height: 80px;
z-... | javascript jquery | [3, 5] |
3,875,573 | 3,875,574 | Pulling data-caption from image with Elastic Image Slideshow, and display it on the page | <p>I am using the <a href="http://tympanus.net/codrops/2011/11/21/elastic-image-slideshow-with-thumbnail-preview/" rel="nofollow">Elastic Image Slideshow</a> script, and would like to add data-caption text for each image, then display the text of the currently shown image into a div, outside of the slideshow (basically... | javascript jquery | [3, 5] |
5,898,679 | 5,898,680 | could jquery live solve this problem? table links are bound to click, ajax refresh of rows ruins things | <p>I have a table, that I loop through using jquery and modify the href of each link.</p>
<p>IF someone pages through the table, the links are refreshed using ajax (page doesn't reload).</p>
<p>Now all my links are not modified since the table has refreshed.</p>
<p>Paging is done via a drop down list.</p>
<p>Can jq... | javascript jquery | [3, 5] |
2,090,773 | 2,090,774 | Java concurrent modification exception when removing items from list | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/5145135/java-util-concurrentmodificationexception-on-arraylist">java.util.ConcurrentModificationException on ArrayList</a> </p>
</blockquote>
<p>I am trying to remove items from a list inside a thread. I am gett... | java android | [1, 4] |
5,202,647 | 5,202,648 | Arrays in php & javascript syntax issues | <p>I have got my self confused on how to construct arrays correctly in PHP prior to my json encode to check them in javascript.</p>
<p>I'm trying to store an array of objects with their grid reference (x,y)</p>
<p>So i do this in php:</p>
<pre><code> $get = mysql_query("SELECT x,y,sid FROM $table WHERE uid='1'") ... | php javascript | [2, 3] |
1,249,253 | 1,249,254 | Get the title of a page/url | <p>Using php or javascript I want to get the title of the page
Any help encouraged</p>
| php javascript | [2, 3] |
5,197,069 | 5,197,070 | I need to make Dynamic Collapsible Panel in ASP.NET using c# | <p>I need To make Dynamic Collapsible Panel in ASP.NET using C#. </p>
<p>What is the best way to do this?</p>
| c# asp.net | [0, 9] |
1,395,691 | 1,395,692 | </script> in string ends script section | <p>I'm having an issue where I'm trying to use JQuery to append a string to a div.</p>
<p>This string will be HTML, and occassionally users will be using the script tags inside the string.</p>
<p>Unfortunately, when the browser reads <code></script></code> inside the string, it ends the section and prints out a... | javascript jquery | [3, 5] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.