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 |
|---|---|---|---|---|---|
2,313,152 | 2,313,153 | Application with payment functionality | <p>Could you please refer me to an example of an Asp.Net application that would allow the owner to collect a fee for viewing certain pages content?
I have no idea what to start with. Besides the technical aspect of this question, I don't know where one would get a server to install such an application. Can any computer... | c# asp.net | [0, 9] |
5,385,366 | 5,385,367 | JQuery SetTimeout before running code | <p>I'm trying to run a function in JQuery that basically shuts down or starts up a server. The code I have so far is this -</p>
<pre><code>$(".stopServer").click(function(){
$.post("controller.php",{stop: 'true', server: this.name});
$('#test'+this.name).load('controller.php?status=true&server='+this.name)... | php jquery | [2, 5] |
3,713,158 | 3,713,159 | jquery not working in IE6 | <p>I have developed a dropdown category and sub category menu in jquery. The script is working n Firefox, chrome but not in IE6. could you please guide me to fix this problem</p>
<pre><code><script type="text/javascript">
$(document).ready(function() {
$('#loader').hide();
$('#show_heading').hide();
... | javascript jquery | [3, 5] |
683,706 | 683,707 | Android app loading white screen on device | <p>I've debugged my app on my PC and it works fine. When I go into my phone and tablet instead of it loading the <code>WebView</code> like it should it simply loads a white screen, I guess failing to load the web site. I'm not sure where to begin debugging since my debug mode and virtual device works fine. Any sugge... | java android | [1, 4] |
2,219,914 | 2,219,915 | Hide/show DIVs - change current effect to fade | <p>I'm currently using the code below found on web tutorial to show/hide DIVs. It works great but don't like the effect. Would like the DIVs to fade in / fade out instead (or something smoother, for the moment the DIVs are growing from the top-right corner). How could I adapt the code to do this? Youc ans ee it here <a... | javascript jquery | [3, 5] |
1,288,162 | 1,288,163 | Printing out a javascript variable (not showing up?) | <p>I want to make sure a javascript variable is getting the correct values passed into it when setting it to a ruby variable.</p>
<pre><code><script type="text/javascript" charset="utf-8">
var test = <%= @test || 'null' %>;
document.write(test);
</script>
</code></pre>
<p>However, there does... | javascript jquery | [3, 5] |
3,673,949 | 3,673,950 | passing rowindex to javascript | <p>I am trying to pass row index from inside my gridview to javascript function and I am getting an error that databind does not contain a property name container.</p>
<pre><code><label style="text-decoration: underline" onclick="javascript:GetSelectedRow('<%# Eval("ID") %>','<%# Eval("root__level") %>'... | javascript asp.net | [3, 9] |
957,562 | 957,563 | Bind "Ctrl+Alt+L" to insert some predefined string into focused textarea? | <p>Is is possible to bind Ctrl+Alt+L to insert predefined string into <strong>focused</strong> textarea to cursor position? For example, I'm typing some text in textarea, then I'm pressing Ctrl+Alt+L and <code><a href="" title=""></a></code> is inserted into current cursor position.</p>
<p>Thank you.</p>
| javascript jquery | [3, 5] |
1,439,600 | 1,439,601 | php java bridge error in Java.inc: Cannot redeclare java_last_exception_get() | <p>5.2, Tomcat 5.5, jdk 1.5. php was working fine, I installed JavaBridge.war. And now, when I use "require_once(JavaBridge/java/Java.inc)" I am getting error like </p>
<p>Fatal error: Cannot redeclare java_last_exception_get() in C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\JavaBridge\java\Java.inc ... | java php | [1, 2] |
1,301,981 | 1,301,982 | String was not recognized as a valid DateTime | <p>Im stuck here why i run my project in local properly but when i upload to server got this error.</p>
<p>i passing like this.</p>
<pre><code>///////////////////in js///////////////////
'&dFrom='+Ext.getCmp('txtDateFrom').getValue().dateFormat('m/d/Y')
'dTo=' + Ext.getCmp('txtDateTo').getValue().dateFormat('m/d/... | c# javascript | [0, 3] |
3,171,132 | 3,171,133 | Append a jQuery element to a string that contains html | <p>I have a jQuery wrapped element which I would like to append to a html row. I can't wrap my head around this, since append() seemingly accepts strings but not existing jQuery elements (I might be mistaken here).
I have a following setup:</p>
<pre><code>var row='<tr><td>data1</td><td>data2<... | javascript jquery | [3, 5] |
437,072 | 437,073 | How to change size of title's text on Action Bar? | <p>There is Action Bar on each Android 4.0 application, and it has got a title. I need to make this size less. But I don't understand how I can do it, because Action Bar doesn't provide public methods for it. Thank you in advance. Remark: I don't want to use custom views. </p>
| java android | [1, 4] |
1,767,987 | 1,767,988 | C++ or Python for C# programmer? | <p>I am a corporate C# programmer. I found some time to invest into myself and stumbed upon a dilemma. Where to go from now? C#/.NET is easy to learn, develop for, etc. In future I would want to apply to Microsoft or Google, and want to invest spare time wisely, so what I will learn will flourish in future.</p>
<p>So:... | c# c++ python | [0, 6, 7] |
4,619,418 | 4,619,419 | Changing css dynamically | <p>I have css like so:</p>
<pre><code>.myTabs .JustForFun .ajax__tab_inner:hover
{
width: 109px;
background: url ("/images/csc_tr.png") no-repeat 100% 0%; margin-right: 2px;
background-color: #BBC614;
}
</code></pre>
<p>Using javascript, jquery or asp.net code behind c# I would like to manipulate <cod... | c# javascript jquery asp.net | [0, 3, 5, 9] |
5,653,431 | 5,653,432 | Ajax based File Uploads | <p>I'm looking for a javascript/ajax based file upload. The way it would work is this:</p>
<p>1) User clicks browse</p>
<p>2) User selects CTRL and selects the files he wants to upload</p>
<p>3) Via Javascript the user is shown a few loading graphics (1 per each file being uploaded)</p>
<p>4) After each upload fini... | javascript jquery | [3, 5] |
3,845,610 | 3,845,611 | Get check box value in jQuery? | <p>I need to get a check box value in jQuery.
Here is my code:</p>
<pre><code>$(document).ready(function() {
$('input[type="checkbox"]').bind('click',function() {
var tObj = $('#checkpermission');
var tVal = tObj.val();
alert(tVal);
});
});
$query="select * from tbl_user where use... | php javascript jquery | [2, 3, 5] |
2,102,819 | 2,102,820 | Retrieve year out of text best solution? | <p>I want to retrieve de year out of this date (european format date) i know this as a solution but is there a better way to write this code(less code,less declarations etc..)?</p>
<p>You don't need to use those variables. Only variable needed is date = "22/3/2011"</p>
<p>Code in javascript:</p>
<pre><code>var myDat... | javascript jquery | [3, 5] |
2,123,864 | 2,123,865 | 'condition is expected' in query | <pre><code>SqlConnection conn = new SqlConnection("Data Source=.\\SQLEXPRESS;AttachDbFilename=D:\\Projects\\csharp\\Login1\\App_Data\\Login.mdf;Integrated Security=True;User Instance=True");
SqlCommand cmd;
SqlDataReader dr;
protected void LinkButton1_Click(object sender, EventArgs e)
{
conn.Open();
cmd=new SqlC... | c# asp.net | [0, 9] |
1,265,476 | 1,265,477 | Change TextBox TextMode with jQuery | <p>I was wondering if someone knew the best way to switch from using the </p>
<pre><code> myTextBox.TextMode = TextBoxMode.Password;
</code></pre>
<p>to</p>
<pre><code> myTextBox.TextMode = TextBoxMode.SingleLine;
</code></pre>
<p>using client code and jQuery. I will have to do it on focus, along with deleting ... | jquery asp.net | [5, 9] |
67,135 | 67,136 | How can I access to an HTML control runat server from javascript | <p>I have the following code:</p>
<pre><code><telerik:GridTemplateColumn DataField="JOB_CODE"
<EditItemTemplate>
<input type="text" ID="JOB_CODETextBox" runat="server"
value='<%# Eval("JOB_CODE") %>' readonly="readonly"
onclick="$('#basic-modal-content').modal({
... | javascript asp.net jquery | [3, 9, 5] |
4,362,087 | 4,362,088 | Change textbox text (parent page) by another textbox (child page) upon text changing | <p>i have two .aspx pages named default1.aspx and default2.aspx.
default1.aspx has one textbox named as textbox1 and
default2.aspx has one textbox named as textbox2.
default1.aspx opens the default2.aspx by using window.showmodaldialog().
Issue is that
While i am changing the text of textbox2, the textbox1 text also g... | javascript asp.net | [3, 9] |
5,868,910 | 5,868,911 | How to get clientID if textbox name is in string variable | <p>I have written below code to check for blank value in my textbox but its generating compilation Error, please provide me solution.</p>
<p>my code in javascript:</p>
<pre><code> function checkTextboxNotFilled(txtbox) {
var txtb = document.getElementById("<%= " + txtbox + ".ClientID %>");
if (G... | asp.net javascript | [9, 3] |
2,391,371 | 2,391,372 | Download text as a file from a webpage | <p>I'm downloading text from a website and I want to have the user be able to save it as a file. So, I have the following code that does just that.</p>
<pre><code>protected void DownloadFile(string fileName, string content)
{
Response.Clear();
Response.ClearContent();
Response.ClearHeaders();
Response.... | c# asp.net | [0, 9] |
4,440,565 | 4,440,566 | Android Text validation | <p>Hi I am creating a task reminder app. It works but I would like to create some sort of Toast validation. For example a user doesn't fill in the title and I'd like an toast saying "title needs to be filled in!" e.t.c
But I'm not sure how to do this.</p>
<p>I am using an EditText widget by the way.</p>
<p>This is ... | java android | [1, 4] |
989,158 | 989,159 | JQuery hover menu that works like a regular menu if the brower has javascript disable | <p>Is there a way to make this code not have the hover point links' pictures not come up if the browser has Javascript disable? And then have the links work like a regular hover point when Javascript is disable?</p>
<pre><code><script type="text/javascript" src="/Scripts/jquery-1.2.2.pack.js">
<script type="t... | javascript jquery | [3, 5] |
5,004,117 | 5,004,118 | Custom JavaScript functions from Java: doesn't work with explicit context? | <h3>PreWork</h3>
<p>I am able to invoke or evaluate javascript expressions from java as follows:</p>
<pre><code>jsEngine.eval("ComputerName == 'mymachine'", myScriptContext);
</code></pre>
<p>The attribute value ComputerName is read from myScriptContext object.</p>
<h3>Scenario</h3>
<p>Now the problem is that I wa... | java javascript | [1, 3] |
2,279,029 | 2,279,030 | In javascript Jquery, how do I determine the position from the top to the current state...everytime someone scrolls? | <p>How do you bind it so that when a user scrolls, I can know the "offset" from the top, in pixels?</p>
| javascript jquery | [3, 5] |
4,005,483 | 4,005,484 | JQuery parameter serialization without the bracket mess | <p>I'm using JQuery to make a JSON request back to the server and it seems that it's parameter serialization is hard-coded to what PHP expects instead of being generic in nature. Basically I have an object that looks like this:</p>
<pre><code>{
foo: 1,
bar : [1, 3, 5]
}
</code></pre>
<p>And it serializes it t... | javascript jquery | [3, 5] |
4,415,427 | 4,415,428 | I have this countdown timer that I want running even after my activity closes | <p>Here is my code,</p>
<pre><code> new CountDownTimer(30000, 1000) {
public void onTick(long millisUntilFinished) {
forgotpass.setText("seconds remaining: " + millisUntilFinished / 1000);
}
public void onFinish() {
forgotpass.setTe... | java android | [1, 4] |
5,679,118 | 5,679,119 | How to pass value of C# variable to javascript? | <p>In button click event I am writing this code.(code behind).I know button click event</p>
<pre><code>protected void button_click()
{
string s1 = "Computer";
StringBuilder sb = new StringBuilder();
sb.Append(@"<script language='javascript'>");
sb.Append("document.write('<table>... | c# javascript asp.net | [0, 3, 9] |
4,508,886 | 4,508,887 | JQuery - Unfamiliar notation | <p>I am modifying a javascript file in which they have used the following code. Does anyone know what this does / where it is documented / etc. It appears it is creating an anchor node and giving it the inner html of "Back", but I'm not sure how it works or what it's capabilities are, as I need to add various attribute... | javascript jquery | [3, 5] |
1,879,128 | 1,879,129 | Calculation issue With JQuery | <p>I know it is very simple.But Still it is not working.I am multiplying a input number with a fixed number,but is not showing the expected result.it always shows the Error message "Please enter some value" even i enter some integer e.g. 6.
This is Html Code.</p>
<pre><code> <input type="text" class="cc" id="getda... | javascript jquery | [3, 5] |
1,991,687 | 1,991,688 | clone values of select fields into span or any other html elements | <p><img src="http://i.stack.imgur.com/aH5Pp.png" alt="enter image description here"></p>
<p>this is the fields I have in the app, I need to clone this values into some span elements or any other html elements, so it will be a clone of the date that I select from selectors:</p>
<pre><code><select id="massmedium_reg... | javascript jquery | [3, 5] |
1,915,177 | 1,915,178 | Adding and removing classes in jQuery | <p>I have a jQuery snippet written where if any of my inputs in a specific table are entered it changes the class of the rest of the inputs on that table, but if the user fills in an input field, and then deletes their input it still changes the class, though it shouldnt. here is my attempt at doing this.</p>
<pre><c... | javascript jquery | [3, 5] |
3,109,892 | 3,109,893 | Need help with jQuery conditional that removes container element based on matched text | <p>here is my markup:</p>
<pre><code> <div>
<h3>Title</h3>
<ul class="eventslist">
<li>This event would be discarded</li>
<ul>
<li>...</li>
<li>...</li>
... | javascript jquery | [3, 5] |
2,992,336 | 2,992,337 | $(document.width).bind(onchange,...)? | <p>Will this work? </p>
<p>The reason I ask is because I want to animate two elements that calculate their end location based on the width of the document. If the window or document size is changed I want to reset the animation. </p>
<p>Any suggestions or other methods that might work?</p>
| javascript jquery | [3, 5] |
1,336,988 | 1,336,989 | Jquery submit and post to post a form unable to return data | <p>i have problem with jquery submit and post. I would like to submit a form and post it to my php for a check, and return the php result back to the form. However, I have problem with the returning of data, it basically ignores the result.</p>
<p>This is my html form:</p>
<pre><code><form id="form" method="post"&... | php javascript jquery | [2, 3, 5] |
4,085,710 | 4,085,711 | Common property with all jQuery objects | <p>I want create a property inside my object with all jQuery objects wich it will use. I novice at JavaScript and that's why I want an advice. Can I do this in such manner?</p>
<pre><code>var myVar = {
init: function() {
//...
this.obj = {
id1: $('#id1'),
id2: $('#id2'),
... | javascript jquery | [3, 5] |
1,780,365 | 1,780,366 | How to use Server.MapPath in jQuery JavaScript when deploying on Hosting Server | <p>I am using <code>WebMethod</code> on my ASPXpage and I call it from jQuery on the same page like this:</p>
<pre><code> $.ajax({
type: "POST",
url: "Mypage.aspx/GetSomeData",
contentType: "application/json; charset=utf-8",
data: parameters,
... | c# jquery asp.net | [0, 5, 9] |
2,883,306 | 2,883,307 | How do I bind a dynamically created asp textbox to a dataset? | <p>I have a textbox generated by parsing an xml file.</p>
<pre><code> TextBox tb = new TextBox;
tb.ID = "MYDATA"
Parent.Controls.Add(tb);
</code></pre>
<p>I then read another Xml file for the data to populate the created TextBox. I have been trying all sorts of databinging and setting the text property to a datase... | c# asp.net | [0, 9] |
4,709,133 | 4,709,134 | How to parse URL safe query parameters into readable strings | <p>I found one library, <a href="http://github.com/allmarkedup/jQuery-URL-Parser" rel="nofollow">jQuery URL Parser</a>, which seems to be full-featured as far as parsing out the various segments of a URL. I'm trying to go one step further though, and parse the <em>values</em> of the query parameters.</p>
<p>For exampl... | javascript jquery | [3, 5] |
4,601,992 | 4,601,993 | Dynamic code to addClass to an element specified in the link | <p>I'm trying to add a class to an element specified within my HTML from clicking on a button.</p>
<p>HTML:</p>
<pre><code><div id="servicenext"><a href="#nav2"><p class="four">next</p></a>
</code></pre>
<p>Script:</p>
<pre><code>$('#servicenext a').click(function(){
$('ul.navigat... | javascript jquery | [3, 5] |
210,418 | 210,419 | Posting/submitting multiple forms in jQuery | <p>I have two forms on a page (one is being grabbed by AJAX). I need them both to be posted, so I serialize the second one and send it in a post using jQuery before submitting the first one. However, only the first form appears to be getting posted. The odd thing is though, if I put an alert after the serialized pos... | javascript jquery | [3, 5] |
5,504,368 | 5,504,369 | Web.Config <appSettings file=""> question | <p>I have defined in my web.config the following:</p>
<pre><code><appSettings file="settings.config" >
</appSettings>
</code></pre>
<p>It works just fine, but my question is, how to i modify it at runtime?</p>
<p>If i use:</p>
<pre><code>WebConfigurationManager.OpenWebConfiguration("~/");
</code></pre>
... | c# asp.net | [0, 9] |
4,815,278 | 4,815,279 | Are there any general listeners defined in Android or Java | <p>Sometimes I want a simple generic Listener without defining my own class. Is there a predefined "something happened and here is a string or object or whatever" in Java or Android?</p>
| java android | [1, 4] |
2,488,022 | 2,488,023 | Checkbox in listview | <p>I would like to set a checkbox in a listview's click-event.
How can I set the right checkbox?</p>
<p>This is my code:</p>
<pre><code> listView.setOnItemLongClickListener(new OnItemLongClickListener()
{
@Override
public boolean onItemLongClick(AdapterView<?> adapter, View view,
... | java android | [1, 4] |
853,870 | 853,871 | Android - JAVA Denial of Service: Parse Double | <p>There is a vulnerability in implementations of <code>java.lang.Double.parseDouble()</code> and related methods that can cause the thread to hang when parsing any number in the range </p>
<pre><code>[2^(-1022) - 2^(-1075) : 2^(-1022) - 2^(-1076)]
</code></pre>
<p>This is not an issue when using java version 6 Updat... | java android | [1, 4] |
5,929,840 | 5,929,841 | jQuery getter/setter conditional? | <p>I have a script that needs to set one of two json data call URLs depending on which element was clicked to invoke the query. </p>
<p>How can I code the url: property so that its determined by which element was clicked?</p>
<p>Off the top of my head, I was thinking to create a hidden input field and set a flag that... | php jquery | [2, 5] |
3,755,750 | 3,755,751 | how to get the querystring from a parent page? | <p>i am using an iframe ipage in my parentpage. I would like to get the querystring in javascript of the parentpage?</p>
| javascript asp.net | [3, 9] |
342,454 | 342,455 | update dropdown menu values depending on user selection | <p>I have the following html:</p>
<pre><code><label>Sizes
<select name="item_options[product_size]">
<option value="s">small <span class="avail-inventory">10</span></option>
<option value="m">medium <span class="avail-inventory">1</span></option>
... | javascript jquery | [3, 5] |
5,847,823 | 5,847,824 | Create links in single image | <p>I want to create some links in single image.I know we can do it with area map.i have used <a href="http://davidlynch.org/js/maphilight/docs/demo_usa.html#" rel="nofollow">this</a> link for help</p>
<p>Please have a look at link.</p>
<p>But now my requirement is to show the selected state as active.Along with this ... | javascript jquery | [3, 5] |
248,500 | 248,501 | onload for div tag | <p>I have div tag, after some event, I insert (change old content) into this tag, several images and also texts, for example:</p>
<pre><code> $("#some_button").on("click", function () {
$("#mydiv").html("<div>aaaa</div><img src='1.jpg'><div>bbb</div><img src='2.jpg'>");
... | javascript jquery | [3, 5] |
3,691,102 | 3,691,103 | Round Up Double to Whole Number? | <p>I have a double that contains the result of a calculation.</p>
<p>i.e 2.123 etc</p>
<p>Is there a simple way where i can round up this number to the
next number up i.e 3</p>
<p>I have searched the forum, but only come up with how to round off to decimal places.</p>
<p>cheers</p>
| java android | [1, 4] |
4,984,654 | 4,984,655 | Object function Function() { [native code] } has no method '_registerScript' | <p>I have site which has updatePanel and it is hosted on a web farm. Ive noticed that sometimes when I hit ctrl + r there is an js error:</p>
<pre><code>Object function Function() { [native code] } has no method '_registerScript'
</code></pre>
<p>Requests before <code>ctrl+r</code> and on <code>ctrl+r</code> are mad... | c# asp.net | [0, 9] |
3,958,482 | 3,958,483 | validating ajax success response | <pre><code>function run()
{
$.ajax({
type: "POST",
url: "script.php",
success: function(msg){
if(msg == "OK"){
// call a js function
}else if(msg == "NOT"){
// call a js function
}}
});
}
</code></pre>
<p>I need to run a function base on server r... | php jquery | [2, 5] |
4,370,121 | 4,370,122 | How to differentiate between sliding and clicking in android? | <p>In pure Java there is <code>MouseInputListener</code> which I can use to work with those 2 events.</p>
<p>How do I do it with Android?</p>
<p>If I implement both events then only one is fired (<code>onClickListener</code>) and not the other.</p>
<p><strong>Updated:</strong></p>
<p>The question is not about detec... | java android | [1, 4] |
2,545,342 | 2,545,343 | Get Dates betwen Ranges, c# | <p>I've two dates</p>
<blockquote>
<ol>
<li>21/01/2011 [From Date]</li>
<li>25/01/2011 [To Date]</li>
</ol>
</blockquote>
<p>How can I get all the dates between these ranges using c#</p>
<p>The answer should be </p>
<blockquote>
<p>21/01/2011<br> 22/01/2011<br>
23/01/2011<br> 24/01/2011<br>
25/01/2011... | c# asp.net | [0, 9] |
1,224,552 | 1,224,553 | Register Listener in constructor of subclass | <p>I need to register a <code>Listener</code> in my subclass on an inherited <code>final</code> field (<code>mCursorLoader</code>). I need to do this in the <code>constructor</code> of my subclass. <strong>Preferably without changing the fields to <code>non-final</code> or doing any <code>unRegistering</code> in the su... | java android | [1, 4] |
367,780 | 367,781 | frame by frame caching | <p>How to cache multiple videos frame by frame</p>
| java javascript c++ | [1, 3, 6] |
1,939,275 | 1,939,276 | Unable to catch all mouse co-ordinates when moving mouse faster | <p>I have written the below code to calculate mouse moved co-ordinates </p>
<pre><code>$(document).mousemove(function(e){
console.log(e.pageX + ", " + e.pageY);
});
</code></pre>
<p>and <a href="http://jsfiddle.net/Z5L7T/1/" rel="nofollow">here</a> is the fiddle.</p>
<p>My Question is, when I move mouse slowly I... | javascript jquery | [3, 5] |
227,619 | 227,620 | How to bind large amount of data into gridview? | <p>Recently i went for an interview for c#.net programmer.The interviewer asked me a scenario which i could not answer,and couldnt find it by googling it</p>
<p>Scenario is like this..</p>
<p>Suppose we've about 100k customers in our database,I want to show them in a gridview,how will we do that ??</p>
<p>My answer ... | c# asp.net | [0, 9] |
2,283,315 | 2,283,316 | How to handle enter key in Javascript overlay? | <p>I have a JavaScript overlay that consists of several input text search criteria. When the user presses the <kbd>enter</kbd> key in any of those inputs, I want to mimic the behaviour of the search button.</p>
<p>I know how to handle the enter key if there is only one input. I define the input as: </p>
<pre><code>&l... | javascript jquery | [3, 5] |
3,552,788 | 3,552,789 | JQuery: How to select table rows but not the rows of the table inside the cell | <p>So I have a table, and there are tables within the cell too, like this:</p>
<pre><code><table id='table1'>
<tr>
<td>xyz</td>
<td>
<table><tr></tr></table>
</td>
</tr>
<tr></tr>
<tr></tr... | javascript jquery | [3, 5] |
2,312,633 | 2,312,634 | jquery this selector after clicked element removed | <p>I want to empty content of div with class dialogBody and then append returned ajax response. See the code below please. The problem I have is .html(response) doesn't do anything because clicked element is removed. How can I carry over the target element which is $this.closest('.dialogBody') after clicked element was... | javascript jquery | [3, 5] |
3,092,851 | 3,092,852 | Keydown pressed for left does not update for Keyup | <p>I have an object on <code>canvas</code> that I would like to move with keyboard events,</p>
<p>My event function is as follows</p>
<pre><code>function onKeyDown(evt) {
if (evt.keyCode == 40) { downDown = true;}
if (evt.keyCode == 39) { rightDown = true;}
if (evt.keyCode == 38) { upDown = true;}
if (evt.keyCode == ... | javascript jquery | [3, 5] |
5,892,175 | 5,892,176 | Java/Android: Reading/writing a byte array over a socket | <p>I have an Android application where I'm trying to send a picture to a server. I did this using Base64 encoding and it worked quite well, but it took too much memory (and time) to encode the picture before sending it.</p>
<p>I'm trying to strip the Android application down to where it just simply sends the byte arr... | java android | [1, 4] |
991,233 | 991,234 | milliseconds to time in javascript | <p>I have this function which formats seconds to time </p>
<pre><code> function secondsToTime(secs){
var hours = Math.floor(secs / (60 * 60));
var divisor_for_minutes = secs % (60 * 60);
var minutes = Math.floor(divisor_for_minutes / 60);
var divisor_for_seconds = divisor_for_minutes % 60;
var seco... | javascript jquery | [3, 5] |
2,960,800 | 2,960,801 | c# class in a session state? | <p>My senior project is building a reservation system in ASP.NET/C#. Part of my senior project is to have c# classes (and basically use everything ive learned in the past few years). One thing Im trying to do is after I instantiate a new "user" class I need it to travel between the pages. I know session states holds va... | c# asp.net | [0, 9] |
4,796,018 | 4,796,019 | Still stuck on my php calling javascript problem. Please help in this | <p>Still stuck on my PHP calling a JS script problem </p>
<p>On the click of a button this Javascript is called:</p>
<pre><code>var xmlhttp;
function register()
{
xmlhttp=GetXmlHttpObject();
alert("pass");
if(xmlhttp==null)
{
alert("Your browser does not support AJAX!");
return;
}
var url="register.php";... | php javascript | [2, 3] |
520,836 | 520,837 | How do I call a function on confirmation of leaving page? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/1299452/how-do-i-stop-a-page-from-unloading-navigating-away-in-js">How do I stop a page from unloading (navigating away) in JS?</a> </p>
</blockquote>
<p>I've created an online whiteboard. I wish to confirm from... | javascript jquery | [3, 5] |
3,588,716 | 3,588,717 | jQUery .slideToggle() & .text replace | <p>I've got the following problem (test version available <a href="http://jsfiddle.net/qmP8R/2/" rel="nofollow">http://jsfiddle.net/qmP8R/2/</a>):</p>
<p>I have two <code><div></code> containing two versions of text and a third <code><div></code> used as a "container".</p>
<p>On load the container is popu... | javascript jquery | [3, 5] |
1,952,654 | 1,952,655 | Using jQuery to change dynamic content? | <p>I'm pretty new to using jQuery but am working on a Safari Extension at the moment and have run into a bit of a puzzle with appending some text to a page.</p>
<p>Basically, I am creating an extension that will append a specific string of text with another on the page within an element</p>
<pre><code><td id="name... | javascript jquery | [3, 5] |
216,963 | 216,964 | Android Demo's aren't appearing in simulator | <p>I'm trying to get my feet wet with Android development. I downloaded Eclipse, and setup the ADT. When I create a project from existing source, I choose the demo projects (API Demo) and compile + run. The simulator pops up but I can't seem to find the API Demo application. How can I get this up and running?</p>
| java android | [1, 4] |
3,152,951 | 3,152,952 | system.web.mail vs system.net.mail | <p>Any body pls share the difference between <code>system.web.mail</code> and <code>system.net.mail</code></p>
| c# asp.net | [0, 9] |
5,955,917 | 5,955,918 | Can someone explain to me the role of the Application class in android? | <p>I'm studying Java and Android development by myself from PDFs. I'm trying to figure out what the <code>Application</code> class is for, and when should it be used? </p>
<p>I couldn't understand it from reading through either the PDFs or the android developers website.</p>
<p>Anyone care to explain it to me?</p>
| java android | [1, 4] |
928,378 | 928,379 | Images not coming on android browser | <pre><code>function ShowProcessingImage()
{
try {
var divProcessingImageY = $(document).height();
var processingImageY = $(window).scrollTop() + ($(window).height()/2) - 45;
var processingImageX = (($(window).width()/2) - 45);
$('body').append('<div id="divProcessingImage"... | jquery android | [5, 4] |
2,929,810 | 2,929,811 | getting fakepath in jquery | <p>am trying get size of a file by passing the file bath from javascript to an php file then return the result , problem is javascript passing file bath as the following ex, c:\fakepath\NAME OF THE FILE , so the php file getting an wrong path so always returning an false !!! </p>
<pre><code> $(document).ready(function... | php javascript jquery | [2, 3, 5] |
5,380,664 | 5,380,665 | how can I $_POST this below | <p>Below is my javascript and form code where it appends a question number (qnum) for each table row appended in the application one by one. So if user adds a table row then it contains question number 1, when second row is added, question number 2 is added, then 3 for third row and etc.</p>
<pre><code><script>
... | php javascript | [2, 3] |
5,730,630 | 5,730,631 | Unable to execute dex: Multiple dex files define | <p>I know this question has been asked here a few times before. But i haven't seen any possible solution yet.
Before i make the project 'Run as Android Application' , if i do not clean it, i receive the following error and have to restart Eclipse ... and clean again.</p>
<pre><code>Conversion to Dalvik format failed:... | java android | [1, 4] |
5,745,982 | 5,745,983 | Ignore escape sequences in strings java? | <p>In C#, I can write the string <code>"\\myDir\\myFile"</code> as <code>@"\myDir\myFile"</code>. What is the equivalent for this "@" character in Java, if any?</p>
| c# java | [0, 1] |
3,880,610 | 3,880,611 | How to call JavaScript in Android 4.2 | <p>I have already found many examples about how to call JavaScript from android. But it's not working for me. My target SDK is 17(android 4.2). This is how I am loading my html page from my activity:</p>
<pre><code>protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setCont... | javascript android | [3, 4] |
2,049,463 | 2,049,464 | combine multiple DataViews into a single one? | <p>I have 4 different select statements which i sequently assign to an sqlDataSource like this:</p>
<pre><code>sqlNoutatiProduse.SelectCommand = select;
</code></pre>
<p>and i keep the results in different DataViews like</p>
<pre><code>MySession.Current.dataViewNoutatiProduse1 = (System.Data.DataView)sqlNoutatiProdu... | c# asp.net | [0, 9] |
4,210,884 | 4,210,885 | Script tag in ASPX page is written partially (output stopped at random) | <p>I have an aspx page where I put a script tag with .net "if" and "else".<br>
The problem is that the output gets cut at random points each time. Sometimes it's ok, sometimes I get cropped output.</p>
<p>The code itself (Simplified example):</p>
<pre><code><body id="body" runat="server">
<form id="form1" ru... | c# asp.net javascript | [0, 9, 3] |
2,161,901 | 2,161,902 | Android spinner give a NullPointException | <p>Any ideas why this code throws a NullPointException?</p>
<pre><code> Spinner spinnerLoadLayouts = (Spinner)this.findViewById(R.id.spnLoadLay);
ArrayAdapter<CharSequence> adapter =
new ArrayAdapter<CharSequence>(this, android.R.layout.simple_spinner_item, new ArrayList<CharSequence>())... | java android | [1, 4] |
910,933 | 910,934 | Get the caller id | <p>I'm trying to make app which will log my incoming and outgoing calls and the problem is i can't seem to get working this code to return caller id(Like name and surname) but it allways returns "Unknown"</p>
<pre><code>public String getname(String num,String nbc ){
String namer="";
ContentResolver cr = getContentRes... | java android | [1, 4] |
5,940,596 | 5,940,597 | jQuery - don't fire 'click' on 'mousemove' | <p>I created a <a href="http://jsfiddle.net/syTKq/" rel="nofollow">Fiddle</a> to demonstrate my situation.</p>
<p>I want to not fire the click event when the user is panning--only if it's just a simple click. I've experimented with different placements of .off() and .on() to no avail.</p>
<p>Thanks in advance for you... | javascript jquery | [3, 5] |
3,987,509 | 3,987,510 | Use view as base container Android | <p>Here is the scope. I am trying to create a base class you will be subclassing and running into some snags. I want to create a method that returns a view so it can be overridden by any of its subclasses such as listview, gridview, textview, etc. Not sure if that is even possible or if I am going about it the wrong wa... | java android | [1, 4] |
5,307,831 | 5,307,832 | Jquery client validation asp.net | <p>i am new to jquery ; i am using jquery validation as shown below:</p>
<pre><code> function validate() {
return $('#aspnetForm').valid();
}
<asp:Button UseSubmitBehavior="false" ID="Button1" runat="server" Text="Button" OnClientClick="return validate();" OnClick="btnSubmit_Click"></asp:But... | jquery asp.net | [5, 9] |
2,875,693 | 2,875,694 | drop down list not updating selected item on subsequent calls | <p>i have the following code </p>
<pre><code>Page_Load () {
if (!IsPostBack)
{
//data binding to ddl year
} else {
if (ViewState["ddlyear"] != null)
{
ddlyear.SelectedValue = ViewState["ddlyear"].ToString();
}
}
}
ddlyear_S... | c# asp.net | [0, 9] |
2,251,982 | 2,251,983 | How make a popup work | <p>I am trying to develop a popup feature when you click on an Image the image opens up as a popup. Here is the example
<a href="http://soumghosh.com/otherProjects/natalierosscms/175-2/" rel="nofollow">http://soumghosh.com/otherProjects/natalierosscms/175-2/</a></p>
<p>Click on the first image and close it. Then clic... | javascript jquery | [3, 5] |
3,627,843 | 3,627,844 | Dynamically adding attributes to <head> tag ASP.NET | <p>How would I go about finding on my ASPX page (from codebehind) and then adding the attribute "runat=server" to it?
I have tried using <code>Page.header.attributes.add(...)</code> and<code>(HtmlHead) Page.FindControl("head");</code> The second one obviously won't work as the Head tag doesnt have an ID.</p>
<p>I ca... | c# asp.net | [0, 9] |
1,606,285 | 1,606,286 | How to show an image proportional to the screen | <p>I want to display .png image on TextView. Someone will use tablet, someone will use smartphone, how can I show an image proportional to the screen? Do I have to create different images and use in the code something like <code>if(screen == smartphone) setView(Png1.png)</code>?</p>
| java android | [1, 4] |
5,298,154 | 5,298,155 | how to valid only digit in textbox in firefox? | <p>i have problem to valid digit in textbox in IE 9 and firefox 4 & 5,
is any one know ?
i try all previous question's answer but still face problem,
i just want use to enter only digit in textbox,
i am use asp.net too for code language.</p>
| javascript jquery asp.net | [3, 5, 9] |
5,306,136 | 5,306,137 | calculate values on basis of text box entry | <p>i have one row of text boxes which is generated with php loop and mysql id.</p>
<pre><code> <input class="text_field1" id="<?php echo $i ?>" name="q_<?php echo $row['pid']; ?>"
type="text" style="width:150px" />
<input disabled="disabled" class="text_fieldD" id="p_<?php ech... | php jquery | [2, 5] |
195,653 | 195,654 | How to load more items when we scroll down like in google places | <p>How to load more items when we scroll down like in google places</p>
<p><a href="http://www.google.com/city/portland/" rel="nofollow">http://www.google.com/city/portland/</a></p>
<p>When we scroll it has load items</p>
| c# asp.net | [0, 9] |
3,645,069 | 3,645,070 | Find in URL string from Array of values? | <p>I am trying to find array values in URL string? check the condition If requested URL contains array values then pass condition otherwise redirect to google.com </p>
<p>example</p>
<pre><code> $(document).ready(function () {
var urls = ["/dept/ce/",
"/dept/cs",
... | javascript jquery | [3, 5] |
2,308,877 | 2,308,878 | asp checkbox not firing jquery function | <p>Ok I have checked several solution and have no luck. What the heck am I doing wrong. I can retrieve the ID from check_controls doing an alert onload but not on change</p>
<pre><code><asp:CheckBox ID="chkAutoReverse" runat="server" CssClass="" Width="200px"
Text="Auto Reverse:" TextAlign="Right" AutoPostBac... | jquery asp.net | [5, 9] |
195,486 | 195,487 | Are there in jQuery some methods for handling period of time data type? | <p>I'm new in jQuery and all of my search requests bring me to methods for handling Date/Time data types. But I need to handle some period of time, given in number of minutes. I want to convert, for example, <code>1708</code> minutes to <code>"1 day and 4 hours"</code> expression, ignoring minutes. There is <code>TimeS... | c# javascript jquery | [0, 3, 5] |
974,363 | 974,364 | Handling double quotes in mailto: | <p>I am working on Visual Studio 2008 and ASP.net.. I want to preview email that is created in the web page. I have problems in handling double quotes in the email body. </p>
<pre><code>string emailbody = "\"some text\"";
btPreviewEmail.OnClientClick = "javascript:location.href='mailto:?subject=Chalk Pushcast Softwar... | javascript asp.net | [3, 9] |
5,542,654 | 5,542,655 | How to read a word document in asp.net | <p>I want to read a word document in asp.net and i need to convert the document words into bytes .So how to do that ?</p>
| c# asp.net | [0, 9] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.