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 |
|---|---|---|---|---|---|
871,132 | 871,133 | jQuery/javascript - list box item deselect/show/hide not working in IE? | <p>I have the following javascript/jquery code, the purpose of which is to -</p>
<ol>
<li>Deselect a previously selected item from the list, if the selected item value exists in an array</li>
<li>Hide/display each list item dependent on whether they exist in the array</li>
</ol>
<p></p>
<pre><code>var list = $(row).... | javascript jquery | [3, 5] |
2,140,783 | 2,140,784 | Strange issue with checking if( double > double) | <p>Here is my code</p>
<pre><code> /**
* Remove a file or software
* @param filename name such as MyApp.apk
* @return boolean true if executed
*/
private boolean isNewer(File toinst)
{
boolean isnew = false;
//String[] commands = new String[]{"ls /system/app/app_*"};
String[] commands = new String[]... | java android | [1, 4] |
2,889,106 | 2,889,107 | Can't find folder or file created with Android App with windows file exlorer | <p>I'm creating a directory and a text file on the sdcard in one of my apps because I want to be able to move it to my computer for analysis. But I can't find the folder or the file I'm creating on my sdcard using the file browser on my computer.
I CAN find and read the file using my phones file manager but not using t... | java android | [1, 4] |
1,063,300 | 1,063,301 | Replacing a small chunk of a larger string | <p>So I've got the following code written to go through every Anchor, get it's href, and if it contains the old address, attempt to replace the old base with the new one. While there's obviously an issue long before this code with the site, i need a quick and dirty solution to this problem, so this code is what I'm goi... | javascript jquery | [3, 5] |
5,637,057 | 5,637,058 | How can I divide a dataset equally into two parts? | <p>I'm programming on Asp.net and C#.</p>
<p>I have a Dataset which is populated by records from database.
On my design page, I have two Datagrids.</p>
<p>How can I equally divide the records inside the Dataset so they can be bound to two separate datagrids?</p>
| c# asp.net | [0, 9] |
5,890,129 | 5,890,130 | Can I call another PHP script and pass $_GET variables? | <p>I currently call a PHP script from javascript and return the json data. This works great from the client. I need to make the same call to the PHP script from inside another PHP file. Can this be done?</p>
<p>My current jquery call looks like this:</p>
<pre><code>$.post('functions/get_testdata.php?type='+Type, fu... | php jquery | [2, 5] |
3,211,121 | 3,211,122 | how can i use javascript caching ? | <p>i wanna add cache to my javascrip array. how can i add cache this;</p>
<pre><code> Page.ClientScript.RegisterArrayDeclaration("Ilan", "'" + carName+ "'");
Page.ClientScript.RegisterArrayDeclaration("Ilan", "'" + where+ "'");
Page.ClientScript.RegisterArrayDeclaration("Ilan", "'" + item["Mark"... | c# javascript asp.net | [0, 3, 9] |
1,792,143 | 1,792,144 | An example of javascript__dopostback | <p>Please provide an example of calling the <code>__doPostBack</code> function.</p>
| c# javascript asp.net | [0, 3, 9] |
4,670,378 | 4,670,379 | Why can't I access properties with dot notation? | <p>I'm new to javascript. Here's what I'm looking at: </p>
<p><img src="http://i.stack.imgur.com/NMi5h.png" alt="enter image description here"></p>
<p>Within my code, I'm trying to access those properties. I've tried the following: </p>
<pre><code>result.id
result["id"]
result.CardId
result.cardId
</code></pre>
<... | javascript jquery | [3, 5] |
4,390,764 | 4,390,765 | ASP.NET File Download problem | <p>In our application we often have a button that will perform a post back, get data, convert it into excel/PDF, and stream it to the client via Response.Write or Response.BinaryWrite. This works perfectly fine when we are in a popup or not.</p>
<p>We just implemented a new feature that creates a msg file. However, ... | c# asp.net | [0, 9] |
3,685,578 | 3,685,579 | javascript in asp.net | <p>Hai Friends
I n my case i am reterieving some datas from the backend
in that one patricular column in the gridview should be hidden.it should not shown in the screen.in case if is use visible="false" the datas not showing in when clicking the event the text box how to do this pls help me.</p>
<h2>source code:</h2>
... | c# asp.net | [0, 9] |
2,771,002 | 2,771,003 | 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] |
3,606,602 | 3,606,603 | Using javascript/jquery to submit a form upon the loading of a page | <p>I wrote an array to pass variables in the GET to a search page. The search page only has 4 fields but I'm only passing the most important variables, first name and last. Here is the array:</p>
<pre><code><?php echo "<td><a href='" . matry::base_to('test/trace', array('first'=>$patient->first , 'la... | php javascript jquery | [2, 3, 5] |
702,978 | 702,979 | Looping all text fields in a form and convetring to decimal/currency | <p>I have 12 fields in a form and I'd like to loop through all these 12 text fields and convert the value in those fields to decimal/currency. These 12 (Jan to Dec) fields are numeric (currency US$) only.</p>
<p>And in the end, show in another field:</p>
<pre><code>txtPendingBalance.value = TotalValue.text - (Sum(Fie... | javascript jquery | [3, 5] |
4,657,190 | 4,657,191 | How to switch between 2 CSS colors with jQuery? | <p>I want a string of text to change color from default to #c30 when I click a button somewhere on the page, and it changes back to default when I click the button again.</p>
<p>My code looks like this:</p>
<pre><code>$("#button").click(function() {
var anno = $(#text);
if (anno.css('color') == '#c30') {
anno.css... | javascript jquery | [3, 5] |
1,105,291 | 1,105,292 | Add dynamically controls to asp placeholder in addition to controls which already exist in it | <p>Add dynamically controls to asp placeholder in addition to controls which already exist in it ?
how to add them?</p>
<p>for example - on page load I added to textboxs and labels to placeholder on button click I need to add additionally one more textbox.</p>
| c# asp.net | [0, 9] |
5,333,922 | 5,333,923 | how to make an plugin that will allow users to view previously uploaded ppt,.xls,.pdf,.doc etc | <p>I require a script or something that I can plugin to my webpage that will allow users to view previously uploaded ppt,.xls,.pdf,.doc etc in some sort of a slide show format with prev page,next page, embed and download capabilities.
How can i achieve this?
I am using .net, What java script should i use with dot net... | javascript asp.net | [3, 9] |
952,353 | 952,354 | How to transfer a variable to a external js file in javascript? | <p><strong>Case 1:</strong> I have passed a variable to a external js file like this</p>
<pre><code><script type="text/javascript">
var data1, data2, data3, data4;
function plotGraph() {
var oHead1 = document.getElementsByTagName('HEAD').item(0);
var paramScript = document.createElement("script");
... | javascript jquery | [3, 5] |
358,504 | 358,505 | Python error No JSON object could be decoded | <p>Windows 7 - Python26 - IDLE - Android SDK - Hello World</p>
<p>AVD for the host emulator loaded</p>
<pre><code>import android
droid = android.Android()
droid.makeToast("ssssssss")
Traceback (most recent call last):
File "<pyshell#2>", line 1, in <module>
droid.makeToast("ssssssss")
File "C:\Python26... | android python | [4, 7] |
916,411 | 916,412 | Add Session Value to HiddenField placed in web control | <pre><code><asp:HiddenField ID="mypostID" runat="server" Value=""/>
</code></pre>
<p>I wanted to ask if I could do something like:</p>
<pre><code><asp:HiddenField ID="mypostID" runat="server" Value="<% Response.Write(Session["ïd"])%>"/>
</code></pre>
<p>I cannot access the session from the user con... | c# asp.net | [0, 9] |
5,733,442 | 5,733,443 | jquery resize window to fit contents | <p>I have a simple popup window that shows 300x300px picture, I set up the size of the window to be 350x350px, but depending on the browser I either get scroll bars or extra white space. Is there some jquery function that would resize the browser window just to fit the content without any scroll bars or white space, no... | javascript jquery | [3, 5] |
5,214,105 | 5,214,106 | Java/C++ performance | <p>Hello guys
I've started learning Java and I've heard something about it's slowness. For an experiment I wrote two programms in C++ and Java which seem to be equal</p>
<pre><code>import java.util.*;
class Java {
public static void main(String args[]) {
long beg = System.currentTimeMillis();
for (int i = 0... | java c++ | [1, 6] |
144,943 | 144,944 | JQuery Toggle True or False on data-filter | <p>I have an image link which I want to use as a toggle button.</p>
<pre><code><img id="myToggleButton" src="myToggle.jpg" />
And what I want it to toggle is this:
<ul id="listview" data-filter="true">
So, basically I need to change from data-filter="true" or data-filter="false" and so on.
</code></pre>... | javascript jquery | [3, 5] |
1,312,825 | 1,312,826 | javasript in another file with php in it | <p>i want to tidy up my index.php.
i have some scripts which i want to move to another files.</p>
<p>atm i come to this, i hava javascript which has php in it to echo values from database.
i came to solution, copy that to another php file, like script.php, and just include it with php.</p>
<pre><code><!-- AUTO com... | php javascript | [2, 3] |
1,981,168 | 1,981,169 | Dismissing an Android popupwindow | <p>I use a popupwindow in my activity that i would like to dimiss, but i see the following documentation about the dimiss() method for popup windows:</p>
<p>public void dismiss ()
Since: API Level 1</p>
<p>Dispose of the popup window. This method can be invoked only after showAsDropDown(android.view.View) has been ex... | java android | [1, 4] |
3,773,078 | 3,773,079 | How can I pass an object in addition to json from my ajax function? | <p>I have the following code:</p>
<pre><code>function submitHandler(dialog) {
dialog.$submits.disableBt();
dialog.$message.addMessage("loading", "<li>Contacting Server, please wait ...</li>");
$.ajax({
url: href,
dataType: 'json',
type: 'POST',
data: dialog.$for... | javascript jquery | [3, 5] |
3,291,765 | 3,291,766 | Is there an equivalent for var_dump (PHP) in Javascript? | <p>We need to see what methods/fields an object has in Javascript.</p>
| php javascript | [2, 3] |
126,305 | 126,306 | Using jQuery to select multiple values of attributes across a collection of objects | <p>In this example I am selecting a bunch of 'A's within 'LI's (it doesn't really matter what I am selecting, just know I am returning a group of 'A' tags that all have the same "attribute structure").</p>
<p>I was wondering how I would go about returning a comma delimited list (or object/collection) of "attribute val... | javascript jquery | [3, 5] |
3,855,132 | 3,855,133 | Javascript/Asp.net - Changing values based on selection/enter data in other fields | <p>We got an old app DotNet 2.0 - asp.net, developers left and I'm new to DotNet/Javascript - so need help</p>
<p>Query:</p>
<p>Got 3 drop downs of Date Calender Field</p>
<p>On selection/enter date in first Date field - second and third date field should get populated</p>
<p>So lets we enter 1st Date field : 01-Ja... | javascript asp.net | [3, 9] |
2,129,056 | 2,129,057 | Make SoundManager 2 play next song | <p>I read in the documentation that this is the line of code I would need in order to do this. </p>
<pre><code>soundManager.play('aDrumSound',{
multiShotEvents: true, // allow onfinish() to fire for each "shot" (default: only fire onfinish() for last shot.)
onfinish:function() {
soundManager.play('aCymbalSound... | php javascript | [2, 3] |
2,442,653 | 2,442,654 | jQuery - How is this timeline made? | <p>I can't figure out how to make an interactive timeline with javascript. Does anybody know how the timeline on top of this website is made?
<a href="http://www.ivillage.com/getting-ready-try/6-t-124335" rel="nofollow">http://www.ivillage.com/getting-ready-try/6-t-124335</a></p>
<p>For a screencap: <a href="http://gy... | javascript jquery | [3, 5] |
2,938,869 | 2,938,870 | jQuery: how to return the appended element | <p>I use jQuery API <code>append()</code> to add a new element:</p>
<p><code>$(selector).append('<div class="test"></div>')</code></p>
<p>I want the expression return the just appended element for my further use, however it returns <code>$(selector)</code>. So, how can I let jQuery to return the just appe... | javascript jquery | [3, 5] |
962,367 | 962,368 | Pure Javascript application with ASP.NET | <p>In your opinion, what's the best way to create the server side to a pure Javascript application with ASP.NET?</p>
<p>WCF rendering JSON? IHttpHandler?</p>
<p><strong>Update</strong></p>
<p>Like GMail, that runs in the browser (with a lot of Javascript) and submit and receive data with Ajax, for example.</p>
| javascript asp.net | [3, 9] |
1,446,188 | 1,446,189 | Function to match a field | <p>I am trying to return a value (ID), matching another field (Type) in the array.</p>
<p>Object array:</p>
<pre><code>a: Array[3]
0: Object
1: Object
Desc: "Desc"
ID: "V000002"
Type: "SK"
__proto__: Object
2: Object
length: 3
</code></pre>
<p>find method:</p>
<pre><code>ns.find = function (a) {
$.each( a, ... | javascript jquery | [3, 5] |
4,248,649 | 4,248,650 | Shorten JQuery Snippet | <p>I have the following JQuery snippet:</p>
<pre><code>(someVar.next().length == 0)?someVar.fadeOut().end().find("ul").first().fadeIn():someVar.fadeOut().next().fadeIn();
</code></pre>
<p>There is a fair amount of code duplication between the two results of the conditional - i.e. someVar.fadeOut() and .fadeIn() on bo... | javascript jquery | [3, 5] |
4,168,963 | 4,168,964 | Foolproof way to get Android User's Personal Phone Number? | <p>I currently use this:</p>
<pre><code>TelephonyManager telephonyManager =
(TelephonyManager)context.getSystemService(Context.TELEPHONY_SERVICE);
String phoneNumber = telephonyManager.getLine1Number();
</code></pre>
<p>Which works like 85% of the time. But on some phones it returns nothing. I believe this is due t... | java android | [1, 4] |
5,367,992 | 5,367,993 | pause until event/function is completed with jquery or javascript | <p>Is there a way to check if a function has completed its operation using either javascript or jquery?</p>
<p>I'm trying to make a counter that slows down as the number gets bigger(decelerating the output, if you will), using setTimeout. As you know, the larger the number the longer the delay (in setTimeout). </p>
<... | javascript jquery | [3, 5] |
4,975,066 | 4,975,067 | Object reference not set to an instance of an object error message | <p>What is wrong with my code? I recently posted a question about <a href="http://stackoverflow.com/questions/11754489/calculation-in-code-behind">Calculation in code behind</a> and I tried Vinoth's answer but it gives me an error at this line:</p>
<pre><code>bool isChaffeurUsed = (bool)Session["IsChaffeurUsed"];
</co... | c# asp.net | [0, 9] |
3,708,109 | 3,708,110 | How to remove the duplicate rows by summing up the required columns in a datatable | <p>Hi all I am having my data table which is from my database is as follows</p>
<pre><code>Name Total
XYZ 20
XYZ 20
ABC 20
</code></pre>
<p>Now I would like to have my data table as follows</p>
<pre><code>Name Total
XYZ 40
ABC 20
</code></pre>
<p>I tried this <cod... | c# asp.net | [0, 9] |
4,810,288 | 4,810,289 | ... (three dots) in jQuery? | <p>I was looking at the documentation page for jScroll plugin for jQuery (<a href="http://demos.flesler.com/jquery/scrollTo" rel="nofollow">http://demos.flesler.com/jquery/scrollTo</a>) and I noticed this :</p>
<pre><code>$(...).scrollTo( $('ul').get(2).childNodes[20], 800 );
</code></pre>
<p>So, what does the three ... | javascript jquery | [3, 5] |
5,636,272 | 5,636,273 | type @, show a name list like facebook status box | <p>in facebook status box, if you type '@', then a list of friends' names appear. I am trying to implement such a status box.</p>
<p>But the problems are:</p>
<p>On typing '@', where should the 'div's location be and how to show the list? I just can't make anything out of it.</p>
<p>I went through <a href="http://s... | javascript jquery | [3, 5] |
961,730 | 961,731 | if x = 3 and z is unassigned, why does z = x-- - --x evaluates to 2? | <p>if <code>x = 3</code> and z is unassigned,<br>
why does <code>z = x-- - --x</code> evaluates to 2?</p>
<p>my professor is lecturing about this at the moment, and I'm currently stuck with this dilemma. Unfortunately, no one can explain why it happens.</p>
| c# javascript | [0, 3] |
5,983,806 | 5,983,807 | jQuery Functions Syntax Difference | <p>How does:</p>
<pre><code>(function($) {
/// code
})(jQuery)
</code></pre>
<p>differ from <code>$(document).ready(function()</code> in jquery?</p>
<p>I know what the <code>ready</code> function does. It awaits until the HTML is loaded before it starts. However, does <code>(function($)</code> do the same?</... | javascript jquery | [3, 5] |
3,755,626 | 3,755,627 | How does the StackOverflow CMD-K key binding work? | <p>How does StackOverflow take highlighted text and toggle between code formatted and not code formatted? Any ideas how they approach this problem? Thanks</p>
| javascript jquery | [3, 5] |
4,683,973 | 4,683,974 | Android: Create List<Map<String, List<ObjectType>> | <p>Can someone help me solve my problem, how to create <code>List<Map<Integer, List<MyType>></code> in while cycle. I'm slecting data from database and I'd like to add objects, that accomplish select's where condition into List and then put it into <code>Map<Integer, List<MyType></code> where ma... | java android | [1, 4] |
102,102 | 102,103 | Getting the value of a DropDownList after client side javascript modification | <p>I have a cascading DropDownList in an application. The contents of the cascading drop down list is small enough that there isn't a need to use AJAX/JSON to go to a database to get the content, I am just doing it in client side javascript like this (this is a subset of the data):</p>
<pre>
<code>
var val = typeList... | asp.net javascript | [9, 3] |
1,043,299 | 1,043,300 | Intercept when new rows are added to a table | <p>Within a legacy application I have a table to which initially only a subset of available rows is displayed in order to fit the current page size. When the user scroll down the div containing the table, automatically new rows are added via javascript.</p>
<p><strong>What I need to do is to be able to intercept <em>w... | javascript jquery | [3, 5] |
3,999,329 | 3,999,330 | Javascript: Setting variable to work in attr line | <p>Kinda of a noob question, can't seem to solve it, but I may just be tired.</p>
<p>What I'm trying to do is insert a PHP variable in to Javascript (Jquery), and then that variable in to an attr line.</p>
<p>The script I'm using to create the variable:</p>
<pre><code>$.extend({
getUrlVars: function(){
var var... | php javascript jquery | [2, 3, 5] |
4,592,507 | 4,592,508 | Javascript Adding Two Fields Together for Tiggzi App | <p>I need some help putting together a line of javascript. I Am looking to add the values of two different fields and display them in a text area. The fields are "AP" and "MP" and the text are is "TotalCost".</p>
<p>I am not sure of how to make his happen at all. Please help!</p>
| javascript jquery | [3, 5] |
2,240,120 | 2,240,121 | circle PNG image making it interactive on android | <p>Well i have a circle image that i am using imageview to show in the app </p>
<p>I need someway to make parts of this image interactive like event should fire depend on which part of the image the user is clicking , i.e. if user is clicking on the center of the image or on one of the pie slices of the circle image <... | java android | [1, 4] |
669,300 | 669,301 | Detect specific devices within android application | <p>Is there a way of telling, within the application the spcific device model that the app is being run from. For example for it to be able to tell the difference if the app is running on a Nexus S or a HTC Desire or the Samsung Galaxy Tab?</p>
| java android | [1, 4] |
2,103,767 | 2,103,768 | jquery on method not working with window or document | <p>Pretty simple code:</p>
<p>html:</p>
<pre><code><div id="wrap" style="background-color:gray; height:2000px;">
</div>
</code></pre>
<p>js:</p>
<pre><code><script type="text/javascript">
$(document).ready(function(){
$(document).on('mouseup', function(e) {
console.log(" mous... | javascript jquery | [3, 5] |
4,476,880 | 4,476,881 | jquery modal / dialog | <p>I want to use some jquery plugin to show modal. I have been using fancybox but it has problem that second fancybox can not be shown on one. I have used jquery UI but it has images and I want some plugin which is not dependent on images. Here are my requirements:</p>
<ol>
<li>to show on page load</li>
<li>to show o... | javascript jquery | [3, 5] |
1,331,161 | 1,331,162 | javascript working of closure | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/14645471/javascript-closure-not-working-as-it-should">javascript closure not working as it should</a> </p>
</blockquote>
<p>see the first code:</p>
<pre><code>var count = 0;
(function addLinks() {
var count... | javascript jquery | [3, 5] |
3,549,931 | 3,549,932 | how to bulk print using asp.net, c# | <p>when i enter roll no it displays name, marks obtained in all subjects and pass/fail of the student and i can print clicking on print button. But the problem is i want to print all students record continuously by clicking only one time on [Print] button.
I used loop like this</p>
<pre><code>for(int i=1;i<studentn... | c# asp.net | [0, 9] |
4,867,554 | 4,867,555 | Running check on empty input type of text | <p>How would I run a check after a keypress function to see if an inputs value was empty so I can do another action.</p>
<p>For example.</p>
<pre><code> $("input[name=amount]").keypress(function() {
$("table[name=apply]").show();
});
</code></pre>
<p>I want to hide the table if the user deletes all th... | javascript jquery | [3, 5] |
5,826,956 | 5,826,957 | How to get rid of diacriticial marks (~ from ñ, ' from á and é)? | <p>I want to convert diacritical characters (ñ, á, é, ...) to plain characters . I would prefer a simple regexp solution (as in: an oneliner) in JavaScript or jQuery.</p>
| javascript jquery | [3, 5] |
2,995,991 | 2,995,992 | Website in pure C# | <p>I want to learn how to make a website with C#. I know PHP, but I like the C# language better. I have tried learning how to make a website in ASP.NET which so far has really frustrated me because I really don't like ASP at all (even less than I like PHP). Something about it drives me completely insane to the point wh... | c# php asp.net | [0, 2, 9] |
39,267 | 39,268 | Update information as needed | <p>On the page I have a list of HTML-elements, each element has its status: </p>
<pre><code><ul>
<li>
<span class='status'>ok</span>
<span class='content'>content1</span>
</li>
<li>
<span class='status'>not ok</span>
... | php javascript | [2, 3] |
3,981,615 | 3,981,616 | Put LinkButton on GridView's cell and run javascript function when user click on it | <p>I add a GridView on page in UpdatePanel and put a Panel in one of cells and add LinkButton from code behind to this panel like below</p>
<pre><code>Panel pnl = (Panel)GridView1.Rows[i].Cells[4].FindControl("pnlSteps");//pnlSteps is Panel's Id
LinkButton lnk = new LinkButton();
//...
pnl.Controls.Add(lnk);
</code></... | javascript asp.net | [3, 9] |
5,104,466 | 5,104,467 | Error text on edittext box appears to be white | <p>I have the following code:</p>
<pre><code>EditText edit = (EditText) findViewById(R.id.bluetractor);
if (edit.getText().toString().equals("Blue Tractor"))
{
Toast.makeText(getApplicationContext(), "Correct", Toast.LENGTH_LONG).show();
}
else
{
edit.setErr... | java android | [1, 4] |
713,194 | 713,195 | What's the difference between $.add and $.append JQuery | <p>I was wondering and couldn't get any best documentation that what's the difference between $.add and $.append when we have single element to add or append to a container.</p>
<p>Thanks in Advance</p>
| javascript jquery | [3, 5] |
1,783,079 | 1,783,080 | How can i make disable Notification in preference in android | <p>How can i make disable Notification in preference in android?(if the user do not like the see the notification but the notification still in the app) i already doing check Box in xml</p>
<pre><code> <CheckBoxPreference
android:title="Disable Notification"
android:defaultValue="true"
andro... | java android | [1, 4] |
4,691,082 | 4,691,083 | calling jquery from a javascript function | <pre><code><html>
<head>
<script type="text/javascript">
function display(id)
{
// open jquery modal window using jquery UI
}
</script>
</head>
<body>
</body>
</html>
</code></pre>
<p>I want to open jquery modal window using jquery UI whenever the function display i... | javascript jquery | [3, 5] |
3,471,123 | 3,471,124 | I heve to get an entire path of an image by clicking a button | <p>I want the entire image path when I click the image</p>
<p>I tried </p>
<pre><code>$_SERVER['HTTP_HOST'];
$_SERVER['PHP_SELF'];
$_server['PHP_PATH];
</code></pre>
<p>etc</p>
<p>I am getting the page path only, not the image path</p>
| php javascript | [2, 3] |
1,173,777 | 1,173,778 | Control of forward and backward button of browser | <p>I have a login page and once a person is logged in , he should not be allowed to move back to login page.<br>
So , can someone tell me how to disable backward/forward button of browser ?</p>
| c# asp.net | [0, 9] |
3,374,002 | 3,374,003 | How to work with multiple CSS properties? | <p>Is it possible to work with CSS properties?</p>
<p>For instance:</p>
<pre><code>-webkit-transform: scaleX(-1) scaleY(-1)
</code></pre>
<p>Can I easily remove <em>scaleX(-1)</em> or add something new, without rewriting the whole <em>-webkit-transform</em> or changing classes?</p>
| javascript jquery | [3, 5] |
3,055,545 | 3,055,546 | how to split a query with 'AND' and/or 'OR' arguments in it in jquery? | <p>how to split a query with 'AND' and/or 'OR' arguments in it in jquery?
Suppose iam having </p>
<pre><code>A=( 1=1,FirstName='aaa' or FirstName='bbb' and FirstName='ccc' or FirstName='ddd' and FirstName='eee')
</code></pre>
<p>Now i want to split 'A' with 'and' & 'or' and get the result as below</p>
<pre><cod... | javascript jquery | [3, 5] |
3,149,306 | 3,149,307 | How come .parent() is not working? | <pre><code><div class="apple">
<div class="abc">
<input id="go">
</div>
</div>
$("#go").click(function(){
$(this).parent('.apple').hide(); // this doesn't work.
$(this).parent().parent().hide(); //this works
});
</code></pre>
<p>I want the <code>.parent('.apple')<... | javascript jquery | [3, 5] |
2,289,430 | 2,289,431 | Is there a way to get domain level user groups the logged in user belongs to in asp.net/c#? | <p>in asp.net/c#</p>
<p>is there a way to find all of the AD level user groups from a given domain in which the logged in user belongs to?</p>
<p>e.g. i have a domain level user and few groups. i want to pass in the domain name and the logged in user's user name and get a list of AD groups of that particular domain.<... | c# asp.net | [0, 9] |
4,152,055 | 4,152,056 | Prevent CTRL V in HTML Editor Ajax Control MS | <p>Hello I am using in C# HTML EDITOR Control MS Ajax.</p>
<p>I would like to know if is possible FORCE the control HTML EDITOR to DO NOT ACCEPT text from PASTE (short cut ctrl+v or menu command).</p>
<p>My aim is to prevent css inline code to be added to the text.</p>
<p>I would allow user to add text if pasted jus... | c# asp.net | [0, 9] |
3,608,589 | 3,608,590 | .live disable double click | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/6201242/is-there-a-way-to-force-event-to-fire-only-once-on-given-element-per-element-n">is there a way to force event to fire only once on given element (per element, not whole document) when using live()?</a> </p>... | javascript jquery | [3, 5] |
4,330,657 | 4,330,658 | ASP.Net search subdirectory | <p>How do I search a sub directory in my ASP.Net web site?</p>
<p>I know if this was a regular Winform project, I could easily get it by the following:</p>
<pre><code>Environment.CurrentDirectory
</code></pre>
<p>or</p>
<pre><code>System.IO.Directory.GetCurrentDirectory()
</code></pre>
<p>then</p>
<pre><code>stri... | c# asp.net | [0, 9] |
5,200,789 | 5,200,790 | asp.net textbox adding BehaviorID | <p>can I add BehaviorID attribute for asp.net textbox and use it to be recognize by java script??</p>
<p>On other word, I want to to apply some java script function on asp.net text box and I want to let the java script find the asp.net text box by the BehaviorID.</p>
| asp.net javascript | [9, 3] |
375,455 | 375,456 | How To Pass a PHP Variable To Javascript | <pre><code><html>
<head>
<?php
$your_name=$_POST['name'];
?>
<script language="javascript">
function fash(at1,at2)
{
alert(at1+at2);
}
</script>
</head>
<body>
<?php
echo $your_name;
echo '<script language="javascript">fash("the key is: "+'<?php echo $your_name;... | php javascript | [2, 3] |
2,552,268 | 2,552,269 | Automatically send an email from an app | <p>My app is really progressing now, much of it due to you guys and your willingness to help out so thanks alot.
As to my problem, I want my app to email a user each day as a kind of reminder additional to notifications. However I can't find a way to do this without user intervention, I am aware I can use a send inten... | java android | [1, 4] |
63,051 | 63,052 | Asp.Net : How to provide email preview for the different email providers | <p><p>In my asp.net application I need to show the email preview of created email, like with gmail the email will display some different formatting & with hotmail it will some different formatting...</P></p>
<p>
So, How to provide email preview for the different email providers like gmail, hotmail rediffmail etc..... | c# asp.net | [0, 9] |
3,216,933 | 3,216,934 | Clearing all fields in an asp.net form | <p>I have an <code>asp.net</code> <code>form</code>. In this <code>form</code>I want to clear all the data what I entered in <code>textbox</code>,<code>dropdownlist</code> etc. So how can I do without going to each textbox and set the value.</p>
<p>like <code>TextBox1.Text="";</code> etc. How can i clear all values o... | c# asp.net | [0, 9] |
3,115,589 | 3,115,590 | append data in existing file in android and read it | <p>i want to append a text in an existing file but i can not read it(i can read the first inserted data) i do not know what is the mistake .
this is the write code(save in file):</p>
<pre><code> FileOutputStream fos = openFileOutput("test",MODE_APPEND);
ObjectOutputStream oos = new ObjectOutputStream... | java android | [1, 4] |
5,440,191 | 5,440,192 | TouchPaint Android API | <p>All I am trying to do is use this API to write on the screen.</p>
<p>I am very new to programming, I can run this code, and play with it, but which class would I need to edit if I wanted to add a save button to it.</p>
<p>Once you draw something you would save it to your phone, how would I do this?
Can you point m... | java android | [1, 4] |
2,074,145 | 2,074,146 | is using the $() shortcut in jQuery bad practice? | <p>I was recently listening to a podcast which made a comment on using <code>$()</code> vs using <code>jQuery()</code>. It was stated that every time <code>$()</code> was used a new object would be created and when <code>jQuery()</code> was used this was not the case. I google'd around but couldn't find anything on thi... | javascript jquery | [3, 5] |
3,604,743 | 3,604,744 | How to convert timespan to pm or am time? | <p>I'm storing user time in UTC time and when I show it I need to convert it to am pm time.</p>
<p>Here is example in database I have 17:00:00 convert to 5:00 pm</p>
<p>Here is the code what I came up so far but it's not working</p>
<pre><code>var time = DateTime.ParseExact(object.Time.ToString(), "HHmm", CultureInf... | c# asp.net | [0, 9] |
1,160,598 | 1,160,599 | Selecting a value from drop down changes the next drop down list | <p>Hi Guys I am ruby on rails developer and have no idea about javascript or Jquery.</p>
<p>I have a select tag like this :</p>
<pre><code><select name="form[city]" id="form_city">
<option value="">Select Office</option>
<option value="WA - Washington PD">WA - Washington PD</option>... | javascript jquery | [3, 5] |
319,975 | 319,976 | How do you dynamically update your Android application? | <p>I am new to android development, but I am wondering how an android application like ESPN Scorecenter or maybe a news application dynamically updates without the user having to do this manually. Will changing/updating the apk file automatically change the user's android app or will they have to update the version?</p... | java android | [1, 4] |
2,427,109 | 2,427,110 | Dynamically changing css style in c#? | <p>I have some link buttons in which I am dynamically adding a style to it. I am doing the following in a method:</p>
<pre><code>LinkButton lb = new LinkButton();
lb.Style["font-weight"] = "bold";
</code></pre>
<p>When the another link is clicked, it should unbold the link button that is bold and bold the currently ... | c# asp.net | [0, 9] |
3,880,608 | 3,880,609 | fetching only new rows from mysql with jquery ajax | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/2788975/jquery-ajax-load-new-content-when-available">jquery/ajax load new content when available</a> </p>
</blockquote>
<p>i have a table named news with 3 fields i.e (id, news, time) and i have a setInterval af... | php jquery | [2, 5] |
32,344 | 32,345 | C# String.Format() Equivalent in PHP? | <p>I'm building a rather large Lucene.NET search expression. Is there a best practices way to do the string replacement in PHP? It doesn't have to be this way, but I'm hoping for something similar to the C# String.Format method. </p>
<p>Here's what the logic would look like in C#.</p>
<pre><code>var filter = "content... | c# php | [0, 2] |
980,375 | 980,376 | On JavaScript + asp.net | <p>In my asp.net page i have java script calendar,on which i want the selected date & then that date has to passed to the code behind's method. How should it be done???</p>
| asp.net javascript | [9, 3] |
2,704,130 | 2,704,131 | Which is the best lightweight jquery plugin to make cross browser round corner without using image? | <p>Round corner should be compatible with all <strong>IE versions</strong> also.</p>
<p>From one plugin i want to make round corner button, text input field, round corner tab, round corner div, round corner table etc.</p>
<p>Although i use <a href="http://www.dillerdesign.com/experiment/DD%5Froundies/" rel="nofollow"... | javascript jquery | [3, 5] |
4,718,725 | 4,718,726 | extract line from javascript | <p>I need to extract this line of code from a script i am retrieving via ajax..</p>
<p>this line <code>new Date(2010, 10 - 1, 31, 23, 59, 59)</code> from </p>
<pre><code>jQuery(function () { jQuery('#dealCountdown').countdown({
until: new Date(2010, 10 - 1, 31, 23, 59, 59),
serverSync: serverTime,
timezone: +11, ... | javascript jquery | [3, 5] |
1,157,318 | 1,157,319 | jquery adding decimal numbers | <p>I'm trying to add together decimal numbers but when i alert the variable <code>finalnumber</code> i get zero. The variable <code>number</code> is a decimal number. How do i solve this so that variable <code>finalnumber</code> is the sum of all <code>number</code>?</p>
<pre><code>var finalnumber = 0;
$('#chosen-ke... | javascript jquery | [3, 5] |
1,924,031 | 1,924,032 | MS DRM License Acquisition | <p>I need to acquire ms drm license to play a video. It requires custom data, laurl and header to send to acquire the license.</p>
<p>Is there any client library in java or javascript or any method to acquire it?</p>
| java javascript | [1, 3] |
1,074,799 | 1,074,800 | C#: Base64 encoding | <p>Can anyone please let me know where I made a mistake in this code? This code is written in C#.NET. I need to write an algorithm for encoding a string using base64 format using C#.NET, and then decoded with base64_decode() using PHP. Please see the snippit below:</p>
<pre><code>System.Security.Cryptography.RijndaelM... | c# php | [0, 2] |
5,479,373 | 5,479,374 | How can I view jquery success message after the form submit in php? | <p>I want to view a jquery success message after the form submit in php. I tried following code. But its not appearing. But when I code it in html it is working.But it is not after submiting. How can I achieve it?</p>
<p>here is my javascript code in php</p>
<pre><code> <?php
if(isset($_POST['aaa']) an... | php javascript jquery | [2, 3, 5] |
2,190,007 | 2,190,008 | Can I check whether Java is enabled from PHP | <p>I would like to detect whether java is enabled in the user's browser when they use my website(php).</p>
<p>If java is enabled a certain div loads on the website if not another div loads. </p>
<p>I do the following:</p>
<p>in the PHP header file: (so whatever loads it checks whether java is enabled)</p>
<pre><cod... | php javascript | [2, 3] |
1,818,830 | 1,818,831 | How can I update a breadcrumb string after a link is clicked? | <p>I have a navigation menu for my CMS and underneath it is a breadcrumb trail. How can I update this breadcrumb trail with a new string when a link is clicked?</p>
<p>Here is my code:</p>
<p><a href="http://jsfiddle.net/ZMpkv/1" rel="nofollow">jsfiddle.net/ZMpkv/1</a> </p>
<p>For some reason the dropdowns aren't sh... | php jquery | [2, 5] |
5,468,725 | 5,468,726 | What is causing a nullreference exception in this code? | <p>I try to add a new "Order" to my Session. I begin create a session in my Global.aspx file under Session_Start:</p>
<pre><code>Session.Add("Cart", new WebShopData.Order());
</code></pre>
<p>At my login page i make a new Session:</p>
<pre><code> Session["userID"] = "User";
((Order)Session["Cart"]).UserID = ... | c# asp.net | [0, 9] |
5,326,575 | 5,326,576 | Finding and Looping Through span Elements Inside (this) JQuery? | <p>im trying to find every <code><span class ="anime_yellow">..</code> inside another <code><span class="toggle"></code>, this is the code:</p>
<p>HTML:</p>
<pre><code> <span class="title_white">Menu 1</span>
<span class="toggle">
this is menu 1 i want to animate
... | javascript jquery | [3, 5] |
1,910,847 | 1,910,848 | How do I handle this document ready situation? | <p>Hopefully a very simple question. I have some various js functions written as such:</p>
<pre><code>var app={
start:function(){
//do some stuff and call calculate
}, //end start
calculate:function(){
//do some more stuff
} //end calculate
}; //end var app
var neato={
go:function(... | javascript jquery | [3, 5] |
2,349,095 | 2,349,096 | Horizontal type accordion | <p>I have built 2 tabs which each slide down when the expand button is clicked. However what I would like to happen is that if one is already expanded and the other is clicked if for it to automatically close/hide the other. At the moment I have two functions</p>
<pre><code>$(function() {
$("#content1 h3.expand").... | javascript jquery | [3, 5] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.