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 |
|---|---|---|---|---|---|
1,668,120 | 1,668,121 | ServerSide(PHP) vs. ClientSide(JS) running trade off | <p>I have a collection of rows, I can generate Table(HTML) out of it using PHP (server side)
or I can send the raw data to the client side and generate the Table there using JavaScript</p>
<p>Which one is better and way?</p>
| php javascript | [2, 3] |
3,631,620 | 3,631,621 | jquery zoom in and zoom out on clicking an image | <p>I have an image which has to behave the following way:
When a user clicks on it the first time it the image should zoom-in and when clicked on the image again it should zoom-out. </p>
<p>Please help in figuring out how the two actions be performed by clicking on the image using jquery? Below is the code I have writ... | javascript jquery | [3, 5] |
2,299,920 | 2,299,921 | Calendar for booking date | <p>Can someone tell me how to make calendar in order user to choose booking date? I'm sorry I didn't provide any code because I really don't know how to do it. Any comments and guidances are welcome :) Thanks</p>
| c# asp.net | [0, 9] |
2,527,398 | 2,527,399 | Javascript write underneath another element (on a new line) | <p>I need to create a function in JavaScript, that will write some text (which was retrieved with XMLHttpRequest) to a new element underneath the previous one.
To give you an example, imagine a chat room. When someone writes something new, a new line is created.</p>
<p>Also if possible how this would be in jQuery?
I ... | javascript jquery | [3, 5] |
2,926,604 | 2,926,605 | Return dynamic CheckBoxList span ID on button click | <p>I have a dynamic <code>CheckBoxList</code> that creates an HTML table. I've listed one row to keep it simple.</p>
<pre><code><table id="checkBoxList1" border="0">
<tr>
<td><span someValue="neededValue"><input id="checkBoxList1_0" type="checkbox" name="checkBoxList1$0" checked=... | javascript asp.net | [3, 9] |
1,208,290 | 1,208,291 | Jquery.height() returns different results usign F5 or CTRL+F5 | <p>So I am trying to find the height of my images then add a top margin this enables me to impose a a vertical center.</p>
<p>I'm running this code, and on an <strong>F5 refresh</strong> I get correct height but on <strong>CTRL+F5 refresh</strong> it gives me a much smaller height. I kind of assume this is a loading/d... | javascript jquery | [3, 5] |
737,059 | 737,060 | How to compare two dates in c# | <p>I have a textbox where i will enter date in mm/dd/yyyy format,i want to compare this textbox date with current date(sysdate) in javascript code in c#.How to do that??Example i enter 11/11/2011 which is future date and it must be checked with sysdate and print an message </p>
| c# javascript | [0, 3] |
1,232,639 | 1,232,640 | How do I select a span containing an exact text value, using jquery? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/2338439/select-element-based-on-exact-text-contents">Select element based on EXACT text contents</a> </p>
</blockquote>
<p>How do I select a span containing an exact text value, using jquery?</p>
<pre><code><... | javascript jquery | [3, 5] |
3,382,069 | 3,382,070 | using jquery with vb.net | <p>is some one try to use jquery with vb.net, like </p>
<pre><code>if InvalidUser() then show ModalDialog
or if CreateNewUserForm.Confirm()=true then do some thing...
</code></pre>
<p>Thanx</p>
| jquery asp.net | [5, 9] |
4,914,765 | 4,914,766 | How to pass the dynamic text box value to another php page | <p>i make a dynamic textbox through javascript now i want to post the data of all dynamically generated textboxes to php script and then insert into a table. how can i do this... </p>
<pre><code>> var intTextBox=0;
>
> //FUNCTION TO ADD TEXT BOX ELEMENT
> function addElement() {
> intTextBox = int... | php javascript | [2, 3] |
2,066,714 | 2,066,715 | How can I run PHP code within a Java application? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/614995/calling-php-from-java">Calling PHP from Java</a> </p>
</blockquote>
<p>I was wondering how I could run PHP code within Java. Using the ScriptEngine, I am able to run JavaScript:</p>
<pre><code>String cod... | java php | [1, 2] |
473,174 | 473,175 | jquery forward compatibility issue with checking all checkboxes | <p>I've got a js function using jquery that works fine with 1.8.3.js, but when I update to 1.9.1.js it quits. I really don't know anything about jquery at this point (it's on the list of things to study, coming up soon), so I really can't tell from looking at it where the problem might come in. Here is the code:</p>
<... | jquery asp.net | [5, 9] |
3,910,994 | 3,910,995 | javascript confirm value not working | <p>i have a confirm and alert message box.
both are getting displayed at the right time.</p>
<p>but in confirm box when i press cancel the applyaction_button_click is getting executed, which should not happen as i return false.</p>
<p>Similar is the case with alert box which returns false still applyaction_button_cli... | c# javascript asp.net | [0, 3, 9] |
142,825 | 142,826 | JQuery - Set Attribute value | <p>I have following HTML with two elements having the same name</p>
<pre><code><input type="hidden" name= "chk0" value="">
<input type="checkbox" name="chk0" value="true" disabled>
</code></pre>
<p>Through JQuery, I want to set the enable the checkbox. So, I am using something like this:</p>
<pre><code>$... | javascript jquery | [3, 5] |
1,556,264 | 1,556,265 | How to include jQuery in an external .js file? | <p>I want to provide my clients a simple code to insert and get my plugin. </p>
<p>The code:</p>
<pre><code><div id='banner-lujanventas'></div>
<script src="http://lujanventas.com/plugins/banners/script.js" type="text/javascript"></script>
</code></pre>
<p>The problem is that my plugin only w... | javascript jquery | [3, 5] |
3,500,711 | 3,500,712 | Single page website with login control | <p>I have a single page website (asp.net using c#) that displays some grid data when no user is logged in.
When a user presses login a popup control opens and they can login. when logged in extra functionality is available on that page.
Then after a period of inactivity (i.e no postback) i want the funtionality to be d... | c# asp.net | [0, 9] |
2,949,893 | 2,949,894 | Reset a view in an asp.net MultiView | <p>I'm using an asp.net MultiView control with 2 Views inside.
First view has a "create" button to create new customer. Clicking the "create" button will display the 2nd View of the MultiView which allows to enter customer information.
Second view has a "return" button to return back to the 1st view.</p>
<p>The proble... | c# asp.net | [0, 9] |
4,619,058 | 4,619,059 | Android java accessing URL from a string rather than hard coded | <p>I am trying to access an image via URl using the below code:</p>
<pre><code>public class SingleListItem extends Activity{
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
this.setContentView(R.layout.details_list);
TextView txtProduct = (TextView) findView... | java android | [1, 4] |
4,542,575 | 4,542,576 | hide div if container div has less charecter | <p>I am doing this to develop a read more. How do I hide the read more if the <code>#pdpTab4</code> has less than <code>540</code> charecters to begin with. </p>
<pre><code><script>
$(function(){
var myDiv = $('#pdpTab4');
myDiv.html(myDiv.html().substring(0,540));
$('#pdpTab4').app... | javascript jquery | [3, 5] |
3,860,579 | 3,860,580 | Print PDF or Image using PrintDocument | <p>I wrote code to print GIF image using print document and it works fine but facing problem for its height and width related.</p>
<p>My code:</p>
<pre><code>PrintDocument pd = new PrintDocument();
pd.PrintPage += new PrintPageEventHandler(this.PrintPage);
pd.Print();
private void PrintPage(object sender, PrintPageE... | c# asp.net | [0, 9] |
2,745,331 | 2,745,332 | Response is not come in a right way in jquery load method | <p>I uses j query Load Method to load a data in asp.net grid view ,
My Code for that is</p>
<pre><code> $("#SelectedTestPart").load("PackageForm2.aspx?category=" + currentId2 + " #<%= grdAllSelectedTest1.ClientID %>", function (response) {
rows = $("tr:gt(0)",response);
rows.children("td:nth-child(7... | jquery asp.net | [5, 9] |
5,670,562 | 5,670,563 | Getting width of a child div with width 100% gives windows width | <p>HTML:</p>
<pre><code><div id="parent">
<div id="child">
<div id="child1"></div> <!-- UPDATE -->
</div>
</div>
</code></pre>
<p>CSS:</p>
<pre><code>#parent{
float:left;
width:90%;
}
/* UPDATE*/ #parent #child{
float:left;
width:100%;
}
/* ... | javascript jquery | [3, 5] |
2,663,868 | 2,663,869 | Possible to sort rendered images based on class of parent div? | <p>I have some images that are wrapped within containers like this:</p>
<pre><code><div id="swatchcontainer">
<div class="swatchimgouter">
<div class="swatchimginner">
<img src="whatever1.jpg" alt="some text" title="some text too"/>
</div>
</div>... | javascript jquery | [3, 5] |
3,592,422 | 3,592,423 | Pass data to anonymous Javascript function | <p>I'm trying to query a webservice with jQuery and insert the reply into my html page using jquery templates. My code currently looks like this:</p>
<pre><code>$(function () {
$('.media-releases h3 div').click(function () {
var button = $(this);
if ($(this).hasClass("expand")) {
$(this).addClass("s... | javascript jquery | [3, 5] |
688,222 | 688,223 | Accessing data from iframe | <p>Suppose we have the following structure :</p>
<pre><code> <div id='main'>
<div id="1"> .. </div>
<div id="2">
<iframe id="ifr" src="some"></iframe>
</div>
</div>
</code></pre>
<p>How can we access div#1 contents from inside the iframe#ifr?</p>
| javascript jquery | [3, 5] |
2,835,604 | 2,835,605 | Asp.net Binding data without headers names | <p>I've got problem with automatic showing table with data from Database. I'm trying to do this in repeater control, but tables has got different count of columns, and different names of headers. I don't know how to do it more automatic and do not have to write i aspx file </p>
<pre><code><%# Eval("UserId") %>
<... | c# asp.net | [0, 9] |
3,771,703 | 3,771,704 | how to format number the using jquery | <p>I am trying to remove the number which are coming after "." then i want to format the number <strong>(16810900.211233)</strong> to like this <strong>(16,810,900)</strong> but i dont know how to do that here is my html is this:</p>
<pre><code><link rel="stylesheet" type="text/css" href="http://cdn.webrupee.com/... | javascript jquery | [3, 5] |
3,228,079 | 3,228,080 | jQuery: Define multiple variables with a single chain? | <p>Is it possible to define multiple variables with a single jQuery chain?</p>
<pre><code>var sectionTable = jQuery("#sectionsTable")
var sectionTableRows = sectionTable.find("tr");
var sectionTableColumns = sectionTableRows.find("td");
</code></pre>
<p>I don't know what the syntax would be if it is possible but if y... | javascript jquery | [3, 5] |
5,626,400 | 5,626,401 | displaying a texarea value into another textarea value | <p>I've two input fields, both type textareas. </p>
<pre><code><input id="display" type="text" disabled="disabled" style="border: none; background: none" />
<input id="name" type="text" />
</code></pre>
<p>And I'm using jQuery to display the value of <code>#name</code> into <code>#display</code>. The text... | javascript jquery | [3, 5] |
1,484,682 | 1,484,683 | javascript to disable /enable a checkbox | <p>I have the below syntax which unchecks a checkbox.</p>
<pre><code>$('#h12_1').attr('checked','checked');
</code></pre>
<p><code>h12_1</code> is the name of my checkbox.</p>
<p>How do I disable the checkbox so it cannot be checked? similarly how do I enable the checkbox again?</p>
<p>Something like this:</p>
<pr... | javascript jquery | [3, 5] |
5,549,637 | 5,549,638 | How to use aloha editor on the website | <p>I want to use aloha editor on my website and i downloaded it from [http://aloha-editor.org/].Now i am totally confused because the downloaded bundle contain lots of files.</p>
<p>I pick up aloha.js and aloha.css and added the following script</p>
<pre><code>$(document).ready(function () {
Alo... | javascript jquery | [3, 5] |
4,699,739 | 4,699,740 | $.inArray issues with passing string from php script | <p>I'm having a problem with the inArray function not sure why. I'm passing a string back to the Javascript from my PHP it looks something like this 22,24 ect. I've tried using the split command to convert it to a Javascript array and I've tried it just as is. Either way the inArray function isn't finding 22, I've trie... | php jquery | [2, 5] |
409,240 | 409,241 | javascript event.target throwing errors(but it works) | <p>Long story short, im making a small website using ajax but its more for mobiles.</p>
<p>ive hijacked a few links and while testing on firebug, i get this error when clicking
links</p>
<pre><code>TypeError: e.target is undefined
[Break On This Error]
var myurl = e.target.href;
</code></pre>
<p>Now the thing is... | javascript jquery | [3, 5] |
1,064,524 | 1,064,525 | jQuery: return string as html | <p>I have a "Label" control on my form which is being populated via jquery. My problem however, is I need to return my string with html tags, but my label doesn't seem to recognize html. Here's my control:</p>
<pre><code><label id="comment"></label>
</code></pre>
<p>And here's how I'm working with it in... | javascript jquery | [3, 5] |
5,273,927 | 5,273,928 | how to call getResouces() in a class that is not extended Activity? | <p>I would like to call getResouces in some classes, however, these classes are not extended to Activity. How to do it in a right way?</p>
<p>regards
penny</p>
| java android | [1, 4] |
2,643,076 | 2,643,077 | implement jquery Plugin add method Validation | <p>I have a problem to use jquery Plugin/Validation.</p>
<p>I want to add a method and follow the documentation but I think I still missing some thing.</p>
<p>First I add the method but I think I have a problem to implement it.</p>
<p>please check my code and advice me.</p>
<pre><code> <script src="js/jquery-1... | asp.net jquery | [9, 5] |
2,528,138 | 2,528,139 | How to use HTML Table as gridview | <p>How to fetch data from database in HTML TABLE rather than Gridview?</p>
| c# asp.net | [0, 9] |
5,137,044 | 5,137,045 | How can I add and remove elements inside an array in Java? | <pre><code>String varname[] = {"red", "yellow", "green"};
</code></pre>
<p>I have an array declared like this. I wanted to know how can I add or remove elements to and from this array?</p>
<p><strong>NOTE : -</strong> Edited the question after seeing one of the OP's comments, saying what he wants.</p>
| java android | [1, 4] |
4,023,989 | 4,023,990 | Is there a way to turn off auto-complete on an input-field using jQuery? | <p>Is there a way to turn off auto-complete on an input-field using jQuery?</p>
<p>Like this:</p>
<pre><code><input type="text" autocomplete="off" />
</code></pre>
| javascript jquery | [3, 5] |
5,475,595 | 5,475,596 | Subscribing to AJAX events in Facebook | <p>I'm developing a browser extension. I want it to be able to act on all DOM elements in Facebook. Now Facebook only loads the beginning of the page on page load and then makes repeated AJAX requests to get the rest of the page. I'd like to know when these loads happen so I can examine the added DOM elements. Is there... | javascript jquery | [3, 5] |
5,101,462 | 5,101,463 | What is the best approach for a Java developer to learn C++ | <p>I consider myself an experienced Java developer and am planning to get started with learning C++. </p>
<p>If you had same experience, i.e learn C++ after Java, I would like to hear your thoughts on what is the best approach at doing this. </p>
<p>[Update] "the best approach" was not well quantified. What I am look... | java c++ | [1, 6] |
3,100,981 | 3,100,982 | How to stop function reload(window.reload) on jquery or javascript? | <p>Source</p>
<pre><code>$(function reload(){
$.ajax({
.
.
.
window.setTimeout(reload, 3000);
});
});
</code></pre>
<p>This function reload ajax page on every 3 sec.</p>
<p>I want to make stop button(#stop).</p>
<pre><code>$('#stop').click(function){
//STOP FUNCTION
});
</code></pre>
<p>Plea... | javascript jquery | [3, 5] |
2,708,847 | 2,708,848 | How randomly to choose buttons | <p>I have a UI, like this</p>
<p><img src="http://i.stack.imgur.com/5i6LC.png" alt="UI"></p>
<p>What I want is to choose randomly 3 of them and change their texts. Thank you.</p>
<p>UPD1:
What ive tried:</p>
<pre><code>ArrayList<Button> _btnList = new ArrayList<Button>();
for (int i = 1; i <= 16;... | java android | [1, 4] |
1,013,562 | 1,013,563 | How do you get the pageYOffset of from the bottom of the window and not the top ( Javascript )? | <p>I need to get the pageYOffset of the bottom of the viewable area, whether the user is zoomed in on the webpage or not, on Mobile Safari ( iPhone ). However pageYOffset returns the offset from the <em>upper left corner of the window</em>. </p>
<p>Spec:</p>
<p>"pageYOffset properties returns the pixels the current... | javascript iphone | [3, 8] |
3,404,457 | 3,404,458 | Session object doesn't store value | <p>I'm currently creating a webpage, and I want to transfer one object that is related to the current visitor of the site, to another page. I chose to do this with the Session item. But there seems to be a problem, I declare it's value on one page like this:</p>
<pre><code>Session["CurrentAccount"] = new Account(tb_us... | c# asp.net | [0, 9] |
2,736,052 | 2,736,053 | JQuery Pagination for multiple components of same type on a single webpage doesnt work | <p>On a single wepage i need to apply pagination for three similar type of components(c1,c2,c3) and end up getting all data being displayed only under first component with pagination(includes links to pages 123456- 1,2 includes c1 data, 3,4- c2 data, 5,6- c3 data). Even tried creating different set of pagination option... | javascript jquery | [3, 5] |
93,512 | 93,513 | add and remove classes in order with jQuery | <p>Im trying to say that, if my div doesnt have the class active add it. And if it does have the class active, remove it. </p>
<p>Ive the following, only my code adds the class, then continues the query and removes it at the end, what would the best solution be, 2 seperat click funcitons?</p>
<pre><code>$('.work-show... | javascript jquery | [3, 5] |
3,589,533 | 3,589,534 | How do I get values of input element with the same name as an javascript array? | <p>I want to get values of the input element that those elements are under the same name, name="items[]"<br/>
for example:<br/></p>
<pre><code><div>...<input type="text" name="items[]" value="1" /></div>
<div>...<input type="text" name="items[]" value="2" /></div>
<div>...<... | javascript jquery | [3, 5] |
1,894,754 | 1,894,755 | How to copy table structure from defaultview.table? | <p>I have created a datatable with three columns. I am sorting the data </p>
<pre><code>DataTable dt= new DataTable();
DataColumn auto = new DataColumn("ID",typeof(System.Int32));
dt.Columns.Add(auto);
auto.AutoIncrement = true;
auto.... | c# asp.net | [0, 9] |
5,344,557 | 5,344,558 | jquery php embedding DOM element same problem | <p>When i embed or use php loops to create multiple div's with some id.
I want each of them to use with jquery. Say anything like simple hide/show interface.</p>
<p>But as the id is the same it wont work. I assign a variable lets say $i to php loop for the reference of uniqueness. I can assign id to a DOM element with... | php jquery | [2, 5] |
6,014,739 | 6,014,740 | Find Control Text (ASP.NET/C#) | <p>Trying to pull the text value of the label that is dynamically populated by a SQL database. Any help would be greatly appreciated!</p>
<p><em><strong>ASP.NET</em></strong></p>
<pre><code><asp:Label ID="PlatformName" Text='<%# DataBinder.Eval(Container.DataItem, "PlatformName") %>' runat="server" />
</... | c# asp.net | [0, 9] |
3,902,628 | 3,902,629 | simple form validation with jquery serialize() function | <pre><code>$(document).ready(function(){
$('#send').click(function() {
var names = $('#appontment_form').serialize();
//this is how my names variable look like
//doctor=Dr.Fathmath+Shahuda&date=2013-02-27&time=1900+-+1700&phone=
var doc = $(names).filter('doctor');
if(doc !='')
{
$.ajax({
... | javascript jquery | [3, 5] |
4,901,301 | 4,901,302 | Change the text of corresponding node with attribute's value using jquery | <p>How to change the text of corresponding node with attribute's value using jquery</p>
<pre><code><div class="rating">
<h2 typename="First">One is First</h2>
<h2 typename="Second">Two is Second</h2>
<h2 typename="Third">Three is Third</h2>
</div>
</code></pr... | javascript jquery | [3, 5] |
4,366,944 | 4,366,945 | how to get a variable over to a function? | <p>i want to get a variable (which is set when a link is clicked) over to a function and show it as a pop out.</p>
<p>the code as shown below:</p>
<pre><code>$('a#link1').click(function(e){
e.preventDefault();
var value = 'true';
});
function exe(){
alert(value);
}
</code></pre>
<p>when the function is exe... | javascript jquery | [3, 5] |
2,447,246 | 2,447,247 | Select the first field from jQuery autocomplete function automatically | <p>When I mouseover a field in my autocomplete list it adds a class named selected. I want it to do that by default on the first line as soon as you start typing. How would i select the first element in that list and change it's class? </p>
<p>I'm using this now but it flickers a lot. </p>
<pre><code>$('.name').eq(0)... | javascript jquery | [3, 5] |
3,261,704 | 3,261,705 | how can l get the image size, before it loads into html? | <p>At first image height is coming as zero, after that by refreshing the page i am getting its actual height. I need to get its height at first time? could any body helps me?</p>
<pre><code>$j(document).ready(function(){
var imgV = new Image();
imgV.src="http://www.kerrvilletexascvb.com/Riverside... | javascript jquery | [3, 5] |
4,069,161 | 4,069,162 | Creating IPHONE application with PHP,Possible? | <p>I want to try to create an iPhone app using PHP and I do not know where to start.
Please, give me example, guides or any information.
Thank you very much!
Niv</p>
| php iphone | [2, 8] |
412,463 | 412,464 | login using open id authentication | <p>I would like to know as in StackOverflow website user can login with open id authentication how it has been done.Can I get any sample example of doing this.</p>
| c# asp.net | [0, 9] |
2,765,860 | 2,765,861 | How to send Image and text messages to iphone using push notification in php | <p>I know the code for sending push text messages to iPhone but I want to send text and image to push notification. Please guide me.</p>
| php iphone | [2, 8] |
5,900,933 | 5,900,934 | Jquery tabs, how to redirect? | <p>Hello all you programmers, well I have one problem with jQuery tabs. I am using jQuery for navigation between tabs, and jQuery code looks like this:</p>
<pre><code>$(document).ready(function() {
//Default Action
$(".tab-content").hide(); //Hide all content
$("ul.vertical-tab li:first").addClass("active").show(); /... | php jquery | [2, 5] |
2,551,977 | 2,551,978 | segregating data from database in datastructure | <p>i have a table which has cloumn :</p>
<pre><code>vaccine_date text ,vaccine_name text ,mother_id text , child_id text ,address text
</code></pre>
<p>on the same date for the same child this table can have mutiple vaccine so the column repeats for same date with different vaccine name .</p>
<p>I have to create a... | java android | [1, 4] |
547,744 | 547,745 | Jquery Animated Tab - revert on mouseout | <p>I'm trying to adapt Gaya Design's Animated Tabbed Content <a href="http://www.gayadesign.com/diy/animated-tabbed-content-with-jquery/" rel="nofollow">http://www.gayadesign.com/diy/animated-tabbed-content-with-jquery/</a> for a navigation menu. I want to have the background verting back to the first tab on mouseout b... | javascript jquery | [3, 5] |
5,386,454 | 5,386,455 | Why app crashes when Timer is used to remove view? | <p>I'm very new to Andriod development. I'm trying to use Timer (from java.util) to remove a view 1sec after <code>onCreate</code>, this is what I've wrote.</p>
<pre><code>Timer timer;
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.act... | java android | [1, 4] |
2,149,312 | 2,149,313 | String to integer convertion | <p>For one of my project I have to convert String to integer. How to convert <code>"16:45:20"</code> string to integer in java. I am using</p>
<pre><code>int time = Integer.parseInt(string)
</code></pre>
<p>It's giving me <code>NumberFormatException</code> error. How to solve this</p>
<p>Thanks</p>
| java android | [1, 4] |
1,179,815 | 1,179,816 | hide div that contains <p> that contains "text" - how to | <pre><code><div id="example">
<ul>
<p>text</p>
</ul>
<div>
</code></pre>
<p>i need to hide div itself</p>
| javascript jquery | [3, 5] |
631,382 | 631,383 | upload image and save file stream in View State | <pre><code> protected void upload_Click(object sender, EventArgs e)
{
if (Upload.Value !="")
{
System.IO.Stream fs = Upload.PostedFile.InputStream;
img_uploadStream = Upload.PostedFile.InputStream;
System.IO.BinaryReader br = new System.IO.BinaryReader(fs);
Byte[] bytes = Cr... | c# asp.net | [0, 9] |
3,408,728 | 3,408,729 | copy .aspx webform error | <p>I wanted to copy my .aspx file and paste it with all its content,
but I run into an error.</p>
<p>this is what I did :
1. Copy - Paste.
2. rename the new aspx file in the solution explorer.
3. rename the Inherits in the aspx file (the "code behind" there was already changed automatically for some reason..)</p>
<p... | c# asp.net | [0, 9] |
3,398,429 | 3,398,430 | Is there a way to clone elements using JQuery? | <p>Is there a way to clone HTML elements using JQuery?</p>
<p>However, I want to be able to assign the cloned elements new attributes "id, name". So if I had a textfield element, I want to clone it <strong>without</strong> its value and <strong>change</strong> its id and name attribute to "exmple2" if it was named "ex... | javascript jquery | [3, 5] |
683,795 | 683,796 | HttpContext Cookie | <pre><code>if (HttpContext.Current.Request.Cookies.AllKeys.Contains("myCookie") &&
!String.IsNullOrEmpty(HttpContext.Current.Request.Cookies["myCookie"].Value))
{
HttpCookie myCookie = HttpContext.Current.Request.Cookies["myCookie"];
}
</code></pre>
<p>Is there something wrong with this code? Every on... | c# asp.net | [0, 9] |
4,226,994 | 4,226,995 | C# - match many cases in a single run | <p>So the case is this:</p>
<p>The user can provide a group of strings for a propert. ex: </p>
<pre><code>DaysNeeded ="Sunday,Tuesday,Friday,Saturday";
</code></pre>
<p>In the actual UI, the days of the week are available as check boxes. I'm trying to provide a way so that the user can also set the days needed in th... | c# asp.net | [0, 9] |
2,458,520 | 2,458,521 | How to disable browser back button in asp.net? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/961188/disable-browsers-back-button">Disable browser's back button</a> </p>
</blockquote>
<p>now i am trying to disable browser back option in All browser but is not working in chrome browser i am using this... | javascript asp.net | [3, 9] |
2,408,632 | 2,408,633 | setting the selected option of a select tag with jquery | <p>If my jquery function is as below:</p>
<pre><code>$('#shifts').change (function ()
{
$.get('ajax/time_menus.php', { shift: $('#shifts').val() },
function(data)
{
$("#test").html( data );
});
</code></pre>
<p>And returns a array with two time values contained in an array o... | php jquery | [2, 5] |
4,027,960 | 4,027,961 | convert string to dynamic array with variables in javascript | <p>How would I take a string (that I got from a page using jQuery's text()) such as:</p>
<pre><code>var myData = "[{name:'xxx',data:[1,2,3,4,5]},{name:'yyy',data:[5,4,3,2,1]}]"; //this is a string :(
</code></pre>
<p>And turn it into the actual javascript object that I need, so for example:</p>
<pre><code>var myObje... | javascript jquery | [3, 5] |
4,058,088 | 4,058,089 | How to add variable + databinding to ASP.NET link navigateurl? | <p>Let's say I have a repeater with the code:</p>
<pre><code><ItemTemplate>
<asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%#DataBinder.Eval(Container.DataItem, "FileLeafRef")%>'>
<h2><%# DataBinder.Eval(Container.DataItem, "Title")%></h2>
</asp:... | c# asp.net | [0, 9] |
1,775,392 | 1,775,393 | Switch between two divs in JQuery | <p>I am tring to switch between two divs (a small text area and a bigger form field..sort of like twitter). The divs belong to two different classes like</p>
<pre><code><div class = first onClick = "show();" >
</code></pre>
<p>
</p>
<pre><code><div class = second style = "display:none;">
contains a ... | php javascript jquery | [2, 3, 5] |
5,517,702 | 5,517,703 | Why do I get a double console message for this function? | <p>I have the following function:</p>
<pre><code>var checkNameLenght = function(name,nameLenght,allowedLenght,defaultName) {
var result;
if(!(nameLenght <= allowedLenght) || !(/[^a-z]/i.test(name))) {
result = name;
}
else {
if(opts.debug == true) {
console... | javascript jquery | [3, 5] |
427,202 | 427,203 | Populating a dropdownlist with a specific value plus an array of values from an sql query | <p>I am new to the wonderful world of dropdownlists and I know this is going to be difficult for me to explain but I will try the best I can. </p>
<p>Here is my data:</p>
<pre class="lang-none prettyprint-override"><code> **Type** **ID** **Status**
Letter 1 A
Letter 2 B
Letter ... | c# asp.net | [0, 9] |
4,225,877 | 4,225,878 | How can I add a client-side (JavaScript) confirmation message box using ASP.NET? | <p>How might I add a JavaScript message box with a confirmation option in ASP.NET?</p>
| asp.net javascript | [9, 3] |
1,414,081 | 1,414,082 | pass multidimentional array from javascript to php | <p>Im running a javascript code which reads values from different XML files and it generates a multidimentional array based on those values. Now I need to pass this array to a PHP page. I tried different but it always pass the arrray as string not as an array.
Anyone has an idea :( ... and thank you very much</p>
| php javascript | [2, 3] |
1,505,127 | 1,505,128 | Clickable DIV with children links | <p>I have created a clickable <code>div</code> element that has a few links inside it. When I click anywhere on the <code>div</code> the page will go to the mail link but I want to be able to go to all the other links inside that <code>div</code>. I have managed to do this by calling the <code>e.stopPropagation();</cod... | javascript jquery | [3, 5] |
354,473 | 354,474 | Setting value to textarea doesn't work | <pre><code>var myText = $('#myTextBox').val() + '<span id="caret_pos_holder"></span>';
$('#myTextBox').val(myText);
console.log($('#myTextBox').val());
</code></pre>
<p>In the console log, there is no <code>< span ></code> tag.
Why isn't the value of the textbox set to it?</p>
| javascript jquery | [3, 5] |
5,300,676 | 5,300,677 | PHP + Redirect of Page Using Meta Tag HTML | <p>Here, In php code I am facing problem to redirect a page after valid login.
Sample Code::</p>
<pre><code> $result=mysql_query($sql);
$count=mysql_num_rows($result);
if($count==1){
echo "<meta http-equiv='refresh' content='3;url=<?php echo "home.php"; ?>'>";
}
else{
... | php javascript | [2, 3] |
827,843 | 827,844 | php can't receive request from C# webrequest when post data length more than 8K | <p>I am trying to send base64 encoded data through C# <code>WebRequest</code> to php script. Then I receive sent data by <code>file_get_contents("php://input")</code>, when data length is lower than 8 KBs the php code is executed, otherwise it can't be executed. In the other hand php didn't receive the request.</p>
<p... | c# php | [0, 2] |
946,960 | 946,961 | Use a Javascript variable in C# | <p>I want to use a Javascript variable in C#, is it possible, how do I go about it?
Thanks</p>
| c# javascript | [0, 3] |
2,561,162 | 2,561,163 | Best way to learn how to write latency-critical, fast C++/Java/C# code? | <p>Could anyone give me some pointers as to the best way in which to learn how to do very low latency programming? I have many programming books but I've never seen one which focused (or helped) on writing extremely fast code. Or are books not the best way forward?</p>
<p>Some advice from an expert would be really app... | c# java c++ | [0, 1, 6] |
5,237,316 | 5,237,317 | Select value of a RadioButton | <p>I want to select a particular RadioButton based on its value</p>
<pre><code><input id="RadioJ" type="radio" name="grp1" value="AAA" />
<input id="FaroK" type="radio" name="grp1" value="BBB" />
<input id="MartreLK" type="radio" name="grp1" value="CCC" />
</code></pre>
<p>Something like this:</p>
... | javascript jquery | [3, 5] |
4,030,534 | 4,030,535 | Adding target _blank to links after a page has been generated | <p>I have a tool that I wrote that takes Word documents (articles) from users, puts them in our website template, then uploads them to our testing web server. </p>
<p>When they are copy and pasting their articles from Word, they would like all links to open in a new window. </p>
<p>Is there a way to accomplish this?... | javascript jquery | [3, 5] |
1,884,232 | 1,884,233 | DotNetOpenAuth in Asp.Net 3.5 | <p>I implemented DotNetOpenAuth in my application. Its bulding dine but raising error saying unexpected response from the server. Error log is showing exceprtion while processing the login request. Let me know how to solve this.</p>
| c# asp.net | [0, 9] |
3,315,126 | 3,315,127 | Cloning javascript library into iFrame | <p>I'm creating a popup dialog using jQueryUI. I have run into problems because I'm using exactly the same blocks of HTML and JavaScript code as on the page. (The application was not designed for that and I'm not going to recode it deeply). So I have two tags with same <code>ID</code> attributes in the document - on th... | javascript jquery | [3, 5] |
5,095,036 | 5,095,037 | Excel Report Setting page setup options in C# | <p>I am using the following approach to create a dynamic Excel Report from HTML in my ASP.NET Application. </p>
<p>While creating the excel report, I want to set the Page Setup options such that the report fits into one page. </p>
<p>This is the approach I'm using to create the excel report...
Please tell me how to f... | c# asp.net | [0, 9] |
3,313,276 | 3,313,277 | Can I wrap a javascript event in a jQuery event? | <p>I have this code:</p>
<pre><code><html>
<head>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript">
$(function(){
$('a.one').click(function(event){
event.preventDefault()... | javascript jquery | [3, 5] |
1,907,951 | 1,907,952 | Check if the requested user has admin privileges | <p>In a web application, is there any way to check the requested user has got admin privileges.
Is it possible? Can you suggest one method?</p>
<p>For example: a front-end user requests a page in my application. I want to know whether the user that made the request has admin privileges in his client machine. I have to... | c# asp.net | [0, 9] |
5,735,959 | 5,735,960 | can we call a java method by js? | <p>In my Java Script , I want to call a java method . Is it possible to call a java method by js w/o using ajax?</p>
| java javascript | [1, 3] |
5,031,830 | 5,031,831 | jquery change color using css one working but another is not working | <p>Why only name is changing the color but age is not changing ?</p>
<pre><code><div id="user">
<?php echo $user_name; ?>
<span class="age"><?php echo $user_age; ?></span>
</div>
</code></pre>
<p>user name color chang is working but age inside span is not working.</p>
<pre><code>$... | php jquery | [2, 5] |
158,954 | 158,955 | The importance of knowing c++ for web application development | <p>I'm a php developer and I want to broaden my knowledge base by learning a higher language (java, c#, c++). My specialty is in building web applications (ria etc). I'm trying to think of the appropriate path to take (hedging my bets so to speak) in terms of which language I should be focusing on. I love open source t... | c# java c++ | [0, 1, 6] |
666,867 | 666,868 | Why does this jQuery return an index of 3? | <p>HTML:</p>
<pre><code><ul>
<li class="selected">First Item</li>
<li class="disabled">Second Item</li>
<li class="separator">Third Item</li>
<li>Fourth Item</li>
</ul>
</code></pre>
<p>jQuery:</p>
<pre><code>alert($("li:not(.disabled,.separ... | javascript jquery | [3, 5] |
2,789,745 | 2,789,746 | jQuery / javascript wrapped code query | <p>I have inherited some javascript code that is wrapped in the following way:</p>
<pre><code>(function ($) {
//some javascript using jQuery here...
} (jQuery));
</code></pre>
<p>What does it do?</p>
| javascript jquery | [3, 5] |
2,440,660 | 2,440,661 | ASP.NET Publishing with Entity Framework | <p>How to publish an ASP.NET C# Website with Entity Framework?</p>
| c# asp.net | [0, 9] |
4,377,997 | 4,377,998 | How to send an value from .aspx page to JavaScript file? | <p>I have these functions:</p>
<pre><code>function clear(txtvalue)
{
}
function EnableValue (txtvalue, rfvValue)
{
}
<asp:Button ID="btn1" runat="server" OnClick="btn1_Click" onclientClick =" return clear('"+txtValue.ClientID+'"); Text="Button" />
<asp:Button ID="btn2" runat="server" OnClick="Button1... | asp.net javascript | [9, 3] |
792,057 | 792,058 | How to get POSTED data in php script? | <p>I am working on an android application in which I POST data using following code segments.</p>
<pre><code> public void postData()
{
try
{
// Create a new HttpClient and Post Header
HttpClient httpclient = new DefaultHttpClient();
Htt... | php android | [2, 4] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.