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,329,155 | 1,329,156 | Get an array of list element contents in jQuery | <p>I have a structure like this:</p>
<pre><code><ul>
<li>text1</li>
<li>text2</li>
<li>text3</li>
</ul>
</code></pre>
<p>How do I use javascript or jQuery to get the text as an array?</p>
<pre><code>['text1', 'text2', 'text3']
</code></pre>
<p>My plan after this... | javascript jquery | [3, 5] |
4,736,644 | 4,736,645 | Convert text url to a clickable url | <p>I am allowing people to post comments using a textarea field and sometimes they post urls. What I need to do is to convert this url from db before displaying it as a real clickable link, but without allowing html tags. I would prefer to do it using php or jquery if possible. I thought about using something like [lin... | php jquery | [2, 5] |
5,279,210 | 5,279,211 | difference between c# and asp.net/c# | <p>do i need to be as strong in c# as an asp.net/c# developer as i would as a c# desktop application developer? there seems to be much less c# coding involved when developing asp.net websites than desktop applications. are there certain things in c# that aren't used as often when used in asp.net websites than in deskto... | c# asp.net | [0, 9] |
3,514,937 | 3,514,938 | automatic form post data | <p>I have a form with lots of data to be posted, so i was wondering if there is any way to get all the data to be posted automatically.</p>
<p>like for example i sent data this way</p>
<pre><code>$.ajax({
type: 'post',
url: 'http://mymegafiles.com/rapidleech/index.php',
data: 'link=' + $('#link').v... | javascript jquery | [3, 5] |
4,424,088 | 4,424,089 | jQuery Draggable / Droppable - Remove all dropped 'items' | <p>Is it possible to remove all dropped 'items' on a droppable div by pressing a single button?</p>
<p>Thanks,
LS</p>
<pre><code>$("#wrapper").droppable({
accept: '.shape',
drop: function(event, ui)
{
$(this).append($(ui.helper).clone());
... | javascript jquery | [3, 5] |
3,122,865 | 3,122,866 | How to change ImageButton image onclick. My code is not working | <p>I can't figure out why my code isn't working. I've got an ImageButton declared and I'm when the user clicks on the image, I was to increment <code>valHomeFouls</code>. When <code>valHomeFouls > 5</code> then it is reset to 0.</p>
<p>For some reason it is not changing the image onClick.</p>
<pre><code> // s... | java android | [1, 4] |
3,714,240 | 3,714,241 | Why can't I use an int from a spinner in the same class? | <p>Ok so I am working on an android app and I have implanted spinners... I have a total of four spinners and I have learned that if the spinner reads the options from the strings it has a defined number for the selection(i.e the first option is "0" next is "1" and so on)</p>
<p>I have the following code for the spinne... | java android | [1, 4] |
5,510,985 | 5,510,986 | Android : Several activities sharing common code | <p>I have an Android application composed by several Activities. Most of them need to check whether an active network is available or not:</p>
<pre><code>public boolean isNetworkAvailable() {
ConnectivityManager cm = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);
TelephonyManager tm = (... | java android | [1, 4] |
1,030,426 | 1,030,427 | jQuery equivalent selectors | <p>Are the following exactly equivalent? Which idiom do you use and why?</p>
<pre><code>$('#form1 .edit-field :input')
$('#form1 .edit-field').find(':input')
$('.edit-field :input', '#form1')
$(':input', '#form1 .edit-field')
</code></pre>
| javascript jquery | [3, 5] |
3,467,615 | 3,467,616 | validating dropdownlist in gridview using javascript | <p>I have created a gridview with dropdownlist in asp.net(c#).i want to validate dropdownlist using jvascript.if i dont select anything from dropdownlist that time script shud display a message.i don know how to get the name or id of that dropdownlist</p>
| c# asp.net | [0, 9] |
433,674 | 433,675 | Hyperlink to a part of a page that doesn't have an identifier | <p>I want to create a hyperlink that goes directly to the data parameter of the $.ajax command. But the closest hash tag that I can find is <a href="http://api.jquery.com/jQuery.ajax/#jQuery-ajax-settings" rel="nofollow">this one</a>.</p>
<p>Q: Is there a way to have the browser navigate down to a part where there is... | javascript jquery | [3, 5] |
647,227 | 647,228 | JQuery - using .on with element insertion | <p>I have a function which creates a tooltip for specific objects. Currently, I am running a tooltip function after ajax insertions to create and append the new tooltip objects. I am curious if there is a way to use .on() to auto-run the tooltip function on insertion, rather than manually running it. </p>
<p>For insta... | javascript jquery | [3, 5] |
1,362,343 | 1,362,344 | Problems defining a good hide/unhide jQuery function for dynamic divs | <p>A while ago I used this simple function to hide/unhide <code>divs</code>':</p>
<pre><code>$(document).ready(function() {
$('#job_desc').hide();
$('#slick-toggle').click(function() {
$('#job_desc').toggle(400);
return false;
});
});
</code></pre>
<p>As you can see I'm just hiding the <code>div</code> ... | php javascript jquery | [2, 3, 5] |
4,052,536 | 4,052,537 | jquery Ajax URl issue | <p>I have looked around quite a bit and it seems absolute urls is the way to go here. I have no problem in chrome but firefox and IE IE still wants to redirect fully to the wrong page.</p>
<p>my states:</p>
<pre><code><script type="text/javascript">
$(function() {
$('#page_submit').click(function (... | php javascript jquery | [2, 3, 5] |
2,743,346 | 2,743,347 | Can't show the element when its class or id contains dots | <p>I must have class which contains dots, but then jQuery doesn't work. What should I do?
Example: <a href="http://jsfiddle.net/9KYmx/" rel="nofollow">http://jsfiddle.net/9KYmx/</a></p>
<pre><code><div style="display: none" class="dfv.png">
text
</div>
$(document).ready(function() {
$('.dfv.png').s... | javascript jquery | [3, 5] |
4,832,589 | 4,832,590 | php echoing javascript call | <p>I am a newbi to webdesign/php and javascript and I am having a problem. Please look at this code:</p>
<pre><code> <script type="text/javascript">
<!--
function thanksDiv(){
document.getElementById("myThanksDiv").style.display ='block';
}
function hideDiv(id){
document.getElementById(id).style.disp... | php javascript | [2, 3] |
1,614,227 | 1,614,228 | Two conditionals inside an if statement (jQuery) | <p>I'm trying to add an if statement which checks if the image is wider than 199px and if it hasn't got a < a > parent element.
<strong>This works:</strong></p>
<pre><code> $('div.post_body').each(function() {
$(this).find('img').each(function () {
var img = $(this);
if (img.is('a') !== t... | javascript jquery | [3, 5] |
4,902,203 | 4,902,204 | replacing chars using jQuery | <p>I am trying to replace all special characters except alphanumerics using js.</p>
<pre><code>function checkWholeString(string,len){
if(string != null && string != ""){
var regExp = /^[A-Za-z0-9-]+$/;
for(var i=0; i < string.length; i++){
var ap = string.char... | javascript jquery | [3, 5] |
3,923,015 | 3,923,016 | Getting the next element in a div with jquery | <p>Say that we have this html code</p>
<pre><code><div id="test">
<h2>Title</h2>
<p>lorem ipsum</p>
</div>
</code></pre>
<p>And this jQuery</p>
<pre><code>$("#test h2").text("Changed Title");
</code></pre>
<p>Now what is the correct way to continue down to the <code><... | javascript jquery | [3, 5] |
2,333,372 | 2,333,373 | How do I "find" in Jquery? | <pre><code>$("#start").find(divs where class=desc).show()
<div id="start">
<div class="desc" style="display:none;"></div>
</div>
</code></pre>
<p>How do I do that?</p>
| javascript jquery | [3, 5] |
3,336,957 | 3,336,958 | javascript regex pattern with a variable string not working | <p>I am trying to create a function that will pass some parameters to a regex script:</p>
<pre><code>function classAttributes( classString, className ) {
var data;
var regex = new RegExp(className+"\[(.*?)\]");
var matches = classString.match(regex);
if ( matches ) {
//matches[1] refers to opt... | javascript jquery | [3, 5] |
4,354,936 | 4,354,937 | How to Create Session in asp .net C# login and registration memberprofile page | <p>I am new to ASP .net C#
i created registration,login and member profile page</p>
<p>after all validations data is stored in database..
and login page also working fine...</p>
<p>i dont know about sessions ..how can i create session and how to make login module more effective using sessions?</p>
<p>thanks in advan... | c# asp.net | [0, 9] |
5,015,522 | 5,015,523 | Why jQuery.CSS do not working? | <p>I have jScript.js file and style.css file. </p>
<p>This is code of jScript file:</p>
<pre><code>var height = window.innerHeight;
var width = window.innerWidth;
var start_point = (width - 790)/2;
$("#logo").css({
'left' : start_point
});
</code></pre>
<p>This is code of CSS file:</p>
<pre><code>#logo {
... | javascript jquery | [3, 5] |
872,066 | 872,067 | reverse an onclick function | <p>So this is pretty basic stuff but I'm awful with javascript.</p>
<p>I'm working on the following page: <a href="http://mockingbirdagency.com/thebox/bettercss/login-1.html" rel="nofollow">http://mockingbirdagency.com/thebox/bettercss/login-1.html</a></p>
<p>with the following function.</p>
<pre><code><script ty... | javascript jquery | [3, 5] |
3,271,546 | 3,271,547 | Developing using a non-official kit on the Android? | <p>I have been doing some research on developing on the Android platform and found that the only way to develop an app using C++ is using the NDK. I also came to know that the NDK has limited support to C/C++, with C++ having even lesser support than C.
Here's the problem. I need to develop using C++ as I'm not very fa... | c++ android | [6, 4] |
5,610,089 | 5,610,090 | Close fullscreen flash from JS/Jquery | <p>I have a lightview window that needs to appear when an item in a fullscreen flash movie is clicked. SO i want to put into the lightview callback a bit of JS that will close the fullscreen flash movie. Is it possible to close a fullscreen flash movie in JS?</p>
| javascript jquery | [3, 5] |
3,690,272 | 3,690,273 | Facebox adding commas to input | <p>I'm using a facebox to display a form inside a lightbox, nothing too exciting (just a couple of datepickers, some textboxes and a checkbox).
However, I'm having issues with the postbacks, whenever I post back from the facebox it adds a ',' to the start of the input (so "rabbit" becomes ",rabbit")
Now, I saw that the... | asp.net javascript jquery | [9, 3, 5] |
5,797,123 | 5,797,124 | Is it possible to reveal the contents of a div from right to left | <p>I created a fiddle</p>
<p><a href="http://jsfiddle.net/gifcy/bJJ5s/5/" rel="nofollow">http://jsfiddle.net/gifcy/bJJ5s/5/</a></p>
<p>On DOM ready I hide the image. </p>
<p>I could successfully reveal the image from left to right using animate function.</p>
<p>Can someone show how to reveal from right to left. Wha... | javascript jquery | [3, 5] |
5,638,013 | 5,638,014 | Open New tab in browser | <p>I want to open new tab in all browser. I had written the following code:</p>
<pre><code><asp:LinkButton ID="TotalRegular_LinkButton" runat="server" Font-Underline="false"
OnClientClick="window.open('AllMember.aspx?Index=1','new window','width=950,height=500,scrollbars=no,status=no,toolbar=no,resizable=no,lo... | javascript asp.net | [3, 9] |
3,385,321 | 3,385,322 | How to draw a curve on 2 points (Android, Java) | <p>I have a two points, but I don't know start and end angles, and I need draw a curve on this points. Help me please. Thank you for helping, anyway. </p>
| java android | [1, 4] |
1,141,217 | 1,141,218 | What's more important: To write programs fast or to write fast programs? | <p>What's more important: To write programs fast or to write fast programs? According to: <a href="http://math.stackexchange.com/questions/17478/how-quickly-with-better-tool">http://math.stackexchange.com/questions/17478/how-quickly-with-better-tool</a> it is better to write fast programs, but I wanted to ask this Q he... | java c# c++ | [1, 0, 6] |
46,176 | 46,177 | Learning C# after C++ | <p>In a progression of languages, I have been learning C and C++. Now I would like to learn C#. I know there are some drastic differences between them - such as the removal of pointers and garbage collection. However, I don't know many of the differences between the two.</p>
<p>What are the major differences that a... | c# c++ | [0, 6] |
4,720,544 | 4,720,545 | Pass variable into selector in foreach loop | <p>I have a set of ids being generated in a foreach loop</p>
<pre><code><?php foreach ($_Collection as $_item): ?>
<img class="<?php echo $_product->getId() ?>" src="<?php echo Mage::helper('catalog/image')->init($_product, 'small_image')->resize(100, 75); ?>" />
</code></pre>
<p... | php javascript jquery | [2, 3, 5] |
5,590,683 | 5,590,684 | prevent page jump on .html and .append? | <p>when i use jquery .html or .append to add elements in the DOM the page jumps to that location.</p>
<p>how can i make it not jumping, cause i want my users to be able to click on "save thread to favourites" and it wont jump to "my saved threads" cause then the user has to navigate down in the list with threads again... | javascript jquery | [3, 5] |
5,828,380 | 5,828,381 | How can I know whether the scroll of the user is UP or DOWN? | <p>I want to determine the scroll of the users. I'm using jQuery.. And jquery have .scroll event.. But the .scroll event can't determine whether the user is scrolling the page downwards or upwards.</p>
| javascript jquery | [3, 5] |
1,426,662 | 1,426,663 | property disabled and html | <p>This seems like a fairly simple thing, but the issue has been giving me some trouble for a long time now. I have a submit button that is 'disabled' when a select list value is 'select'. What I want is to html('select an area')...but the button is disabled. Here is the code:</p>
<pre><code><script>
//settin... | javascript jquery | [3, 5] |
3,197,379 | 3,197,380 | Handling multilanguage with JQuery only | <p>I use JQuery in my web app and I am wondering what the best way to handle multilanguage in that context is.<br>
I was thinking of creating a file like:</p>
<pre><code>label["login"]["fr"]="Connection"
label["login"]["en"]="Login"
</code></pre>
<p>Once the file is loaded I will then do (for each label) a:</p>
<pre... | javascript jquery | [3, 5] |
882,000 | 882,001 | Android: Include External Jar in Build (Without Eclipse) | <p>I'm working with Android at the moment, trying to avoid using Eclipse (for which I have an irrational hatred).</p>
<p>I need to include an external <code>.jar</code> file (used in my <code>Activity</code>)and have no idea how to link it for <code>ant debug</code>...</p>
<p>I've read up on <code>build.xml</code> fi... | java android | [1, 4] |
2,511,681 | 2,511,682 | checkboxlist select only one item | <p>I am trying to select only one checkbox from the list. Here is the code I am trying but it doesn't seem to be working. I can use RadioButtonlist but it doesn't allow me to deselect the radio button. Please let me know.</p>
<pre><code>$(document).ready(function () {
var checkboxlistid = "#<%= chkLst.ClientID %&g... | jquery asp.net | [5, 9] |
1,046,060 | 1,046,061 | Create Unique Image (GUID to Image) | <p>I'd like to do something like SO does with profile pictures of new users. It seems to create a unique image based on a value.</p>
<p>How can I repeatedly create the same unique image from a GUID?</p>
<p>I'm open to doing this on the server, but would prefer a client side solution to create it on the fly.</p>
<p>S... | c# jquery asp.net | [0, 5, 9] |
671,173 | 671,174 | Building in debug versus release build, performance implications? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/3714213/implications-of-deploying-a-debug-build-of-an-application">Implications of deploying a Debug build of an application?</a> </p>
</blockquote>
<p>What are the implications of using debug build on productio... | c# asp.net | [0, 9] |
5,172,863 | 5,172,864 | document.ready runs even if window.load is loaded | <p>What to write to check if window is fully loaded then do some functions and if not then do <code>document.ready</code> functions....i.e : i have a preload image which appears if windows isnt fully loaded and i call it in <code>docuemnt.ready</code>.....and if window is fully loaded i hide this preload image....it r... | javascript jquery | [3, 5] |
3,495,009 | 3,495,010 | Previous view/undo in javascript | <p>Is there a way to go back to the previous view (not url), or so to speak undo a click in javascript or jquery?</p>
<p>history.go(-1) wouldn't work because the previous view is not literally a url on the address bar. I am using a jquery plugin that create a object (album viewer), and you can navigate between differe... | javascript jquery | [3, 5] |
5,006,105 | 5,006,106 | jquery hover effect | <p>How can I get same effect like this </p>
<p><a href="http://bavotasan.com/demos/fadehover/" rel="nofollow">http://bavotasan.com/demos/fadehover/</a></p>
<p>But only for anchor tags not for images, let say I have anchor background blue and I want it to change to red but with this effect, how can I do that? thank yo... | javascript jquery | [3, 5] |
769,601 | 769,602 | Syncing data in Android app | <p>I'm developing an app that syncs different data through JSON in almost every Activity. This data could be manipulated by other devices so I have to keep it updated whenever possible.</p>
<p>For example, in the first Activity I login to the webservice, and in the next Activity I use AsyncTask to download a JSON that... | java android | [1, 4] |
583,934 | 583,935 | jquery - change a drop down menu to a list | <p>Is there a way to convert a drop down menu to be a list using jquery... so:</p>
<pre><code><select>
<option>1</option>
<option>2</option>
<option>3</option>
</select>
</code></pre>
<p>to</p>
<pre><code><ul>
<li>1</li>
<li>2</li>
<li&... | javascript jquery | [3, 5] |
2,047,164 | 2,047,165 | how to add a hyper link in a gridview | <p>I have a gridview control and I would like the field Title to be a hyperlink and execute a stored procedure when clicked. Can anyone assist me in this?</p>
<p>Does this code look right?</p>
<pre><code><Columns>
<asp:TemplateField>
<ItemTemplate>
<asp:HyperLink ID="hpTit... | c# asp.net | [0, 9] |
4,247,879 | 4,247,880 | Separate save actions jQuery and PHP | <p>I have a form for saving the attendance of students to the MySQL database.</p>
<p>Students' data is read from the database and create the data entry form.</p>
<p>The form is designed to store the code, name, presence status of each student and a short description in case of absence.</p>
<p>I have designed the dat... | php jquery | [2, 5] |
3,791,973 | 3,791,974 | Convert PHP Code To C#.Net | <p>I have a sample code on PHP.I need to be convert that PHP code to C#.Net 3.0.</p>
<p>Please help me,If it is there any either converters or tools to perform this task.</p>
<p>Thank you in advance....</p>
| c# php | [0, 2] |
132,476 | 132,477 | Listen for event inside multiple functions | <p>I have a custom event which I listen to:</p>
<pre><code>$(document).on('MyCustomEvent', function(e, data) {
});
</code></pre>
<p>My problem is that I would like to know when <code>MyCustomEvent</code> has fired inside a lot of different functions. I don't want to attach the event handler inside each function, sin... | javascript jquery | [3, 5] |
2,069,306 | 2,069,307 | window.open not working when attached on onload event in chrome and safari | <p>I have attached some javascript on onload event of the form. this script contains window.open. Although this works fine in all the browsers window.open doesn't open a new window nor it gives nay error message in google chrome and firefox.</p>
<p>I want to first check the screen resolution if it is less than 1024 th... | asp.net javascript | [9, 3] |
5,500,775 | 5,500,776 | jquery having issue with global variable inside function ajax function | <p>Following is the code:</p>
<pre><code>var ret;
function fetch_data(param1){
$.post(param1,
function(data){
if (data){
ret = data*2;
console.log("data", ret);
}
else{
ret = 15;
console.log("no data")
}
});
ret... | javascript jquery | [3, 5] |
5,157,356 | 5,157,357 | Including PHP variables in an external JS file? | <p>I have a few lines of jQuery in my web application. This code is inline at the moment because it accepts a couple of PHP variables.</p>
<pre><code><script type="text/javascript">
$(document).ready(function(){
$('.post<?php echo $post->id; ?>').click(function() {
$.ajax({
t... | php javascript jquery | [2, 3, 5] |
1,889,683 | 1,889,684 | Mouseover/MouseOut jquery | <p>I realize how simple this question should be to answer but I am in a medication fog and the answer is escaping me. </p>
<p>I would like to make this into a simple function to display specific text if the value of the text box is empty upon mouseout and to empty out the text value upon mouseover.</p>
<p>What I hav... | javascript jquery | [3, 5] |
373,279 | 373,280 | what is the easiest web scraping tool that handles javascripts | <p>I would like to make a web scraping application that is able to log in to a website (I was able to do this with twill (python)), and also to be able to execute JavaScript which trigger access to other pages.</p>
<p>I would definitely prefer to use something in python, but I am ready to try something new. I have ins... | javascript python | [3, 7] |
4,815,613 | 4,815,614 | How to do this box in Javascript? | <p>I'm trying to do the following sort of thing in Javascript, where you click on the down arrow and it expands downward and displays options (I'll have some input fields and checkboxes and text and stuff in there).</p>
<p>Can anyone please help me out or point me in the right direction, I've tried google searching bu... | javascript jquery | [3, 5] |
2,673,994 | 2,673,995 | Activity methods : protected OnDestroy public OnBackPressed | <p>I have just a curiosity.
If i override backpressed , ondestroy I notice that :</p>
<pre><code> @Override
public void onBackPressed()
@Override
protected void onDestroy()
</code></pre>
<p>Why onbackpressed is public and ondestroy is protected . I now difference between protected and public but i don t understa... | java android | [1, 4] |
5,940,144 | 5,940,145 | Calling function within .each() | <p>I would like to repeat the chained events starting at <code>.animate()</code> from inside itself (indicated by comment). What is the correct way to write this?</p>
<pre><code>$("div").each(function(i, e){
$(this).animate({ left: $(this).parent().width() }, d[i], "linear",
function(){ $(this).css({left: -... | javascript jquery | [3, 5] |
61,333 | 61,334 | Setting Class-Level Variable to Use Between Event Handlers | <p>I'm having a hard time understanding why the following code doesn't work. I'm sure it's something remedial that I'm missing or not understanding. I currently have a page that asks for user input. If, based on the input and logged in user, I find data from this page already in the database, I need to update the exist... | c# asp.net | [0, 9] |
3,388,072 | 3,388,073 | How to selectively enable a Dropdown List | <p>I have a form containing two DropDowns lists:</p>
<ol>
<li>Marital Status</li>
<li>No. of Children</li>
</ol>
<p>Now I would like to enable the No. of Children DropDown upon selection of following items in the Marital Status DropDown:</p>
<ol>
<li>Widow</li>
<li>Divorced</li>
<li>Awaiting Divorce</li>
</ol>
<p>H... | c# asp.net | [0, 9] |
1,858,506 | 1,858,507 | jQuery checkbox multi select | <p>I have the following code for selecting multiple checkboxes:</p>
<pre><code>$(document).ready(function() {
/* All groups functionality */
$(".allGroups").change(function() {
var checked = this.checked;
if (checked == true) {
$(".group").attr("checked", true);
$(".c")... | javascript jquery | [3, 5] |
904,929 | 904,930 | Gridview not updating after removing row from linkbutton within an updatePanel | <p>I have a linkbutton in a gridview that when clicked will update the DB and should remove it from being visible in the gridview. This is also in an updatepanel.
When clicking the linkbutton the DB is updated, however the gridview is never refreshed.
Both gridview and linkbuttons are dynamically generated.</p>
<p>Li... | c# asp.net | [0, 9] |
3,654,128 | 3,654,129 | javascript refreshing images every 5 seconds crashes web browser? | <p>I have a simple javascript code in an html page, refreshing an image every 5 seconds:</p>
<pre><code>function refresh() {
var unique = new Date();
document.images.EdwinImage.src = "http://192.168.0.125:8002/img?width=800&height=480&rnd=" + unique.getTime();
}
</code></pre>
<p>This code works fine o... | javascript android | [3, 4] |
2,300,275 | 2,300,276 | jQuery: Get reference to click event and trigger it later? | <p>I want to wrap an existing click event in some extra code.</p>
<p>Basically I have a multi part form in an accordion and I want to trigger validation on the accordion header click. The accordion code is used elsewhere and I don't want to change it.</p>
<p>Here's what I've tried:</p>
<pre><code> //Take the click... | javascript jquery | [3, 5] |
3,648,585 | 3,648,586 | Which is faster RegisterStartupScript or RegisterClientScriptBlock? | <p>I saw Difference between <code>RegisterStartupScript</code> and <code>RegisterClientScriptBlock</code> from <a href="http://stackoverflow.com/questions/666519/difference-between-registerstartupscript-and-registerclientscriptblock">here</a>.<br>
There is describing the injection javascript code from Sever side using ... | c# javascript asp.net | [0, 3, 9] |
1,288,465 | 1,288,466 | DataSet sorting | <p>In <code>DataTable</code> I could sorting with </p>
<pre><code> dataTable.DefaultView.Sort = "SortField DESC";
</code></pre>
<p>I'm getting a <code>DataSet</code> from database, I was wondering could I do a sorting on the <code>DataSet</code> like how I do it in <code>DataTable</code>.</p>
| c# asp.net | [0, 9] |
4,616,125 | 4,616,126 | php function to echo javascript string | <p>Is the a proper php function to echo javascript string?<br>
I want to the php function to echo something like this:</p>
<pre><code><!--/* OpenX Interstitial or Floating DHTML Tag v2.8.7 */-->
<script type="text/javascript">// <![CDATA[
//<![CDATA[
var ox_u = 'extremely_long_url_string';
if (docume... | php javascript | [2, 3] |
1,142,079 | 1,142,080 | Given a ISO 8601 weeknumber, how would you get the dates within that week | <p>I got a weeknumber from a jquery datepicker, when a user selects a date. But now I want to get all the days within that week.</p>
<p>I could add a click event that loops through all the td's of the tr the selected date is in and graps it's value but I'm looking for a more reliable way.</p>
<p>So my question is, gi... | javascript jquery | [3, 5] |
144,213 | 144,214 | Javascript / jQuery design question re: performance | <p>Is there any performance / memory hit differential among the three following styles?</p>
<p>Exhibit A:</p>
<pre><code>var func = function() {
// do some magic
}
$("#div").somePlugin({someEvent: func});
</code></pre>
<p>Exhibit B:</p>
<pre><code>$("#div").somePlugin({someEvent: function() {
// do some ma... | javascript jquery | [3, 5] |
5,663,946 | 5,663,947 | Expanding on the jQuery post function | <p>I have the following function in my code:</p>
<pre><code> $.post($form.attr('action'), $form.serializeArray())
.done(function (json) {
}
</code></pre>
<p>From what I understand from the jQuery docs this is a shortcut. What I would like to do is to change so that it allows me to have ... | javascript jquery | [3, 5] |
3,380,293 | 3,380,294 | How to save file in ASP.NET MVC from Chrome? | <p>i am trying to save a file from chrome using AjaxSubmit. i got the problem that Chrome send the file in octet format and i am unable to check that if it is really image or anything else.</p>
<p>when i try to call </p>
<pre><code>HttpPostedFileBase file
file.InputStream
</code></pre>
<p>inputstream caused error i... | c# asp.net | [0, 9] |
2,274,147 | 2,274,148 | jQuery effect - What is the name? | <p>There use to be a jQuery effect that when you initlized it.. the DIV/CLASS would slide up and fade away at the same time. I know it's not puff... but it was something. I remember becuase I found out about it after doing slide/fade when I was like.. oh I could have done this instead.</p>
<p>But I can't find it on jQ... | javascript jquery | [3, 5] |
5,324,565 | 5,324,566 | Php with Jquery | <p>I'm trying to pass the database values which is in table in a phtml to jquery popup on clicking on it.Below is my code.</p>
<pre><code>foreach($this->paginator as $record) {
$color="#E8E8E8";
echo "<td width='61'><a href='#'id='Popup'>". $record['firstname'] . "</td>";
echo "<td... | php jquery | [2, 5] |
4,217,029 | 4,217,030 | Get value with javascript from a tag inside a tag | <p>I need to extract data from such code:</p>
<pre><code><div class="rateCalc_InfoLine2">
<span style="font-size:12px;">
Text1 - <b><font color="red" size="2">$ 500</font></b>;
Text2 - <b><font color="red">$ 30</font></b>
</span>... | javascript jquery | [3, 5] |
3,231,524 | 3,231,525 | jQuery star rating causing page scrolling | <p>I'm having a problem after adding button on my star rating. Every time when I click on the star, my page getting jumpy and scroll to the top. How can I prevent this behavior? </p>
<p>My code:</p>
<pre><code>$(document).ready(function(){
var rate=null;
$(".one-star, .two-stars, .three-stars, .four-s... | javascript jquery | [3, 5] |
2,199,501 | 2,199,502 | Grid view validations | <p>in my web application i have grid view control with edit property true. Now i want to use the validation when user not enter anything in text boxes, i not use the edit template i use boundfields. how can i use validation help me thank you.
this is my code</p>
<p>
</p>
<pre><code> ... | c# asp.net | [0, 9] |
1,866,352 | 1,866,353 | Sending pictures from android device to server | <p>im trying to send a picture from a android device to a server and was wondering if it was possible to send the picture information in a xml file and rebuild it on the server? </p>
| java android | [1, 4] |
2,503,162 | 2,503,163 | Fitting gridview within contentpalceholder | <p>I have a gridview which is bigger than the size of my contentpalceholder. It wont fit within the contentpalceholder and whenever I try to edit the gridview, it increases in width making it extend even further. Can someone help</p>
| c# asp.net | [0, 9] |
2,879,716 | 2,879,717 | cloning only a specific item in a list using .clone() in Jquery | <p>I am trying to add only select items of a list to a new list. So for example, I only wish to add banana to my second list, the following code in my function adds all the items in coll-selected-list to coll-grouped-list. How may I only make a clone of a specific item. Any tips would be great.</p>
<p>jQuery:</p>
<pr... | javascript jquery | [3, 5] |
3,600,536 | 3,600,537 | How does the javascript behind Google Images work? | <p>Recently, Google Images <a href="https://plus.google.com/+google/posts/eQHPcukkr8S" rel="nofollow">redesigned</a> their site so a large lightbox opens up when you click an image. You can press arrow keys to advance the photo. Does anyone know how it works?</p>
<p>I assume they have divs between the rows, but how do... | javascript jquery | [3, 5] |
4,796,582 | 4,796,583 | how to get the three previous dates for the given date .net | <p>I would like to get the 3 dates from the current date or if user enters a date like <code>16/07/2011</code> i would like to show the 3 previous dates for this like</p>
<p><code>15/07/2011,14/07/2011,13/07/2011</code></p>
| c# asp.net | [0, 9] |
5,988,498 | 5,988,499 | how to communicate with sqlserver using jquery | <p>I know we cannot communicate with sqlserver using jquery "directly" but I want to know about the indirect method
I am working on a project with the following scenario</p>
<ol>
<li><p>a jquery script which is installed in the browser and when it is installed and the user opens a web page and hovers the mouse pointer... | javascript jquery | [3, 5] |
5,814,982 | 5,814,983 | Get div from page | <p>I've looked everywhere for a technique, but I failed to find much that suited my needs.</p>
<p>Basically, I would like to utilize JavaScript or jQuery (probably using Ajax) to grab a div that contains a word from a page on my site. </p>
<p>I'm not asking anyone to code this for me, I would just like to be pointed... | javascript jquery | [3, 5] |
4,060,590 | 4,060,591 | How do I strip the first character | <p>I am constructing a URL and I have</p>
<pre><code>escape($('#count_of_stations').html()
</code></pre>
<p>The problem is the value will come in like this </p>
<pre><code>1 station
2 stations
</code></pre>
<p>I need to strip everything other then the first character, so is there a way to sent it with the " station... | javascript jquery | [3, 5] |
5,859,033 | 5,859,034 | PHP Webserver in Python | <p>How can I make a PHP 5.3 webserver using Pythin? I know how to make a simple http server, but how can I include PHP?</p>
<p>Thanks.</p>
| php python | [2, 7] |
520,255 | 520,256 | JavaScript or jQuery, how to find element | <p>I have the following HTML:</p>
<pre><code><div data-name="countrySelectorRoot">
<select>
<option value="C1">Country 1</option>
<option value="C2">Country 2</option>
<option value="C3">Country 3</option>
<option value="C4">Coun... | javascript jquery | [3, 5] |
5,618,096 | 5,618,097 | gridview's javascript return wrong value | <p>on my popup page i have a gridview, when client clicks a row it sends the datakey to the parent page </p>
<p>with this javascript;</p>
<pre><code><script type="text/javascript">
function Done(val) {
window.returnValue = val;
window.close();
}
</script>
</code></pre>
<p>i put a ... | javascript asp.net | [3, 9] |
44,929 | 44,930 | Scrolling bottom div with jquery | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/3742346/use-jquery-to-scroll-to-the-bottom-of-a-div-with-lots-of-text">Use jQuery to scroll to the bottom of a div with lots of text</a> </p>
</blockquote>
<p>I have a div where load a number of comments from a ... | javascript jquery | [3, 5] |
616,699 | 616,700 | Image.FromFile with a username password. C# | <p>Ok we need to load a file on the network, (Files are stored seperatly from the webserver).</p>
<p>Is there anyways we can specify a network userid a password when calling the function below?</p>
<p>Image.FromFile("\IPADDRESSHERE\GroupPictures\");</p>
| c# asp.net | [0, 9] |
4,444,010 | 4,444,011 | Passing event args from javascript to code-behind while using ClientScript.GetPostBackEventReference | <p>I'm trying to trigger a postback from <em>java-script</em> and also pass event args. I'm able to trigger the postback **but not able to pass event args.</p>
<p>The below funtion does not work. It does not like the <code>args</code> parameter in <code>ClientScript.GetPostBackEventReference</code>.</p>
<pre><code>&l... | javascript asp.net | [3, 9] |
1,031,802 | 1,031,803 | How to pre-select a value in RadioButtonList inside a GridView | <p>This might be a silly question but how can I preselect a <code>RadioButtonList</code> value based on existing data?</p>
<p>I have this code inside the aspx file:</p>
<pre><code><asp:TemplateField ItemStyle-CssClass="ItemCommand" >
<HeaderTemplate></HeaderTemplate>
<ItemTemplate>
... | c# asp.net | [0, 9] |
3,236,271 | 3,236,272 | jQuery How to affect Single element on mouseOver | <p>As I'm still learning, this question might seem to be very simple to answer, but I still need to ask.</p>
<p>How do I need to change this script, so it will not display all the tooltips?</p>
<p>What is happening now is whenever I hover on <code>.pink-nose a</code> all the <code>.tooltip</code> are fading in at thi... | javascript jquery | [3, 5] |
3,648,132 | 3,648,133 | jQuery replace div based on rel attribute | <p>I'm trying to replace a div based on a class name and a rel attribute. </p>
<pre><code> <script type="text/javascript">
$(function () {
$('.special_button').click(function () {
var num = $(this).attr('rel');
$(button with class .value_button and rel=nu... | javascript jquery | [3, 5] |
907,878 | 907,879 | JQuery .attr problem. $('#id').attr('value'); returns Undefined | <p>I had this working, and somewhere along the lines I messed something up. Since then I've made several changes trying to get the problem fixed, and now I'm just stuck. As of now I have this:</p>
<pre><code> var calBtn = $('#calButton').attr('value');
function disappearingTable() {
if (... | javascript jquery | [3, 5] |
3,128,210 | 3,128,211 | android downloader, how can i customize | <p>I can use <code>android downloader</code> to download files. and the code is <strong><a href="http://stackoverflow.com/a/10950971/1140321">Here</a></strong></p>
<p>By default android stores the files in <code>download</code> directory.How can I specify the path where it should be downloaded? If this is not possible... | java android | [1, 4] |
4,449,851 | 4,449,852 | On events in loop in dynamic elements | <p>I need to set events to elements makes "on the fly", like <code>var X = $('HTML CODE HERE')</code>, but when I set the events to the last element, all other elements get this last event.</p>
<p>Example here: <a href="http://jsfiddle.net/QmxX4/6/" rel="nofollow">http://jsfiddle.net/QmxX4/6/</a></p>
<pre><code>$(doc... | javascript jquery | [3, 5] |
3,272,097 | 3,272,098 | call farbtastic color picker with javascript | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/5443728/how-to-call-farbtastic-color-picker">How to call farbtastic (color picker).</a> </p>
</blockquote>
<h1>update</h1>
<p>I want to call the farbtastic color picker, I already read the following tutorials, ... | php javascript jquery | [2, 3, 5] |
4,698,216 | 4,698,217 | Set each data id and assign it to href | <p>I am running the following code as I am trying to get each <code>.fotorama</code> id first and then assign each of them as each <code>.nav</code> link href. </p>
<pre><code>$(".fotorama").each(function(){
id = $(".fotorama", this).data("id");
$(".nav li a").attr("href", '#'+ id);
});
</code></pre>
<p>T... | javascript jquery | [3, 5] |
3,126,373 | 3,126,374 | can not access usercontrol properties inside main page | <p>I have a user control</p>
<pre><code>public partial class ConLib_Custom_ClickAndCollect : System.Web.UI.UserControl
{
public string Address
{
get
{
if (ccTextBox.Text != String.Empty)
return ccTextBox.Text.ToString();
else
return "Unite... | c# asp.net | [0, 9] |
4,749,917 | 4,749,918 | jQuery .hover on Android - Prevent clickthrough | <p>The following code works fine to display a dropdown on the desktop, and on iOS, but on Android, it creates a click event and refreshes the page. How can i stop that? I've not found anything simple to solve this? </p>
<p>jQuery:</p>
<pre><code>$('nav li').hover(
function () {
$('ul', this).fadeIn(100);
... | android jquery | [4, 5] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.