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 |
|---|---|---|---|---|---|
2,536,416 | 2,536,417 | Make my intro page appear only one time by user or computer | <p>i have a question, i have a index.php page that is the intro of my website, when the intro starts and finishes it redirects to my home.php page, but i want to make this intro page appear only one time by user or by computer, if the user already been to the intro page he will be redirectally sent to the home page whi... | php javascript | [2, 3] |
1,875,246 | 1,875,247 | javascript/jquery how to make ticker of images? | <p>I need something like a stock ticker but instead of AAPL, MSFT, ORCL i want to show small images floating by of a fixed size. I want to be able to stop them as they pass by. how can this be done. I would like to use jquery if possible. Need a way to dynamically add/remove the images from the ticker. thanks</p>
| javascript jquery | [3, 5] |
3,960,519 | 3,960,520 | how to call DLL from java? | <p>how to call DLL from java ? I want to integrate a java application to Windows. Let me take Outlook as an example, I have the Outlook dll, then how to call it ? do we have similar tutorial ?</p>
| c# java | [0, 1] |
373,291 | 373,292 | Insert Page title into hidden form value with javascript/jquery? | <p>I've got a form on every page of my site via a template but I'd like to have the page title included into the emails sent via the forms so we know exactly which page the form was submitted from. Is there a simple way to do this with jquery? </p>
<p>Thanks for any tips/ideas. </p>
| javascript jquery | [3, 5] |
2,099,213 | 2,099,214 | how to test a string in both emulator 1.6 and 2.2 in android as same | <p>Hi guys I have a problem in testing a string while running on emulator1.6 and emulator2.2 in android . My problem is as follows.</p>
<pre><code>String phone="";
if(phone!=""&&!phone.equals(" ")){
}
</code></pre>
<p>In the android emulator1.6 it is working fine (i.e.,not entering into the if). But in the... | java android | [1, 4] |
1,153,102 | 1,153,103 | How should i get some value from javascript object and check for null | <p>I am getting the element as</p>
<pre><code> var minPricePerInputField = $("input#A"+indexNr);
</code></pre>
<p>The element can be present also or not also. I am getting some [object Object] thing. I have no idea what is this. I am receiving this [object Object] when the element is not there.</p>
| javascript jquery | [3, 5] |
5,980,377 | 5,980,378 | How to read the contents of an entire disk bit by bit | <p>I've got a flash card that I need to compute a checksum on the entire contents of the drive.</p>
<p>If I could acquire a stream to the entire drive I could just read it in bit by bit.</p>
<p>Does anyone know if there is an API for doing this?</p>
<p>Everything I see so far requires me to open a file.</p>
<p>Is t... | c# c++ | [0, 6] |
1,324,637 | 1,324,638 | sync and async request java android | <p>I'm using geocoder which makes a sync request. I'm also making an async request to another service on another thread. I need both results inorder to procede to the next step in my android app. What is the proper way to make sure both results are returned before moving on?</p>
| java android | [1, 4] |
2,200,539 | 2,200,540 | JS page scroll didn't work | <p>I wrote code something like</p>
<pre><code>$.ajax({
type: 'POST',
url: form.attr('action'),
data: data,
dataType: 'html',
success: function(html){
$(html).hide().appendTo(parent.find("[data-interactions]")).show().stop().animate({
scrollTop: $(".vote_feedback_snippet:last-child").offset().top
... | javascript jquery | [3, 5] |
2,289,888 | 2,289,889 | Activate action onClick in PHP | <p>I have the following chunk of code:</p>
<pre><code>while ($row = mysql_fetch_array($result)) {
echo "<li/>".$row['trendName']."<input type='submit' name='Dispay' value='Display All Items' onclick='action='http://blah.co.uk/DisplayData.php';'/>";
echo"<br />";
}
</code></pre>
<p>So, this ... | php javascript | [2, 3] |
2,171,352 | 2,171,353 | image button event not fired in c# | <p>Am using the below code to validate and process some other action. In the script, i check the balance amount and pay amount.Pay amount not exceed the balance amount means it return the error message. Then the else part doesn't redirect to my code behind button click event. i can't find it. Please help me to solve th... | c# asp.net | [0, 9] |
670,719 | 670,720 | JS height adjustment should work | <p>I'm using some JS code to automatically adjust the height of the buttons when the slideshow is smaller due to screen size. It works when used in the Chrome console, but fails when inserted into the site. </p>
<p>Site: <a href="http://www.incensu.co.uk/" rel="nofollow">http://www.incensu.co.uk/</a></p>
<p>You can s... | javascript jquery | [3, 5] |
5,815,006 | 5,815,007 | Server.UrlEncode & Server.UrlDecode | <p>i dont know, why do we use Server.UrlEncode() & Server.UrlDecode()?!
in QueryString we see anything in URL, so why do we want encode or decode them?</p>
| c# asp.net | [0, 9] |
3,602,403 | 3,602,404 | Upgrade jQuery plugins to latest version | <p><br>
I have quick question about jQuery plugins, hope somebody out there has some advice.
I'm working with a jQuery plugin that has been working as expected, but in the last couple of days we upgraded from jQuery 1.1.4 to 1.4.2.<br>
After a lot of debugging, I was able to realize that in the old plugin, selectors a... | javascript jquery | [3, 5] |
1,007,948 | 1,007,949 | How does the default browser on Android send "SEND" intents? | <p>I'd like to enable a "silent send" from my application-- that is, I'd like to catch the SEND intent in a Service, not an Activity. How does the default Android web browser send that intent? Is it possible to handle it in a Service, or in an Activity that never sets a View?</p>
| java android | [1, 4] |
3,800,704 | 3,800,705 | Uncaught SyntaxError: Unexpected token ILLEGAL search.json:1 | <p>I noticed recently that the jquery twitter plugin I am using stopped working (plugin info: <a href="http://www.moretechtips.net/2009/09/realtime-related-tweets-bar-another.html" rel="nofollow">http://www.moretechtips.net/2009/09/realtime-related-tweets-bar-another.html</a>). I checked the consol in chrome and it giv... | javascript jquery | [3, 5] |
5,745,847 | 5,745,848 | Android SQLite sync updates from server | <p>I just wanted some advice. I have an app with a database that will be updated once a week. In my opinion there is no point having users download the app again each week. Nor is there a reason for the entire database to be downloaded once a week.</p>
<p>My idea is to send a request to a server every time the app is ... | java android | [1, 4] |
5,701,463 | 5,701,464 | HR tag is it possible to create one in javascript | <p>This is just a question</p>
<p>is it possible to create a hr tag in <code>javascript</code> or <code>Jquery</code> without coding any <code>HTML</code>?</p>
| javascript jquery | [3, 5] |
1,672,528 | 1,672,529 | What does following a function with (jQuery, window, document); mean? | <p>I have the following plugin:</p>
<pre><code>;(function($, window, document)
{
...
...
})(jQuery, window, document);
</code></pre>
<p>I can understand what the ; is for and also realize that $ is the jQuery but can someone explain why is the function followed by (jQuery, window, document);</p>
| javascript jquery | [3, 5] |
3,802,882 | 3,802,883 | GridView not showing new inserted row | <p>I'm using a gridview and sqldatasource.
When I'm adding a new row in the gridview I need to refresh the page in order to see the new row.
The View state is enabled.</p>
<p>Is there anything I can do ?</p>
<p>Thanks</p>
| c# asp.net | [0, 9] |
4,033,892 | 4,033,893 | How can I hide some ID elements using Javascript if the browser window is less than a given size? | <p>I have been looking for an answer to this problem for hours and can't find anything that works.</p>
<p>I need to make some elements if a web page not visible if the browser window width is less than a given size. This is because there are some fixed position "buttons" on the left side of the window which expand wh... | javascript jquery | [3, 5] |
2,270,151 | 2,270,152 | Do any of these javascript minifiers remove debug statements? | <p>It would be nice if I could put debug/console log statements in my javascript, then have a js minifier/compacter remove these when it compiles.</p>
<p>Does this exist?</p>
| javascript jquery | [3, 5] |
2,223,062 | 2,223,063 | How do I pass the correct data type to Javascript from PHP | <p>I am using the jQuery post method to create a record in MySQL. When I evaluate the output of the PHP with <code>==</code>, all three conditionals work properly. However, when I use <code>===</code>, the first two conditionals return <code>false</code>. How do I pass the correct data type to Javascript from PHP?</p>
... | php javascript jquery | [2, 3, 5] |
3,277,250 | 3,277,251 | jQuery - Detecting specific length words in a string? | <p>In jQuery, is there a simpler method to detect if a string has words with X amount if characters or less? I'm about to write some Javascript that loops through each word in the string, checking each individual length, but want to know if there is a function, or a simpler method, possibly in jQuery, before I waste ti... | javascript jquery | [3, 5] |
2,587,068 | 2,587,069 | Changing an array of tags' attributes | <p>I have an array of objects (data)</p>
<pre><code>data[0].image = image1.jpg;
data[0].name = "some name";
data[1].image = image2.jpg;
data[1].name = "some name";
data[2].image = image3.jpg;
data[2].name = "some name";
data[3].image = image4.jpg;
data[3].name = "some name";
</code></pre>
<p>I also have a group of... | javascript jquery | [3, 5] |
5,746,831 | 5,746,832 | ASP.NET C# pass object to method | <p>How do I pass an object from one method to another?
From the code below, I would like to pass <code>newEvent</code> from <code>xmlReader()</code> to <code>outputData()</code></p>
<pre><code>public class Event
{
public int ID {get; set;}
}
public void xmlReader()
{
Event newEvent = new Event;
newEvent... | c# asp.net | [0, 9] |
1,245,869 | 1,245,870 | Change Tab Link on Click (and Already Active Anchor) | <p>Trying to piece together js knowledge as I go here. But I have a website that will be relying on a tabbed (just 2) concept to flip between the companies two services.</p>
<p>So when navigating to the page, they user will be directed to Company1 and I would like to have a tab of Company 2 on the right. It will be th... | javascript jquery | [3, 5] |
772,455 | 772,456 | How do I place a control created in the code behind on a page? | <pre><code>protected void Page_Load(object sender, EventArgs e)
{
Label myLabel = new Label();
myLabel.Text = "Testing 1 2 3";
}
</code></pre>
<p>If I create this Label object in the code behind, and it has no < asp:Label > tag on the main page, how can I put this Label somewhere on the page?</p>
<p>I want to dyn... | c# asp.net | [0, 9] |
5,823,275 | 5,823,276 | Adding functions with jquery replace() markup | <p>I have a jquery replace() putting in list items that I want to attach a function to. I don't know exactly how to do this though.</p>
<pre><code>function replaceListItems(){ $('ul.options').replaceWith('<ul class="options"><li class="btn"><img src="btn.png" /></li></ul>');}
</code></pre... | javascript jquery | [3, 5] |
3,222,996 | 3,222,997 | Using SWITCH to call different intents depending on what button was pressed | <p>I cant seem to find any info on this anywhere.</p>
<p>Is it possible first?</p>
<p>Classic page with 5 buttons each open new page.</p>
<p>I guess the question is how do i create a listener for an unknown button?</p>
<p>Thanks</p>
| java android | [1, 4] |
1,629,276 | 1,629,277 | C# String.IsNullOrEmpty Javascript equivilant | <p>I want to try to do string call equivalent to the C# <code>String.IsNullOrEmpty(string)</code> in javascript. I looked online assuming that there was a simple call to make, but I could not find one. </p>
<p>For now I am using a <code>if(string === "" || string === null)</code> statement to cover it, but I would rat... | javascript jquery | [3, 5] |
5,010,791 | 5,010,792 | What is a suitable replacement for android ActionBar? | <p>I've developed an application that utilizes an actionBar, but apparently actionBar is only available for SDK 3.0 or later. I would like my application to be able to run on earlier SDKs, what would be a suitable replacement for an actionBar?</p>
<ul>
<li>Pop up menu</li>
<li>Context Menu etc..</li>
</ul>
<p>Please ... | java android | [1, 4] |
457,407 | 457,408 | find sequence of numbers in array and alert highest number | <p>I have an array that looks like this:</p>
<pre><code>[1,2,3,4,5,6,8,10,12,13,14,15,20,21,22,23,24,25,26,27,28,29,30]
</code></pre>
<p>the highest count on one of the found sequences would be: 10</p>
<p>My goal is to loop through the array and identify the sequences of numbers, then find the length of the highest ... | javascript jquery | [3, 5] |
3,229,215 | 3,229,216 | how do i write a javascript alert box to give a yes or no question and integrate with php calls? | <p>i am trying to figure out how to create a javascript alert box asking the user if they would like to delete a record (that their viewing) and when the user presses yes a query is called through php to delete a database row. and if the user presses no nothing will happend.</p>
<p>wondering how this can be done</p>
... | php javascript | [2, 3] |
2,046,961 | 2,046,962 | jQuery preventDefault function not working on jsfiddle | <p>I cannot get the following simple jQuery to work. I know I am overlooking something, so please help me out. Here is the code at <a href="http://jsfiddle.net/Z5waA/" rel="nofollow">http://jsfiddle.net/Z5waA/</a>. It's a simple click the button, then alert with jQuery.</p>
| javascript jquery | [3, 5] |
3,126,350 | 3,126,351 | How to add a numeric order to the GridView using RowDataBound? | <p>I am a new ASP.NET developer and I am trying to change the value of the first cell in each row in the GridVie by giving it a number starting from 1. It means that I want to add order to the list of things that will be displayed in the GridView.</p>
<p>I am using GridView RowDataBound method but now I don't know to ... | c# asp.net | [0, 9] |
2,216,995 | 2,216,996 | Populate the URL params in title | <p>I need help in populating the parameter in the url in the title of the page. What's the best way to do this?</p>
<p>www.mydns.com/sometext1/sometext2</p>
<p>sometext1 | sometext2 </p>
<p>Thank you</p>
| php javascript | [2, 3] |
1,221,015 | 1,221,016 | Unknown Sources Check over Web Site? | <p>The Android SDK has a way to check for "Unknown Sources using the following API: <a href="http://developer.android.com/reference/android/provider/Settings.Secure.html#INSTALL_NON_MARKET_APPS" rel="nofollow">http://developer.android.com/reference/android/provider/Settings.Secure.html#INSTALL_NON_MARKET_APPS</a>"</p>
... | javascript android | [3, 4] |
387,815 | 387,816 | switching from VB.net, ASP.net to Java is it a good idea? | <p>I am programmer analyst working mainly in Asp.net for more than 3 yrs. I always wondered why employers are ready to pay more dollars for the same skill a person have in dotnet. I also see more BPM technologies are based on Java. Like Pega, Tibco etc. I have learned java in my college 4-5 years back. but didnt do muc... | java asp.net | [1, 9] |
1,804,756 | 1,804,757 | Smooth natural motion when page scroll | <p>I am newbie in JS. Right now i am working on an effect in which i want when page scroll first time then the natural motion animation starts but it's creating a problem because when i scroll the element animation became fast.</p>
<p>Check this more you got the idea.</p>
<p><a href="http://jsfiddle.net/byvLy/" rel="... | javascript jquery | [3, 5] |
1,026,495 | 1,026,496 | Dynamically generated buttons, on click not being executed | <p>I need to generate a dynamic list of buttons, I already did, with an event handler attached to it.</p>
<p>However the event handler is not being executed.</p>
<pre><code>private void GetOptions(EcoBonusRequest request)
{
var ecobonuswworkflow = WorkflowFactory.CreateEcobonusWorkflow();
... | c# asp.net | [0, 9] |
1,185,574 | 1,185,575 | javascript calling a function on window object | <p>I have the following code and am wondering how to make the last line work. I addopted a set of api's that current use _view appended as it's namespacing convention and would rather use something like arc.view.$function_name. thx</p>
<pre><code>var arc={};
arc.view={
say_hello: function(){
alert("I want to say... | javascript jquery | [3, 5] |
2,742,436 | 2,742,437 | how can i understand jquery source code | <p>i'm new to object oriented javascript. i want to be a javascript guru. so i leant oo-related concepts in javascript, such as scoping, scope chain, execute context, colsure, anonymous function... but when i try to practice my javascript knowledge to read jquery source code. i still can't understand a lot of it. anyon... | javascript jquery | [3, 5] |
4,594,184 | 4,594,185 | How to use c++ header file in c#.net? | <p>I want to use my existing header file on c#.net. Please help me, what is the best way to use and how to do it </p>
| c# c++ | [0, 6] |
1,036,414 | 1,036,415 | checkspell textbox words onkeyup event | <p>I have a textbox. What I want is when user enters a word in that textbox, it should call <code>onkeyup</code> function and in the function we should check if spelling is correct or not. </p>
<p>If it is correct we don't do anything if its not we should display an alert message and remove all text from the textbox. ... | php javascript | [2, 3] |
5,970,532 | 5,970,533 | Submit username and password javascript (not a form) | <p>I have a popup which asks the user for login information, which means two input text fields for password and username. </p>
<p>Now as I will be verifying the information using ajax I didn't wrap the elements on a because form always needs a php action, correct? or am I missing something?</p>
<p>So I'd like to kno... | javascript jquery | [3, 5] |
4,625,457 | 4,625,458 | How to import and use another package | <p>I have my main project and I have created another on the side. The new one simply listens for a button click and then runs methods to update a users twitter status.</p>
<p>What I am unable to do at the moment is use this in my original project. I could copy the code into every .java file but that would be excessive... | java android | [1, 4] |
3,620,692 | 3,620,693 | Running Javascript inside ASP.NET code instantly. | <p>I hope you can help me with my problem. I am executing a SQL query inside ASP.NET code and I am using bing's javascript API. Problem is that I need to do a javascript function before running a query. This function provides geocoordinates based on the address in a string format. I already know for <strong>RegisterSta... | c# javascript asp.net | [0, 3, 9] |
2,559,128 | 2,559,129 | How to encapsulate jQuery? | <p>Particularly I want to define local jQuery (var jQuery) where<br>
jQuery should be stored (and also local $).</p>
<p>The problem is that jQuery operates directly with window object:</p>
<pre><code>// Expose jQuery to the global object
window.jQuery = window.$ = jQuery;
})(window);
</code></pre>
<p>this is a citat... | javascript jquery | [3, 5] |
1,460,025 | 1,460,026 | Show a message when entering text in the textbox | <p>I have a requirement that is when user entering text in the textbox i want to show a message (not alert box, this is asp: lable) i.e if user enter "x" in the textbox then i want show a message not after completion of text and not like ontextchanged event. If user cleans textbox then i don't want to show message.</p... | javascript asp.net | [3, 9] |
4,115,889 | 4,115,890 | how to read file, split record line by line and save them to database | <p>A.O.A</p>
<p>I want to split the following code and save it into database:</p>
<pre><code>31201011281853000100000000710003
</code></pre>
<p>The format of splitting is</p>
<pre><code>31
(2010-11-28,18 53) yyyy-mm-dd,hr-min
0001
0000000071
0003
</code></pre>
<p>first I have to upload a file containing these... | c# asp.net | [0, 9] |
1,536,050 | 1,536,051 | javascript function is calling more than once | <p>In my javascript code ( which is too long , so i can`t put it here ), functions are calling more than once , like suppose :</p>
<pre><code> $("#button").bind({ click : Call }); // bind the Call with button click event
function Call()
{
alert("This message shows me more than once when i clicked the button");
... | javascript jquery | [3, 5] |
2,100,235 | 2,100,236 | Using php information in jQuery | <p>I am trying to get a variable from the php code and put it in jquery i have tryed this and it does not work can anyone help me?</p>
<pre><code>< script type="text/javascript" src="js/jquery.query-2.1.6.js"></script>
<?
$next_exp = 123;
?>
$(document).ready(function() {
var next_exp = $.query.... | php jquery | [2, 5] |
2,977,555 | 2,977,556 | Replacing commas in resultset with new line in jQuery | <p>I have not had to do something like this in the past and am wondering if it is indeed possible. I am allowing multiple code numbers to be added in an so long as they are delimited by commas. What I am wanting to do is upon the user clicking on the "okay" button that a showing the numbers entered will show them one... | javascript jquery | [3, 5] |
1,346,348 | 1,346,349 | Unable to copy file "C:\Data.dll" to "bin\Data.dll". The process cannot access the file 'bin\Data.dll' because it is being used by another process | <p>I am getting below mention error in VS 2010. After getting this, Just restarting my machine and its working fine. But while hosting my application in windows server 2008 + IIS 7.0 its not working. Could you please suggest.</p>
<blockquote>
<p>Error 107 Unable to copy file "C:\Inetpub\wwwroot\solution\Data.dll" t... | c# asp.net | [0, 9] |
3,488,175 | 3,488,176 | Add variables to a .js file | <p>I'm looking for a way to post variables in an external .js file.</p>
<p>Something like:</p>
<pre><code><script type="text/javascript" src="/js/script-starter.js?var=value"></script>
</code></pre>
<p>And then I'd like to call var (and thus, value). Is this possible in any way?</p>
<p>Thank you!</p>
| javascript jquery | [3, 5] |
2,007,509 | 2,007,510 | main_screen cannot be resolved or is not a field error showing even i setup the resources correctly | <p>In the following code main_screen can not be resolved or not a field and button IDs also showing same error here I validated the res folder still i am getting these errors for IDs only.</p>
<pre><code>public class MainScreenActivity extends Activity {
Button btnViewProducts;
Button btnNewProduct;
@Overrid... | java android | [1, 4] |
5,917,123 | 5,917,124 | having trouble making a menu slide down on click and then reverse this animation using jquery | <p>I am trying to create a sliding menu effect when a link is clicked, basically on click I want to prepend a background that fades in with 0.6 opacity and then slide my menu into place and then on a further click I want to reverse this animation. I have create a click event with a callback function but I think this ca... | javascript jquery | [3, 5] |
5,093,538 | 5,093,539 | Asp.net 2.0 and c# 3.0? | <p>We use asp.net where I work and we are using c# as the language. Will c# 3.0 work with asp.net 2.0? Ive been trying to pick up some books on c#, but not sure which I should be buying, any help would be greatly appreciated!</p>
| c# asp.net | [0, 9] |
1,372,518 | 1,372,519 | Error HTTP 422 GET in Android | <p>I'm trying to perform a GET request to the server that returns me a JSON file. But I am getting an error in the HTTP statusLine / 422. Anyone know why. Below I show how I'm doing</p>
<pre><code>public void testConverteArquivoJsonEmObjetoJava() {
DefaultHttpClient httpClient = new DefaultHttpClient();
HttpG... | java android | [1, 4] |
1,433,930 | 1,433,931 | In jquery: Use attr(“class”) value as a selector? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/4096834/in-jquery-use-attrclass-value-as-a-selector">In jquery: Use attr(“class”) value as a selector? </a> </p>
</blockquote>
<p>I have fields with multiple classes. I want to use one of those class... | javascript jquery | [3, 5] |
4,916,381 | 4,916,382 | can anyone see anything wrong with this js / jQuery? | <p>I have the following script to ask the user to confirm clicking a button depending on a system setting.</p>
<p>The system setting is stored in a hidden field set from code behind.</p>
<p>Markup:</p>
<pre><code><asp:HiddenField ID="hfConfirmOnApproval" runat="server" Value="False" />
</code></pre>
<p>cs:</p... | javascript jquery asp.net | [3, 5, 9] |
5,989,703 | 5,989,704 | jQuery image swap on hover | <p>When you hover over the Dharma arrow image in my sample link, it's meant to replace the bunny picture with the same you're hovering.</p>
<p>I was doing it <a href="http://jsfiddle.net/Kyle_Sevenoaks/3ehnB/" rel="nofollow">here at jsFiddle.net</a></p>
| javascript jquery | [3, 5] |
4,421,759 | 4,421,760 | Most elegant way to return value from within JQuery $.each? | <p>I was wondering if there a more elegant way of returning a value from the function I've pasted below : "getImageURLforPOICategory". </p>
<p>As you can see I've used JQuery's "each" function to iterate through an array of objects, when I find the matching value I want to return a result out of the "each" loop and th... | javascript jquery | [3, 5] |
511,125 | 511,126 | How to get element content by id from HTML object by JavaScript ( JQuery ) | <p>i write the following code to access page "JQueryPage.aspx" and get data from it using jQuery</p>
<pre><code><script type="text/javascript">
$.get
(
"JQueryPage.aspx",
function(data) {
alert("Data Loaded: " + data);
}
);
</script>
</code></pre>
<p>"J... | asp.net javascript jquery | [9, 3, 5] |
1,937,819 | 1,937,820 | How do I write 'if not clicked' or 'if clicked outside element', using Jquery? | <p>I'm kind of stuck on a problem of how to stop my menu from executing the fadeOut() function. When I click the main links on my menu to open the submenu it just fades out. Here is how the code looks at the moment:</p>
<pre><code> $('a.main-menu-item').click(function(){
if($('.rtmenu:visible')){
$('.... | javascript jquery | [3, 5] |
384,567 | 384,568 | ValidationExpression Number positive and negative Decimal | <p>I apologize for my bad writing, English is not my first lenguage.</p>
<p>i need to regex for this</p>
<p>Good</p>
<pre><code>-1000000.00 = 7 digits and 2 decimals with negative
-100
1000000.00
100
</code></pre>
<p>Bad</p>
<pre><code>-10000000 = 8 digits
100.000 = 3 decimals
-100.000 = 3 decimals
</code></pr... | c# asp.net | [0, 9] |
343,240 | 343,241 | How to disable all the controls on the page after the countdown timer stops in asp.net? | <p>I have tried to disable the next button in the following code but its not working....pls help... </p>
<pre><code> protected void timer1_Tick(object sender, EventArgs e)
{
CurrentTime = CurrentTime.AddSeconds(-1);
LblTime.Text = "Time Left: " + CurrentTime.TimeOfDay;
if (CurrentTime.... | c# asp.net | [0, 9] |
3,566,618 | 3,566,619 | How could I access the ring and vibration as an alert from java script or html | <p>How could I access the ring and vibration as an alert from java script or html.</p>
<p>I am trying to activate the ring tone, when AJAX returns the valid data.</p>
<p>I couldn't find anything so far.</p>
<p>Thanks,
Zafer Boz</p>
| javascript iphone | [3, 8] |
3,996,735 | 3,996,736 | Form submit on keyCode == "enter" (13) | <p>I need to submit the content of a form when I press the Enter key, but only if the form has no error message. I build up the following function:</p>
<pre><code>$(targetFormID).submit(function (e) {
var mess = error_m(targetDiv);
if (e.keyCode == 13 && mess.length > 0) {
e.preventDefault()... | javascript jquery | [3, 5] |
4,514,702 | 4,514,703 | $('input[type=checkbox]').change(function() | <p>Currently Im have the following script which checks to see if a checkbox value has changed but its not working when I try to use it!</p>
<pre><code><script>
$('input[type=checkbox]').change(function () {
if ($(this).is(':checked')) {
if ($(this).prev().attr('checked') && $(this... | javascript jquery | [3, 5] |
587,695 | 587,696 | Progress dialog during tab switch | <p>When the user switches from tab A to tab B it takes a long time (6 seconds), so I put in a progress dialog to let the user know that the app is working on it. The timeline is as follows:</p>
<ol>
<li>Activity B onCreate - creates ProgressDialog and puts long tasks in a background Thread.</li>
<li>Activity B onStar... | java android | [1, 4] |
1,487,753 | 1,487,754 | Android hide soft keyboard IME | <p>Below is a bit of code that I managed to get to work to hide the soft keyboard on android. It works by the user clicking anywhere on the screen (outside of a <code>EditText</code> input/s) to hide the IME soft keyboard. It registers a <code>OnTouchListener</code> to the <code>ScrollView (id="@+id/sv_background)</cod... | java android | [1, 4] |
5,143,168 | 5,143,169 | Are there any widget sets (and application frameworks) that build on jquery? | <p>It seems clear that jquery has become the standard “low level” JavaScript library. </p>
<p>We also have extjs and dojo that provide application frame works and widgets etc. </p>
<p>I was expecting an application framework and widget set that builds on the jquery foundation to have become <em>fashionable</em> by n... | javascript jquery | [3, 5] |
3,641,196 | 3,641,197 | Assign Div data attribute as Data Source to JQuery AutoComplete | <p>I am using a <strong>JS</strong> method to assign the names of computer languages to data attribute of <code>div</code>
e.g</p>
<pre><code><div id="Languages" data-Languages=''></div>
</code></pre>
<p>and <code>js</code> code</p>
<pre><code>var langs='["Perl", "PHP", "Python", "Ruby", "Scala", "C#"]';... | c# jquery asp.net | [0, 5, 9] |
1,895,372 | 1,895,373 | How to make a link in aspx reference from app setting value? | <p>need a classic html link reference from app setting value in web.config</p>
<pre><code><a href="<%$appSettings:link%>"+"search.asp" id="more01" title="More" target="_top" >
</code></pre>
<p>it can not compile</p>
<blockquote>
<p>Parser Error Message: Literal expressions like
'<%$appSettings:ifr... | c# asp.net | [0, 9] |
243,898 | 243,899 | Usage of setInterval method and asking for jQuery alternate | <p><code>window.setInterval("moveUp(fire,2)","100"); </code></p>
<p>in the code above fire is a object represting a div. I want to pass this object to moveUp method and call this method continuosly.</p>
<p>My problem is window.setInterval does not accepts fire object like this and gives error as fire is not defined. ... | javascript jquery | [3, 5] |
1,269,615 | 1,269,616 | Merge repeated variables in javascript | <pre><code>var some1 = false;
var some2 = false;
var some3 = false;
var some4 = null;
var some5 = null;
var some6 = null;
</code></pre>
<p>Is it possible to merge variables by comma?</p>
<p>What is a true way to do this in javascript? </p>
| javascript jquery | [3, 5] |
568,229 | 568,230 | Why right click is not triggered with .click()? | <p><a href="http://jsfiddle.net/fPhDg/2/" rel="nofollow">This</a> is a simple code :</p>
<h1>HTML</h1>
<pre><code><a id="link" href="#">Ciao</a>
</code></pre>
<h1>jQuery</h1>
<pre><code>$('#link').click(function () {
alert("ciao");
});
</code></pre>
<p>in fact, left/middle button is triggered (the ... | javascript jquery | [3, 5] |
669,442 | 669,443 | how can I intercept a click for all img's ? I have a bunch of images, each needs to reply to a click. | <p>I would like to present images to my users, where they can select them. I need them to select a limited number, say 5, so:
The images are shown in a matrix, and the user can click them.
I thought:</p>
<pre><code>function boom()
{
this.css('background-color','#fff');
this.data('clicked','yes');
// I should also m... | javascript jquery | [3, 5] |
891,513 | 891,514 | slide feature in image and pdf document | <p>I am planning to implement the slide feature in my current project where I want to have the ability to side the image back and forth with bottom rigth and bottom left slider. I also have the PDF and wanted to implement same silde logic.
Please let me know if any best javasctipt plugin available to use which suppor... | javascript jquery | [3, 5] |
5,190,354 | 5,190,355 | JQuery Add Value of 2 input boxes to a third | <p>I have 3 input boxes in my page.</p>
<p>What I need to do is Onchange add the values of Input box A and Input Box B with a comma separating the two values.</p>
<p>For example:</p>
<pre><code>Input A = 'MyValueA'
Input B = 'MyValueB'
Result = 'MyValueA , MyValueB'
</code></pre>
| javascript jquery | [3, 5] |
1,583,114 | 1,583,115 | Get some particular CSS elements | <p>Let me explain.
I have a css page that is stored in a table, it presents itself in this form:</p>
<pre><code>. styleFloatCenter, form.styleFloatCenter,. focus {
margin: auto;
width: 70%;
}
</code></pre>
<p>All css is built like that, it is a norm.
I need to recover for all my css "rules" the 2nd element like... | php javascript jquery | [2, 3, 5] |
211,488 | 211,489 | Problem when setting a value to a dropdown in jQuery | <p>I have this strange problem in JQuery. I try to set a value to a dropdown dinamically, so I have this code:</p>
<pre><code>$('#activity').val(idValue);
//or this way:
$('#activity').val("'"+idValue+"'");
</code></pre>
<p>but it does not work. However, if I'm setting the value "statically" then it works:</p>
<pre>... | javascript jquery | [3, 5] |
4,763,047 | 4,763,048 | Is it necessary to double define data type? | <p>In the code....</p>
<pre><code>NotificationManager mNotificationManager = (NotificationManager) getSystemService(ns);
</code></pre>
<p>is it actually necessary to define the data type twice?</p>
| java android | [1, 4] |
1,471,230 | 1,471,231 | Locate HTML Element when it does not have the runat="server" attribute | <p>I have an ASP.NET C# website and I am attempting to retrieve the inner html from a HTML in my page when a button is clicked.</p>
<p><strong>My Problem:</strong> I use the function FindControl() but it returns null when it should find the element. Why is this happening, what am I doing wrong?</p>
<p>My HTML page:</... | c# asp.net | [0, 9] |
85,095 | 85,096 | asp.Net <control> does not exist in current context | <p>I am facing a small big problem. I have taken a dropdownList control and ID is
<code>"drpDownCountries</code>" in ASP.Net project. The problem is that "The dropdownlist control
is placed on page, in the code behind file of c#, while typing the control name <code>"drpDownCountries"</code>, this control ID is listed ... | c# asp.net | [0, 9] |
2,233,490 | 2,233,491 | CSS dimming overlay | <p>I have a fullscreen (100% width and height) div that has a 60% opacity for the android browser (on a z index). On top of it, i have a form. However, everytime i try to open up the keyboard to enter any text, it seems like the keyboard is trying to push the div upwards, and it eventually just fails with the keyboard ... | javascript android | [3, 4] |
2,342,825 | 2,342,826 | How to merge mutiple tables into one, with same schema and column names | <p>I have 3 collection datatable that shows in this below</p>
<pre><code>Month: January
ID NAME Absent
001 John 3
002 Travis 0
Month: February
ID NAME Absent
001 John 18
002 Travis 14
Month: March
ID NAME Absent
001 John 10
002 Travis 5
</... | c# asp.net | [0, 9] |
497,338 | 497,339 | Found this in the jquery source, how does it work? | <p>All this is one expression. What exactly gets put inside div in the end? What's it called when you have a bunch of comma delimited expressions?</p>
<pre><code>var div = document.createElement( "div" ),
documentElement = document.documentElement,
all,
a,
select,
opt,
input,
tds,
event... | javascript jquery | [3, 5] |
5,716,097 | 5,716,098 | DOM ready twice | <p>I use jQuery on my website and I have a bug on one page. </p>
<p>I submit a form when the DOM is ready like this:</p>
<pre><code>jQuery.(document).ready(function() {
alert("test"); jQuery("#form").submit();
});
</code></pre>
<p>My form is like this:</p>
<pre><code><form id="form" onsubmit="return false;... | javascript jquery | [3, 5] |
1,161,920 | 1,161,921 | jQuery submit() not firing when triggered from live() | <p>I'm trying to get the form <code>#url_form</code> to be submitted when a URL is pasted into <code>#video_url</code>. The <code>.loading</code> class is added correctly, but the form still isn't being submitted.
Here's the code:</p>
<pre><code> $(document).ready(function(){
$("#url_form").live("paste", "#video_url... | javascript jquery | [3, 5] |
1,230,230 | 1,230,231 | Executing javascript code stored in an element attribute using jQuery | <p>say there is an element #button with the attribute onmousedown containing some random javascript how could I trigger the js in that element attribute using jQuery? </p>
<pre><code>j("#otherbutton").click(function(){
var script = j("#button").attr("onmousedown"); //what now?
});
</code></pre>
| jquery javascript | [5, 3] |
2,713,478 | 2,713,479 | Why is my two javascript codes not running? | <p>I am using two different scripts on one page and when I call them both, one of them doesn't work. If I delete one then the one left works. Why aren't they both working? Here is what I have in the head of my page:</p>
<pre><code><script type="text/javascript" src="jscript/jquery.js"></script>
<script ... | javascript jquery | [3, 5] |
4,398,627 | 4,398,628 | Jquery general tagName | <p>Is this possible to acces selector with a general tag name.
Like in sql if you want to find a varchar that contains "ert" you write it "%ert%"</p>
<p>can I go like <code>("#%_tagname%").hide();</code>?</p>
| javascript jquery | [3, 5] |
267,788 | 267,789 | On change radio button state show submit button... how? | <p>I want to show a submit button only when the radio button value change. I will have several radio groups and the button should appear if any radio button change! Also, if radio button group value gets to default value submit button will hide again.</p>
<pre><code>$("form :radio").live('change',function(){
});
</co... | javascript jquery | [3, 5] |
4,585,203 | 4,585,204 | calling a code behind member from javascript | <p>I have an ASPX.CS code:</p>
<pre><code>Protected int myprop
</code></pre>
<p>I would like to call it on a JS assignment :</p>
<pre><code><script type='text/javascript'>
...
data.add(['SomeJSProperty', "<%..myprop from code behind%>"]);
</code></pre>
<p>I remember doing it with <% %> inline code a... | c# javascript asp.net | [0, 3, 9] |
2,965,408 | 2,965,409 | load form elements values dinamically jquery | <p>I can get dinamically input /textarea /select values in form with jquery?</p>
<p>For example i have this:</p>
<pre><code><form id="contact" method="post" action"contact.php" class="ajaxForm">
<label>Name:</label>
<input type="text" name="name" />
<label>Email:</label>... | javascript jquery | [3, 5] |
674,376 | 674,377 | Local jQuery.js file not working | <p>I had downloaded jQuery.js file from jQuery.com .I have saved this file in 3 places, including JRE/Lib and desktop (where my HTML file which calls it is), to be sure that the jQuery.js file is found. I reference this js file as :</p>
<pre><code><head>
<script type="text/javascript" src="jquery.js"&... | javascript jquery | [3, 5] |
4,403,324 | 4,403,325 | jQuery: Backstretch plugin - show image loading? | <p>I'm using the <a href="http://srobbin.com/blog/jquery-plugins/jquery-backstretch/" rel="nofollow">Backstretch Plugin</a> to load some full screen images. Everything works fine, but I'd like it to show the image loading (as it would by default) rather than wait with a blank screen until it completely loads. Is this p... | javascript jquery | [3, 5] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.