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 |
|---|---|---|---|---|---|
292,525 | 292,526 | JSON Delete Table Row | <p>I'm trying to delete a row of data using JSON, however when I prompt a confirm dialog my javascript function doesn't work as follows:</p>
<pre><code><script type="text/javascript">
$().ready(function() {
$("a.delete").click(function() {
$.ajax({
type: "POST", contentType: "applicat... | javascript jquery | [3, 5] |
3,461,944 | 3,461,945 | Need swflash player support to all files | <p>I have video uploading functionality but needs to play that video on a website.
Video files are all type i.e. <code>.flv,.avi,.mp4,.wmv</code> <br />
I have used following javascript code but it does not support to <code>avi</code> & <code>wmv</code> files. This should play all type of video files.</p>
<p><code... | javascript jquery | [3, 5] |
2,615,004 | 2,615,005 | Wildcard in jQuery selector | <p>I'd like to retrieve all elements which start with a specific ID. After a short search, the solution appeared to be:</p>
<pre><code>$('*[id^="foo_"]')
</code></pre>
<p>to select all elements with an ID starting with <code>foo_</code>. Although this selector syntax is very logical, I was just wondering whether it i... | javascript jquery | [3, 5] |
4,771,000 | 4,771,001 | setting the height of the parent according to the highest child element, jquery | <p>I have a layout, which basically contains a</p>
<pre><code><div class="line" id="#">
<div class="summary">
Some Text
</div>
<div class="summary">
Some
</div>
<div class="summary">
Some long text
</div>
</div>
</code></pre>
<p>I want, using jQuery, to expand the heigh... | javascript jquery | [3, 5] |
4,020,057 | 4,020,058 | jQuery $.inArray doesn't seem to work with associative arrays | <p>I have made this fiddle: <a href="http://jsfiddle.net/benhowdle89/CANX8/1/" rel="nofollow">http://jsfiddle.net/benhowdle89/CANX8/1/</a></p>
<p>Which creates an assoc array and then runs a test for a value that is in the array. The wrong results are reached!</p>
<p>Outline of code:</p>
<pre><code>$(document).ready... | javascript jquery | [3, 5] |
1,880,298 | 1,880,299 | How to update table cell value in Jquery | <p>I ma new to jquery.
I would like to update the table cell from Jquery.<br>
The Php is as below.
For example I would like to update "firsttotal" with a different value. Please help.</p>
<pre><code><tr>
<td class="Left">Total</td>
<td></td>... | php jquery | [2, 5] |
4,842,179 | 4,842,180 | $("123").ready (fn(){}) triggering no matter what | <p>I have a problem where the $().ready is triggering no matter what I put into the parameter which means that it actually triggers before the page is ready. I am using ASP.NET mixed in with EXT.NET and would like to implement jQuery to spice things up a little. As the description says, it triggers no matter what so if... | javascript jquery asp.net | [3, 5, 9] |
4,259,400 | 4,259,401 | About select option value | <p>Hmm...this question may sounds silly , hope you all don't mind...</p>
<p>If I have a drop list:</p>
<pre><code> <select name="myoption" onchange="document.textbox.value=this.value">
<option value="1">A</option>
<option value="2">B</option>
<option value="3">C</option>
... | php javascript | [2, 3] |
3,429,427 | 3,429,428 | Total width of parent according to number of children | <p>I want to add dynamic width in UL according to the its child. Any idea how to do this using jQuery or Javascript?</p>
<pre><code><ul style="width:?">
<li style="width:50px;float:left;">&nbps;</li>
<li style="width:50px;float:left;">&nbps;</li>
<li style="width:50px;float:... | javascript jquery | [3, 5] |
5,771,505 | 5,771,506 | RTSP streams play only sound, while local does video and sound | <p>In my application, RTSP streams play only sound without video, but if i specify the video path as a local file, it plays the video and audio.</p>
<p>How would i get the RTSP streams to show video?</p>
<pre><code>public void onClick(View arg0) {
Player.setVideoPath("rtsp://rtspvideohere.sdp");
Player.start(... | java android | [1, 4] |
1,469,981 | 1,469,982 | .slideDown() Doesn't Seem To Work | <p>JQuery's <a href="http://api.jquery.com/slideUp/" rel="nofollow"><b>.slideUp()</b></a> doesn't work after <a href="http://api.jquery.com/append/" rel="nofollow"><b>.append()</b></a> is used to append value of textarea to the div. <br/><br/><b>HTML:</b></p>
<pre><code><html>
<body>
<div id... | javascript jquery | [3, 5] |
1,636,824 | 1,636,825 | How to upload video to PHP SERver from Android | <p>Hi Guys i m using following code but getting error0 as response . Please help in following code as i m near to success. </p>
<pre><code> public void video()
{
File file = new File(exsistingFileName);
try {
HttpClient client = new DefaultHttpClient();
String postURL = "http://10.0.0.27... | php android | [2, 4] |
1,487,402 | 1,487,403 | Regular Expression in android for password without spaces | <p>I have a EditText field in android. The password should contain minimum 4 characters and maximum 20 characters without spaces at the start or in the middle. Example blankspaceRaghu and RaghublankspaceRaghu should not be alllowed.</p>
<pre><code>Pass= password.getText().toString();
Pattern p= Pattern.compile("[... | java android | [1, 4] |
5,102,925 | 5,102,926 | Use of event.stopPropagation() | <p>In the case of a game where user have to click/use keys mutli and many times,</p>
<blockquote>
<p>Is there any advantage to use event.stopPropagation() in all event
handler which i know bubbling is useless?</p>
</blockquote>
<p>Suppose i have a div with a click event binded, </p>
<pre><code><div id="mydiv"... | javascript jquery | [3, 5] |
1,783,463 | 1,783,464 | Why does onLongPress() not return a boolean like all other SimpleOnGestureListener? | <p>As the title states. The fact that I can't consume the event is causing a <code>click</code> event to occur immediately afterwards. Now I am manually keeping track of whether or not a longpress has occurred when handling a potential click.</p>
<p>Am I missing something here? I mean, I can't even get around this try... | java android | [1, 4] |
6,028,714 | 6,028,715 | Displaying 3 or more php files data on one webpage? | <p>I have 3 php files; pie.php, bar.php and line.php. These when run individually give output as a webpage. If all are run, 3 separate webpages open up displaying a pie chart, bar chart and line graph.</p>
<p>What i want to do is to divide a single webpage into three part and show each individual php file's result (i.... | php javascript | [2, 3] |
3,912,001 | 3,912,002 | How to implement a slide-out/drawer effect in JQuery? | <p>I'm looking for a JQuery plug-in for a drawer-like effect. <a href="http://wpaoli.building58.com/2009/09/jquery-tab-slide-out-plugin/" rel="nofollow">I found that plug-in</a> which is quite similar to what I want but it slides from one side of the screen (top, bottom, left or right). In my case, I have an image as w... | javascript jquery | [3, 5] |
3,033,683 | 3,033,684 | How can Javascript securely access user info? | <p>When a user clicks on my green button, I need Javascript to detect this and pass the $UserID and $ActivityID to the server to be stored in the database.</p>
<p>But what's the best way for JS to securely get this info and send it to the server?
I've been hiding variables in the HTML:</p>
<p>HTML:</p>
<pre><code> &... | php javascript jquery | [2, 3, 5] |
142,732 | 142,733 | JQuery: .text() get the html within a node, how do I set the text within a node? | <p>Using JQuery, I can do the following to get the text within my <code>LI</code></p>
<pre><code>$("#listingTabs li").eq(2).text();
</code></pre>
<p>How do I <strong>set</strong> the text? Because the following doesn't work</p>
<pre><code>$("#listingTabs li").eq(2).text() = 'insert new text';
</code></pre>
| javascript jquery | [3, 5] |
1,387,589 | 1,387,590 | best way to build dyanmic pop up menus | <p>I have a scheduling page that display a week (sunday to saturday) schedule.</p>
<p>They way I want to add employees to this schedule is with a series of popup menus that change based on the values selected.</p>
<p>For example the first menu will be Jobs with <code><option></code> values propagated from the j... | php javascript | [2, 3] |
1,973,524 | 1,973,525 | Attach PDF file to email from app | <p>Im working on android and trying to send an email with a file attached but getting the following error. </p>
<blockquote>
<p>android.content.ActivityNotFoundException: No Activity found to handle
Intent { act=android.intent.action.SENDTO
dat=file://assets/Cards/myfile.pdf typ=Applications/pdf flg=0x10000000
... | java android | [1, 4] |
4,633,379 | 4,633,380 | Adding a tool bar to a web page | <p>I want to add a tool bar (just like the one above the text area where we type our questions in this forum , with bold,italic etc) to a web page.Is there an easier way of doing this?I am using ASP.Net c# and VS2008.
Thankx in advance.</p>
| c# asp.net | [0, 9] |
4,306,484 | 4,306,485 | A string replacement question with C# | <p>How do I remove string in <strong>bold</strong> within following url where <strong>q=</strong> is fixed parameter?</p>
<p><a href="http://abc.com/qwe.aspx" rel="nofollow">http://abc.com/qwe.aspx</a>?<strong>q=DIEYeGJgNwvPSJ32ic1sY5x1ZYjOZTQZD9mjWl2EQJ8=</strong>&u=/foo/boo/kb</p>
<p>Thanks.</p>
| c# asp.net | [0, 9] |
1,772,764 | 1,772,765 | Python URL decoding? | <p>In javascript I do the following:</p>
<pre><code>encodeURIComponent(comments)
</code></pre>
<p>while in Python i do the following:</p>
<pre><code>urllib2.unquote(comments)
</code></pre>
<p>For some reason, when I do the following:</p>
<pre><code>encodedURIComponents('ø')
</code></pre>
<p>I get <code>%C3%B8</co... | javascript python | [3, 7] |
4,577,838 | 4,577,839 | jQuery not working but Javascript will | <p>I feel really silly asking this, but it is completely blowing my mind why my link to the Google jQuery api isn't working. I know my code isn't broken because it works here: <a href="http://jsfiddle.net/jefffabiny/8p46d/" rel="nofollow">http://jsfiddle.net/jefffabiny/8p46d/</a></p>
<p>Here are my script tags in my i... | javascript jquery | [3, 5] |
4,877,905 | 4,877,906 | each returns "undefined" | <p>Hy guys,</p>
<p>I have a table like</p>
<pre><code> <table id="table4">
<tr>
<td>Id:</td>
<td>Nome:</td>
</tr>
<tr>
<td>1515</td>
<td>Thiago</td>
</tr>
<tr>
<td>2... | javascript jquery | [3, 5] |
4,971,066 | 4,971,067 | User control that returns formated text | <p>I am looking for a way to return some formatted text via a user control in ASP.NET C#. This is basically what I am looking for:</p>
<p>Call a user control such as</p>
<pre><code><mycontrol:formatedtitle id="blah" runat="server">Text to format</mycontrol:formatedtitle>
</code></pre>
<p>And then have i... | c# asp.net | [0, 9] |
111,451 | 111,452 | What is the correct syntax for writing custom attributes in a jQuery method? | <p>I have a ternary ahead of variable instantiations. The problem is, that this is an incorrect way to assign a variable for an attribute.</p>
<pre><code>$partial = $data.cell_info_box === undefined ? job_box : cell_info_box
$rel = $($data.$partial).attr('rel');
$klass = $($data.$partial).attr("rel").match(/job/... | javascript jquery | [3, 5] |
1,355,863 | 1,355,864 | jquery or javascript active element on foreground, lock background? | <p>I have a layer that is presented by a logic var. </p>
<p>that layer is just a hidden div - how do I make it so the layer is the only element that can be interacted with on the page when it is visible?</p>
<p>thanks!</p>
<p>Update:</p>
<p>used a full size div in the background with a transparent gif - works in fi... | javascript jquery | [3, 5] |
5,110,805 | 5,110,806 | Upload files to a remote server | <p>I need to upload files from my asp.net (C#) page residing in the web server to a remote server. </p>
<p>I managed to upload files to remote server from localhost using this code:</p>
<pre><code> string serverPath = "\\\\xx.xxx.xx.xx\\Folder\\" + FileUpload1.FileName;
FileUpload1.PostedFile.SaveAs(server... | c# asp.net | [0, 9] |
4,646,486 | 4,646,487 | Int values get automatically converted into float values on Binding the text values in gridview | <p>I am getting int values from the stored procedure. But when i bind this datasource with the gridview i am seeing the values being converted into float.
i am using <strong>Text='<% # Bind("Quantity") %'</strong>
<br/> I wanna that to be displayed as int, with out zero's
eg: let the value be 233, when i bind that ... | c# asp.net | [0, 9] |
4,354,925 | 4,354,926 | How does one close an overlay by clicking outside of the overlay? | <p>I have a jquery drop down that activates and deactivates when you click the header for the drop down</p>
<pre><code>$j('#category_header').click(function() {
$j('#category_dropdown').slideToggle("fast");
return false;
});
</code></pre>
<p>but I want it to also close when I click anywhere on the page that i... | javascript jquery | [3, 5] |
3,203,620 | 3,203,621 | How to attach XML file in message body of HTTP post request? | <p>How to attach XML file in message body of HTTP post request? </p>
<p>can any one give example for that kind</p>
| java android | [1, 4] |
159,184 | 159,185 | How do I create a dynamic set of slider bars | <p>I'm well-versed in HMTL/CSS but lean heavily on ready-made jQuery solutions to accomplish some more advanced interactions. I'm looking to create a set of sliders similar to what is done on the <a href="http://www.humblebundle.com/" rel="nofollow">Humble Indie Budle</a> payment distribution section. I need several sl... | javascript jquery | [3, 5] |
3,987,844 | 3,987,845 | multiple entries from csv files in java script | <pre><code> var marker = new google.maps.Marker({
position: myLatlng,
map: map,
title:"Hello World!"
});
<?php
$fd = fopen ("landmarks.csv", "r");
echo "var latlngarr=new Array();";
$i=0;
echo "var markerarr=new Array();";
while (!feof ($fd)) {
$buffer = fgetcsv($f... | php javascript | [2, 3] |
5,965,303 | 5,965,304 | Decimal Hour into Time? | <p>I have an hour field in a database like 1.4, 1.5, 1.7 that I need to convert back to HH:MM. What is the easiest way to do this?</p>
| c# asp.net | [0, 9] |
3,363,853 | 3,363,854 | Creating dynamic objects with Javascript | <p>I'm trying to create a new Javascript object from attributes pulled from the DOM using jQuery.
The info I'm trying to pull is the data-* from this:</p>
<pre><code> <button type='button' class='pickup' data-name="apple" data-weight='1' data-color='red'>food</button>
</code></pre>
<p>So I want to get ... | javascript jquery | [3, 5] |
1,095,785 | 1,095,786 | jquery: $(window).scrollTop() but no $(window).scrollBottom() | <p>I want to place an element to the bottom of the page whenever the user scrolls the page. It's like "fixed position" but I can't use "position: fixed" css as many of my clients' browser can't support that.</p>
<p>I noticed jquery can get current viewport's top position, but how can I get the bottom of the scroll vie... | javascript jquery | [3, 5] |
5,974,022 | 5,974,023 | creating an array of objects? | <p>It seems like this question gets asked frequently, but having looked through all of them, I find I'm still without aid. I'm taking my first step into oop, and I need to create an object with an attribute "Products" that is an array of up to 7 possible objects of class "Product". I just just barely understand the {ge... | c# asp.net | [0, 9] |
3,297,392 | 3,297,393 | While-loop divs not reacting | <p>I have a list of divs created using a while-loop</p>
<pre><code>while($row = mysql_fetch_array($result)){
$output = "<div id='drag'>$row[id] - $row[name] - $row['email']</div>";
echo $output;}
</code></pre>
<p>When I try to make those divs highlighted for a few seconds.
Only the first div seems to be r... | php javascript | [2, 3] |
3,033,378 | 3,033,379 | jquery hide hides and immediately displays again | <p>jQuery is doing something strange for me: it just doesn't work and hides the div only for split a second. What am I doing wrong?</p>
<p>The code in question, as simple as can be.</p>
<pre><code><html>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>Experimen... | javascript jquery | [3, 5] |
2,060,347 | 2,060,348 | JQuery - How do I count the number of elements selected by a selector? | <p>I am using $().fadeOut() to fade items out in a list ( < li> < /li>). When the list is empty I wish to hide a parent object.</p>
<p>I plan on doing this by checking in my trigger event that fades the list if the count of the objects is 0 then hide the parent element. I can use the fadeOut callback to remove t... | javascript jquery | [3, 5] |
3,727,507 | 3,727,508 | How to get the text-area content as exactly user entered | <p>In my webpage i am using textarea to get the details form the users and stored it in the database.</p>
<p><strong>1.This is how the user entered</strong></p>
<p><img src="http://i.stack.imgur.com/vkHrS.png" alt="enter image description here"> </p>
<p><strong>2. This is how it stored in the database</strong></p>
... | c# asp.net | [0, 9] |
209,136 | 209,137 | Get URL of ASP.Net Page in code-behind from another page | <p>I am trying to find away to determine a pages url from the page object. It seems you can only get the path of the current context.</p>
| c# asp.net | [0, 9] |
1,900,248 | 1,900,249 | Javascript: Changing src not working | <p>I'm calling a function like this:</p>
<pre><code><img src="/images/icons/info.png"
width="18" height="18" class="iconbutton" alt="Add to Library"
onclick="AddLibrary(12345,this.id); this.onclick=null;" />
</code></pre>
<p>The function then POSTS 12345 to another script and then is supposed to change the ico... | javascript jquery | [3, 5] |
1,337,283 | 1,337,284 | How to access Database which was in APP_DATA | <p>I developed a sample for membership and roles using the tutorial available. Now what i need is if i run my example in the other machine i would like to login and access the pages with the user name and password that were created using Asp.Net Configuration in my machine can any one give me an idea to achieve this</p... | c# asp.net | [0, 9] |
1,977,728 | 1,977,729 | Getting the context inside a custom view? | <p>I have made a small custom view component:</p>
<pre><code>public class ActionBar extends RelativeLayout
{
public ActionBar(Context context, AttributeSet attrs)
{
super(context, attrs);
// .. custom logic here
}
private class homeButtonListener implements OnClickListener
{
... | java android | [1, 4] |
4,968,808 | 4,968,809 | How to show a jquery message after textbox in php | <p>I have a textbox to show date which follows icon of jquery calandar to choose date. I used jquery form validation to show message if the user doesn't select a date. if i enter submit means that message shows between textbox and icon. I want that message after that icon. How to show that message?</p>
| php jquery | [2, 5] |
4,182,000 | 4,182,001 | How to get particular number of bytes from a video file in android | <p>I have a problem that I want to get first 2^21 bytes of a video file which is resided in our sdcard. But I don't know to do the same? Please suggest me the right solution regarding the same.</p>
<p>Thanks in advance.</p>
| java android | [1, 4] |
4,911,556 | 4,911,557 | ASP.net upload file, rename if exists | <p>I wrote this:</p>
<pre><code>protected void btnup_Click(object sender, EventArgs e)
{
if (ASPxUploadControl1.HasFile)
{
try
{
string filename = Path.GetFileName(ASPxUploadControl1.FileName);
ASPxUploadControl1.SaveAs(Server.MapPath("upload/") + filename);
... | c# asp.net | [0, 9] |
343,040 | 343,041 | New line in javascript confirmation message | <p>I've a .net application wherein one of my pages, during initial page load, I'm setting the text of an asp label control. In my aspx page, I've a javascript function to read the label text and show a confirmation pop-up message. The problem is, "\n" with in the label text is not introducing a line break in the JS con... | javascript asp.net | [3, 9] |
1,069,385 | 1,069,386 | creating and saving a file to a directory | <p>I'm using a string builder to read several files from a directory like this:</p>
<pre><code>StringBuilder sb = new StringBuilder();
sb.Append(System.IO.File.ReadAllText(
HttpContext.Current.Server.MapPath("~\\Scripts\\File1.js")));
sb.Append(System.IO.File.ReadAllText(
HttpContext.Current.Server.Map... | c# asp.net | [0, 9] |
5,955,629 | 5,955,630 | How to generate a pop-up window if a user is not logged in? | <p>In an HTML page:</p>
<pre><code><a href="/files/getfile.php?name=abc.zip">file download</a>
</code></pre>
<p>in PHP script(getfile.php):</p>
<pre><code>if('notlogged')
{
echo 'please, loggin~'; //pop up, possible?
return false;
}
</code></pre>
<p>So my question is, When user click the anchor tag,... | php javascript | [2, 3] |
933,908 | 933,909 | Searching the name of web pages according to the word entered in a textbox | <p>I have a textbox and a button in one page.I want to enter a word in the textbox and click the button. After clicking the button I want to display the name of the web pages containing the word entered in the textbox. So please tell me how to do it? I am using C#.</p>
| c# asp.net | [0, 9] |
722,303 | 722,304 | Text of the clicked link | <pre><code><ul class="Buttons">
<li><a href="#" onclick="myFunc(); return false;">Accept</a></li>
<li><a href="#" onclick="myFunc(); return false;">Reject</a></li>
<li><a href="#" onclick="myFunc(); return false;">On Hold</a></li>... | javascript jquery | [3, 5] |
5,023,446 | 5,023,447 | Find in Multidiamentional Array | <p>I have an multi dimensional array as </p>
<pre><code>[
{"EventDate":"20110421221932","LONGITUDE":"-75.61481666666670","LATITUDE":"38.35916666666670","BothConnectionsDown":false},
{"EventDate":"20110421222228","LONGITUDE":"-75.61456666666670","LATITUDE":"38.35946666666670","BothConnectionsDown":false}
]
</code>... | javascript jquery | [3, 5] |
5,895,634 | 5,895,635 | some advice on how to write a window.resize function? | <p>Im trying to write a function that resizes the css widths of some elements when the browser window is resized, right now I dont seem to be getting things right and would love it if someone could help me out on where Im going wrong, my code so far is:</p>
<pre><code>function windowResize() {
$('#content'... | javascript jquery | [3, 5] |
2,814,611 | 2,814,612 | jQuery event ajax dispatching | <p>In jQuery is there clever/shorthand way of tacking on an identifier to some general ajax events?</p>
<p>To explain, i am creating some functionality that is split between two seperate pieces of functionality: module A and module B. Module A, along with some other things, is primarily responsible for an ajax call. ... | javascript jquery | [3, 5] |
1,938,533 | 1,938,534 | adding a column with textbox inside from code behind | <p>I have a gridview that I want to add a textbox to the row that is clicked on. I have a button on each row, when clicked I want a column with a textbox added to that row. Which I then can type in and save to database. </p>
<p>I have found code online but some of the objects that are defined I don't have for some ... | c# asp.net | [0, 9] |
414,038 | 414,039 | how can get only numbers from the text using jquery | <p>I want to get only the numbers(123) not the text(confirm), here is my code</p>
<pre><code><p>123confirm</p>
<script type="text/javascript">
$(document).ready(function(){
$(p).click(function(){
var sd=$(this).text();
alert(sd);
});
});
</script>
</code></pre>
| javascript jquery | [3, 5] |
1,013,747 | 1,013,748 | Joomla javascript(JQuery) accordion menu always expand all nodes when click on last child element | <p>I'm new to joomla and Jquery. Please take this in mind.</p>
<p>I've a javascript accordion menu that is not working well: when I click on the last child element, then all nodes appears expanded. Not only the node(father) of the children clicked.</p>
<p>I've the index.php of the template that shows:</p>
<pre><code... | javascript jquery | [3, 5] |
41,568 | 41,569 | Accessing the array with dynamic keys | <p>I have an array (name array) which is smarty assigned and I want to access the value of every element of an array. I know we need to use eval here, but not sure how to use it?</p>
<pre><code>var loop = 'true' , text , i=0;
while(loop == 'true')
{
text = ~$array[i] ;//ERROR :-(
i++;
if(text=='')
loop... | javascript jquery | [3, 5] |
2,646,196 | 2,646,197 | Display label text with line breaks in c# | <p>Is it possible to display the label text with line breaks exactly as per the image</p>
<p><img src="http://i.stack.imgur.com/YkAPV.jpg" alt="enter image description here"></p>
<p>I need the text on the label to be printed exactly can some one help me, my desired text that has to be shown on the label will be store... | c# asp.net | [0, 9] |
5,253,369 | 5,253,370 | Why doesn't my hide function work on a click | <pre><code>$(document).ready(function() {
$('#promotion_profile_booking_description').keyup(function () {
var left = 200 - $(this).val().length;
if (left < 0) {
left = 0;
}
$('#counter').text('Characters left: ' + left);
});
$('#counter').bind('click', function() {
(this).hide();
... | javascript jquery | [3, 5] |
3,544,472 | 3,544,473 | Not Adding Record with "Space" | <p>I'm using direct url to a record in my database, but my problem was, when the records contains " " or "space" it didn't save. for example:</p>
<blockquote>
<p>name = "Lebron" this is working.</p>
<p>name = "Lebron James" </p>
</blockquote>
<p>this will not work because of the space between first and last n... | c# asp.net | [0, 9] |
214,110 | 214,111 | Comparing dates only by year, month and date? | <p>Say we have 2 Date objects in Javascript;</p>
<pre><code>var d1 = new Date('...');
var d2 = new Date('...');
</code></pre>
<p>We do a comparison:</p>
<pre><code>d1 < d2;
</code></pre>
<p>This comparison will always take into account hours, minutes, seconds.</p>
<p>I want it to only take into account the year... | javascript jquery | [3, 5] |
5,410,892 | 5,410,893 | Height of the block after deleting a product | <p>Here is the link - <a href="http://layot.prestatrend.com/" rel="nofollow">http://layot.prestatrend.com/</a>
After deleting a product from shopping cart the block #cart_block_slide_content does not change its height while not hovering on it one more time.
Here is the code, you can find it at ajax-cart-top.js:</p>
<p... | javascript jquery | [3, 5] |
2,233,354 | 2,233,355 | How can stop change event? | <pre><code>var InDate = trim($(".inDate").val());
if (InDate == '') {
$(".inDate").val(dateDisplayFormat);
}
//Bind date picker
daymarker.bindElement(".inDate",
{
onSelect: function(date) {
$(".inDate").trigger('change');
},
dateFormat:jsDateFormat
});
$(".... | javascript jquery | [3, 5] |
1,981,223 | 1,981,224 | Using a variable when traversing elements in JQuery | <p>Very quick and hopefully simple question.</p>
<p>I am trying to select a hidden input by value with some predefined variable.</p>
<pre><code>var id = $("#puid").val();
$('input[value=id]').closest('tr').css({'background-color':'red'});
</code></pre>
<p>I thought the above code would have worked, however its not p... | javascript jquery | [3, 5] |
5,338,814 | 5,338,815 | Block popup windows settings give error to close popup window in javascript | <p>I have one web page, on which when user click on button(for calculation purpose) one popup window open(its an aspx page as popup) .</p>
<p>When user done calculations on popup then automatically popup is close. </p>
<p>But when user block popup windows through browser setting then popup open but cant close.</p>
<... | c# javascript asp.net | [0, 3, 9] |
5,903,920 | 5,903,921 | Calling C/C++ library function from PHP | <p>We have a PHP web app running on a customer's machine. For an update, we have a bit of code in C that we'd like to include as a native opaque library along with the PHP web app.</p>
<p>How does one go about calling a C/C++ lib. function from PHP? </p>
<p>It cannot be assumed that the PHP app, called by the web ser... | php c++ | [2, 6] |
1,418,347 | 1,418,348 | Adding Android SDK to an existing Java project? | <p>I'm a fan of a fairly big open-source program which is written in Java and uses Swing as a front-end client on series of web actions. As I've been working with Android development for a few months, I had an idea that I could create a new app that works similarly to the Swing application. The program is well-organi... | java android | [1, 4] |
4,002,885 | 4,002,886 | Explain this fragment of Javascript to me | <p>I am newbie to jQuery,
can someone explain what this code does:</p>
<pre><code>$("#currency form").submit(function(e) {
triggers.eq(1).overlay().close();
return e.preventDefault();
});
</code></pre>
| javascript jquery | [3, 5] |
5,511,829 | 5,511,830 | Read log and save it to string | <p>I want to read the log and save it to a string inside the app. I use the Log.d(..) to save log. I've read that you use logcat? But that doesn't work when running the android phone. Is there a boolean that you need to switch, READ_LOG?</p>
| java android | [1, 4] |
861,563 | 861,564 | How to change div content with smooth changing | <p>Div with id="content" need to change content. I have two divs, somewhere generated with id=1 and id=2, and I want to div id="content" show one, but when I click on some button to change content on another, but with smooth horizontal changing, like on image galeries scroll left and right. How to do that with JQuery ?... | javascript jquery | [3, 5] |
397,103 | 397,104 | Javascript Onclick | <p>I want to achieve a very simple effect to scroll divs when pressing an arrow button ... How do i do this?</p>
<p>Basically i have a maximum of 4 divs named:</p>
<p>Slideframe, slideframe1, slideframe2 and slideframe3</p>
<p>I have a PHP variable called count which generates the slideframe content based on a PHP l... | javascript jquery | [3, 5] |
736,796 | 736,797 | Android/java beginner syntax question | <p>so I was watching a tutorial and I am trying to understand this syntax</p>
<pre><code> Thread thread = new Thread()
{
//if i declare variables here i get errors
public void run()
{
// ....define variables in function
}
}
</code></pre>
<p>How does this ... | java android | [1, 4] |
5,514,399 | 5,514,400 | Programmatically Setting Text of Validation Control | <p>I have following validator control. How can we set the <code>color</code> of <code>Text</code> of this control from code behind?</p>
<p>Note: Text of the control is <code>*</code> as shown in the code below.</p>
<p><strong>CODE</strong></p>
<pre><code><asp:Content ID="Content2" ContentPlaceHolderID="ContentPl... | c# asp.net | [0, 9] |
2,325,940 | 2,325,941 | Problem with jQuery mouseleave firing when container has select box | <p>I have a two containers -- one is nested inside of another. When I hover over the parent, I want the child container to appear. When I mouseout, I want the child container to fadeout. The problem I'm having is the child container has a form that contains a "select box". When the user selects the select box -- the m... | javascript jquery | [3, 5] |
505,135 | 505,136 | Python equivalent of vector::reserve() | <p>I am looking for the Python equivalent of the C++ vector::reserve(). I don't know how big the list is going to be ahead of time, but I know it's going to be fairly large, and I want to avoid as many resizings as possible as the list is being grown inside a deep inner loop.</p>
<p>The only solution I've come up wit... | c++ python | [6, 7] |
2,582,269 | 2,582,270 | If was not alert go to url else do not go | <p>I want make validation jquery <strong>without using from plugin</strong>, problem is here that after click on button and get alert(if field is empty) it go to url <code>#</code> that there is in <code><form action="#"...</code>. </p>
<p>I want if get alert(mean if field is empty) 'input is empty' not go to url t... | javascript jquery | [3, 5] |
3,877,352 | 3,877,353 | How to avoid security message in IE7 when starting a file download? | <p>The message reads:</p>
<blockquote>
<p>To help protect your security, Windows Internet Explorer blocked this site from
downloading files to your computer. Click here for more options... </p>
</blockquote>
<p>I am receiving this error when I try to initiate a download after successfully filling a CAPTCHA in my... | c# asp.net | [0, 9] |
931,734 | 931,735 | Inline JS (OnMouseOver) - Repeat Something Until MouseOut Occurs | <p>Is there a way to run a given function every 10ms, considering that I am limited to running only inline code (no external js files or tags)?</p>
<p>I can only use:</p>
<pre><code><div onmouseover="functions here" onmouseout="functions here">
</code></pre>
<p>To be more specific I want to move another eleme... | javascript jquery | [3, 5] |
808,844 | 808,845 | How do I get to cousin elements with JQuery? | <p>I have a table with many rows of data, and I want to show or hide some of the details on each row based on a checkbox in the first element. For example:</p>
<pre><code><table>
<tr>
<td><span class="aspnetweirdness"><input type=checkbox></span></td>
<td>Text... | javascript jquery | [3, 5] |
5,003,489 | 5,003,490 | mouseover an image and show another, using jQuery | <p>I have an image, and when I mouseover I want another image to 'slide' over the first image from the bottom up. On mouseout the image should disappear again, slide from top to bottom, showing the first image again.</p>
<p>How to do this with jQuery? I tried <code>animate</code> and <code>slidetoggle</code>, but I ca... | javascript jquery | [3, 5] |
3,569,889 | 3,569,890 | Button click event not firing after postback | <p>I've got the following code defined in a button click event on my webform. The code executes properly the first time I click the button. Additional clicks should add more values to my database, but in this case after the first postback, the click event doesn't fire.</p>
<p>When I leave the page and come back, I can... | c# asp.net | [0, 9] |
3,104,189 | 3,104,190 | How can I display "please fill required field" in diferent languages using jquery.validate and ?lang=? | <p>I'm using <code>$lang = $_GET['lang'];</code> and some arrays to change the language of the page.
So my pages URL look like this when I select a language: <code>...index.php?lang=en</code>
(so my index page never changes neither my jquery files) </p>
<p>(more details in my <a href="http://stackoverflow.com/question... | php jquery | [2, 5] |
5,145,933 | 5,145,934 | problem with onclientclick and postbackurl | <p>I want to trigger on click of a button this:</p>
<pre><code><asp:Button runat="server" ID="submit" Text="Submit" OnClientClick="country(this.form);" PostBackUrl="http://www.google.com/" />
</code></pre>
<p>In javascript I m checking validation of the form.The problem is when I m clicking on the button it is... | asp.net javascript | [9, 3] |
4,763,452 | 4,763,453 | Handling code which relies on jQuery before jQuery is loaded | <p>I'd like to follow the general guideline of putting all JavaScript at the very bottom of the page, to speed up loading time and also to take care of some pesky issues with conflicting jQuery versions in a web app (Django).</p>
<p>However, every so often I have some code, code which depends on jQuery, but which must... | javascript jquery | [3, 5] |
4,488,621 | 4,488,622 | jQuery - move element with javascript inside | <p>I'm using jquery to move a element that contains javascript code inside it, like this:</p>
<pre><code><li class="a1">
<div class="el">
<script type="text/javascript"> document.write('Hello World'); </script>
...
</div>
</li>
<li class="a2">
</li>
<... | javascript jquery | [3, 5] |
42,520 | 42,521 | how to use capcha code in the asp.net | <p>how i can add capcha code in the asp.net registration form</p>
| c# asp.net | [0, 9] |
1,071,606 | 1,071,607 | Get a specific word from a specific line from a text file in Android | <pre><code>String line = "";
int lineNo;
try
{
File file = new File("/sdcard/mysdfile.txt");
FileReader fr = new FileReader(file);
BufferedReader br = new BufferedReader(fr);
//char[] inputBuffer1 = new char[READ_BLOCK_SIZE];
... | java android | [1, 4] |
1,046,792 | 1,046,793 | Android/Java question. How are these two decision trees different? | <p>I'm very confused as to how these two decision trees are different. I'm building an app that needs to decide which view to load based on the position selected from a ListView. I've tried to build the logic into a single controller module and found that the switch-case will cause a NullPointerException and FC while t... | java android | [1, 4] |
155,993 | 155,994 | To get path name with url values in jquery | <p>This is an example URL.</p>
<pre>
http://stackoverflow.com/questions/ask?a=1&b=2
</pre>
<p><strong>question</strong>: I need to fetch path name along with url values like this<pre>/questions/ask?a=1&b=2</pre>
I need jquery or javascript solution</p>
| javascript jquery | [3, 5] |
5,230,911 | 5,230,912 | jQuery doesn't always load | <p>Okay so I have this page with quite a lot of javascript/jQuery in it. Now the problem is that it sometimes loads and it sometimes doesn't. It eventually gets working after a few refreshes. The page is still a prototype and it's not yet viewable to the users, but i noticed that the problem sometimes spans across the ... | javascript jquery | [3, 5] |
1,867,741 | 1,867,742 | unable to start a new project eclipse | <p>I am a new android developer. </p>
<p>I was trying to install eclipse in my system and after installation when I was to open a new project the column of build target is been empty. </p>
<p>So i can't create or start a project... please help me in rectifying this problem.</p>
| java android | [1, 4] |
2,258,089 | 2,258,090 | Snake script is not passing values to variable | <p>So here is my snake script - </p>
<p><a href="http://jsfiddle.net/6bKHc/24/" rel="nofollow">http://jsfiddle.net/6bKHc/24/</a></p>
<p>I started to create a snake game, but basically move(top), move(bottom) e.c. is not working. Any ideas why? I understand that I can't pass the elements to variable like this, so mayb... | javascript jquery | [3, 5] |
5,820,320 | 5,820,321 | How do you make a javascript popup like the ones on AllTop.com | <p>I need to make simple javascript popups like the ones on alltop.com (when you hover over the links). Is there a jQuery plugin for this?</p>
| javascript jquery | [3, 5] |
3,600,757 | 3,600,758 | Javascript code example copied into a pre-tag gets executed | <p>I'm trying to add a piece of javascript code to a certain <code><div></code>.
I enclosed the code in pre and code tags, but when I actually run this the code gets <em>executed</em>. Obviously, that's not what I want at all.</p>
<pre><code> var code = '<pre><code><script type="text/javascript... | javascript jquery | [3, 5] |
2,084,937 | 2,084,938 | How can I Enable\Disable all subcontrols of a table? | <p>I have a checkBox, which when it's checked i want to enable a table and its subcontrols and when it's disabled I want to do the opposite.</p>
<p>I have already understand that I have to iterate all subControls of the table, and my question is if there is any nice and generic way of doing it.</p>
<p>Thanks in advan... | c# javascript | [0, 3] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.