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,031,767 | 1,031,768 | Stop jquery from calling function when a slider is opened a second time | <p>I have a simple jquery set up to open a sliding panel, and then initiate a second function to start a slide show within that panel. When I close the panel and open it a second time, it calls the function a second time as well, thus giving me duplicate sliders.</p>
<pre><code> $(function() {
$('a.everyday'... | javascript jquery | [3, 5] |
4,086,814 | 4,086,815 | Javascript error: Missing : after property id? | <p>Here's the code:</p>
<pre><code>window.onload({
var Country = '<?= $core->HotelData($hid, "country"); ?>';
var options = document.getElementsByTagName('option');
for (var i = 0; i < inputs.length; i ++) {
if (options[i].type == 'option' && options[i].value == Country) {
... | javascript jquery | [3, 5] |
2,920,214 | 2,920,215 | Popup on mouse hover the word | <p>I am doing a website using asp.net C# and I would like to popup a small window with information as soon as mouse hover a particular word. I know that I have to use jquery but I don't know exactly how to do it.</p>
<p>Any suggestions please?</p>
| c# jquery asp.net | [0, 5, 9] |
5,401,076 | 5,401,077 | How to Load an object to a jQuery object | <p>In my javascript, I have a function which will return an element present in the HTML page .i have this stored in a variable and now want to do some kind of traversal in that using jquery methods like parent/fadeIn/fadeOut etc.</p>
<p>How can i do that.? My current code which returns the object is </p>
<pre><code> ... | javascript jquery | [3, 5] |
433,496 | 433,497 | Windows Authentication and memberships and roles provider | <p>I have been in the dark about the windows auth. for quite sometime now and was wondering if you brilliant people could help me out. I need to use windows authentication but still harness the power of the memberships provider. what i am doing is creating a user with the membership provider based on my windows usern... | c# asp.net | [0, 9] |
5,468,340 | 5,468,341 | how to make a link click show content of div using z-index? | <p>How to make a anchor link click should show the content of a div but without pushing the content underneath the link down.And when you click out side of that div should close the div.</p>
<p>Javascript or jquery is fine. Here is what I got so far:</p>
<pre><code><a onclick="toggleDiv()"></a>
<div id... | javascript jquery | [3, 5] |
244,425 | 244,426 | What is the equivalent to SoapExtension for JSON WebMethods? | <p>I've a few web methods that I use to call some external services like the Google Calendar API, obviously these can be extremely brittle.</p>
<p>Unfortunately I now realise that any error thrown on these methods are not causing an exception to bubble up to Global.asax which is where errors are getting logged in this... | c# asp.net | [0, 9] |
4,329,765 | 4,329,766 | HashMap gives an unordered list of values? | <p>I'm having a weird problem with HashMap in Android. I'm putting values into the hashmap which is of the form</p>
<pre><code>HashMap <String,String> sample = new HashMap<String,String>();
</code></pre>
<p>However let's say I'm putting the following values in the following order:</p>
<pre><code>sample.p... | java android | [1, 4] |
4,208,193 | 4,208,194 | GPS Location Accuracy Issue | <p>I'm working on an Android app that uses high-resolution GPS data. It's designed to be used in a car, so I'm not too worried about battery life. I've noticed that when I run my app while the stock Google navigation app is running, my GPS data has accuracy within several (< 10) meters. </p>
<p>However, when I run ... | java android | [1, 4] |
4,191,811 | 4,191,812 | create buttons dynamically to call method and pass in parameter | <p>I have a dictionary with a key value pair and need to loop through the pairs and create a button for each one and wire up the button to call a method DisplayDocument(string Id) and pass in the Key as a parameter.</p>
<p>Here's what I have so far.</p>
<pre><code> // test data
var documents= new Dicti... | c# asp.net | [0, 9] |
2,053,078 | 2,053,079 | I use asp.net fileupload control to upload files but it is work on localhost not work on remote server | <p>I use asp.net fileupload control to upload files but it is work on localhost not work on remote server i use this line of code to do this but it is not work when i publish the page to server </p>
<pre><code>FileUpload1.PostedFile.SaveAs(Server.MapPath("products_images/")
+ ... | c# asp.net | [0, 9] |
2,611,587 | 2,611,588 | c# update current time,days,date | <pre><code>protected void Page_Load(object sender, EventArgs e)
{
todayDate.Text=DateTime.Now.toString();
}
</code></pre>
<p>Output</p>
<blockquote>
<p>10:28AM 9/28/2011</p>
</blockquote>
<p>the current time is never update, the result is static, how do i set a interval in c# in order to update current time?</... | c# asp.net | [0, 9] |
642,230 | 642,231 | Access Layout Elements to the Depth of N | <p>I have a pretty annoying problem here, as Im still trying to internalize each and every bits of what I am doing,</p>
<p>I currently have a LinearLayout, then upon onCreate of the Activity, I will populate or inflate several other LinearLayout's with Buttons, my problem is that when I try to access the button, it se... | java php android | [1, 2, 4] |
5,577,212 | 5,577,213 | JavaScript: get and set variables in window.location.hash? | <p>Does anyone have a good solution for getting and setting variables in <code>window.location.hash</code>?</p>
<p>Take a URL that looks like this:</p>
<pre><code>domain.com/#q=1&s=2
</code></pre>
<p>What I'd like is an unstressful way - JavaScript or jQuery - to check the values of <code>q</code> and <code>s</... | javascript jquery | [3, 5] |
4,570,134 | 4,570,135 | JQuery. How to load inputs values to an array? | <p>I have multiple input fields.</p>
<pre><code><input type='text' size='10' name='firstname' id='firstname' />
<input type='text' size='20' name='lastname' id='lastname' />
<input type='password' size='5' name='password' id='password' />
</code></pre>
<p>I want to get all their values into a single... | javascript jquery | [3, 5] |
2,053,044 | 2,053,045 | Uploading an Excel sheet with a specified sheet name using oledb | <p>How to upload an excel sheet using asp.net and know the structure of the columns in the sheet so that it would be helpful in using sqlbulkcopy to upload to a table with similar structure.</p>
<p>any answers would be appreciated.</p>
<p>Thanks in advance.</p>
| c# asp.net | [0, 9] |
637,601 | 637,602 | Using jQuery with google.load | <p>I am trying to understand how to use jQuery when it is loaded using Google CDN's google.load method.</p>
<p>Putting the init code in the setOnLoadCallback function works great but defining functions for event handlers in the markup doesn't seem to work. In the example below, the P button works as expected but the D... | javascript jquery | [3, 5] |
1,932,409 | 1,932,410 | Select Item in Asp.Net? | <p>good morning. </p>
<p>i am trying to do a list of selecting items in asp.net. </p>
<p>the purpose of it , is a page of "Contact Us" . </p>
<p>so i did a textboxes, a buttom. </p>
<p>but, i need thay to select item from a list, any one have any idea? </p>
<p>thanks all !</p>
| c# asp.net | [0, 9] |
2,993,679 | 2,993,680 | jQuery width() not returning correct value on a div with generated content | <p>With the code below, the alert doesn't return the actual size of #main, it always returns the value of #main's css width with the % dropped. So in this case I get 95 in the alert. If I alert parent().width() I get 100. </p>
<p>The data returned from the .get() call is a ul that sometimes is wider than #main, and... | javascript jquery | [3, 5] |
3,697,538 | 3,697,539 | How to get selected index of a Html select in asp.net? | <p>I have code below:</p>
<pre><code> <select id="test">
<option value="a">aaa</option>
<option value="b">bbb</option>
</select>
<asp:Button ID="btnTest" runat="server" Text="Test it!" onclick="btnTest_Click" />
I need to get selected index not selecte... | c# asp.net | [0, 9] |
2,125,885 | 2,125,886 | Javascript link with onClick event | <p>I am using a third-party shopping cart from <a href="http://simplecartjs.com/" rel="nofollow">http://simplecartjs.com/</a> .
For a normal checkout I can use:</p>
<pre><code><a href="javascript:;" class="simpleCart_checkout" >Checkout</a>
</code></pre>
<p>And it works. But I need to add some server-side... | c# javascript asp.net | [0, 3, 9] |
4,257,766 | 4,257,767 | Any Idea for Showing Latest News in a Website | <p>What is the best way for presenting latest news in the website?</p>
<p>Is there any template such as JQuery or Javascript for that?</p>
| javascript jquery | [3, 5] |
2,942,949 | 2,942,950 | Auto Click a button on a web page | <p>I need to auto click a button on a web page.
Basically i have a user interface to see the logs of the network printer. This page already has a option 'Save in CSV Format'.When i click this, i get a popup box which asks if you want to run or save that file. </p>
<p>The issue is:
I am creating another web page where... | php javascript | [2, 3] |
829,215 | 829,216 | c# failed to check existed file in directory | <p>there are nothing is inside my test002 folder, by right my output should be is "nothing is inside the folder",but after compile there are nothing prompt.</p>
<p>what i want to do is if there are any .doc file is inside my folder, just upload it
if there are nothing is inside the folder, ask user to upload .doc to r... | c# asp.net | [0, 9] |
5,763,358 | 5,763,359 | time picker in php | <p>please help me out regarding time in php. I want to make time selection for a website that offers their services at different time . I want to make it like a date picker calendar . I haven't find anything yet . i can make in drop down box but showing the 60 min drop down looks quite ugly . plz help me out regarding ... | php javascript | [2, 3] |
1,925,618 | 1,925,619 | Change ListView with Autocompletion | <p>Basically what I want is a ListView with a TextBox on top. Currently I fetch all my contacts in a list. But e.g. if I type 'a' in the textbox, I only want to see all contacts starting with an a. Same if you type in 'an' I only want to see the contacts beginning with an.</p>
<p>Currently I have my Listview with my c... | java android | [1, 4] |
1,217,619 | 1,217,620 | jQuery won't let me do if blocks? | <p>I am trying to do a fade effect, that fades out a div and substitutes it for another. For that I have created a lastDiv var which sets the number of the last div clicked. </p>
<p>But when I try to set an if js says there is an error. I am pretty sure that I am using the correct syntax. (I am a beginner) </p>
<p>Th... | javascript jquery | [3, 5] |
3,144,016 | 3,144,017 | how to fire both client side and server side validations at once? | <p>I have a textbox and I do CustomValidation which does client side and server side validations,
how do I fire both client side and server side validations at once? now server side validation fires only after client side validation.</p>
<p>is it possible?</p>
| c# asp.net | [0, 9] |
5,263,462 | 5,263,463 | Deleting any element, the reassigning the count value | <p>Sorry about the cryptic title, it's hard to describe!</p>
<p>I am using the following script to add a row to my form when a button is clicked:</p>
<pre><code> $(document).ready(function() {
$('#btnAdd').click(function() {
var num = $('.clonedInput').length;
var newNum = new Number(num + 1);
... | javascript jquery | [3, 5] |
5,225,863 | 5,225,864 | When loading a C++ dll in C#, does the CLR load the dependencies of the C++ file automatically? | <p>Well that is my question, I am planning to implement a C++ dll which has many C++ dependencies, and I want to use it in my c# code..What I wanted to know is if the CLR loads the dependencies on its own or will I have to do something else.
When loading a C++ dll in C#, does the CLR load the dependencies of the C++ fi... | c# c++ | [0, 6] |
2,900,052 | 2,900,053 | How invoke live method with arguments | <p>I am learning how to write jQuery plugin. So why I am doing what I am doing does not matter.</p>
<p>I writing a plugin called live2 which does nothing else but internally calls live method.</p>
<pre><code>(function($) {
$.fn.live2 = function() {
/* if there are no elements then just return */
... | javascript jquery | [3, 5] |
4,898,174 | 4,898,175 | What are the advantages to putting your Javascript in a .php file? | <p>I occasionally come across pages where some Javascript is included via a PHP file:</p>
<pre><code><html>
<head>
<script type="text/javascript" src="fake_js.php"></script>
</head>
<body onload="handleLoad();">
</body>
</html>
</code></pre>
<p>where the con... | php javascript | [2, 3] |
60,028 | 60,029 | Looking for C# - Java feature equivalence cheat sheet | <p>I'm looking for a resource that should help C# developer learning Java. I would like to have a fast reference that says, for instance:</p>
<pre><code>C# | Java | Suggested alternative
Extension Method | NA | ...
Attributes | Annotations | ...
</code></pre>
... | c# java | [0, 1] |
5,096,328 | 5,096,329 | The false element in a Logical operation | <p>I wish to know if there's some way to know which is the elemnet of a logic operation is false?<br>
Example. </p>
<pre><code>if( String.IsNullOrEmpty(obj1) || (String.IsNullOrEmpty(obj2) )
throw("...............");
</code></pre>
<p>How can I kown which one of those is the empty one? </p>
| java c# | [1, 0] |
2,828,763 | 2,828,764 | pass variable from page load to button click event | <p>i am creating a page that when page load it will connect to the database to check the user status to determine which part can be shown, then user can click submit button which need to connect to the database again to update some information. </p>
<p>So is there a efficient way to do this? now I have to connect to t... | c# asp.net | [0, 9] |
4,376,706 | 4,376,707 | Creating a spray effect on touch draw in android | <p>My application requires me to create spray like effect when user touches the screen. The user had the option of choosing a color. I need to create a spray like effect with the color user chooses. I am not sure if its possible or not. If it possible please suggest me a link or a guide to go through.</p>
| java android | [1, 4] |
164,028 | 164,029 | How to pause an event in jQuery? | <p>I have a question regarding events.</p>
<p>Basically, I want to run a jquery method when the user clicks a link to leave the page. In this method I want to check a few things before they leave, so I know I can call:</p>
<pre><code>e.preventDefault();
</code></pre>
<p>But what if I want the event to continue afte... | javascript jquery | [3, 5] |
3,953,168 | 3,953,169 | DataGrid and formatting data | <p>I'm new to ASP.NET and don't really understand how to display a table with database data. The data is loaded in an object, where I have a list of objects.</p>
<p>Now I want to show a table with some columns, an image (path created from two fields in the object), an link (passing one field of the object), a textarea... | c# asp.net | [0, 9] |
4,338,082 | 4,338,083 | How to ESCAPE "comma" in Javascript | <p><strong>EDIT1:</strong></p>
<pre><code>btnDelete.Attributes.Add("onclick", String.Format(@"return DeleteRow('{0}',{1},{2},{3});", e.Row.ClientID, e.Row.RowIndex, DataBinder.Eval(e.Row.DataItem, "Id"), "'" + DataBinder.Eval(e.Row.DataItem, "Name") + "'"));
</code></pre>
<p>edit:</p>
<p>i get this error:</p>
<p><s... | javascript asp.net | [3, 9] |
1,861,624 | 1,861,625 | Javascript/jQuery encoding for special characters when using val() | <p>I have a problem with special characters like &, ä, etc. and their corresponding HTML encoded writing like <code>&amp;</code>, <code>&auml;</code> etc.</p>
<ul>
<li><p>When they are used in the value tag of input fields, the browser decodes it automatically, no problem at all.</p></li>
<li><p>When using... | javascript jquery | [3, 5] |
914,338 | 914,339 | How to open a popup and send a JSON object to it | <p>I want to send a <a href="http://en.wikipedia.org/wiki/JSON" rel="nofollow">JSON</a> object to a <a href="http://en.wikipedia.org/wiki/PHP" rel="nofollow">PHP</a> file while my script opens that PHP file in a new <strong>popup</strong> window. Is it possible to send it via POST method (by jQuery or without it)? </p>... | javascript jquery | [3, 5] |
1,846,981 | 1,846,982 | problems with $().click() when generating JavaScript code with a PHP loop | <p>Regards.
I am generating an .click event for every element of my table using a php loop like this:</p>
<pre><code><?php foreach ($elements as $element){ ?>
var element_id = <?= json_encode($element['element_id']));?>;
$('#'+element_id+'_button').click(function() {
$('#'+element_id+'_in... | php javascript | [2, 3] |
3,620,337 | 3,620,338 | Blur event stops click event | <p>Example code: <a href="http://jsfiddle.net/slolife/PnmxM/" rel="nofollow">http://jsfiddle.net/slolife/PnmxM/</a></p>
<p>I am asking this even though there are a number of similar questions, but I feel that they are not the same.</p>
<p>I have an textbox that when it is blurred, should do something.</p>
<p>I also ... | javascript jquery | [3, 5] |
2,206,210 | 2,206,211 | Repeat line x to y every few second in php | <p>how i can repeat code from line x to y in php By Ajax.</p>
<p>for example:</p>
<p>mycode:</p>
<pre><code>$info_2=('<div id="infobox">');
echo $chat_2;
$info_query=mysql_query("SELECT * FROM info WHERE fuid='$uid' or luid='$uid' ");
$info_num=mysql_num_rows($info_query);
for($i=0;$i<$info_num;$i++)
{
$in... | php javascript | [2, 3] |
2,032,049 | 2,032,050 | JQuery get Value of an Element: onfocus="inputInlineHint(self);" | <p>i have an input field which calls the function "inputInlineHint(self)" on blur and on focus.
It also passes self...</p>
<pre><code><input type="text" id="one" class="textbox" value="Your Name" onfocus="inputInlineHint(self);" onblur="inputInlineHint(self);" />
</code></pre>
<p>Now i'd like to retrieve the cu... | javascript jquery | [3, 5] |
2,974,157 | 2,974,158 | passing query string value from asp.net page to iframe | <p>I have an asp.net page with a textbox and a button. on button click, I open a popup and load a page in it using iframe. I want to pass value of textbox as query string to page in iframe. How can I do this?</p>
<p>I tried using server side iframe like this:</p>
<pre><code><iframe id="popupframe" runat="server" s... | javascript jquery asp.net | [3, 5, 9] |
4,494,383 | 4,494,384 | How to implement random number stream accross high traffic asp.net application with multiple servers | <p>This question comes from the knowledge that when <code>new Random()</code> is called very quickly it gets seeded with the same value which I assume is based on <code>DateTime.Now.Ticks</code>.</p>
<p>Suppose you had a high traffic web application on latest versions ASP.NET, IIS, .NET, etc.. which implements an onli... | c# asp.net | [0, 9] |
2,781,829 | 2,781,830 | Javascript jQuery How to load default image if | <p>I wanted to load the default image if the user's one didn't exist. I tried this but it didn't work.</p>
<pre><code>$('#avatar').load(function(){
// ... loaded
}).error(function(){
// ... not loaded
$(this).attr('src','/images2/no-avatar2.png');
});
</code></pre>
<p>Anyone know how I could do this?</p... | javascript jquery | [3, 5] |
601,416 | 601,417 | Jquery animation hover | <p>In my website i have an image that when hover it goes up using this.</p>
<p>HTML</p>
<pre><code><div class="first">
<a href="#dialogdemo" name="modal"><img src="images/1sticon.png" alt=" " border="0"/></a>
<div class="support">
<img src="images/orpan.png" alt=" " />
... | javascript jquery | [3, 5] |
6,021,185 | 6,021,186 | Changing Page on mouse dragging event | <p>Have a look the the page.</p>
<p><a href="http://www.trgms.com" rel="nofollow">The Link</a></p>
<p>Now, what I want to do is, that when a user drags the window towards right, the windows drags to the previous page, and vice versa, which is currently being done when user clicks the right or left buttons on the scre... | javascript jquery | [3, 5] |
4,404,869 | 4,404,870 | Fancy box add button onComplete open current image in new window | <p>I am trying to extend fancybox to allow for a new button to open the current image in a new window. I was planning on adding this via the onComplete although I can find any information in the API that explains how to get teh current image from:</p>
<pre><code>'onComplete' : function(currentArray, currentIndex, curr... | javascript jquery | [3, 5] |
5,273,500 | 5,273,501 | ASP.NET Call Another Element's DoPostBack Function | <p>I have an ASP.NET control that has an onclick event handler rendered inline on the element. I would like to call that function and have it raise the target control's server side event handler.</p>
<pre><code><asp:CheckBox ID="Foo"
runat="server"
AutoPostBack="true"
Text="Foo" />
<a href="#... | asp.net javascript | [9, 3] |
2,425,689 | 2,425,690 | find replace not working in ie | <p>Could anyone tell me why the following code doesnt work in ie? it works in every other browser and just comes up as undefined in ie:</p>
<pre><code>var infoTemplate = '<div style="text-align:left"><h4 style="color:#0068a6;font-size:16px;margin:0px 0px 10px 0px;">%Title</h4><strong>%Tel</s... | javascript jquery | [3, 5] |
3,250,482 | 3,250,483 | problem with Jquery equivalent to javascript createElement | <p>I'm trying to recreate the following code with jQuery:</p>
<pre><code> var node = document.createElement("div");
node.innerHTML = "DynaColumn";
node.className = "ui-state-default ui-corner-all";
return node;
</code></pre>
<p>this is the code I'm trying to get to work:</p>
<pre><cod... | javascript jquery | [3, 5] |
645,840 | 645,841 | ASP.NET/C# - Detect File Size from Other Server? | <p>I'm trying to find the file size of a file on a server. The following code I got from <a href="http://www.thejackol.com/2005/06/11/aspnet-get-file-size/" rel="nofollow">this guy</a> accomplishes that for your own server:</p>
<pre><code>string MyFile = "~/photos/mymug.gif";
FileInfo finfo = new FileInfo(Server.MapP... | c# asp.net | [0, 9] |
3,882,719 | 3,882,720 | Read Images programmatically | <p>i am a 3rd year computer science student, and my seminar(graduation project) is in the next semester, so i started to think about it and i thought that a face recognition system would be a great idea, so i have two questions:</p>
<p>1- how can i read a picture programmatically, i mean if i have a picture, how can r... | c# php | [0, 2] |
135,063 | 135,064 | Need whole body tag mouseover function | <p>I need to whole body mouseover function. When I enter some other page, some of my content will append the particular div. </p>
<p>My code is:</p>
<pre><code>$('body').mouseover(function() {
$('#text').append('<div>New content</div>');
});
</code></pre>
| javascript jquery | [3, 5] |
4,005,547 | 4,005,548 | javascript return function's data as a file | <p>I have a function in javascript called <code>"dumpData"</code> which I call from a button on an html page as <code>**onlick="dumpData(dbControl);"*</code> What it does is return an xml file of the settings (to an alert box right now). I want to return it to the user as a file download. Is there a way to create a... | php javascript | [2, 3] |
4,984,238 | 4,984,239 | How to get on which html tag i am clicking using jquery? | <p>I working on a web page which has a similar structure like this:</p>
<pre><code><div id="mydata">
<img src="" >
<img src="" >
<img src="" >
<video src=""></video>
<video src=""></video>
<img src="" >
<img src="" >
</div>
</code></pre>
<p>so it's a c... | javascript jquery | [3, 5] |
5,171,913 | 5,171,914 | How to apply watermark in file upload control | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/11685617/putting-placeholder-attribute-on-file-type-input-field">Putting placeholder attribute on file type input field</a> </p>
</blockquote>
<p><img src="http://i.stack.imgur.com/EZpAf.png" alt="enter image de... | javascript asp.net | [3, 9] |
4,683,723 | 4,683,724 | I want show add to cart popup window onclick of view cart link using jquery,javascript or asp | <p>Please check bellow link:</p>
<p><a href="http://v1098050.jkgeyrewb7wh.demo10.volusion.com/ProductDetails.asp?ProductCode=MacFRC" rel="nofollow">http://v1098050.jkgeyrewb7wh.demo10.volusion.com/ProductDetails.asp?ProductCode=MacFRC</a></p>
<p>Click on Add to Cart button it shows add to cart popup window
I want to... | javascript jquery | [3, 5] |
1,085,868 | 1,085,869 | Recording Audio sound on Internet - C# ASP.NET | <p>I want build an application on web which records the audio sound through Mic.</p>
<p>If any one can provide some appropriate approach or some links would be helpful.</p>
<p>also if you can suggest some third party control which is free.</p>
<p>The technology for Implementation - ASP.NET , C#</p>
| c# asp.net | [0, 9] |
3,667,734 | 3,667,735 | Get textbox value inside templateField tag? | <p>How to get textbox value inside <code>templateField</code> tag?</p>
<p>Here's my code:</p>
<pre><code> <Fields>
<asp:TemplateField >
<ItemTemplate >
<asp:TextBox ID="SUBJEK" runat="server" Width="600px" Text='<%# Bind("SUBJEK") %>' />
</ItemTemplate>
</a... | c# asp.net | [0, 9] |
1,756,987 | 1,756,988 | Using Google Map View on iOS versus on Android | <p>on iOS you don't need to specify the Google Map API key. But In android, you do have to specify, so the question why such difference?</p>
| iphone android | [8, 4] |
2,207,958 | 2,207,959 | jQuery not removing class on elements | <p>I have this code in Javascript</p>
<pre><code>// when I click on any #type_import_block, remove class "active" from all id that contains "ver_"
$("[id*=_import_block]").mousedown(function(){
$("[id*=ver_]").removeClass("active");
});
</code></pre>
<p>But doesn't work, the class "active" isn't removed from <cod... | javascript jquery | [3, 5] |
261,830 | 261,831 | Problem with string format | <p>I would like to assign string "{"MY_URL", "MY"}" to string variable. So in my code behind (C#)
I wrote like <code>string str ="{\"MY_URL\", \"MY\"}"</code>. When i will assign this to textbox it will print escape character ("\") as well. That i don't want so what i have to do to achieve this??</p>
| c# asp.net | [0, 9] |
930,020 | 930,021 | Loading an element. After that loading another element into the loaded element | <p>i built a website where my frame, with the main menue and the banner, is always exisiting.</p>
<p>I created a div element, in which i can load everything i want dynamically. </p>
<p>But now i have a problem. If somebody clicks a link, i want to load a html document into my div-frame. When this has been done, a ano... | javascript jquery | [3, 5] |
4,755,918 | 4,755,919 | Playing a sound from a dynamic generated list | <p>I am new to C# and ASP.NET and I currently have a page that is dynamically displaying a list of .wav files from a directory using a checkbox list and displaying the date of the file when it was created. However since that is a .wav file I am trying to allow the end user to be able to play it but I am not sure where ... | c# asp.net | [0, 9] |
2,716,971 | 2,716,972 | Asp.net Calendar control | <p>I have an asp.net calendar control that is used to select a date and store it in a database. It is also adding the time which makes reporting difficult. We only need the date not the time. How can I prevent the calendar control from including the time....or making the time the same for every date?</p>
| c# asp.net | [0, 9] |
222,378 | 222,379 | how to refresh the asp.net Label every second automatically using Java script instead ajax? | <p>how to refresh the asp.net Label every second automatically using Java script instead ajax?</p>
| javascript asp.net | [3, 9] |
4,658,382 | 4,658,383 | cell of a datagridview to support multiple lines using c# | <p>i have a datagrid view with two columns. the first column is readonly and the other is editable. now i want every cell of the second column to support for mulitilines in each cell. i want to press enter key and come to the next line in the same cell.
im using c#.</p>
| c# asp.net | [0, 9] |
693,575 | 693,576 | How can I get the URL of a link? | <p>How can I get the URL of a link?</p>
<pre><code>$('.l').eq(0).href
</code></pre>
<p>is what I want to do, but it's undefined. </p>
<hr>
<p>So given a jQuery selected anchor element, how do you get the href property?</p>
| javascript jquery | [3, 5] |
5,264,764 | 5,264,765 | How to execute in JavaScript function in ASP.NET using C# | <p>i have a textarea which i want to disable when I check a <code>checkbox</code>. I made a working demo in plain HTML and JavaScript , but When I am migrating to Asp.net, neither the function is being executed nor I can keep the <code>OnSelect</code> event in my check box.</p>
<pre><code><asp:CheckBox ID="ChkOther... | c# asp.net javascript | [0, 9, 3] |
2,481,073 | 2,481,074 | jQuery string split the string after the space using split() method | <p>my code </p>
<pre><code> var str =$(this).attr('id');
</code></pre>
<p>this will give me value == <strong>myid 5</strong></p>
<pre><code> var str1 = myid
var str2 = 5
</code></pre>
<p>i want something like this ..</p>
<p>how to achieve this using split method</p>
| javascript jquery | [3, 5] |
606,875 | 606,876 | Access datas based on user role in asp.net | <p>How to access datas based on user roles in asp.net ?</p>
<p>For example : i have two admins (admin1, admin2) .</p>
<p>In the frontend ,admin1 has full access to datas(view,add,edit,delete all datas) </p>
<p>while admin2 has limited access to datas(view,add,edit,delete certain datas alone and not all datas)</p>
... | c# asp.net | [0, 9] |
2,968,921 | 2,968,922 | List Items with alternating colours | <p>I have my template file which has data being populated into it. However I want to be able to write a class to every odd list element.</p>
<p>The issue i have is that some of the fields being listed are hidden when there is no data and as such i cannot simply write in the class of every other element.</p>
<p>I know... | c# asp.net | [0, 9] |
3,387,144 | 3,387,145 | Cannot seem to get user location | <p>I've been trying to get the longitude and latitude of a users location with Android. I've been trying to use the LocationManger however it does not seem to activate and give me an update. Here is the code, any ideas what I'm doing wrong?</p>
<pre><code>LocationManager locationManager = (LocationManager) this.getSys... | java android | [1, 4] |
1,516,711 | 1,516,712 | jQuery "Microsoft JScript runtime error: Object expected" | <p>I have the below code that does not seem to work at all :( I keep getting:</p>
<pre><code>Microsoft JScript runtime error: Object expected
</code></pre>
<p>The error seems to occur when the timeout is done. So if I raise the timeout with 10 seconds the error holds for another 10 seconds. </p>
<p>I want to be able... | c# jquery javascript | [0, 5, 3] |
3,461,600 | 3,461,601 | How to set a control in parent window based on selection in jquery dialog | <p>I am launching an aspx page within a jquery dialog using</p>
<pre><code>var url = "SomePage.aspx";
$("#divPop").load(url).dialog({
position: '50px',
modal: true,
closeText: '',
bgiframe: true,
height: 'auto',
... | javascript jquery | [3, 5] |
1,973,852 | 1,973,853 | Redirect a user after update | <p>I have a page that users will click a update link and once they land on the page it will tell the server to grab data from a API and takes a few minutes. The problem is I don't wan't to have to keep refreshing the page to send the user back once it has updated.</p>
<p>Is there a jQuery function that will check a PH... | php javascript jquery | [2, 3, 5] |
4,610,371 | 4,610,372 | Javascript loaded check through jquery getscript | <p>I want to load a Javascript file on the click event instead of loading at the page load event, for performance reasons.
Is there anyway to know that particular if javascript is already loaded?</p>
<p>Right now I am maintaining a global variable to check the 'loaded' event</p>
<pre><code>var javascriptLoaded=false
... | javascript jquery | [3, 5] |
1,011,405 | 1,011,406 | How to pass the value of an option field as well as an input box via post in jquery/PHP? | <p>I have a search bar like</p>
<pre><code><div id="searchbar">
<form>
<select name="Cars">
<option value="big">Big Cars</option>
<option value="small">Small Cars</option>
</select>
<input type ='text' name="searchkey" id ="search" onblur ='setTimeout('removeSearchSug... | php javascript jquery | [2, 3, 5] |
508,936 | 508,937 | jQuery multiple callbacks to one callback counting calls | <p><strong>I need just one callback at the and of multiple callbacks. With a simple "class" MultiCallback that count the calls it seems to be solved.
But the fadeIn function of jQuery calls mCallback just once.</strong></p>
<p>It have to call mCallback 3 times. That happens by using a callback function directly insi... | javascript jquery | [3, 5] |
5,513,440 | 5,513,441 | deferring JavaScript execution in document received via AJAX | <p>I'm receiving this HTML document via AJAX:</p>
<pre><code> <form enctype="multipart/form-data" method="POST" action="admin.php?do=media&action=file-upload">
<div id="uploadForm">
<div id="fileList">
</div>
<a href="#" id="selectFile">[Select Fil... | javascript jquery | [3, 5] |
1,872,821 | 1,872,822 | Appended span tags don't have assigned text | <p>I'm trying to iterate over a collection of checked checkboxes and append the text of each checked box to a div as a span. I've tried this with option tags to a select and it works fine, but when doing it with span tags, the text doesn't seem to be showing.</p>
<pre><code>$.each(elms, function(index, value) {
va... | javascript jquery | [3, 5] |
3,779,049 | 3,779,050 | Multiple JQuery plugins on same page | <p>I am wondering if there is an easy solution to this:
I have the following JQuery plugin created several times on elements defined in a grid</p>
<pre><code>(function ($) {
$.fn.MyPlugin = function () {
$(this).mouseenter(function () {
//do something for single plugin instance
});
... | javascript jquery asp.net | [3, 5, 9] |
3,107,367 | 3,107,368 | large table with lots of events, is using event bubbling more effecient? | <p>I have a large table/grid that has events on each row, table headers, etc.</p>
<p>Instead of me generating events or binding events to each cell, would it be better to put a 'global' event and then I believe when clicked or mouseover events occur, it will bubble up to my 'global' event on the entire table and then ... | javascript jquery | [3, 5] |
5,707,571 | 5,707,572 | How to test android method with J2SE | <p>I have some dynamically generated Android classes. I need to test some of the methods of those classes (these methods have nothing to do with UI). I hope to integrate this feature into an existing J2SE project. Is this possible to run it on standard VM? If I have to use Dalvik VM, is there any command line interface... | java android | [1, 4] |
3,482,230 | 3,482,231 | How to call a class in the App_Code folder from code behind? | <p>I created a class in ASP.NET C# which is located in the App_Code folder. Now I want to call this class from my code behind from one of my .aspx pages. How can I do this?</p>
<p>Any help will be appreciate it.</p>
| c# asp.net | [0, 9] |
4,443,494 | 4,443,495 | PHP/JavaScript How to combine 2 page in one | <p>I need a reference on how to make 2 pages become one.</p>
<p>Originally i have 2 php pages. View.php and comment.php</p>
<p>The view.php will have a link to call comment.php. When click the 'comment' link, it will open comment.php like pop up. After fill in the comment, and click send, it will closed and return th... | php javascript | [2, 3] |
2,284,447 | 2,284,448 | change class on LI click | <p>I need to dinamically assign a .selected class to the element where I click and also remove any other previous class asigned to the clicked element so I can change CSS class. Maybe this code:</p>
<pre><code>$(this).click(function(){
$(this).addClass('selected');
});
</code></pre>
<p>works but what happend if I c... | javascript jquery | [3, 5] |
4,653,585 | 4,653,586 | A Safe Path to External Storage | <p>For my app, I have a fairly large database that needs to be stored on the user's device. I plan to change this in the future. For now, however, I'd like to store it to the user's external storage (if available) rather than fill up their internal storage. What method can I use to get a safe (meaning, will work on mos... | java android | [1, 4] |
1,474,368 | 1,474,369 | replacing page content with .html(content) is not working | <p>I have a weird problem in jQuery. The problem is that I can smoothly use <code>$('#container').html(content)</code> to replace the page content but to specific page. It is not working all around. Gives 'TypeError' message in console. Is there any probability that using SlickGrid can cause such error. Because error i... | javascript jquery | [3, 5] |
5,991,566 | 5,991,567 | C# and Java : 3 / 2 * 3.2 = 3.2, why? | <p>Conside the following for C# and Java,</p>
<pre><code>double d = 3 / 2 * 3.2;
</code></pre>
<p>Java</p>
<pre><code>System.out.println(d); // 3.2
</code></pre>
<p>C#</p>
<pre><code>Console.WriteLine(d); //3.2
</code></pre>
<p>It skip the 3/2,</p>
<p>We know that the correct answer should be 4.8</p>
<p>if i ch... | c# java | [0, 1] |
459,428 | 459,429 | Exclude a certain div in jQuery global validation? | <p>Okay, so we have around 30 input boxes in our page, and instead of writing a no data line for each one, we have a simple statement:</p>
<pre><code>if( $(div).find('input:text[value=""]').length > 0 ||
$('#checkbox1Wrap').find('input:checkbox:not(:checked)').length > 0 ||
$('#checkbox2Wrap').find('inpu... | javascript jquery | [3, 5] |
3,908,031 | 3,908,032 | how to add an OnClick event on DropDownList's ListItem that is added dynamically? | <p>Say I have the following code:</p>
<pre><code> DropDownList changesList = new DropDownList();
ListItem item;
item = new ListItem();
item.Text = "go to google.com";
changesList.Items.Add(item);
</code></pre>
<p>How do you dynamically add an OnClick event to <code>item</code>... | c# asp.net | [0, 9] |
309,239 | 309,240 | Jquery perform click on <img> | <p>I am working with an external JavaScript plugin that I can not edit and works by click on the a list of thumbnail images. </p>
<p>For styling purpose I have had to wrap the images in an <code><a></code> with:</p>
<pre><code>if(img.parent("a").length == 0){
img.wrap('<a />');
}
</code></pre>
<p>Is ... | javascript jquery | [3, 5] |
2,964,730 | 2,964,731 | How do I modify a string printed by a script? | <p>I'm having problems with wordpress mishandling accented characters, or maybe the problem is with some plugin. Whichever the case I need to "translate" some strings, removing accents which i do with:</p>
<pre><code> $value = strtr($value, $trans);
</code></pre>
<p>I really need to change this string which renders ... | php javascript | [2, 3] |
5,566,633 | 5,566,634 | Unable to catch the Dropdown selected value in a textbox inside a repeater | <p>I have a <code>DropDownList</code> inside a repeater and whenever the selected text is changed, I have to show it in a <code>TextBox</code> but I'm getting <code>Object reference not set to an instance of an object</code> error</p>
<pre><code>protected void Ddl_SelectedIndexChanged(object sender, EventArgs e)
{
... | c# asp.net | [0, 9] |
4,738,948 | 4,738,949 | PHP and JavaScript Buttons not working? | <p>My code (Below) works in Internet Explorer, but not in Chrome, Safari or Mozilla Firefox. Not sure why, but would it be possible for someone to point me in the right direction? This code has some buttons which change the form's action attribute and direct the data to different PHP controller file to do different thi... | php javascript | [2, 3] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.