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,907,960 | 2,907,961 | High performance JS map for int-string pairs | <p>I need a high performance map in Javascript (hashmap or whatever) that maps <code>int</code>(s) to <code>string</code>(s). The map would be used to build some sections of the webpage after dom is ready. I know simple javascript object also works like a map but I need to work with best performance. </p>
<p>I would l... | javascript jquery | [3, 5] |
2,015,727 | 2,015,728 | Using ADB to make a phone call after a time out | <p>Can the pc use ADB command android to make call?If it can,How to?</p>
<p>I have a text file containing a telephone number and a time.</p>
<p>How can I use JavaScript to count down from this time,and then use ADB to make an Android phone call to that number?</p>
<p>Thanks</p>
| javascript android | [3, 4] |
2,626,696 | 2,626,697 | How to get real object from Jquery? | <p>How to get real object from Jquery selector result? Example:</p>
<pre><code> $("form").first().id != $("form").first().attr("id")
</code></pre>
<p>so this mean result somehow wrapped/delegated with jquery how to unwrap it?</p>
| javascript jquery | [3, 5] |
3,668,809 | 3,668,810 | How to bind a classes property to a TextBox? | <p>I have a Customer class with a string property comments and I am trying to bind it like this:</p>
<pre><code><asp:TextBox ID="txtComments"
runat="server"
TextMode="MultiLine" Text=<%=customer.Comments %>>
</asp:TextBox>
</code></pre>
<p>However, it gives me the error:<... | c# asp.net | [0, 9] |
2,173,287 | 2,173,288 | C#, ASP.NET - NullReferenceException - Object reference not set to an instance of an object | <p>Definition of variables in use:</p>
<pre><code>Guid fldProId = (Guid)ffdPro.GetProperty("FieldId");
string fldProValue = (string)ffdPro.GetProperty("FieldValue");
FormFieldDef fmProFldDef = new FormFieldDef();
fmProFldDef.Key = fldProId;
fmProFldDef.Retrieve();
string fldProName = (string)fmProFldDef.GetProperty("F... | c# asp.net | [0, 9] |
75,226 | 75,227 | Hide navigation bar in master page depend on my user role | <p>Hi i having a question when using web form, and i have a master page that contain my navigation, and i would like to ask is it possible after i login, my navigation bar can be customize base on different role (admin, student, staff)..</p>
<pre><code> <asp:ContentPlaceHolder runat="server" ID="FeaturedCont... | c# asp.net | [0, 9] |
2,137,112 | 2,137,113 | Why this very simple javascript/jquery code won't work correctly | <p>I have a very simple JavaScript/jquery code which won't just work correctly.
The problem seems to be that positioning of the div with id 'circle' does not seem to get calculated when the loop is run.
Just need to know why the problem is occurring and if any fixes available.</p>
<p>Here is the link <a href="http://j... | javascript jquery | [3, 5] |
1,905,943 | 1,905,944 | Javascript reset function won't work after successful submission of a web form | <p>I am new to JavaScript. I am working in Visual Studio with ASP.NET and I have a simple form. I also have a JavaScript function to validate the form and a JavaScript function to reset the form. The validation and submission work fine. However, after submitting the form, I cannot get the JavaScript reset function to w... | javascript asp.net | [3, 9] |
1,421,502 | 1,421,503 | Accept the input and check the mask in the reverse way | <p>I need to develop an javascript function to check the mask reversely.
It means,
if I set the mask "###:##",</p>
<ul>
<li>When I type "1" it shows, "1"<br> When I
type "2" it shows, "21"
<br> When I type "3"
it shows ,"3:21"<br>
etc..</li>
</ul>
<p>Is it possible to develop like that??
I have no idea how to start ... | javascript jquery | [3, 5] |
5,055,592 | 5,055,593 | Android querying external MySQL database | <p>I had some problem understanding the following line of code. What exactly does it do and how does it help me query the database from android </p>
<pre><code>$q=mysql_query("SELECT * FROM people WHERE birthyear>'".$_REQUEST['year']."'");
while($e=mysql_fetch_assoc($q))
$output[]=$e;
print(json_encode($output)... | php android | [2, 4] |
5,319,007 | 5,319,008 | how to kill a phonefacade in between in android through python? | <p>I am using "phoneDialNumber ApI" it makes a call of near around 45 seconds to other mobile , how i can kill it in between? </p>
| android python | [4, 7] |
671,853 | 671,854 | What do I need to do to show the calendar when button is clicked? | <p>I am trying to do a calendar which pops out when a button (...)is clicked, but I am stuck and don't know what I have to do. Below is the code I am using. I am using visual studio 2010 and C# as my programming langauge.</p>
<pre><code><asp:textbox id="TextBox1" runat="server"></asp:textbox>
<input typ... | c# asp.net | [0, 9] |
3,024,663 | 3,024,664 | Grabbing param value from #id=3333 | <p>I have this,</p>
<pre><code>var stateObj = { foo: "foo" };
function change_my_url()
{
if (window.history && window.history.pushState){
history.pushState(stateObj, "page 2", "foo.html?id=3333");
}else{
location.hash = '#id=3333'
}
}
</code></pre>
<p>In case window.history isnt su... | php javascript | [2, 3] |
2,860,950 | 2,860,951 | what exactly does the keyword prototype do in jquery? | <p>Is the keyword (or method?) prototype in jquery kind of like extension methods?</p>
<p>i.e. all classes will have this functionality available to it going forward?</p>
| javascript jquery | [3, 5] |
2,672,601 | 2,672,602 | How I can create an extension method for asp.net page | <p>How I can create an extension method like "Html.DisplayTextFor" in Asp.net mvc ? I mean I need an extension for my page class in asp.net like "Page.DisplayTextFor" how I can implement it. I have created this :</p>
<pre><code> using System;
using System.Collections.Generic;
using System.Linq;
using Sy... | c# asp.net | [0, 9] |
466,104 | 466,105 | What is the difference between those two statements? | <p>What is the difference between those two statements?</p>
<p>A:</p>
<pre><code>$(document.getElementById('timer-' + endTimes[i].nid)).removeClass('hidden-timer').text('');
</code></pre>
<p>B:</p>
<pre><code>$('#timer-' + endTimes[i].nid).removeClass('hidden-timer').text('');
</code></pre>
<p><strong>[EDIT]</stro... | javascript jquery | [3, 5] |
3,222,423 | 3,222,424 | How to get Tab Index of active/focused control on page using javascript | <p>I have controls on my page, is there any way I can get the tabIndex of active control or focused control?</p>
<p>Thanx</p>
| javascript asp.net | [3, 9] |
5,722,672 | 5,722,673 | How Login page is working in Jquery mobile? | <p>I made a login page, i got the jquery code Can anybody explain me this CODE!??
Line by line! so that i know how the hell it is working! i have the code but i dont know how its work.. i am not that good in service integration and stuff</p>
<pre><code>$(document).ready(function() {
$('#loginForm').submit(fun... | javascript jquery | [3, 5] |
5,629,124 | 5,629,125 | data import from excel facing an issue | <p>I am importing data from MS Excel.
The code i have written is,</p>
<pre><code>var ConnectionString = "Provider=Microsoft.ACE.OLEDB.12.0;" + "Data Source=" +
uploadfile.PostedFile.FileName + ";" + "Extended Properties=Excel 12.0;";
OleDbConnection objConn = new OleDbConnection(sConnectionString);
objConn.Open()... | c# asp.net | [0, 9] |
4,443,215 | 4,443,216 | will php/apache ever support multi threading? | <p>i mainly focus on the web, i think i will never create desktop applications.</p>
<p>so i think it's better for me to focus on typical web languages like php.</p>
<p>i know an advantage java has over php is multi threading though.</p>
<p>will php ever support this feature in the future?</p>
<p>thanks</p>
| java php | [1, 2] |
5,573,982 | 5,573,983 | onchange without click on another location | <p>I used onchange on an input element, but the event handler function won't run until the field loses focus.</p>
<p>I want the function in onchange to run in real time. Onkeyup doesn't seem to be a solution, because it will trigger the function when any key is pressed, even if it doesn't change the field contents (fo... | javascript jquery | [3, 5] |
266,948 | 266,949 | Image size validation | <p>is it possible to validate file image size with jquery class orjavascript ? </p>
<p>Can i do that ? I made some research but did not reach anything</p>
<p>Thank you</p>
| javascript jquery | [3, 5] |
5,238,651 | 5,238,652 | getting data from child window | <p>I an working on a project and has encountered a problem. please view the following code. </p>
<pre><code><iframe name="stus" id="stus" style="display:none;"></iframe>
<form name="water" id="water" method="post" autocomplete="off" action="components/com_pocketsea/assets/new/water.php" target="stus"&... | php javascript jquery | [2, 3, 5] |
811,173 | 811,174 | Translating or Interpreting JavaScript from PHP | <p>Any tips on running JavaScript code from PHP? I'm trying to run a javascript function and get its return value. This is a LOT easier in this case than translating it myself into PHP. Would <a href="http://pecl.php.net/package/spidermonkey" rel="nofollow">Spidermonkey</a> be good for this task, or something else? <... | php javascript | [2, 3] |
1,308,166 | 1,308,167 | Java Class Declaration Grammar | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/745756/java-generics-wildcarding-with-multiple-classes">Java Generics Wildcarding With Multiple Classes</a> </p>
</blockquote>
<p>I was reading an Android app's source code and I came across a grammar problem. B... | java android | [1, 4] |
4,182,460 | 4,182,461 | Cannot get disable button to work | <p>Hey guys, quick question, I have this javascript/jquery function that basically wraps an input in image brackets, and the first part of the function works, but the button does not disable after and I cannot figure out why (last line does not work). If anyone has an idea, let me know. Thanks in advance.</p>
<pre><co... | javascript jquery | [3, 5] |
1,312,750 | 1,312,751 | How to do repeated actions in Android? | <p><strong>I use such code:</strong> </p>
<pre><code>t = new Timer();
t.schedule(new TimerTask() {
@Override
public void run() {
//some action
}
}, 30000, 30000);
</code></pre>
<p>If I wrap up application(click Home) and after that recover application then task is canceled. How to solve that proble... | java android | [1, 4] |
2,235,605 | 2,235,606 | How to use method get value in "input[type=radio]" | <pre><code><script>
$(document).ready(function(){
$('#btnSubmit').bind('click', function(){
var option = $('#form input[type=radio]').val();
if(!option){
alert('Answer empty');
return false;
}
$('#form').submit();
});
});
</script>
<form id="for... | php jquery | [2, 5] |
1,519,929 | 1,519,930 | Using PHP and C++ for data exchange? | <p>Is it possible to send data from C++ to PHP? I have wrote a server in C++ that connects to a database, and I was wondering if it is possible at all to use the socket library built into PHP to connect to the socket server written in C++. Would it just be PHP itself? I mean, would I not use JavaScript (AJAX) to call a... | php c++ | [2, 6] |
323,514 | 323,515 | I want both values before and after submitting a form | <p>I have a simple form and inside there are two input fields text type.
for example if input has initially value like "Hello" and later on I have changed it to "Hi" and then I submit this form. </p>
<p>I want to see this both values, anyone suggest me please </p>
<p>markup</p>
<pre><code> <form action="index... | javascript jquery | [3, 5] |
2,981,379 | 2,981,380 | How can I get my Web application to communicate with my Desktop application? | <p>I have developed a Web and windows application, both in C#.NET. Now, what I would like to do is when a button is clicked on a particular page in the web application, a signal has to be sent to the windows app saying a link has been clicked. How could I do this really easily? I would like to stay away from socket pro... | c# asp.net | [0, 9] |
1,583,546 | 1,583,547 | How can I select with jQuery elements that have been included using Javascript? | <p>So I have a menu that gets added using this function:</p>
<pre><code>function loadContent() {
$(".navbar").load("navigation.html");
}
</code></pre>
<p>navigation.html looks like this:</p>
<pre><code><ul>
<li><a href="home.html" class="first">Home</a></li>
<li><... | javascript jquery | [3, 5] |
971,807 | 971,808 | Allow value -1 when clicking on a button and link, but just one time (the first time clicked upon) without disabling the button/link | <p>I have the following script:</p>
<pre><code><script language=javascript>
function process(v){
var value = parseInt(document.getElementById('v').value);
value+=v;
document.getElementById('v').value = value;
}
</script>
<input type=test size=10 id='v' name='v' value='3... | javascript jquery | [3, 5] |
4,437,206 | 4,437,207 | How to combine PHP and Javascript together? | <p>I have a function in my Javascript script that needs to talk with the PHP to get the data in my database. But I'm having a small problem because I start the PHP in the for loop in Javascript, and then inside that for loop I get the data in my database. But the pointer in the for loop inside the PHP code is not worki... | php javascript | [2, 3] |
440,653 | 440,654 | Jquery working with two or more variables at the same time | <p>I am having code like this:</p>
<pre><code> var input = $('input');
var select = $('select');
var text = $('textarea');
var name = $('#name');
var email = $('#email');
var phone = $('#phone');
var subject = $('#subject');
var messag... | javascript jquery | [3, 5] |
4,987,883 | 4,987,884 | Replacing Data in a Field (3 Page Form) | <p>OK, I'm trying to do something within a 3 Page Active 4D form powered by Javascript, and it is this...</p>
<p>On page 1 a user selects a value from a pull down menu.</p>
<p>Page 2 is where all the functionality I need happens, and here is what I need to happen.</p>
<p>I have to use something along the lines of Ge... | javascript jquery | [3, 5] |
5,768,985 | 5,768,986 | dynamic table in android | <p>Click on below Link</p>
<p>I giving you small example for it, but first you want to retrieve data from webservice and it in your arraylist.</p>
<p>Right?</p>
<p>now you want to follow this link which will help you lot.</p>
<p><a href="http://www.4shared.com/file/BGDgBv1q/TableLayoutDynamic.html" rel="nofollow">h... | java android | [1, 4] |
647,895 | 647,896 | jQuery: Javascript throws Error "The operation is insecure" when setting value | <p>I am trying to find a fallback solution for browsers who do not interpret the placeholder attribute for input elements.
I have this simple jQuery Script but it throws an Error </p>
<pre><code>SecurityError: "The operation is insecure.
this.value = val;"
</code></pre>
<p>Here's my script:</p>
<pre><code>$('documen... | javascript jquery | [3, 5] |
962,371 | 962,372 | accessing php array in js using json_encode | <p>I am using php and JS in my code.My requirement is I need to fetch the value from my-sql database and display into drop down list dynamically.I am populating the dropdown with JS but fetching the value with php(a usual thing).
So the problem I am facing is once I get the value from php code and encode it using json_... | php javascript | [2, 3] |
195,083 | 195,084 | JQuery: How to properly indent a string when looping over dom elements | <p>Code is here <a href="http://jsfiddle.net/Ea7hd/1/" rel="nofollow">http://jsfiddle.net/Ea7hd/1/</a></p>
<p>Basically my output needs to match the indentation of the html elements as they appear in the textarea. </p>
<p>The problem is that when I am looping through all the elements in the textarea I have no way of... | javascript jquery | [3, 5] |
2,719,651 | 2,719,652 | getting root folder of application | <p>I am trying to get the root folder of the application. I have used the following code, but this gives the bin folder, but what I need is the root folder of the application. Is it possible to get this?</p>
<pre><code>// This is the full directory and exe name
String fullAppName = Assembly.GetExecutingAssem... | c# asp.net | [0, 9] |
1,100,071 | 1,100,072 | Android onTouchListener on LinearLayout | <p>I have a linear layout with few child components in it. I have onTouchListener on the linearlayout. I want onTouch event to trigger when I touch child components of the linear layout too.</p>
| java android | [1, 4] |
5,086,080 | 5,086,081 | Empty input type file doesn't work in IE | <p>I wrote this simple javascript code:</p>
<pre><code>$("input[type='file']").attr("value", "");
</code></pre>
<p>It works in Firefox and Chrome but not in IE (I tried in IE9)</p>
<p>What's the good approach to empty the input type file value ?</p>
<p>Thank you</p>
| javascript jquery | [3, 5] |
4,003,238 | 4,003,239 | JQuery Lightbox compatible with IE6,7,8 and easy to customize? | <p>Looking for a Lightbox which is jQuery based, compatible with IEr (and naturally all major browsers), lightweight and easy to customize (like border thickness and color) and be used for submitting forms. The form is in the lightbox. Planning to use with ASP.NET (not that it matters but a plus if it works well with i... | asp.net javascript jquery | [9, 3, 5] |
2,638,709 | 2,638,710 | Wait for a function to finish before if()else() | <p>I have this:</p>
<pre><code>var myError;
function getNames(user,location){
myError=null;
//Make an Ajax Call (this takes some time)
//On Success do this:
if(//Some Condition){
myError=false;
}else{
myError=true
}
}
function first(){
getNames(user, l... | javascript jquery | [3, 5] |
4,534,367 | 4,534,368 | paginate_links not work in child theme | <p>i am using that code. its show the pagination but when i click on second page its show not found.</p>
<pre><code>$big = 999999999; // need an unlikely integer
echo paginate_links( array(
'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ),
'format' => '?paged=%#s%',
'current'... | php jquery | [2, 5] |
1,516,065 | 1,516,066 | how to get page html in httpmodule? | <p>I want to replace commented html token with text in httpmodule endrequest.
How to get the page html in httpmodule?</p>
| c# asp.net | [0, 9] |
4,198,920 | 4,198,921 | Flashing Page For Split Second Before Fade In | <p>Below is my code, it flashed the site for about a split second before it loads the page how do I stop it from doing this so it just fade in the Divs smoothly when the new page is loaded?</p>
<pre><code>$('#home').animate({'opacity' : 0}, 0);
fadeInDivs(['#home']);
function fadeInDivs(els) {
e = els.pop();
$(e).dela... | javascript jquery | [3, 5] |
5,130,122 | 5,130,123 | Change image source if file exists | <p>I have <a href="http://jsfiddle.net/rcebw/3/">http://jsfiddle.net/rcebw/3/</a></p>
<p>The point of this is I will have numerous of these <code>inlinediv</code> divs. Each one has 2 divs inside it, one which holds an image and one which holds a link. These are generated dynamically from a list of the subsites on ano... | javascript jquery | [3, 5] |
5,372,870 | 5,372,871 | Label showing "System.Web.UI.WebControls.Label" | <pre><code>double peratusE = ((double)(bilanganE / calonAmbil)) * 100.00;
Label peratusELabel = row.Cells[16].FindControl("peratusELabel") as Label;
peratusELabel.Text = String.Format("{0:0.00}", peratusELabel);
</code></pre>
<p>i use that particular code to calculate the perce... | c# asp.net | [0, 9] |
5,452,899 | 5,452,900 | jQuery validate only validates one field | <p>I am using jQuery validate to validate a form. I have two text boxes on my form and only the first one will add the "This field is required." message. If I remove the "required" class from the first one the second will have the message.</p>
<p>html:</p>
<pre><code><form id="questionForm">
<div><inpu... | javascript jquery | [3, 5] |
2,680,381 | 2,680,382 | PHP pagination for unordered list | <p>item1 item2 item3</p>
<p>I've three items arranged in this order,i've used unordered list to arrange the items in this order. I did n't find a pagination plug in for items arranged in unordered list ,How do i implement pagination for this.</p>
<p>Any help would be appreciated!</p>
| php jquery | [2, 5] |
3,695,063 | 3,695,064 | jquery: $.post success handler does not take else {} | <p>Please help me in this weird situation.
This is the first time I see, when else{} does not work after if(){}. =)))</p>
<pre><code>onClick="$.post('itemupdate.php', { itemname: 'test' }, function(data) { if(data.status == 'error'){alert('error')} else {alert('OK')} }, 'json');"
</code></pre>
<p>Alert 'OK' never sho... | javascript jquery | [3, 5] |
14,366 | 14,367 | Recording audio not to file on Android | <p>I want android.media.MediaRecorder. to record audio not into file, but into same variable, for example char[ ] or byte[ ] or some other datta buffer structure. I want to send it to the remote server via Wi-Fi, can android.media.MediaRecorder provide this functionality?</p>
| java android | [1, 4] |
5,321,627 | 5,321,628 | filestream fileshare access by 2 process to read and write at the same time | <p>I got a primitive website, where the aspx webform and socket server access flat files, which stores the data. The socketserver will be accessing the same exact files to write, which is accessed by the aspx c# code for reading. I think there may be an issue with locking the files. I think it is the higher priority fo... | c# asp.net | [0, 9] |
4,101,285 | 4,101,286 | Using $.get to print page Elements | <p>I'm trying to print the elements of a page using this code:</p>
<pre><code>$('#some_button').click(function(){
var url = window.location.href;
var contents = $.get(url);
alert(contents.responseText);
});
</code></pre>
<p>but this returns a blank string, and trying to print <code>contents.status</code> ... | javascript jquery | [3, 5] |
4,592,026 | 4,592,027 | Actions durring OnCommand for GridView Edit not Showing | <p>So I have a method I wrote that will copy the selectedValue from one dropdownbox to another in a specific row. It is called from a button on the row on the OnCommand Event.</p>
<pre><code> protected void Copy(String From, String To, GridViewRow CurrentRow)
{
DropDownList FromList = (DropDownList)Cur... | c# asp.net | [0, 9] |
2,655,578 | 2,655,579 | adding a class to some images based on the alt text using jquery? | <p>how can i add a class to some images based on the alt text using jquery?</p>
<p>here is an example of the image:</p>
<pre><code><img border="0" src="images/Product/icon/26086_1_.jpg"
alt="Show Picture 1" onclick="setcolorpicidx_26086(1);"
style="cursor:hand;cursor:pointer;">
</code></pre>
<p>so if the alt... | javascript jquery | [3, 5] |
863,990 | 863,991 | What additional I need to convert a Java Application to Android Application? | <p>The title itself is my question.. </p>
<p>What additional I need to convert a Java Application to Andriod Application?</p>
<p>I have an application developed in Java J2SE with XML as back-end. I want to convert it to Andriod. Thanks in advance.</p>
| java android | [1, 4] |
403,235 | 403,236 | Creating an object array in jQuery | <p>I want to store an array of latitudes/longitudes. I have these inputs on my page:</p>
<pre><code><input type="hidden" class="latitude" value="-12.3456" />
<input type="hidden" class="longitude" value="12.3456" />
<input type="hidden" class="latitude" value="98.7654" />
<input type="hidden" clas... | javascript jquery | [3, 5] |
5,078,061 | 5,078,062 | Creating objects in superclass | <p>I have one superclass in my android project that inherits from activity and implements all the necessary interfaces. I then have three different activities that inherit from this superclass. I initialize the variables in the superclass from all the subclasses once the activities are created. Superclass method:</p>
... | java android | [1, 4] |
1,554,158 | 1,554,159 | Threading issue in android | <p>I am working on an application in android. And I am trying to update data to UI from the background thread. However, it doesn't work for some reasons. Can any one splot the error or suggest any better solution? I used Thread to read data from the bluetooth socket and update the UI with RunOntheUI. Here is the code:<... | java android | [1, 4] |
4,029,038 | 4,029,039 | dynamically name varibles in javascript | <p>How can i condense this into a loop and name the variables dynamically?<br/><br/>
this works</p>
<pre><code>var aMainNav = ['b1', 'b2', 'b3'];
aMainNav[0] = $('.mainNav li:nth-child(1)');
aMainNav[1] = $('.mainNav li:nth-child(2)');
aMainNav[2] = $('.mainNav li:nth-child(3)');
</code></pre>
<p>this doesnt</p>
<pr... | javascript jquery | [3, 5] |
5,662,791 | 5,662,792 | How can I hyperlink to a file that is not in my Web Application? | <p>Ok, my web application is at <strong>C:\inetpub\wwwroot\website</strong></p>
<p>The files I want to link to are in <strong>S:\someFolder</strong></p>
<p>Can I make a link in the webapp that will direct to the file in <strong>someFolder</strong>?</p>
| c# asp.net | [0, 9] |
4,879,293 | 4,879,294 | Is there any standard defined for Javascript showModalDialog method? | <p>I am displaying data in GridView control (Visual Studio 2008). My client has asked to show a dialog once user clicks a cell but he has asked it as a <strong>modal</strong> window. This is to edit a cell. In-cell editing cannot be used because information to be collected is complex and would require lot of controls a... | javascript asp.net | [3, 9] |
4,540,914 | 4,540,915 | I cannot get a return code from my javascript function | <p>I assign the following to a button on a modal. When the user clicks
on the button it calls submitHandler.</p>
<pre><code> var btn = {
'Submit & Close': function (win) {
var rc = submitHandler(oLink.$link, $modal);
$('#createLink').prop('disabled', false);
},
'Cl... | javascript jquery | [3, 5] |
2,475,519 | 2,475,520 | Need some simple explanation about dialog in jquery? | <p>I just started to learn jquery and JavaScript so i can implement it with my current asp.net project. However i have a hard time to grasp the idea how to make a dialog that will show up when user attempt to push delete button and then if user chose button "Yes" it will go for the delete function in code behind of asp... | javascript jquery | [3, 5] |
2,018,350 | 2,018,351 | jQuery datetime formatter | <p>Is there a working jQuery plugin (or a javascript 'library') for formatting datetimes? I found some, but they were:</p>
<ul>
<li>not working with hours and minutes (the one from datapicker)</li>
<li>not fully functional - can't give you names of months, leading zeroes, etc.</li>
<li>are just a piece of code written... | javascript jquery | [3, 5] |
3,952,995 | 3,952,996 | How to elegantly add javascript/css on demand? | <p>In my actual project, the users have the option to click a button in order to enter in an "edit mode" for their websites. After clicking the button, I have to download several JS and CSS files and I was doing it using the following code:</p>
<pre><code>//Start edition mode
(function(){
$.get('/helpers/edit/v/ed... | javascript jquery | [3, 5] |
3,975,954 | 3,975,955 | Regular expression behaving different on in c# code behind and on aspx | <p>Note: question has been edited to stay in sync with what I have tried from the commenters</p>
<p>I am trying to match an email, however when put the same expression in the code behind, vs the aspx, I seem to be getting different matches for email address. The aspx regex validator seems to be working correctly, howe... | c# asp.net | [0, 9] |
101,337 | 101,338 | display small modal window on browsers | <p>I use VS2010,C# to develop ASP.NET web app, recently I've seen some sites that display a small window (it is somehow modal) displaying on top of screen, and while it is displayed the whole screen is somehow dimmed (like having a gray alpha layer), so that user can do nothing on the main screen and focus is only on t... | javascript asp.net | [3, 9] |
3,412,039 | 3,412,040 | onclick, how can I hide a <div> and show the content behind it? | <p>How can I make this <code><div></code> hide itself when a click occurs outside of it? I would like to be able to hide it and then show the rest of the content of the page that is behind it. </p>
<pre><code><html>
<style>
.overlay
{
position: fixed;
top: 0;
left: 0;
height: 100%;
... | javascript jquery | [3, 5] |
1,353,472 | 1,353,473 | Android: ExpandableListView and context menus | <p>I'm writing an app utilizing <strong>ExpandableListView</strong>.<br>
I use a subclass of <strong>BaseExpandableListAdapter</strong> to provide data to my <strong>ExpandableListView</strong>.</p>
<p>Then I try to add context menus to this view, but these menus should be different for group an child items in the exp... | java android | [1, 4] |
5,179,573 | 5,179,574 | Question about table layouts | <p>I'm working pn an andorid app with a tabbed interface and in each tab I want to display text in grid format along with some controls to manipulate the data. Right now I'm using a single table layout but the problem is getting the formatting to work with displaying both the text and controls. The controls end up affe... | java android | [1, 4] |
4,652,967 | 4,652,968 | Template checkbox checked property is getting false in Gridview for delete operation | <p>I have used template CheckBox in gridview for multiple rows deletion, when I select multiple rows by selecting the CheckBox and perform the delete operation it seems to be selected CheckBox is not returning true on the code below.</p>
<p>protected void Button6_Click(object sender, EventArgs e)
{</p>
<pre><... | c# asp.net | [0, 9] |
1,652,242 | 1,652,243 | Receive output of python script from PHP? | <p>I want to launch a python script similar to <a href="http://www.eventlet.net/doc/examples.html#web-crawler-example" rel="nofollow">this web crawler</a>, wait for it to finish, process the data in php, then return the results to the user.</p>
<p>From what I hear, getting the output from python is trivial, but the ab... | php python | [2, 7] |
2,819,796 | 2,819,797 | Android- Image shape changed on screen rotation | <p>I created an app that uses a 9.png file as its background. The problem is, when I rotate the screen, the background shape changes weirdly. </p>
<p>I am attaching the screenshot: </p>
<p><img src="http://i.stack.imgur.com/J0SfY.png" alt="Application in normal mode"></p>
<p><img src="http://i.stack.imgur.com/tbj... | java android | [1, 4] |
248,593 | 248,594 | Is java still a relevant language? | <p>I want to learn a nice easy to use versatile language. I do know some Java, but is it relevant? Or should I move on too JavaScript with the advent of HTML5?</p>
| java javascript | [1, 3] |
5,113,442 | 5,113,443 | How to open a popup and send a JSON object to it | <p>I want to send a <a href="http://en.wikipedia.org/wiki/JSON" rel="nofollow">JSON</a> object to a <a href="http://en.wikipedia.org/wiki/PHP" rel="nofollow">PHP</a> file while my script opens that PHP file in a new <strong>popup</strong> window. Is it possible to send it via POST method (by jQuery or without it)? </p>... | javascript jquery | [3, 5] |
4,855,224 | 4,855,225 | how to determine if user left our site | <p>We're tryin to implement some kind of feedback, which I saw in MSDN web-site. More concrete when user first enters to our site, I want to show a pop-up which will ask user to leave comment rite before he would leave our web-site, and depending on user's answer( it would be some kind of confirmation box with Yes and ... | jquery asp.net | [5, 9] |
3,257,629 | 3,257,630 | how to upload folder to server in asp.net c# | <p>I think the Folder upload is supported java applet.
But how can i use java applets in Asp.net c#
Please tell me about this, without the Flash and silverlight.</p>
| c# asp.net | [0, 9] |
1,044,497 | 1,044,498 | hide toggle div when clicking control in toggle div | <p>I use a toggle div in page. I have a textbox and a dropdownlist in it.</p>
<pre><code> <div class="Search" style="display: none" >
<table width="100%" style="border: 1px solid #fff; border-radius:5px;padding:15px">
<tr>
<td width="60px">دسته بندی</td>
<td>
<a... | javascript asp.net | [3, 9] |
3,939,205 | 3,939,206 | how to clear browser cache in asp.net/javascript? | <p>In my program i need to handle with many images.I have to change images dynamically within the page. after change the images i need to refresh the page by clear browser cache.</p>
<p>is there any method to clear cache or event for getting <kbd>ctrl</kbd>+<kbd>f5</kbd> or <kbd>ctrl</kbd>+<kbd>shift</kbd>+<kbd>del</k... | javascript asp.net | [3, 9] |
5,889,286 | 5,889,287 | How can I parse a string that lacks delimiters to a DateTime using c#? | <p>Hey. I have, somehow, this string available "20100205 162206". This is a date and time without any delimiter char. </p>
<p>I need this back as a DateTime in C#. What is the best way?</p>
| c# asp.net | [0, 9] |
4,110,429 | 4,110,430 | Jquery closing in click | <p>im having a problem in a script that i download it in the web, basically what i need is a FAQ question whit the collapse panel interaction, but in this case different in the other out there i want when i click in one question it opens, and when i click in another question the question before closes and open the one ... | javascript jquery | [3, 5] |
3,957,481 | 3,957,482 | Reducing Output Page Size Perfomance Improvement asp.net | <p>I need to improve the speed of my website and perfomance.</p>
<p>I've tried everything under the book from compression handling , whitespace removal , update panels and enable view state false.. but nothing seem to work.</p>
<p>The output page size is still 764 kb.. which is quite a lot. So can you guys tell me an... | c# asp.net | [0, 9] |
3,476,140 | 3,476,141 | Is it possible to call a Javascript function from HTML independent of an event? | <p>I have a condition in php based on some session variables. If condition passes, I want to call a Javascript function which is updating my current webpage. Is it possible to place such a call to Javascript function independent of a button or a link or the window load function?</p>
| php javascript | [2, 3] |
2,384,998 | 2,384,999 | check if EndExecuteNonQuery was successful | <pre><code> insComment.EndExecuteNonQuery();
</code></pre>
<p>Am trying to insert values into a database. What I need is to know if the code was succesfull then I display a success message.</p>
<pre><code>if(insComment.EndExecuteNonQuery()){
show some message
}
</code></pre>
<p>Is that a workable option?</p>
| c# asp.net | [0, 9] |
3,410,153 | 3,410,154 | I have a connection string with AttachDbFilename as a link | <p>I have an ASPNETDB database to manage roles and membership that comes along with application.
Well its in the form of link.. Something like this</p>
<pre><code>C:\PROGRAM FILES\MICROSOFT SQL SERVER\MSSQL.1\MSSQL\DATA\ASPNETDB.MDF
</code></pre>
<p>When I used this in web.config file </p>
<pre><code><add name="... | c# asp.net | [0, 9] |
5,110,174 | 5,110,175 | assigning the result of a jsp confirm box to a php variable | <pre><code>//this is in php.
function msgbox($msg, $type)
{
if ($type == "alert")
{
// Simple alert window
?> <script language="JavaScript"> alert("<? echo $msg; ?>"); </script> <?
}
elseif ($type == "confirm")
{
// Enter Confirm Code H... | php javascript | [2, 3] |
4,358,402 | 4,358,403 | updating and deleting in grid in asp.net | <p>The updating and deleting should be done in grid through the events(on row editing,onrow updating). When we click update it should update related fields in the coresponding web page.
This should be achieved using stored procedures.
Please give some simple method to implement it.
Help me with sample code.</p>
| c# asp.net | [0, 9] |
2,508,941 | 2,508,942 | How long does the eternal worker thread runs in Android? | <p>hi I have created a thread on the main thread in android which runs for ever to perform some back end operations. so how long does this thread runs? it has been created in "onCreate" method in the activity. so does android kills such threads automatically after some time or does it run until we kill them manually? ... | java android | [1, 4] |
1,881,356 | 1,881,357 | how to call a javascript fn in Update panel on Partial postback in asp.net | <pre><code> <asp:UpdatePanel runat="server" ID="Holder" OnLoad="" UpdateMode="Always" ChildrenAsTriggers="True">
<ContentTemplate>
...
<asp:Timer ID="Timer1" runat="server" Interval="3000" OnTick="Timer_Tick" />
</ContentTemplate>
<... | javascript asp.net | [3, 9] |
4,954,765 | 4,954,766 | Dynamic Div creation asp.net | <p>I am trying to create Div dynamically on the press of button click.</p>
<p>For that i refered this link>> <a href="http://forums.asp.net/t/1349244.aspx" rel="nofollow">http://forums.asp.net/t/1349244.aspx</a></p>
<p>and made code on server side(.cs page) as follows>></p>
<pre><code>public static int i = 0;
pr... | c# javascript asp.net | [0, 3, 9] |
5,655,292 | 5,655,293 | Prevent keyboard from showing character bubble | <p>when typing on the keyboard a bubble appears to display the character that you pressed , I am looking for a way to prevent it from doing that !!</p>
<p><img src="http://i.stack.imgur.com/imGQr.png" alt="enter image description here"></p>
| java android | [1, 4] |
3,913,234 | 3,913,235 | How can I simulate a visit to a url? | <p>I have a page where a user submits an order, and after they submit it, I want to hit a url (<code>http://externalsite.com?id=12345&sessionid=abc123</code>) without actually redirecting them to the external page.</p>
<p>Is there a way to do this?</p>
| c# asp.net | [0, 9] |
789,537 | 789,538 | Project topic help | <p>I want some project ideas for my final year project.
I have learnt languages like C,C++,Java,HTML & PHP,VB,MySQL as front ends & back ends.
I was thinking of developing an online shopping website but that would be too simple, so if anyone could give me some ideas to work on.. that would be very helpful.</p>
| java php | [1, 2] |
5,796,290 | 5,796,291 | is there any keyword 'capital' in javascript? | <p>I am calling a funtion named 'capital()' but it is not working and 'capita' is working.
is it a keyword in js or wht is this ?</p>
<p>here is the code see it, test it</p>
<pre><code><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://w... | javascript jquery | [3, 5] |
4,846,432 | 4,846,433 | ASP.NET Login Control - Deny login if in a role | <p>Using the standard ASP.NET login control, I'm trying to get it to deny me login, if the user who is trying to login in a member of the cancelled group.</p>
<pre><code><asp:Login ID="Login1" runat="server" OnLoggedIn="Login1_LoggedIn" DestinationPageUrl="~/Default.aspx" FailureText="Whoops - something went wrong ... | c# asp.net | [0, 9] |
6,017,282 | 6,017,283 | Javascript Date Of Birth Textbox | <p>As a novice, I really don't know much about javascript. Kindly help me in developing a similar work-a-like Date-Of-Birth textbox like here in this link : <a href="http://ojas.guj.nic.in/GFJobApply.aspx?sid=wGvtB4mUGuc=&yr=kckKNSEPFLY=&ano=K3JOsteln/k=" rel="nofollow">http://ojas.guj.nic.in/GFJobApply.aspx?si... | javascript jquery | [3, 5] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.