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 |
|---|---|---|---|---|---|
4,360,564 | 4,360,565 | Reinitializing jCarouselLite at runtime | <p>Can anyone tell me how to reinitialize jCarouselLite plugin at runtime. I have 5 sliders in one page and I want to perform switching between sliders. All code is done. what I want is to re-initialize "jCarouselLite" plugin at run time of current slider. My code is as follows: </p>
<pre><code> if(isNext){
/* R... | javascript jquery | [3, 5] |
2,544,306 | 2,544,307 | changing date format from dd/MM/yyyy to MM/dd/yyyy | <p>I have a datepicker which shows date in format dd/MM/yyyy(i know i coould change there itself but by client want it that way) and in database its in format MM/dd/yyyy so i do want to convert in that way.</p>
<p>e.g. in text box 23/09/2010 and in c sharp its convert to mm/dd/yyyy(txtbo1.text)</p>
<p>Regards
Indrani... | c# asp.net | [0, 9] |
1,681,383 | 1,681,384 | Can Python dictionaries to be as handy as PHP array? | <p>Recently, I'm working on a Python-based project and facing a issue with dictionaries. In PHP I can easily create a multiple dimension array by the following instruction:</p>
<pre><code>$user = "Tom";
$type = "New";
$userlist[$user]['count'] += 1;
$userlist[$user][$type] += 1;
</code></pre>
<p>PHP will create a new... | php python | [2, 7] |
1,214,462 | 1,214,463 | Basic Android development questions | <pre><code>onCreate(Bundle State)
{
TextView label = new TextView(this);
lable.setText("My new Label");
}
</code></pre>
<p>I read that the <code>TextView</code> has a reference to the <code>Activity</code>.
What does it mean for something to have a reference on something else?</p>
| java android | [1, 4] |
4,885,389 | 4,885,390 | list filter: for each word matched, increment by 1 | <p><a href="http://jsfiddle.net/nicktheandroid/yshcR/2/" rel="nofollow">http://jsfiddle.net/nicktheandroid/yshcR/2/</a></p>
<p>you can type into the input box any of the words you see in the list, when a full word is typed that matches a word in the list, it will hide all list-items that do not contain any of the word... | javascript jquery | [3, 5] |
199,858 | 199,859 | How can I tell if iPhone is returning from background in javascript? | <p>I know that the iPhone stops javascript from running when an app is sent to the background (ie pressing the home button while the app is running), but I would like to be able to detect if this has happened when the javascript starts up again when the app is reactivated.</p>
<p>One solution I've been trying is to ha... | javascript iphone | [3, 8] |
1,109,911 | 1,109,912 | Update a control's value from a static class in ASP.NET | <p>Say that I have an ASP.NET page with a Label control and the following static class which executes a scheduled job:</p>
<pre><code>public static class Job
{
// The Execute method is called by a scheduler and must therefore
// have this exact signature (i.e. it cannot take any paramters).
public static ... | c# asp.net | [0, 9] |
4,495,227 | 4,495,228 | Supersized 3.0 view through iPhone | <p>Using the supersized script <a href="http://buildinternet.com/project/supersized/" rel="nofollow">http://buildinternet.com/project/supersized/</a> on a new site. Same thing happens with the demo site. <a href="http://buildinternet.com/project/supersized/3/core.html" rel="nofollow">http://buildinternet.com/project/... | javascript iphone | [3, 8] |
4,621,909 | 4,621,910 | Best Practices: Including PHP in your JavaScript code | <p>I'm a PHP phr34k addicted to JavaScript on the quest for some knowledge. If one were to include php code in their scripts, what would be the best method? I have provided some sample code as an example on how I would go about including PHP in my scripts. </p>
<p>Is this a valid method?</p>
<p><strong>index.php</str... | php javascript jquery | [2, 3, 5] |
5,179,964 | 5,179,965 | How to use Enterprise Security Application block? | <p>Looking to implement authentication/authorisation for ASP.NET app</p>
<p>Was looking into using Provider model MembershipProvider SQLServerMembershipProvider etc as makes good sense to me.</p>
<p>However I'm looking into the Enterprise Security Application block as well. My question is can/should the two be used i... | c# asp.net | [0, 9] |
3,794,707 | 3,794,708 | how to validate the null string array (Android Java) | <p>I have a question about how to check either the array string got the null value.
My code is like below but still got the string return even the value is null.</p>
<blockquote>
<p>for (int i=17;i<29;i++)</p>
<p>{ </p>
<p>if (!label[i].equals(null) || !label[i].equals("") || label[i] != null || label[i... | java android | [1, 4] |
1,618,359 | 1,618,360 | How can I wrap header text in Gridview? | <p>Hi I am writing some code to display some records in Grid view. I am using Firefox as my Default browser. I wish to wrap a header text. but Firefox is not supporting the wrap property. How can I achieve this?</p>
| c# asp.net | [0, 9] |
5,344,965 | 5,344,966 | jQuery tab controls placed on bottom don't work | <p>I am using this solution to have <a href="http://stackoverflow.com/questions/3689660/jquery-conflict-with-identical-scripts/3689751#3689751">multiple tabs in one page</a>.</p>
<pre><code>$(".tab_content").not(':first-child').hide();
var tabs = $('.tabs li');
tabs.filter(':first-child').addClass('active');
tabs.cl... | javascript jquery | [3, 5] |
5,139,262 | 5,139,263 | What is the namespace for CurrencyManager in ASP.NET? | <p>What is the namespace for <a href="http://msdn.microsoft.com/en-us/library/system.windows.forms.currencymanager.aspx" rel="nofollow">CurrencyManager</a> in ASP.NET?</p>
<p>Like in Windows Forms we use System.Windows.Forms namespace for the CurrencyManager class, but for ASP.NET what is the namespace I have to use f... | c# asp.net | [0, 9] |
3,131,640 | 3,131,641 | Get URL of ASP.Net Page in code-behind from another page | <p>I am trying to find away to determine a pages url from the page object. It seems you can only get the path of the current context.</p>
| c# asp.net | [0, 9] |
80,927 | 80,928 | Identifying the Form that is being Submitted using JQuery | <p>I have several forms on a page with different ids and I want to find out which is submitting and its id. How can I do this?</p>
<pre><code>//stop all forms from submitting and submit the real (hidden) form#order
$('form:not(#order)').submit(function(event) {
event.preventDefault();
</code></pre>
<p>The above stops... | javascript jquery | [3, 5] |
1,500,151 | 1,500,152 | Save each box height and assign it on click | <p>I have a set of boxes and I save each height like that:</p>
<pre><code>$(function(){
$(".box").each(function(){
boxSize = $(this).height();
});
</code></pre>
<p>Then I call it like this:</p>
<pre><code> button.click(function(){
$(".box").height(boxSize);
});
});
</code></pr... | javascript jquery | [3, 5] |
5,804,809 | 5,804,810 | How to get HTML of HtmlControl object in backend | <p>I have a short snippet of C# code like this:</p>
<pre><code>HtmlGenericControl titleH3 = new HtmlGenericControl("h3");
titleH3.Attributes.Add("class", "accordion");
HtmlAnchor titleAnchor = new HtmlAnchor();
titleAnchor.HRef = "#";
titleAnchor.InnerText = "Foo Bar";
titleH3.Controls.Add(titleAnchor);
</code></pre>... | c# asp.net | [0, 9] |
5,998,897 | 5,998,898 | How would you draw a matrix in Android Development? | <p>The size of the matrix would be input by the user with variables h, w.</p>
<p>Given this how would I create a matrix of that size on the screen allowing the user to enter in values inside the matrix.</p>
| java android | [1, 4] |
3,027,150 | 3,027,151 | How do I read #2 at the end of a URL? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/298503/how-can-you-check-for-a-hash-in-a-url-using-javascript">How can you check for a #hash in a URL using JavaScript?</a> </p>
</blockquote>
<p>Currently I am generating Urls that look like this:</p>
<p>Inspe... | javascript asp.net | [3, 9] |
4,995,976 | 4,995,977 | Is there a way to force a user to scroll to the bottom of a div? | <p>I don't need to auto-scroll to the bottom of a div, rather force the user to scroll there themselves. I've got a legal agreement that I'd actually like people to read. Possible using regular JS or jQuery?</p>
| javascript jquery | [3, 5] |
654,597 | 654,598 | video event listener within iframe | <p>i'm using daily motion cloud (www.dmcloud.net) to host a video which is embedded within my site as an iframe. the standard code they gave for embedding looks like this:</p>
<pre><code><iframe width="640" height="360" frameborder="0" scrolling="no" src="http://api.dmcloud.net/player/embed/50071a76947399130e000cf1... | javascript jquery | [3, 5] |
395,479 | 395,480 | Need to Create Abstract Class for Items | <p>I need to create a class for Items? I planned to create it using Abstract Class. So other classes like Stores, Purchase, BOM can use the Items. I need to create some methods in Abstact class like ItemName, ItemDesc, ItemMake, etc., So that I can use it in any other classes, how to achieve this?</p>
| c# asp.net | [0, 9] |
2,972,809 | 2,972,810 | Why do spaces appear in my string? | <p>I have this function below which returns all IDs of checked boxes on my page seperated by a comma. It works great but the problem is, it seems to put a lot of white space after each checkbox ID. I can't seem to figure out why?</p>
<pre><code>/*Returns selected checkbox ID in string seperated by comma */
function ge... | javascript jquery | [3, 5] |
2,430,064 | 2,430,065 | Control Drop Down Appearance | <p>Currently we have drop down that people can add project names to. When people add a long project name it widens the drop down and throws off the layout of the page.</p>
<p>I would like to be able to control the width of the drop down list on the web form, but display wider if needed when a user clicks on it so the... | c# asp.net | [0, 9] |
2,245,769 | 2,245,770 | Change all Elements (html) of a div on changing the language? | <p>I have a dropdown menu on my page which has language selector options. on selecting the language i want my labels and buttons html to be changed according to the language?
<strong>My Code</strong></p>
<pre><code>var arr = [];
// gets all the ids starting with comp_
$('div[id^="comp_"]').each(function(){
... | javascript jquery | [3, 5] |
1,453,234 | 1,453,235 | ASP.NET server tags are not well formed | <p>I want to use some server tags in OnClientClick of LinkButton</p>
<pre><code><asp:LinkButton ID="lnkbtnID" OnClientClick='<%# "window.open('SomePage.aspx?Id=" + Eval("reqID") + "');" %>' runat="server" Text='<%# Eval("reqID")%>'>
</asp:LinkButton>
</code></pre>
<p>how to write this, it is g... | c# asp.net | [0, 9] |
4,875,109 | 4,875,110 | jQuery: write variable between 2 quotation mark | <p>I want to create a loop for input so that the variable img get number 1 to 5 like this: </p>
<pre><code>img1, img2 ... img5.
</code></pre>
<p>How to write <code>$i</code> after img?</p>
<pre><code>for ($i=1;$i<=5;$i++) {
function(data) { $('input[name="img1"]').val(data) });
}
</code></pre>
<p><strong>Not... | javascript jquery | [3, 5] |
578,238 | 578,239 | how to move image using Android Java ? | <p>Hello and a good Day ...</p>
<p>I have a project but I hang in moving an object or image .. </p>
<p>my question is " How to move the image by clicking on it" ?
change a position from x = 1 to x = 4 </p>
| java android | [1, 4] |
1,813,510 | 1,813,511 | Ajax HtmlEditorExtender accepting empty spaces | <p>I am using an Ajax HtmlEditorExtender for Description field in my application.</p>
<p>My Sample Code:</p>
<pre><code><asp:TextBox ID="txtDescription" TextMode="MultiLine" Height="100" CssClass="text" runat="server" />
<ajax:HtmlEditorExtender ID="HtmlEditorExtender2" TargetControlID="txtDescription" runat... | c# javascript jquery | [0, 3, 5] |
2,425,717 | 2,425,718 | checkboxes in asp.net using c# | <p>Hy all..I want to ask you how is it possible when a checkbox is checked data from a table is shown based on that checked checkbox.So I have 2 tables: Countries and Cities. I displayed all the countries within a checkboxlist so each country has a checkbox.Now I want when I check a checkbox the cities regarding the co... | c# asp.net | [0, 9] |
244,952 | 244,953 | parsing css measures | <p>When i write a jQuery plugin i like to specify options for spacings the CSS way.
I wrote a function that returns a CSS String as values in a object. </p>
<p>5px 10px returns top: 5px, right: 10px, bottom: 5px, left: 10px</p>
<p>Now i often use the returned values to do some calculations and its not very nice to ha... | javascript jquery | [3, 5] |
791,426 | 791,427 | Adding items to C# dictionary from JavaScript | <p>What, if any, is the accepted way of adding a key-value pair from ASP.NET/JavaScript code to a C# dictionary? TIA.</p>
| c# javascript asp.net | [0, 3, 9] |
1,242,936 | 1,242,937 | Is it good to write javascript functions inside functions and not use 'new' on the main function? | <p>I now know this works:</p>
<pre><code>function outerfunction(arg1, arg2, arg3) {
var others;
//Some code
innerFunction();
function innerFunction() {
//do some stuff
//I have access to the args and vars of the outerFunction also I can limit the scope of vars in the innerFunction..!
... | javascript jquery | [3, 5] |
3,122,432 | 3,122,433 | Set up Notifications in Andriod application? | <p>I have app for job search, it works over httppost to activate PHP function and get filtered(depends what kind of search user choose)data(JSon format) from mysql database on server. <br/>
What I want to do now is to put one checkbox for notifications, and if user check it before click on search, to be able to get not... | java android | [1, 4] |
3,038,690 | 3,038,691 | Regarding Combining Two Small Javascript Codes | <p>Basically the question is self explanitory. I can't figure out how to combine small snippets of javascript rather than having two separate files.</p>
<p>The two codes are :</p>
<pre><code>$(function(){
$('.navbar li').each(function(){
if(window.location.href.indexOf($(this).find('a:first').attr('href'))... | javascript jquery | [3, 5] |
161,283 | 161,284 | ContextMenu shrinks when opened via JS Interface | <p>I am developing an android app. One of the activities works as follows: I display some HTML in a WebView and via Javascript detect a long touch with the following code:</p>
<pre><code>var touching = null;
$('.post').each(function() {
this.addEventListener("touchstart", function(e) {
window.clearTimeout(... | java android | [1, 4] |
1,534,045 | 1,534,046 | How to show an alert before download a file | <p>This is my question i have an aspx page that has to show a popup message and when the user clicks ok begin download
any help would be appreciated</p>
| javascript asp.net | [3, 9] |
808,368 | 808,369 | PHP mixed with ASP | <p>I have a problem, just redone a homepage that was in ASP (ASPX) to a PHP.
The problem is that i have some links out there that gos like this www.example.com/work.aspx?jid=23 .</p>
<p>I need to take controll over the links a redriect them to the main page.</p>
<p>How to do that? I have created a work.aspx file that... | php asp.net | [2, 9] |
2,829,422 | 2,829,423 | Javascript Constant Setting Variable | <p>When running this code, the whatever value is first passed in with the constructor <code>Test(callbacks)</code> becomes the callback that is always called, even in later instantiations of <code>Test</code></p>
<pre><code>function Test(callbacks) {
if (callbacks) {
if (callbacks.callback) {
t... | javascript jquery | [3, 5] |
4,070,544 | 4,070,545 | Looping setTimeout | <p>I'm currently trying to wrap my head around some JavaScript.</p>
<p>What I want is a text to be printed on the screen followed by a count to a given number, like so:</p>
<blockquote>
<p>"Test"</p>
<p>[1 sec. pause]</p>
<p>"1"</p>
<p>[1 sec. pause]</p>
<p>"2"</p>
<p>[1 sec. pause]</p>
... | javascript jquery | [3, 5] |
782,268 | 782,269 | Can you write Javascript object init shorthand C# style? | <p>I have the following Javascript:</p>
<pre><code>function TestModel()
{
this.name = "Testvalue";
this.id = 0;
}
var test = new TestModel();
alert(test.name);
</code></pre>
<p>If I want to initialize an object with different parameters without the use of a constructor I would need to call the follow... | c# javascript | [0, 3] |
2,852,054 | 2,852,055 | Using JavaScript/ JQuery, can you make a link on click code fire | <p>Using FireFox, Javascript and JQuery and I am a noob at all :-)
My understanding is that it is impossible to use any of the above to make the client browser execute an anchor click via code.<br>
ie: the page I am working on has a button with an anchor tag to update the data being displayed (next 15 records).<br>
Is ... | javascript jquery | [3, 5] |
2,467,388 | 2,467,389 | select image on drive with javascript | <p>I have created a website, when the admin dblclick on the image then he can choose for a new one. That I will accomplish with javascript. But, I don't have any idea to do that, the following code is the html.
<img src="http://i.stack.imgur.com/lVyBE.png" alt="enter image description here"></p>
<pre><code><form ac... | php javascript jquery | [2, 3, 5] |
1,427,495 | 1,427,496 | How to find latitude or longitude of a image | <p>i have to find information from a image with latitude longitude ..
instead this code if any one have any suggestion.</p>
<pre><code>$info = exif_read_data('monstersinc.jpg');
echo "<pre>";
var_dump($info);
</code></pre>
<p>How can i do it...</p>
| php javascript jquery android | [2, 3, 5, 4] |
1,064,836 | 1,064,837 | Get values from multiple inputs jQuery | <p>Can someone please let me know how to get values from several input fields?
I have a list with several inputs like this:</p>
<pre><code><li>
<label>Additional Title: </label><input type='text' name='additionaltitlename' ... />
</li>
<li>
<label>Additional Title: </label&... | javascript jquery | [3, 5] |
5,293,612 | 5,293,613 | Running PHP under ASP.NET | <p>ASP.NET web server can allows to deploy PHP code, even full applications like phpBB. is it possible? please guide me</p>
<p>by googling i found this</p>
<p>check this link</p>
<p><a href="http://www.communitymx.com/content/article.cfm?cid=F8079" rel="nofollow">http://www.communitymx.com/content/article.cfm?cid=F... | php asp.net | [2, 9] |
3,193,001 | 3,193,002 | how to send dynamically created controls to the file on the server side? | <p>I am building a designer in which a user can select the contols from the tool box to build a form, the controls build up in the center table through java script. the table expands dynamically. when the user clicks the save button, these dynamically created controls doesnot save in the file on the server.(i.e save fo... | c# javascript asp.net | [0, 3, 9] |
5,039,186 | 5,039,187 | Generate public-private key pair and show them in textbox in asp.net | <p>I am student and learning the asp.net,</p>
<p>My requirement is to generate the public-private key pair and show them in the</p>
<p>textbox separately ,</p>
<p>What is the public-private key pair and how we can generate this , can any body explain please</p>
<p>Thanks alot. </p>
| c# asp.net | [0, 9] |
1,569,864 | 1,569,865 | javascript equivalent of jquery code | <p>Can someone help what's the javascript equivalent of below jquery line. </p>
<pre><code>$("#abc option[value='1']").text();
</code></pre>
<p>abc is the id of selectbox</p>
| javascript jquery | [3, 5] |
3,774,524 | 3,774,525 | JQuery : Submit event not firing on FireFox | <p>I can't understand why the submit event described below is not firing on FireFox and IE.
Ok for Chrome</p>
<blockquote>
<pre><code>$("#frame-right").on("submit", "form", function(event){
alert('Submit done')
});
</code></pre>
</blockquote>
<p>Can you help me?</p>
<p><strong>EDIT</strong></p>... | javascript jquery | [3, 5] |
2,184,713 | 2,184,714 | non-AJAX jquery POST request | <p>i am trying to use the jquery POST function but it is handling the request in AJAX style. i mean its not actually going to the page I am telling it to go.</p>
<pre><code>$("#see_comments").click(function() {
$.post(
"comments.php",
{aid: imgnum},
function(data){
... | javascript jquery | [3, 5] |
5,809,729 | 5,809,730 | how to update a price based on form selections | <p>if you take a look at this site <a href="http://www.graphicfirm.com/product.php?productid=2010" rel="nofollow">http://www.graphicfirm.com/product.php?productid=2010</a></p>
<p>see how the price changes when you select something from the select options? How is this being done?
each select looks something like this</... | javascript jquery | [3, 5] |
2,054,593 | 2,054,594 | Remove attr in input:style after click with jQuery | <p>How can remove just <code>background-color: rgb(255, 196, 196);</code> in following select:style after click with jquery?</p>
<pre><code><input name="star" style="width: 60px; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(25... | javascript jquery | [3, 5] |
4,705,127 | 4,705,128 | Send data from android to webserver | <p>What can i use to send/receive data between an android client and a webserver.
Data can typically include:
Text, Images or videos.
As far as i have looked into, i cannot use JSON, since i cant sent images using this.</p>
| java android | [1, 4] |
481,429 | 481,430 | calling REST service using Jquery/javascript | <p>I need to call a REST Service from my classic ASP application.
I heard that the best way to call a REST service is using Jquery.
Its not working for me. I dont know what mistake I am doing here .
Here is my code.</p>
<pre><code><script language="javascript" scr="inc\javascript\jquery-1.7.2.js" ></script>... | javascript jquery | [3, 5] |
4,169,582 | 4,169,583 | Access Server Object on Client Side | <p>I have a object which gets populated on the server side. I want to access this object on Client side that is on aspx page ( using Javascript). </p>
| c# javascript asp.net | [0, 3, 9] |
3,378,062 | 3,378,063 | How can I get part of the following string? | <p>Lets say I have an absolute url /testserver/tools/search.aspx that I store in a variable url.</p>
<p>I want to check if url == /tools/search.aspx without having to use /testserver.</p>
<p>A more complete example would be:</p>
<p>My testserver contains the url <a href="http://www.testserver.com/tools/Search.aspx" ... | c# asp.net | [0, 9] |
4,149,294 | 4,149,295 | Android image resize | <p>I have images stored on sd card(size of each ~ 4MB). </p>
<p>I want to resize each, than set it to ImageView. </p>
<p>But I cannot do it using <code>BitmapFactory.decodeFile(path)</code> becouse Exception<br>
<code>java.lang.OutOfMemoryError</code> is appeared. </p>
<p>How can i resize image without loading it in... | java android | [1, 4] |
2,456,318 | 2,456,319 | Databound Value in href javascript link | <p>I've trawled the net looking for the syntax to get this working and i'm hoping this is a quick fix else i'll go mad. Basically I have a nested repeater and the button below hides another nested repeater.</p>
<p><code>((location_details)((RepeaterItem)Container.Parent.Parent).DataItem).tbl_location.location_id</cod... | c# javascript asp.net | [0, 3, 9] |
3,868,303 | 3,868,304 | Why so many inner classes in Android? | <p>I am a new fish in Android development. While reading books and Android source code I found out that there so many inner classes in the Android application. Why does Android need so many inner classes?</p>
<p>I am confused by these inner classes.</p>
| java android | [1, 4] |
4,438,124 | 4,438,125 | asp.net print the results of a sql command | <p>I have the following sql command:</p>
<pre><code>SqlCommand cmd = new SqlCommand("SELECT * FROM tbl WHERE ID = 'john' ", con);
</code></pre>
<p>How can i output the results of the following command in C# to my webpage?</p>
| c# asp.net | [0, 9] |
3,436,519 | 3,436,520 | What is correct way to a remove few characters at the end of string C# | <p>Consider the following code, what is the correct way to a remove the last two <code><br/></code> tags from the end of string in C#? I have followed very naive method, to achieve this. Can you please suggest improvements.</p>
<pre><code>List<string> MessageList; // populated from data source
Label lblHtm... | c# asp.net | [0, 9] |
3,633,470 | 3,633,471 | Get the suffix of a dynamically selected id within a hover method | <p>I have the following JQuery selector with a hover method attached to it:</p>
<pre><code>$("a[id^='foo']").hover(
function () {
$(this).css("color", "#eeeeee");
},
function () {
$(this).css("color", "#ffffff");
}
);
</code></pre>
<p>However, I want to alter a td decoration underneath the links wit... | javascript jquery | [3, 5] |
2,701,294 | 2,701,295 | Can I simplify multiple if - else statements? | <p>I have the following code in javascript?</p>
<pre><code>if ($(form).data('action') == "Edit") {
xx
} else if ($(form).data('action') == "Create"){
xy
} else if ($(form).data('action') == "Delete"){
xz
}
</code></pre>
<p>Is it possible for me to simplify this and also have some default path?</p>
| javascript jquery | [3, 5] |
4,025,107 | 4,025,108 | loop jquery object | <p>I simply try to assign a background color to each div.
it looks simple but it doesn't work.</p>
<pre><code>var divElements = $("div");
var colorArray =["444", "344", "345", "472", "837", "043", "345", "472", "837", "043"];
for (var i=0; i< divElements.length; i++){
divElements[i].css("background","#"+colorArray... | javascript jquery | [3, 5] |
1,009,288 | 1,009,289 | prepend a div and hide it with this object | <pre><code><div id="newsSubmit"><b>Add random snippet</b></div>
<script>
$("#newsSubmit").click(function(){
$("body").append("<div class='lol'>Ok, DELETE this snippet (click here)</div>");
});
$(".lol").click(function(){
$(this).fadeOut();
});
</script>
</... | javascript jquery | [3, 5] |
1,138,886 | 1,138,887 | jQuery select JavaScript generated elements | <p>I am using JavaScript to generate some HTML tables on the fly. After filling out this dynamic table, I employ jQuery to 'grab' some of the inputs and do some small calculations for form validation. However, my jQuery selector does not work with the dynamic HTML form. Can anyone give me some suggestions? Thanks!</p>
... | javascript jquery | [3, 5] |
5,551,206 | 5,551,207 | Java and what to do with it | <p>I've been browsing through several websites and several topics on this website.</p>
<p>Now I'm just a starting programmer and I want to make a good decision.</p>
<p>From what I understand is that Java is used alot for server stuff, and web applets but not really for computer applications running on a client, it's ... | java c# android | [1, 0, 4] |
6,023,441 | 6,023,442 | lightweight jQuery countdown | <p>I've seen some really nice looking jQuery plugins to count down the number of day, hours, minutes and seconds. They use images and look great.
But I'm looking for a simple little countdown that populates a div with the number of seconds remaining.
I'm going to use it in conjunction with:</p>
<pre><code>function su... | javascript jquery | [3, 5] |
3,981,836 | 3,981,837 | pick contacts with same name and more than two number | <p>I have tried to pick the contacts from phone by using following method in my project.It working fine.....But in some case i will not work...For Ex: In case of Same Name with More than one number like personal/Home..In this stage it will pick only first number.so i am unable to pick contacts from me. kindly give solu... | java android | [1, 4] |
1,619,571 | 1,619,572 | How to save array of the Bitmap? | <p>I have been developing the application for drawing, and I have the problem: my application has array of pages (Bitmap), and I need to save/open it. I thought that I can use mechanism of serialization, but Bitmap isn't serializable and I don't know how I can save array of Bitmaps into 1 file that user can change file... | java android | [1, 4] |
5,938,554 | 5,938,555 | Get part of string to cursor | <p>I need to take value from beginning of input to cursor. val() return whole string. How can I only this part which I`m interested in?</p>
| javascript jquery | [3, 5] |
3,870,045 | 3,870,046 | Call aspx page from another PC | <p>I have a project developed in .net, and the URL for that is <code>http://localhost:2688/WebSite2/Default.aspx</code> and it is working fine when i run it,How can i access it from another PC?</p>
<p>I have tried <code>http://IP_HERE:2688/WebSite2/Default.aspx</code> but it does not work ..</p>
| c# asp.net | [0, 9] |
1,808,950 | 1,808,951 | File locked by which process (android)? | <p>Currently I am developing one android application in which I have a file on sdcard and I have to find out process id of all process which are accessing this file.</p>
<p>Using the android.os.FileObserver we can know only whether the file is accessed by any process. But how to get process id of that process?</p>
| java android | [1, 4] |
4,716,176 | 4,716,177 | controls in asp.net repeater | <p>I have a repeater, which basically has a text box in it and I have implemented a paging function on the repeater, the repeater only shows 25 rows at a time. What I want to do is, get each text box for each row in the repeater, but at the moment I am only getting the text boxes that are shown on the repeater (the fir... | c# asp.net | [0, 9] |
1,509,239 | 1,509,240 | JQuery - get attr/text from HTML string in a variable | <p>I have a HTML string that I'm passing through a function and I want to be able to perform Jquery methods on that variable from inside the function - such as <code>.attr('href')</code> or <code>.text()</code>. I'm sure there is a simple solution for this and something more elegant then temporarily appending the DOM.... | javascript jquery | [3, 5] |
5,429,663 | 5,429,664 | How to transform a flat array-like sequence to an associative map? | <p>Essentially, I want an equivalent of this Python function in JavaScript:</p>
<pre><code>def to_dict(coll, key):
return {i[key]: i for i in coll}
assert to_dict([
{'key': 1, 'value': 1},
{'key': 2, 'value': 2},
{'key': 3, 'value': 3},
], 'key') == {
1: {'key': 1, 'value': 1},
2: {'key': 2, '... | javascript jquery | [3, 5] |
83,303 | 83,304 | Checking to see if a frame exists with jQuery | <p>I have found I can do the following:</p>
<pre><code>if($('#notice', parent.frames['header'].document).length>0) { alert("It is here!"); }
</code></pre>
<p>to check for an item in another frame.<br />
Is there a way to find out of the frame exists? Specifically I am looking to see if parent.frames['header'].doc... | javascript jquery | [3, 5] |
3,252,460 | 3,252,461 | jQuery selector $() functionality in an independent function | <p>I'm looking for an advanced function to select elements in the dom without using jQuery or any other library.</p>
<p>Something that will accomplish the same thing that the $(selector) function does in jQuery.</p>
<p>Thanks in advance.</p>
| javascript jquery | [3, 5] |
1,419,124 | 1,419,125 | ObjectDataSource -> Method taking two params one being Connection String | <p>I am updating an old website to a more modern look. They want the ability to <code>CRUD</code> their datatables so users can easily edit/update/delete things without going to special pages.</p>
<p>To do this I'm setting up an ObjectDataSource to their old methods.</p>
<p>Their methods take a param of Connection S... | c# asp.net | [0, 9] |
4,884,121 | 4,884,122 | Javascript ContextMenu in IE7 | <p>We are using div tag in aspx and javascript functions to show context menu in our web application. In IE6 the sub menus in the context menu are getting displayed at the correct x and y coordinates what we have hard-coded in our application. But in IE7 and IE8, the sub menus are getting overlapped and in some machine... | asp.net javascript | [9, 3] |
3,018,504 | 3,018,505 | iFrame Validation | <p>I currently have an iframe within my main page that has a number of checkboxes that need to be actioned prior to leaving the iframe, i.e, if the user commences checking the checkboxes and half way through they then click back on the main page, i.e leaving the iframe, I would like to be able to trap/validate that the... | javascript jquery | [3, 5] |
5,065,608 | 5,065,609 | Pass variable into selector in foreach loop | <p>I have a set of ids being generated in a foreach loop</p>
<pre><code><?php foreach ($_Collection as $_item): ?>
<img class="<?php echo $_product->getId() ?>" src="<?php echo Mage::helper('catalog/image')->init($_product, 'small_image')->resize(100, 75); ?>" />
</code></pre>
<p... | php javascript jquery | [2, 3, 5] |
3,238,657 | 3,238,658 | How do threads interact with listeners in Android? | <p>In an Android app, I need several listeners (for network changes, location changes, etc.).</p>
<p>As far as I can see, these are called in a thread (or threads) which are not my main background service thread. (I'm creating a service-only app.)</p>
<p>My question is:</p>
<p>Can my app be hit by listeners firing ... | java android | [1, 4] |
1,128,652 | 1,128,653 | C#: a mechanism to generate regular files | <p>following regular files (date_time.zip) would be generated at 15-min interval in ASP.NET site with Timer.</p>
<p>1027_0100.zip, 1027_011*.zip, 1027_0130.zip, ...</p>
<p>My question is I need a mechanism to restore files which are somehow missed within 3 days, like 1026_0000.zip. What data structure/algorithm would... | c# asp.net | [0, 9] |
5,893,906 | 5,893,907 | Looping in jQuery | <p>I am tring to loop loop a jQuery command 5 times. Here is my code:</p>
<pre><code> for(var i = 0; i < 5; i++) {
$("#droppable_"+i).droppable({
activeClass: 'ui-state-hover',
hoverClass: 'ui-state-active',
drop: function(event, ui) {
$(this).addClass('ui-state-highlight').find('... | javascript jquery | [3, 5] |
1,020,773 | 1,020,774 | Event for radio button being selected? | <p>Is there some event for a radio button being selected?</p>
<p>I know I can use "click" but I believe it is possible to style radio buttons in some browsers such that clicking an outter area of a radio button might not select the radio button.</p>
<p>What event should I use?</p>
| javascript jquery | [3, 5] |
4,205,136 | 4,205,137 | ASP.NET web service throw System.Net.WebException when upload file | <p>I have a a web service in asp.net which need to upload files to another server. The code run well when I play under Debug mode in Visual Studio. But when I host in IIS and call it, it throw System.Net.WebException. Here is my code:</p>
<pre><code> [WebMethod]
public string UploadFileToServer(string m_fileNam... | c# asp.net | [0, 9] |
4,094,525 | 4,094,526 | JQuery: How do I get a DID ID? | <p>I have the following HTML:</p>
<pre><code><div class="house">...</div>
</code></pre>
<p>But in my code I dynamically insert in DIV ID's to make the code then look like this:</p>
<pre><code><div class="house" id="id_1">...</div>
</code></pre>
<p><strong>Question</strong>: How can I get the... | javascript jquery | [3, 5] |
3,409,107 | 3,409,108 | How come it's like this? | <p> <a href="http://jsfiddle.net/DerekL/whY4B/" rel="nofollow"><strong><em><code>http://jsfiddle.net/DerekL/whY4B/</code></em></strong></a></p>
<pre><code>$("p").each(function(i) {
var btn = $('<button>button</button>'),
span = $('<span>span</span>');
$(this).after(btn).after(s... | javascript jquery | [3, 5] |
2,043,532 | 2,043,533 | document.ready is getting called multiple times | <p>Within my php app I have multiple templates that get combined to form a single page. so say your on the about us page, the template would look like this</p>
<pre><code><?php
$this->render("header.php");
?>
my about us page
<?php
$this->render("footer.php");
?>
</code></pre>
<p>which is ju... | php jquery | [2, 5] |
5,886,231 | 5,886,232 | Pass C# ASP.NET array to Javascript array | <p>Does anyone know how to pass a C# ASP.NET array to a Javascript array? Sample code will also be nice.</p>
<p>Sorry if I was vague earlier guys. The question is actually quite simple. Let's say for simplicity that in my aspx.cs file I declare:</p>
<p><code>int [] numbers = new int[5];</code></p>
<p>now I want to p... | c# javascript asp.net | [0, 3, 9] |
5,119,790 | 5,119,791 | Android: trying to make a count down from dec 21 using GregorianCalendar class | <p>I'm trying to make a simple app that will display a count down timer to December 21.</p>
<p>I have the following code</p>
<pre><code> GregorianCalendar gToday = new GregorianCalendar();
GregorianCalendar gEndOfWorld = new GregorianCalendar();
gEndOfWorld.set(2012,12,1);
</code></pre>
<p>My idea ... | java android | [1, 4] |
3,429,693 | 3,429,694 | change encoding when using class with remote scripting in c# | <p>I have a class in c# in that store some user messages, and return it as a string</p>
<p>the problem is when using hebrew character ,it return to the page as symbols.</p>
<p>I am using "remote scripting" by Brent Ashley, to update the server side ,so I get those </p>
<p>strings to the javascript using this method... | c# javascript asp.net | [0, 3, 9] |
1,874,718 | 1,874,719 | how to access a web control inside a userControl from aspx page | <p>i have 2 textbox controls inside a usercontrol TextBoxUC.ascx<br>
i have a page.aspx that contains the usercontrol. how can i get a reference to each textbox using javascript from page.aspx?</p>
| c# asp.net javascript | [0, 9, 3] |
3,283,881 | 3,283,882 | How to differentiate between click and drag/drop event? | <p>I have a problem with element which is both draggable and also has a click event.</p>
<pre><code>$('.drag').mousedown(function() {
//...
});
$('.class').click(function() {
//...
)};
<div class="drag class"></div>
</code></pre>
<p>When I drag and drop the element, the click event gets fired, t... | javascript jquery | [3, 5] |
5,586,107 | 5,586,108 | How to pass a variable value from the code behind to an external javascript file (jquery file)? | <p>Suppose I have this:</p>
<pre><code><asp:LinkButton runat="server" CssClass="lFilename" ID="grdlinkFilename" Text='<%#Eval("FILEPATH")%>' CommandArgument='<%#Eval("FILEPATH")%>' OnCommand="grdlinkFilename_click"> </asp:LinkButton>
</code></pre>
<p>How can I pass the <code><%#Eval("FILEP... | c# javascript jquery asp.net | [0, 3, 5, 9] |
5,757,032 | 5,757,033 | Javascript - Image change an resize to full background | <p>As a quick explanation, I created an image that resizes to fill the background using this function which works great:</p>
<pre><code>function resize_bg(element_id){
$("#"+element_id).css("left","0");
var doc_width = $(window).width();
var doc_height = $(window).height();
var image_width = $("#"+ele... | javascript jquery | [3, 5] |
4,103,081 | 4,103,082 | JQuery load script on a click event | <pre><code>$('#selector').click(function() {
// here I would like to load a javascript file
// let's say /js/script-on-click-event.js
});
</code></pre>
<p>Is that somehow possible? I'm not sure but I remember reading about a function that does this in JQuery documentation but I cannot find it here, maybe it's ... | javascript jquery | [3, 5] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.