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,143,746 | 5,143,747 | Convert.ToDouble("4089.90") outputs 40.899,00 why? | <p>Hi everyone I am developing a software that uses number precision, but I have this problem, it happens that when I take a string to convert to double it outputs me with a different culture.</p>
<p>For example I use </p>
<pre><code>Convert.ToDouble("4089.90"); // it outputs 40.899,00
</code></pre>
<p>Is strange ca... | c# asp.net | [0, 9] |
331,469 | 331,470 | how do i add a selector change event to this? | <p>Here is my jquery which works great </p>
<pre><code>$(document).ready(function(){
$('#new_average, #max_occupancy').keyup(function(){
factor = $(".industry_picker option:checked").attr("title");
average = $('#new_average').val();
if($('#new_average').val().indexOf("$") != -1){
... | javascript jquery | [3, 5] |
4,741,012 | 4,741,013 | NullReferenceException on Page_Load | <p>I'm trying to edit a textbox's text in a Page_Load form on an ASP.NET page, but when I try to edit TextBox1.Text it throws a NullReferenceException because the TextBox has not yet been instantiated. Specifically what I'm trying to implement is this: <a href="http://www.codeproject.com/KB/user-controls/popupcalendarc... | c# asp.net | [0, 9] |
1,317,004 | 1,317,005 | Multiple autosuggest fields, filters depending on previous results | <p>I'm trying to figure out a method to see if it is possible to have one text field value (the result of a mysql query of an autosuggest field) be used as a filter for another mysql query for another autosuggest field. As in first field autosuggests a country, and the second field would autosuggest a city based in tha... | php javascript | [2, 3] |
940,025 | 940,026 | can I view two separate aspx files in one webpage? | <p>I have an issue where I have two pages that deal with very similar things and as such quite a few of their methods and aspx server controls have identical method names and variables. In short, it's pretty obvious that the code was copy/pasted and the innards were merely altered. I have a pending request that the t... | c# asp.net | [0, 9] |
4,545,688 | 4,545,689 | Passing an array of functions as a parameter | <p>Here's my code:</p>
<pre><code>function test(e, f) {
for (var i = 0; i < e.length; i++) {
$('#clickme').append("<button id='op" + i + "'>" + e[i] + "</button>")
$('#op' + i).click(function () {
f[i]();
})
}
}
$(function postPunk() {
var func1 = functi... | javascript jquery | [3, 5] |
2,494,218 | 2,494,219 | Prevent users to click RadioButton | <p>In my form I have some TextBoxes. Once the value of TextBox is changed then corresponding RadioButton will be selected. But I want to prevent users from changing the value of RadioButton.
I tried disabling like this.</p>
<pre><code> optA.Attributes.Add("disabled", "disabled");
</code></pre>
<p>But this script gre... | javascript asp.net | [3, 9] |
4,819,234 | 4,819,235 | How to use javascript or jQuery to read a pixel of an image? | <p>How to use javascript or jQuery to read the color of a pixel of an image when user click on it? (of course we have the (x,y) value of this pixel by subscribing to the click event).</p>
<p>Thanks!</p>
| javascript jquery | [3, 5] |
525,469 | 525,470 | Number formator - jQuery or Javascript or Java | <p>I have a number 100000. I need to display like 1,00,000. How can I achieve this <strong>without</strong> using the string manipulation functions in jQuery or Javascript or Java. Thanks in advance.</p>
| java javascript jquery | [1, 3, 5] |
3,610,215 | 3,610,216 | communication between page | <p>I have a page (<code>Page A</code>) where user can send email to others, then user should can choose the recipients.</p>
<p>So when user click the "Choose contact" button in <code>Page A</code>, a new browser page (<code>Page B</code>) will open where all their contacts in the database will be displayed using the c... | javascript asp.net | [3, 9] |
1,861,917 | 1,861,918 | 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] |
559,271 | 559,272 | PHP/jQuery : jQuery posts variable but PHP not reading it | <pre><code>echo "function disp_player (playerID) {";
echo "$.post('editor.php', {'idval': playerID});";
echo "alert(playerID);";
echo "alert(" . $playerlist[$_POST['idval']][0] . ");";
</code></pre>
<p>I'm writing a PHP script that is supposed to change text based on a selection made from a drop down.</p>... | php jquery | [2, 5] |
8,482 | 8,483 | Declare a class in another class in android | <p>i want to use a class in another class
e.g</p>
<pre><code>public class storge extends Activity {
public void save() {
//
}
}
public class Startuo extends Activity {
.
.
.
.
storge s=new stoge();
s.save();
}
</code></pre>
<p>when i run it the program stop immediately!! Do i ... | java android | [1, 4] |
2,882,168 | 2,882,169 | How many times can I have jQuery's document ready function declared on a page? | <p>How many times is it permitted to have the jQuery document ready function declared on a page, i.e.:</p>
<pre><code>$(function () { ... });
</code></pre>
<p>or</p>
<pre><code>$(document).ready(function () { ... });
</code></pre>
<p>Is there any difference between the two?</p>
<p>If it's permitted more than one, ... | javascript jquery | [3, 5] |
4,904,013 | 4,904,014 | How can I insert my own JavaScript into page? | <p>I'm using Internet Explorer as the default browser. (Firefox is not an option). </p>
<p>There are some web apps that I like but whose layout and workflow does not quite agree with me. </p>
<p>Given that I am merely a visitor to the website, is it possible to insert <a href="http://jquery.com/" rel="nofollow">jQu... | javascript jquery | [3, 5] |
3,670,318 | 3,670,319 | Is there a sexier way to write this jQuery selector? | <p>I want to select all the children of the <code>body</code> element before element with id <code>foo</code> (which is a child of <code>body</code>). Since it doesn't look like there are <code>:before()</code> or <code>:after()</code> selectors, I've got it working like this:</p>
<pre><code>$('body > :first').next... | javascript jquery | [3, 5] |
4,933,359 | 4,933,360 | Kill session on popup close until the closing of browser | <p>I want to show a popup about browser compatibility to the users visiting my website. I have used the popup in about 5 pages and it would be annoying for the users to see the same popup for more than once when they visit my website. So I am thinking to use a session and kill it when the user closes the poup. IT shou... | c# javascript asp.net | [0, 3, 9] |
3,865,437 | 3,865,438 | Detect if address bar is shown in iPhone browser | <p>I'm trying to detect, in a future-proof and device-independent way, when the address bar in the iPhone browser is showing. This is the toolbar that is shown at the top in order to display the URL. It can be hidden by calling:</p>
<pre><code>window.scrollTo(0, 0)
</code></pre>
<p>What I'd like to do, is detect when... | javascript iphone | [3, 8] |
1,507,223 | 1,507,224 | Session timeout on server side in asp.net c# | <p>I have problem with session timeout even i added code in web.config as follows but its not working, it expires within 10 mins. </p>
<pre><code><sessionState mode="InProc" timeout="300"></sessionState>
</code></pre>
<p>Server has session timeout of 20 mins.</p>
<p>Please help me to solve session timeou... | c# asp.net | [0, 9] |
5,670,214 | 5,670,215 | Eval in anchor href | <p>I have the following code behind:</p>
<pre><code>protected string VcdControlPanelLink { get; set; }
protected void Page_Load(object sender, EventArgs e) {
VcdControlPanelLink = "http://www.mywebsite.com";
}
</code></pre>
<p>And the following markup:</p>
<pre><code><a href='<%# Eval(VcdControlPanelLink)... | c# asp.net | [0, 9] |
4,635,417 | 4,635,418 | $(window).width() and $(window).height() return NULL -JQuery | <p>I want to get the size of browser window using <code>$(window).width()</code> and <code>$(window).height()</code> functions. However this two return null. the <code>$(window)</code> is not null, it's returning "object".
I have tried also using <code>$(document).width()</code> and <code>$(document).height()</code>, t... | javascript jquery | [3, 5] |
525,062 | 525,063 | Problem with JavaScript alert on button click | <p>I am having a bit of a problem. I have the following code:</p>
<pre><code>if (GetSelectedUsers().Count() > 0) {
string script = "alert('not show this message');";
System.Web.UI.ScriptManager.RegisterClientScriptBlock(btnActivateDeactivate, this.GetType(), "Test", script, true);
Response.Redirect("FUs... | c# javascript asp.net | [0, 3, 9] |
5,454,506 | 5,454,507 | jquery alertbox is getting disabled automatically | <p>I have written the code on
ascx script:</p>
<pre><code><script src="JScripts/jquery.alerts-1.1/jquery.alerts.js" type="text/javascript"></script>
<script>
$(function() {
$('#ImageButton1').click(function() {
jAlert('Please enter a valid Suggestion ID.', 'Case Entry');
... | c# jquery asp.net | [0, 5, 9] |
596,202 | 596,203 | Compare system date with a date field in SQL | <p>I am trying to compare a date record in SQL Server with the system date. In my example the user first register with his name and date of birth which are then stored in the database. The user than logs into the web application using his name only. After logging in, his name is shown on the side where it says <code>"W... | c# asp.net | [0, 9] |
590,020 | 590,021 | Retaining select box based values on page refresh | <p>i have problem in drop down select menu from mysql and database</p>
<p>whenever i select the value from drop down select value page reload and page refresh and then return to option select option?</p>
<pre><code>function getComboB(sel) {
var roomtype=document.getElementById("roomtype");
var value = sel.options[s... | php javascript | [2, 3] |
644,351 | 644,352 | Reset a Checkbox Field Clientside | <p>I have a checkbox control and a reset button on a web page. I want the chekbox to be unchecked whenever the rest button is pressed. This should be a clientside process.</p>
<p>How can i achieve it? can it be done by using document.getelementbyID()?</p>
| javascript asp.net | [3, 9] |
3,390,643 | 3,390,644 | Jquery:Content search error | <p>I have a problem about searching a text. I think it is Ja because of the whitespaces</p>
<p>This is my script that working. </p>
<pre><code>$('td > a:contains("Hallow")').each(function(){
if($(this).parent().next('td').text() == 'Secured') {
alert("working well")
}
else {
alert($(this).t... | javascript jquery | [3, 5] |
3,764,832 | 3,764,833 | Scrollable Menu position on reload | <p>I've followed and successfully completed this tutorial in order to create a scrollable menu:</p>
<p>" <a href="http://valums.com/scroll-menu-jquery/" rel="nofollow">http://valums.com/scroll-menu-jquery/</a> "</p>
<p>My problem is that I need the menu to stay in the same position after a new page is loaded rather t... | javascript jquery | [3, 5] |
2,803,569 | 2,803,570 | Replace last occurence of character in string | <p>Is there an easy way in jQuery to replace the last occurence of an '_' (underscore) in a given string?</p>
| javascript jquery | [3, 5] |
3,433,864 | 3,433,865 | ontouch - Switching positions of two views(images) in Android | <p>I've been looking for that 2 days long and haven't found anything related to it.</p>
<p>I'll give an example for my goal. Let's say I have 2 images positioned side by side horizontally. I want the user to be able to switch their positions onlongtouch listener. so let's say that the first image was on the left and t... | java android | [1, 4] |
2,322,449 | 2,322,450 | Visible window height instead of $(window).height; | <p>Is there any way to get the visible height of the whole page from inside an iframe , $(window).height() gives me iframes height ?</p>
<p>Thank you in advance.</p>
| javascript jquery | [3, 5] |
4,041,124 | 4,041,125 | How to parse XML file from sdcard using Dom | <p>I want to parse xml file from sdcard. i used DOM concept. here i attached the code </p>
<pre><code>InputStream filename = null;
Document obj_doc = null;
DocumentBuilderFactory doc_build_fact = null;
DocumentBuilder doc_builder = null;
filename = new FileInputStream("/sdcard/filename.xml");
doc_... | java android | [1, 4] |
4,933,207 | 4,933,208 | How to make each loop work in IE7? | <p>I'm currently working on a project where I hide/show some table rows based on the contents of the table cells.</p>
<p>I'm using jQuery's each method to loop through the table rows, this works fine in all modern browsers except IE7.</p>
<p>This is my code:</p>
<pre><code>$('li').click(function() {
var listLett... | javascript jquery | [3, 5] |
4,125,470 | 4,125,471 | send fieldset values by jquery | <p>look at this code : </p>
<pre><code>[WebMethod]
public static string GetFacilities(string id)
{
int hotelid = System.Convert.ToInt32(Tools.DecryptString(id));
string ret = "";
foreach (var item in new FacilityGroupBL().Load())
{
if(item.Facilities.Count != 0)
{
ret += "... | c# jquery asp.net | [0, 5, 9] |
4,795,806 | 4,795,807 | Making a datarow Select() Query | <p>The thing is i have a data row array which contains ID and parent id as its fields.</p>
<p>I have used the following code and it returned the correct values ,</p>
<pre><code>datarow [] dt = datarow.select(" Parent = '0' ");
</code></pre>
<p>I want to select only those rows which don't have the '0' as its Parent.... | c# asp.net | [0, 9] |
1,081,315 | 1,081,316 | JQuery detecting Programatic change event | <p>If i do jQuery(expr).change( function), then I can get an event function to fire when the user makes a change to the value.</p>
<p>Is it possible to get this to fire if it's changed programatically, ie if I call jQuery(expr).val("moo").</p>
<p>or if some Plain old JavaScript changes it's value?</p>
<p>Thanks for ... | javascript jquery | [3, 5] |
2,230,993 | 2,230,994 | jQuery Navigator with 3 rows | <p>I'm trying to scroll a set of thumbnails that are displayed in 3 rows inside a div.</p>
<p>I want to achieve <a href="http://flowplayer.org/tools/scrollable/navigator.html" rel="nofollow">this effect</a> but with 3 rows.</p>
| javascript jquery | [3, 5] |
1,910,846 | 1,910,847 | List<Object> vs List<dynamic> | <p>I need to create a heterogeneous <code>List</code> of objects (custom classes). My first thought was to create a <code>List<ISomeMarkerInterface></code> but I quickly learned that this is not what I want. My next thought was <code>List<dynamic></code> and this didn't seem to be a bad idea. However, I was... | c# asp.net | [0, 9] |
3,486,478 | 3,486,479 | trying to send data using POST from android to sql | <p>I am trying to POST data from my android to my sql server</p>
<p>This is in my android application </p>
<pre><code>List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>();
nameValuePairs.add(new BasicNameValuePair("firstName",value));
httppost.setEntity(new UrlEncodedFormEntity(nameValuePai... | php android | [2, 4] |
5,955,524 | 5,955,525 | Adding title tag to hyperlinks placed in bulleted list | <p>I have a bulleted list set to <code>BulletedListDisplayMode.HyperLink</code> display mode, and it works fine but I cannot find a way to specify the title tag for each hyperlink. Can this be done?</p>
<p>Thanks!</p>
| c# asp.net | [0, 9] |
344,094 | 344,095 | How can I wrap the entire page contents in a div using jquery | <p>Here is my code.</p>
<pre><code>$(function(){
$("body").prepend('<div id="loading"><span id="pagename"></span></div><div id="fade_wrapper">');
$("body").append('</div> <!-- closing #fade_wrapper -->');
});
</code></pre>
<p>The problem is that chrome auto closes the... | javascript jquery | [3, 5] |
1,822,912 | 1,822,913 | convert a arraylist to string | <p>How can I convert a arraylist to a string?</p>
| c# asp.net | [0, 9] |
3,478,557 | 3,478,558 | Issue with Popup | <p>I am using a window.open() in a hyperlink to open a popup in my page. I have a folder structure like </p>
<pre><code> parent
Controls
Reports
reportviewer.aspx
Search.aspx
</code></pre>
<p>form search.aspx i need to open reportviewer.aspx in a popup(javascript) .How to achive this ?How to... | c# asp.net | [0, 9] |
4,795,743 | 4,795,744 | jquery - Prevent onclick and retrieve parameters of function call | <p>We've been asked to put in a band-aid measure to some code so this is going to look really dumb but bear with me.</p>
<p>We need to prevent an onclick method of an anchor and retrieve the parameters of the function call being made in order to call a different function with those parameters.
Here is the code and htm... | javascript jquery | [3, 5] |
2,791,269 | 2,791,270 | create border around div and his children using wrapAll | <p>My code not workin well.
I want to create border around div id="wrap_all" and his children
using warpAll().
Did Is it possible to use with <code>$("#wrap_all").wrapAll("<div></div>");</code>
If yes I don't know how to that.
I am allso don't know how to include <code>id="xxx"</code> inside <code>("<div... | javascript jquery | [3, 5] |
2,586,061 | 2,586,062 | jquery/javascript wait for a function to complete | <p>I have script that performs from DOM manipulation to change the way a div looks. The way the application is, when the page loads, the div is rendered in its original state, the function manipulates the DIV. The problem is it renders the original div before rendering the changed div.</p>
<p>I tried:</p>
<pre><code>... | javascript jquery | [3, 5] |
2,002,342 | 2,002,343 | Where should I store jQuery data for html elements? | <p>To better learn jquery I decided to write a plugin that creates a <a href="https://github.com/ed-lea/jquery-collagePlus" rel="nofollow">gallery collage effect</a> like google+. Here's an <a href="http://www.devurl.co.uk/collagePlus/" rel="nofollow">example</a>. </p>
<p>I want to trigger it again on resizing the htm... | javascript jquery | [3, 5] |
4,931,597 | 4,931,598 | Android drawBitmap draws a kind of checkerboard pattern | <p>Okay maybe I'm missing something here but when I do </p>
<pre><code> canvas.drawRGB(0x80, 0x80, 0x80);
</code></pre>
<p>I get a clean and expected grey screen:
<img src="http://i.stack.imgur.com/BIqrD.png" alt=""></p>
<p>But when I use this code</p>
<pre><code>pixels = new int[800*480];
...
for(int x = 0; x &... | java android | [1, 4] |
4,444,983 | 4,444,984 | Cloning an element and adding it to Dom multiple times | <pre><code>//I am cloning a dom element and inserting it in dom element multiple times
<div class='toBeCloned'>some text</div>
<div id='target'></div>
var _clone=$('.toBeCloned').clone(true);//create clone
var _target=$('#target'); //this is target
_target.append(_clone); ... | javascript jquery | [3, 5] |
2,072,976 | 2,072,977 | jQuery function on form input | <p>I want users to enter something in an text field, press OK and then run a function on the value of that text.</p>
<p>I have been looking at jQuery docs, I found keyup which gets the value instantly (not what I want) and the only things I can find about doing stuff with submitted form data involve POSTing the result... | javascript jquery | [3, 5] |
2,312,196 | 2,312,197 | How to pass objects, not values, between pages in ASP.net c#? | <p>At the moment I pass values from one page to another. I need to pass objects between pages, how can I do this.</p>
<p>Any help is appreciated.</p>
| c# asp.net | [0, 9] |
3,128,913 | 3,128,914 | Need help with jQuery to clone form dropdown (dynamic dropdown) | <p>I am using PHP to generate dynamic dropdown, the dropdown list items are fetched from database.</p>
<p>Here's the php code for that and it works.</p>
<pre><code><select name="title[]" id="title">
<?php $categories = Category::find_by_cid(5); foreach($categories as $category): ?>
<option value="<?... | php jquery | [2, 5] |
1,019,355 | 1,019,356 | i am trying to get value of particular hidden input text box using jquery it's not working | <p>i tried before insert this </p>
<pre><code> var req=$('#'+investor_id+'#requestId');
var requestId=document.getElementById(req).value;
alert(requestId);)
</code></pre>
<p>code it's it's working fine but after it's not working, <a href="http://jsfiddle.net/sureshpattu/9fTPh/5/" rel="nofollow">here is code</a></p>... | javascript jquery | [3, 5] |
1,249,411 | 1,249,412 | encoding empty array in JavascriptSerializer using custom JavascriptConverter | <p>I'm using a custom converter to encode an object model. On the client, I need an empty array but I don't want to include this array in the object model on the server because the array is only used client-side.</p>
<p>This is what I have:</p>
<pre><code>public override IDictionary<string, object> Serialize(ob... | c# asp.net | [0, 9] |
920,041 | 920,042 | Select option onclick function works in FF but not in Chrome | <p>I can successfully change the chart option in firefox, but it doesn't work in chrome (no errors). I have read almost all of the topics about this issue, but none of them worked for me. What is the correct way to catch when user selects options ?</p>
<p><img src="http://i.stack.imgur.com/Bxch4.jpg" alt="enter image ... | javascript jquery | [3, 5] |
691,519 | 691,520 | 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] |
10,576 | 10,577 | System.Web.UI.DataVisualization.Charting missing error in .net 4.0? | <p>I'm trying to use the Chart control in asp.net 4.0. While I know it required a separate install as part of 3.5, it's included by default with 4.0.</p>
<p>I can see the Chart control in my toolbox, and I can drag it to my designer and see a preview of the chart. However, when I try to compile my website, I get an ... | c# asp.net | [0, 9] |
754,619 | 754,620 | Outputting errors to a different location than function called from | <p>I have a functions.php file that I keep at the top of pages that looks out for POST requests and runs the appropriate function. The only trouble is I wan't to be able to output the errors to a different area of the page as they can't be seen at the moment. I want to keep the functions.php at the top of the page and ... | php javascript | [2, 3] |
3,156,279 | 3,156,280 | How to iterate through Java collection in Javascript | <p>I'm trying to do scripting with Javascript in a Java program. I haven't found a way to iterate through a Java collection in Javascript. If I call the iterator() method for the collection, I get the method names instead of the elements.</p>
<p>Here's a sample code:</p>
<pre><code>function getValue(row, components) ... | java javascript | [1, 3] |
947,585 | 947,586 | HOW NOT update a variable in post back | <p>Consider the code</p>
<pre><code>public partial class Classname: somethng
{
bClass objClass = new bClass();
Boolean isfindclicked=false;
protected void Page_Load(object sender, EventArgs e)
{
//rowid = 0;
if (!IsPostBack)
{......
...
... | c# asp.net | [0, 9] |
2,055,489 | 2,055,490 | Is it possible to obtain a web-browser's Java VM without using an applet? | <p>We have an ages old Java applet that we want to move forward to a newer version of Java (5 or 6), however until today we've always supported people using Java VMs as far back as version 1.1 (specifically for those still using the Microsoft VM)</p>
<p>As part of the upgrade, we'd like to be able to serve a web page ... | java javascript | [1, 3] |
3,440,408 | 3,440,409 | Get one script to cycle through multiple variables | <p>I have a page that rates the top 15 websites one the web (from Alexa), and it uses javascript to write the new ratings, but this is very inefficient. There are 6 variables for each rating. And it writes one code block for each rating, using the variables. Is there a way to just make it use one code block to write al... | javascript jquery | [3, 5] |
2,488,643 | 2,488,644 | How to pass a parameter name in JavaScript? | <p>Is there a way to get a handler to a variable dynamically in JavaScript? I think this won't make sense so here's what I'm trying to do.</p>
<p>I'm using <a href="http://code.google.com/p/flot/" rel="nofollow">JQuery Flot</a> to generate graphs in my web app. Everything works fine until I have two graphs in the same... | javascript jquery | [3, 5] |
1,500,926 | 1,500,927 | Check if a username has been registered | <p>I am using the builtin ASP.NET logon and user management features. Is there a way to just identify if a username or email address is already registered? I would've thought it's part of FormsAuthentication or similar, but can't find such a function.</p>
| c# asp.net | [0, 9] |
3,623,650 | 3,623,651 | re-write javascript so that it doesn't contain " anywhere? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/10688513/escape-double-quotes-javascript">escape double quotes javascript</a> </p>
</blockquote>
<p>pardon me if this is a stupid question, but is it possible to write the following javascript without actually u... | php javascript jquery | [2, 3, 5] |
211,417 | 211,418 | Visualization for a Query builder using items from a Tree like structure | <p>I am trying to build a dynamic query based on the user selections from the items that are arranged in a tree like structure. Once the user selects an item from the tree, I should display the conditions (like equals, not equals, wild card match etc) and text field to enter a value. Users will be able to select more t... | javascript jquery | [3, 5] |
1,050,611 | 1,050,612 | alert another page | <p>I have an index.php.
It has a log in function.
Let's say I have 2 users A and B.</p>
<p>Page1(index.php of user A)
-with function(checks whether there are changes in the database, if yes: alert('message'))</p>
<p>Page2(index.php of user B)
-with button which when clicked should update the database</p>
<p>I can al... | php javascript jquery | [2, 3, 5] |
4,110,621 | 4,110,622 | ListView with scrolling/fixed header rows | <p>In Android I would like to have a ListView control that lists various categories of data. I would like a header/special row for each category.</p>
<p>I would also like it so the header row gets fixed as the first row while scrolling through that category. When scrolling reaches the next category the new header gets... | java android | [1, 4] |
791,317 | 791,318 | Clearing a text input (if it's empty) when another text box is clicked - jQuery | <p>I have an email text box that contains the text '(Not Required)' until a user clicks on it, at which point it turns blank. I'm trying to make it to where if the user clicks another text box without entering an email address (or entering anything), the text box will revert to containing (Not Required).</p>
<p>Here's... | javascript jquery | [3, 5] |
2,965,021 | 2,965,022 | Continuously run a piece of code in Android | <p>I'm making an Android game, and I'll need a continuously running thread for basically everything.
Now, however, I'm making the main menu (I always start simple, I'm new to coding), and I want an image to float across the main screen. I know how I could code that (determining the starting location, changing it), but ... | java android | [1, 4] |
3,478,598 | 3,478,599 | How to show part of other website in my website? | <p>Suppose in other website exists a <code>div element</code> with a <code>table</code> in it.
The content of <code>div element</code> changes during the time.
I want to show that <code>div element</code> and it's contents in my website.
Is it possible using Asp or jquery or javascript or other ways?
I have heard about... | javascript jquery asp.net | [3, 5, 9] |
447,387 | 447,388 | slide content based on button selection | <p>I am trying to set up a content area where there are 3 button choices. Based upon the button the user chooses, different content will slide into place. Depending upon which section they are under (which button was selected) the button will be a different color - white instead of orange.</p>
<p>Here is a link to the... | javascript jquery | [3, 5] |
1,267,765 | 1,267,766 | how to change mouse pointer on mouseover a division to hand? | <p>how can i change the default arrow pointer style to hand when client move the pointer to a particular division?</p>
| c# asp.net | [0, 9] |
1,713,311 | 1,713,312 | C#, Operator '??' cannot be applied to operands of type 'decimal' and 'decimal' | <pre><code>public decimal v1 {
get {
return this._v1;
}
set {
this._v1 = value ?? 0M; // also I tried, default(decimal)
}
}
</code></pre>
<p>Error message say : </p>
<p><strong>Operator '??' cannot be applied to operands of type 'decimal' and 'decimal'</strong></p>
<p>Why it does not work, and how ... | c# asp.net | [0, 9] |
2,668,785 | 2,668,786 | Unzipping from SD card - filenotfound error - Android 2.2 SDK | <p>I keep getting a file not found error, even though it exists at /mnt/sdcard/folder/Samples.zip. I downloaded the file there, so there are "write" permissions, but it just doesn't want to unzip! Why is this?</p>
<pre><code> ZipInputStream in = null;
try {
final String zipPath = "/folde... | java android | [1, 4] |
3,030,577 | 3,030,578 | Capturing Ctrl-Alt-Del in JavaScript/jQuery | <p>While just playing with jQuery/JavaScript I ran across this problem. I could capture <kbd>Alt</kbd> and <kbd>Ctrl</kbd> keys but NOT <kbd>Del</kbd> and certainly not all of them together.</p>
<pre><code>$(document).ready(function() {
$("#target").keydown(function(event) {
if (event.ctrlKey && ev... | javascript jquery | [3, 5] |
4,697,547 | 4,697,548 | how to access javascript variable in scriplet jsp | <p>I have a <code>javascript variable</code> say,</p>
<pre><code>var a ='2013-01-03'
</code></pre>
<p>I want to access this variable inside my <code>scriptlet</code>. i.e.] I have a <code>map</code> that contains my data.<br>
I want to fetch the value of the <code>map</code> corresponding to the <code>key='2013-01-0... | java javascript | [1, 3] |
870,729 | 870,730 | Retrieve Html Control Value in other Classes | <p>I have an element like this in <strong>Default.aspx</strong> :</p>
<pre><code><asp:HiddenField ID="hfID" runat="server" />
</code></pre>
<p>And now I need to retrieve this element value in another class like the following: </p>
<pre><code>using System;
using System.Collections.Generic;
using System.Linq;
us... | c# asp.net | [0, 9] |
2,426,266 | 2,426,267 | asp.net masterpage jQuery function | <p>I'm creating a new web project and i trying to get jQuery working with masterpages</p>
<p>I want to have a link that if it is pressed will do an expansion of a div.</p>
<p>Problem: jQuery isn't fired and the page do a postback</p>
<p><img src="http://i.stack.imgur.com/e2OoY.png" alt="enter image description here"... | jquery asp.net | [5, 9] |
2,754,574 | 2,754,575 | Is there a better way to hide & store read only data for a JQuery/JavaScript app than putting it in PHP arrays? | <p>I am making a mostly client side JavaScript / JQuery app that processes data I store on the server. I do not want this data easily scrape-able by bots, so right now I am storing all of the read-only data inside PHP files that the app gets via JSON and parses on the client side. I decided to do this instead of a MySQ... | php javascript jquery | [2, 3, 5] |
4,255,426 | 4,255,427 | Adding a javascript variable to html | <p>I need to add some JavaScript into my HTML.</p>
<p>I have a JavaScript variable. How can I add it to my HTML code?</p>
<pre><code><a href="index.php?something=MYJAVASCRIPT VARIABLE">
</code></pre>
<hr>
<p><strong>UPDATE:</strong> Tried this:</p>
<pre><code><a href="#" onclick="window.location.href = '... | javascript jquery | [3, 5] |
1,405,386 | 1,405,387 | Convert imageUrl to byte[] for caching | <p>I have an image that I capture from an ip camera and post it on a webpage to an image tag. Now I would like to convert to access the picture so that I can save it to our cache blob. Here is my code:</p>
<p>asp tag:</p>
<pre><code><asp:Image ID="imgPhoto" runat="server" ImageAlign="Middle" />
</code></pre>
<... | c# asp.net | [0, 9] |
4,910,707 | 4,910,708 | Did jQuery kill the JavaScript discussions? | <p>There are over 100,000 questions on Stack Overflow tagged as questions relating to JQuery troubleshooting/usage. Compare this to the 124,000 questions on stack overflow that are tagged for JavaScript issues. We are very close to almost half of all JavaScript related questions on Stack Overflow being attributed to ... | javascript jquery | [3, 5] |
3,478,187 | 3,478,188 | Datetime format for a month and year | <pre><code>DateTime ExpMonth = Convert.ToInt32(ddExpMonth); ---- DropDown(user selects a month)
DateTime ExpYear = Convert.ToInt32(ddExpYear); ---- Dropdown(user selects year)
Datetime ExpDate = ///// I want this part to be saved as Datetime 02/2012
</code></pre>
<p>How is this possible. Or any other way.</p>
| c# asp.net | [0, 9] |
1,840,136 | 1,840,137 | Need to change div's contents while slider changes | <p>My jquery banner needs to some fixes. I have used echo slider for banner. when banner image change to another image, we need to change the content in a div which is not inside the slider's boundary. The Div is separate div (No connection with slider ).</p>
<p>I have tried with the code. i just put if statement base... | javascript jquery | [3, 5] |
3,543,499 | 3,543,500 | Javascript Image OnLoad event | <p>I know I can attach an event listener to a loading image so that it'll trigger when the image finishes loading like this:</p>
<pre><code><img id="mine" src="image.jpg" />
<script>
$('#mine').load(function() {
console.log($(this).height()); //The image's height
console.log($(this).width()); //The im... | javascript jquery | [3, 5] |
1,867,405 | 1,867,406 | How use keyboard arrow keys to move a div 100px left/right respectively | <p>I have a div with an id of <code>bottom_arrow</code> and I want to use my keyboard arrows left/right to move the div left and right 100px. How can I do this?</p>
| javascript jquery | [3, 5] |
4,680,115 | 4,680,116 | manipulating the screen from subclass | <p>So I have created an android app and things are working alright.</p>
<p>In my main class I do a </p>
<pre><code>new Game();
</code></pre>
<p>Now from the constructor of the game object I try and manipulate the screen, but it does not seem to do anything. Is it even possible?</p>
<pre><code>public class Game exte... | java android | [1, 4] |
4,866,528 | 4,866,529 | MEF CS0234: The type or namespace name 'Composition' does not exist in the namespace 'System.ComponentModel' (are you missing an assembly reference?) | <p>I have added in ComponentModel.Composition; assembly .But showing this error for </p>
<p>using System.ComponentModel.Composition;</p>
<p>and reference for the assembely</p>
<p>still gets the error</p>
<p><strong>CS0234: The type or namespace name 'Composition' does not exist in the namespace 'System.ComponentMo... | c# asp.net | [0, 9] |
5,154,718 | 5,154,719 | javascript (jquery) script perfomance synchronous vs asynchronous | <p>I have a javascript function that filter dom elements based on a input text changes, so:</p>
<pre><code>$(".input").keyup(function(e) {
filter();
});
var cache = $(".dom");
var filter = function() {
cache.each(function() {
// if field contains some text show else hide
}
};
</code></pre>
<p... | javascript jquery | [3, 5] |
2,965,174 | 2,965,175 | Changing Android Device name in code | <p>I am trying to change the name of the Android Device that my program that is currently running on because the name of the device will contain information that is relevant when it communicates with other phones. The name of the phone will be constantly changed as phone scans for other phones and calculates informatio... | java android | [1, 4] |
786,207 | 786,208 | jqtransform onclick events not firing | <p>I have a form using the jqtransform jQuery plugin that gives forms an aesthetic makeover. However, I can't get my onclick events to fire.</p>
<p>I have a form setup similar to this:</p>
<pre><code><select name="person">
<option value="1">Yes</option>
<option value="2">No</option>
<... | javascript jquery | [3, 5] |
172,879 | 172,880 | Loop through all text boxes in a form using jQuery | <p>I have a form which is laid out like a spreadsheet.</p>
<p>I want to validate the text in each textbox and if it's not numeric, change the background of the textbox and display a message.</p>
<p>I can do everything except for the looping part.</p>
<p>I'm guessing it's a for...each statement?</p>
| javascript jquery | [3, 5] |
4,054,366 | 4,054,367 | uncaught exception error "Illegal operation on WrappedNative prototype object" | <p>Any idea why the following javascript/jquery code might produce the error message:
uncaught exception: [Exception... "Illegal operation on WrappedNative prototype object" ?</p>
<p>Code:</p>
<pre><code>function deletereceipt(id){
var $delconfdialog = $('<div id="dialog-confirm"></div')
... | javascript jquery | [3, 5] |
5,690,804 | 5,690,805 | Simple Javascript Help Request | <p>I'm after a little help with some JS not behaving. I would like to make it so that I can pass an some JavaScript to affect the end URL destination as below: The end destination being (<code>delete-page.php?id=1</code>)</p>
<pre><code><a href ="javascript:deletemessage('id=1')">Delete Page </a>
<scr... | javascript jquery | [3, 5] |
5,369,812 | 5,369,813 | jQuery class count on a certain table column number | <p>I've been at this for a while and want to know the best way of achieving my goal if anyone has any ideas!</p>
<p>Example:</p>
<pre><code><table>
<tbody>
<tr>
<td>Hello</td>
<td>Hello (I want to check this column)</td>
</tr>
<tr>
<td>Hello 2</td>
<... | javascript jquery | [3, 5] |
3,210,584 | 3,210,585 | Why is app shutting down and catch-clause doesn´t catch error? | <p>I have two fields that i want to calculate. The program works fine if i put in numbers in both fields, but if i have one empty and presses my "buttonSubtract" (calc-button) it just shuts down with "application closed...". Why doesn´t the catch-clause catch the exception?</p>
<pre><code>protected void onCreate(Bundl... | java android | [1, 4] |
1,884,775 | 1,884,776 | How would I sanitize this string? (perferably in JQuery)? | <p>I have a webpage where people type stuff into a text box, and it displays that text below them. That's it. There is no server side.</p>
<p>Let's say someone types <code><script src="blah">hello</script></code></p>
<p>I want to display that as text. Not as a script, of course. How can I do that (all in... | javascript jquery | [3, 5] |
3,981,110 | 3,981,111 | Only Allow jquery to load certain pages | <p>Sorry if this has been asked already, I've did a google search and couldn't find the answer.</p>
<p>I am new to jquery and I am wondering how to protect my backend pages from being loaded by external users?</p>
<p>For example, if my jquery .post or .get calls "delete-post.php" I only want the jquery to be able to ... | php jquery | [2, 5] |
5,830,636 | 5,830,637 | Converting date and time to iso format in javascript | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/2573521/how-do-i-output-an-iso-8601-formatted-string-in-javascript">How do I output an ISO-8601 formatted string in Javascript?</a> </p>
</blockquote>
<p>I am trying to convert a date and time input to an ISO fo... | javascript jquery | [3, 5] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.