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,231,952
2,231,953
Notify when GPS activated
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/11446428/broadcast-reciever-for-gps-state">Broadcast reciever for GPS state?</a> </p> </blockquote> <p>Is there a listener that can notify me when GPS is activated? (When user enabled "GPS" button from the notif...
java android
[1, 4]
1,939,584
1,939,585
jquery ajax encoding problem!
<p>i send ajax requests with jquery, and i have a function:</p> <pre><code>$('input').ajaxSuccess(function(e, xhr, settings) { console.log(xhr.responseText); }); </code></pre> <p>Ajax response ara russian letters in utf-8, all server (apache, php) and files are in utf-8 but response text is something like this:</...
javascript jquery
[3, 5]
1,110,099
1,110,100
Passing a string to a javascript and retrieving it further
<p>I am passing a string to a javascript through call by reference. The string is a text retrieved from a textarea field. The problem is that a single word is retrieved properly, but when I send multiple text it shows a problem. The sample code is like this in a php file, The txt is the name of textarea field. If I typ...
php javascript
[2, 3]
5,334,673
5,334,674
how to bypass mozilla confirm alert box
<p>When i try to go to last visited page on my website in mozilla i get this message "To display this page, Firefox must send information that will repeat any action (such as a search or order confirmation) that was performed earlier". Can anyone tell me how to bypass this. This is so frustrating. i have used php on my...
php javascript
[2, 3]
2,136,247
2,136,248
how to get apache log like debugging in Android logcat
<p>I am currently using a webview to load a webpage which contains lots of javascript and having lots of trouble debugging what exactly gets loaded and when in the webview .</p> <p>Then I saw this post where the op seems to be using apache log to monitor webpage load events in his webview. <a href="http://stackoverfl...
java android
[1, 4]
4,644,785
4,644,786
Is parentsUntil() the best function to use? Jquery
<p>Given the html:</p> <pre><code> &lt;div class="a"&gt; &lt;div class="b"&gt; &lt;div class="c"&gt; &lt;div class="d"&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="d"&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; </code></pre> <...
javascript jquery
[3, 5]
4,750,108
4,750,109
Correct use of OnDOMReady function
<p>The following on DOM ready function, if I have 2 functions that use this declaration:</p> <pre><code>$(document).ready(function(){my Function here}); </code></pre> <p>Now should I use two tags, one for each function or should I declare both functions in one of these tags, both inside the: <code>$(document).ready(f...
javascript jquery
[3, 5]
3,612,724
3,612,725
media conversion library/plugin preferably php
<p>I am looking for an media conversion library that can convert and compress various media i.e both audio and video files to various formats.</p>
java php
[1, 2]
4,623,159
4,623,160
add "readonly" to <input > (jQuery)
<p>How can i add "readonly" to a specific <code>&lt;input &gt;</code>? .attr('readonly') does not work.</p>
javascript jquery
[3, 5]
4,172,930
4,172,931
Change a javascript function to a jquery
<p>I am using Jquery to load a page into a div. The page the gets loaded is using a javascript. How can i change the javascript shown below into a jquery</p> <pre><code>window.onload = function(){ new JsDatePick({ useMode:2, target:"AdddueBy", dateFormat:"%d-%m-%Y" }); ne...
php javascript jquery
[2, 3, 5]
3,965,333
3,965,334
Recursively replaced element with editor (and back) breaks event listeners
<p>Background: There are some values on my website which shall be editable via JavaScript and Ajax. The Ajax is working fine and I can edit values but after I saved the value I cannot edit it again without reloading the page.</p> <p>I reduced the problem to this: The original element gets replaced with a HTML form. Wh...
javascript jquery
[3, 5]
3,183,327
3,183,328
Allocating and deallocating event on a button
<p>I am busy having a problem with allocating a new event to an existing button that was created in the designer.</p> <p>Now here is the button that was created prior to runtime which is inside the modalpopupexteder5 -</p> <pre><code>&lt;asp:Button runat="server" ID="btnClose" Text="Close" OnClick="btnClose_Click" /&...
c# asp.net
[0, 9]
1,127,367
1,127,368
regular expression text merge
<p>Is this possible in reg-ex?<br><br></p> <blockquote> <p>subject='fox';<br> adjective='quick brown';<br> verb='jumps';<br> text='The &lt;&lt;adjective&gt;&gt; &lt;&lt;subject&gt;&gt; &lt;&lt;verb&gt;&gt; over the lazy dog.'<br></p> </blockquote> <p><i>reg-ex would return:</i><br></p> <blockquote> <p>'The...
php javascript
[2, 3]
3,574,382
3,574,383
Best practices in using Javascript in ASP.NET in a pre-AJAX and pre-jQuery era
<p>I would like to know what are the best practices in using Javascript in ASP.NET in a pre-AJAX and pre-jQuery era. What I meant by pre-era is not the time before AJAX/jQuery was created, but rather the time before it is popularized and widely adopted (by a significantly large number of programmers).</p> <p>i.e. Is ...
asp.net javascript jquery
[9, 3, 5]
478,503
478,504
calling single javascript function for each php variable fetched from database, multiple countdown program
<p>I am trying to get a multiple countdown system, event day and minutes being fetched from database. There can be many such events. After getting the event date, i pass this values to a javascript function which on client side runs for every 1 sec using the setTimout function. This works fine for one event. However fo...
php javascript
[2, 3]
1,551,388
1,551,389
Problem while switching between activities in Android
<p>0 down vote I having the same problem, I got a runtime error when I press the button that should change the activity</p> <pre><code>package com.example.LocationTracker; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.view.View; im...
java android
[1, 4]
5,734,353
5,734,354
How to fetch serialized jquery array to a php page?
<p>heres my code ive serialized checboxes and i want it to be pass to a php page through ajax. NOTE that i am not using forms. and i cant use forms. i am using click event on a button to pass the value.</p> <pre><code>$('#res-button').click(function (){ var pid = $('#pid'); var name_res= $('#name_res'); va...
php jquery
[2, 5]
1,188,217
1,188,218
Is it uploading individual files or all files at once?
<p>I am using an AJAX fIle upload feature and what happens is that in this jsfiddle <a href="http://jsfiddle.net/NujcX/2/" rel="nofollow">here</a> , every time a user appends a question by typing in a question in the textarea and clicking "Add Question", it adds a table row of the question number, the question and more...
php javascript
[2, 3]
4,237,183
4,237,184
Export Grid view to excel and save excel file to folder
<p>I want to save excel file which export data of grid view.I have written code to export gridview data to excel but i dont know, how to save exported file.</p> <p>Following is my code to export gridview into excel :</p> <pre><code> Response.Clear(); Response.Buffer = true; Response.ContentType = "application...
c# asp.net
[0, 9]
3,361,172
3,361,173
Dynamically generated textfield not showing the value set by javascript
<p>I have a dynamically generated textfield (using the following code):</p> <pre><code>echo "&lt;div&gt;&lt;table width='100%'&gt;&lt;tr&gt; &lt;td&gt; Date: &lt;input type='text' class='span2' id='currDate'&gt; &lt;/td&gt;&lt;td rowspan='2'&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;"; </co...
php javascript jquery
[2, 3, 5]
626,902
626,903
Move li elements with certain class into and div
<p>I am trying to use the .append function in jquery. I have a div with li elements in it. They have different classes, lets say odds and evens. I would like the li's with the class "odd" moved into another div with li's in it. How can I do this? Here is my setup: <strong>Edit</strong>. This was in valid markup, I...
javascript jquery
[3, 5]
1,792,203
1,792,204
Trying to do some Obfuscation, How should I approach this particular case?
<p>I currently have an assignment that is really pushing my limits so I need some help on how to approach this. </p> <ol> <li>We have a set of 25 results</li> <li>We are using a jquery plugin to vertically scroll through these 25 results, the container displays five results at a time. </li> <li>When viewing the source...
php javascript jquery
[2, 3, 5]
1,961,962
1,961,963
Check which element has been clicked with jQuery
<p>I am trying to use an 'if' statement to determine which element was clicked.</p> <p>Basically I am trying to code something along the lines of:</p> <pre><code>if (the element clicked is '#news_gallery li .over') { var article = $('#news-article .news-article'); } else if (the element clicked is '#work_gallery ...
javascript jquery
[3, 5]
4,246,018
4,246,019
alerting user on other user login with jquery ajax
<p>how can i alert the user already logged in for the new user logged in........suppose....</p> <p>user1 one is currently logged in and user2 is offline. i want to alert user1</p> <p>when user2 logged in............</p> <p>how can i achieve this</p>
php jquery
[2, 5]
4,762,523
4,762,524
How to make a sign light up
<p>Apologies if this doesn't qualify as a StackOverflow question.</p> <p>I have a jpg of a sign that's made up of 100 light bulbs. I'd like to use jQuery to animate the bulbs so that they flicker on after a moment's hesitation.</p> <p>I'm thinking that it would require two images and that I would animate hiding/show...
javascript jquery
[3, 5]
915,515
915,516
Nested jquery selectors triggering both parent and child specific events
<p>I've got a table with the following structure</p> <blockquote> <ul> <li>table#Main</li> <li><ul> <li>tbody</li> </ul></li> <li><ul> <li><ul> <li>tr.Row</li> </ul></li> </ul></li> <li><ul> <li><ul> <li><ul> <li>td </li> </ul></li> </ul></li> </ul></li> <li><ul> <li><ul> <li><u...
javascript jquery
[3, 5]
4,350,463
4,350,464
If URL contains anything, then fire a Javascript function
<p>Basically, if the URL/<code>window.location</code> contains absolutely any variable whatsoever (past domain.com/, of course), I'd like javascript to execute something. </p> <p>Currently, I have the following jQuery code which only executes when <code>window.location</code> contains the exact wording "#hash", but as...
javascript jquery
[3, 5]
3,263,598
3,263,599
how to send table value to printer?
<p>I want to send table values to printer.That table contails more than 50 records.so there is scrollbar or pagination on that table.Below the printer there print button, if click the button those all values should go to printer.</p> <pre><code>function print(){ window.print(); window.opener.document.location = windo...
javascript jquery
[3, 5]
3,573,279
3,573,280
issue with insertBefore()
<p>I got a small object which has to append new rows to a table.. It works fine in most cases, but if there is a table inside some of the rows (in the "root" table) the object doesn't append to the proper table!?</p> <p>I have been doing a bit of debugging and found the line where it all goes wrong.. If DEBUG is set a...
javascript jquery
[3, 5]
5,689,629
5,689,630
My function calls are not working?
<p>I wrote code first without using functions to prototype, and of course, it worked fine: </p> <pre><code>$(function() { $(".PortfolioFade img") .mouseover(function() { popup('PORTFOLIO'); var src = $(this).attr("src").replace("images/paperclip.png", "images/paperclip-black.png");...
javascript jquery
[3, 5]
3,112,732
3,112,733
Creating modal window through jquery
<p>I am trying to create a mask (modal) on my whole website and for this i tried :</p> <p><strong>css</strong></p> <pre><code> #mask { position:absolute; z-index:9000; background-color:#000; display:none; } </code></pre> <p><strong>js</strong></p> <pre><code> $('body').append(' &lt;div id="mask"&gt;&lt;/...
javascript jquery
[3, 5]
2,349,776
2,349,777
jQuery get DOM element as string
<p>Say I have</p> <pre><code>$(":input[type=text]:first") </code></pre> <p>How do I get</p> <pre><code>&lt;input type="text" value="" size="28" maxlength="140" tabindex="1" placeholder="search" class="textbox" name="q" autocomplete="off"&gt; </code></pre> <p>Assuming I run this on SO?</p> <p><strong>Update</strong...
javascript jquery
[3, 5]
5,183,750
5,183,751
Generate code to an html interface
<p>Am new to html, so I've created an html page but i want to generate code to this page like creating queries, links to other pages...<br/><br/> what should i do to generate code to my html pages? </p>
c# asp.net
[0, 9]
3,071,846
3,071,847
Javascript Match on parentheses inside the string
<p><em>How do I do a .match on a string that has parentheses in the string? String1.match("How do I match this (MATCH ME)");</em></p> <hr> <p>None of the answers are getting me what I want. I'm probably just doing it wrong. I tried to make my question basic and I think doing that asked my question wrong. This is the ...
javascript jquery
[3, 5]
5,219,546
5,219,547
Can I get the frequency of a raw sound in real time in Android?
<p>I would like to build an app that can tell the frequency of a musical note played through a androids mic as quickly as possible.</p> <p>Disclaimer: I am not building a another tuner app, I promise ;)</p> <p>I am aware of the difficulty of getting the frequency, I will probably use FFT.</p> <p>But how quickly can ...
java android
[1, 4]
2,020,986
2,020,987
How to unescape Javascript in PHP
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/2934563/how-to-decode-unicode-escape-sequences-like-u00ed-to-proper-utf-8-encoded-char">How to decode Unicode escape sequences like &ldquo;\u00ed&rdquo; to proper UTF-8 encoded characters?</a> </p> </blockquote> ...
php javascript
[2, 3]
421,448
421,449
Get the value of a twitter bootstrap radio button. JQuery
<p>I'm using the Radio-button from twitter bootstrap: <a href="http://twitter.github.com/bootstrap/javascript.html#buttons" rel="nofollow">http://twitter.github.com/bootstrap/javascript.html#buttons</a>.</p> <p>In my html in looks like this:</p> <pre><code> &lt;div class="btn-group" data-toggle="buttons-checkbox"&gt...
javascript jquery
[3, 5]
1,210,720
1,210,721
jquery find element at a particular position
<p>Is there a method in jquery to select an element located at a particular position for example select the element that is located at left:100 and top:300 ? in absolute position</p> <p>It would be nice if I could select and element located in a range of positions, </p> <p>for example select the element that is loca...
javascript jquery
[3, 5]
2,968,468
2,968,469
javascript pass table data to php script
<p>I have a table (that can be fairly large....say 200x200 px) where each cell has a background color, and a small image in it. The user will be able to click the cell and change the color/symbol (the symbol represents the color), via jQuery/Javascript. How can I pass the table data to a PHP script so it can be assembl...
php jquery
[2, 5]
3,937,070
3,937,071
save keydown in array and executes
<p>im creating a simple 2d game, and I want save the keydown keys into array, and execute them inisde a loop, so the user can hold a key and make it look like the chartater is moving non stop.</p> <p>i got a setInterval function that act like a game Timer, and it just loop it self all the time. i added a listener and ...
javascript jquery
[3, 5]
2,031,002
2,031,003
How to set width of a html tablerow in C#
<p>this is a follow up question to the following question link:</p> <p><a href="http://stackoverflow.com/questions/11112112/how-to-hide-columns-in-asp-net-webform">how to hide columns in ASP.NET webform</a></p> <p>following the answer that i got from the above link, i am using </p> <pre><code> System.Web.UI.HtmlCont...
c# asp.net
[0, 9]
3,648,774
3,648,775
How does jQuery invoke methods of objects when an Array of jQuery objects is returned?
<p>After passing a string "selector" into the jQuery function:</p> <pre><code>$('#onenode') </code></pre> <p>An array of jQuery object's is returned.</p> <p>One of the methods of these object's is "html", which is why:</p> <pre><code>$('#onenode').html('hello!'); </code></pre> <p>Works.</p> <p>However...</p> <p>...
javascript jquery
[3, 5]
2,142,990
2,142,991
Function won't execute
<p>I'm trying to create a function that will execute on a click, on the condition that a variable is set to 0;</p> <p>However, the function will not execute, even if the variable is set to 0. (I am using jquery)</p> <pre><code>var menuVisible = 0 ; $('#links').click(function(){ if (menuVisible = 0) { ...
javascript jquery
[3, 5]
195,219
195,220
How to get sibling td value?
<pre><code>&lt;table&gt; &lt;tr&gt; &lt;td&gt; &lt;asp:Label ID="lblUnitPrice" runat="server" Text='&lt;%#Eval("UNIT_PRICE") %&gt;' /&gt; &lt;input type="text" id="txtUnitPrice" style="display: none" /&gt; &lt;/td&gt; &lt;td&gt; &lt;asp:LinkButton ID="linkBt...
javascript jquery asp.net
[3, 5, 9]
5,031,222
5,031,223
how to do new lines? [ textarea -> jquery -> p tag ]
<p>I'm doing something very similar to the stackoverflow question preview only much more basic.</p> <p>user types in text area -> keyup shows what they've typed in preview</p> <p>new lines aren't working</p> <pre><code> $('input, textarea').keyup(function(){ var value = $(this).attr('value').r...
javascript jquery
[3, 5]
547,207
547,208
jQuery Extension accepting a String not just an Object
<p>This might be a silly question, but I can't seem to find a solution...</p> <p>I just wanted to make a <strong>isNullOrWhiteSpace</strong> extension (same name as the .NET one), to determine if a string is <code>'', '0', 0, undefined, null</code>. Nothing crazy.</p> <p>Now doing it with a typical jQuery extension, ...
javascript jquery
[3, 5]
4,905,570
4,905,571
Communication model: C++ and Java
<p>Pals,</p> <p>I have a requirement to establish a communication channel between C++ and Java layer of my application for the exchange of objects and their properties.</p> <p>I have got the following options:</p> <ol> <li>XML / SOAP</li> <li>Postgre SQL</li> </ol> <p>Can you please advice me the Pros &amp; Cons on...
java c++
[1, 6]
2,046,067
2,046,068
How can I prevent a user from middle clicking a link with javascript or jquery
<p>I want to prevent the user from being able to middle click a certain link to open a new tab. I have tried the following:</p> <pre><code>$(window).on('mouseup', '.sptDetails', function(e){ e.preventDefault(); if(e.button == 1){ return false; } }); </code></pre> <p>This doesn't seem to work.</p>
javascript jquery
[3, 5]
612,125
612,126
how to show message box in asp.net
<p>I'm using C# to create a website and I'm trying to show a message box. I'm trying to use JavaScript for this situation and it runs if I do the following:</p> <pre><code>Response.Write("&lt;script LANGUAGE='JavaScript' &gt;alert('Login Successful')&lt;/script&gt;"); </code></pre> <p>However if instead I do this:...
c# javascript asp.net
[0, 3, 9]
4,500,133
4,500,134
How to call another method inside BroadcastReceiver onReceive method in android?
<p>Hi i am using BroadcastReciever to track the incoming messages and send the messages to the database for storage through webservices. But whenever i called a method inside the onReceive method it is saying error message <code>unable to start receiver</code>.</p> <pre><code>package com.android.message.alert; import...
java android
[1, 4]
5,024,803
5,024,804
Find the Jquery version using normal Javascript
<p>Is there any way to find the version of Jquery using normal plain javascript. I know to do this using JQuery itself by using the following code.</p> <pre><code>jQuery.fn.jquery; </code></pre> <p>or</p> <pre><code>$().jquery; </code></pre> <p>But this wont works for me beacuse I am not allowed to use Jquery code....
javascript jquery
[3, 5]
1,876,688
1,876,689
Why declare inside of $(function () { ... })?
<p>The application I am looking at loads an external javascript file which looks like this:</p> <pre><code>$(function () { // Don't allow browser caching of forms $.ajaxSetup({ cache: false }); var dialogs = {}; var getValidationSummaryErrors = function ($form) { // We verify if we created i...
javascript jquery
[3, 5]
2,574,001
2,574,002
How to use Global.asax file to redirect the user?
<p>What should be done if I want to redirect a user based on their ISO Codes?</p> <p>And how should I detect a website user's IS Code in the first place? Like I know there are these server variables that we use to detect Client IP and all (HTTP_FORWARDED_FOR, REMOTE_ADDRESS, etc) but information about them on the man...
c# asp.net
[0, 9]
821,364
821,365
How to convert data
<p>I want to convert 2014-04-26T19:22:28.000+05:30 into dd-mm-yyyy.</p> <p>I use :</p> <pre><code>SimpleDateFormat formatter, FORMATTER; formatter = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.000hh:mm"); String oldDate = BeginDate.getProperty("BeginDate").toString(); // "2011-03-10T11:54:30.207Z";`enter code here` ...
java android
[1, 4]
972,351
972,352
An else if statement for unwanted characters and too short a length of characters for edittext
<p>I have an <code>edittext</code> variable named <code>getusername</code> I wish to use in an if statement.</p> <p>I wish to check for unwanted characters like !,@,#,$,%,^,&amp;,*,(,),etc. I also want to make sure the text from edittext will not be less than 3 characters.</p> <p>Right now i'm using <code>getusername...
java android
[1, 4]
2,187,786
2,187,787
Rebuild ASP.NET Web Application via code
<p>Currently I force ASP.NET to rebuild a web application by changing the web.config. However, I would prefer to do it via C# code (including clearing cache etc). How could I go about doing this.</p>
c# asp.net
[0, 9]
2,160,195
2,160,196
display div based on dropdown selection
<p>This is my code. I want display a div tag based on dropdown list. But I got the error is no css rule found.</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;script&gt; $(document).ready(function () { $('.group').hide(); $('#option1').show(); $('#selectMe').chang...
javascript jquery
[3, 5]
5,723,778
5,723,779
Play Sound Javascript/Jquery
<p>I would like to request help from experts here but I would like to explain my requirements first. I am building an Ajax Based application that will run on our local intranet network.</p> <ol> <li>Now upon every return of request from my Ajax, I need to play a sound in my client browser.</li> <li>I want to put a sou...
javascript jquery
[3, 5]
4,902,597
4,902,598
auto page scroll when page reached 70% of page height using jquery
<p>I have a page that displays users feeds. I've setup 20 feeds per page and after that users can click on "see more" and it will again display 10 more feeds.</p> <p>But I want to make it like facebook and twitter where pages are automatically scrolled when we go to the bottom. I have modified my javascript to do the ...
javascript jquery
[3, 5]
5,190,941
5,190,942
Clean way of using polymorphism at the presentation layer - ASP.NET
<p>A lot of times, I find myself doing UI control manipulation in the code behind and wanted to find a clean way of doing this.</p> <p>Use Case: A drop down has CSS1 style, editable in Edit mode but has CSS2 style, view only in View mode</p> <p>I can achieve this by simply have a set of switch case state...
c# asp.net
[0, 9]
5,941,357
5,941,358
Date format in javascript
<p>How do i convert date to month day year format in java script and access year,month,day from the converted format.</p> <p>we have converted the date by using our custom date formate Date.Format(obj, "mm-dd-yyyy").once the date is converted we need to get year from the formated date.obj indicate current date with dd...
javascript jquery
[3, 5]
2,130,369
2,130,370
Get textfield values from JavaScript driven form and append those values to a div
<p>I need to grab two textfield values on button submit and then insert them into some HTML and append that HTML to a div.</p> <p>The test page is at <a href="http://seafoammedia.com/dealer/quote/form.php" rel="nofollow">http://seafoammedia.com/dealer/quote/form.php</a> with the main javascript file being jtracker.js<...
javascript jquery
[3, 5]
135,306
135,307
KeyDown event is not firing second time
<p>In my masterpage, i'm having one textbox for searching purpose. if we press enterkey it is redirecting to some otherpage. But it is happening only one time. next time when i enter some text and press enter key, it is not going to the Keydown event handler.</p> <p>Code: </p> <p>javascript Code:</p> <pre><code> fun...
asp.net javascript
[9, 3]
3,570,754
3,570,755
How to find the Vertical size of a window displaying a web page
<p>I have an ASP.NET Site that has a single Master Page. On one of my pages in this site I display a PDF file as the content of the page.</p> <p>I need a way to know the size that I can make the PDF control so that I do not create a scroll bar for the webpage (the PDF control has it's own scroll bar).</p> <p>I was a...
asp.net javascript
[9, 3]
4,962,401
4,962,402
How use C# methods in JavaScript?
<p>I have C# library with some logic for my app.</p> <p>How I can call C# methods from my web project(HTML/JavaScript/PHP/Apache)? Maybe exists some method like using Java Applet or <code>WebView.addJavascriptInterface()</code> in Android?</p>
c# java php javascript android
[0, 1, 2, 3, 4]
4,547,051
4,547,052
Need to get the clients machine name or his Mac address using asp.net c#
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/1342738/get-the-mac-of-asp-net-website-user">Get the MAC of ASP.NET website user</a> </p> </blockquote> <p>i am developing a local web application. I need to get the Mac id of the client PC that access the web s...
c# asp.net
[0, 9]
3,598,657
3,598,658
Make element absolute, but do not change its position on the screen
<p>I have an element that is relative positioned on the page, relative to its parent element.</p> <p>How can I make this element absolute with jQuery.css, but without changing the actual position on the screen? It should stay in the same place, and it should be absolute relative to the document body</p> <p>$.css('pos...
javascript jquery
[3, 5]
789,172
789,173
Print multiple files using PHP or javascript
<p>I am working on a Job Portal Web Application. AM creating functions for Admin. That he should see three checkboxes for employee like: 1.) Html Form 2.) CV (in .doc) 3.) Certificates (could be many)</p> <p>Admin will check the boxes, he/she want to print then click on one "Print" button. And it should print all file...
php javascript
[2, 3]
5,816,576
5,816,577
How to get four following text inputs after each checkbox?
<p>I am traversing checkboxes like this:</p> <pre><code>$('.day').each(function() { // here I need to get the following 4 text inputs in the HTML // and set some attributes on them }); </code></pre> <p>After every checkbox there are four text input fields (there are also some div, span tags for CSS around ...
javascript jquery
[3, 5]
2,282,233
2,282,234
Is there a way to return a list of all the image file names from a folder using only Javascript?
<p>I want to display all images from folder located in server in image gallery.</p> <p>Is there a way to return a list of all the image file names from a folder using only JavaScript or jquery?</p> <p>Also I want to count no. of image files in similar folder using only JavaScript.</p> <p>Is there any want to count n...
javascript jquery
[3, 5]
5,064,136
5,064,137
Session variables vs local variables
<p>Whenever I have to store anything in the session, I have picked up the habit of minimizing the number of times I have to access the session by doing something like this:</p> <pre><code>private List&lt;SearchResult&gt; searchResults; private List&lt;JobSearchResult&gt; SearchResults { get { ...
c# asp.net
[0, 9]
4,044,470
4,044,471
Pop-Up with ASP.Net Button Click that is not blocked with popup blocker
<p>I currently have an ASP.Net button click event that does a few things (including change session variables) prior to registering a new startup script As is, when a user clicks the button, their pop-up blocker blocks the popup even though it was technically triggered by a user event; I imagine the browser doesn't see...
c# javascript asp.net
[0, 3, 9]
5,526,277
5,526,278
I'd like to detect the value chosen from a drop down, and then pass that to the page url and reload
<p>I have some javascript sorting my ul, alphabetically a-z or z-a. It works fine on page one, but if there is more than one page it ignores the list on page 2 etc.</p> <p>So, instead of using javascript to sort the li's, I want to pass the selection back to the page's query and reload</p> <p>here's my script, most o...
php javascript
[2, 3]
4,347,910
4,347,911
android If else statements
<p>So my issue is, I get a wierd sound problem (it repeats the hit sound really fast) when I use an if statement to determine if I hit the monster and lived or if I hit the monster and died. Using classic mario logic, if I land on top I live, if not then I die. I didn't have a problem until I added two different if sta...
java android
[1, 4]
4,332,664
4,332,665
Converting between image file types in c#
<p>On my website, I'm receiving image files for upload. I accept files of type jpg, png, bmp or gif. If the user uploads a jpg, png or gif I want to save the file keeping the file type, but if the user uploads a bmp I want to convert it to a png.</p> <p>I have a method stub like this:</p> <pre><code>private void prof...
c# asp.net
[0, 9]
1,283,761
1,283,762
UniqueID optimized for android device
<p>I am trying to generate a unique id for android phones and tablets. I found an interesting function but with my brand new galaxy tab 2 it does not work. Here is my function :</p> <pre><code>public String generateId(TelephonyManager tm, ContentResolver resolver) { final String tmDevice, tmSerial, androidId; ...
java android
[1, 4]
46,407
46,408
How to write the javascript function calling the asp.net button click() event in asp.net?
<p>i am writting the javascript function like this</p> <pre><code> function PreviewImg(imgFile, labelid,frameid) { labelid.innerHTML = imgFile.value; document.getElementById('btnupload').click(); } </code></pre> <p>Above code <strong>document.getElementById('btnupload').click();</strong> is the error but firfox brow...
javascript asp.net
[3, 9]
3,726,092
3,726,093
Find height of rendered/visible text
<p>I know how to get this height of a font: <img src="http://i.stack.imgur.com/U3fL1.png" alt="enter image description here"></p> <p>By placing the text in a div and getting offset height of the div.</p> <p>But I would like to get this actual height (Which will depend on font family): <img src="http://i.stack.imgur.c...
javascript jquery
[3, 5]
1,883,753
1,883,754
ajax call with jquery
<p>I want to make an ajax call after every 1 min but the succeeding call should be made only after the preceding ajax call was completed. For example ajax call 2 should be made only after ajax call 1 is completed. I know how to make a function execute every 1 min with setInterval. thanks in advance</p>
javascript jquery
[3, 5]
1,923,769
1,923,770
how to add list item through jquery in ul?
<pre><code> &lt;ul id="content"&gt; &lt;li&gt; &lt;label class="desc"&gt;Album Title:&lt;/label&gt; &lt;div&gt; &lt;input type="text" class="field text full required" name="album[title]" id="album_title" /&gt; &lt;?php echo form_error('album[title]', '...
javascript jquery
[3, 5]
1,428,581
1,428,582
Print RTF file to default printer on client side using Jquery or javascript
<p>I am creating an <code>.rtf</code> file based on user submitted form for php web application. Until here it's fine.</p> <p>Now I need to print this <code>.rtf</code> file on client side default printer silently without any <code>rtf</code> tags in it(print rtf file directly as it is as we have, when we open <code>....
php javascript jquery
[2, 3, 5]
5,612,622
5,612,623
How to upload & crop image using jquery/javascript?
<p>Friends,</p> <p>I know how to post a form to webserivce or php page using jquery. But can somebody tell me how to upload the image using jquery to webservice. also i want to crop image with fixed height &amp; width JCROP is plugin Please can somebody suggest me guideline about how to do these things in proper manne...
javascript jquery
[3, 5]
3,999,181
3,999,182
Learn Java or C++
<p>I am a C programmer , have no experience in JAVA. I will be taking an online course of algorithms from tomorrow but it is in JAVA . In December second week I have regionals of ACM ICPC and for that I require to learn C++ or JAVA , and I have some experience in C++ before as it is quite similar to C. </p> <p>Now I ...
java c++
[1, 6]
2,592,724
2,592,725
Problem while inserting html control in my database in Asp.Net
<p>My problem is that I'm inserting HTML control using Server.HtmlEncode() method <code>&lt;a href=''&gt;Apply now!&lt;/a&gt;</code> in my database through text box but whenever I'm inserting it throws an exception. </p> <p>My Code is Here</p> <pre><code>textbox1.text=Server.Server.HtmlEncode("`&lt;a href=''&gt;Appl...
c# asp.net
[0, 9]
2,341,840
2,341,841
Show Alert Message When Input Is Too Short using jQuery
<p>I am trying to display an alert message when the input is shorter than given limit, using jQuery. Unfortunately, my code isn't working, therefore, seeking your help. </p> <p>Here are the codes I am using.</p> <p>HTML</p> <pre><code>&lt;input type="textarea" name="message" id="message" row="20" col="50" /&gt; &lt...
javascript jquery
[3, 5]
3,248,164
3,248,165
How can I overload abstract constructor in derived class
<p>I have an abstract constructor and a derived class like follows:</p> <pre><code>abstract ab { ab(); } class dc { dc(); } </code></pre> <p>I want to execute first the constructor of the derived class and then execute the constructor of the abstract class</p> <p>Please give me an example.</p>
java php
[1, 2]
4,722,245
4,722,246
How to update tuples in Javascript?
<p>(Not sure if I am using the correct terminology, in Python that is called a tuple. Hope it makes sense.)</p> <p>I would like to refactor the following method. The only difference is the <code>enddate/startdate</code> respectively, therefore there is no need to repeat the code.</p> <pre><code>function datepicker_re...
javascript jquery
[3, 5]
4,970,599
4,970,600
What advantages can I get from learning C++ if I'm mainly a C# Programmer?
<p>Recently I've started to notice a lot of smirks and generally rude comments whenever I mention C#. Everyone I talk to either says learn Python or learn C++. </p> <p>Python is a nice language, I get it. But I don't find much use for it right now (<strong>for my use cases</strong>), and C++ I heard is a faster langua...
c# c++
[0, 6]
1,240,345
1,240,346
"Tag" (like keyword tag) multiply e-mails in input with validation
<p>I am looking for a simple jQuery script that I can call on a input field.</p> <p><strong>When user input e-mails in the field and then presses SPACE or ENTER it should tag the e-mail.</strong></p> <p>Very simple, but haven't been able to find such a script. Does it exist?</p> <p>NOTE: NOT this one: <a href="http:...
javascript jquery
[3, 5]
27,599
27,600
How to keep a value in JavaScript
<p>After doing an async $.ajax call, I need to highlight the table cell that was updated.<br> Right now I'm using $td in the global name space, which of course is a wrong idea.</p> <p>Q: How do I keep the value of $td when the jqXHR is called back? I think the answer has to do with closure, but I don't know.</p> <pr...
javascript jquery
[3, 5]
1,446,219
1,446,220
Can we make dropdownlist in asp.net automatically post back the first item in the list
<p>Here's the simple code:</p> <pre><code>protected void DropDownList1_SelectedIndexChanged1(object sender, EventArgs e) { string word = DropDownList1.SelectedItem.Text; generateSynomyn(word); } </code></pre> <p>This code is not executed when I select the first item on the index. In order to execute the co...
c# asp.net
[0, 9]
5,392,459
5,392,460
return a php associative array to javascript array
<p>I am trying to return a php associative array to javascript array through ajaxRequest.responseText</p> <p>Here's what I do.</p> <p>First in php, I do this: </p> <pre><code>$encoded = json_encode($thisarray); echo $encoded; </code></pre> <p>If I echo $encoded, I get {"a":"apple,arrow","b":"boy,bank","c":"cat,cam...
php javascript
[2, 3]
465,790
465,791
Android Activities and sub-Activities
<p><br> I am new in Java and Android and now I have a follow problem. I want to pass String[] str variabe from one activity to another and show list of my string.<br> I have read <a href="http://developer.android.com/resources/tutorials/views/hello-listview.html" rel="nofollow">http://developer.android.com/resources/tu...
java android
[1, 4]
742,677
742,678
Get elements in jQuery where "x" attribute = "y"
<p>How can I change the attribute of an element, depending on another attribute?</p> <p>For example, I have 2 <code>&lt;a&gt;</code> elements. They both have the class <code>myClass</code>. One of the elements has <code>rel="1"</code> and the other has <code>rel="2"</code>. I wish to only change the <code>z-index</cod...
javascript jquery
[3, 5]
973,757
973,758
how we can covert a string to boolean?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/263965/how-can-i-convert-a-string-to-boolean-in-javascript">How can I convert a string to boolean in JavaScript?</a> </p> </blockquote> <p>I have a select list with 2 options in it, <code>yes</code> or <code>no<...
javascript jquery
[3, 5]
332,864
332,865
Errors attempting to publish a project from Visual Studio Express 2008
<p>I am attempting to publish an application to a local intranet site, and am getting the following errors:-</p> <pre><code>Unable to add 'ControlPanel.aspx' to the Web site. 550 ControlPanel.aspx: Access is denied. Unable to add 'Default.aspx' to the Web site. 550 Default.aspx: Access is denied. . . . Unable to a...
c# asp.net
[0, 9]
3,118,641
3,118,642
how to make auto Resize
<p>let say there are three column in a container, if i minimize the width of any element then adjacent element should cover the area by maximize it's width. <a href="http://jsfiddle.net/sadrana/SrJfu/6/" rel="nofollow">my live example on jsfiddle</a> What i want :<br> <strong><em>1. if any element resize (minimize or...
javascript jquery
[3, 5]
3,876,707
3,876,708
how to set a default dropdownlist selecteditem
<p>I have a login page where user enters Username(textbox), Password(textbox), and location(dropdownlist) then login. </p> <p>On the server page, for the location dropdonwlist I have a connection string to access SQL server database to get all locations from location table and bound the data to the dropdownlist. </p> ...
c# javascript
[0, 3]
2,934,650
2,934,651
Read folder in website in asp.net
<p>I want a website and read all the elephants and folders.</p> <p>A site in the taxbox when I got all the files and folders to the list of my site</p> <p>In Asp.net</p>
c# asp.net
[0, 9]
2,683,496
2,683,497
How to format date to match specific pattern?
<p>I need to format <strong>DateTime.Now</strong> to match this pattern <strong>Example:</strong> 10-March-2011.</p> <p>How can I accomplish it?</p>
c# asp.net
[0, 9]