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,096,483 | 5,096,484 | Read text from response | <pre><code> HttpWebRequest request = WebRequest.Create("http://google.com") as HttpWebRequest;
request .Accept = "application/xrds+xml";
HttpWebResponse response = (HttpWebResponse)request .GetResponse();
WebHeaderCollection header= response.Headers;
</code></pre>
<p>Here google returns text. How... | c# asp.net | [0, 9] |
3,736,977 | 3,736,978 | Java programmer needs to learn C++ fast | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/2041102/java-to-c-guides">Java to c++ guides</a> </p>
</blockquote>
<p>Hi,</p>
<p>I am a Java programmer, but recently the need came up for me to learn C++ fast. I am thinking in about a week, obviously also wi... | java c++ | [1, 6] |
271,869 | 271,870 | How to make checkboxlist work as radiobuttonlist | <p>I am developing an application which consists of two checkboxlist which displays like true or false. How to make second checkboxlist unchecked when first checkboxlist checked like radio button using javascript ?</p>
| javascript asp.net | [3, 9] |
4,953,241 | 4,953,242 | Implement partial methods across multiple assemblies | <p>In one of the applications I am working on, there are two basic functionalities included: Create and Update.</p>
<p>However, there is a need sometimes to add custom code, so I thought of extending the code by allowing 3rd parties to write and embed their own code:</p>
<p>OnCreating
OnCreated
OnUpdating
OnUpdated</... | c# asp.net | [0, 9] |
4,327,363 | 4,327,364 | loading javascript file in ASP.NET for a single page | <p>I'm using ASP.NET with a master page containing a script manager. I want to add a javascript file to only one page, but all pages inherit from the master. What is the proper way to accomplish this?</p>
<p>thanks in advance</p>
| asp.net javascript | [9, 3] |
3,083,407 | 3,083,408 | Javascript function calling question | <p>Is it possible to do what I want? the <code>changeEl()</code> function is also in <code>fadeGall()</code></p>
<pre><code> function initOpen(){
$('ul.piple-holder > li > a, ul.work-holder > li > a').each(function(){
var _box = $(this);
_box.click(function(){
... | javascript jquery | [3, 5] |
2,550,343 | 2,550,344 | iWebkit Vs JqueryMobile Vs JQtouch? | <p>Hii Friends,</p>
<pre><code>i m newbie to iphone development , i have to design a iphone webapp,have found these three have the best features,
</code></pre>
<p>Plz point out these pros and cons of these mobile frameworks?</p>
<p>Does php is needed for form processing or we can use xml,feeds etc?</p>
| jquery iphone | [5, 8] |
2,081,237 | 2,081,238 | Show menu/div onclick or onmouseover not the easy way | <p>I'm trying to make a menu that can collapse:</p>
<ul>
<li>If you click on a button div the menu shows and stays even if you hover the button div.</li>
<li>If you click again on the button div the menu hides.</li>
<li>When the menu is hiding onmouseenter or mouseover it shows onmouseleave or mouseout
it's hiding.</... | javascript jquery | [3, 5] |
2,418,551 | 2,418,552 | Duplicating JQuery/Javascript functions | <p>I have a jquery/javascript function that creates an array to be placed in a form's hidden field. However, this is a nested form and so I need to invoke this function many times to populate the hidden field for all the children: <code>test_suite_run[test_runs_attributes][//id][packages_id]</code>. This means that I n... | javascript jquery | [3, 5] |
1,235,514 | 1,235,515 | writing a time out event for android | <p>i have a small issue i can't figure out.
for my program, i basically want to execute some code if the user hasn't done anything with the application for 5 minutes (say log out).</p>
<p>how can i go about doing this? i'm lost on detecting that the user has done nothing, and then reset the count once the user has tou... | java android | [1, 4] |
3,723,311 | 3,723,312 | Why is there usually a reference to Java when when people talk about C#? | <p>I don't know much about C# but I've been programming in Java for a few months now. I had always heard what C and C++ were, but was a little curious about where C# came from. I'm a little confused about the C# language since even though it's one of the 'C' languages (C, C++, C#), on the other hand all of my professor... | java c# | [1, 0] |
1,165,699 | 1,165,700 | client side validation error | <pre><code><%@ Page Language="C#" MasterPageFile="~/HomeMaster.master" AutoEventWireup="true" CodeFile="HomePage.aspx.cs" Inherits="Default2" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cp1" Runat="Server">
<script language="javascript" type="text/javascript">
funct... | c# javascript asp.net | [0, 3, 9] |
3,716,749 | 3,716,750 | how to create the image dynamically in ASP.NET? | <p>how to create the image dynamically based on the points i get from table</p>
<p>if point =1</p>
<p>my image must be displayed once,</p>
<p>if point=2</p>
<p>imgae has to be display twice.... in that way</p>
| c# asp.net | [0, 9] |
2,363,745 | 2,363,746 | I would like to know how to put a "change image" layer like in facebook on a mouseover event | <p>Hello:
I have a photo gallery I would like that every time a user does mouseover the image, there is a button on the top of this image that appears. The user can click on it.
But every time that the user mouse out of the photo it must disappear.</p>
<p>It works like the "change photo" in Facebook, with the photo of... | javascript jquery | [3, 5] |
3,116,046 | 3,116,047 | Page Title from a User Control possible? | <p>I have a <code>Search.aspx</code> page which calls <code>UCSearch</code> control. <code>UCSearch</code> control does everything like getting what is being searched and what should be displayed, etc. I am trying to give the title to the page. As i dont have any info to write the code in the aspx page, i am thinking ... | c# asp.net | [0, 9] |
1,450,122 | 1,450,123 | trigger a click event if confirmation message | <p>Here is my code :</p>
<pre><code><script type="text/javascript">
$(document).ready(function () {
$(window).bind('beforeunload', function () {
alert("unload");
if (closeIt())
$("#<%=Button1.ClientID %>").trigger('click');
});
function closeIt() {
var ans =... | c# javascript jquery | [0, 3, 5] |
5,004,821 | 5,004,822 | Access Cookie into sub domains | <p>I want to host multiple sites under one domain. But currently I am working on localhost, so I added these 2 lines to my etc/hosts file:</p>
<pre><code>127.0.0.1 something.com
127.0.0.1 orders.something.com
</code></pre>
<p>There are 2 applications hosted in IIS. One can be browsed using: <code>orders.something.com... | c# asp.net | [0, 9] |
2,400,978 | 2,400,979 | Save string from jQuery's `$.get` | <p>I'd like to load some content from an URL, to use it in my code. I tried closures and this:</p>
<pre><code>function getStringFromURL(url) {
var getter = function() {
this.result = "undef";
this.func = function(response) {
this.result = response;
};
};
var x = new getter();
$.get(url, x.fun... | javascript jquery | [3, 5] |
4,203,583 | 4,203,584 | Failed to load PDF document | <pre><code>//the func merges the src pdf with the memory stream, wherein the stream may contain
//few othr src pdf streams in previous calls to this func
//in first cal, ms would be null
public static void MergePdf(MemoryStream ms, string srcFile)
{
PdfReader reader = new PdfReader(srcFile);
Document document ... | c# asp.net | [0, 9] |
3,931,871 | 3,931,872 | Ajax jquery returns blank page | <p>I have this JavaScript code:</p>
<pre><code>$(document).ready(function(){
$('#sel').change(function(){
$.ajax({
type: "POST",
url: "modules.php?name=TransProject_Management&file=index",
data: "&op=index_stat&stat="+$... | php jquery | [2, 5] |
4,107,675 | 4,107,676 | How do I write the following code as a for loop? | <p>Firstly,
Is there a way for me to put variable declarations in a for loop?</p>
<p>E.g. the following:</p>
<pre><code>var origh1 = $('#candidates img:eq(0)').height();
var origh2 = $('#candidates img:eq(1)').height();
var origh3 = $('#candidates img:eq(2)').height();
var origh4 = $('#candidates img:eq(3)').h... | javascript jquery | [3, 5] |
1,137,898 | 1,137,899 | Passing a string from JavaScript of popup window to parent window | <p>I have a JavaScript function that looks like this. I need help passing these values from JavaScript of the pop up window to the parent window. I know that I have to use </p>
<pre><code>window.opener.document.getelementbyD("ID Of TextBox");
</code></pre>
<p>method in my child aspx page but the <code>textbox</code> ... | javascript asp.net | [3, 9] |
2,982,361 | 2,982,362 | Want to pass php variable as argument in javascript function? | <p><br>
i want to pass my php variable in one javascript function.<br>
i know it seems simple but i don't know where am i missing something?</p>
<pre><code> <?php
while($gg=mysql_fetch_array($lg))
{
?>
<td id="add_td">
<?php
$id = $gg['p_id'];
echo ... | php javascript | [2, 3] |
1,022,778 | 1,022,779 | Format a label in a gridview to hide first 5 digits of a social security number | <p>I have a data-bound label inside a template field of a griview that displays Social Security Numbers. It currently shows the SSN's as such, 123-45-6789. I need to hide the first 5 digits so it show's like ###-##-6789. Does anyone have an example of how I might accomplish this. </p>
<p>Here is the mark-up for the te... | c# asp.net | [0, 9] |
1,555,570 | 1,555,571 | Replace a string in JavaScript and PHP | <p>How can I replace this character <code>|</code> in JavaScript?</p>
<pre><code><html>
<body>
<script type="text/javascript">
var str="data|data|data";
document.write(str.replace(/|/g,"<br />"));
</script>
</code></pre>
<p>
</p>
<p>In the output of given code, every character ha... | php javascript | [2, 3] |
3,887,009 | 3,887,010 | put a tabactivity in a tabactivity | <p>I'm developing a sport application wit a statistics tab. In that TabActivity, I would like to put another TabActivity. Is that possible? Is there a best practice? </p>
<p>Best regards!</p>
| java android | [1, 4] |
4,299,051 | 4,299,052 | Android development (Button and XML Layouts) | <p>Today I've been attempting to make an application with multiple page , but i have looked everywhere and cannot find a tutorial in english to follow , but heres what im trying to do , </p>
<p>When i click a button i want it to take me to a specific XML layout (Example , "Button1" takes the user to "Page1.xml"</p>
<... | java android | [1, 4] |
3,051,097 | 3,051,098 | How do i use captcha in the asp.net application for test input in simple way | <p>I'm working on asp.net web application where I need to use CAPTCHA to test input enter into textbox please let me know very simple way to implement CAPTCHA in asp.net.</p>
| c# asp.net | [0, 9] |
4,484,059 | 4,484,060 | How do I Add Distinctive Blocks of Form Controls Using jQuery? | <p>I am doing a small human resource web application in my workplace and i have a CV section were employees can add their CVs to be displayed to the human resource manager.</p>
<p>I want to make something similar to what <a href="http://careers.stackoverflow.com/" rel="nofollow">Stackoverflow Careers</a> has done in t... | asp.net jquery | [9, 5] |
3,132,123 | 3,132,124 | nextUntil() jQuery selector | <p>why does it return an error?</p>
<p><a href="http://jsfiddle.net/L82JU/" rel="nofollow">http://jsfiddle.net/L82JU/</a></p>
<p>Uncaught TypeError: Object [object Object] has no method 'replace'</p>
<p>I want to select the first child of <code>.x</code> until the 3rd child of <code>.x</code></p>
<p>html</p>
<pre>... | javascript jquery | [3, 5] |
5,289,792 | 5,289,793 | Multiple Checkbox in ListView? | <p>Anyone having multiple checkbox in listview program?</p>
| java android | [1, 4] |
1,866,387 | 1,866,388 | jQuery - get reference to this | <pre><code>function Request(params)
{
// Stuff stuff stuff
// And then
$.ajax(
{
type: 'GET',
url: 'someurl',
success: this.done
});
}
Request.prototype.done = function()
{
// "this" in this context will not refer to the Request instance.
// How to reach it?
}
</co... | javascript jquery | [3, 5] |
5,380,930 | 5,380,931 | C# Declaring Multiple Instances of the Same Table | <p>I have a table that needs 27 drop down menus in 27 cells to accept user input. Currently I am declaring all 27 of them like this:</p>
<pre><code>DropDownList DropList1 = new DropDownList();
DropList1.ID = "TrendList1";
DropList1.AutoPostBack = true;
DropList1.SelectedIndexChanged += new EventHandler(this.Selection... | c# asp.net | [0, 9] |
5,842,520 | 5,842,521 | Function not defined - jQuery/Javascript | <p>Another hapless noob...
Okay, so I've looked everywhere to try and find out how to make this jQuery/JavaScript function, I hope it's just a mistake in my syntax, but here's my code:</p>
<pre><code><script type="text/javascript">
$(function()
{
function loadNext(choice) {
$("#thequestion")... | javascript jquery | [3, 5] |
725,414 | 725,415 | jQuery - call a function anytime a user changes any form input? | <p>I have a page that has multiple forms. Anytime the user clicks an input or modifies text in an input I would like a function to be called. Any ideas on how to do this efficiently and in a way where it doesn't require the form IDs?</p>
| javascript jquery | [3, 5] |
3,406,263 | 3,406,264 | Form submit using jquery & passing values | <p>I want to accomplish the following using jQuery:</p>
<pre><code>frm_rooms.action="create_rooms.php?action=Save";
frm_rooms.submit();
</code></pre>
<p>I tried following jQuery but it doesn't work:</p>
<pre><code>$('#frm_rooms').submit(function(event) <br/>{
$.post("create_rooms.php", { action: "Save" } )... | javascript jquery | [3, 5] |
151,070 | 151,071 | Jquery animate function not working | <p>I'm using the following javascript to animate a div, but the div isn't animating... does anyone know what can be?</p>
<p>JavaScript: </p>
<pre><code> <script language="JavaScript">
$(document).ready(function(){
$('#LayoutDiv1').animate({top: "500px"}, 1500); });
</script>
</code></pre>
... | javascript jquery | [3, 5] |
269,030 | 269,031 | Making a simple Image Switcher | <p>I know that there are many jQuery scripts ready to implement something like this here that I'm trying to pull together, but I want to make it as simple as possible. Basically when each image thumb of the list is clicked the main image shows the respective image just only bigger. </p>
<p>So, here is my question. Doe... | javascript jquery | [3, 5] |
905,537 | 905,538 | Setting jEditable parameter | <p>I'm working with jEdtable and would like to add 2 more parameters into the posted URL.
Is there a way to accomplish this?</p>
<p>Here's the default parameters -</p>
<pre><code>$(document).ready(function() {
$('.edit').editable('http://www.example.com/save.php', {
id : 'elementid',
name : ... | php jquery | [2, 5] |
4,145,581 | 4,145,582 | how to check for input validation java | <p>this is what i have so far, how do i make it so it will check the the EditText boxes are empty. when i test it out with all empty boxes it will force close, why and/or how do I fix it?</p>
<pre><code>if ((x1field.getText().toString().equals("")));
{
forgetunits.setText("you have forgotten a number");
}
if ((x2f... | java android | [1, 4] |
1,633,842 | 1,633,843 | PHP - how can I stop a function from printing an extra || at the end? | <p>In PHP I have a function, the problem is it will output an extra || at the end that I dont want.</p>
<pre><code><script type="text/javascript">
function hide_card_code() {
var payment_source=document.getElementById('payment_source');
if(
<?
forEach($result_cards as $key => $value) {
ec... | php javascript | [2, 3] |
4,825,325 | 4,825,326 | Using jquery calender control in ASP.Net C# | <p>I am using a ready-made calender control available at <a href="http://www.eyecon.ro/datepicker/#download/datepicker.zip" rel="nofollow">http://www.eyecon.ro/datepicker/#download/datepicker.zip</a>.</p>
<p>The date picker's object is readily provided.</p>
<p>In that there is one example showing that the calendar co... | c# asp.net | [0, 9] |
3,770,513 | 3,770,514 | how can I $_POST this below | <p>Below is my javascript and form code where it appends a question number (qnum) for each table row appended in the application one by one. So if user adds a table row then it contains question number 1, when second row is added, question number 2 is added, then 3 for third row and etc.</p>
<pre><code><script>
... | php javascript | [2, 3] |
5,446,546 | 5,446,547 | Move an element left on each click | <p>I think My main question is "how do I write this?"
Its a simple thing. for every click the css left property gets 500px taken off. (moved 500px to the left)</p>
<p>I am having a hard time with the variables and just ... I don't know.</p>
<pre><code>$(document).ready(function() {
var belt-move = 500;
var... | javascript jquery | [3, 5] |
4,943,954 | 4,943,955 | How to clear button's color when next button is clicked? | <p>How to change button's color to default after next button is clicked? I have this code that sets color to the button in onclicklistener:</p>
<pre><code>Button button = (Button) v;
button.getBackground().setColorFilter(new LightingColorFilter(0xFFFFFFFF, 0x003333));
</code></pre>
<p>I have one click listener for al... | java android | [1, 4] |
1,683,278 | 1,683,279 | Refreshing a part of a page | <p>I don't know if this is possible but I'd like to refresh the contents in a div when a button is clicked.</p>
<p>Example:</p>
<pre><code> <div id="div">
Some contents
</div>
<input type="button" value="button" onClick="div.refresh()"/>
</code></pre>
<p>I'm not trying to change the contents of t... | javascript jquery | [3, 5] |
54,232 | 54,233 | PHP script sample for iPhone hi-score/survey uploading? | <p>I am looking for a PHP example/tutorial which can accept hi-scores/survey upload from an iPhone. Hopefully, the PHP script:</p>
<ul>
<li>accepts POST, in additional to GET</li>
<li>works over SSL (https)</li>
<li>connects to MySQL</li>
</ul>
<p>In addition, it'd best the iPhone can get a session from the server a... | php iphone | [2, 8] |
711,274 | 711,275 | How to add text to dynamically created DOM objects? | <p>Say I have two buttons "Add Link" and "Add Text". The "Add Link" button automatically appends the following to the existing page:</p>
<pre><code><a href="text.html"></a>
</code></pre>
<p>When i click on the button "Add Text", the text of all dynamic links created should contain the text "Text". </p>
<... | javascript jquery | [3, 5] |
497,647 | 497,648 | Clearing all fields in an asp.net form | <p>I have an <code>asp.net</code> <code>form</code>. In this <code>form</code>I want to clear all the data what I entered in <code>textbox</code>,<code>dropdownlist</code> etc. So how can I do without going to each textbox and set the value.</p>
<p>like <code>TextBox1.Text="";</code> etc. How can i clear all values o... | c# asp.net | [0, 9] |
3,281,902 | 3,281,903 | Problem accessing private variables in jQuery like chainable design pattern | <p>I'm trying to create my custom toolbox which imitates jQuery's design pattern. Basically, the idea is somewhat derived from this post: <a href="http://stackoverflow.com/questions/2061501/jquery-plugin-design-pattern-common-practice-for-dealing-with-private-function">http://stackoverflow.com/questions/2061501/jquery-... | javascript jquery | [3, 5] |
169,655 | 169,656 | Is it possible to raise an event of other control on selecting another | <p>I am having a drop down and a radio button on my form. What i would like to do is i would like to call <code>radio_CheckedChanged</code>on <code>drodown_SelectedIndexChanged</code>. Can any one tell me the best way to do</p>
| c# asp.net | [0, 9] |
2,582,942 | 2,582,943 | Executing custom JavaScript on specific pages of the site from a single file | <p>my js file loads on all pages. Some functions are meant to run only on certain pages like the homepage only <code>http://site.com</code>. Can javascript read the url of the page it's being called from to determine if it's the homepage?</p>
| javascript jquery | [3, 5] |
3,860,882 | 3,860,883 | Where is the best place to store user related data in asp.net? | <p>When a customer logs in to my site, I need to know their account id and their menu id. This lets me know what data they can see on a page and what menu they get. I don't want to have to read this data over and over. Should I store this in a session variable or customize the membership user and membership provider... | c# asp.net | [0, 9] |
2,042,601 | 2,042,602 | How to add and repeat title="some text" same as alt="some text" if title is already not present? | <p>I want to add and repeat title="some text" same as alt="some text" if title is already not present. To show Alt text in FF also.</p>
<p><strong>before</strong></p>
<pre><code>alt="some text"
alt="some text" title="some another text"
</code></pre>
<p><strong>After</strong></p>
<pre><code>alt="some text" title="s... | javascript jquery | [3, 5] |
4,903,768 | 4,903,769 | Keep value after postback | <p>I have an ASP.NET web site with something similar to the following code:</p>
<p><strong>.aspx</strong></p>
<pre><code><asp:UpdatePanel ID="UpdatePanel" runat="server">
<ContentTemplate>
<table id="RatesTable">
<tr>
<td>Hotel</td>
... | c# javascript asp.net | [0, 3, 9] |
4,778,776 | 4,778,777 | Cannot use a leading .. to exit above the top directory | <p>I'm getting this error when I start my project</p>
<p>It is being caused by the css and js files in the master page.</p>
<pre><code><link href="../assets/css/jquery.ui.theme.css" rel="stylesheet" type="text/css" />
</code></pre>
<p>When I remove this line the project starts functioning correctly(without the... | c# asp.net | [0, 9] |
3,996,150 | 3,996,151 | How to detect 404 error in a url then set the url image to display:none using Jquery | <p>I have a table which repeats an image link to a file download for every row of data. I want to use Jquery or Javascript to detect if a image link returns a 404 error, meaning the file its trying to find doesn’t exist, then set the image link to <strong>display:none</strong> so its hidden.</p>
<p>Any help is much ap... | javascript jquery | [3, 5] |
5,325,765 | 5,325,766 | "Input type file.files" selector not works in jquery | <p>this is html:</p>
<pre><code> <form>
<input id="my_file" type="file" name="my_name" />
<input id="btn" type="button" />
</form>
</code></pre>
<p>this js:</p>
<pre><code> $(document).ready( function () {
$('#btn').on('click', functio... | javascript jquery | [3, 5] |
2,361,373 | 2,361,374 | Window.showModalDialog() using javascript | <p>I am opening a child window using window.showModalDialog() method.
In the child page i have few server side controls whenever a postback happens the child page opens in a new window.</p>
<p>I have also set in my head tag,but it is not working. </p>
<pre><code><base target ="_self/>
</code></pre>
<p>For exa... | javascript asp.net | [3, 9] |
5,443,702 | 5,443,703 | calling methods between classes | <p>Is there a way to call a method in one class from another class. I could have say 5 classes and more than one may want to perform the same operation. So can I have one file (class??) with these common methods and call into that? If so what is the necessary modifier for these 'common' methods - public, final??<... | java android | [1, 4] |
3,977,679 | 3,977,680 | Need a Property to hold the result from a data table | <p>I need to create a property tha will hold to ints for example</p>
<p>int age and int numbers so.. something like This data is comming from a function in another class that returns a DataSet, in the data set there will be those two items like:</p>
<pre><code>Age number
24 1
29 6
32 2
27 1
19... | c# asp.net | [0, 9] |
155,703 | 155,704 | disable textbox Required field validator control | <p>I want to disable the requiredfield validator control for the textbox based on some condition of a variable</p>
<pre><code>if(var==null)
{
//Activate it
}
else
{
//disable it
}
</code></pre>
<p>Can some one help me with the code</p>
| c# asp.net | [0, 9] |
1,506,488 | 1,506,489 | how might I disable a div when the data inside it reaches 0 possibly using an if else? | <p>I have a snippet of javascript that displays the amount of sessions available for an event </p>
<pre><code>for ( var j in data.events[i].sessions ) {
first_session_id = !first_session_id ? data.events[i].sessions[j].id : first_session_id;
session_html +=
... | javascript jquery | [3, 5] |
4,864,231 | 4,864,232 | Why doesn't my hide function work on a click | <pre><code>$(document).ready(function() {
$('#promotion_profile_booking_description').keyup(function () {
var left = 200 - $(this).val().length;
if (left < 0) {
left = 0;
}
$('#counter').text('Characters left: ' + left);
});
$('#counter').bind('click', function() {
(this).hide();
... | javascript jquery | [3, 5] |
1,873,596 | 1,873,597 | How to move the textbox viewport when gaining focus? | <p>I have a textbox that may contain strings larger than the textbox size. When I'm typing, the textbox "viewport" always moves to show the last character I typed (for example when you write a very large title in a SO question).
a</p>
<p>The problem is that if the texbox loses focus, when it is focused again the view... | javascript jquery | [3, 5] |
398,322 | 398,323 | find the variable which is equal to the value of another variable | <p>I came across a confusing fact during coding a script.</p>
<p>How can i find the variable which is equal to the value of another variable. THEN , get the value of that variable.</p>
<p>Here's an example:</p>
<pre><code>var result;
var 1 = "john";
var 2 = "amy";
var 3 = "micheal";
var info = "1";
</code></pre>
<... | javascript jquery | [3, 5] |
5,544,959 | 5,544,960 | JavaScript class function this operator | <p>I have a JS class that contains a AJAX post. I'm trying to refer to the class members from within the post function using <code>this</code> but it doesn't seem to be working. </p>
<p>For example, from this: </p>
<pre><code>function Classy() {
this.goal = 0;
$.post(
"class/initial.php",
function(ba... | javascript jquery | [3, 5] |
1,151,992 | 1,151,993 | Add a timeout to load() | <pre><code>var refreshId_hxlatestposts = setInterval(function() {
var el = $("#hxlatestposts");
var req = $.get("example.php");
el.fadeOut('slow', function () {
req.done(function( data ){
el.html(data).fadeIn('slow');
});
});
}, 60000);
</code></pre>
<p>This is what i use to refresh a div every minute,... | javascript jquery | [3, 5] |
3,415,110 | 3,415,111 | checking out the login result | <p>i am trying to integrate cpanel to my cms...
i have this code to remote logins:</p>
<pre><code><form action=’http://www.yourdomain.com:2082/login/’ method=’post’>
<table border=’1′ width=’250′ cellpadding=’2′ cellspacing=’0′>
<tr>
<td align=’right’>Username:</td>
<td><input ty... | php jquery | [2, 5] |
3,447,551 | 3,447,552 | How to wait for file scanning finished before starting the launcher app | <p>I am currently working on an Android launcher application, and I would like to play some intro video before the launcher starts. Knowing that playing video directly from assets or raw folder does not work on some devices, I include the video file in assets folder, and let the app copy the video file to SD card befor... | java android | [1, 4] |
4,345,733 | 4,345,734 | Having problem with jQuery Countdown? Function serverSync: serverTime | <p>serverSync: serverTime Function return value from server but I have checked both server and client time both are same.When i called server to sync with server it will not display countdown. help me ?</p>
<pre><code> $(function() {
var shortly = new Date();
var newTime = new Date('April 9, 2010 20... | c# asp.net jquery | [0, 9, 5] |
743,769 | 743,770 | Android- Image shape changed on screen rotation | <p>I created an app that uses a 9.png file as its background. The problem is, when I rotate the screen, the background shape changes weirdly. </p>
<p>I am attaching the screenshot: </p>
<p><img src="http://i.stack.imgur.com/J0SfY.png" alt="Application in normal mode"></p>
<p><img src="http://i.stack.imgur.com/tbj... | java android | [1, 4] |
809,685 | 809,686 | Just a simple thing about windowsTitle change background in Java | <p>i wan't to do a simple thing, my background's windowTitle must change in my application. But how i can access to my background's windowTitle ? </p>
<p>My style.xml :</p>
<pre><code><resources>
<style name="CustomWindowTitleBackground">
<item name="android:background">@drawable/fond</item&g... | java android | [1, 4] |
3,817,253 | 3,817,254 | login using open id authentication | <p>I would like to know as in StackOverflow website user can login with open id authentication how it has been done.Can I get any sample example of doing this.</p>
| c# asp.net | [0, 9] |
5,379,018 | 5,379,019 | jQuery - How do I make custom event fire only once? | <p>I need to control the order in which events are fired. To ensure that my custom event is fired only after another event has finished I am triggering the custom event in the handler of the first event.</p>
<pre><code> $(".HwRadioButton").click(function(event) {
//Stuff that needs to happen before custom ev... | javascript jquery | [3, 5] |
2,361,947 | 2,361,948 | How to create dynamic id selector in Jquery? | <p>My php code goes something like this way- </p>
<pre><code>for($i=1;$i<=$n;$i++)
{
$id='selectThisID-' . $i;
?>
<div id="<?php echo $id;?>">On Select this Div(say #selectThisID-3)<?php echo $field-n; ?></div>
<?php $id= 'paraID-' . $i;
<p id="<?php echo $id; ?>" style="disp... | php javascript jquery | [2, 3, 5] |
4,406,041 | 4,406,042 | Define a map as constant in java | <p>For my Android app I've the need of defining some keys in a single constant, and I think the best way to do it is using a map. But not sure whether that's really the way to go, and how to do it correctly. As I'm targeting Android, a Bundle may also be an option.</p>
<p>I have a list of keys like:
<br>"h" = "http"
<... | java android | [1, 4] |
1,929,184 | 1,929,185 | cross-browser async uploader? | <p>Anyone looked into this recently?</p>
<p>12 months ago i was using <a href="http://www.uploadify.com/" rel="nofollow">Uploadify</a></p>
<p>6 months ago i switched to <a href="http://www.plupload.com/" rel="nofollow">Plupload</a> which was the best i could find,</p>
<p>what are people's thoughts, is Plupload still... | php javascript jquery | [2, 3, 5] |
311,380 | 311,381 | Android Back Button reacts too quickly | <p>I'm developing an android application and when I press the back button from my device (normal press time for a person, 1 second or less), it skips from my activity, to the previous activity (menu) and then exits the application.
But if I tap the back button quickly, it reacts as expected, it goes to the menu.
I've t... | java android | [1, 4] |
5,227,380 | 5,227,381 | Optimising event handling: one large, or many small? | <p>Which pattern is best, and why?</p>
<pre><code>$myElements.delegate(selector, 'event1 event2', function () {
if (event.type === 'event1') { /* Handle event 1 */ }
if (event.type === 'event2') { /* Handle event 2 */ }
}
</code></pre>
<p><strong>OR</strong></p>
<pre><code>$myElements
.delegate(selector, 'e... | javascript jquery | [3, 5] |
909,455 | 909,456 | Change part two class in div | <p>I want change part two of class name in each div into tag <code><span></code> from '.myclass_2' to 'yourclass', (in following html code). Here is my try with jQuery but they doesn't work true. How is fix it?</p>
<p>Demo: <a href="http://jsfiddle.net/sTF3U/" rel="nofollow">http://jsfiddle.net/sTF3U/</a></p>
<... | javascript jquery | [3, 5] |
1,871,561 | 1,871,562 | Expanding compressed div | <p><a href="http://jsfiddle.net/Y8MUF/" rel="nofollow">http://jsfiddle.net/Y8MUF/</a></p>
<p>It can expand the div when i click on it. How do i make it look nicer by adding a "See More" link then hide it when the div exapands and adjust the row height relative to the See More link?</p>
<pre><code>$(document).ready(fu... | javascript jquery | [3, 5] |
2,025,772 | 2,025,773 | jquery library conflict | <p>I use two jQuery Library in a single page (Tab & Gallery) for both used two different versions of jQuery libraries now it both wont work at a time. i have to remove a library to work another.</p>
<p>Used versions</p>
<p><a href="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" rel="nofollow">1.... | javascript jquery | [3, 5] |
4,089,797 | 4,089,798 | HttpSessionState as parameter | <p>What is the highest class in the hierarchy I can use to pass HttpSessionState as a parameter and add values to it?</p>
<p>For instance to a method like</p>
<pre><code>public void MyMethod(IDictionary<string, object> input)
{
input.Add("something", something);
}
</code></pre>
<p>I see that implements ICo... | c# asp.net | [0, 9] |
2,498,744 | 2,498,745 | How to disable the Javascript for current page by using Javacript | <p>I have an unusual problem. I make a page filled with some JS and old browsers simply mess it up. A lot of it is included directly to the page - not in separate files - but not inlined.</p>
<p>I wonder if there is a way to generate (using PHP) some JS that would make the browser ignore all the following scripts?</p>... | php javascript | [2, 3] |
4,659,525 | 4,659,526 | using the window object for accessing global user defined objects and using text within html for creating additional specificity | <p>I don't do very much jquery / javascript but wanted to ask for some advice on the following piece. I have tried to cut out as much as possible. Most of this was semi-inherited code with catching a bunch of events just hardcoded in. I'd like to generalized them more by putting the object name in the html and accessin... | javascript jquery | [3, 5] |
578,740 | 578,741 | Problem with string format | <p>I would like to assign string "{"MY_URL", "MY"}" to string variable. So in my code behind (C#)
I wrote like <code>string str ="{\"MY_URL\", \"MY\"}"</code>. When i will assign this to textbox it will print escape character ("\") as well. That i don't want so what i have to do to achieve this??</p>
| c# asp.net | [0, 9] |
3,435,956 | 3,435,957 | Changing JavaScript source | <p>The below code is not changing the javascript source:</p>
<pre><code>if($.browser.msie){
var new_scr=document.createElement('script');
new_scr.src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js";
document.getElementsByTagName('head')[0].appendChild(new_scr);
}
</code></pre>
<p>I have a... | javascript jquery | [3, 5] |
1,779,741 | 1,779,742 | Dynamic Mathematical Formula Builder in C# | <p>How to write code to create a dynamic formula builder and how to map formula's variable with field values(TextBoxes, Dropdown etc.). I also want to save this formula in database for further use. </p>
<p>Any help would be appreciable.</p>
| c# asp.net | [0, 9] |
3,844,771 | 3,844,772 | display photo or video from a link | <p>is there some kind of a plugin to display a photo or video from a website link like if you post a link on Facebook it loads a miniature picture of the link? </p>
| javascript jquery | [3, 5] |
5,384,776 | 5,384,777 | Creating a dynamic array and then choosing highest value | <p>I did some googling and didnt quite find what I was looking for. I have an app in which a user inputs values and when pressing calculate it will generate 64 values. My question is 2 parts.</p>
<ol>
<li>How to do I capture these results and create a temporary array</li>
<li>How do I pick the largest value from the a... | java android | [1, 4] |
5,717,101 | 5,717,102 | Javascript splice is breaking on jQuery .each()? | <pre><code>var results = ['one', 'two', 'one hundred', 'three'];
var removal = [];
$.each(results, function(i) {
removal.push(i);
if (results[i].indexOf('one') == -1){
console.log('Removing:' + results[i] + '(' + removal[i] + ')');
results = results.splice(removal[i], 1);
}
});
</code></pre>... | javascript jquery | [3, 5] |
1,860,109 | 1,860,110 | How to create rotating tag cloud in jQuery | <p>I cannot explain the functionality actually. I want to rotate the links in spheric form. Visit this <a href="http://www.chemicalformula.org/" rel="nofollow">http://www.chemicalformula.org/</a>. On this site, see the region "Chemical formulas" in middle-left of the page, where links are rotating in spheric, circular ... | jquery asp.net | [5, 9] |
3,565,512 | 3,565,513 | Best way to make alert messages safe in javascript | <p>I want to display messages from my asp.net pages by registering a script, sometimes even the exception code from an error. I use this code:</p>
<pre><code>ScriptManager.RegisterStartupScript(this, Page.GetType(), "NoDept", "alert('Adjustments require the Total Amount to be ZERO to post!');", true);
</code></pre>
... | c# javascript jquery asp.net | [0, 3, 5, 9] |
1,187,568 | 1,187,569 | How would jQuery react to this? | <p>Let's say we got an <code>onClick</code> event to a certain <code>div</code>, but before that, we have a big calculation that needs to be done with jQuery which takes like 3 seconds and jQuery is currently busy so it doesn't recognise my event call.</p>
<p>So, 1 second passes and I click on the box. Nothing happen... | javascript jquery | [3, 5] |
3,660,343 | 3,660,344 | Disable slideDown/Up on links inside div | <p>Basicllay i have a div with a class called .li-level-1, and inside that i have differnt ul's with lists. i Have it set up so when you click on a li-level-1 div displays the ul's and li's inside that div by animating a drop down and when you click on the next one it closes the one previously opened and slidesDown the... | javascript jquery | [3, 5] |
2,958,353 | 2,958,354 | Create a HTML table from a xml document in ASP.NET/C#? | <p>I am querying a web service and get returned a SOAP message. I want to create a html table and select what node should be in what column and so on. I have been googling a bit but wonder if anyone of you know a good guide on how to do this properly?</p>
<p>Thanks in advance.</p>
| c# asp.net | [0, 9] |
3,864,073 | 3,864,074 | How to do live updates on page | <p>I have a page where users can signup to participate in a game match. A user just fills out a text field with a username and clicks a submit button.</p>
<p>Now, I can add their username to a table that shows all signed up users via ajax when they click submit.However, I'd like to have that table update without a pag... | javascript jquery | [3, 5] |
3,215,817 | 3,215,818 | Load dropdown according to the value of another dropdown - without refreshing the page in PHP | <p>I have created a page in PHP, in that i need to load a dropdown2 corresponding to the value of dropdown1 without refreshing the page. The values for those dropdown's are from the database. </p>
<p>I dont want to refresh the page for every click.</p>
| php javascript | [2, 3] |
742,083 | 742,084 | translating php array into asp.net arraylist | <p>i'm trying translate some php code into asp.net code </p>
<p>php code:</p>
<pre><code> function setOption ($result) {
foreach ($result as $value) {
$parentid[$value['id']] = $value['parentid'];
$subid[$value['parentid']][] = $value['id'];
$... | c# php asp.net | [0, 2, 9] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.