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,052,488 | 3,052,489 | Losing the session after the Postback | <p>I have been using session variables in my asp.net application for passing the next property:</p>
<pre><code>[DefaultValue(true)]
public bool IsModificationMode
{
get
{
return (bool)Session["ModificationMode"];
}
set { Session["ModificationMode"] = value; }
}
</code></pre>
<p>In the PageLoad... | c# asp.net | [0, 9] |
1,377,467 | 1,377,468 | Raise an event or override a method when the user logs out in ASP.NET | <p>I need to do something when the user logs out. I have used ASP.NET Forms Authentication.</p>
<p>What should I override or implement?</p>
<p>I have an ASP.NET login control and I want to empty the basket-viewer when the customer logs out of the system.</p>
| c# asp.net | [0, 9] |
3,766,749 | 3,766,750 | Convert PHP to C++ code | <p>I'm looking for a way to convert PHP code to C++. There are a few reasons I want to do so:</p>
<p><strong>Main reason: There are bunch of great PHP tools/software that I'd love to use and incorporate into C++ GUI or non-GUI applications</strong></p>
<ol>
<li>To boost performance</li>
<li>To avoid dependency on PHP... | php c++ | [2, 6] |
404,252 | 404,253 | jQuery - Find any input with a given class that has no value | <p>I have a (very) basic validation script. I basically want to check for any inputs with class .required to see if there values are a) blank or b) 0 and if so, return false on my form submit. This code does not seem to return false:</p>
<pre><code>function myValidation(){
if($(".required").val() == "" || $(".requir... | javascript jquery | [3, 5] |
1,359,194 | 1,359,195 | jquery.selectbox-0.2 issue with ie7 - dropdowns appearing behind elements instead of in front | <p>I'm using <a href="http://code.google.com/p/select-box/" rel="nofollow">http://code.google.com/p/select-box/</a> select box jquery plugin so that I can change the appearance of my select boxes.</p>
<p>The plugin is great and works fine except in ie7 where the dropdown lists appear behind any element that they happe... | javascript jquery | [3, 5] |
1,211,169 | 1,211,170 | request response from server | <p>this below my code can successful return json code.
but i cant request responce from server</p>
<pre><code><?php
include_once ('./AFactory.class.php');
$database= new AFactory;
$db=new AFactory();
$link=$db->getDBO();
$query=array('id'=>NULL,'userCode'=>$_POST['userCode']);
$sql=$db->insertQuery('`a_... | php jquery | [2, 5] |
5,261,971 | 5,261,972 | Regular Expression Nightmare | <p>Does anyone know the regular expression for this following format in C#: yyyy/mm/dd
This regular expression stuff is really doing my head in, any help would be greatly appreciated.</p>
| c# asp.net | [0, 9] |
3,630,110 | 3,630,111 | Add User To Role in memeber ship Provider | <p>I have gone through a video tutorial regarding <code>Asp.net Membership Provider</code> in which he has done his coding in <code>VB</code>. The same code i used in <code>C#</code> but at this point i am getting an error as <code>The best overloaded method match for 'System.Web.Security.Roles.AddUsersToRole(string[],... | c# asp.net | [0, 9] |
5,783,787 | 5,783,788 | Checkbox update page (show more info if checked) | <p>I am trying to figure out how to list 3 check-boxes at the top of a page that, when checked, auto reveal more info on the page.</p>
<p>Using php if I can hide the info, but how will it update page? I am guessing some form of java.</p>
| php javascript | [2, 3] |
3,542,192 | 3,542,193 | How to call Javascript from C# PageLoad? | <p>I want to ask How to call javascript from C# page load.
My Javascript is</p>
<pre><code>function Hide(lst) {
if (document.getElementById) {
var tabList = document.getElementById(lst).style;
tabList.display = "none";
return false;
} else {
return true;... | c# javascript asp.net | [0, 3, 9] |
1,910,582 | 1,910,583 | call jquery fom php script | <pre><code><script type="text/javascript">
<!--//
// on DOM ready
$(document).ready(function (){
$("#current_rev").html("v"+$.jnotify.version);
$("a.example").bind("click", function (e){
// prevent default behavior
e.preventDefault();
var $ex = $... | php jquery | [2, 5] |
1,501,980 | 1,501,981 | validation on asp.net wizard control | <p>I am using the Wizard control for so I can break registration up into smaller pieces.</p>
<p>This is the code of wizard:</p>
<pre><code><asp:Wizard DisplaySideBar="False" ID="Wizard1" runat="server" ActiveStepIndex="0" BackColor="#F7F6F3" BorderColor="#CCCCCC"
BorderStyle=... | c# javascript asp.net | [0, 3, 9] |
4,339,573 | 4,339,574 | Counting Rows in C# after dynamically adding them with jQuery | <p>I just have a simple ASP Table seen here:</p>
<pre><code><asp:Table ID="tblCategories" runat="server" CssClass="oneColTable padded-table dataTable">
<asp:TableHeaderRow CssClass="tableHeader">
<asp:TableHeaderCell>Category Name</asp:TableHeaderCell>
<asp:TableHeaderCel... | c# asp.net jquery | [0, 9, 5] |
5,522,586 | 5,522,587 | Confused. How can I grab hold of the returned InputStream? | <p>I'm trying to fetch some XML and eventually use it as a String. Here's my two methods, the former of which calls the latter. </p>
<pre><code>public static void getAllXML(String url) throws XmlPullParserException, IOException, URISyntaxException{
XmlPullParserFactory factory = XmlPullParserFactory.newInstance()... | java android | [1, 4] |
306,589 | 306,590 | Accessing SessionState in IHttpModule after 404? | <p>Is it possible to access SessionState in the Error event handler of a HttpModule following a 404?</p>
<p>Im trying to implement a consistent error handling mechanism for both full and partial postbacks using the technique described in this blog post,</p>
<p><a href="http://blogs.microsoft.co.il/blogs/oshvartz/arch... | c# asp.net | [0, 9] |
2,406,949 | 2,406,950 | Run one method 1000 times in a short period of time | <p>Let's say we are building some public service that grabs the setup of a user (what server, user and pwd he wants to perform the call), logs in into that server and do some processing...</p>
<ul>
<li>the process takes about 15 seconds to complete</li>
<li>each user has a different setup (server/user/pwd), so the pro... | c# asp.net | [0, 9] |
4,828,819 | 4,828,820 | when do you need .ascx files and how would you use them? | <p>When building a website, when would it be a good idea to use .ascx files? What exactly is the .ascx and what is it used for? Examples would help a lot thanks!</p>
| c# asp.net | [0, 9] |
975,577 | 975,578 | jQuery: Call a function twice | <p>I'm trying to run a function twice. Once when the page loads, and then again on click. Not sure what I'm doing wrong. Here is my code:</p>
<pre><code>$('div').each(function truncate() {
$(this).addClass('closed').children().slice(0,2).show().find('.truncate').show();
});
$('.truncate').click(function() {
... | javascript jquery | [3, 5] |
1,616,895 | 1,616,896 | Get javascript to write text exactly where it is | <p>is it possible to get javascript to output html where the javascript code is?</p>
<p>For example</p>
<pre><code><html>
<head>
<title>
</title>
</head>
<body>
<div>header</div>
<div>main
<script type="text/javascript" language="javascript">
// print some ... | javascript jquery | [3, 5] |
2,196,318 | 2,196,319 | Setup place-holder for the text-box input[type=" password"] | <p>I am trying to show placeholder text(enter password) for the text-box which has input[type="password"]. Now i am trying to change the <em>input[type="password"]</em> to <em>input[type="text"]</em> to show the placeholder and if the user click the text box i am again changing the <em>input[type="text"]</em> to <em>... | javascript jquery | [3, 5] |
4,771,392 | 4,771,393 | insert into data base by javascript | <p>i have this code for get rss from other site </p>
<pre><code>gfeedfetcher.prototype._displayresult=function(feeds){
var rssoutput=(this.itemcontainer=="<li>")? "<ul>\n" : ""
gfeedfetcher._sortarray(feeds, this.sortstring)
for (var i=0; i<feeds.length; i++){
var itemtitle="<a hr... | php javascript | [2, 3] |
3,639,037 | 3,639,038 | Changing the cursor in asp.net | <p>I want to change the cursor to an hourglass in my asp.net application to let my users know that the process is running. I searched for an answer and was advised to use javascript as follows. </p>
<p>1) Add this javascript</p>
<pre><code>function hourglass() {
document.body.style.cursor = "wait";
}
</code></pr... | c# asp.net javascript | [0, 9, 3] |
3,951,254 | 3,951,255 | jQuery find() Issue | <p>I have the following Code</p>
<pre><code>var page = '<h1>Hello!</h1><p>FOO</p><span class="username">this is ur name</span><p>sample text</p>';
</code></pre>
<p>when I alert <code>$(page).html()</code> i get Hello! and when I wrap the contents of the page in a div an... | javascript jquery | [3, 5] |
4,630,204 | 4,630,205 | Inserting empty datarows into a Grid | <p>I am trying to create a gridview where User can insert rows. I am trying to have 10 empty rows in the grid with all the columns empty. Is it possible?</p>
<p>User just need to enter into textboxes, so i will have to save all the 10 rows into the database! This is using c# asp.net..</p>
<pre><code><asp:TemplateF... | c# asp.net | [0, 9] |
4,091,341 | 4,091,342 | Server.mappath confusion | <p>There is a little confusion in my mind about server.mappath
which is correct and what's the difference betwwen these two</p>
<pre><code>FileUpload1.saveAs(Server.MapPath("~/User/images/")+"ankush.jpg"));
FileUpload1.saveAs(Server.MapPath("~/User/images")+"ankush.jpg"));
</code></pre>
| c# asp.net | [0, 9] |
40,396 | 40,397 | Android - How can i make this intent auto dial | <p>How can I make this intent not only goto the telephont dialer with number, but I don't want to hit the CALL button, I just want it to starting dialing when the intent is started.</p>
<pre><code>Intent dialIntent = new Intent(Intent.ACTION_DIAL, Uri.parse("tel:999-999-9999"));
startActivity(dialIntent);
</co... | java android | [1, 4] |
3,980,315 | 3,980,316 | Adding javascript inside TinyBox2 | <p>I am trying to add the following script inside the TinyBox2 ( <a href="http://www.scriptiny.com/2011/03/javascript-modal-windows/" rel="nofollow">http://www.scriptiny.com/2011/03/javascript-modal-windows/</a>) pop-up:</p>
<pre><code><script type="text/javascript" src="http://www.addpoll.com/poll-88331.js" charse... | javascript jquery | [3, 5] |
1,599,967 | 1,599,968 | How to clear a Asp.net tree view control in javascript? | <p>How to clear a Tree View control in javascript ? I am looking for something like treeview.nodes.clear();</p>
| c# asp.net | [0, 9] |
1,733,190 | 1,733,191 | ASP.NET web application | <p>I am trying to make a web application using C# in asp.net.
Can someone kindly give me the instructions starting from downloading asp.net including links, if possible to achieve this?</p>
<p>Thanks</p>
| c# asp.net | [0, 9] |
2,544,041 | 2,544,042 | How to uppercase Javascript object keys? | <p>Anyone know a good way to turn this?:</p>
<pre><code>var obj = [{key1: value1,key2: value2},{key3: value3,key4: value4}];
</code></pre>
<p>into:</p>
<pre><code>var obj = [{Key1: value1,Key2: value2},{Key3: value3,Key4: value4}];
</code></pre>
| javascript jquery | [3, 5] |
896,730 | 896,731 | JavaScript subtract elements from string | <p>I am sending to JavaScript function string from C# which is <strong><em>"11-2-2013"</em></strong>, and expect in JavaScript function that string, but I am gating 11 - 2 - 2013 = <strong><em>-2004</em></strong>.</p>
<p>C# code:</p>
<pre><code>string id = 11 + '-' + 2 + '-' + 2013;
textBoxBO.Attributes.Add("onblur",... | c# javascript | [0, 3] |
2,902,019 | 2,902,020 | PHP script for creating calendar table or jquery complete solution required | <p>Ok so this is what I want to make:</p>
<p><img src="http://i44.tinypic.com/eiwphl.jpg" alt="alt text"></p>
<p>red = booked</p>
<p>green = available</p>
<p>I have data in mysql in the format of:
<code>property_id, booked_from, booked_until</code> .</p>
<p>Before I start trying to create the correct loops etc to ... | php jquery | [2, 5] |
4,634,674 | 4,634,675 | Real-time load result (ajax) | <p>I dont know how write this script. I need load results with some URL (eg: localhost/index.php?action=get&type=29) and this result to give a variable for further processing. I need create this on Jquery. Thanks.</p>
| javascript jquery | [3, 5] |
898,311 | 898,312 | JavaScript minifier that strips out unused code | <p>Does anyone know of a JavaScript minifer that can detect unused code and strip it out.</p>
<p>Google Closure seems alright but it appears to only compact.</p>
<p>I'm looking for something much more advanced, where it can look through my JavaScript and not only compact but also remove unused code.</p>
<p>Anyone kn... | javascript jquery | [3, 5] |
2,124,797 | 2,124,798 | Java math conversion | <p>I have this code in C++</p>
<pre><code>float result = -log(result)/0.5231-1.0;
</code></pre>
<p>And I converted that into Java code like this</p>
<pre><code>float result = (float) (-Math.log(result)/0.5231-1.0);
</code></pre>
<p>Is this correct way to convert the c++ code?</p>
| java c++ | [1, 6] |
4,683,105 | 4,683,106 | How do I detect what invoked a jquery script | <p>Apologies for no code. But I don't have a starting point for this question.</p>
<p>I have searched jquery and javascript documentation but I must be using the wrong terms because I am not getting anywhere.</p>
<p>I wish to take action within a jquery script dependant on what invoked the script.</p>
<p>i.e. I have... | javascript jquery | [3, 5] |
426,048 | 426,049 | Why does .html() method of jQuery not persist using .hover() to push HTML to container? | <p>I'm wondering why in this example: <a href="http://jsfiddle.net/ZdPry/2/" rel="nofollow">http://jsfiddle.net/ZdPry/2/</a> the HTML within the <code><ul></code> of the hovered parent item gets pushed to the container I want but on mouseleave and subsequent hovers, no HTML is pushed to the container of the same ... | javascript jquery | [3, 5] |
4,811,471 | 4,811,472 | How do I parse xml with jQuery? | <p>What is the jQuery alternative to the following JavaScript code?</p>
<pre><code>var xmlobject = (new DOMParser()).parseFromString(xmlstring, "text/xml");
</code></pre>
<p>I believe a jQuery alternative would be more cross-browser compatible?</p>
| javascript jquery | [3, 5] |
395,621 | 395,622 | Jquery to javascript keypress event | <p>I have the following in jquery code:</p>
<pre><code>$(document).keypress(function (e) {
if (e.keyCode == 13) {
}
});
</code></pre>
<p>How can I make this into javascript so I do not need to load jquery everyime?</p>
| javascript jquery | [3, 5] |
1,053,507 | 1,053,508 | jsquery get all elements contained by a div with given name | <p>So I'll start off by saying I'm completely new to JS and JSQuery. So I'm in the following situation. The page has a structure like:</p>
<pre><code><div id="id1">
<input name="input1" .... >
.....
</div>
<div id="id2" disabled="disabled">
<input name="input1" ....>
</div&g... | javascript jquery | [3, 5] |
1,443,765 | 1,443,766 | Check if a list contains items in other list | <p>i have two lists.Say</p>
<pre><code>list1 ="a,b,c";
list2="d,a,c";
</code></pre>
<p>How to check if list1 contains items in list2 .I mean how to check if list2 has a</p>
| c# asp.net | [0, 9] |
5,414,241 | 5,414,242 | jQuery: Executing multiple actions on the same event on the same element but at two different points in time | <p>We know that multiple calls to $(document).ready(); in the same page is possible. I need something similar for click events.</p>
<p>Situation:
Another team implemented this somewhere in an external JS file:</p>
<pre><code>$('#element').live('click', function() { /* Do this */} );
</code></pre>
<p>It's a live()... | javascript jquery | [3, 5] |
3,234,319 | 3,234,320 | How to read excel 2007 in c# | <p>My server does't have any Microsoft Office and I dont want to install Microsoft office. </p>
<p>When I use this code for reading an Excel 2007 file</p>
<pre><code>Provider=Microsoft.ACE.OLEDB.12.0;Data Source=c:\myFolder\myOldExcelFile.xls;
Extended Properties="Excel 8.0;HDR=YES";
</code></pre>
<p>It cannot read ... | c# asp.net | [0, 9] |
737,108 | 737,109 | "search" field to filter content | <p>I'm trying to create a simple "search field", what it does is it searches if typed in text is equal to any data-attr of the boxes in the content and if so, hide everything but what found, something similar (this ain't working):</p>
<p>css:</p>
<pre><code>.filter-div {
display: none;
}
</code></pre>
<p>html:</... | javascript jquery | [3, 5] |
2,478,793 | 2,478,794 | How to get values from database, and insert inside javascript function | <p>i have my facebook share scritp:</p>
<pre><code><script>
$(document).ready(function(){
$('#share_button').click(function(e){
e.preventDefault();
FB.ui(
{
method: 'feed',
name: 'This is the content of the "name" field.',
... | javascript jquery | [3, 5] |
3,391,735 | 3,391,736 | Why Viewstate can contain only serializable object? | <p>I have a simple class with some properties and other data. Untill i stick serializable attribute to the class, i cannot save the object of the class into the viewstate.</p>
<p>Why Viewstate can contain only serializable objects?</p>
| c# asp.net | [0, 9] |
606,721 | 606,722 | Dynamically creating controls inside a repeater | <p>I have 2 Drop down controls inside a repeater and i have to repeat those with a button click how can i achieve it??</p>
<pre><code>if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)
{
TextBox t = new TextBox();
t.ID = e.Item.ItemIndex.ToString();
e.Item.Cont... | c# asp.net | [0, 9] |
4,702,883 | 4,702,884 | how to convert the data stored in string to string array | <p>I'm parsing an url using json. I'm getting the value of each tag and storing it in a string using <code>getString</code> in a <code>for</code>-loop. </p>
<p>What I want is to store the <code>String</code> value into a <code>String</code> array. I'm a noob as far as android development is concerned.</p>
<p>Below is... | java android | [1, 4] |
1,431,685 | 1,431,686 | jQuery: .each how to reference matched object | <p>how do i get a reference to the element that matched? 'this' is not correct. </p>
<p>For example here I am trying to alert with the elements value.</p>
<pre><code>//how do i get this to reference the object it matches.
$("#txtFirstName,#txtLastName,#txtDOB").each(
function() { alert(this.val()); }
);
</code></... | javascript jquery | [3, 5] |
3,454,512 | 3,454,513 | recursive jquery function and check afterwards | <p>I deploy two functions on my gallery page. One to display -one by one- the list items with images, and two to check and remove those items where the images (external) won't load. </p>
<p>The first one works excellent, but the second does not. Can't figure out why. Does anyone knows this one?</p>
<pre><code>var r =... | javascript jquery | [3, 5] |
1,954,503 | 1,954,504 | Javascript parseInt always returns NaN | <p>Can someone tell me why my <code>parseInt</code> function always retuns <code>NaN</code> in the Firebug console despite the string value always returns a number?</p>
<p>This is my debug script:</p>
<pre><code>console.log($(this).val()+" - "+typeof($(this).val())+" - "+parseInt($(this).val));
</code></pre>
<p>Whic... | javascript jquery | [3, 5] |
2,272,081 | 2,272,082 | How to use content place holders with dynamic master page | <p>I have written a content system which allows a user to edit pages for a website. When they edit a page they can select a template to use for the page. All of the content and selections are in a database.</p>
<p>When I display a page, I call just one file (DisplayPage.aspx), passing the page ID. This uses the page... | c# asp.net | [0, 9] |
2,813,619 | 2,813,620 | Creating a "fake AI" chat program | <p>Hey everyone, I've been creating a little chat bot (for fun and practice).</p>
<p>I have the following function which isn't working correctly (<a href="http://jsfiddle.net/hNUej/" rel="nofollow">FULL CODE HERE</a>):</p>
<pre><code>function runAI() {
if (i.val().length > 0) {
if ($.i... | javascript jquery | [3, 5] |
3,993,544 | 3,993,545 | Finish threads in the order in wich they were started | <p>I am downloading simultaneously several images in separate threads.I need to set these images to adapter. I need to finish these threads in the order in which they were started because I am using callbacks to inform adapter and.... How can I do this(finish threads in the order in which they were started)?</p>
| java android | [1, 4] |
502,313 | 502,314 | Difference between .jar and .dll file | <p>I am learning Java these days and I've spent a lot of time with .NET so when I want to export or import libraries, they are usually be in .dll format which is called assembly in .Net environment and they are compiled to IL and they can have resources like images, xml, audio and son on, any ways.</p>
<p>I am wonderi... | c# java | [0, 1] |
2,760,902 | 2,760,903 | paypal sandbox processing error- | <p>Over the weekend, our paypal sandbox environment used in our asp.net application suddenly stopped working. It had begun returning a <code>Could not create SSL/TLS secure channel.</code> error when attempting to simulate a customer charge, on the <code>GetTransactionDetails</code> call (which is after the actual cha... | c# asp.net | [0, 9] |
519,547 | 519,548 | How to extract a specific input field value from external webpage using Javascript | <p>i get the webpage content from an external website using ajax but now i want a function which extract a specific input field value which is already autofilled.</p>
<p>the webpage content is like this:</p>
<pre><code>.........
<input name="fullname" id="fullname" size="20" value="David Smith" type="text">
<... | javascript jquery | [3, 5] |
4,867,898 | 4,867,899 | calling php on js | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/7165395/call-php-function-from-javascript">Call php function from javascript</a> </p>
</blockquote>
<p>can anyone help me on how can I call the php function on JS function?</p>
<p>Here is the event:</p>
<p>I h... | php javascript | [2, 3] |
1,587,639 | 1,587,640 | Need help on architecting iPhone/Android App | <p>Could someone please help me with how should I go about architecting a iPhone or Android application? I am into enterprise java development for many years and have architected many solutions in it. However, I have never been involved with mobile development. I have a good application idea that I would like to implem... | java iphone android | [1, 8, 4] |
2,209,361 | 2,209,362 | javascript to click a row and fire off that rows "onclick" event | <p>I have a table:</p>
<pre><code><table>
<th>Title</th>
<th>Artist</th>
<th>Length</th>
<tbody>
<?php
foreach ($lib as $name)
{
echo "<tr onmouseover=\"ChangeColor(this, true);\"
onmouseout=\"ChangeColor(this, false);\"
onclick=\"disp... | php javascript | [2, 3] |
896,200 | 896,201 | why is my jquery selecting all text values | <p>So I want to be able to fetch a number from a table cell and multiply it by an input on focusout, however the selector is grabbing all the table cells with the name front in the front. here is the code:</p>
<p>jquery</p>
<pre><code>$(document).ready(function(){
$(".percent").focusout(function(){
var va... | javascript jquery | [3, 5] |
3,484,597 | 3,484,598 | Span manipulation in jQuery | <p>Can you please explain the term "span manipulation: in jQuery and give a small example?</p>
| javascript jquery | [3, 5] |
3,474,426 | 3,474,427 | Specific Button Click | <p>I got a quick question:</p>
<p>I want every link in the div to alert a message, but only the anchors. I dont want the div to initiate the alert function. </p>
<p>Html:</p>
<pre><code><div id="abc">
<a href='#'> Button 1 </a>
<a href='#'> Button 2</a>
</div>
</code></pre>
<... | javascript jquery | [3, 5] |
2,278,196 | 2,278,197 | "on" event not firing with dynamic content | <p>I have the below code which using jquery <em>on</em> event.</p>
<pre><code> $(document).on('click', 'a.test', function (event) {
alert('');
});
</code></pre>
<p>My issue is that this is not firing for the content which is added dynamically via ajax:</p>
<pre><code>$.ajax({
url: ...,
...
... | javascript jquery | [3, 5] |
4,755,099 | 4,755,100 | Open 2 URLs on click from option select | <p>In my form there is a drop down list, and on button click I need to open 2 URLs, if user select option 1 then after button click a thank you page appear and another URL should be open.</p>
<p>I am able to open only one URL at current time. Please have a look at my fiddle.</p>
<p><a href="http://jsfiddle.net/ty65E/... | javascript jquery | [3, 5] |
1,818,789 | 1,818,790 | dynamic collection of text from text field | <p>this is html code</p>
<pre><code><div id="domTxtEntry">
<strong>Your Name:</strong>
<input type="text" name="txtdisplay" id="txtdisplay" value="" class="input" />
<br />
<br />
<div id="domPrv"></div>
</div>
</code></pre>
<p>this jquery cod... | javascript jquery | [3, 5] |
5,541,670 | 5,541,671 | How can I show the image when the mouse hovers in an image? | <p>I am trying to find a way using jQuery and fancybox to show a picture when the mouse hovers on it. I know that there is the .hover but don't know how to use it.</p>
<p>This is how I show the image on click.</p>
<pre><code>$("a#single_image").fancybox({
'transitionIn' : 'none',
'transitionOut'... | javascript jquery | [3, 5] |
3,701,149 | 3,701,150 | Download txt file make app crash | <p>I try to download file from the internet with this method:</p>
<pre><code>try {
URL url = new URL("http://sites.google.com/site/androidersite/text.txt");
BufferedReader in =new BufferedReader(new InputStreamReader(url.openStream()));
String str;
while ((str = in.readLine()) != null) { newline char... | java android | [1, 4] |
2,137,925 | 2,137,926 | Dot Net Charting - Stack two series, leave the other as normal bar chart | <p>I have a dotnetcharting graph with 3 series. I can change the style of the whole graph to stacked.</p>
<pre><code>ChartIn.YAxis.Scale = Scale.Stacked;
</code></pre>
<p>But I want to just stack two out of the three series. So that for each there are two bars combined into one stack with another whole bar next to it... | c# asp.net | [0, 9] |
3,799,766 | 3,799,767 | make changes to html before append with jquery | <p>I m calling a page using ajax and making changes to it using jquery</p>
<p>but the changes are not reflected after appending(append) it to a div</p>
<p>as the changes are done to the html but the html var remains the same.</p>
<p>how do i make the changes to the html var and then append to the DOM</p>
<p>if i us... | javascript jquery | [3, 5] |
841,769 | 841,770 | De-Anonymizing an Anonymous Function in jQuery | <p>This is probably quite a simple problem, but it's causing me to scratch my head, so I'm posting it here.</p>
<p>I have some jQuery in the following form:</p>
<pre><code>if (jQuery('.SearchRegions:checked').length == 0) {
jQuery('.SearchRegions').each(function(){
//code
});
} else {
jQuery('.Searc... | javascript jquery | [3, 5] |
3,181,692 | 3,181,693 | How to Re-Direct from Jquery modal pop up to the different page in a parent's frame | <p>I have a problem where I have one page containing a login link. When selected I'm opening a Jquery modal pop up(color box) containing a login page. </p>
<p>In login page a login control is placed and on successful login it should redirect to Home page. But currently when i successfully login to the application the ... | c# jquery asp.net | [0, 5, 9] |
3,673,907 | 3,673,908 | javascript iframe trouble | <p>After adding iframe tag in html of dashcode(web application IDE for iphone), i am getting an error which says "For Security reasons framing is not allowed"</p>
| javascript iphone | [3, 8] |
2,243,410 | 2,243,411 | what is the difference between $(document).ready(initialize) and $(document).on('ready',initialize) | <p>what is the difference between: </p>
<pre><code> $(document).ready(initialize);
</code></pre>
<p>and </p>
<pre><code> $(document).on('ready',initialize);
</code></pre>
<p>To me they seem to work in the same way.</p>
| javascript jquery | [3, 5] |
722,494 | 722,495 | How do i get attribute values from html inputs? | <p>I have a radio button that looks like this:</p>
<pre><code><input class="MCQRadio" id="MCQ" mcq-id="1" name="MCQ" question-id="1" type="radio" value="MCQ" /> MCQ
</code></pre>
<p><strong>[EDIT]</strong></p>
<p>When i click the radiobutton, and several radio buttons have the same class name,
how do i retrive... | javascript jquery | [3, 5] |
3,494,729 | 3,494,730 | NumberFormatException error from String to integer | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/13638938/string-to-integer-convertion">String to integer convertion</a> </p>
</blockquote>
<p>For one of my project I have to pass ineger value in this format "16:45:10". this format is in String. I am convertin... | java android | [1, 4] |
2,347,624 | 2,347,625 | Why should $.click() be enclosed within $(document).ready()? | <p>I am going through <a href="http://docs.jquery.com/How_jQuery_Works" rel="nofollow">http://docs.jquery.com/How_jQuery_Works</a> and find the requirement of enclosing <code>$.click()</code> event in <code>$(document).ready()</code> even a little strange. My difficulties are as follows:</p>
<ul>
<li>When the documen... | javascript jquery | [3, 5] |
288,887 | 288,888 | jQuery: On document load check if checkbox is selected and do function | <p>I have few <code><li></code>'s with a checkbox on each <code><li></code> which the value of it is saved into a database. On document load, the <code><li></code>'s that have the checkbox selected, I want to add a class <strong>'.done'</strong>.</p>
<p>I tried this:</p>
<pre><code>if (currentTODO.f... | javascript jquery | [3, 5] |
411,886 | 411,887 | Do I use fadeIn() wrong? | <p>Looking at <a href="http://api.jquery.com/fadeIn/" rel="nofollow">fadeIn()</a> I get the impression that I just have to add <code>.fadeIn("slow")</code> to an element like so</p>
<pre><code>$('#template').tmpl(data).prependTo('#content').fadeIn("slow");
</code></pre>
<p>but it appears instantaneously and doesn't e... | javascript jquery | [3, 5] |
655,962 | 655,963 | Difference between object and function object | How to test for? | <p>See this fiddle for a good example of a function object and the object that <code>$()</code> returns.</p>
<p><a href="http://jsfiddle.net/tFhFD/3/" rel="nofollow">http://jsfiddle.net/tFhFD/3/</a></p>
<p>Reference:</p>
<p><a href="http://code.jquery.com/jquery-latest.js" rel="nofollow">http://code.jquery.com/jquer... | javascript jquery | [3, 5] |
21,179 | 21,180 | Update panel and jQuery | <p>I have a paged data-source in an update panel. I have it set up that when i click a next button the next page is returned via a partial post-back. The problem is that i am using the dreaded moo-tools lightface's / update-panel combo. Using this, the update panel and moo-tools wont work.</p>
<p>Is there some way aro... | jquery asp.net | [5, 9] |
3,075,676 | 3,075,677 | How to timestamp with jQuery based off user's selection | <p>I'm attempting to produced a timestamp based off user's selection.</p>
<p>I have a form with an input value that will be empty:</p>
<pre><code><input type="hidden" name="sub_enddate" value=" " />
</code></pre>
<p>I need to have the empty value filled in with a time stamp based a certain value of time in the... | javascript jquery | [3, 5] |
5,892,946 | 5,892,947 | ASP.NET Page_Unload to stop user from leaving page | <blockquote>
<p><strong>Possible Duplicate:</strong><br />
<a href="http://stackoverflow.com/questions/147636/best-way-to-detect-when-user-leaves-a-web-page">Best way to detect when user leaves a web page</a> </p>
</blockquote>
<p>I'm attemping to give a user the option to stay on the current page when they attem... | c# asp.net | [0, 9] |
1,278,859 | 1,278,860 | How to call an action after click() in Jquery? | <p>I want to load an image and some other actions after I click a certain DOM element, but I want to load them AFTER the clicking action finished.</p>
<p>Here is a code example:</p>
<pre><code> $("#message_link").click(function(){
if (some_conditions...){
$("#header").append("<div><img alt=\"Loader... | javascript jquery | [3, 5] |
2,352,108 | 2,352,109 | response.redirect giving bad request | <p>I have a simple Jquery dialog box, that dialog contains a button which sends the page to the server. After some checking, the server redirects the page to another page. </p>
<p>When I call response.redirect(url+params), it appends the HTML in the URL and displays a bad-request on the browser.</p>
<p>What am I doin... | jquery asp.net | [5, 9] |
3,454,188 | 3,454,189 | How do C++ and Java communicate with each other? | <p>Is there any program/software which uses both C++ and Java?</p>
<p>If so the how do they communicate with each other?</p>
<p>The theory and the program please.</p>
<p>Example: Supposing I want to run a C++ file with a Java applet or something like that.</p>
| java c++ | [1, 6] |
2,582,632 | 2,582,633 | jQuery: trying to retrieve an object by it's ID string | <p>I have five $_POST hidden fields in my form that hold the id's names of the icons the user has chosen.
I want to make these icons marked back again if the user goes back to the page.
I don't seem to understand how to do this, (marked as PROBLEM).</p>
<pre><code>var i=0;
while($('#field' + i + 1 + '_icon_id').val()... | javascript jquery | [3, 5] |
4,706,061 | 4,706,062 | Get textbox value in a GridView templatefield using Jquery | <p>I am using a text box inside a GridView as ItemTemplate field. I have a requirement to get the value of the text box usingJquery. How can I do that? How can I get the textbox object under a GridView in Jquery. </p>
<p>Thanks in advance</p>
| javascript asp.net jquery | [3, 9, 5] |
1,026,547 | 1,026,548 | open and close or return if already open nav | <p>I have a nav which on a click i expand it, but if it's already expanded and we click on the item again it shouldn't do anything (return). I have this code but it is not working properly, currently if I click on the item it expands it but if i click again it closes the nav and if i click once again it expands it but ... | javascript jquery | [3, 5] |
1,900,073 | 1,900,074 | How to get a table cell value from another site (same domain) using jquery/js? | <p>I am looking for a very similar solution described under Q: How to get a table cell value using jquery? but in case where table is actually on another website within same domain (no server side scripting is available).</p>
<p>I will appreaciate your help.</p>
| javascript jquery | [3, 5] |
3,179,264 | 3,179,265 | How do I fill and submit a form remotely? | <p>How can I fill out and submit this form remotely: <a href="http://mta-nyc.custhelp.com/cgi-bin/mta_nyc.cfg/php/enduser/ask.php" rel="nofollow">http://mta-nyc.custhelp.com/cgi-bin/mta_nyc.cfg/php/enduser/ask.php</a></p>
<p>The form asks for email and then it has a pull down menu and fields for Subject and Question.<... | javascript python | [3, 7] |
225,612 | 225,613 | ASP.Net masterpage Response.Redirect before child call | <p>I have a masterpage and inside that masterpage I have to check if a session is null or not. If the session is null, then there has to be a redirect to a login page.</p>
<p>That is no problem, but the problem is that the masterpage also have controls using the session and the child also uses the session so I get a n... | c# asp.net | [0, 9] |
5,800,836 | 5,800,837 | pdf download functionality asp.net | <p>I am making a web site in asp.net with c sharp.
I need to place a download file functionality(pdf, doc, xls) on one of my web page.</p>
<p>How can I do that?</p>
| c# asp.net | [0, 9] |
5,552,210 | 5,552,211 | jQuery response is text string. How do I make this a PHP variable? | <p>I am using a file upload utility that renames files on the backend, then I use a jQuery script to append the file path to a div. </p>
<pre><code>'onComplete': function(event, queueID, fileObj, response, data) {
$('#filesUploaded').append(''+response+'');
}
</code></pre>
<p>I want to take this response and turn it... | php jquery | [2, 5] |
6,013,168 | 6,013,169 | Access String Resource in AppWidget? | <p>Normally, I'd do getString(R.string.myString), however it doesn't seem to work in a widget.</p>
| java android | [1, 4] |
1,138,989 | 1,138,990 | How JS file can be download programatically | <p>most of the time we include script tag in html head tag. like</p>
<pre><code> <Head>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script>
</head>
</code></pre>
<p>i want that i dont want to include js file path rather i need to downl... | javascript jquery | [3, 5] |
4,367,544 | 4,367,545 | nodes of network connected in a mesh | <p>how do we write a code for "n" nodes which are connected in a mesh network(nxn). </p>
<p>I appreciate your effort for the help.</p>
<p>Thank you.</p>
| java c++ | [1, 6] |
1,318,979 | 1,318,980 | Is it possible to append 2 jQuery objects? | <p>For example, here i get an error </p>
<pre><code>jQuery([jQuery('<td/>').text('Component'),
jQuery('<td/>').text('Value')]).appendTo(my_table)
</code></pre>
<p>Is it possible append two element to <code>my_table</code> object with one action?</p>
<p>Also FYI</p>
<pre><code>var my_table = jQu... | javascript jquery | [3, 5] |
4,170,965 | 4,170,966 | Double loop in JQuery Statement | <p>I have this following Jquery code in my website, </p>
<pre><code> $("#nav-tabs").on("click", "a", function(e) {
e.preventDefault();
$(this).tab('show');
});
var counter = 1;
$('.plus').click(function(e) {
if(counter <= 3){
$('#nav-tabs... | javascript jquery | [3, 5] |
87,354 | 87,355 | How to do this equivalent C# OOP in python? | <p>I need following structure in python.</p>
<pre><code>public class Circle
{
int member1;
int member2;
int member3;
public Circle(member1)
{
this.member1 = member1;
initializeRest();
}
private intializeRest()
{
//do lot of computation to get result1 & re... | c# python | [0, 7] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.