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 |
|---|---|---|---|---|---|
4,326,576 | 4,326,577 | Limiting a textarea to a fixed number of chinese characters | <p>I had been given a requirement from client saying limit the textarea – 200 characters in English, it is approximate 66 Chinese characters for UTF8.</p>
<p>I wonder how do I check them whether it is chinese character or english character and calculating them in the sense of maximum length ?</p>
| php javascript | [2, 3] |
3,311,625 | 3,311,626 | Python and C++ code comparison | <p>I have the following <code>python</code> code</p>
<pre><code>for m,n in [(-1,1),(-1,0),(-1,-1)] if 0<=i+m<b and 0<=j+n<l and image[i+m][j+n] == '0']
</code></pre>
<p><code>image</code> is array defined and <code>i</code> and <code>j</code> is also defined.</p>
<p>Following is how I have converted this... | c++ python | [6, 7] |
1,402,012 | 1,402,013 | Jquery Quoting String | <p>I cannot seem to get the quotes around this statement right. No matter what combination I try.
I am really confused on how it should be quoted.</p>
<pre><code>$(#imagearea).append("<img id='"+theWord.charAt(i).toUpperCase+"'.png'" src='images/'+theWord.charAt(i).toUpperCase+"'.png'/>");
</code></pre>
| javascript jquery | [3, 5] |
5,574,314 | 5,574,315 | get text node of an element | <pre><code><div class="title">
I am text node
<a class="edit">Edit</a>
</div>
</code></pre>
<p>I wish to get the "Iam text node" do not wish to remove the "edit" tag and need a cross browser solution.
it might be something simple, but I can't think of another way of getting to it.</p>
| javascript jquery | [3, 5] |
1,939,736 | 1,939,737 | How to pass a variable className to my object function, using JQuery? | <p>I'm new to Object-Orientated-Programming. I am trying to pass a element class as a parameter to a function. I know I've missed something...see code below:</p>
<pre><code>var n = new Object();
n.mousePosition = function(class, y){
$(document).mousemove(function(e){
if(e.pageY < y){ $(class).slideD... | javascript jquery | [3, 5] |
1,103,333 | 1,103,334 | "this" reference best-practices | <h2>Duplicate</h2>
<blockquote>
<p><a href="http://stackoverflow.com/questions/23250/when-do-you-use-the-this-keyword">When do you use the “this” keyword?</a></p>
</blockquote>
<p><hr /></p>
<p>What is the best practice case of referencing "this" in any given class?</p>
<p>Basic C# Forms example:</p>
<pre><code>... | c# java | [0, 1] |
3,350,527 | 3,350,528 | How do i get Client Id of usercontrol which is inside a tabconatiner? | <p>I have a tabcontainer which contains tabpanel which in turn contains a usercontrol. If i try to get usercontrols id using </p>
<pre><code><cc1:TabContainer ID="tabContainer" runat="server" ActiveTabIndex="0" Width="100%"
OnClientActiveTabChanged="tabChanged" onChan... | jquery asp.net | [5, 9] |
4,395,359 | 4,395,360 | How to add more than one List<String> in Android? | <p>How to assign more than one List in Android?</p>
<pre><code>List<String> inc = dh.selectInct1();
ArrayAdapter<String> inc1 = new ArrayAdapter<String>(this,R.layout.list,R.id.textViewx,inc);
lvinc.setAdapter(inc1);
lvinc.setOnItemClickListener(this);
</code></pre>
<p>Here <code>dh.selectIn... | java android | [1, 4] |
5,986,364 | 5,986,365 | Java c++ Reference question | <p>In c++ we use & to represent pass by reference. Since objects are always passed by reference you do not need to use this &? Or does it not matter?</p>
<p>How do java and c++ differ in pass by value and reference. Everything in java I thought is pass by reference but it is pass by value? Why is this? So is i... | java c++ | [1, 6] |
4,053,518 | 4,053,519 | To get controls inside static function | <p>I am calling function in codebehind from javascript using webservice.</p>
<pre><code>function GetAdmissionType()
{
InitComponents();
var type="";
type=document.getElementById(dlAdmissionType.id).value;
document.getElementById(hdnAdmissionType.id).value=docum... | c# asp.net | [0, 9] |
305,967 | 305,968 | updating config file | <p>I am trying to update the app.config file of another application from my project both are in c#. I know how to update it for the project in memory but not sure how to access the app.config file of my other project. I have following code but that will change the app.config file of my current project not the other one... | c# asp.net | [0, 9] |
851,155 | 851,156 | cm to inch converter, two textboxes multply a value | <p>I Have a problem to make a cm to foot/inch converter in C#, this is what a got:</p>
<pre><code><asp:textbox id="txtFoot" runat="server"></asp:textbox>
<asp:textbox id="txtInches" runat="server"></asp:textbox>
<asp:Button id="btnAdd" runat="server" text="Count" onclick="btnAdd_Click" /&g... | c# asp.net | [0, 9] |
467,249 | 467,250 | How to extract a string from a url | <p>I have url that looks like this...</p>
<pre><code>http://www.example.com/accounts/?token=111978178853984|683b8096732be7fd725d3332-557626087|m9lSbmoYhZ6Yut4OC3smY1fRf1E.
</code></pre>
<p>from the token </p>
<p>111978178853984|683b8096732be7fd725d3332-<strong>557625434</strong>|m9lSbmoYhZ6Yut4OC3smY1fRf1E</p>
<p>5... | javascript jquery | [3, 5] |
634,036 | 634,037 | When we use a thread, will it work as a parallel process or a serial process in C#? | <p>When we use a thread, will it work as a parallel process or a serial process in C#?</p>
| c# asp.net | [0, 9] |
2,695,481 | 2,695,482 | Jquery: If form is blank load this query | <p>I've got some JQuery which monitors a form. Basically, for every keyup it will call a php file to search the database.</p>
<pre><code>$(document).ready(function() {
$("#faq_search_input").watermark("Begin Typing to Search");
$("#faq_search_input").keyup(function() {
var faq_search_input = $(this).... | php jquery | [2, 5] |
2,657,939 | 2,657,940 | Required textbox in javascript | <p>I have this code </p>
<pre><code>$(document).ready(function () {
$("#<%= chkSpecialIntegration.ClientID %>").click(function () {
if (this.checked) {
document.getElementById('<%=ddlTypeSpecialIntegration.ClientID %>').style.visibility = 'visible'; }
});
});
</co... | c# javascript jquery | [0, 3, 5] |
452,678 | 452,679 | Controls dissapearing in frames | <p>I have an aspx page which contains some drop down box, text box and a link button and a frame on the same page.
The frame loads another aspx page say Page2.aspx.
When I click the link button, the data from the drop down and text boxes are added to database and the Page2.aspx reads that data from database and display... | c# asp.net | [0, 9] |
1,351,299 | 1,351,300 | Clicking a Dynamically Generated div that opens another dynamically generated Div | <p>ok, Im going to pass on submitting how I would do this...because I dont want a patch to an otherwise crappy piece of code. Heres what Im trying to do: I use php to output some divs. A corresponding set of divs is generated with the first divs. The whole idea is that when the first div is clicked, the corresponding... | php jquery | [2, 5] |
2,752,030 | 2,752,031 | GridViewRowCommand keep fire | <p>by right my label1.text will be display by each clicks, however my label was fire during page load, and this is not what i want, so any idea can perform fire event per clicks?</p>
<p><strong>gridview property</strong></p>
<p>asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataSourceID="SqlDa... | c# asp.net | [0, 9] |
5,824,830 | 5,824,831 | Making browser vertical scrollbar return to top in ASP.NET code | <p>Does anybody know how to make the vertical scrollbar the browser window return to the top in code? Either javascript or code-behind would be fine.</p>
| asp.net javascript | [9, 3] |
2,170,711 | 2,170,712 | .Net form controls drop by one "line" after selection | <p>Yes, I realize that's a bit of a vague title but I'm having a hard time stating the problem. I have a .Net .aspx page that has a Master page, some Ajax, and an updatepanel. My problem occurs on 2 different pages but in both cases I'm either selecting a radio button or a checkbox when the behavior occurs. Immediat... | c# asp.net | [0, 9] |
4,519,205 | 4,519,206 | Detect if certain db table rows are set? | <p>Hi I want to create a script which detects if certain rows in a mysql table no longer are empty. </p>
<p>I guess i need to run a php script every 5th second which checks certail table rows. If any of them are empty it should continue updating. If not it should redirect to another php page which shows the updated/fi... | php jquery | [2, 5] |
1,060,602 | 1,060,603 | Selection does not contain a main type. Eclipse error | <p>I've made an AVD (android virtual device).
But when i try to run my application, this shows up:</p>
<p>Your project contains error(s), please fix them before running your application.</p>
<p>The error log shows the following:
NUMBER 1: res\drawable-mdpi\testbackg.png:0: error: Resource entry testbackg is already d... | java android | [1, 4] |
2,971,305 | 2,971,306 | How to animate a div at the same time as slideToggle hide/show | <p>I'm working on a new website, where I have a contact 'tab' coming from the top of the browser window. Here's the link: <a href="http://www.stefanhagen.nl/testlab/" rel="nofollow">http://www.stefanhagen.nl/testlab/</a>. If you click the tab, a contact form will appear (using slideToggle). But while the contact form a... | javascript jquery | [3, 5] |
1,741,191 | 1,741,192 | Is there a way for an ASP.NET app to show a wait screen to the user that kicks off the Application_Start event? | <p>Greetings folks,</p>
<p>The ASP.NET application I'm maintaining has a fairly long start up procedure. A number of data files are updated, etc. I've been asked if there is a way for the application to return a wait screen (static if necessary) while Application_Start is running?</p>
| c# asp.net | [0, 9] |
854,490 | 854,491 | disabled control being reenabled but still not posting back contents to server | <p>I have a couple of radio buttons that are controlling text entry into a textarea.</p>
<pre><code><tr id="trTextNote" runat="server">
<td colSpan="2"></td>
<td class="IndentedCell" noWrap colSpan="2">
<asp:textbox id="txtIncludeNote" runat="server" Width="352px" Height="46px" T... | javascript asp.net jquery | [3, 9, 5] |
2,544,496 | 2,544,497 | (Label)this.FindControl("lbl") not working | <p>I have a script that runs and tries to input a value in a label but when ever I run it I get the following error even though the label is there and the id is correct.</p>
<blockquote>
<p>Object reference not set to an instance of an object. </p>
</blockquote>
<p>Code:</p>
<pre><code>string answerLbl = "q" + re... | c# asp.net | [0, 9] |
515,642 | 515,643 | Debug-only methods or interface in Java/Android | <p>I'm a newbie to Android and Java--lots of experience with C/C++/C#.</p>
<p>I have in interface that looks like this:</p>
<pre><code>class WellNamedClass {
void greatMethodToCallWhenever() { /*...*/ }
void debugOnlyMethod() { /*...*/ }
}
</code></pre>
<p>In the the languages mentioned above, I would eithe... | java android | [1, 4] |
1,795,735 | 1,795,736 | c# - How to get reference to object A inside A's class? | <p>In my SharePoint 2010 c# / asp.net site, I have a class defined like</p>
<pre><code>namespace PDF_Library.VisualWebPart1
{
public partial class PDF_Library : Usercontrol
{
public static PDF_Library current;
protected void Page_Load(object sender, EventArgs e)
{
cu... | c# asp.net | [0, 9] |
1,141,577 | 1,141,578 | How to get the selected-row count from a list box in asp.net | <pre><code>int countSelected = ListBoxMembers.Items.Cast<ListItem>().Where(i => i.Selected).Count();
string groupName = txt_GroupName.Text;
for (int counter = 0; counter < ListBoxMembers.Items.Count; counter++)
</code></pre>
<p>I have 20 items in the list, when I select only 2 ListBoxMember... | c# asp.net | [0, 9] |
1,597,232 | 1,597,233 | Event handler reference from utility class | <p>I have this method that I'm currently putting in each page I make, I know there should be a good way to move it to a single place for ease of maintenance and simplicity. I'm just not sure how I should handle the event handler. The event handler needs to be on each page, so how would I pass in a reference to the page... | c# asp.net | [0, 9] |
4,996,615 | 4,996,616 | displays the message box two times in a row | <p>I have a problem with making message box. Here is the code:</p>
<pre><code><? php
echo "<script language=\"Javascript\"> \ n";
echo "Confirmed = window.confirm ('Are you sure you want to store data ?');";
echo "if (confirmed)";
echo "{";
echo "window.confirm ('Do you want to add any more data');";
e... | php javascript | [2, 3] |
1,444,550 | 1,444,551 | Can i access internal memory of Application of A using another apllication B? | <p>I have two applications.</p>
<p>Application - A and Application - B</p>
<p>Application - A download songs from the server and stored into the internal memory . I want to read those download files using Application - B.</p>
<p>Is it possible ? If yes then how can i do this ?</p>
<p>Thanks In Advace.</p>
| java android | [1, 4] |
1,371,474 | 1,371,475 | How to trigger a toggle function by click another click-event-handler? | <p>I have already searched the google oracle etc and found this <a href="http://stackoverflow.com/questions/3370934/trigger-second-function-in-toggle">Trigger second function in toggle()</a> similar article, but it doesnt helps me.</p>
<p>My pricip is the same, i have a toggle function which includes two other functio... | javascript jquery | [3, 5] |
3,291,554 | 3,291,555 | creating a plugin return this question | <p>it says in the documentation to allways return the this object in all cases i've seen so far you return this.each() function. So are there anyother cases other than this.each that you would return</p>
| javascript jquery | [3, 5] |
5,434,842 | 5,434,843 | asp.net error: Parser Error | <p>I'm suddenly getting below message in browser when debugging application out of Visual Studio 2008 target .net fw 3.5</p>
<p>Research online lead me to confirm the following:
The "Inherits" in markup page matches code-behind namespace class reference: "USFBugTracker.UpdateContracts". I also checked that the target... | c# asp.net | [0, 9] |
1,022,640 | 1,022,641 | Invalidate method to update interface | <p>I have the following code in the OnCreate to show a ListView with data:</p>
<pre><code>obtenerDatosTareas();
int tamaño;
tamaño = Integer.parseInt(jsonTareas.getString("tamaño"));
ArrayList<Tarea> items = new ArrayList<Tarea>();
int j =0;
while(j<tamaño){
... | java android | [1, 4] |
3,392,650 | 3,392,651 | How jQuery Snap To Elements Works? | <p>I was puzzled when I saw jQuery "Snap to element". Does anyone know how can I implement it without jQuery, with just raw javascript.</p>
<p>Thanks</p>
| javascript jquery | [3, 5] |
2,176,092 | 2,176,093 | Passing a querystring value through a javascript window.open | <p>I need to pass the pass value stored in a asp hiddenfield to a querystring using the window.open.</p>
<pre><code>onclick="window.open('../New/FeedbackV4.aspx','FeedbackWindow','width=960,height=640,scrollbars=yes,resizable=yes,status=yes')"
</code></pre>
<p>I need to get the value of the hidden field and pass it a... | javascript asp.net | [3, 9] |
76,004 | 76,005 | How to develop application for both 320x480 and 480x854? | <p>i to implement my same application for both 320x480 and 480x854 resolutions. For this purpose i copied my images in hdpi and mdpi drawable folders but still it is not working with480x854 resolution. What i must do other than this to solve my problem?
Thanks</p>
| java android | [1, 4] |
495,044 | 495,045 | setting stack size to thread seems to make no difference in android | <p>I using following thread api to set stack size , say i am assigning 1 or 64 or some small value so that i can simulate a stackoverflow exception but the value set does not seem to make any difference.</p>
<pre><code>Thread(ThreadGroup group, Runnable target, String name, long stackSize)
</code></pre>
| java android | [1, 4] |
5,737,303 | 5,737,304 | Removing Numbers from a String using Javascript | <p>How do I remove numbers from a string using Javascript?</p>
<p>I am not very good with regex at all but I think I can use with replace to achieve the above?</p>
<p>It would actually be great if there was something JQuery offered already to do this?</p>
<pre><code>//Something Like this??
var string = 'All23';
str... | javascript jquery | [3, 5] |
3,323,147 | 3,323,148 | PHP and jQuery function—only works once? | <p>I have the following function. When I click the first time, it returns a random number, but all subsequent clicks always return the same number. How come it doesn't refresh?</p>
<pre><code><script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>
<script type="text/ja... | php jquery | [2, 5] |
2,037,317 | 2,037,318 | is it a good idea to put all javascript file's content into one file to reduce server request and keep at bottom to increase performance? | <p>I use simple javascripts, jquery library and many plugins , should i make one file for all if yes then what we need to "just copy and paste and code from all file into one in needed order" or any thing else need to be considerd.</p>
<p>as stated here <a href="http://developer.yahoo.com/performance/rules.html#num_ht... | asp.net javascript jquery | [9, 3, 5] |
934,658 | 934,659 | create guid and send with confirmation link | <p>I create guid using the code this</p>
<pre><code>sGuid = System.Guid.NewGuid().ToString();
</code></pre>
<p>And passing it with the confirmation link using this:</p>
<pre><code>const string body = "To confirm 'http://www.mysite.com/verify.aspx?sGuid'Verify your account";
</code></pre>
<p>But, I find that in my e... | c# asp.net | [0, 9] |
5,225,103 | 5,225,104 | console.log says object is undefined when I call any of its members | <p><strong>The Environment</strong></p>
<p>Mozilla Firefox 11 Running MAMP and testing on localhost</p>
<p><strong>The Error</strong></p>
<p>dirObject[data] is undefined<br>
h t t p : / / localhost:8888/framework/<br>
Line 34</p>
<p><b>The Symptom</b> </p>
<p>console.log(<strong>object</strong>[<em>member</em>]);... | javascript jquery | [3, 5] |
4,277,232 | 4,277,233 | Jquery Change background color of DIV to #333 only when all checkbox is not checked | <p>I have 5 <code>div</code> with <code>class .thumb-folder</code> and inside each contains a <code>checkbox</code>.
I also have another <code>div</code> with a class <code>.alarm</code>.</p>
<p>When 1 or many <code>checkboxes</code> is checked the <code>div</code> with <code>.alarm class</code> changes background to ... | javascript jquery | [3, 5] |
3,021,819 | 3,021,820 | Extract Address component from given address text in javascript | <p>I need to extract the address component from the given address line on web. A example of address type is given below.</p>
<pre><code>CHRIS NISWANDEE
SMALLSYS INC
795 E DRAGRAM
TUCSON AZ 85705
USA
</code></pre>
<p>I need to extract the all Address component like zipcode, street no, direction , home num... | javascript jquery | [3, 5] |
427,349 | 427,350 | How to get selected value of this? | <p>I have a select tag. </p>
<p>Here is the jquery:</p>
<pre><code>$('#offer').change(
function(){
alert($(this + "option:selected").val());
});
</code></pre>
<p>I want to get the value of the option:selected of this. The above code dose not work. But if I pas a id it works <code>"#idofselecet option:selected"<... | javascript jquery | [3, 5] |
4,922,984 | 4,922,985 | Selecting range of items in unordered list | <p>I want to allow user to select range of items in my unordered list by allowing him to press cntrl key and then select first & last item, all items in between would be selected.
I'm using JQuery, Any suggestion how to approach this problem?
Here is html:</p>
<pre><code> <ul id="ulList_1">
<li>
... | javascript jquery | [3, 5] |
5,015,798 | 5,015,799 | link with onclick and _dopostback and jquery click event | <p>I have a link (a tag) which is given an onclick event and has dopostback enabled, when generated server-side.
To this link, I later bind a jquery click event.</p>
<p>The onclick event has <code>return false;</code> at the end of the function and the anonymouse function binded by jquery has <code>return true;</code>... | javascript jquery asp.net | [3, 5, 9] |
4,608,303 | 4,608,304 | PHP / jQuery : Loading browser specific page | <p><strong>UPDATE:</strong></p>
<p>The issue is that I am using a lot of Javascript & CSS3 enabled modules which also contain a lot of heavy javascript and images. If it is IE6 to 8 and in some cases even 9, I dont want to display those modules or display them using someother method. Using CSS property <code>displ... | php jquery | [2, 5] |
1,733,494 | 1,733,495 | When I click "other" radio button nothing happens. Why? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/14482174/a-small-modification-needed-in-html-script-using-javascript-i-m-not-able-to-sor">A small modification needed in html script using javascript, i m not able to sort out</a> </p>
</blockquote>
<p>HTML:</p>... | javascript jquery | [3, 5] |
1,330,777 | 1,330,778 | Using jQuery, how do I pass arg to function and then display a message from predefined variable | <p>I want to call this function, pass which type of error it is as an arg, and then display the message.</p>
<pre><code>function msgDialog(msg) {
// Define messages
var errorMsg = "There has been an error. We are sorry about that.";
var loginMsg = "Something went awry with the login. Please try again.";
... | javascript jquery | [3, 5] |
2,129,228 | 2,129,229 | How to pass( Windows credantial) authentication from site A to site B (Publish with Windows authentication) | <p>I have 2 publish website A and B.</p>
<p>B site with windows authentication</p>
<p>I want to open B site as new window from A site, so its ask for windows credential. I have credential in A site. I am opening B site using Javascript.window.open.</p>
<p>Can you pls guide me how i can set window credential for B s... | c# asp.net | [0, 9] |
2,472,552 | 2,472,553 | How do i get these values to save? | <p>I need the inserted values in this edittext to show up after i quit the application. I currently have it set up so it'll set new default values if this is the first time for a user to set up the settings page but i can't get the set values to save and load the same values. Here is my code.</p>
<pre><code> ... | java android | [1, 4] |
3,047,788 | 3,047,789 | List Items not working | <p>I made a simple list which calls other activities when a ListItem is clicked, but it is not working for me. When I click, nothing shows up. WHat is wrong ? Here is the code:</p>
<pre><code> String classes[]={"StartingPoint","Splash", "ex1","ex2"};
@Override
protected void onCreate(Bundle savedInstanceState) {
... | java android | [1, 4] |
3,847,909 | 3,847,910 | Android, collections | <p>I have a generic list in android.</p>
<p>for other hand i have a listview.</p>
<p>How i could bind the generic list into the listview?</p>
<p>Thanks in advance.
Best regards.
Jose</p>
| java android | [1, 4] |
2,423,263 | 2,423,264 | need to reset the function how do i do it | <p>I want to reset this flash in between so that i need not have to wait till the end to restart the flash, how do i reset this?</p>
<pre><code>function flash() {
var arrayId = 0,
splitSet = $('#text_original').html().split(" "),
splitSetLength = splitSet.length;
function flashWord() {
$("#flash_word").h... | javascript jquery | [3, 5] |
3,033,977 | 3,033,978 | Countdown timer get time from client's machine, need server time | <p>I'm using this javascript code in order to calculate the difference between the current time and targeted time.</p>
<p>the counter is working fine, but according to client time, not Server side time.</p>
<p>Here is the code I'm using:</p>
<pre><code> function StartCountDown(myDiv,myTargetDate)
{
var dthen = new... | php javascript | [2, 3] |
4,021,485 | 4,021,486 | php page redirect after operation | <p>I have a page (index.php) which has a php grid with subpages(<<1,2,3,4>>). An operation on any page takes you back to index.php. Using $_GET['prd_p'] or $_REQUEST['prd_p'] gives you the page number. I want users to stay on a page after an operation, that means i have to use redirects. </p>
<pre><code><form... | php javascript | [2, 3] |
5,712,039 | 5,712,040 | Checking if browser is in fullscreen | <p>Is there a way to check if a browser is currently in fullscreen mode (after the user pressed f11)?</p>
<p>Something like:</p>
<pre><code>if (window.fullscreen) {
// it's fullscreen!
}
else {
// not fs!
}
</code></pre>
<p>Thanks.</p>
<p>Steerpike's answer is pretty good, but my comment:</p>
<blockquote>
<p... | javascript jquery | [3, 5] |
3,187,085 | 3,187,086 | Port of php str_word_count to c# | <p>I'm migrating a legacy PHP application to .net, and one of the requirements is that the URLs stay exactly as before. </p>
<p>To generate friendly URLs the legacy application uses <a href="http://php.net/manual/en/function.str-word-count.php" rel="nofollow"><code>str_word_count</code></a>, I was wondering if there ... | c# php | [0, 2] |
1,236,272 | 1,236,273 | Question regarding benifits of using one over other regarding function syntax | <p>I was reading the difference between Function Declaration and Function Expression at here </p>
<p><a href="http://stackoverflow.com/questions/1013385/what-is-the-difference-between-a-function-expression-vs-declaration-in-javascript">What is the difference between a function expression vs declaration in Javascript?<... | javascript jquery | [3, 5] |
4,881,497 | 4,881,498 | How to get attributes values separately for each container present on the webpage in jquery? | <p>This question is in continuation to <a href="http://stackoverflow.com/questions/2768580/how-to-get-attributes-of-container-in-jquery">How to get attributes of container in jquer</a>, I have different containers on my webpage and all of them have <code><div id = "some values"></code> now how can I get attribute... | javascript jquery | [3, 5] |
2,852,364 | 2,852,365 | FileUpload.HasFile give always false | <p>this is my code where my FileUpload control is outside of update panel but when I click on save button which is under update panel give fileUploadAttachment.HasFile = false</p>
<p>ASPX </p>
<pre><code><asp:Literal runat="server" ID="lblAttachment" Text="Attachment:" /><asp:FileUpload
ID="fileU... | c# asp.net | [0, 9] |
3,994,222 | 3,994,223 | getting id passed through a href link in click function | <p>I've got a fairly straight forward question. Why can't I use <code>$('a.view').attr('id')</code> (Ref //1 in code) in my click function? I tried it and it failed to work but <code>this.id</code> works. I guess I primarily want to know the difference in the context of the code below:</p>
<p><strong>displayRecord.php... | javascript jquery | [3, 5] |
4,031,004 | 4,031,005 | Converting PHP code into JS | <p>I have this PHP code - </p>
<pre><code> <?php
for($i=1; $i<=1000; $i++) {
$array=array();
$array[$i]=54*$i;
$arr=array($array[$i].",");
foreach ($arr as $value) {
echo $value;
}
}
?>
</code></pre>
<p>I tried with:</p>
<pre><code>var i;
for(i=1;i<=1000;i++) {
var array = new Array();
... | php javascript | [2, 3] |
1,452,954 | 1,452,955 | converting template field from integer to hh:mm | <p>I am currently working with a gridview and would like to convert my total minutes field into hh:mm</p>
<p>This is what my code looks like now, it is taking the total minutes and giving back hh.00</p>
<pre><code> </asp:TemplateField>
<asp:TemplateField HeaderText="Hours" HeaderStyle-Width="... | c# asp.net | [0, 9] |
4,864,682 | 4,864,683 | from WPF to ASP.NET where do I start? | <p>I've been developning c# app in WPF for a few years now and I wanna start doing webapps in ASP.NET but I've now Idea where to start. Can anyone gimme some gudiance on where to start?</p>
| c# asp.net | [0, 9] |
388,661 | 388,662 | Run a function as far as a variable reaches specific values | <p>I have a canvas game which calls a function incScore every time an action is performed in the game to increase the score.</p>
<p>Inside incScore I have a few if statements to draw a particular image to represent a level number on the canvas.</p>
<p>I also want to have a sound play once per level up. The way I've g... | javascript jquery | [3, 5] |
1,586,599 | 1,586,600 | Calling a method in another class to convert an object to that class | <p>I was wondering about something very basic but that I haven't been able to figure out. I've read the similar questions, but they don't particularly answer my question.</p>
<p>Let's say I have a string. I want to convert it into a double. Now I see that there is a function known as parseDouble in java.lang.Double. H... | java android | [1, 4] |
1,073,832 | 1,073,833 | How to read all the values inside an multiple form with jquery | <p>I'm trying to get my uploading script to work with jquery but having problems with fetching the values (files) that are queued up in a multiple form.</p>
<p>I can get it to work so i can select like 10 files in a single input but when i'm trying to fetch those values i only get the first file of the 10 i added simu... | php jquery | [2, 5] |
130,451 | 130,452 | dll of flexpaper | <p>I want to use flexpaper in asp.net but don 't want to install exe of swftools (used in flexpaper to convert pdf to swf), anyone knows where to find dll of swftools used in flexpaper.also dll is compatible with flexpaper?</p>
| c# asp.net | [0, 9] |
4,687,583 | 4,687,584 | Javascript/jQuery undefined | <p>The reason that the title is named "jQuery / Javascript undefined" isn't because that I assume jQuery is a language, I do know that jQuery is a library of javascript language, just in case if some pedantic readers read this. The reason why I wrote that as the title is because I don't know what is wrong with the code... | javascript jquery | [3, 5] |
5,126,625 | 5,126,626 | Is it possible to share ONE file with strings between ASPX, C# and JavaScript? | <p>I'd like to externalize all of the strings used in the project into one file and be able to use it inside aspx, C# code behind and on the client side in JavaScript.<br />
The reason I want to do it is because many strings are shared, i.e. the same in two places. </p>
<p>Is it possible? Is there a better way?</p>
| c# asp.net javascript | [0, 9, 3] |
1,081,981 | 1,081,982 | Jquery function to detect cookies and set focus | <p>I have an asp.net login control and I have implemented the user name to be remembered using cookies. How can I use Jquery(javascript) function to detect cookies and set the focus on the password field?</p>
| javascript asp.net jquery | [3, 9, 5] |
2,025,770 | 2,025,771 | Infinite Horizontal Scrolling Div | <p>I need to have a div that will scroll horizontally as you move your mouse further to the right or the left of the div.</p>
<p>I found the Smooth Div Scroll plugin (http://www.smoothdivscroll.com/) that is really close to what I need. However, there are a couple problems with this.</p>
<ol>
<li><p>I need to be able... | javascript jquery | [3, 5] |
5,998,545 | 5,998,546 | Developing Java, C#, and .NET on the same machine | <p>I found a couple of threads that touch on development of C#/Java apps but I don't think they go along with this question.</p>
<p>I was wondering if it was a good idea to be developing Java, C#, and .NET applications on one computer. That means there's ## .NET versions installed at one time, ### Java JRE's installed... | c# java | [0, 1] |
633,143 | 633,144 | .delay() function doesn't work on attr() function | <p>I have some images in my website and with this code I would like to hide them, change the shown image and show them back, but the new picture shows instantly. I don't know what to do.</p>
<p>This is the javascript:</p>
<pre><code>$(document).ready(function() {
$('.show').click(function() {
$(this).removeClas... | javascript jquery | [3, 5] |
5,104,895 | 5,104,896 | Passing two values to jQuery Animate for backgroundPosition | <p>I need to animate a background image using backgroundPosition.</p>
<p>The problem is, if I animate on the X axis, the value passed by default to the Y Axis is CENTER.</p>
<p>This causes the image to jump vertically. I've seen some plugins to help alleviate that, but I'd like to keep the code as lean as possible.</... | javascript jquery | [3, 5] |
3,686,565 | 3,686,566 | is it possible refresh gridview when change table in DB? | <p>Refresh the Grid Automatically when table changes in the DB </p>
<p>like twitter and other facebook .</p>
<p>how to do this using any asp.net controls using c#</p>
| c# asp.net | [0, 9] |
3,522,010 | 3,522,011 | asp .net out of memory problem | <pre><code> private void GenerateThumbnails(double scaleFactor, string sourcePath,
string targetPath) {
int wi = Convert.ToInt32(Request.QueryString["dim2"]);
int hi = Convert.ToInt32(Request.QueryString["dim1"]);
using (var image =
System.Drawing.Image.FromFile(sourcePath))
... | c# asp.net | [0, 9] |
5,715,419 | 5,715,420 | Using jQuery to bind a click to the unused part of a page | <p>I'm stuck trying to bind a click redirect to the body tag on a page where there's not already another div. I have a typical header, container and footer layout but I want to place a site skin in the background for users to click on to register. </p>
<p>Here's what I have so far to target the body element:</p>
<p... | javascript jquery | [3, 5] |
5,237,674 | 5,237,675 | ASP.NET missing javascript name=form1 attribute | <p>I have a server that is not generating the Javascript name attribute. Is only happening on this one server all other servers return the javascript with name attribute. I already try removing the Web.Config setting and the server still wont return a javascript with name attribute. Server is IIS6 the Site is ASP.N... | javascript asp.net | [3, 9] |
4,172,780 | 4,172,781 | Apply class to body while watching videos | <p>Is there a way to first check if the browser is webkit or not, and then apply a class to the body when a user clicks on a video to play it? If the browser is webkit, I'd like to apply the class .blur, and if the browser is not webkit, i'd like to add a dark overlay, so the user can focus on the video. I would have N... | javascript jquery | [3, 5] |
5,239,725 | 5,239,726 | How to hide a div with asp:ListView | <p>I have a < div> with < asp:ListView>- with results of searching. I want to hide this div, and show it when ListView will be full (or better - when this part of code will be completed)</p>
<pre><code> lvSearchResult.DataSource = getSearchResult();
lvSearchResult.DataBind();
</code></pre>
<p>How can I d... | c# javascript asp.net | [0, 3, 9] |
4,447,521 | 4,447,522 | Links and docuementation to learn android programming | <p>I would like to learn the android programming. Could you guys suggest me some useful links and documentation?</p>
| java android | [1, 4] |
56,737 | 56,738 | Jquery - how to load everything except the images? | <p>I'm currently working on a WordPress addition which loads full post content (normally it shows exceprts) when asked to. I did my code like this:</p>
<pre><code>$(".readMore").click(function() {
var url = $(this).attr("href");
$(this).parent("p").parent("div").children("div.text").slideUp("slow", function () {
$... | javascript jquery | [3, 5] |
1,218,534 | 1,218,535 | jQuery.Form wont submit | <p>Im´trying to submit a form without refreshing the page, but I´m having a problem.
When I click submit the page refreshes and anothing gets posted.
Here is the code, what am I doing wrong? (I´m a newbie)</p>
<p>jQuery 1.4.2 and the jQuery Form Plugin 2.43 is present.</p>
<p>tnx</p>
<pre><code>$(document).ready(fun... | javascript jquery | [3, 5] |
404,250 | 404,251 | Fading out everything except the element that's being pointed by the mouse | <p>Sort of like a "Lightbox 2" effect but only on the elements pointed by a mouse. I don't even know how to start. Any advice would be awesome, thanks.</p>
| javascript jquery | [3, 5] |
1,024,360 | 1,024,361 | HSVToColor in Android works kinda strange | <p>Here's my code that is supposed to take a color int, convert it to HSV, add 0.5 to hue and convert back to int. But in the output, instead of 0xFF00FFFF gives -64768 ... any ideas what might be the problem?</p>
<pre><code> int c = 0xFFFF0000; /// RED
float[] hsv = new float[3];
Color.colorToHSV( c, hsv... | java android | [1, 4] |
604,369 | 604,370 | Highlight search text in textarea | <p>I have to highlight the search terms in the text area.</p>
<p>I have one text Filed,search Button and text area.</p>
<p>Quote ...</p>
<pre><code>After i have enter the search string in the text field whenever i click the search button it highlight the search terms which is available in the text area and focus the... | javascript jquery | [3, 5] |
13,799 | 13,800 | JavaScript tutorials for Kids | <p>Could you recommend fun resources to teach JavaScript/jQuery to kids (10-12 yo)? I am looking for the next step after "Hello World".</p>
<p>Thanks!</p>
| javascript jquery | [3, 5] |
1,191,564 | 1,191,565 | jQuery check external link | <p>Using Javascript or jQuery, how can I check if an external link is available? </p>
<p>An <code>$.ajax()</code> call is not available as it violates <a href="http://en.wikipedia.org/wiki/Same_origin_policy" rel="nofollow">SOP</a> (same problem as <a href="http://stackoverflow.com/questions/7234297/jquery-not-working... | javascript jquery | [3, 5] |
2,583,434 | 2,583,435 | Dynamic text in textarea - getting value | <p>My text/value in textarea it's not static - I'm chaning it. I can't get the current value.
E.g
1</p>
<pre><code><textarea>
Lorem ipsum
</textarea>
//it's defalut in html file
</code></pre>
<p>2</p>
<blockquote>
<pre><code>Putting into textarea:
Dolores is lorem ipsum
</code></pre>
</blockquote>
<p>... | javascript jquery | [3, 5] |
4,969,801 | 4,969,802 | Get the first textbox/checkbox/dropdown/file control on page and set focus | <p>How to get the first form element (input element) that occurs on a page and set focus to it?
I would like to change the practice where I have to set focus manually in every single page to a certain element like this</p>
<pre><code>$("#Clients").focus()
</code></pre>
<p>I want something universal, something that wi... | javascript jquery | [3, 5] |
5,800,307 | 5,800,308 | DragHandle Not working in TableDnD JQuery Plugin | <p>I am using tablednd plugin to drag and drop my table rows everything works fine for me but when I try to use the DragHandle property then neither the rows are dragable nor the hander comes </p>
<p>My Script is as </p>
<pre><code><script type="text/javascript">
$(document).ready(function() {
... | php jquery | [2, 5] |
5,120,271 | 5,120,272 | Passing Array of string from C# application to C++ DLL | <pre><code>string []URL = {"www.facebook.com","www.orkut.com","www.yahoo.com"};
Int32 result = URL.Length;
SetPolicyURL( URL,result );
</code></pre>
<p>this is my C# code where i am trying to pass the array of string to C++ Dll which is imported like this</p>
<pre><code> [PreserveSig]
... | c# c++ | [0, 6] |
3,230,108 | 3,230,109 | Disable input type submit when input text is empty | <p>I have this code:</p>
<pre><code>setInterval(function(){
if($("#username_error").val() == "" && $("#password_error").val() == "" && $("#email_error").val() == ""){
$('input[type="submit"]').removeAttr('disabled');
} else {
$('input[type="submit"]').attr('disabled','disabled');
}
}, 10)... | javascript jquery | [3, 5] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.