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 |
|---|---|---|---|---|---|
290,729 | 290,730 | How to interpolate two values with .animate | <p>How-to, </p>
<p>Interpolate the following table in jQuery, </p>
<pre><code><tr data-value='2.000'>
</code></pre>
<p>I need to get the data-value, that is 2.000 and then interpolate it until 10.0</p>
<pre><code>var from = {property: 0};
var to = {property: 100};
jQuery(from).animate(to, {
duration: 100... | javascript jquery | [3, 5] |
5,272,991 | 5,272,992 | Update information as needed | <p>On the page I have a list of HTML-elements, each element has its status: </p>
<pre><code><ul>
<li>
<span class='status'>ok</span>
<span class='content'>content1</span>
</li>
<li>
<span class='status'>not ok</span>
... | php javascript | [2, 3] |
3,222,180 | 3,222,181 | php website to aspx .net website | <p>I was working on a rewards website in php and mysql. I have almost finished everything but the client now wants the website to be in .net and not php. Most of the php coding is completed and it is not possible to start from scratch in .net and finish the whole website in 2 weeks. </p>
<p>I am good with php but not ... | php asp.net | [2, 9] |
2,941,624 | 2,941,625 | why in firefox it is ok, but in ie8 it print 'undefined undefined'? | <pre><code><div>
<span onmouseover="tip(event,this);">程序错误<div class="content">good</div></span><br>
<span onmouseover="tip(event,this);">程序错误<div class="content">good</div></span><br>
<span onmouseover="tip(event,this);">程序错误<div... | javascript jquery | [3, 5] |
2,754,615 | 2,754,616 | Loop through 2 arrays in jquery and combine | <p>I have 2 arrays, one with cities, and another array with ID's...
I would like to loop both, and then output some HTML</p>
<p>Right now im only looping cities, and then appending some HTML to a as following:</p>
<pre><code>if ($jq(".area").length > 0) {
var region = $jq(".hiddenFieldRegion").val();
var... | javascript jquery | [3, 5] |
258,927 | 258,928 | how to get property from code behind jquery variable? | <p>I want to retrieve property value in jquery function and want to set it in variable. I am trying with below code but its not working.</p>
<p>.cs file</p>
<pre><code>private string _Heading;
public string Heading { get { return _Heading; } set { _Heading = value; } }
</code></pre>
<p>.aspx</p>
<pre><code><scri... | c# jquery asp.net | [0, 5, 9] |
1,919,209 | 1,919,210 | 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] |
1,219,113 | 1,219,114 | How to get feedback to a page from a running thread in ASP.NET? | <p>So I have this interface that is just one big GO button that syncs a bunch of data from one tool to another. The problem is it takes a really long freaking time and some users are left wondering whats the deal. So I am wondering if there is a way that I can put something in my loop so that every so many entries it s... | c# asp.net | [0, 9] |
4,555,106 | 4,555,107 | Error: No class definition found | <p>I have added jars with the below procedure:</p>
<ol>
<li>Right-click on the project in Eclipse and select “Build Path -> Add Libraries…”.</li>
<li>Select User Library from the list and click Next.</li>
<li>Click the “User Libraries…” button.</li>
<li>Click “New…” in the User Libraries dialog.</li>
<li>Give the user... | java android | [1, 4] |
2,954,903 | 2,954,904 | form jquery prevent default | <p>I want to prevent the form from submitting, but execute other form handlers, preventDefault stops all.</p>
<p>here's an example:</p>
<pre><code><form id="example">
<input type="text" name="name" />
</form>
<form id="example2">
<input type="text" name="name2" />
</form>
... | javascript jquery | [3, 5] |
5,768,323 | 5,768,324 | Python and Android apps | <p>I've been using Python for about a year now and would love to start writing some Android apps using Python.</p>
<p>I've been researching both Kivy and SL4A and I'm a little confused about something.</p>
<p>When you develop an Android app using Python and one of the above, does the user of the Android device need t... | android python | [4, 7] |
4,436,964 | 4,436,965 | Trying to remove characters at the end of a string in three p elements using the same class | <p>Looking to be able to use a class instead of an ID as I have three p elements that I need to remove 1- characters from. Any thoughts would be much appreciated. Initial reply thanks to Tim Down (and due to my very ropey explanation of what my problem was - shown below) I'm sure this is much easier than I know! Thanks... | javascript jquery | [3, 5] |
5,490,377 | 5,490,378 | getting intellisense to show properties in markup for a custom server control | <p>I have a custom control that inherits from <strong>UserControl</strong>, and I can't get it's properties to show in intellisense. For example, I have a property:</p>
<pre><code>public string Title;
</code></pre>
<p>but if I start typing:</p>
<pre><code>ff:myControl Tit...
</code></pre>
<p>Nothing shows up (like... | c# asp.net | [0, 9] |
553,020 | 553,021 | UserControl pass Value to MasterPage Content | <p>I am coding in a userControl, </p>
<p>how can I pass text to a control I placed in one of the contents?</p>
<p>It's a literal by the way</p>
<p>Thank you</p>
| c# asp.net | [0, 9] |
3,689,130 | 3,689,131 | What is the most cheap way to mix `this` and other selectors in JQuery | <p>what is the best way to mix <code>this</code> with other selectors in JQuery <code>:filter</code>,<code>[id=""]</code> and stuff like this, lets assume we wanna read <code>.val()</code> of an input with <code>name="input"</code> in form with that function is bind to it. </p>
<p>and if possible do they cost differe... | javascript jquery | [3, 5] |
4,168,134 | 4,168,135 | Simple JQuery click-and-show doesn't work | <p>I'm using this simple bit of JQuery to show/hide a div by clicking on the link, I've used the same code a few times before and it worked perfectly but now all of a sudden it refuses to work.</p>
<p>JQuery is properly included and the page doesn't give a Javascript error (or any other error for that matter).</p>
<p... | javascript jquery | [3, 5] |
4,515,196 | 4,515,197 | Android compatibility, how to use view attributes that only work on newer versions? | <p>I'm sure this is an "easy" question, but I'm totally new to android and java.
Basically there are certain attributes that have been changed on later versions eg:</p>
<pre><code> android:configChanges="keyboardHidden|orientation"
</code></pre>
<p>(older)</p>
<pre><code> android:configChanges="keyboa... | java android | [1, 4] |
1,808,925 | 1,808,926 | clearly length is important - javascript length issue | <p>I am trying to show a div if the length of a string from a db call is not 0</p>
<p>So, to test, I'm trying:</p>
<pre><code>html += '<div class="item_image"> price '+image.item_price;
</code></pre>
<p>Which will print within div item_image something like:</p>
<pre><code>price $10
</code></pre>
<p>So, to sh... | javascript jquery | [3, 5] |
5,583,524 | 5,583,525 | jQuery: I have a class, I'm iterating it with each. The result is different each turn. How to use the this and access the value? | <p>I'm a beginner and this is my first time encountering problem like this.</p>
<p>I'm iterating a class using the each method provided by jQuery. The page have many class with the same name. So we can expect that it may be 15 iterations.</p>
<p>Each iteration have different value.</p>
<pre><code>$(".book").each(fun... | javascript jquery | [3, 5] |
4,946,213 | 4,946,214 | Select elements whose children don't contain specific elements in jQuery | <p>I want to select all divs on a page whose children <strong>don't</strong> contain an element with a specific class. </p>
<p>I can select elements whose descendants <strong>do</strong> contain the class with: </p>
<pre>
$('div').has('.myClass');
</pre>
<p>So I just want the inverse of this. </p>
| javascript jquery | [3, 5] |
2,387,252 | 2,387,253 | checking whether data is null | <p>Is it best practice to check whether a value is null coming from a database even though there are constraints on the column which disallow nulls.</p>
<p>Thanks in advance</p>
| c# asp.net | [0, 9] |
915,288 | 915,289 | looping through elements in jquery | <p>I've got a page with bunch of drop downs and each drop down has a button next to it. When the page initially loads I want all the buttons to be disabled and if there is a change to a specific drop down then its corresponding button shall be enabled. </p>
<p>I've got the following code down for this but I need to kn... | javascript jquery | [3, 5] |
4,209,454 | 4,209,455 | ASP Query String From DropDown | <p>I have a webpage: <strong>Menu.aspx</strong>, where I have the following controls of relevance: </p>
<ul>
<li>a DropDownList with some values</li>
<li>a hyperlink, which redirects me to a page called Edit.aspx.</li>
</ul>
<p>In my <strong>Edit.aspx</strong> page, I have a cancel button, which redirects the user ba... | c# asp.net | [0, 9] |
2,140,209 | 2,140,210 | I want to go the previous MENU whenever I press the physical back button on my droid, could someone guide me through that ? | <p>This is my Function that dynamically create menu from a parsed XML, now I want that when I press the physical back button it should move to the previous menu.
I have read a lot of articles on this but still haven't find a single for going back in Menus.</p>
<pre><code>public int create_menu(int level_n){
int l... | java android | [1, 4] |
448,407 | 448,408 | Stoping a link from executing it's href path | <p>Hi I am trying to stop a link from executing it's default action , but I seem to have no luck.Here is my code:</p>
<pre><code> $("a.delete").on("click", function (e) {
var container = $("#lightbox-background");
var lightbox = $("#lightbox");
lightbox.init("Are you sure you want to delete this book?")
... | javascript jquery | [3, 5] |
644,340 | 644,341 | Targetting dynamic text inside paragraph | <p>I have some contact information, in which I wish to wrap the telephone number in a <code><a></code>, with the number in the href, for smartphone support.</p>
<p>The initial markup:</p>
<pre><code><p class="myClass">
<a href="mailto:mail@mail.com">mail@mail.com</a><br />
Phone:... | javascript jquery | [3, 5] |
4,079,306 | 4,079,307 | jquery strange flickering on mouseover/out | <p>The HTML:</p>
<pre><code><div id="timerList">
...
<li rel="project" class="open">
<a class="" style="" href=""><ins>&nbsp;</ins>Project C</a>
</li>
...
</div>
</code></pre>
<p>The javascript/jquery:</p>
<pre><code>$('#timerList li[rel="project"]'... | javascript jquery | [3, 5] |
2,177,600 | 2,177,601 | Change HyperLink Url using js or JQuery? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/179713/how-to-change-the-href-for-a-hyperlink-using-jquery">How To change the HREF for a Hyperlink using jQuery</a> </p>
</blockquote>
<p>I have to change to Class="zz1_TopNavigationMenu_1 ms-topnav zz1_TopNavig... | asp.net javascript jquery | [9, 3, 5] |
5,771,178 | 5,771,179 | How to check if image is loaded? | <p>Is it possible somehow to check is image loaded without function .load() or onLoad? Problem is that the webkit-like browsers doesn't work properly with this function.</p>
<p><strong>UPDATE:</strong>
Problem is in <a href="http://en.wikipedia.org/wiki/Motion_JPEG" rel="nofollow">http://en.wikipedia.org/wiki/Motion_J... | javascript jquery | [3, 5] |
4,049,986 | 4,049,987 | How can i solve the error of 'var' in ASP.Net C#? | <pre><code>protected void Button1_Click(object sender, EventArgs e)
{
var query2 = from cm in DC.custMasts where cm.custCity == TextBox1.Text.Trim()_ select cm.custName, custCity, custCompany;
GridView1.DataSource = query2 ;
}
</code></pre>
<p>I'm getting error </p>
<blockquote>
<p>CS0819: Im... | c# asp.net | [0, 9] |
5,778,014 | 5,778,015 | Get substring from a string | <p>I want to get the substring from a string when i ll give the part of the string ...</p>
<p>For example : I have the string "Casual Leave:12-Medical Leave :13-Annual Leave :03".</p>
<p>Partial code is here: </p>
<pre><code> Label label1 = new Label();
label1.Text = (Label)item.FindControl(Label1); //lab... | c# asp.net | [0, 9] |
2,690,715 | 2,690,716 | how to pass database values in jquery? | <p>Am having several boxes(more than 100) that will create dynamically with</p>
<p>Now on each clicking of the box i should slide in one pop up box without page refresh.I downloaded jquery UI(http://jqueryui.com/demos/dialog/#option-position) and used in my project.Now I want to pass the company id on each click... | jquery asp.net | [5, 9] |
3,802,878 | 3,802,879 | Closing lightbox permanently for a user on close button click | <p>I am using a jquery plugin ( lightbox) on my asp.net page(http://www.ericmmartin.com/projects/simplemodal/#demo). This lightbox loads a page using Iframe in this lightbox. this lightbox has an image for closing popup.</p>
<p></p>
<p>I want that when user clicks this image and loads page again then this pop up does... | javascript jquery asp.net | [3, 5, 9] |
3,209,098 | 3,209,099 | Check between a tag for empty with jQuery | <p>I want check between a tag if empty was between it append a text, How is it?</p>
<p>Example: if empty was between tag <code><span></span></code> append phrase <code>There is not</code> between <code>.exist</code>.</p>
<p></p>
| javascript jquery | [3, 5] |
5,369,231 | 5,369,232 | Comparing dates Java Script | <p>I have the following scenario that I am strugling to code.</p>
<p>I have a valuation date that is a string that is chosen by a user from a calander popup. What I need to do is take that date and pass it into a function that works outs a second date depending on the value of that date. If the first date is more th... | javascript asp.net | [3, 9] |
1,364,883 | 1,364,884 | EditItem in ListView - doesn't load edit template | <p>Howdy,
I don't know if it is a known issue - but when I click on the Edit button once - the server reloads the listview - when I click on the edit button once again I receive the EditTemplate and I'm able to edit the list view ... is this is a known behaviour?</p>
<p>Furthermore: The c# behind is working through th... | c# asp.net | [0, 9] |
5,818,725 | 5,818,726 | AJAX function $(div).html not replacing content | <h2>problem</h2>
<p>My div <code>#project_log_ajax</code> should tell me the number of ajax request taken at current time.</p>
<p>For debugging reasons I change that <code>projekt_ajax_counter</code> in the html each time.
I use <code>'start'</code> at the beginning of the request and <code>'end'</code> at the end.</... | javascript jquery | [3, 5] |
5,928,316 | 5,928,317 | Is there a work around to cast an object from a DataKeyArray to a String in ASP.Net? | <p>I'm trying to cast an object from a DataKeyArray to a String and I get the following error: </p>
<p><code>Cannot convert type 'System.Web.UI.WebControls.DataKey' to 'string'</code></p>
<p>Is there someone to work around this problem. Here is my code that is producing the error:</p>
<pre><code>int index = (int)Gri... | c# asp.net | [0, 9] |
4,282,224 | 4,282,225 | change Width Gridview While containing 100 words; | <p>change Width Gridview While containing 100 words;</p>
<pre><code>gridInbox.Rows[i].Cells[4].Wrap = false;
gridInbox.Rows[i].Cells[4].Width = 10;
</code></pre>
<p>does not work;</p>
| c# asp.net | [0, 9] |
1,409,253 | 1,409,254 | How to solve this simple jQuery issue? | <p>I'm new to jQuery and JavaScript in general. I noticed that if you insert an element via jQuery into the DOM and try to perform an action on that element later, it fails. For example:</p>
<p>I am adding a class of "listenToField" to all the input elements on the page:</p>
<pre><code>$(function() {
$('input').addC... | javascript jquery | [3, 5] |
3,501,971 | 3,501,972 | Delete a line in file (Android/java) | <p>In my app (Android) I create a file. To this file I add a line by line after some situation. Then I send a data to the server line by line. When all transmission is OK I erase the file, like this:</p>
<pre><code>fos_kasowanie_pliku = openFileOutput(FILENAME, Context.MODE_PRIVATE);
fos_kasowanie_pliku.write("".getBy... | java android | [1, 4] |
267,349 | 267,350 | jquery dynamic id | <p>i use such code to access item </p>
<pre><code>function f(id){
$("#"+id).val(); // with analogy $("#id item")
}
</code></pre>
<p>is it correct? is any other methods?</p>
| javascript jquery | [3, 5] |
5,511,731 | 5,511,732 | How to get "this" form content by name? | <p>In the following example I get <code>title</code> from <code>this</code> form using html <code>id=title</code>.</p>
<p>How do I do the same, but instead of using ID then using name?</p>
<pre><code>$(document).ready(function(){
$('form').live('submit', function(){
var aform = $('form[name="create_form"]')... | javascript jquery | [3, 5] |
139,621 | 139,622 | Converting a string to a class name | <p>I have a string variable that represents the name of a custom class.</p>
<p>Ex: string s = "Customer";</p>
<p>I will need to create an arraylist of customers. So, the syntax needed is:</p>
<pre><code>ArrayList<Customer> cust = new ..
</code></pre>
<p>How do I convert the string s to be able to create this ... | c# asp.net | [0, 9] |
2,007,514 | 2,007,515 | jquery fadeout not a solution | <p>With code below I'm fading some divs, but when I reload the page, the divs are visible again. I don't want that to happen; what I need is that if user clicks a back button or the home link, it should go back to the original format, otherwise the divs must be kept hidden when the page is reloaded.</p>
<pre><code>$(d... | javascript jquery | [3, 5] |
5,826,638 | 5,826,639 | computer name of user along with ip address | <p>hi i am trying to get the ip address and computer name of my users . i am able to get ip address but computer name i am not getting , i tried these codes. </p>
<pre><code>$ip=$_SERVER['REMOTE_ADDR'];
gethostbyaddr($_SERVER['REMOTE_ADDR']);
$_ENV['COMPUTERNAME'];
</code></pre>
<p>except ip address nothing worke... | php javascript | [2, 3] |
4,684,746 | 4,684,747 | trigger an event when an element reaches a position on the screen | <p>I would like to trigger some functions according to a position of an element. This element's position changes every tenth second. There is two dozens functions to trigger.</p>
<p>I thought about this pseudo-code :</p>
<pre><code>When element position changes{
Loop through all the coordinates to see if a functio... | javascript jquery | [3, 5] |
4,014,384 | 4,014,385 | jquery getting index of selected checkbox | <p>I have some HTML like this:</p>
<pre><code><div id="Myclass">
<div class="Wrapper">
<input type="checkbox" class="SomeCheckboxClass">
<input type="checkbox" class="SomeCheckboxClass">
<input type="checkbox" class="SomeCheckboxClass">
</div>
<div class="Wrapper... | javascript jquery | [3, 5] |
1,530,289 | 1,530,290 | jquery Show and Hide the picture by number of question? | <p>Hey I have 10 ten image in a div(name is background).. and display properties is none..</p>
<p>I want to show by questions number.. I mean Question=1 img1.hide(),img2.show() Question=2 img2.hide(); img3.show ............ question 10 img9.hide() img10.show</p>
<p>my function name is resim() and it callback fro... | javascript jquery | [3, 5] |
5,580,143 | 5,580,144 | jquery - Block specific links before a page fully loads and binds click events | <p>I have a modal dialog plugin written in jquery, that binds to the click event of all of the <a> elements with a specific class.</p>
<p>The modal dialog 'fetches' a page via AJAX, which is declared under the 'href' parameter of the <a> element.</p>
<p>Everything works fine, but - when a user clicks the... | javascript jquery | [3, 5] |
4,984,072 | 4,984,073 | How to execute FB client on different Android devices? | <p>I have a naive problem, but I confused: I have made application which uses Facebook SDK, and it works good on my device and emulator, and it doesn't work on customer's device. He doesn't get any error or exceptions - when he press button for authorize he will see "loading" message, but progress bar will be closed, a... | java android | [1, 4] |
1,699,255 | 1,699,256 | jQuery attr command | <p>I want to add a value to the onchange event, but the JS code has errors</p>
<pre><code>$(args).attr('onChange', 'setTimeout('__doPostBack(\'ctl00$cpBody$txtDate\',\'\')', 0)');
</code></pre>
<p>anyone see error?</p>
| javascript jquery | [3, 5] |
3,699,547 | 3,699,548 | DIV with background image | <p>We have applied the backgroud image(round corner image from web site) for DIV control. and then dynamically added more statement in DIV control. </p>
<p>How we will increase the height and width for the image?</p>
<p>Please give us some suggestions.</p>
| javascript asp.net | [3, 9] |
2,399,254 | 2,399,255 | Why doesn't combining has() and gt() work in some cases? | <p>I wanted to select any ul which contains more than 3 lis. </p>
<p>This code worked with the 1.2.6 jQuery library:</p>
<pre><code>$("ul:has(li:gt(2))")
.each( function() {
$(this).css("border", "solid red 1px");
});
</code></pre>
<p>But not 1.3.2 or 1.4.2. </p>
<p>This code worked with the 1.4.2 jQuery li... | javascript jquery | [3, 5] |
4,707,034 | 4,707,035 | javamail-android or JavaMail 1.4.7 | <p>Simple question, for a mail API to send and receive emails as part of an Android app should I use the <a href="http://www.oracle.com/technetwork/java/javamail/index-138643.html" rel="nofollow">JavaMail 1.4.7</a> api from Oracle or the open source <a href="https://code.google.com/p/javamail-android/" rel="nofollow">j... | java android | [1, 4] |
186,805 | 186,806 | Update Interface | <pre><code>public void parti(View view) {
float sp = 0;
long currentTime = 0, diffTime = 0;
ImageView img = (ImageView) findViewById(R.id.i1);
float a = 0;
EditText et1 = (EditText) findViewById(R.id.editText1);
et1.setText(Float.toString(a));
currentTime = System.currentTimeMillis();
do... | java android | [1, 4] |
5,746,266 | 5,746,267 | How to load Jquery.js if not already loaded ? | <p>I need to check if I need to load JQuery OR it is already loaded by another page !? </p>
<p>How can I check this on client side ?
I want to have something like this:</p>
<pre><code><script >
if jquery-1.6.2.js isExist then
{return}
else // somehow
load (<script src="../js/jq/jquery-1.6.2.js">&... | javascript jquery | [3, 5] |
3,009,901 | 3,009,902 | Message / confirm dialog | <p>I have a need for a confirm message box from a button click, but only on some conditions. I am cheking two values on the aspx.page, and if one is higher than another, I need a confirmation from the user. Are there any ( simple) way of doing this ? I have been reading about javascript and alert messages, but I cant s... | asp.net javascript | [9, 3] |
641,480 | 641,481 | How to check a live mms:// stream....? | <p>I have a live stream like this</p>
<p>"mms://streaming.exsample.com:8080/exsample"</p>
<p>i need to make a function to check the link status before showing the stream link in my site.
If the stream is down need to show an error to inform to the guest.. Is there a simple jquery solution for this? or php? I have goo... | php javascript jquery | [2, 3, 5] |
1,759,375 | 1,759,376 | Unable to display image using javascript | <p>net code as follows</p>
<pre><code><asp:Image runat="server" ID="img1" ImageUrl="~/Images/important.gif" />
<asp:Button ID="btn" runat="server" Text="print" />
</code></pre>
<p>and my javascript is as follows</p>
<pre><code><script type="text/javascript">
function printIt() {
var... | javascript asp.net | [3, 9] |
5,554,188 | 5,554,189 | Convert Instream to String Faster (Android)? | <p>How do I convert an Instream to a string fast right now im using..</p>
<pre><code>private static String convertStreamToString(InputStream is) {
/*
* To convert the InputStream to String we use the BufferedReader.readLine()
* method. We iterate until the BufferedReader return null which means
* th... | java javascript android | [1, 3, 4] |
2,469,625 | 2,469,626 | Android C2DM AUTHENTICATION_FAILED error while registeration | <p>Please help me in this. I am getting authentication_failed error while registering for c2dm service. I have logged in developer account in my emulator.</p>
<pre><code> Intent registrationIntent = new Intent("com.google.android.c2dm.intent.REGISTER");
registrationIntent.setPackage("com.google.android.gsf");
... | java android | [1, 4] |
3,555,636 | 3,555,637 | Why is this code's execution speed so different? | <p>In <strong>Internet Explorer 7</strong>, this code executes consistently in <strong>47</strong> ms:</p>
<pre><code>function updateObjectValues() {
$('.objects').html(12345678); // ~500 DIVs
}
</code></pre>
<p>however, this code executes consistently in <strong>157</strong> ms:</p>
<pre><code>function upda... | javascript jquery | [3, 5] |
39,493 | 39,494 | Show different color strings(text) in textbox asp.net | <p>In my asp.net website i have a textbox which provides the log information. I am using this log to display the error,success and other information. What i want to do is i want to show the result text in textbox in color according to the type of log. For eg; i want to display error as red text, success as green and so... | c# asp.net | [0, 9] |
3,389,894 | 3,389,895 | Display a text field with single quotes | <p>I'm working on an application that requires a text field to fade in with the value being loaded by AJAX. (I'm doing this all with jQuery), here's the code:</p>
<pre><code>$("div#p"+eId+"_content").html("<input class='editPost' type='text' value='"
+ oldCont
... | javascript jquery | [3, 5] |
3,075,397 | 3,075,398 | jQuery generated <a> not clickable? | <p>To save data flow I use these lines to wrap text in a pattern with anchors, the code executed successfully, but why it seems that the generated anchors are not clickable?</p>
<pre><code>$(function(){
$(".block span").each(function(){
$(this).wrapInner("<a></a>")
$(this).find("a").att... | javascript jquery | [3, 5] |
4,714,100 | 4,714,101 | ReferenceError: show_agent_stats not defined | <p>I am trying to show a MySQL table query in a script that gets shown on a button click. When the button is clicked it calls a function that outputs to a DIV tag. The function is in another script page called functions.php and is included at the top of the current page vicidial.php. When the button is clicked i get th... | php javascript | [2, 3] |
450,617 | 450,618 | Android: Pipe channels | <p>How can i use a pipe channel to open and read a file on android? Can anyone give me an example?</p>
| java android | [1, 4] |
4,029,019 | 4,029,020 | jQuery - how to register a callback for an asynchronous function? | <p>I am a jQuery newbie. I have a core js file which will not be visible to my user. I have the following function inside it that makes a server request -</p>
<pre><code>function checkMsgs(t1,t2) {
// poll the url
// return the results
$.get("http://www.mySite.com/web/test.php", {
"t1" : t1,
... | javascript jquery | [3, 5] |
1,206,856 | 1,206,857 | javascript variable existence on page | <p>I'm creating javascript Variable using c#.net inside code behind page and putting that variable on page using Page.ClientScript.RegisterClientScriptBlock(). So that variable is available on page and I can read(get) that variable value on client side using jquery.</p>
<p>I'm doing following:</p>
<pre><code>C# :
ca... | c# javascript | [0, 3] |
88,634 | 88,635 | Email anti spam PHP | <p>I have a contact form with no sort of spam protection on my site and im receiving lots of spam, I'm going to add anti spam protection, I know i can do this with PHP, but if I stopped the form from validation if an anti spam question was wrong using jQuery, would this be sufficient? or do spam bots bypass javascript ... | php javascript jquery | [2, 3, 5] |
449,629 | 449,630 | How to limit the width of a column and make its text wrap | <p>I have a RadGrid in my application and whats happening is that if the text in the column of the grid is to long it will not wrap so the grid container will expand and get out of the frame so I would like to make it so that when the text in the column is too long that it wraps, how can I do this? Here is an example ... | c# asp.net | [0, 9] |
5,893,255 | 5,893,256 | Pass PHP array into Javascript array | <p>Referring to the title. I have an array which I coded like this:-</p>
<pre><code>$query = "SELECT * FROM server";
$result = mysql_query($query);
$dServer = array();
while($row = mysql_fetch_assoc($result))
{
$dServer[] = $row['model'];
}
</code></pre>
<p>Now, how do I pass the $... | php javascript | [2, 3] |
5,222,085 | 5,222,086 | Which database in Java Android? | <p>I am developing an app in Android. I would like to attach a database (created in C++) to my app Android that my Android app could read. In which format should I create this database with my C++ program?</p>
| java android | [1, 4] |
5,697,014 | 5,697,015 | On click event of image button | <p>I have a problem that when I click on the image button instead of redirect me to the corresponding page, it will just redirect back to the same page. </p>
<p>This is the code in asp;</p>
<pre><code> <asp:ImageButton ID="header1" src="Resources/Icons/Header1.jpg" runat="server" />
</code></pre>
<p>And this ... | c# asp.net | [0, 9] |
942,771 | 942,772 | Sorting an object list | <p>I am keeping a list of objects in a <code>List()</code>. I want to sort this list by a property of the object.</p>
<p>For example, say the object is a Messsage and message has: content, date, header, ...</p>
<p>I want to sort the list by the message's date. </p>
<p>Is there any <code>List</code> method or any oth... | c# asp.net | [0, 9] |
33,121 | 33,122 | How can I run code right before the jQuery submit() executes? | <p>Basically, I have a form and a validation function that executes when a form is submitted. However, I want some other codes to run before the validation runs. I tried this: <a href="http://stackoverflow.com/questions/290254/how-to-order-events-bound-with-jquery">How to order events bound with jquery</a>, but it does... | javascript jquery | [3, 5] |
5,297,479 | 5,297,480 | make use of the enter key | <p>I have a list of urls(div) underneath an input field(div). I need the ability to come down in the list and than by hitting enter this will trigger some function designated to the url. This is the fidle: <a href="http://jsfiddle.net/yomoore/sjKgF/24/" rel="nofollow">the script</a></p>
<p>Over the last days I have tr... | javascript jquery | [3, 5] |
574,798 | 574,799 | Radio Button, Text Area and Input check | <p>I have a form with all the input fields as class <code>item</code>. When I click submit, it checks, with the following function if all values are filled in.</p>
<pre><code>$.each($(".items"),function(i,e){
// loop through all the items
if(e.value == "" || !$("input[name='"+e.name+"']:radio:checked").length)... | javascript jquery | [3, 5] |
853,708 | 853,709 | Stopping a media player | <p>I am implementing a media player on android phone.<br>
This player starts based on some conditions, but I am unable to stop it (back button pressing doesn't work). Once the streamer who is sending the data stops, player stops too and crashes. </p>
<p>I want to stop the media player whenever I want by pressing the B... | java android | [1, 4] |
4,513,733 | 4,513,734 | How to use JavaScript variable from popup window in code behind? | <p>I have ASP.NET web application that contains master page. Master page contains content page. Content page contains user control. User control contains Telerik grid with its context menu.</p>
<p>I'd like to click the item in grid's context menu and open new popup modal window. In that window there's drop down list. ... | javascript asp.net | [3, 9] |
4,551,126 | 4,551,127 | Getting nth child value of element using Jquery | <p>I wish to add '1' to the id conCol to make it conCol1. Please can someone tell me how I go about this because my statement below doesn't work. Also, is it possible to get the value of "first-column" i.e Condition #0 to make it Condition #1?</p>
<pre><code>newElem.children('select :nth-child(2)').attr('id', 'conCol'... | javascript jquery | [3, 5] |
2,882,398 | 2,882,399 | how to run this script when scroller is 2500px? | <p>I tried here but I think I did something wrong, can help?
I saw a similar code right here and just adapted.
Thank you.</p>
<pre><code>$(document).ready(function(){
$(document).scrollTop() >= 2500) {
var bar = $('.bar');
var p = $('.percents');
var interval;
va... | javascript jquery | [3, 5] |
1,603,360 | 1,603,361 | hide text between <label>abc</label> - remove ' abc ' | <p>i have a label tag and i want to remove text between <code><label> </label></code></p>
<p><strong>my string (html code) is</strong></p>
<pre><code><label style="cursor: pointer; " for="31">
<img src="/joomla_1.7/images/stories/virtuemart/product/resized/black4_90x90.png" alt="the"/>
<sp... | php javascript jquery | [2, 3, 5] |
102,515 | 102,516 | Change parameter of the URL requested on a button click | <p>I apologize in advance for not being able to supply more information, if this is not possible with the limited info, I will delete the question.</p>
<p>So, I have a script that generates kind of a search engine that depends on the script (also dinamically generated) which is quite complicated and I don't have any i... | javascript jquery | [3, 5] |
1,991,544 | 1,991,545 | How can I refer other objects in php? | <p>I'm very new to Php and I'm from Java. I have a class in Java like this:</p>
<pre><code>class A {
}
class B{
}
</code></pre>
<p>in same package. Inside class <code>A</code> I have defined a datatype of type <code>B</code> like :</p>
<pre><code> B bType;
</code></pre>
<p>I want the same behavior in php. Is tha... | java php | [1, 2] |
5,918,199 | 5,918,200 | Is it possible for my Activity to send generated touch/motion events to its child views? | <p>I have an <code>Activity</code> that generates some <code>MotionEvent</code>s (via <code>MotionEvent.obtain()</code>). I'd like to pass these generated touch/motion events to the <code>Activity</code>'s children views. From the docs, <code>Activity.onTouchEvent()</code> is only called when one of the child views doe... | java android | [1, 4] |
3,861,985 | 3,861,986 | jquery toggle between forms | <p>I have ran out of ideas for this assignment for a class. I had to create two PHP forms using PHP_SELF and I am suppose to use javascript or jquery to toggle between the forms. I tried using</p>
<pre><code><a href="#" onclick="document.getElementById('form1').style.display = 'block'; document.getElementById('form... | php javascript jquery | [2, 3, 5] |
1,151,185 | 1,151,186 | Calling a function when neither of two elements is being hovered? | <p>My idea is to have two variables, insideLink that marks if I'm currently hovering over my menu and insideBox that checks if I'm hovering over Div container.</p>
<p>And if I leave I check if I'm also out of the other element, if I'm out of both I call the closeboth function that closes them both.</p>
<p>I tried doi... | javascript jquery | [3, 5] |
3,960,709 | 3,960,710 | How can I use html styles in strings with format arguments? | <p>In my app, I'd like to define a format string in strings.xml that looks like this (note the <code><b>...</b></code> tags):</p>
<pre><code><string name="location"><b>Location:</b> %1$s</string>
</code></pre>
<p>And then use <a href="http://developer.android.com/reference/java/lan... | java android | [1, 4] |
5,317,374 | 5,317,375 | Multiple divs problem when working with Jquery | <p>I am facing a wired problem when using Jquery Dialog. </p>
<pre><code> <div id="divSupplierGrid" style="display: none">
<uc2:SupplierGrid ID="Tab1UCSupplierGrid" runat="server" />
</div>
<div id="divCreateInqGeneral" style="display: none">
<uc1:CreateInqGeneral ID="Tab1UCCr... | javascript jquery asp.net | [3, 5, 9] |
5,144,985 | 5,144,986 | enter qty and update total order | <p>Just making a very very simple order form.</p>
<p>Want a input box ( only accept numbers )</p>
<p>User enters a quantity , lets say 50</p>
<p>We have a multiplier value which is lets say 10</p>
<p>Want a disabled form field, showing the result of 50 x 10 </p>
<p>So form field would show 500</p>
<p>so now we ha... | javascript jquery | [3, 5] |
5,270,785 | 5,270,786 | How to access Parent from child in JS | <p>I want to access an object's own function from a jQuery method which fails.</p>
<pre><code>function obj(){
this.send = function(){
$.get("send.php",null,function(data){
this.success();
}).error(function(){ this.fail(); });
}
this.fail = function(){
alert("fail");
... | javascript jquery | [3, 5] |
5,829,086 | 5,829,087 | Convert this PHP code to C# Rijndael Algorithm | <p>I've got this php code and I'd like to get the exact equivalent C#</p>
<pre><code>$ivSize = mcrypt_get_iv_size(MCRYPT_RIJNDAEL_192, MCRYPT_MODE_CBC);
$iv = mcrypt_create_iv($ivSize, MCRYPT_RAND);
$encryptedData = mcrypt_encrypt(MCRYPT_RIJNDAEL_192, $key, $salt . $message . $nonce, MCRYPT_MODE_CBC, $iv);
$base64Data... | c# php | [0, 2] |
370,267 | 370,268 | How to add child node in treeview at runtime in asp.net? | <p>I have treeView control in my web page which has three parent nodes <code>Parent1</code>, <code>Parent2</code>, <code>Parent3</code>. Then how i will add the child at runtime.</p>
<p>Thanks.</p>
| c# asp.net | [0, 9] |
194,961 | 194,962 | Save dialog box through javascript | <p>I am using javascript to open save dialog box</p>
<p>the java script is </p>
<p>function openDialog(path)
{</p>
<pre><code> document.execCommand("SaveAs",true,path);
</code></pre>
<p>}</p>
<p>In my project, i am creating linkButtons dynamically and attaching this function with linkButton's OnClient Click event ... | c# javascript asp.net | [0, 3, 9] |
4,954,292 | 4,954,293 | How to check whether a value is a number in javascript or jquery | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/18082/validate-numbers-in-javascript-isnumeric">Validate numbers in JavaScript - IsNumeric()</a> </p>
</blockquote>
<pre><code>var miscCharge = $("#miscCharge").val();
</code></pre>
<p>I want to check misCharge... | javascript jquery | [3, 5] |
1,198,049 | 1,198,050 | How handle 'null' values in a json search | <p>still new to JavaScript, I am searching for numbers in my JSON, but the JSON has a lot of null values. How can I ignore the null values in my search?</p>
<pre><code>$.each(geojson.features, function (i, v) {
if (v.properties.code.toString().search((/2/i)) != -1) {
Count++;
}
});
</code></pre>
<p>Th... | javascript jquery | [3, 5] |
140,271 | 140,272 | Remove a specifc inline style with Javascript|jQuery | <p>I have the folowing code in my html:</p>
<pre><code><p id='foo' style='text-align:center; font-size:14pt; font-family:verdana; color:red'>hello world</p>
</code></pre>
<p>and that in my external css:</p>
<pre><code>#foo{ font-size:11pt; font-family:arial; color:#000; }
</code></pre>
<p>I want to remo... | javascript jquery | [3, 5] |
588,692 | 588,693 | How to display the selected date from a popup to the selected id | <p>In my project i have a requirement like Date should be displayed with previous and next links and adjacent to next link there is popup jquery calendar to select the particular date. This i have implemented as follows</p>
<pre><code><script>
function ShowSchedule() {
document.getElementById("today"... | javascript jquery | [3, 5] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.