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 |
|---|---|---|---|---|---|
3,652,120 | 3,652,121 | RegisterStartupScript no longer working in asp.net | <p>Mostly my website is working with ajax, but if I need to send a message on page load I want it to be in the same style as everywhere else, so I am using the following method on my master page:</p>
<pre><code>public void showWarning(String message)
{
Page.ClientScript.RegisterStartupScript(this.GetType(),"svrSho... | javascript asp.net | [3, 9] |
1,809,010 | 1,809,011 | PHP unserialize error when deserializing jQuery serialized form | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/6164691/what-to-do-with-php-after-jquery-serialize">What to do with php after jquery .serialize()</a> </p>
</blockquote>
<p>I am serializing the following form using jQuery, sending it to the server using ajax a... | php jquery | [2, 5] |
4,675,238 | 4,675,239 | Jquery selected value of highlighted text | <p>Im trying to make my editor where when you highlight text on your computer, jquery will take that selected value and throw the tags around it, more specificity code or pre tags.</p>
<pre><code> var Selectedvalue = // set highlighted selection value
$("#content").contents().find("body").append($("<pre... | javascript jquery | [3, 5] |
4,052,838 | 4,052,839 | how can we get dataset with generic handler or jquery from Database | <p>Like for a single value i easily work, or also true false condition.
like getting a single value from database</p>
<pre><code> string i = "";
cmd.CommandType = CommandType.StoredProcedure;
cmd.CommandText = "SelectPass";
cmd.Parameters.... | javascript jquery asp.net | [3, 5, 9] |
5,103,253 | 5,103,254 | Download an Excel from a URL and open it for reading? | <p>hi i need to read excel file which is stored in s3 server,i tried but it is showing invalid internet address.please help me to solve</p>
<pre><code>string fullPath = "http://tempfordevelopment.s3.amazonaws.com/ad53498f-74e8-412c-8c8f-e36b18f16e4eEmailExcel2.xlsx";
//Uri uri = new Uri(fullPath);
... | c# asp.net | [0, 9] |
4,892,065 | 4,892,066 | C#/ASP.NET/JS - onclick event shows row, postback hides row | <pre><code>rbnResubmission.Items.FindByValue("Yes").Attributes.Add("onclick", "getCheckedRadioFieldResubmission(this)");
rbnResubmission.Items.FindByValue("No").Attributes.Add("onclick", "getCheckedRadioFieldResubmission(this)");
</code></pre>
<p>So I have these click events for showing rows in a table - that part wor... | c# asp.net javascript | [0, 9, 3] |
2,973,324 | 2,973,325 | Insert custom Button inside Gridview pager | <p>I am trying to insert a control inside Gridview pager. The Control appears successfuly but it assign it under the previous control as you can see in the picture. </p>
<p><img src="http://i.stack.imgur.com/1YpzA.png" alt="enter image description here"></p>
<p>I am adding with the following code. </p>
<pre><code>if... | c# asp.net | [0, 9] |
5,611,835 | 5,611,836 | simple jquery event handler | <p>having some real problems with jquery at the moment. Basically what I have so far is. The form is submitted once the form is submitted a grey box pop's up with the relevant infomation.</p>
<p>What I need to do though is refresh the whole page then allow the grey box to appear.</p>
<p>I have the following code</p>
... | javascript jquery | [3, 5] |
5,344,065 | 5,344,066 | project.properties in android project | <p>I just cloned this from <a href="https://github.com/jgilfelt/android-mapviewballoons">github</a> and when I tried to import it to eclipse as an android project, it doesn't have a default.properties. Why is this and how do I handle this?</p>
| java android | [1, 4] |
572,183 | 572,184 | Execute jQuery after other scripts? | <p>I'm trying to use jQuery to change some styling on my page. The page is made dynamically by executing another JavaScript file.</p>
<p>Right now I have </p>
<pre><code>$(window).load(function(){
$('p').css('font','green');
});
</code></pre>
<p>Which does nothing.</p>
<p><code>$(document).ready(function()</cod... | javascript jquery | [3, 5] |
2,677,110 | 2,677,111 | [android]Java script to Java native Bindings & vice versa | <p>I am a working on developing web applications where we are trying to access Native functionality in the phone using Java script APIs.</p>
<p>Android Web view supports "AddJavascript" interface for Java script to Java (native) bindings as in below link</p>
<p><a href="http://developer.android.com/reference/android/... | javascript android | [3, 4] |
899,665 | 899,666 | Hide body until loaded, jQuery fadeout instead of javascript hide | <p>I'm using this code to hide a client's page until it's loaded:</p>
<pre><code><style type="text/css">
#cover {position: fixed; height: 100%; width: 100%; top:0; left: 0; background: #1984B5; z-index:9999;}
</style>
<script type="text/javascript">
window.onload = hide;
function hide(){
nav1=docu... | javascript jquery | [3, 5] |
1,423,276 | 1,423,277 | Reload a .js file without pressing F5 | <p>i load a page with jquery <code>.load(file.php)</code> </p>
<p>i have a .js include in the file.php like: <code><script src='js/script.js' type="text/javascript" language="javascript"></script></code></p>
<p>When i load the file.php, he wouldn't load my JS file... does anybody know why and how to solve... | javascript jquery | [3, 5] |
1,904,664 | 1,904,665 | jquery .attr() not working in IE7. Any work around to get the class of the element? | <p>I am having this code to check if the element has the certain class: </p>
<pre><code>var p3div = $("#portlet1 #showhide");
if (p3div.attr('class').indexOf('ui-icon-plusthick') > 0) {
//do something here.
}
</code></pre>
<p>However in IE7 .attr() is not supported and this ... | javascript jquery | [3, 5] |
1,903,740 | 1,903,741 | Disable browser buttons and url address bar in all major browsers? | <p>I don't know if this is possible but is it possible to disable a url address bar in the browser when a user is on a certain page? Also is the user able to disable browser buttons if a user is on a certain page?</p>
<p>But the twist is that it needs to work on all browsers, Chrome, Safari, IE, Opera and Firefox. It ... | php javascript | [2, 3] |
2,766,150 | 2,766,151 | How to programmatically set the ForeColor of a label to its default? | <p>I'm using VS2010 C# ASP.NET</p>
<p>To programmatically change the ForeColor of an asp:Label named <code>lblExample</code> to 'Red', I write this:</p>
<pre><code>lblExample.ForeColor = System.Drawing.Color.Red;
</code></pre>
<p>After changing the ForeColor, how do I programmatically set the ForeColor of the label ... | c# asp.net | [0, 9] |
1,902,878 | 1,902,879 | Jquery loop - capture the value | <p>I am running this loop in php but using a jquery click function during the output. How can i record which instance of $i was clicked. When I use $(this) it returns the id. </p>
<p>The $('#pid-form').val('$frame_id[$i]') actually has the number i want as the value but I am not sure how to use it or convert it to ... | php jquery | [2, 5] |
1,495,229 | 1,495,230 | Loading DLC files in Python or C++ or Java | <p>Is there any Libraries that allow for loading of DLC files in Python Java or C++?
FYI <a href="http://jdownloader.org/knowledge/wiki/linkprotection/container/dlc-rsdf-and-ccf" rel="nofollow">link</a></p>
| java c++ python | [1, 6, 7] |
1,247,695 | 1,247,696 | Print both in Android and pure Java | <p>How to print both to Log.e/d/etc. and to System.out/err/etc.? I have some code that I test on desktop and sometimes I use it on Android and I want to see logs there too.</p>
| java android | [1, 4] |
4,569,971 | 4,569,972 | on .bind('click') it is not deleting the first div | <p>When I click on a particular div, that div should fade out, simple, but when I click on one of the divs it deletes the div on top of the stack, i.e. when I click #sel6 it removes sel5</p>
<p><strong>HTML code</strong></p>
<pre><code><div id="selc_d" class="selc" style="position:absolute; left:15px; top:200px; w... | javascript jquery | [3, 5] |
2,928,571 | 2,928,572 | new XmlSerializer(typeof(MyClass)) Causing Memory corruption? | <p>I've got an application that loads an assembly dynamically:</p>
<pre><code> Assembly asm = Assembly.Load("MyClass.DLL");
Type type = asm.GetType("MyClass");
MyClass runningAssembly = (MyClass)Activator.CreateInstance(type);
runningAssembly.start();
</code></pre>
<p>Once loaded and the start() method is called,... | c# asp.net | [0, 9] |
4,337,280 | 4,337,281 | Prevent scrollTop from calling scroll event | <p>I'm trying to create this behavior: when user scrolls a mousewheel (or presses <kbd>↓</kbd>) the webpage is scrolled down by the height of the window.</p>
<p>I've ended up with following code:</p>
<pre><code>var newScrollTop,
oldScrollTop = $(window).scrollTop(),
preventScroll = false;
$(window).scroll(fun... | javascript jquery | [3, 5] |
3,903,281 | 3,903,282 | Calling global variables in the AppSettings from a Javascript function | <p>In my javascript function I am trying to call my global variable that is currently defined in the webconfig file of my Asp.net project. What is the syntax for this? I've looked around and nothing seems to work so far. I've tried the following but I am not getting anything from it:</p>
<p>web.config:</p>
<pre><c... | c# asp.net javascript | [0, 9, 3] |
2,211,164 | 2,211,165 | Place random positioned element into a document in vertical axes | <p>I have the following code</p>
<pre><code>function randomizer(start, end)
{
return Math.floor((end - start) * Math.random()) + 1;
}
var top_pos = randomizer(1, $(document).height());
$('.element_selector').css('top', top_pos + 'px');
</code></pre>
<p>but the result is not what I realy expect from. The most of... | javascript jquery | [3, 5] |
4,895,477 | 4,895,478 | ScrollView containing TextView does not scroll | <p>I have a textview displaying many individual words, each word is a link using Spans and setMovementMethod(LinkMovementMethod.getInstance()); The textview is wrapped by a ScrollView. </p>
<p>However the ScrollView does not work as the links in the TextView are activated instead.</p>
<p>Is there a way to combine a ... | java android | [1, 4] |
2,227,467 | 2,227,468 | Passing form values on a submit to an ajax call | <p>I have a common case of allowing a user to submit a form with some values and needed to pass those values to my ajax call. This approach works, but is there a more elegant/efficient way of accessing the form values other than using selectors?</p>
<pre><code>$("#myForm").submit(function(){
myData = {name: $("#name"... | javascript jquery | [3, 5] |
4,039,993 | 4,039,994 | TextBox filtering according to RadioButton selection | <p>I've a <code>RadioButtonList</code> and a <code>TextBox</code>. Accordindg to RadioButtonList selection, I want to filtrering textbox.</p>
<pre><code> <asp:RadioButtonList ID="RadioButtonList1" runat="server" AutoPostBack="True" OnSelectedIndexChanged="RadioButtonList1_SelectedIndexChanged">
<asp:L... | c# javascript asp.net | [0, 3, 9] |
4,869,886 | 4,869,887 | Adding days to a date - date getting converted to string | <p>So I'm trying to add a certain number of days to a date, and I'm getting a strange issue:</p>
<pre><code>var date = new Date();
var newdate = date.getDate() + $('#ddlDays option:selected').val();
date.setDate(newdate);
</code></pre>
<p>So if today is 09/29/2010, the Date is 29. But if a user selects "5" from ddl... | javascript jquery | [3, 5] |
2,604,725 | 2,604,726 | Apostrophes in jquery/javascript string | <p>I have the following code which appends an icon with an alert after the <code><a></code> tag :</p>
<pre><code>$j("li[name='"+node_name+"'] > a").after('<a onmouseover="alert(\' expnote_from_db[n][0] \');" ><ins class="' + selected_class + '">&nbsp;</ins></a>');
</code></pre>
<p... | javascript jquery | [3, 5] |
5,397,877 | 5,397,878 | Android Button Doesn't Respond After Animation | <p>I have a basic animation of a button after it is pressed currently in my application. After the button finishes animating, I can no longer click on it. It doesn't even press with an orange highlight.</p>
<p>Any help?</p>
<p>Here's my code:</p>
<pre><code>public void onCreate(Bundle savedInstanceState) {
super.onC... | java android | [1, 4] |
5,510,354 | 5,510,355 | Android Load images from drawable | <p>In my android project I have several images int the drawable folder with a prefix that I would like to load in a HashMap : </p>
<p>Example :</p>
<pre><code>PREFIX_G6.png
PREFIX_P7.png
PREFIX_P9.png
</code></pre>
<p>I can construct the bitmap for a specific Image Like this :</p>
<pre><code>String drawableName = ... | java android | [1, 4] |
1,156,846 | 1,156,847 | Append text to label in ASP.NET/C#? | <p>Lets say I have a form where the user enters some data and then click Submit. I have some validation to check length of fields in the code behind and if they forgot the name I set the text in a label:</p>
<pre><code> if (siteName.Length == 0)
{
lblErrorCreateSite.Text = "A Site Name is re... | c# asp.net | [0, 9] |
2,991,098 | 2,991,099 | Adding z-index to a window | <p>How can I add a zindex value to the following string so that the pop-window is always on top?</p>
<pre><code>string winopen = "Window.Open('Details - " + name + "', 'test.aspx', 'dest=" + destination.Value + "&id=" + id.Value + "', [250,250], [100,100], true); return false;";
button1["onclick"] = winopen ;
</co... | c# javascript jquery | [0, 3, 5] |
4,753,845 | 4,753,846 | Run C# code after running all javascript codes | <p>I am having a form in which a button is there on click of that button i am calling a javascript function in which i am displaying like 3.. 2.. 1 kind of effect then i am returning true.</p>
<p>But after showing 3 only return true is getting executed and the form is getting submitted.</p>
<p>How to stop form submit... | asp.net javascript | [9, 3] |
4,270,545 | 4,270,546 | asp.net authentication and authorisation | <p>I am using Form authentication. Here I am using a login control and in (login.cs) control I am calling the following method to validate the user. Here I am using local name for both username and password and now I want to connect to the database so I can retrieve username and password.</p>
<pre><code>private bool A... | c# asp.net | [0, 9] |
1,395,833 | 1,395,834 | Can we integrate napster in a .net website? | <p>Can we integrate napster in a .net website? If so please suggest any documentation to refer to.
Thanks.</p>
| c# asp.net | [0, 9] |
3,908,454 | 3,908,455 | using javascript to disable link in php script | <p>Hello I am trying to disable a link in my PHP script using a JS function. I am not sure why is its not working. Any input appreciated.. </p>
<pre><code> <!DOCTYPE html>
<html>
<head>
<script type="text/javascript">
function disable()
{ document.getElementById("perfumes_web_link").inne... | php javascript | [2, 3] |
120,089 | 120,090 | jQuery scrolling text on hover | <p>I have a "a" element that I want to scroll left on hover. To do this I remove the first character and append it to the end of the string.</p>
<p>How can I continuously fire up the scroll function?</p>
<p>Mouse enters element -> scroll() is fired until mouse leaves the element or user clicks on it.</p>
<p>html:</p... | javascript jquery | [3, 5] |
1,763,786 | 1,763,787 | Prompt user to save/open file in ASP.NET C# | <p>It shouldn't be this hard to find out how to do this. Basically I'm trying to take a string and let the client save it when they click a button. It should pop up with a Save/Open dialog. No extra bells and whistles or anything. It's not rocket science, (or so I would've thought).</p>
<p>There seems to be a ton of d... | c# asp.net | [0, 9] |
929,403 | 929,404 | How to link Android application and web-service? | <p>I made an Android application and I have a web-service (written in PHP). The service must send a message to application, so while my Android application works in the background and monitors web-service, it gets the message from service.</p>
<p>How can I organize this interaction? Thank you</p>
| java php android | [1, 2, 4] |
5,660,575 | 5,660,576 | How to change execution context in jQuery without invoking the function | <p>I'm a lover of MooTools, and get used to bind the callback functions, for example:</p>
<pre><code>element.addEvent('click', callback.bind(this));
</code></pre>
<p>Assume <em>this</em> is the current execution context. This statement means that, I'm binding the execution context of <em>this</em> to the function <em... | javascript jquery | [3, 5] |
1,252,584 | 1,252,585 | Uncaught Could not find Overlay: #prompt | <p>I'm trying to call the jquery overlay function from a javascript function and failing.</p>
<p>I get the error: Uncaught Could not find Overlay: #prompt </p>
<pre><code>this.mySaturdayNight = function() {
var bark_overlay = document.createElement("div");
bark_overlay.innerHTML="hey guy";
bark_overlay.se... | javascript jquery | [3, 5] |
4,650,598 | 4,650,599 | check for existing values in Datatable | <pre><code> if (dt.Rows[i]["Code"] == code)
{
Label lblLang = (Label)(((e.Item as GridItem).FindControl("lblLang") as Label));
lblLang.Visible = true;
}
else
{
}
}
</code... | c# asp.net | [0, 9] |
206,902 | 206,903 | returning a variable from the callback of a function | <p>I am using the following functions:</p>
<pre><code>function loop_perms(permissions) {
.... call check_perm here....
}
function check_perm(perm) {
var result;
FB.api(
{
method: 'users.hasAppPermission',
ext_perm: perm
}, function(response) {
resul... | javascript jquery | [3, 5] |
1,115,490 | 1,115,491 | Weird Behaviour in jQuery's html method | <p>Any good reason why $("p").html(0) makes all paragraphs empty as opposed to contain the character '0'?</p>
<p>Instead of assuming I found a bug in jQuery, it's probably a misunderstanding on my part.</p>
| javascript jquery | [3, 5] |
3,229,116 | 3,229,117 | Stop user to Shift+F5 on the Page | <p>Does any one here know how can I stop user to Shift+F5 or F5 (refresh the page) on the Page by Jacascript or jQuery?</p>
<p>The reason is just to stop the page resubmit the same variable into the server side after the user clicked on the 'submit' button then pressed F5 again</p>
| javascript jquery | [3, 5] |
4,350,697 | 4,350,698 | How to get pagemthods value in the calling function | <p>I want to fetch current year from the server using PageMethods but PageMethods returns result in different function but i want to get the return value in the same function where PageMthods is called. Is it possible?</p>
<pre><code>function GetYear()
{
dr["OrderYear"] = PageMethods.GetCurrentYear(Onsuccess);
}
... | javascript asp.net | [3, 9] |
2,780,772 | 2,780,773 | Question about select all H3 inside DIV | <p>Wouldn't this work if I want to apply a new class to all H3 tags inside the RelArtik div?</p>
<pre><code>$("h3",$("#RelArtik")).addClass("underrubrik");
</code></pre>
<p>Thanks.</p>
| javascript jquery | [3, 5] |
2,991,274 | 2,991,275 | How can i create multitasking between activities? | <p>I want to display two activities at a time and can work on both simultaneously. Is it possible ? if possible please give me some example. I am working in android 2.2 froyo.</p>
<p>Thanks in advance</p>
| java android | [1, 4] |
1,518,950 | 1,518,951 | Show a div if check box is checked and vice-versa | <p>I'm trying to find the value of a check box and then if it is checked it should show my div id as resizeable. If its not checked it should disappear. This is what I tried:</p>
<pre><code>var showheader = document.getElementById("ckbx_header").checked;
if ( showheader == checked ) {
$("#resizeable").toggle("sli... | javascript jquery | [3, 5] |
510,476 | 510,477 | calling functions of the application via javascript from embeded browser? | <p>I have an embeded browser in C# application which I am displaying static webpages in. Can I call a function of the app by pressing a button in a webpage inside of the embeded browser via javascript?</p>
| c# javascript | [0, 3] |
2,807,606 | 2,807,607 | functionality required only to show certificate(image) for registered members | <p>I want to junrate a certificate(image) general code from my site registers members certificate will only show on his sites.for exmple abc.com is my registerd member and he placed that code on his site like bellow</p>
<pre><code>img src="mysite.com?member=abc.com"
</code></pre>
<p>or any code (like facebook social ... | php javascript jquery | [2, 3, 5] |
2,877,369 | 2,877,370 | How to load .ascx control in .aspx page with out postback or reloading the page | <p>I have some code that is running fine , what i want is when i create a cookie i want the .ascx control to load to perform some function on the cookie but i don't want the page to post back, how can i achieve that.</p>
| javascript asp.net | [3, 9] |
2,792,042 | 2,792,043 | Pictures saved on sdcard on android | <p>I had a problem when saving picture on sdcard from my app.
that when i am taking a picture and saving it on sdcard and go to my app and take a new one and save it on sdcard the previous preview picture appear and when view it on my computer it appear corrupted ?</p>
<p>why this problem ?</p>
<pre><code>public stat... | java android | [1, 4] |
653,005 | 653,006 | Popup window after submit | <p>Just to ask a straight question, when I complete adding some data in my page and click submit button, how can I make a popup window saying that the information has been successfully added in database instead of make a new page? Is there any ways that I can do? Any website to be referred? Thanks</p>
| c# asp.net | [0, 9] |
909,689 | 909,690 | How to get value set in javascript from code-behind? | <p>I set value in a hidden field like this:</p>
<pre><code>((TextBox)ctrl).Attributes.Add("onchange", "document.getElementById('" +
((BasePage)Page).GetControl(Page, "ChangedRowsIndicesHiddenField").ClientID +
"').value.concat('" + row.RowIndex + ",');");
</code></pre>
<p>In page source it looks like this:</p>
... | c# javascript asp.net | [0, 3, 9] |
597,201 | 597,202 | This script applies specific attr to all links on the website. How to exclude pdf and zip files? | <p>I'm building Wordpress website where all pages are being loaded using Ajax. I'm using script created by Chris Coyer that can be found <a href="http://css-tricks.com/video-screencasts/81-ajaxing-a-wordpress-theme/" rel="nofollow">here</a>. Code below will add specific tags to all links on the website. Wordpress will ... | javascript jquery | [3, 5] |
1,663,017 | 1,663,018 | Can't listen to hover (etc) events after creating divs using innerHTML | <p>So I generate some divs using this</p>
<pre><code>document.getElementById('container').innerHTML += '<div class="colorBox" id="box'+i+'"></div>';
</code></pre>
<p>The problem I'm running into is that catching a hover event</p>
<pre><code>$(".colorBox").hover(function(){
alert("!");
});
</code></pr... | javascript jquery | [3, 5] |
5,352,596 | 5,352,597 | Is there a light theme for Android? | <p>I'm trying to use a light theme on my app, but in a way so that I can customize it (hints why I'm creating my own theme). Despite using <code>AppTheme.NoActionBar</code> I still see a bar while my app is loading at the top.</p>
<pre><code><style name="AppTheme" parent="@android:style/Theme.Holo.Light">
<... | java android | [1, 4] |
5,811,707 | 5,811,708 | NullReferenceException in static class | <p>I have an asp.net application with a static "global" class. Inside of the static class I have a variable called user. When a user logs in a set that variable. Debugging through the log process. All my other static variable seems to be fine except two. I am not sure why I am getting 'GlobalVariables.User' threw an ex... | c# asp.net | [0, 9] |
1,766,752 | 1,766,753 | Writing a cookie from a static class | <p>I have a static class in my solution that is basically use a helper/ultility class.</p>
<p>In it I have the following static method:</p>
<pre><code>// Set the user
public static void SetUser(string FirstName, string LastName)
{
User NewUser = new User { Name = String.Format("{0}{1}", FirstName, Las... | c# asp.net | [0, 9] |
2,994,000 | 2,994,001 | Add chars on line break | <p>Hi I have list (ul) and in it some "li".</p>
<p>With Javascript (jQuery) how do I detect when line breaks and add some chars on beginning.</p>
<p>So for example:</p>
<pre><code>I have a very looooong text in 200px width li.
</code></pre>
<p>Result is:</p>
<pre><code>I have a very looooong text
in 200px width l... | javascript jquery | [3, 5] |
4,286,269 | 4,286,270 | A sensible path to becoming a C# and ASP.NET guru? | <p>I suppose this question is pretty subjective, but I think there is bound to be a path that most people consider sensible.</p>
<p>I've been working with C# and ASP.NET for about 3 years, but I've only just started REALLY studying it. My goal is to become a guru in say... 5-10 years. What skills should I have? What s... | c# asp.net | [0, 9] |
2,655,078 | 2,655,079 | attach the document object | <p>i need to attach the document object to move div inside another div, here is the script: <a href="http://jsfiddle.net/vhDpG/2/" rel="nofollow">http://jsfiddle.net/vhDpG/2/</a> i want to move the block "moveme" just inside the <code>#bee_div1</code> not inside the <code>#body</code> div, but the action - animate(), m... | javascript jquery | [3, 5] |
3,431,174 | 3,431,175 | How to do repeated actions in Android? | <p><strong>I use such code:</strong> </p>
<pre><code>t = new Timer();
t.schedule(new TimerTask() {
@Override
public void run() {
//some action
}
}, 30000, 30000);
</code></pre>
<p>If I wrap up application(click Home) and after that recover application then task is canceled. How to solve that proble... | java android | [1, 4] |
821,564 | 821,565 | destroy $_SESSION after cliking 'Cancel' button | <p>I would like to destroy $_SESSION['userList'] after cliking 'Cancel' button. However, the $_SESSION['userList'] is destroied when page load.</p>
<p>Below is my code:</p>
<pre><code><a href='#' class="btn" onClick="resetForm()"><span>Cancel</span></a>
<script type="text/javascript">
... | php javascript | [2, 3] |
2,396,917 | 2,396,918 | How to run a javascript function before postback of asp.net button? | <p>I'm using Javascript to create a DIV element and open up a new page by using onclientclick. This works great. Now, I need to write to it from the server side and this element must be created before it is posted back.</p>
<p>How do I get the javascript to execute before the postback?</p>
<p>Currently, I have to pre... | asp.net javascript | [9, 3] |
5,678,855 | 5,678,856 | Convert this PHP code to C# Rijndael Algorithm | <p>I've got this php code and I'd like to get the exact equivalent C#</p>
<pre><code>$ivSize = mcrypt_get_iv_size(MCRYPT_RIJNDAEL_192, MCRYPT_MODE_CBC);
$iv = mcrypt_create_iv($ivSize, MCRYPT_RAND);
$encryptedData = mcrypt_encrypt(MCRYPT_RIJNDAEL_192, $key, $salt . $message . $nonce, MCRYPT_MODE_CBC, $iv);
$base64Data... | c# php | [0, 2] |
2,699,252 | 2,699,253 | Jquery: Iterate an array and find nodes with a specific id | <p>I have a list of div elements:</p>
<pre><code>var list = $('.divelement').get();
</code></pre>
<p>I want to use jQuery to find a specific element (that has an id that contains "hdnPK") in each of these div elements. Something like:</p>
<pre><code>var elem1 = list[0].$("[id*='hdnPK']").get();
var elem2 = list[1].$... | javascript jquery | [3, 5] |
1,705,722 | 1,705,723 | Change text on link while loading | <p>I have a asp button that while processing i would like the text on it.. How could achieve that?</p>
<pre><code><asp:LinkButton ID="loadImages" runat="server" CssClass="button"
onclick="loadImages_Click">Load Images</asp:LinkButton>
</code></pre>
<p>So when I click, it will change the Load Images... | c# asp.net | [0, 9] |
505,239 | 505,240 | Asp.net Custom Control pass object as a property | <p>In Asp.Net custom control i want to pass an object as a property (like we pass width / color) Is there anyway i can do that in design time?</p>
<p>Example:</p>
<p>Custom control is a <asp:Panel> and i would like to pass</p>
<p><strong><cus:CustomPanel ID="Panel11" runat="server" CustomObject="student" /&... | c# asp.net | [0, 9] |
3,466,599 | 3,466,600 | Trigger JS on select elements with onChange, but also if it's already selected? | <p>I am writing a very basic website which involves the user to use a drop down menu to select an option, and it will play a sound when they do. </p>
<p>This works fine if the user wants to pick a different option each time, but not if they play a sound from one <code><option></code>, then want to play it again ... | javascript jquery | [3, 5] |
2,310,261 | 2,310,262 | PHP Problem : filesize() return 0 with file containing few data? | <p>I use PHP to call a Java command then forward its result into a file called result.txt. For ex, the file contains this:
"Result is : 5.0"
but the function filesize() returns 0 and when I check by 'ls -l' command it's also 0. Because I decide to print the result to the screen when file size != 0 so nothing is printed... | java php | [1, 2] |
4,629,096 | 4,629,097 | Jquery changing the value of a drop-down using its value, not the text | <p>I'm having difficulty changing the calue of a dropdown menu using jquery.</p>
<pre><code><div class="input-box">
<select name="options[4]" id="select_4">
<option value="">-- Please Select --</option>
<option value="24">Not Sure - Send Me Some Samples First </option>
... | javascript jquery | [3, 5] |
4,572,818 | 4,572,819 | File permission while saving a html to server | <p>I have a problem , I want to save a html file in directory using asp.net .
But when i try to do so ,
I got a security exception as follow . </p>
<pre><code>7/10/2012 12:03:54 AM,http://www.teddytank.com/admin/AddNewsLetter.aspx?
nid=3,System.IO.IOException: The process cannot access the
file 'D:\ho... | c# asp.net | [0, 9] |
3,753,641 | 3,753,642 | I don't understand what return does in programming? | <p>The question basically says it all. I'm a noob so make it gentle.</p>
| java c++ | [1, 6] |
1,206,039 | 1,206,040 | How to get website root path from another class | <p>I have asp.net web site (use web forms). I have a class called <code>FileHandler</code> and inside that class I want to get the root path of the site. </p>
<p>Normally I use<code>Server.MapPath("~")</code> to get the path inside a web page. </p>
<p>Here I cannot use that because it is not a Page. How can I get ... | c# asp.net | [0, 9] |
1,011,964 | 1,011,965 | filter an array with multiple values on same key | <p>I try to dynamically generate a listview in jQuery. This works perfectly for the whole list, but now I need to filter/search/reduce my initial data:</p>
<pre><code>var rezepte = [
{ "name" : "Eierkopf" , "zutaten" : ["Eier", "Zucker"] , "zubereitung" : "alles schön mischen." },
{ "name" : "Käseschnitte" , "zutaten"... | javascript jquery | [3, 5] |
4,900,672 | 4,900,673 | Another jQuery version in function closure | <p>I'm developing some script, which developers will include on their pages.
I need jQuery in this script. And if page already have jQuery, don't override them. I want to use my jQuery(in my anonymous function). And i want to page use jQuery whitch used before me(not my jQuery).
Is it possible?
Thanks.</p>
| javascript jquery | [3, 5] |
3,428,014 | 3,428,015 | What is the best way to detect Internet Explorer 6 using JavaScript? | <p>What is the best way to detect Internet Explorer 6 using JavaScript?</p>
<pre><code>If browser == IE6 {
alert('hi');
}
</code></pre>
| javascript jquery | [3, 5] |
5,091,579 | 5,091,580 | Call an external PHP script on a website without using PHP | <p>My issue is following: My Partner's have websites and I want that partners can include a script from my server that dynamically generates a link and an image.</p>
<p>i.e.
myscript.php (on my server) generates following output:</p>
<pre><code><a href="http://www.myserver.com/apples.php?12345">
<img src="ht... | php javascript | [2, 3] |
215,545 | 215,546 | use $(this) in ajax callback jquery | <p>i'm doing a <code>jQuery.post</code> to a php file, and the file return's me a value.</p>
<p>the question is: why the <code>$(this)</code> dosent work in the callback function ?
any alert passing something to show, using <code>$(this)</code>, return's me <code>null</code></p>
<pre><code>$(".class").live("focusout"... | javascript jquery | [3, 5] |
798,282 | 798,283 | how to call a jquery function from a c# application? | <p>I want to call a jquery function from a C# application. I have an idea how to do that as already did some research on it. But Im stuck on how to start with it.</p>
<p>I added <code>System.Web.UI</code> in the references, but can only find <code>ClientScriptManager</code>, I dont see a <code>ScriptManager</code>, no... | c# jquery | [0, 5] |
2,917,796 | 2,917,797 | how to include id of json data in listview | <p>I'm trying to figure out how I can include an id for a listview item.</p>
<p>Currently I am querying a rest api that returns a list of something similar to this.</p>
<p>{
id : 100
name : "John Doe"
}</p>
<p>It the listview I display all the names and once someone click on one item it forwards it to another acti... | java android | [1, 4] |
3,944,765 | 3,944,766 | jQuery doesn't add or remove class | <p>Why doesn't my jQuery code add and later remove loading class?</p>
<pre><code>$('#crop').click(function (ev) {
ev.preventDefault()
$.post('frame.php?action=crop', dimensions, function (json) {
$('body').addClass('loading')
picture()
}, 'json')
$('body').removeClass('loading')
})
</co... | javascript jquery | [3, 5] |
3,995,891 | 3,995,892 | Code behind file not recognizing controls in *.ascx | <p>I have a QuestionControl.ascx and a QuestionControl.ascx.cs code behind file I copied to a new project. When I build the project any references in the code behind file to controls declared in the ascx gives me this error:</p>
<blockquote>
<p>'QuestionControl' does not contain a
definition for 'rdbtnlstQuestion... | c# asp.net | [0, 9] |
713,256 | 713,257 | Why can't I use jQuery in amazon (in console)? | <p>using firebug console in firefox for example when execute this script</p>
<pre><code>$("body").css("border","4px solid red");
</code></pre>
<p>it will return an error with message:</p>
<pre><code>TypeError: $("body") is null
</code></pre>
<p>same in chrome the error:</p>
<pre><code>TypeError: undefined is not a... | javascript jquery | [3, 5] |
4,544,400 | 4,544,401 | Amend width of external poll once its submitted | <p>I've created a simple polldaddy poll. I'm amending the width & hiding some elements of the poll once its loaded using jQuery as below : </p>
<pre><code><script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script type="text/javascript">... | javascript jquery | [3, 5] |
2,096,107 | 2,096,108 | how to alert browser from javaclass? is it possible? | <p>my scenario is that when ever my target is achieve i want to show alert in browser.
while target was checked in javaclass side... </p>
<p>i have a method in javascript like.</p>
<pre><code>function targetAchieve(head,target,price)
{
alert(head+" Target Achieve"+"\n"+"Price:"+price+"\n"+"target: "+target+" \n" ... | java javascript | [1, 3] |
3,738,914 | 3,738,915 | How can I combine PHP and jQuery in paging controls | <p>I am trying to implement paging in PHP. First of all I am getting the number of pages as per page record and generating <code><li></code> links dynamically by number of pages. Like this:</p>
<pre><code>for($i = 1; $i <= $no_of_pages; $i++)
{
echo '<li><a href="view_records.php?pageno='.$i.'"&g... | php javascript jquery | [2, 3, 5] |
1,536,925 | 1,536,926 | how to make table of content in jQuery | <p>as I am beginer please tell me how I can make toc for my web page using jQuery.
my page would look like this</p>
<p>====== sample Table of Content ====</p>
<blockquote>
<p>Introduction
|<strong>> What is Web
|_</strong>> What is JavaScript
Programming HTML5
|<strong>> Learn HTML5
|</strong>> Your First... | javascript jquery | [3, 5] |
4,951,482 | 4,951,483 | Link jQuery menu button to url | <p>I have this jQuery menu script:</p>
<pre><code><script type="text/javascript">
jQuery(document).ready(function(){
jQuery('#promo').pieMenu({icon : [
{
path : "/wp-content/themes/Tersus/images/piemenu/winamp.png",
alt :... | javascript jquery | [3, 5] |
1,311,287 | 1,311,288 | How to use jQuery.map() on array of objects to return array of arrays | <p>I would like to use jQuery to convert an array of objects to array of arrays using map.</p>
<p>For example if I have this:</p>
<pre><code>var ObjArr = [{ a:1,b:2 },{ a:2,b:3 },{ a:3,b:4 }];
var ArrArr = $.map(ObjArr, function(n,i){
return [ n.a, n.b ];
});
</code></pre>
<p>So that the result would be:</p>
<pr... | javascript jquery | [3, 5] |
76,287 | 76,288 | How to Compile projects in another console application | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/3297427/place-all-output-dlls-in-common-directory-from-visual-studio">Place all output dlls in common directory from Visual Studio</a> </p>
</blockquote>
<p>I have a solution which is having 15 projects.
Now i w... | c# asp.net | [0, 9] |
4,812,460 | 4,812,461 | System.IO.File.Create locking a file | <p>Just as the question says... I'm using System.IO.File.Create to create a file. I'm not writting to it with a stream writer, just creating it.</p>
<p>I get a server error in the front end when the app trys to open the newly created file - that the file is in use. Garbage collection then seems to come along and a few... | c# asp.net | [0, 9] |
2,919,093 | 2,919,094 | selectedIndex - javascript on Google Chrome | <p>Can anyone please tell me why doesn't this work on Google Chrome:</p>
<pre><code>val = document.form.option[document.form.selectedIndex].value;
</code></pre>
<p>How should I get around this so that other browsers (like IE and FF) don't get screwed up.<br>
Many thanks in advance.</p>
| javascript jquery | [3, 5] |
2,021,096 | 2,021,097 | How to bind Complex Entity type to Gridview using ObjectDataSource | <p>I have an entity</p>
<pre><code>class Person
{
public int Age{get;set;}
public string Name{get;set;}
public Department Dept{get;set;}
}
class Department
{
public int DeptId{get;set;}
public string DeptName{get;set}
}
</code></pre>
<p>Now I binds Collection to GridView using ObjectDataSource Control.
Under the Tem... | c# asp.net | [0, 9] |
3,336,984 | 3,336,985 | Adding a timeout to a javascript rotation | <p>I have the following code working (in Firefox & Safari only - no worries it's a subtle effect that doesn't need perfect cross-browser compatibility).</p>
<p>HTML</p>
<p><code><span id="rotate_star"></div></code></p>
<p>Javscript</p>
<pre><code><script>
var count = 0;
function rotate... | javascript jquery | [3, 5] |
2,494,798 | 2,494,799 | add new properties to an object in for loop | <p>How do you add more objects to an object on the fly in a for loop in JavaScript</p>
| javascript jquery | [3, 5] |
3,040,844 | 3,040,845 | Is inputType="phone" limit the no of digits to take as inout | <p>I used <code>android:inputType = "phone"</code> to take phone number as input, but if i give six digits it takes otherwise force close and fires the error that </p>
<blockquote>
<p>"NumberFormat exception not valid int value"</p>
</blockquote>
<p>Actually i'm trying to convert that value to integer through:</p>
... | java android | [1, 4] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.