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 |
|---|---|---|---|---|---|
698,464 | 698,465 | Form framework for dynaimcally adding, altering fields | <p>I have several forms on my website in which fields are dynamically created or altered based on what is altered in previous fields? Is there a good framework for doing this easily?</p>
| php javascript | [2, 3] |
5,450,937 | 5,450,938 | jquery pop up(php inside) when browser idle | <p>good day everyone,
i have a little question about jquery, is it possible if we want to make jquery pop up which it contains a php and mysql data when the browser idle(about 30 min) :D</p>
<p>Someone can give me an example or any tutorial, will help? thx</p>
| php jquery | [2, 5] |
5,752,298 | 5,752,299 | Dynamically created button not firing Click event | <p>I am creating dynamic controls, in that one control is a button.
i used the following code to add the button control.</p>
<pre><code> Button btnContinue = new Button();
btnContinue.Attributes.Add("class", "button");
btnContinue.ID = "btnContinue";
btnContinue.Text = "C... | c# asp.net | [0, 9] |
5,323,263 | 5,323,264 | dynamically adding validators | <p>In my case I would like to dynamically add validators to my control based on given logic. For each control I first check something in my DB and if it goes aout that field is required I would like to add requiredField to that control. I firt iterate through each control and if its required I add attribute required="t... | c# asp.net | [0, 9] |
4,294,147 | 4,294,148 | Javascript function calling question | <p>Is it possible to do what I want? the <code>changeEl()</code> function is also in <code>fadeGall()</code></p>
<pre><code> function initOpen(){
$('ul.piple-holder > li > a, ul.work-holder > li > a').each(function(){
var _box = $(this);
_box.click(function(){
... | javascript jquery | [3, 5] |
1,894,278 | 1,894,279 | Sending mail periodically in ASP.net | <p>I'm trying to send confirmation mails to users periodically in ASP.NET. </p>
<p>To do this I polulate a queue with mails and check it every 30 seconds. Any confirmation emails in the queue at this time are sent and then cleared from the queue. </p>
<p>Does anyone know how to do this? </p>
<p>Here is my sending ma... | c# asp.net | [0, 9] |
923,377 | 923,378 | Localization of javascripts and jquery alerts | <p>Is it possible to localize the javascript and jquery in asp.net (.net 4)?</p>
<p>Is there any proper examples with c#?</p>
| c# javascript jquery asp.net | [0, 3, 5, 9] |
619,759 | 619,760 | Is this the correct way to set an id for an element that doesn't have an id yet in jQuery? | <pre><code>$("a[href*='http://www.google.com']").attr('id','newId');
</code></pre>
<p>Can only reference it by <code>href</code>.</p>
| javascript jquery | [3, 5] |
5,623,260 | 5,623,261 | Giving up control: machine code generation vs memory layout? | <p>This may be a bit off topic of "right answer, not discussion."</p>
<p>However, I am trying to debug my thought process, so maybe someone can help me:</p>
<p>I use compilers all the time, and the fact that I'm giving up control over machine code generation (the layout of my caches, and the flow of electrons) does n... | java c++ | [1, 6] |
165,402 | 165,403 | passing javascript value to another page | <p>I am trying to passing javascript variable value to another page and retrieve here into a php variable</p>
<p>Using function i made a pop up to appear and store it to a java script variable so now how do i pass it another page and i do have some text box values but i get this ,i use action and give page name in it... | php javascript | [2, 3] |
5,165,186 | 5,165,187 | Getting cookie data from get PHPSESSID in Java | <p>Working on a Java app that sends POST data to a forum to post data. Works almost great. Seems if I don't have PHPSESSID cookie set I get a 403 but when I get cookies, its not one of those returned to me.</p>
<p>Any idea how I can get this cookie or is the only solution to disable?</p>
| java php | [1, 2] |
3,374,136 | 3,374,137 | Dropdown list | <p>I want people to choose from a dropdown list,and their choice takes them to a page they have chosen.</p>
| c# asp.net | [0, 9] |
460,830 | 460,831 | Getting a radio button ID with jQuery | <pre><code>$(function () {
$("#MyInputBox").keyup(function () {
var nextChk = $(this).next(":radio:checked").attr('id'));
alert(nextChk);
});
});
</code></pre>
<p>What is the correct way to say "Get the ID of the next checkbox which is checked" Am I even close?</p>
| javascript jquery | [3, 5] |
543,730 | 543,731 | how to resize iframe height on browser resize? | <p>I am trying to resize the iframe on window resize as well as the content within the iframe</p>
<p>Current the script I have seta the height on load only.</p>
<p>Can any one help??</p>
<p>Eaxmple attached</p>
<p><a href="http://jsfiddle.net/zidski/GRRWj/7/" rel="nofollow">http://jsfiddle.net/zidski/GRRWj/7/</a></... | javascript jquery | [3, 5] |
1,532,866 | 1,532,867 | Add new row to table | <pre><code> HtmlTable baseCalendar = new HtmlTable();
HtmlTableRow calendarRow = new HtmlTableRow();
HtmlTableCell calendarCell = new HtmlTableCell();
for (int i = 1; i < 7; i++)
{
calendarRow = new HtmlTableRow();
for (int k = 0; k < 7; k++)
{
calendarCell = new HtmlTableCell();
... | c# asp.net | [0, 9] |
3,807,167 | 3,807,168 | Javascript stopped working | <p>For some reason, the scripts that I have set up on my wordpress install stopped working yesterday afternoon. I had been editing things, but I'm not sure what I could have done that caused it to stop.</p>
<p>Is there any way that I can error check why it's not working, or any common reasons why it might not be?</p>
... | jquery javascript | [5, 3] |
1,478,150 | 1,478,151 | Javascript undefined attribute | <p>I'm new to Javascript and I got this:</p>
<p>I have a <code>GridView</code> with the following event:</p>
<pre><code>protected void GridView1_RowCreated(object sender, GridViewRowEventArgs e)
{
foreach (TableCell c in e.Row.Cells)
{
c.Attributes.Add("full","false");
}
}
</code></pre>
<p>And in my javasc... | c# javascript asp.net | [0, 3, 9] |
571,125 | 571,126 | 2 javascripts plugin not working together | <p>I tried to implement 2 plugins in a page and when i introduce the 2nd one... the 1st plugins stops working .. can you please help me in this.. he is the page i am trying to build..</p>
<p><a href="http://www.abc.com/home21" rel="nofollow">http://www.abc.com/home21</a></p>
<p>and here are the 2 plugins i am trying ... | javascript jquery | [3, 5] |
3,792,661 | 3,792,662 | Is there a way to avoid size limit when using getResources().openRawResource() | <p>I am trying to load an XML file from res/raw folder in my Android project when the app first runs. I do this with this line:</p>
<pre><code>InputStream xmlStream = getResources().openRawResource(R.raw.xmlfile);
</code></pre>
<p>I then want to use a SAX Parser to get data from the XML file. When doing this LogCat s... | java android | [1, 4] |
1,150,634 | 1,150,635 | Select control using jQuery - using value of hiddenfield | <p>I have a hidden field, which has the following markup:</p>
<pre><code><input type="hidden" name="ctl00$ContentPlaceHolder1$LinksOverview1$ProductView$ctrl1$ctl01$ctl00$DescriptionOfLink$QuestionDivInfo" id="ContentPlaceHolder1_LinksOverview1_ProductView_ctrl1_ctl00_3_DescriptionOfLink_3_QuestionDivInfo_3" value=... | jquery asp.net | [5, 9] |
5,889,177 | 5,889,178 | retrieve all the hyperlinks from html file using jquery or javascript | <p>I need to retrieve all the hyperlinks present in current html page using jquery. How can i use regular expressions to do that? Also can i use collections in javascript to store all the hrefs in the list?</p>
| javascript jquery | [3, 5] |
690,558 | 690,559 | JQuery On Click with data attribute | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/2487747/selecting-element-by-data-attribute">Selecting element by data attribute</a> </p>
</blockquote>
<p>I'm trying to listen to when an element with a certain data attribute is clicked but I can't seem to get... | javascript jquery | [3, 5] |
1,560,225 | 1,560,226 | Can you create a .java file in a c++ program? | <p>Is it possible for me to create a .java file using c++? If so, how?</p>
| java c++ | [1, 6] |
5,925,056 | 5,925,057 | how to call a js function from loaded jquery | <p>the function is in the page loading the ajax but i'm trying to call the function</p>
<p>codes:</p>
<p>[ajax] </p>
<pre><code>$.ajax({
type: "POST",
url: "loginpersonal.asp",
data: "id=<%=request("id")%>",
beforeSend: function() {
$("#personaltab").hide();
},
success: functio... | jquery javascript | [5, 3] |
3,881,951 | 3,881,952 | Variable Undefined in Anonymous Function | <pre><code>function updateServerList() {
var i;
for (i=0; i < servers.length; i++) {
var server = servers[i];
var ip = server['serverIp']
var html = constructServer(i);
var divId = '#server' + ip.replace(new RegExp("\\.", "mg"), "-");
var visible = $(divId).find(".server_body").is... | javascript jquery | [3, 5] |
866,977 | 866,978 | Multiple instances of a view object within an android activity | <p>I have two custom view objects that are created within an activity like so.</p>
<pre><code>public class Statistics extends Activity {
GraphWindow graph1;
GraphWindow graph2;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(... | java android | [1, 4] |
202,486 | 202,487 | i want to attach a click evet for the selected items and show tooltip on mouse over in autocomplete control in jquery | <pre><code> $(document).ready(function(){
$("#select3").fcbkcomplete({
json_url: "data.txt",
addontab: true,
maxitems: 10,
input_min_size: 0,
height: 10,
cache: true,
newel: true,
s... | javascript jquery asp.net | [3, 5, 9] |
4,797,545 | 4,797,546 | Seperate HTTP connection results (PHP echo) | <p>In my Android application I make a HTTP POST connection:</p>
<pre><code>serverresponse = CustomHttpClient.executeHttpPost(url, postParameters);
</code></pre>
<p>All working fine. The <code>url</code> is pointing to a php page on my server. It echos an array of image urls in JSON format like this:</p>
<p><code>[".... | java php android | [1, 2, 4] |
5,885,896 | 5,885,897 | Magnify search box similar to that on Apple.com | <p>If you go to <a href="http://apple.com" rel="nofollow">http://apple.com</a> and click in the search box, you'll notice it grows/magnifies <code>onfocus</code>, and <code>onblur</code> it collapses back to it's original state.</p>
<p>I'm wondering if there's a jquery plugin or similar to do this job easily. </p>
<p... | javascript jquery | [3, 5] |
3,401,804 | 3,401,805 | base64 encode audio file and send as a String then decode the String | <p>I have been stuck on this issue for a few hours now trying to get it working. Basically what I am trying to do is the following. Base64 encode an audio file picked up from an sdcard on an Android device, Base64 encode it, convert it into a String and then decode the String using Base64 again and save the file back t... | java android | [1, 4] |
4,986,877 | 4,986,878 | C# Populate Radiobuttons in a TreeView on PageLoad with a Database Returned Value | <p>I am using a TreeView control, and I would like to be able to use radiobuttons instead of checkboxes. I am currently creating the radiobuttons using the following code: </p>
<pre><code>e.Node.ChildNodes.Add(new TreeNode(String.Format("<input type='radio' value='{0}' name='rblMain' /> {1}", value, name), valu... | c# asp.net | [0, 9] |
1,897,751 | 1,897,752 | How do I supply values to an referenced assembly without calling a method it explicitly? | <p>Currently I have a static class that I use as my logging module. I’ve added the class to my visual studio solution. Within the class I’ve specified the name and location of the log file to use.
Which lets me do stuff like this – which I like and want.</p>
<pre><code>Logger.Information(“Page_Load”,”controls loaded c... | c# asp.net | [0, 9] |
4,756,810 | 4,756,811 | asp.net new page on button click | <p>Trying to display a new page, in a new window when the user clicks on a button.
Trying to test it out with this but no luck so far:</p>
<pre><code>Label1.Text = "<form><input type=button name=print value='Print View' onClick='javascript:window.open('http://mylink','mywindow')'></form>";
</code></p... | c# asp.net | [0, 9] |
3,505,516 | 3,505,517 | Microsoft JScript runtime error: 'done' is undefined how to solve this? | <p>i am getting an error while login to web page in my project which is build in C# lang asp.net
and i am running this using master page plz help me to solve this.</p>
<pre><code>error: Microsoft JScript runtime error: 'done' is undefined
</code></pre>
| c# asp.net | [0, 9] |
4,854,868 | 4,854,869 | jQuery: How can I detect if the html has changed within a given element? | <p>In javascript, possibly using jQuery, how can I detect if the html content of a given element has changed?</p>
<p>I'd like to be able to do somthing like:</p>
<pre><code>$('#myDiv').change(function(){
// do some stuff
});
</code></pre>
<p>I am basically trying to detect if given elements are being added to the ... | javascript jquery | [3, 5] |
580,693 | 580,694 | Create opening application | <p>I would like to display an image at the opening of my application Android (Java), is like a toast in full screen only.</p>
<p>That is, when you open the application and an image appears and disappears after you start the program.</p>
<p>What better way to do this?</p>
| java android | [1, 4] |
2,137,843 | 2,137,844 | Why this type of array wrapping does not work in jQuery? | <p>Consider this:</p>
<pre><code>var i=$('<img src="/path/to/imgI.png"/>');
var j=$('<img src="/path/to/imgJ.png"/>');
$([i,j]).css('cursor','hand');
</code></pre>
<p>The cursor is not changed however and I don't know why..</p>
<p>When I do it separately, it works.</p>
<p>Thanks.</p>
| javascript jquery | [3, 5] |
3,851,428 | 3,851,429 | Learning C++/Java coming from python | <p>As far as my programming career went, I started out with Python, then went into Javascript, now I'm into PHP. I really want to learn a compiled language like c++ and Java. I don't exactly know how to start, especially since I'm currently looking into going into CS or CE in University, and my school don't offer anyth... | java c++ python | [1, 6, 7] |
1,267,663 | 1,267,664 | js, log object is different to log 'string' + obj | <p>I'm logging a jQuery object, which assigns to </p>
<pre><code>eg: $obj = <div></div>
</code></pre>
<p>if I</p>
<pre><code> log $obj
</code></pre>
<p>I get ''</p>
<pre><code> <div></div>
</code></pre>
<p>, which is what I need. But when I</p>
<pre><code> Log 'some string' + $obj
</cod... | javascript jquery | [3, 5] |
2,392,462 | 2,392,463 | get value based on index dropdown | <p>I need to select a value from dropdown based on index. It is a super easy question. cannot find the property:</p>
<p>I though doing something like: </p>
<pre><code>dll.Items[index]
</code></pre>
<p>But still do not know how to get value for this index.</p>
| c# asp.net | [0, 9] |
1,486,486 | 1,486,487 | vector.push_back equivalent in Java | <p>In <code>C++</code>, I don't have to know the size of how much content I'm going to stuff into a int vector while declaring it, i.e.</p>
<pre><code>vector<int> x;
x.push_back(1);
...
...
...
x.push_back(10);
</code></pre>
<p>What would be an equivalent data structure for doing the same in <code>Java</code>?<... | java c++ | [1, 6] |
2,228,114 | 2,228,115 | How to pass textbox value to JavaScript? | <p>How to pass two textbox values to a javascript function on a button click event.I have tried it like this but it is not working.here is my code</p>
<pre><code><asp:LinkButton ID="lnkBTNSubmit" runat="server" CssClass="buttonlink"
OnClientClick="checkDateRange(GetTextBoxValue('<%= txtATrendStartDate.ClientID... | javascript asp.net | [3, 9] |
3,568,022 | 3,568,023 | Replace Javascript click event with timed event? | <p>I've found some javascript code that layers photos on top of each other when you click on them.</p>
<p>Rather than having to click I'd like the function to automatically run every 5 seconds. How can I change this event to a timed one:</p>
<pre><code>$('a#nextImage, #image img').click(function(event){
</code></pr... | javascript jquery | [3, 5] |
4,854,474 | 4,854,475 | Why jQuery function returns null? | <p>I have this form:</p>
<pre><code><form action="javascript:;" class="iceFrm" enctype="application/x-www-form-urlencoded" id="frmMainMenu" method="post" onsubmit="return false;">
.....
</form>
</code></pre>
<p>I do not understand why this script:</p>
<pre><code><script type="text/javascript">
$(do... | javascript jquery | [3, 5] |
1,336,566 | 1,336,567 | android indexoutofboundsexception passing bundle through intent | <p>I have stumbled upon an issue I can't figure out right now. I get an index out of bounds exception when I pass a bundle to a new activity in intent extras. </p>
<p>I use the following code:</p>
<pre><code>Intent intent = new intent(this, statelistactivity.class);
Bundle bundle = new bundle();
Bundle.putInt("id", ... | java android | [1, 4] |
3,244,491 | 3,244,492 | Function in javascript or jquery like nl2br in php | <p>I need function in javascript or jquery like nl2br in php.
Is there any function in javascript or jquery?if not suggest any equivalent solution.</p>
<p>Thanks</p>
| php javascript jquery | [2, 3, 5] |
3,686,392 | 3,686,393 | Is there any better way to do this in jquery? | <p>I want to know that is there any better method to do :</p>
<pre><code>var name = $('input').attr("name") != "undefined" ? $('input').attr("name") : "";
</code></pre>
<p>Here i am reading the <code>name</code> attribute of <code>input</code>. My problem is when i read the <code>name</code> for newly created <code>t... | javascript jquery | [3, 5] |
146,228 | 146,229 | dynamic selector for onClick not working | <p>I want to make simple onClick event</p>
<pre><code>$('._1').click(function(){
window.open('abc.html?parameter=1');
});
</code></pre>
<p>in above case , i have _1 as a class,
now there are multiple such elements, and 1 here also acts as parameter to window.open request</p>
<p>but there are multiple cli... | javascript jquery | [3, 5] |
2,328,551 | 2,328,552 | Making navigation links highlight when relevant element passes underneath it, using JavaScript/JQuery? | <p>I have a single page website with the navigation menu <code>position:fixed</code> at the top of the page. </p>
<p>When I click a link from the navigation menu the page scrolls to the appropriate section using this JQuery:</p>
<pre><code>$('a[href^="#"]').live('click',function(event){
event.preventDefault();
... | javascript jquery | [3, 5] |
5,083,948 | 5,083,949 | how to get the value from a CSS class object in javascript | <p>I have to select an <code><a></code> element from the given class of objects. when i click on the anchor tag in the <code>showcase_URL</code> class, i want the jquery function to get the value from <code><a></code> tag.
How can this be done?</p>
<p>I cannot make this an <code>id</code> as I am running ... | javascript jquery | [3, 5] |
3,617,225 | 3,617,226 | Redirect user to a specific page after login | <p>In web application, after login "ReturnUrl" going to last visited page. How to set to go default.aspx.</p>
<p>I declared code in web.config like this.</p>
<pre><code> <forms name="FormsAuth" loginUrl="Default.aspx" defaultUrl="Default.aspx"
path="/" timeout="200" slidingExpiration="true">
</code></pre>... | c# asp.net | [0, 9] |
3,694,768 | 3,694,769 | jQuery looping through .children of .children | <p>I've been looking over previously asked questions and can't seem to find a solution for my scenario...</p>
<p>I'd like to be able to loop through all children and children of children, etc...</p>
<p>the markup from design looks similar to this</p>
<pre><code><div>
<div>
<label></label>... | javascript jquery | [3, 5] |
1,958,652 | 1,958,653 | Is it possible to use a variable by providing its name through reflection? | <p>I'm trying to get access to some string resources generated in R.java class at runtime.</p>
<p>R.java :</p>
<pre><code> public static final class string {
public static final int app_name=0x7f040000;
public static final int eightOvereight=0x7f040030;
public static final int eightOvernine=0x7f040031;
... | java android | [1, 4] |
72,580 | 72,581 | jquery custom filter does not work | <p>The filter itself is pretty easy:</p>
<pre><code>$.expr[':'].valid = function(a) {
var phone = a.value.replace(/\D/g,''),
phonesub = phone.substr(0, 2);
return (phonesub == '79' || phonesub == '89') && phone.length == 11
}
</code></pre>
<p>I just want to check if <code>phone</code> length ... | javascript jquery | [3, 5] |
3,019,150 | 3,019,151 | can we store fadeOut method in a variable | <p>i have a jquery slider function and i want to customize it. my requirement is i want store fadeout effect in variable but i am not getting any idea. i spent some time on the internet to find out the solutions but not reaching up to the solutions. so there is any solutions regarding this. if yes please let me know it... | javascript jquery | [3, 5] |
5,800,652 | 5,800,653 | How to fill a Spinner with a loop in Android? | <p>How can i fill a spinner from - 1 to 40 elements via a loop.</p>
<p>When the program first starts ?</p>
<p>And how to read the value that i pick from the list ?</p>
<p>thanks in advance</p>
| java android | [1, 4] |
983,605 | 983,606 | Correct Syntax to Include object data in jquery selector | <p>I'm trying to make a jquery selector as per the below code. However, my js is pretty poor and i'm not sure what the correct syntax is to use data.key as the value here (data.key should have a numeric value btw). I'd know how to do this in php! But not sure here :(</p>
<pre><code>onClick: function(data) {
if($("... | javascript jquery | [3, 5] |
1,868,289 | 1,868,290 | Button Shown as pressed on start of Activity in Android | <p>How can i show a button as it is pressed whenever the activity is created and UI is shown to user in Android?</p>
| java android | [1, 4] |
5,307,532 | 5,307,533 | Having a single event listener for custom events generated by any element in the page | <p>I am in the process of creating a huge web application, with a JavaScript based UI, and many events generated continuously.</p>
<p>To avoid bad performance due to the huge amount of the event listeners needed, I of course opted to use a single event listener which will catch all the events generated from the childr... | javascript jquery | [3, 5] |
2,083,889 | 2,083,890 | Get FileChannel from AssetManager Android | <p>I want to get a FileChannel from the AssetManager in android, is there any way to do this? I want to map some raw custom binary files to some buffers. (If you have a better solution than AssetManager, please feel free to contribute)</p>
| java android | [1, 4] |
5,537,035 | 5,537,036 | Is it possible to get a selector using indexOf | <p>Like</p>
<pre><code> <div id="box_1">
<div id="box_2">
<div id="box_3">
</code></pre>
<p>If i want to get all id's starting with 'box_' how can i do it something like this..</p>
<pre><code> $("#box_" + anything )
</code></pre>
<p>Unfortunately wrapping the div's won't work because... | javascript jquery | [3, 5] |
4,230,231 | 4,230,232 | Changing image src onClick with jQuery | <p>I am using this HTML on my site:
<code><a href="#1" id="slick-toggle"><img src="img1.jpg"/></a></code></p>
<p>When I click this link, I would like to change the image src to <code>img2.jpg</code>. And revert back to <code>img1.jpg</code> when clicked again & so on. <strong>Can someone explain... | javascript jquery | [3, 5] |
1,490,207 | 1,490,208 | Get the the last inserted record in the code behind | <p>I have an insert stored procedure likes this </p>
<pre><code> insert into Profile_Master(FirstName,LastName,Dob,Gender,MobileNo,Country,State,EmailId,Password)
values
(@FirstName,@LastName,@Dob,@Gender,@MobileNo,@Country,@State,@EmailId,@Password)
set @id=SCOPE_IDENTITY()
return
end
</code></pre>
<p>I want to g... | c# asp.net | [0, 9] |
4,113,135 | 4,113,136 | Javascript error while executing alert function through php | <p>I am using fusion maps in one of my application.</p>
<p>In one of the example i have to pass the value from one map to another charts,</p>
<p>I am facing one problem if the data passed is numeric its displaying alert message correctly but if it is a string it generates an error:</p>
<pre><code>NM is not defined
<... | php javascript | [2, 3] |
5,756,487 | 5,756,488 | JQuery: get a child as you append it | <p>I am appending p tags to a div as I process a json request and would liek to style it according to what is in the request.</p>
<pre><code>$(document).ready(function() {
function populatePage() {
var numberOfEntries = 0;
var total = 0;
var retrieveVal = "http://www.reddit.com/" + $("#addr... | javascript jquery | [3, 5] |
4,561,776 | 4,561,777 | What is the correct way to set up and display a JavaScript alert message in ASP .NET? | <p>I'm completely new to working with JavaScript in ASP .NET so bear with me.</p>
<p>Say I have the following:</p>
<pre><code>protected void btnCreateReplication_Click(object sender, EventArgs e)
{
try
{
doSomething();
}
catch (Exception ex)
{
//How do I display the error? I know if I were ... | c# javascript asp.net | [0, 3, 9] |
739,737 | 739,738 | create an email drop box with php, javascript etc | <p>I am in the midst of creating an online contact management tool for users to manage contacts and clients. I am trying to develop a solution where the user will add a <code>BCC</code> or <code>CC</code> in any email client like this:</p>
<pre><code>1234@myappdomain.12345.com
</code></pre>
<p>and my app will grab t... | java php javascript jquery | [1, 2, 3, 5] |
2,093,698 | 2,093,699 | How to print specific day's date in month using jquery or php | <p>For example, I select March 2013 month and I want to print the all dates of Sunday in this month. How can I print a specific day's date in month using jquery or php?</p>
<pre><code>jQuery(function () {
jQuery("#datepicker").datepicker({
dateFormat: 'dd-mm-yy'
});
var day = new Date();
var month = day.getMonth()... | php javascript jquery | [2, 3, 5] |
238,575 | 238,576 | making an inline C# call in external Javascript file | <p>With my javascript getting bigger and bigger, I want to clean up my ASPX File.</p>
<p>The problem is alot of my javascript involves a lot of inline C# calls. ie:</p>
<pre><code>'<%=C# method call)%>'
</code></pre>
<p>But this doesn't seem to work when its tucked away in a .js file. </p>
<p>Is there a worka... | c# javascript asp.net | [0, 3, 9] |
338,226 | 338,227 | FormsAuthentication, Roles does not exist even when Systems.Web are included | <p>So I copied the Registration page that came with ASP.NET to my own page, but for some reason the FormsAuthentication, Roles does not exist in the current context anymore. I have already included the appropriate files.</p>
<pre><code> protected void RegisterUser_CreatedUser(object sender, EventArgs e)
{
... | c# asp.net | [0, 9] |
535,594 | 535,595 | Which is best way to design a webpage? | <p>I'm interested in developing a website using asp c#. I am new to asp.net c# platform. I want to design a website with css styles that have drop down menu items and new style. So how to start design and which software should I use?</p>
| c# javascript asp.net | [0, 3, 9] |
12,118 | 12,119 | Soft reference and weak reference | <p>I'm cursious about the soft and weak references in the Java environment. I have also read a bit about both topics. Just to sum up, the weak reference are as the name says, weak references to an object. This means that the reference to this object is easily collected by the <code>GC</code>. A weak reference is create... | java android | [1, 4] |
2,701,357 | 2,701,358 | Can a browser on the client side add JavaScript on our website? | <p>Can any client add his JavaScript on my website?</p>
| javascript android | [3, 4] |
5,660,278 | 5,660,279 | jQuery this var outside of anon function | <p>I'm trying to achieve something like this. Any ideas?</p>
<pre><code>function test(that){
$(that).blur();
}
$("#form").focus(test(this));
</code></pre>
| javascript jquery | [3, 5] |
3,377,533 | 3,377,534 | Why is page refresh triggering .keyup()? | <p>I have this function:</p>
<pre><code>$('.PhoneNumbers').on('keyup focusout', $('input:text[name^="Customers[0].PhoneNumbers"]'), function (e) {
phoneRadioBtns(e);
});
</code></pre>
<p>The problem is that when I refresh the page it triggers the keyup event and it executes the function, which is not the desired ... | javascript jquery | [3, 5] |
2,792,448 | 2,792,449 | Replace strings in native .exe using c# | <p>how can I catch all strings from a native windows .exe file and replace them later with others using c# ?</p>
<p>Background: I want to create a c# tool to extract and replace strings from a simple .exe file.</p>
<p>Is this possible somehow?</p>
| c# c++ | [0, 6] |
3,925,362 | 3,925,363 | Cloning or adding an input to a form in jQuery does not submit to PHP in Firefox | <pre><code>$('#images_upload_add').click(function(){
$('.images_upload:last').after($('.images_upload:last').clone().find('input[type=file]').val('').end());
});
</code></pre>
<p>using this code to append file input's does not upload the file in firefox.</p>
<p>also</p>
<pre><code>$('#image_server_add inp... | php javascript jquery | [2, 3, 5] |
1,756,312 | 1,756,313 | Asp.net is it possible to check page_load a click event is triggered? | <p>When a button is clicked, I would like to check whether a button is clicked in my page_load. Is this possible? I am using asp.net 2.0 C#</p>
| c# asp.net | [0, 9] |
4,715,080 | 4,715,081 | $ is not a function, although jQuery is loaded | <p>Take a look at this site: </p>
<p><a href="http://www.magiskecirkel.no/" rel="nofollow">http://www.magiskecirkel.no/</a></p>
<p>It says $ is not a function, although jQuery is loaded.</p>
<p>I know I have asked this question before, and it was fixed, but now apparently the problem is back... So sorry for re-posti... | javascript jquery | [3, 5] |
573,709 | 573,710 | Add one year with months to dropdownlist | <p>I'm stuck at trying to generate a dropdownlist where i have both year and month showing.</p>
<p>The dropdown must have 1 year showing like below.</p>
<ul>
<li>"Nov 2012"</li>
<li>"Oct 2012"</li>
<li>"Sep 2012"</li>
<li>"Aug 2012"</li>
<li>"Jul 2012"</li>
<li>"Jun 2012"</li>
<li>"May 2012"</li>
<li>"Apr 2012"</li>
... | c# asp.net | [0, 9] |
1,933,655 | 1,933,656 | Managing this scope in javascript | <p>I am trying to get this function to get the correct scope for its "this" operator, but no luck. Inside the <code>AssetName = function(options){</code> code block, I want the "this" to point to the class <code>AssetName</code>. What is it that I am missing? The scope of <code>this</code> right from the beginning is <... | javascript jquery | [3, 5] |
5,302,874 | 5,302,875 | detect click inside iframe | <p>i wanna detect click INSIDE iframe not onclick on iframe itself i tried onclick event u must click on iframe itself to trigger function i even tried addeventlistener to window or document nothing work as if the iframe isn't there the function never triger when i click inside iframe :( plz help</p>
| javascript jquery | [3, 5] |
2,021,261 | 2,021,262 | JQuery '$(this)' | <p>Why and when would you use <code>$(this)</code> instead of <code>this.</code>?</p>
| javascript jquery | [3, 5] |
1,770,199 | 1,770,200 | Difference between %5B% and %5B0%? | <p>jQuery .serialize() turns "[]" into %5B%5D</p>
<p>PHP http_build_query seems to turn the first "[]" into %5B0%5D, the second into %5B1%5D, etc. So it seems to be using some kind of counter.</p>
<p><strong>Why are there differences in these almost identical functions?</strong> </p>
<p>Is it just my browser that ma... | php jquery | [2, 5] |
1,488,267 | 1,488,268 | Disable select, copy and paste of the content of HTML pages in Mozilla Firefox | <p>I want to disable select, copy and paste of the content of HTML pages in Mozilla Firefox. I have used jQuery and JavaScript to disable right-click and copy, select, paste of the contents of HTML pages and it's working fine in IE and Chrome, but not working properly in Mozilla Firefox.</p>
<p>Can we disable copy, pa... | javascript jquery | [3, 5] |
984,990 | 984,991 | How can I save video files to the SD card? | <p>I have an app which plays videos from <code>res/raw/</code>. The problem is that it uses nearly 40 MB of memory, which is way too much. The other version which plays the same video from the SD card uses only around 500 KB of memory. But I can't ask the users of my app to download the videos and store them in a part... | java android | [1, 4] |
4,231,260 | 4,231,261 | jQuery checking which radiobutton is checked | <p>I got 2 radiobutton and 1 radcombobox</p>
<pre><code><asp:RadioButton ID="cbxYes" Width="60" Height="30" runat="server" GroupName="proffesional" OnCheckedChanged="cbxYes_CheckedChanged" />
<asp:RadioButton ID="cbxNo" runat="server" Width="60" Height="30" GroupName="proffesional" Checked="true" OnCheckedCha... | jquery asp.net | [5, 9] |
851,504 | 851,505 | String to jQuery object, replace attribute and then back to string again (see JS Fiddle) | <p><a href="http://jsfiddle.net/r4KL9/" rel="nofollow">http://jsfiddle.net/r4KL9/</a></p>
<p>This should replace all classes with the corresponding data-change attribute.</p>
<p>So if I had:</p>
<pre><code><div class="hello" data-change="new-class">
</code></pre>
<p>...I would expect it to return</p>
<pre><c... | javascript jquery | [3, 5] |
1,801,123 | 1,801,124 | asp:CreateUserWizardStep - The name 'UserName' does not exist in the current context | <p>i have TextBox inside <code><asp:CreateUserWizard \> --> <WizardSteps> --> <asp:CreateUserWizardStep\> --> <ContentTemplate></code></p>
<p>this TextBox ID is UserName.</p>
<p>I'm facing a problem to push into this TextBox. when i do <code>UserName.Text = "some name"... | c# asp.net | [0, 9] |
922,667 | 922,668 | PLSA implementation in Python | <p>Is their any library containing implementation of PLSA (Probabilistic Latent Semantic Analysis) algorithm ? Preferably in python, but Java/C++ is also welcomed...</p>
| java c++ python | [1, 6, 7] |
3,613,096 | 3,613,097 | Object function Function() { [native code] } has no method '_registerScript' | <p>I have site which has updatePanel and it is hosted on a web farm. Ive noticed that sometimes when I hit ctrl + r there is an js error:</p>
<pre><code>Object function Function() { [native code] } has no method '_registerScript'
</code></pre>
<p>Requests before <code>ctrl+r</code> and on <code>ctrl+r</code> are mad... | c# asp.net | [0, 9] |
3,812,926 | 3,812,927 | Call jQuery SuperBox from cloned image object | <p>I have cloned image object inside my view. On that cloned object I want to bind <a href="http://pierrebertet.net/projects/jquery_superbox/" rel="nofollow">the jQuery SuperBox</a> effect. Since this effect by default is fired using <code><a href="#box-content" rel="superbox[content]">SuperBox</a></code>, ... | javascript jquery | [3, 5] |
3,339,210 | 3,339,211 | Accessing data from other website to know if the client has paid or unpaid status after logging in | <p>We have been developing a web application, and we have utilized login system of this site <a href="http://www.cura2apptrade.herobo.com/index.php/" rel="nofollow">http://www.cura2apptrade.herobo.com/index.php/</a> , this is my site I have uploaded to a free web hosting company. We have just embedded its login system ... | php javascript | [2, 3] |
5,297,327 | 5,297,328 | How can I elegantly select a parent including its set of direct descendents? | <p>I'm working with a mess of HTML markup. In order to get reliable matches I have resorted to explicitly querying a chain of elements using the <a href="http://docs.jquery.com/Selectors/child" rel="nofollow">'>' operator</a>.</p>
<p>For this question I am attempting to select the parent of an explicit chain of descen... | javascript jquery | [3, 5] |
1,512,444 | 1,512,445 | how to control sound in android? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/2539264/volume-control-in-android-application">Volume Control in android application</a> </p>
</blockquote>
<p>i m making an app for music player and i want to increase and decrease volume by using hardware butt... | java android | [1, 4] |
5,608,822 | 5,608,823 | Integrating jQuery BBQ into my current code? | <p>I am trying to integrate the <a href="http://benalman.com/projects/jquery-bbq-plugin/" rel="nofollow">jquery BBQ plugin</a> into my current code, at the moment I have set up a simple AJAX request that returns the selected links relative page. Can anyone tell me how I can modify the BBQ script so it will work with my... | javascript jquery | [3, 5] |
5,230,747 | 5,230,748 | How to combine click with hover function in same status? | <p>I try to add click function but it doesn't run...</p>
<pre><code>$("#menu2 li").hover(function() { //On hover...
$(this).find("span").stop().animate({
marginTop: "-40" //Find the span tag and move it up 40 pixels
}, 250);
$("#menu2 li").click(function() { //On click...
$(this).fin... | javascript jquery | [3, 5] |
3,148,808 | 3,148,809 | Select all iframes inside the specific iframe? | <p>Jquery: How to select all iframes inside the specific iframe?
I have a specific iframe, <code>id="main_frame"</code>
so far I tried this one, but it don't work:</p>
<pre><code>$("#main_frame").contents().find("iframe").each(function() {
data = $(this);
//somecode
});
</code></pre>
<p>This gets the data only f... | javascript jquery | [3, 5] |
5,639,716 | 5,639,717 | jQuery: For each attribute of an input element how do I get that input element's name? | <p>I'm looking at each input element that has an attribute named "isDate". I want to find that attributes parent input element's name attribute.</p>
<pre>
<input name="A0000" isDate="true" value="01/01/2020" />
<input name="A0001" isDate="true" value="01/01/2021" />
<input name="A0002" isDate="true" va... | javascript jquery | [3, 5] |
2,583,370 | 2,583,371 | trying to add hierarchy constraints to delegate() | <p>I've got a delegate statement that works like so:</p>
<pre><code>$("body").delegate("tr[type='option']",'mouseenter',function(){
</code></pre>
<p>The problem is that it's grabbing elements from tables I don't want. So I tried:</p>
<pre><code>$("body").delegate("table[class='ms-MenuUI'] > tr[type='option']",'m... | javascript jquery | [3, 5] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.