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,900,337 | 1,900,338 | jQuery.extend and jQuery.fn.extend | <p>I am making some test with <code>extend</code> and I got a little puzzled after some observations I made. First observations:</p>
<pre><code>console.log($.extend === $.fn.extend); // trure
// and since $ === jQuery then ...
console.log(jQuery.extend === jQuery.fn.extend); // true
</code></pre>
<p>So far so good, i... | javascript jquery | [3, 5] |
3,128,435 | 3,128,436 | How should i get some value from javascript object and check for null | <p>I am getting the element as</p>
<pre><code> var minPricePerInputField = $("input#A"+indexNr);
</code></pre>
<p>The element can be present also or not also. I am getting some [object Object] thing. I have no idea what is this. I am receiving this [object Object] when the element is not there.</p>
| javascript jquery | [3, 5] |
1,649,805 | 1,649,806 | How to assign all attributes of one div to another div | <p>I need to assign the position, top, left, height, width & border of one div to another div. Since I have multiple div's that I need to operate upon, I am looking for an elegant solution to this using jQuery.</p>
<p>Kindly keep in mind that the two div's have different ID's and I'd like to keep it that way.</p>
... | javascript jquery | [3, 5] |
1,624,297 | 1,624,298 | how to send string value from php page to java script page | <p>I am storing a string value in one php variable.I want to send this value to a function on image click. Here is code</p>
<pre><code>userfn.php
$actvitycode = "AG001";
<img src="phpimages/addicon.gif" onclick="showData('.$actvitycode.')"></img>
getdata.js
function showData(actcode)
{
alert(actcode... | php javascript | [2, 3] |
4,953,935 | 4,953,936 | ASP.NET security | <p>I'm currently converting our company database application from VB to ASP.NET. This is pretty much my first ASP.NET application, and I had a question about security. I would like some users to have the ability to add or edit data, while other users can only view and print reports. Now, as I understand it, in ASP.NE... | c# asp.net | [0, 9] |
3,670,142 | 3,670,143 | Disable Browser's Minimize button using javascript | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/4754823/how-to-disable-minimize-maximize-button-in-the-browser">How to disable minimize, maximize button in the browser?</a> </p>
</blockquote>
<p>I am using php and javascript.I am using IE, Please tell me how ... | php javascript | [2, 3] |
3,585,888 | 3,585,889 | How to put dropdownlistbox in GridView column when user push "Edit" Link? | <p>When user start editing row in gridview he see next:
<img src="http://i.stack.imgur.com/EzIIu.png" alt="enter image description here"></p>
<p>Is it possible to put dropdownlistbox with data from db in editbox?</p>
<p>GridView get data from DB. Autogeneratecolumns = true.
My GridView take data from different tables... | c# asp.net | [0, 9] |
1,987,504 | 1,987,505 | How can I get a username from LDAP? | <p>I'd like to ask you how can i dinamically get a username from ldap. As you can see below, i entered the username 'smith2'</p>
<pre><code>$_SERVER["REMOTE_USER"] = 'smith2';
$param = $_SERVER["REMOTE_USER"]
</code></pre>
<p>And I can get his first name, like this:</p>
<pre><code> $ldap1 = new ldapl;
$fname=$l... | php javascript jquery | [2, 3, 5] |
4,924,702 | 4,924,703 | How to pass data from Java applet to client side python script? | <p>I have a python script which does various number-crunching jobs and now need to put a graphical front-end on it (a molecular editor in which a user draws a compound to pass to the script) to allow others in the lab to use it more easily. The available editors are Java applets, standalone Java or written in JavaScri... | java javascript python | [1, 3, 7] |
5,703,456 | 5,703,457 | Problems with a method imported from a SDK library | <p>I am new to C# and ASP.NET and I have a problem with a library that I am importing. I have a small application that is going to convert a sound file in a format that is proprietaty to the vendor and they have an SDK that provides a method to make the conversion from their extension to .WAV format.</p>
<p>The issue ... | c# asp.net | [0, 9] |
5,556,619 | 5,556,620 | How to use jQuery WYSIWYG HTML editor in ASP.net page | <p>I am working in a blog application , i want to integrate the HTML editor of jQuery in ASP.net application.Although i have much easier option of using ASP.net AJAX toolkit editor , but it is not lightweight, so i want to go with jQuery HTML editor.</p>
<p>Can you suggest some tutorial which helps to do so.</p>
<p>T... | jquery asp.net | [5, 9] |
3,464,662 | 3,464,663 | How to check over what element my mouse is when I lose focus on input element | <p>Let's say I have this:</p>
<pre><code><body>
<input type="text" onblur="myFunction()" />
<... rest of page ...>
</body>
<script type="text/javascript">
function myFunction()
{
//this function alerts over what element your mouse is when the input loses focus
}
&... | javascript jquery | [3, 5] |
2,633,823 | 2,633,824 | How can I conduct a post via Javascript from jQuery? | <p>I want to conduct a <code>POST</code> request via jQuery.</p>
<p>Say I have four Javascript variables: <code>var1</code>,<code>var2</code>,<code>var3</code>,<code>var4</code> and a endpoint of URL.</p>
<p>How would I <code>POST</code> via jQuery (I would rather not be using Ajax for the sake of this example).</p>
| javascript jquery | [3, 5] |
1,003,964 | 1,003,965 | Downloading a file from server and save it in client | <p>I am currently developing an ASP.net application, where I generate a word document in server and I want to save it in client machine who access that feature with out user interactions. How can I download it and save it in client machine, using Javascript?</p>
| c# javascript asp.net | [0, 3, 9] |
1,171,645 | 1,171,646 | $(window).load(function()-how it works with FF | <p>I have a jquery code.</p>
<pre><code>$(window).load(function() {
document.title = $("#myid").text(); //not working in FF
});
</code></pre>
<p>Here I have used $(window).load(function() because in the #myid I am getting value through another javascript, if I use ready(), its giving me error. so I am first load... | javascript jquery | [3, 5] |
1,444,434 | 1,444,435 | What is the best way to convert an existing php class into Java? | <p>I have been tasked with converting several php classes into java classes, which is quickly becoming a nightmare for me. I understand the basic language structure, it being similar to C. It is all of the function calls and class calls that seem to go nowhere and the fact that a var can be declared in the <strong>!mid... | java php | [1, 2] |
1,973,378 | 1,973,379 | jQuery / Javascript execution order? | <p>I'm trying to exactly figure out the execution order of what is going on here. I'm using jquery to retrieve new data, and I get occasional irregularities. How I have its current work flow order should be something like this:</p>
<ol>
<li>Onload - get() function (retrieves data for both divs)</li>
<li>The move() fun... | php javascript jquery | [2, 3, 5] |
1,649,264 | 1,649,265 | Is it possible to change form attr name dynamically? | <p>I have one form which it's dynamic depends on parameters. the form name attribute should be different for each dynamic built form. Is there a way how to change form name attribute?
or sufficient work around?</p>
<p>this way is not working or I'm missing something</p>
<pre><code><form action="get" name="oldname"... | javascript jquery | [3, 5] |
2,552,435 | 2,552,436 | What's wrong with this Intent? | <p>What I am trying to do is, when the user chooses this option, my Android app runs an intent. The intent calls for the camera of the Android device, and the camera takes a picture, and then saves the file into the directory named posense.</p>
<pre><code>path = Environment.getExternalStorageDirectory().getName() + Fi... | java android | [1, 4] |
2,684,041 | 2,684,042 | Request for another page from aspx site | <p>it is possible to do a request for another page on internet from page_load? I mean if it is possible to aquire markup code with informations from another page and display them on my aspx site? For example something like this:</p>
<pre><code>protected void Page_Load(object sender, EventArgs e)
{
UnknownType anothe... | c# asp.net | [0, 9] |
2,760,378 | 2,760,379 | Jquery UI tabs disable AJAX functionality for some tabs | <p>How is it possible to disable AJAX functionality for a tab or two when using jQuery UI tabs?</p>
<p>So after clicking the user is taken to an URI defined by the href attribute of a link. Right now, the default behaviour is that the content from the the external URI is loaded via AJAX.</p>
| javascript jquery | [3, 5] |
2,811,108 | 2,811,109 | Jquery last click | <p>How i can determine the last clicked id ?!
Because if i use :</p>
<pre><code> if(clicks > 1){
var lc = event.target.id; // Last Clicked event
}
</code></pre>
<p>It will return the current button clicked id
I have something like this :</p>
<pre><code>$('#menu).click(function(event) {
clicks++;
... | javascript jquery | [3, 5] |
4,041,476 | 4,041,477 | find all youtube links with js (jquery) | <p>Say there is a div that has content and a youtube link. I want to grab that youtube link and embed it.</p>
<pre><code><div id="content"><p>Here is a cool video. Check it out: http://www.youtube.com/watch?v=oHg5SJYRHA0</p></div>
</code></pre>
<p>I want to grab the link and replace it with ... | javascript jquery | [3, 5] |
1,552,499 | 1,552,500 | Accessing C# variable in javascript | <p>I'm going to design a website for DMS (educational domain) in C#.NET, which I am new to. </p>
<p>In one of my ASPX pages, I want to disable a menu, which is in JavaScript, according to <code>accessright</code>. </p>
<p>The <code>accessright</code> stored in database table <code>login</code> as one attribute in SQL... | c# asp.net javascript | [0, 9, 3] |
1,474,573 | 1,474,574 | Period (.) in dataset field name - Cannot bind to repeater | <p>I have a dataset that i am binding to a repeater. The <code>GetXML()</code> of the dataset looks like this:</p>
<pre><code><NewDataSet>
<Table1>
<Company.Date>03/22/2009</Company.Date>
</Table1>
</NewDataSet>
</code></pre>
<p>The aspx looks like this:</p>
<pre><code><%... | c# asp.net | [0, 9] |
4,979,993 | 4,979,994 | How to check whether JavaScript is enabled in client browser using Java code | <p>can anyone help me in trying to check whether JavaScript is enabled in client browser using Java code.</p>
<p>Thanks in advance</p>
| java javascript | [1, 3] |
956,314 | 956,315 | IDE Like interface with jQuery (Resizing divs) | <p>I am planning to develop a site which will have interface very similar to IDE</p>
<p><img src="http://i.stack.imgur.com/mTr7D.png" alt="alt text"></p>
<p>I was wondering if there is a jQuery plugin which allows the resizing of divs (horizontal / vertical based on settings) or any ideas on what would be the best ap... | javascript jquery | [3, 5] |
1,443,690 | 1,443,691 | Java/Android - Search ArrayList<HashMap<String, String>> for matching key -> value | <p>I have an ArrayList of HashMaps, and I have the key and value of one HashMap that I'd like to use to match the value of another HashMap found at a different position..</p>
<p>For example:</p>
<pre><code>1- [<key1, val1>, <key2, "some value">, <key3, val3>]
2- [<key1, val1>, <key2, val2&... | java android | [1, 4] |
2,513,066 | 2,513,067 | using the click event to fade in and fade out hidden divs | <p>I am currently trying to learn the fundamentals of jquery and would love some advice on how to achieve the following.</p>
<p>When I click on the 'Drop down' link a hidden list of links is faded in, when I click on any part of the page except the #innerList tag then the hidden list fades out or if I click on one of ... | javascript jquery | [3, 5] |
1,567,249 | 1,567,250 | How to hide check all, clear all checkbox | <p>I am having check box in the column header. The function of this is to check or uncheck all the check boxes in that column.If the row check box is checked and say delete, that row can be deleted from the dataTable.</p>
<p>If the row object is used in some other table as a foreign key i put '-' in that row instead o... | javascript jquery | [3, 5] |
4,944,218 | 4,944,219 | Something similar to checkstyle for C++ to be working on Linux | <p>I am looking for some tool to help with C++ like <code>checkstyle</code>, which is for JAVA. It should be available for LINUX.</p>
<p>Are you guys aware of any?</p>
| java c++ | [1, 6] |
4,628,088 | 4,628,089 | How to call JavaScript function from a PHP printed button | <p>What a weird question. If anyone has a better title for this, please go ahead and edit it; I can't think of what else to call it. I am printing a button from PHP using <code>echo</code>. The purpose of a button is to show a form by calling a JavaScript function that uses <code>document.getElementById()</code> to cha... | php javascript | [2, 3] |
1,577,500 | 1,577,501 | Including a file in json_encode() | <p>Thsi does not seem to work:</p>
<pre><code>$msg="Your changes have been saved successfully";
$view=include('application/view/admin/cms/_slides-current.php');
$return_array=array('success'=>true, 'msg'=>$msg, 'view'=>$view);
echo json_encode($return_array);
</code></pre>
<p>The array needs to be passed ... | php jquery | [2, 5] |
2,840,912 | 2,840,913 | Dynamically generated Button click not getting called? | <p>I have associated a Button ID while generating Buttons dynamically and created a Button event handler as follows:</p>
<pre><code>btn.Click += new EventHandler(btn_Click);
</code></pre>
<p>Button Click event:</p>
<pre><code>protected void btn_Click(object sender,EventArgs e)
{
Button b = new Button();
b = ... | c# asp.net | [0, 9] |
817,008 | 817,009 | ReferenceError: function is not defined when using onclick | <p>I set up an anchor tag using javascript so that that <code>onclick</code>, I call a function <code>showSavingsEasterEgg</code> and pass it a value. The problem I am getting is that I'm not referencing my function correctly:</p>
<p><code>ReferenceError: showSavingsEasterEgg is not defined</code></p>
<p>I've tried m... | javascript jquery | [3, 5] |
3,982,047 | 3,982,048 | Getting relative image src with jQuery | <p>I've got image tags that look like this:</p>
<pre><code><img src="/path/to/my/image.jpg" />
</code></pre>
<p>But when I access the src bit using jQuery, jQuery gives me back:</p>
<pre><code>http://example.com/path/to/my/image.jpg
</code></pre>
<p>This is causing problems in some comparisons I'm doing. I do... | javascript jquery | [3, 5] |
2,908,675 | 2,908,676 | convert image to byte[] c# and get image back in android | <p>I have the following code in c# which convert image to the byte[]</p>
<pre><code>MemoryStream memory = new MemoryStream();
bitmap.Save(memory, System.Drawing.Imaging.ImageFormat.Jpeg);
</code></pre>
<p>now i want to get the image back in the android, what should i do ?</p>
| c# java android | [0, 1, 4] |
2,542,761 | 2,542,762 | save files on server | <p>I am developing a website for the project on of my course.this is a system with a lot of user and <strong>each user can upload files on server</strong>. now i have two way for implementation that:</p>
<ol>
<li>create a folder with name files and upload files in that and retrieve from that.</li>
<li>each user have ... | c# asp.net | [0, 9] |
1,655,535 | 1,655,536 | Refactoring if-else statements checking for different file extensions | <p>I have this piece of code which i feel could be cleaned up ( i could be wrong) but i wanted to see if anyone has a suggestion how i can change this to be "better"</p>
<pre><code>string getExt = Path.GetExtension(DocumentUNCPath.Text);
var convertFileId = Guid.NewGuid();
var convertFilePath = @"c:\te... | c# asp.net | [0, 9] |
1,515,936 | 1,515,937 | asp.net :: J query :: add new element using J query | <p>I append new table cell to the page using c# and Jquery:</p>
<p>this code is in a web handler from that i called it from JQuery event :</p>
<pre><code>sb.Append("<td style=width: 5%; align=center>" + " <input id=cbSelect"+dt.Rows[i]["FileID"].ToString()+
" type=checkbox name=cbSelect"... | c# javascript jquery asp.net | [0, 3, 5, 9] |
4,723,968 | 4,723,969 | How can I determine the direction of a jQuery scroll event? | <p>I'm looking for something to this effect:</p>
<pre><code>$(window).scroll(function(event){
if (/* magic code*/ ){
// upscroll code
} else {
// downscroll code
}
});
</code></pre>
<p>Any ideas?</p>
| javascript jquery | [3, 5] |
5,035,067 | 5,035,068 | jQuery UI Tabs loading specific link within tab | <p>I want to load only links within a certain div inside the tab, otherwise it should just go to the actual link.</p>
<p>Current the code i use loads all links inside the content in the same tab</p>
<pre><code><script type="text/javascript">
$(function(){
$('#tabs').tabs({
load: function... | javascript jquery | [3, 5] |
3,070,482 | 3,070,483 | jquery bind on images? | <p>I've an img and a button, and I'd like to use jQuery bind to respond to onclick events. Bind works on the input button, but not on img. Here is my JavaScript code:</p>
<pre><code>function drawDetails (event) {
var id=0;
if ((typeof $(this).attr('id')) !== 'undefined') {
id = parseInt($(this).attr('i... | javascript jquery | [3, 5] |
1,055,130 | 1,055,131 | writing a function which creates a string (javascript) and then add it to a button as its attribute? | <p>hi
I have a Button in my .aspx web form and use c# 3.0
I want to add a javascript function to its attribute as its "onclick" event handler.
the function has 1 parameter in order to check whether onclick javascript should get a confirmation from user or not. The parameter Datatype is bool But when I send true,
execu... | c# asp.net javascript | [0, 9, 3] |
4,251,306 | 4,251,307 | Javascript issue | <p>I have a question regarding my button disappear</p>
<p>I've put an image as my button</p>
<pre><code><div id="button1">
<a href="javascript:example_animate('-=200px')">
<img src="images/button1.jpeg">
</a>
</div>
</code></pre>
<p>that is animated with this function</p>
<... | javascript jquery | [3, 5] |
5,786,108 | 5,786,109 | How to disable jsTree right click create option after create once | <p>In my application I'm using jstree.js. I succesfully applied necessary coding for tree view. My question is I want to remove right click create option after creating one node. I tried to write some codes in create event, but I could'nt succeeded.</p>
<p>here is how my code looks right now</p>
<pre><code> $('#my_tr... | javascript jquery | [3, 5] |
913,740 | 913,741 | Nullreference exception - why? | <pre><code>Panel pnl_Confirmation = (Panel)form1.FindControl("ConfirmationPanel") as Panel;
pnl_Confirmation.Visible = false;
</code></pre>
<p>I keep getting a "NullReferenceException" in the above code. "ConfirmationPanel" is a panel I show/hide depending on if the form is submitted successfully or not.</p>
<p>... | c# asp.net | [0, 9] |
5,113,596 | 5,113,597 | Showing a list of DataTables on DataGrids | <p>I have a very simple scenario but poor experience in this area and googling around didn't help much.</p>
<p>Consider a classic ASPX page with C# code behind. Let's say I have a list of <code>DataTable</code>s (or a <code>DataSet</code> with several tables). I need the means to display all tables using one <code>Dat... | c# asp.net | [0, 9] |
693,634 | 693,635 | jQuery load() not passing complete string in url | <p>I have a function that takes a country name and passes it to a processing page via the load() function.</p>
<p>In the following example the country is "American Samoa"</p>
<pre><code>function loadRates(oArg) {
var Destination = oArg.Destination.toString() || '';
alert(Destination); // Alerts "Ameri... | javascript jquery | [3, 5] |
4,591,235 | 4,591,236 | Javascript IF loop takes false and execute the true loop with jquery | <p>Here is jquery code in rails app. The purpose of the code is to eval the value of #rfq_need_report and show the #rfq_report_language if need_report is true or hide if false:</p>
<pre><code>$(document).ready(function() {
var rpt = $('#rfq_need_report').val();
alert(rpt);
if (rpt) {
alert(rpt);
$('#rfq... | javascript jquery | [3, 5] |
3,090,761 | 3,090,762 | Jquery hasClass show | <p>I am about to make a menu in drupal with jquery, I need the link to when it has class active it need to be shown.</p>
<pre><code>(function ($) {
$(document).ready(function() {
$('.region-sidebar-first .block-menu ul.menu').children('li').children('a').hasClass('active').hide();
$('.region-sidebar-first .block-... | javascript jquery | [3, 5] |
5,938,694 | 5,938,695 | How do you click text that's inside a hyperlink so you can drag and highlight it? | <p>If you have a paragraph of normal text, you can click anywhere inside the text and drag your mouse to highlight it. However, if the text is inside an anchor/link tag, it won't allow you to click and drag -- the link catches the mouse and prevents it from happening. </p>
<p>To see what I mean, find a text link on th... | javascript jquery | [3, 5] |
5,043,847 | 5,043,848 | Wait until loading content | <p>I'm trying to load a table by jQuery load then zebra the table
but the content of table is loaded but the zebra fails. If the page is loaded and the table exists the zebra function works.</p>
<pre><code>$("#processTab").load("URL");
$(".Innertable tr:nth-child(even)").css("background-color", "#eee");
</code></pre>... | javascript jquery | [3, 5] |
4,803,991 | 4,803,992 | How to get the value of an ASP.net variable into a javascript textbox | <p>I'm writing some Javascript code for an ASP.net page.</p>
<p>I have the string "foo" assigned to a string variable <code>myString</code>.</p>
<p>I would like to assign the value of <code>myString</code> to a JavaScript variable, so I write in my ASP.net code:</p>
<pre><code><script type='txt/javascript' langua... | javascript asp.net | [3, 9] |
152,744 | 152,745 | Android DateTime Picker Application please help us | <p>Once a time has been chosen, the AM/PM setting is correct on consecutive runs, but I don't know how to set it to the proper AM/PM. in android Dialog box ie.(timepicker ).If anybody knows Please help me</p>
| java android | [1, 4] |
4,554,591 | 4,554,592 | Search text on javascript | <p>How to search text on javascript.</p>
<pre><code>var v=20;
str = "The rain 20 in SPAIN stays mainly in the plain";
var patt1=/ain v/gi;
var n = str.match(patt1);
alert(n);
</code></pre>
<p>i am trying it but not getting any result.
Where am i wrong, any buddy can you please help me out.</p>
| javascript jquery | [3, 5] |
1,602,875 | 1,602,876 | Change true false in preferences in java | <p>I'm attempting to use a Button from view class to turn off sound from app. (ie: mute)
When user pushes box i want code to check if value is already true or flase and then set to opposite using ID called 'mute'. I think i have the IF part setup, just need easy change SharedPreferences from true to flase and vice vers... | java android | [1, 4] |
4,159,087 | 4,159,088 | String sequence similarity / difference ratio in javascript and python | <p>Say I had a reference string</p>
<p>"abcdabcd"</p>
<p>and a target string</p>
<p>"abcdabEd"</p>
<p>Is there a simple way in javascript and python to get the string sequence similarity ratio?</p>
<p>Example:</p>
<p>"abcdabcd" differs from "abcdabEd" by the character "E" so the ratio of similarity is high but le... | javascript python | [3, 7] |
4,520,515 | 4,520,516 | How to display description of input value while calling a function in asp.net? | <p>I want to add description of parameters/value we input in function in asp.net.</p>
<p>So that when we call the function it will display description of value which is going to enter.</p>
<p>Code:</p>
<pre><code>public static void DoingSplit(string name, int id)
{
// some code
}
protected void Page_Load(object s... | c# asp.net | [0, 9] |
5,332,439 | 5,332,440 | "Please wait..." between two page is not working correctly | <p>I have login page which contains some images and ajax contorls, when this page gets refresh all layout and the way page appears, totally awkward. So, after quick searching in the google, I have taken a javascript method and calling this in page load event like this(), it's working fine but only after refreshing the ... | c# asp.net | [0, 9] |
6,006,517 | 6,006,518 | What is the Easiest way to stop a soundpool of 4 streams | <p>What is the Easiest way to stop a soundpool of 4 streams.</p>
<pre><code> mSoundManager.addSound(1, R.raw.svphorn);
mSoundManager.addSound(2, R.raw.svpphaser);
mSoundManager.addSound(3, R.raw.svpwail);
mSoundManager.addSound(4, R.raw.svpyelp);
</code></pre>
<p>I need a button to stop all sounds play... | java android | [1, 4] |
5,487,764 | 5,487,765 | Passing and getting hyperlinks into a single JQuery function | <p>What I would like to do is to take several links that may be on a page and send only the link that was clicked on to a PHP script to be parsed.</p>
<pre><code><a href="?something=2&id=100&somethingelse=55" class="link">My First Link</a>
<a href="?something=3&id=400&somethingelse=65" c... | javascript jquery | [3, 5] |
5,048,823 | 5,048,824 | How to create a dynamic tree like structure | <p>I have the details of the members of my family in a database. I want to generate a web page with a family tree generated dynamically by reading from the table.</p>
<p>My table schema looks like this</p>
<pre><code>id(int) name father(int) mother(int) spouse(int) dateOfBirth
</code></pre>
<p>where <code>fathe... | php javascript | [2, 3] |
529,186 | 529,187 | get mouse position with respect to parent element | <p>this is my setup</p>
<pre><code><div id="uxcParent">
<div id="uxcClickable"></div>
</div>
</code></pre>
<p>now when a user clicks in the inner element i want the mouse position with respect to the parent div and not the page.</p>
<p>this what i tried.</p>
<pre><code> var x= e.pageX- obj.... | javascript jquery | [3, 5] |
3,161,457 | 3,161,458 | setTimeout Problem | <p>i got a problem with <a href="https://developer.mozilla.org/en/window.setTimeout" rel="nofollow">setTimeout</a>.. i dont know why this will not work..</p>
<pre><code>$(document).ready(function(){
var counterNum = 0;
function tick()
{
addText(counterNum);
setTimeout('tick()',1000);
counterNum++;... | javascript jquery | [3, 5] |
2,501,947 | 2,501,948 | Scroll to bottom of page, only if the user already was at the bottom before DOM manipulation | <p>I'd like to learn how to use <code>window.scrollTo</code>.</p>
<p>Here's is the desired behavior:</p>
<ol>
<li>Determine if the user is scrolled to the bottom of the page, or no scroll bar is visible</li>
<li>Then I want to grow a DIV, this is working</li>
<li>If #1 was true, use <code>window.scrollTo</code> to sc... | javascript jquery | [3, 5] |
4,977,258 | 4,977,259 | How to bind Request.QueryString[""] to Eval() in ASP.NET | <pre><code>ImageUrl='<%#Eval("Name","../Master Pages/DisasterImages/") %>'+'<%#Eval("Request.QueryString["DisID"].ToString()/{0}") %>'
</code></pre>
<p><strong>DisID</strong> is a folder name.</p>
<p>What i want is to display the images in the directory.
I have done it using a repeater control.Problem is ... | asp.net javascript | [9, 3] |
4,474,473 | 4,474,474 | Weird stuttering issues that I cannot get rid of (full source included) | <p>I based my game off the lunarlander example and have been having stuttering issues since I first started making it. Nothing I have tried has gotten rid of them so I have gotten to the point where I have spent a few hours creating a stripped down version of the lunarlander example, and put a simple scrolling image in... | java android | [1, 4] |
2,557,932 | 2,557,933 | jQuery: Fix div when browser scrolls to it | <p><a href="http://knowyourmeme.com/memes/pizza-is-a-vegetable" rel="nofollow">http://knowyourmeme.com/memes/pizza-is-a-vegetable</a></p>
<p>If you scroll down, the div will lock onto the browser (I'm assuming applying a position: fixed; attribute)</p>
<p>How can this be achieved with jQuery?</p>
| javascript jquery | [3, 5] |
413,118 | 413,119 | a strange popup window opens in website | <p>i have a games website. in that there are more than 4000 flash games available.</p>
<p>Now my problem is in my website i am getting a strange popup window whenever i first open up my web site in a day that pop up appears with sometimes google, sometimes yahoo sometimes and somee other sites..i dont know how the pop... | php javascript | [2, 3] |
2,042,020 | 2,042,021 | Dynamically call jQuery function | <p>I want to do this:</p>
<pre><code>var todo = "text";
$this.eval(todo).split(/\b[\s,\.-:;]*/).length;
</code></pre>
<p>So that this would be the resulting function:</p>
<pre><code>$this.text().split(/\b[\s,\.-:;]*/).length;
</code></pre>
<p>I can't figure it out...How do I do this?</p>
| javascript jquery | [3, 5] |
3,241,009 | 3,241,010 | javascript html popup window | <p>I am fairly a beginner with javascript. What I want to do is when I click on a button:
<img src="http://i.stack.imgur.com/9iWk3.png" alt="enter image description here"></p>
<p>I want it to popup a window. The content of this window is HTML (actually it's a .php) code. As follows:
<img src="http://i.stack.imgur.com/... | php javascript jquery | [2, 3, 5] |
3,282,053 | 3,282,054 | how can i extract text after hash # in the href part from a tag? | <p>I have following a tags:</p>
<pre><code><a href="#tab1">Any tab1 Label</a>
<a href="#tab2">tab2 Label</a>
<a href="#tab3">Any tab3 Label</a>
<script>
function tellMyName()
{
alert(this.href);
}
</script>
</code></pre>
<p>Now i want to bind the tellMyName functio... | javascript jquery | [3, 5] |
5,140,776 | 5,140,777 | How to store search result? | <p>I am working on my personal site, where I want to <strong>store my customers recent search</strong> result limited to that <strong>particular session</strong>. </p>
<p>I am using <strong>PHP</strong> platform and <strong>Javascripts</strong>.</p>
<p><a href="http://www.networksolutions.com/domain-name-registratio... | php javascript jquery | [2, 3, 5] |
4,525,974 | 4,525,975 | Print float numbers | <p>I am creating Android app and I need to print float number with textView. Could someone say which function should I use?</p>
| java android | [1, 4] |
3,552,362 | 3,552,363 | Need assistance to understand a piece of code | <p>I'm having difficulties to understand the code below taken from this page <a href="http://trevordavis.net/play/jquery-one-page-nav/" rel="nofollow">http://trevordavis.net/play/jquery-one-page-nav/</a> (tutorial for one page websites). Especially the .do and the Lorem ispum text in the middle of the code and also the... | javascript jquery | [3, 5] |
1,042,306 | 1,042,307 | Make a DropdownList visible on click of a RadioButton | <p>When I perform a <code>radiobuttonclick</code>, I want to set a <code>dropdownlist</code> to become visible. The <code>radiobutton</code> and <code>dropdownlist</code> are within the same <code>datagrid</code>. I am not sure how to do this.</p>
<pre><code><asp:UpdatePanel ID="updatepanel" UpdateMode="conditional... | c# asp.net | [0, 9] |
1,009,204 | 1,009,205 | GridView Lostfocus in edit mode | <p>Can anybody let me know how to display a Pop up to confirm if he wants to save the changes ,when a record is in Edit mode in Gridview
and user Clicks or tabs away from the row.</p>
<p>Thanks in advance
Divya.</p>
| asp.net javascript | [9, 3] |
2,886,101 | 2,886,102 | how to check the first time user of my App in android? | <p>In my App, first it shows a splash screen. after that another activity, then my main activity must be show. this is my design plan. the second activity(i.e before main activity) must be show for the first time user of the app. if he/she closes the app.splash screen will redirect to main activity automatically. how t... | java android | [1, 4] |
5,542,779 | 5,542,780 | .NET port with Java's Map, Set, HashMap | <p>I am porting Java code in .NET and I am stuck in the following lines that (behave unexpectedly in .NET).</p>
<p><strong>Java</strong>:</p>
<pre><code>Map<Set<State>, Set<State>> sets = new HashMap<Set<State>, Set<State>>();
Set<State> p = new HashSet<State>();
if (... | c# java | [0, 1] |
610,923 | 610,924 | Confused on setInterval() | <p>I use setInterval() to get the newest datas and draw something at set intervals.But in IE,it only works one time,I searched it in google,it says the cache of IE may be a problem,so I added a time stamp to my url like this:</p>
<pre><code>url+"?"+Math.random();
</code></pre>
<p>But it still doesn't work,or I made s... | javascript jquery | [3, 5] |
2,265,970 | 2,265,971 | ConcurrentModificationException crashes my app | <p>My Android app has an IntentService where it requests a list of MessageThreads objects from Facebook, parses the JSON response to build an ArrayList of the objects:</p>
<pre><code>ArrayList<MessageThread> mMessageThreads = new ArrayList<MessageThread>();
</code></pre>
<p>Then it calls FB again in the s... | java android | [1, 4] |
2,734,987 | 2,734,988 | Using Regex to remove anything within "<!--" and "/-->" | <p>Hey guys, I have a string like this:</p>
<blockquote>
<p>Something useful (<strong>less than sign</strong>)!--?xml:namespace prefix = o ns =
"urn:schemas-microsoft-com:office:office"
/--(<strong>greater than sign</strong>) Other useful stuff</p>
</blockquote>
<p>I need to remove anything within the "". Is th... | c# asp.net | [0, 9] |
206,722 | 206,723 | How to add OnClickListener for items from ItemizedOverlay | <p>I have following class extended ItemizedOverlay. This class draws many icons on Google Map (MapView). I need to make a listener for clicking by any item of ItemizedOverlay, but I don't know how I can do it. I hope you can help me. Thank you. </p>
| java android | [1, 4] |
3,194,811 | 3,194,812 | How to get the index of a particular element | <p>I got the following code from the designer:</p>
<pre><code><table class="items">
<thead>
<tr>
<th id="name">name</th>
<th id="category">category</th>
<th id="zip">zip</th>
<th id="city">city</th>
<th... | javascript jquery | [3, 5] |
1,070,760 | 1,070,761 | please help onjquery hover | <p>I have two divs. Say div1 and div2. By default div2 is invisible. </p>
<p>When the user hovers over div1, I need to display div2. Now if the div2 is hovered then i need to keep displaying this div2 (even if div1 is no longer hovered), otherwise reset the div2's visibility to hidden. </p>
<p>How do I keep div2 visi... | javascript jquery | [3, 5] |
2,769,514 | 2,769,515 | how to check the age of registrant during registration using jquery | <p>I want to filter all the user who can register in my website. how can i filter the age of the registrant using jquery allowing 18 years old and above, but when the age is 13 to 17 years old they can register but they must check checkbox for parental consent. I am using a textbox with mm/dd/yyyy format.</p>
| javascript jquery | [3, 5] |
771,400 | 771,401 | How should I store a small amount of event data and share it between two asp.net pages? | <p>I am a PHP developer and have been asked to make some amends to an Asp.Net site. There is a hardcoded table on one page which contains event information (Date, venue etc). The page uses javascript to toggle table row colours based on whether the event has already happened. </p>
<p>I need to add a block on another p... | c# asp.net | [0, 9] |
2,757,815 | 2,757,816 | How to send email | <p>I am New in <code>Asp.net</code>, i need to send email from <code>Asp.net</code> using my <code>Outlook</code>.
I have one button in asp and when i click button(send) i want to send email.
I tried to use Hotmail and <code>Gmail</code> but remote server in blocked.
If you don't understand my question please tell me.... | c# asp.net | [0, 9] |
5,883,593 | 5,883,594 | javascript method extension | <p>I need to call "MyOtherFunction" when "MyFunction"(which creates an element) completes, without MyFunction knowing what MyOtherFunction is to update according to created elements.</p>
<p>The reason I need this is for extension of a jquery powered fileupload User Control that is used in several places with different... | javascript jquery | [3, 5] |
5,167,050 | 5,167,051 | Get values of all textboxes with same name attributes in jquery | <p>I need to get values of all textboxes with same name attributes using jquery.</p>
<pre><code><input type="text" id="text1" name="text[]">
<input type="text" id="text2" name="text[]">
<input type="text" id="text3" name="text[]">
</code></pre>
<p>How can I get all values of textbox <strong>text[]</... | javascript jquery | [3, 5] |
3,082,502 | 3,082,503 | Android MediaRecorder release() issue and Video capturing is not in portrait mode | <p>I am facing some issue while developing Video capturing application.</p>
<p>1) When I start capturing the Video, the <code>surface view</code> comes in landscape mode. I tried a lot. But i failed. I also referred<br>
<a href="http://developer.android.com/reference/android/hardware/Camera.Parameters.html#setRotatio... | java android | [1, 4] |
1,407,440 | 1,407,441 | android sdk set imageview x y coordinates | <p>I'm using an absolutelayout (I know its deprecated). I am adding imageview dynamically but I can't change its position from the top left corner of the screen.</p>
<pre><code>ImageView iv = new ImageView(this);
iv.setImageResource(R.drawable.orb1);
this.addContentView(iv, new AbsoluteLayout.LayoutParams(80, 80, 200,... | java android | [1, 4] |
964,916 | 964,917 | c# populate textboxes using sqldatareader method | <p>I created the below method which i tested and does return the correct data. Where I am confused is what is the proper way to populate individual textboxes on a form with the results from this method? </p>
<p>Rather than using an objectdatasource and then binding a gridview to the objectdatasource that works but I n... | c# asp.net | [0, 9] |
5,620,941 | 5,620,942 | Comparing double values | <p>I have a double whose value i get dynamically and the value is 0.94289988675 and also i get a another double whose value is 0.94289988777 .I just need to compare the two values. But it says they are not same. How can i compare till first four digits of those values.</p>
<p><strong>Code</strong>: </p>
<pre><code>fo... | c# asp.net | [0, 9] |
425,705 | 425,706 | Does java have an equivalent to python __call__? | <p>Just started learning python, I've come across <code>__call__</code> method. I understand when <code>__init__</code> gets called and when <code>__call__</code> gets called by running a simple example:</p>
<pre><code>class Constructor:
def __init__(self, a):
print "__init__ called"
def __call__(self... | java python | [1, 7] |
3,917,677 | 3,917,678 | Show information based on what button that was pressed | <p>I'm making a information app for Android and I can't figure out how to change a button depending on which button was pressed in a previous class.</p>
<p>I made this picture that shows how the app works: </p>
<p><img src="http://i.imgur.com/Q3a5f.jpg" alt="Flowchart"></p>
<p>After clicking the first button you get... | java android | [1, 4] |
3,688,165 | 3,688,166 | ASP.Net codebehind can't access component from page? | <p>For an unknown reason, I have 1 page that I can't access by ID to any of the component.</p>
<p>Here is some informations. The page use asp:Content because the website use MasterPage. Inside the asp:Content, this page has a asp:FormView with some data that I cannot access from the CodeBehind.</p>
<p>Here is the Pag... | c# asp.net | [0, 9] |
611,223 | 611,224 | Android's InputManager::registerInputDeviceListener isn't calling my listener | <p>I'm trying to get a notification when input devices are added/removed, and from what I understand that's what registerInputDeviceListener should do... but my listener isn't being called!</p>
<p>Here's a snippet of my code:</p>
<pre><code>InputManager im = (InputManager) getSystemService(Context.INPUT_SERVICE);
im.... | java android | [1, 4] |
3,112,479 | 3,112,480 | jQuery if statement causes browser to crash | <p>I have a small script that should show a hidden div if the corresponding button is pressed. For example, if the button first-button is clicked than the div first-button-content should show. Right now, when I click on the button, chrome crashes and the div does not show. </p>
<p>Here is the html:</p>
<pre><code> ... | javascript jquery | [3, 5] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.