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 |
|---|---|---|---|---|---|
1,593,372 | 1,593,373 | How do I access the full size image taken with the camera from an Android Intent? | <p>My button's onclick listener is as follows:</p>
<pre><code> button.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
Intent cameraIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
startActivityForResult(cameraIntent, CAMERA_PIC_REQUEST);
}... | java android | [1, 4] |
3,941,695 | 3,941,696 | Loading data using jQuery | <p>I have a list of states in a drop down menu (<code>select</code>). I have a page for each state. Each page has the state abbreviation as a name, for example: <strong>Alabama</strong> is <code>al.htm</code>. I want to load the contents of <strong>htm</strong> depending on the selection of the state name; and the same... | javascript jquery | [3, 5] |
2,822,057 | 2,822,058 | asp.net auto generated textboxes ID on webform | <p>I am using <strong>C#</strong> on <strong>Visual Studio</strong>. I want to generate a <strong>webform</strong> with auto numbered <code>Textboxes</code> depending on the input from the previous page. What is the best way to do this loop?</p>
<p>For example:</p>
<p>Input is 4</p>
<p>The next page should generate ... | c# asp.net | [0, 9] |
4,802,248 | 4,802,249 | bind click to element added in dom, cause trigger element to perform | <p>I'm binding a element with a click function when its added to the dom. My issue here is that if i add lets say 3 elements, and i click any of those it performs that function 3 times. what is it that makes it trigger those 3 times and could this be done any other way?</p>
<p>let me illustrate it with a jsfiddle <a h... | javascript jquery | [3, 5] |
5,047,747 | 5,047,748 | how to simulate $ function when can't use jquery | <p>my iphone can't use jquery , so i have to simulate $ function by myself:</p>
<p>this is my code :</p>
<pre><code>function $(str){
var div=document.createElement('div')
div.innerHTML=str;
return div
}
</code></pre>
<p>and you can see , the result has a Redundant parent div,</p>
<p>so how to clear ... | javascript jquery | [3, 5] |
5,578,573 | 5,578,574 | how to fix the SyntaxError: unterminated string literal when embed php in javascript? | <p>when i try this:</p>
<pre><code>var app_app = <?=$app_app?>;
</code></pre>
<p>i got the error:</p>
<pre><code>SyntaxError: unterminated string literal
var app_app = '<br />
</code></pre>
<p>strange,
anyone can help me ? </p>
| php javascript | [2, 3] |
691,170 | 691,171 | How reliable is the XmlDataSource control? | <p>How reliable is this method? I'm currently using it and it pulls in my feed fine, but if my blog were to go down or offline for some reason the whole page would error out. Is there any way to fix this? Or just give an error message saying "No feeds found."?</p>
<pre><code><asp:DataList ID="dataNews" runat="serve... | c# asp.net | [0, 9] |
4,605,313 | 4,605,314 | asp.net toggle jquery code from code behind | <p>I am using jquery.loadmask to mask a web page while it is pulling data like so:</p>
<pre><code><script type="text/javascript">
$(document).ready(function () {
$("#btnSubmit").bind("click", function () {
$("#lowerContent").mask("Waiting...");
});
});
<... | c# javascript jquery asp.net | [0, 3, 5, 9] |
3,317,546 | 3,317,547 | Disable browser's back button | <p>How to disable browser's BACK Button (across browsers)?</p>
| asp.net javascript | [9, 3] |
5,540,094 | 5,540,095 | Hierarchy from char delimited string | <p>I have been doing a lot of research on my problem and can't seem to come up with a good solution.</p>
<p>the problem I have a list containing the following</p>
<pre><code>a
a/b
a/b/c
a/b/c/d
a/b/f
a/1
a/2
t
t/1
</code></pre>
<p>I need to parse that into a class that can handle parent child hierarchy. Knowing that... | c# asp.net | [0, 9] |
2,832,437 | 2,832,438 | Setting Image Width/Height in codebehind - ASP.NET, C# | <p>I am trying to set the width and height of images in a datalist in the codebehind. </p>
<p>The plan is to do something more complex than this based on the width/height, so setting width and height in the aspx file to 50% is not an option.</p>
<p><strong>For some reason I always get 0 for width and height. Image1... | c# asp.net | [0, 9] |
2,244,560 | 2,244,561 | String was not recognized as a valid DateTime | <p>I am trying to store date from a textbox in a variable , but I am getting error like this:</p>
<p>String was not recognized as a valid DateTime.</p>
<p>Value in TextBox is like this:</p>
<p>4/24/2013</p>
<p>My code is like this:</p>
<pre><code> dat = Convert.ToDateTime (txtDate.Text);
</code></pre>
<p>Any type... | c# asp.net | [0, 9] |
957,811 | 957,812 | OnBlur effect for select dropdown | <p>I have a select dropdown and if a user clicks 'outside' of that select dropdown, I want it to disappear. This is what I currently have:</p>
<pre><code>$(this).html($("<select/>", {
id: 'sel',
change: function() {
selectdone(this, title_id, status_type);
},
blur: function() {
selectdone(this, t... | javascript jquery | [3, 5] |
4,981,589 | 4,981,590 | how to test whether grid is empty or not in jquery | <p>i have a grid and adding elements to is in jquery like below:</p>
<pre><code>$('#MyGrid tbody').append('<tr><td><a href="#" >' + htmlString.ID+ '</a></td></tr>');
</code></pre>
<p>before that i need to test whether this MYgrid is empty or not. how to do that with jquery.</p>
<p... | javascript jquery | [3, 5] |
3,580,471 | 3,580,472 | need to extract certain values from attribute and place them in variables | <p>In the following markup on a page I want to extract out the following and put them in seperate variables.</p>
<p>1- In the onclick attribute get the value after the "ProductID" and put it in its own variable. "ProductID"
So in this case it would be 318</p>
<p>2- In the onclick attribute get the value after the "O... | javascript jquery | [3, 5] |
185,527 | 185,528 | jQuery equivalent of PHP's strtr | <p>What is the jQuery equivalent of PHP's strtr.</p>
<p><a href="http://php.net/manual/en/function.strtr.php" rel="nofollow">http://php.net/manual/en/function.strtr.php</a></p>
<p>I would prefer the simplest possible, pure jQuery solution.</p>
<p>JS would also be a great alternative.</p>
| php javascript jquery | [2, 3, 5] |
5,997,866 | 5,997,867 | Execute a widget function in an iframe | <p>I'm trying to execute a function in an iframe from the parent page of that frame. Both are on the same domain.<br>
The function is part of a widget on the child page, and this is activated on page load.</p>
<pre><code>function(){apex.jQuery(document).apex_save_before_exit({...});};;
</code></pre>
<p>A piece of the... | javascript jquery | [3, 5] |
5,930,104 | 5,930,105 | JavaScript function "not defined" after importing jQuery | <p>I have the following (simplified) code:</p>
<pre><code><!DOCTYPE html SYSTEM "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test</title>
<script type="text/javascript" src="http://code.jquery.... | javascript jquery | [3, 5] |
4,064,199 | 4,064,200 | How to show/hide webforms ins aspnet? | <p>Hide/Close Loginform.aspx if userid/password is correct then show newform.aspx and how to create message box on asp?That will pop up Message: Login Successfull.</p>
<p>Help please..I am exploring ASP net as a Beginner. </p>
<p>Thanks..</p>
<p>How can i get the username value from loginform.aspx to newforms.aspx s... | c# asp.net | [0, 9] |
1,259,643 | 1,259,644 | Background fullscreen slideshow | <p>I'm searching for fulscreen background slideshow in any resolution. I've found solutions with fixed size. Is it possible to make slideshow with fade effect (and resize (fit) images to full screen) in background?</p>
| javascript jquery | [3, 5] |
4,612,265 | 4,612,266 | How to pass some argument and receive a response string from javascript to asp.net page and update the html document | <p>I have a drop down list which executes a javascript function (function typechanged(var)) when it is changed. Now I have to pass the var to the server, which should return a menu according to the var string, and then i have to update the div on which the drop down is located, with the new response text received from ... | javascript asp.net | [3, 9] |
1,518,050 | 1,518,051 | Starting Java Source File from Android Activity | <p>I wrote a program to work from the console in Eclipse and the terminal window in Linux. I am now transforming it into an Android app and I have the basic functionality of the Android UI done up until the point where it needs to use the logic from the Java file of the program I wrote. All of my inputs from the Java f... | java android | [1, 4] |
4,455,278 | 4,455,279 | Simple hover zoom thumbnail with jQuery | <p>I'm listing a bunch of items, each with a small thumb and some description alongside.</p>
<p>On mouseover of the thumb, I'd like a slightly larger one to display in front, close on mouseoff. The difference in size won't be much so it will probably just be the same file (thumb will be scaled down)</p>
<p>IS there a... | javascript jquery | [3, 5] |
5,086,860 | 5,086,861 | How to create session for each Tab in jquery | <p>How to create session for each tab in jQuery? </p>
<p>In my application, I have two tabs. If I create a first tab dynamically, a tab will create and some content will load. Then if I create next tab, the content of second loading properly. But again I go to first tab, the contents are not loaded fully.</p>
<p>I... | javascript jquery | [3, 5] |
2,333,751 | 2,333,752 | javascript image resize doesn't work in ie8 | <p>My company's new web layout depends on an image being 150px wide. The previous design required the images to be 125px tall. So all the images have different widths based on their width/height ratio. I put some javascript together to resize the images to fit in their space until our interns get around to sizing the i... | javascript jquery | [3, 5] |
6,003,826 | 6,003,827 | Change Rating Bar on Android | <p>I have a ratingbar in my app, and I would like when I pass the mouse over it, the rating changes</p>
<p>How can I do that ? it's possible? </p>
<p>best regards</p>
| java android | [1, 4] |
380,354 | 380,355 | How can I register a C# variable value to a Javascript variable every time an event is fired | <p>I have an event handler in C# code-behind for an .aspx page. Each time this event handler fires I want it to update a Javascript variable. I thought I could do something like this.</p>
<pre><code>int scale = (int)myObject.Scale;
Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "JSVariables", "scale=" +... | c# asp.net javascript | [0, 9, 3] |
3,836,762 | 3,836,763 | How to display timepicker dialog when radiobutton is clicked? | <p>I'm trying to display time picker dialog by using <code>showDialog(1);</code> when radio button is clicked. But i cannot display if i write onclick event for radio button. How to solv this problem? Any help is appreciated and thanks in advance...</p>
| java android | [1, 4] |
2,459,974 | 2,459,975 | how to get a full size from a page from a url | <p>is possible (in php or javascript) get a full size from a page from a url?
with all images, js, and css</p>
<p>file_get_contents just give me the size of html</p>
<p>I need create a PHP that passing a URL by parameter return me the full size of this.</p>
<p>Many Thx</p>
| php javascript | [2, 3] |
2,339,732 | 2,339,733 | Cookie problem - cookie's not defined | <p>Guys, I'm having a trouble with a cookie.</p>
<p>The error: </p>
<blockquote>
<p>"linhaOS" isn't defined.</p>
</blockquote>
<p>I wanna know if the cookie is null in the beggining of code.</p>
<pre><code>$("#pApresentacao").click(function _click(){
if ($.cookie("exibir") == null)
{
if ($("#hdLinha... | javascript jquery | [3, 5] |
5,343,790 | 5,343,791 | Build custom jQuery selection | <p>Ok anybody familiar with building your own custom jQuery selection from DOM nodes or jQuery objects?</p>
<p>For examle:</p>
<pre><code>var li = jQuery('li.someclass');
var myDiv = jQuery('#mydiv');
</code></pre>
<p>So I would like to combine those two into one <code>jQuery(object)</code> .</p>
<p>It would be nic... | javascript jquery | [3, 5] |
4,695,695 | 4,695,696 | Remove/change Internal styles sheet styles with JavaScript/jQuery | <p>I want to be able to remove/change the internal style sheets values through JavasScript. It has to be through JS because I cannot edit the html since I am using an application that does not allow me to, but I can use JS. How can I change the value for the background or remove it completely? Or is there another way t... | javascript jquery | [3, 5] |
2,578,336 | 2,578,337 | .replace() not working inside a jQuery function | <p>I don't understand why replace() function doesn't work into my jQuery function:</p>
<pre><code>jQuery(document).ready(function($){
var amount_min = <?php if($_GET['amount_min']) echo $_GET['amount_min']; else echo '0'; ?>;
var amount_min = amount_min.replace(/[^\d]/g, "");
$('input[name=amount]').va... | javascript jquery | [3, 5] |
122,705 | 122,706 | How to put image in HashMap by giving a specific url | <pre><code>private static final String picpic = "picpic";
private ArrayList < HashMap < String, Object>> myBooks;
myBooks = new ArrayList<HashMap<String,Object>>();
HashMap < String, Object> hm;
hm = new HashMap<String, Object>();
drawable=LoadImage("http://www.wauhaha.com/smar... | java android | [1, 4] |
2,286,517 | 2,286,518 | Accessing the reference of a child class from an abstract parent | <p>I have an abstract class. It contains a private class field. In one of the methods in the private class field, I need to refer to <code>this</code> of whatever child class extends the abstract class.</p>
<pre><code>public abstract class ActivityCrazy extends Activity {
private class FoolClickedButton implements On... | java android | [1, 4] |
5,928,555 | 5,928,556 | Why doesn't this simple javascript replace change the dash to slash? | <p>I have this HTML element:</p>
<pre><code><div id='4-12-2012' class='date'>blah blah blah</div>
</code></pre>
<p>And I'm binding a click event to .date, so when it's clicked, a function is called. My goal is to end up with the date (from the ID) with slashes instead of dashes:</p>
<pre><code>d = $(this... | javascript jquery | [3, 5] |
383,617 | 383,618 | jquery grabbing current div or wildcard placeholder for show/hide function | <p>i have the code below</p>
<pre><code><div id=topbar>
<a class="nav" href="#" onClick="if($('#embedding').css('display') == 'none') { $('#embedding').show('fast'); } else { $('#embedding').hide('fast'); } return false;">Show Details</a>
<div id=embedding>Content</div>
</div>
</cod... | php jquery | [2, 5] |
4,191,869 | 4,191,870 | Dynamically add some text and text boxes to existing web page | <p>I am trying to create a number of text boxes with specific captions in front of each text box, dynamically.</p>
<p>I want the actual jquery code to create the textboxes and labels to lie within the following for loop---</p>
<pre><code>function addelements(){
jQuery('<form action="test" id="data-form" name=... | javascript jquery | [3, 5] |
2,151,984 | 2,151,985 | How do I create a dynamic set of slider bars | <p>I'm well-versed in HMTL/CSS but lean heavily on ready-made jQuery solutions to accomplish some more advanced interactions. I'm looking to create a set of sliders similar to what is done on the <a href="http://www.humblebundle.com/" rel="nofollow">Humble Indie Budle</a> payment distribution section. I need several sl... | javascript jquery | [3, 5] |
1,140,815 | 1,140,816 | can jquery change a jquery-element to a normal dom-element , | <p>cauz i have to use a normal dom-element ,</p>
<p>the dom-element is like this : document.getElementById('a') or document.createElement('div')</p>
<p>so my mean is change $('#a') to document.getElementById('a')</p>
<p>can jquery do this ??</p>
<p>thanks</p>
| javascript jquery | [3, 5] |
5,330,630 | 5,330,631 | JQuery Variable to PHP session | <p>GoodDay! Is there a solution to assign a Javascript value to PHP Session.?</p>
<pre><code>var radioVal = $(this,".margin_left25").val();
</code></pre>
<hr>
<pre><code>$_SESSION['value'] = radioVal;
</code></pre>
| php javascript jquery | [2, 3, 5] |
492,669 | 492,670 | Array in jQuery? | <p>How to deploy array in jQuery and java script?
i need to explore in this topic? Can any one help me? </p>
| javascript jquery | [3, 5] |
2,197,027 | 2,197,028 | javascript confirm dialog not working properly | <p>i've been trying to get a confirm box to work, i am using php and jquery to make a confirm box appear when clicking on a delete link, actual code :</p>
<pre><code>$(document).ready(function(){
if (jQuery("a.delete-link").length > 0) {
$("a.delete-link").bind("click", function(){
return co... | php javascript jquery | [2, 3, 5] |
3,065,298 | 3,065,299 | Help with js function explanation - Why $this = $(this)...? | <p>A user called "mu" as provide me the following answer that I really like.
However, I do have some questions here, and I hope anyone could help me out.</p>
<p>Given the following:</p>
<pre><code>function() {
var $this = $(this);
$this.data('orig', $this.html()).html('<a href="blabla.org">go h... | javascript jquery | [3, 5] |
4,981,481 | 4,981,482 | Android: Null Pointer Exception at Text View | <p>Here is a code for which I face the Exception</p>
<pre><code>public class SHOSuper extends Activity{
String officerName;
String arr[];
String[] offN;
public void onCreate(Bundle savedInstanceState) {
try{
super.onCreate(savedInstanceState);
final TextView tv;
tv=(TextView)findViewById(R... | java android | [1, 4] |
3,631,069 | 3,631,070 | Category in which Programing languages like Perl, JavaScript ,C++ and Java fits the best | <p>I am making my CV these days and due to that i very basic question came in my mind ,
i have good enough experience with Java and C++, while i am learning and working on Java script , PHP, Mysql, HTML and XML these days..
My question is how can i categorize these languages with best heading Like Object Oriented Progr... | java php | [1, 2] |
4,343,245 | 4,343,246 | How can I show a loading image during AJAX request? | <p>I am loading another page in to a <code>div</code> with the help of this jQuery code: </p>
<pre><code>$('#maildiv').load('reports/mail_report.php');
</code></pre>
<p>The load is taking some time. Meanwhile I want to show a loading image. When the file message is loaded the loading image should be hidden. </p>... | javascript jquery | [3, 5] |
3,274,803 | 3,274,804 | Voting box (plus/minus, not star rating) | <p>I'm looking for a voting script/widget (preferably jQuery), but not a star rating one, one with +1 and -1 options like this (admire my profesionnal MSPaint skills ^^) :</p>
<p><img src="http://i.stack.imgur.com/D47pv.png" alt="alt text"></p>
<p>Anyone know about one ?</p>
<p>Thanks a lot !</p>
| javascript jquery | [3, 5] |
3,851,851 | 3,851,852 | XML Schema Validation in Android | <p>I have created an XML and i want to validate with schema i.e,
xsd file but there are no direct classes provided by android for the
same if i am not wrong ......... and there is an external jar named
jaxp1.3 which doesnt allow me to compile the code is it because the
bytecode of desktop and android are different?... | java android | [1, 4] |
3,443,644 | 3,443,645 | How to parse a web use javascript to load .html by Python? | <p>I'm using Python to parse an auction site.</p>
<p>If I use browser to open this site, it will go to a loading page, then jump to the search result page automatically.</p>
<p>If I use urllib2 to open the webpage, the read() method only return the loading page.</p>
<p>Is there any python package could wait until al... | javascript python | [3, 7] |
4,486,636 | 4,486,637 | window resize determine controls parent is smaller or greater | <p>I need a script to determine when the parent element width of the conrol is resized. This is determined on the windows resize event all i need is to know weither the parent is smaller or larger than before instantaneously. please leave a working example - would be apreciated thanks</p>
<p>JavaScript:</p>
<pre><cod... | javascript jquery | [3, 5] |
989,817 | 989,818 | jquery .find() not working | <p>This code should clear the checkboxes when I click the button. It works if I remove the <code><form></form></code> tags, but I thought <code>.find()</code> was supposed to find all descendants?</p>
<pre><code><script type="text/javascript">
$(document).ready(function(){
var clearCheckboxes... | javascript jquery | [3, 5] |
49,212 | 49,213 | Alternative to jQuery ready() for detecting that the page anchor in the URL changes | <p>Does anyone know how to get a page load event to fire if the page anchor in the URL changes, i.e., going from </p>
<pre><code>http://mywebsite.com/#test1
to
http://mywebsite.com/#test2
</code></pre>
<p>when using the Back button?</p>
<p>I tried the code at the bottom (the <code>history.navigationMode</code> li... | javascript jquery | [3, 5] |
1,605,489 | 1,605,490 | Access View State in ashx file | <p>I am working on a project, i have on ashx handler file,
I want to make some <code>ViewState</code> data in my ashx file and then check it on .cs file</p>
<p>How can i achieve this as i can't access <code>ViewState</code> object in my ashx file</p>
| c# asp.net | [0, 9] |
3,514,154 | 3,514,155 | how to get list of javascript methods used/called in an individual page? | <p>Is there a way in javascript or any tool through which I can find list of javascript methods used/called in an individual page</p>
| javascript jquery | [3, 5] |
3,131,520 | 3,131,521 | Calling PHP from Python | <p>Is it possible to run a PHP script using python?</p>
| php python | [2, 7] |
3,379,594 | 3,379,595 | How to close browser window in c# | <p><strong>c#</strong></p>
<pre><code>protected void btnSave_Click(object sender, EventArgs e) {
ScriptManager.RegisterStartupScript(this, this.GetType(),
"closescript", "closeWindow();", true);
}
</code></pre>
<p><strong>JavaScript</strong></p>
<pre><code>function closeWindow() { ... | c# asp.net | [0, 9] |
2,840,036 | 2,840,037 | 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] |
1,173,768 | 1,173,769 | Store and view list of whitelisted contacts | <p>What would be a simple way to store a list of contacts? I don't need to store much, just a unique identifier for each contact.
I'm picking my contacts by Intent.ACTION_PICK</p>
<p>Could this be done using build in contact groups? Can I create an invisible group and add contacts to that group?</p>
<p>A database and... | java android | [1, 4] |
1,526,749 | 1,526,750 | In eclipse showing response from url | <p>I am very new to programming and with alot of help from people on this site I have been able to make alot of progress. This time I am kinda stuck - I have been able to make a login screen and make a call but nothing shows back once the call is made.</p>
<p>If anyone can help I would appreciate it, again I am very n... | java android | [1, 4] |
1,144,831 | 1,144,832 | Mobile site detection server side vs client side | <p>Can anyone recommend the best way to detect mobile device accessing a site - we want to re-direct to a mobile version rather than restyle the existing page due to CMS restrictions.</p>
<p>We also need the option to be able to return to the full site on mobile if requested.</p>
<p>We have a .net server, but aren't ... | javascript jquery asp.net | [3, 5, 9] |
1,726,993 | 1,726,994 | JQuery Drag and Drop Linking | <p>I am trying to make Jquery drag and drop app. I want to link each image to a droppable frame. I can't use IDs, so what is a better way to write it to check to see if they are the same?</p>
<p>EDIT: Here is the code</p>
<pre><code>function handleDropEvent( event, ui ) {
var slotNumber = $(this).attr('id');
... | javascript jquery | [3, 5] |
763,315 | 763,316 | Scrolling in a view containing a ListView (Android) | <p>In one of my activities I am showing certain information and at the end I have a <code>ListView</code>.
So my layout looks a bit like:</p>
<pre><code><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:padding="30... | java android | [1, 4] |
1,513,061 | 1,513,062 | Check Listbox items exist using jQuery | <p>I have 2 listboxes (Items moves between them using jquery).Suppose item1 is already selected. Then if I select item1 and item2 and item3 together, only item2 and 3 should inserted in second listbox.</p>
<p>I m not removing item from Listbox1. I need only a checking whether one of the selected items exists in the Li... | jquery asp.net | [5, 9] |
156,970 | 156,971 | inline to handle url redirect | <p>I am migrating a site from siteA.domain.com to siteB.domain.com. All the page paths remain the same. The problem is it's a gradual migration, and not every path is being migrated at the same time. So what I need to do is check the path the user is going to, and if it's a member of a list of migrated sites, then r... | c# asp.net | [0, 9] |
5,928,148 | 5,928,149 | jQuery 18n plugin | <p>I've got a jQuery i18n plugin init:</p>
<pre><code>jQuery.i18n.properties({
name : 'appsConstants',
path : '/gadgets/',
mode : 'both',
language : 'en'
});
</code></pre>
<p>How to take out the language variable into browser line like a parameter?</p>
| javascript jquery | [3, 5] |
66,603 | 66,604 | Variable scope issue with javascript function | <p>I am trying to create a function with spin.js. The function loads the spinner, then if it is called again with it argument, then it stops the spinner. I can't get the variable scope right. So when I call the function to stop, I get an undefined on the <code>submitSpinner</code>.</p>
<p><a href="http://jsfiddle.net/... | javascript jquery | [3, 5] |
1,084,492 | 1,084,493 | functions, variable and jquery | <p>I have 8 search filters user can choose. When user clicks on filter it opens options for this filter. When user clicks out, the function <code>hideFilterSearch()</code> is triggered. I have problem about understanding of scope for variable formData (see below).</p>
<pre><code>$(document).ready(function() {
var ... | javascript jquery | [3, 5] |
3,541,111 | 3,541,112 | How does one properly set an onclicklistener within another class? | <p>I have an activity which does all the setup process, i.e. creating the initial view and the OnClickListener, which then at some point creates an object passing the activity and OnClickListener as parameters. The object then does it's own setup, changing to view and setting TableRows with the OnClickListener. I run i... | java android | [1, 4] |
5,982,038 | 5,982,039 | dynamically add a name anchor tag within dynamic content page | <p>I have a page that lists over 100 items and I need to dynamically add a name="" tags to the beginning of each new section of items that starts with the next alphabet.</p>
<p>For example:</p>
<pre><code><a name="a"></a>
<h1>Amazon River</h1>
<h1>Arrow Heads</h1>
<a name="b"&... | php javascript | [2, 3] |
3,838,463 | 3,838,464 | How to force Jquery to trigger the mouseenter event in Firefox the same way as in IE | <p>i'm using the autocomplete plugin from JQuery. When typing, the menu with the suggestions will be shown. If the mouse cursor hovers over the menu, in firefox the menuitem will be selected WITHOUT moving the mouse. In IE and Chrome you have to move the mouse first. </p>
<p>I found out, that the reason is a different... | javascript jquery | [3, 5] |
785,649 | 785,650 | How to deselect radio button when another radio button is selected? | <p>I was wondering if there is a way where i have i 2 groups of radio button
eg </p>
<p>group 1</p>
<pre><code><input type="radio" name="things" value="car" /> car
<input type="radio" name="things" value="car" />pen
<input type="radio" name="things" value="car" />TV
</code></pre>
<p>group2</p>
... | javascript jquery | [3, 5] |
4,944,586 | 4,944,587 | How can i restart toggle when another button is clicked? | <p>i have 2 buttons each of them has toggle function with 2 function inside the toggle.
i have a problem that i want the toggle to be restarted if the user didn't click on the same button twice for example </p>
<p>if the user clicks on X first function will fires if he clicks on Y and then re-click on X the first func... | javascript jquery | [3, 5] |
513,691 | 513,692 | TextChanged event only fires when I put my cursor in the textbox and change the text | <p>I have a TextChanged Even on a textbox and when I enter data into it, it updates another textbox which in turn is supposed to fire a TextChanged Event, but it is not firing until I put my cursor in the TextBox. Is there a solution to this?</p>
<p>Code for updating the Extended Price when Qty Changes:</p>
<pre><co... | c# asp.net | [0, 9] |
1,795,045 | 1,795,046 | jquery handling key combinations | <p>I know that when <code>keypress</code> event occure than we can access which key is pressed by event object property <code>keycode</code>, but i want to now how we can handle key combinations through jQuery like <code>cntrl + D</code> ..etc? </p>
<p>In code i want to do something like :</p>
<pre><code>$(document).... | javascript jquery | [3, 5] |
1,450,768 | 1,450,769 | Monitor Change in MySQL DataBase | <p>So , i have a MySQL DataBase , from my Html/Php Page , i can Access it and read somes Values and show it in the web Page , </p>
<p>my Problem :</p>
<p>On the other side , an Android App will also Modify the DataBase , and somes Values , so i have to click on Refresh Button from the Web Browser where the Data are S... | php android | [2, 4] |
4,480,455 | 4,480,456 | Event triggering not completing | <p>I have divs which can be toggled with an arrow anchor item. Once you click, the div shows it content or hides it (mantaining the header where the anchors and title are).</p>
<p>Next to the toggler, I have an icon which is supposed to delete the div but I wanted to make that if the dive is toggle_closed it fires the... | javascript jquery | [3, 5] |
438,701 | 438,702 | jquery .change not triggered in ie when using .val in a .live('keyup', function() | <p>I'm trying to do an input that only accept digit. I can have some dynamic input so I use the <code>.live</code> function.</p>
<p>On my <code>.live('keyup')</code> function I'm adding some "," which depends of the input length.
Here's a part of my code on an input (not dynamic):</p>
<pre><code> $(document).ready(fu... | javascript jquery | [3, 5] |
5,470,112 | 5,470,113 | Bind data from excel sheet to repeater or GridView | <p>What is efficient & simplest way to bind data from excel sheet to repeater or GridView.</p>
| c# asp.net | [0, 9] |
4,750,992 | 4,750,993 | Subbing in Variables into Jquery | <p>I have the following jQuery script running on my page:</p>
<pre><code><script type="text/javascript" charset="utf-8" src="{{ STATIC_URL }}js/raty/js/jquery.raty.min.js"></script>
<script type ="text/javascript">
jQuery(document).ready(function($) {
$('.yourrating').each(function(index){
... | javascript jquery | [3, 5] |
5,031,827 | 5,031,828 | JQuery <button> with onclick() as well as onserverclick(). Not possible? | <p>I have a form with my own JQuery validation.
When a JQuery <code><button id=btnRegister type=submit></code> is clicked, my validation code is invoked and if invalid, form does not submit. All works great.</p>
<p>I have another <code><button id=btnSave></code> on this form.
I would like btnSave to fire a... | asp.net jquery | [9, 5] |
3,986,197 | 3,986,198 | Does a motion event contain information of the delivered view | <p>Is there any way to determine which motionEvent is being delivered to which View for example i have this piece of code how can i correlate the motionEvent to a certain view:</p>
<pre><code> public boolean dispatchTouchEvent(MotionEvent event) {
// On touch.
appendL... | java android | [1, 4] |
1,226,240 | 1,226,241 | jQuery Galleria plug-in: Make auto-play? | <p>I am using this <a href="http://kranichs.com/johncarder/gallery2" rel="nofollow">jQuery plugin</a></p>
<p>It is very nice, but I can't seem to figure out how to get it to auto-play. (automatically transition to the next image at an interval)</p>
<p>Has anyone else gotten this to do that?</p>
| javascript jquery | [3, 5] |
5,104,252 | 5,104,253 | ASP.net page_load doesn't detect session | <p>I have a problem with using <code>session</code> variable in the <code>page_load</code>. I have a page (<code>members.aspx</code>) which is a members area. </p>
<p>If the user isn't <code>logged</code> in, it will display a form asking them to login. The form submits their details, checks if ok then sets <code>sess... | c# asp.net | [0, 9] |
4,827,551 | 4,827,552 | Setting TreeViewNode to selected on PageLoad | <p>I have a tree view that I'm dynamically loading on the PageLoad event. Here is my tree view and data source:</p>
<pre><code><asp:TreeView ID="tv" runat="server" DataSourceID="xds"
SelectedNodeStyle-ForeColor="Red" NodeStyle-ForeColor="Black">
<DataBindings>
<asp:TreeNodeBinding Dat... | c# asp.net | [0, 9] |
5,072,118 | 5,072,119 | Does Javascript have associative arrays? | <p>Does Javascript have associative arrays? Please explain.</p>
| javascript jquery | [3, 5] |
1,777,426 | 1,777,427 | Combo Box Asp.net having unwanted behaviour | <p>I have a control that extends the ComboBox object. It
updates the selected item based on what the user enters in
the text area.</p>
<p>In the OnLeave event of the combobox, the selected index
is set to the proper item. However, when accessing its
selectedindex later it has reverted to the previous
value. The select... | c# asp.net | [0, 9] |
750,052 | 750,053 | Client side showing , hiding is risky | <p>I have a div which contains a button .I am initially setting div display:none & depending upon the user rights i am showing it to user using javascript.</p>
<pre><code><div id="mydiv" style="display:none">
<asp:Button id="btn" runat="server"/>
</div>
PageMethods.GetRights(onsuccess);
fun... | javascript asp.net | [3, 9] |
5,352,886 | 5,352,887 | Generating event when user clicks in textarea with disabled=true, to tell them they can't modify it | <p>I want to tell the user they can't modify a textarea that's been disabled for update, when they try to click in it. How can I tell them why it is disabled in this case, e.g. with an alert? </p>
<p>The problem is/was, when I give the textarea a disabled attribute, the events for it don't fire off either (at least ... | javascript jquery | [3, 5] |
1,598,448 | 1,598,449 | background to panel in asp.net | <p>I m having a imagecontrol in asp.net which has only panel,
i have to set the panel's background through code,
i gave the file path of the image which it has to set
like this,</p>
<p>this.Panel1.BackImageUrl = @"D:\Backup\deepasundari\Asp.net\PhotoSlideShow\PhotoSlideShow\Sample Pictures\15flowers1024.jpg";</p>
<p... | c# asp.net | [0, 9] |
3,915,051 | 3,915,052 | Uncaught TypeError: Cannot call method 'push' of undefined | <p>I am getting this error on the console in Chrome as soon as the page loads. I really don't get what's wrong cause I've tested the PHP side and there doesn't seem to be anything wrong with it. It was working before as well but now I don't know what's changed cause all I've done is changed my Models and it works for e... | php javascript jquery | [2, 3, 5] |
1,106,598 | 1,106,599 | Create a constructor function with modular pattern | <p>I have heard lot about <code>Javascript: Module Pattern</code>. But most of those articles explain how to make static classes i.e when we don't have to deal with instances and we want to share the object created modular pattern. Can some one explain me this pattern with constructor functions say this example:</p>
<... | javascript jquery | [3, 5] |
93,386 | 93,387 | javascript closure not working as it should | <p>see the first code:</p>
<pre><code> var count = 0;
(function addLinks() {
var count = 0;//this count var is increasing
for (var i = 0, link; i < 5; i++) {
link = document.createElement("a");
link.innerHTML = "Link " + i;
link.onclick = function () {
count++;
alert(count);
... | javascript jquery | [3, 5] |
486,315 | 486,316 | Stop reload when using window.location | <p>On click of a button I am changing <code>window.location.href</code>, i.e. I am adding one query string parameter. This causes the page to be refreshed (as I am changing <code>window.location.href</code>).
I want to know is it possible to stop this page refresh and append the query string in the url?</p>
| javascript jquery | [3, 5] |
1,635,238 | 1,635,239 | Changes have no impact on loaded script | <p>After I have changed a JavaScript file I don't get the changes in <code>*.js</code> dynamic.
When I debug I see that no changes had any impact on the <code>*.js</code> dynamic.</p>
<p>What should I do to get the changes to make any impact?</p>
<p><strong>Background</strong></p>
<p>I have changed the page with a c... | javascript jquery asp.net | [3, 5, 9] |
1,644,978 | 1,644,979 | whats the pros/cons with working with PHP as opposed to asp.net or the whole .net framework? | <p>I'm currently working with php but everyone is telling me that asp.net is so much better. What is the real story?</p>
| php asp.net | [2, 9] |
586,886 | 586,887 | Signed/unsigned situation when converting c# to java | <p>I'm currently converting the following piece of code to java from c#:</p>
<pre><code> public static byte MakeCS(byte[] arr)
{
byte cs = 0;
for (int i = 0; i < arr.Length; i++)
{
cs += arr[i];
}
return cs;
}
</code></pre>
<p>My naive conversation is ... | c# java | [0, 1] |
4,824,532 | 4,824,533 | is there a security issue when using Jquery to develop asp.net web applications | <p>I'm new to web applications. I have developed a web application using ASP.net. After hearing about jquery and going through some examples, I changed the existing application and used jquery to do most of the ajax work. On the server side I used html handlers for db connections and data processing.</p>
<p>Because I'... | asp.net jquery | [9, 5] |
4,308,959 | 4,308,960 | How to add a script element in an iframe for jQuery | <p>I have a parent document and iframe with some JavaScript code to add a <code>script</code> element in an <code>iframe</code> bellow:</p>
<pre><code>var script = window.document.createElement('script');
script.src = '/jquery.myPlugin.js';
window.frames['test'].document.head.appendChild(script);
</code></pre>
<p>How... | javascript jquery | [3, 5] |
1,518,300 | 1,518,301 | How to add class to a collection of elements sequentially? | <p>Im trying to add a class to a each element in a collection. I want add a classs to the elemnt then wait a sec or two then add the class to the next one in the collection. </p>
<p>But when I use this code it just adds the class to each one at once. </p>
<pre><code>for (var i = 0; i < article.length; i++) {
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.