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 |
|---|---|---|---|---|---|
3,219,985 | 3,219,986 | Automatiacally Generating text input and dropdown select on click using javascript/Jquery | <p>I am trying to build a system like when any user clicks on an "Add" button, it creates two text fields and two drop down selects automatically. I searched on google for the tutorial but all I have managed to find is only how to add text fields, but I need to add Select drop down with remove option.</p>
<p>I have so... | javascript jquery | [3, 5] |
4,659,114 | 4,659,115 | Can I update data members in one Activity from another Activity in the application? | <p>I've tried this and it works, but I didn't know if this was a bad thing or not, as all the help on data transfers between Activities seems to use intents.</p>
<p>In MainActivity I have:</p>
<pre><code>static PilotRecord pilotRecord = new PilotRecord(); //PilotRecord just contains data item declarations
</code></pr... | java android | [1, 4] |
736,952 | 736,953 | selecting multiple elements using shift and mouse click - jquery | <p>Is it possible to use shift and mouse click to select multiple elements on a page using jquery?</p>
<p>I have several divs that i have given a tabindex to so that i can select them and can do things like delete them etc.</p>
<p>I want to be able to select more than 1 by holding down shift and using the mouse to cl... | javascript jquery | [3, 5] |
1,276,022 | 1,276,023 | Organizing javascript code | <p>I am making a javascript application. Normally what I do is make different modules and get users inputs or click events in <code>$(document).ready();</code> function. This works fine for small applications. But when I follow the same pattern, I mean getting click events in <code>$(document).ready();</code> then it g... | javascript jquery | [3, 5] |
2,483,188 | 2,483,189 | Remove Class from ID if another link is clicked, vise versa | <p>I've been working to find a solution for a jQuery problem.
I have a parent container with 2 divs and a link in each. If a link is clicked in one of the divs, a class is added to the parent container (to change the background). If the other link is clicked, I wanted to check if a class has already been added from the... | javascript jquery | [3, 5] |
4,653,486 | 4,653,487 | Miltitasking and Progress Bar | <p>Does Android have multitasking functionality? If yes, then how can we use it to enable a progress bar?</p>
| java android | [1, 4] |
880,660 | 880,661 | Place random positioned element into a document in vertical axes | <p>I have the following code</p>
<pre><code>function randomizer(start, end)
{
return Math.floor((end - start) * Math.random()) + 1;
}
var top_pos = randomizer(1, $(document).height());
$('.element_selector').css('top', top_pos + 'px');
</code></pre>
<p>but the result is not what I realy expect from. The most of... | javascript jquery | [3, 5] |
5,600,877 | 5,600,878 | setInterval onclick of #fr_tab div and clear on click of anywhere in document | <p>I have this jquery code: </p>
<pre><code> $('#fr_tab').click(function() {
$("#tab2").empty().html('<img src="images/loading.gif" />');
var handle = setInterval(function () {
$('#tab2').load('fr_quests.php');
}, 3000);
});
$('body').click(function() {
if (handle) {
... | javascript jquery | [3, 5] |
4,915,163 | 4,915,164 | Back to previous page without refresh it | <p>Is it possible back to previous page without refresh it? </p>
<p>What it takes?</p>
| php javascript | [2, 3] |
2,707,626 | 2,707,627 | Find whether a dynamically called url has image in it | <p>I have a products sale module in which products are uploaded from cj and saved in to database..today i noticed few records contained image url but returns 404(eg image url:http://www.bridalfashionmall.com/images/satin-2.jpg) hence shows no image in the repeater ..how can i check whether the url called dynamically h... | c# asp.net | [0, 9] |
3,312,311 | 3,312,312 | Auto Update of DIV is not working | <p>I use this script to reload a DIV whose ID is news,</p>
<pre><code><script type="text/javascript">
var auto_refresh = setInterval(function() {
<? if ($lim >= 5)
$lim = 0;
else
$lim = $lim + 2;
if ($cnt == 1){
$lim = 0;
$cnt ... | php javascript jquery | [2, 3, 5] |
2,382,071 | 2,382,072 | Simulate next button click with jQuery | <p>Not sure if this is possible but I have a slideshow on my site that when a button is click the relevant slide, slides in. </p>
<p>What I want to do is add a timer so that after 3 seconds the next button is clicked, making my slideshow slide automatically. </p>
<pre><code>$('#button a').click(function(){
var in... | javascript jquery | [3, 5] |
3,198,376 | 3,198,377 | how to activate loaddata() from another class | <p>i have this code in the Main extends Activity</p>
<pre><code> public void loaddata()
{
Toast.makeText(Main.this, ("Working"),Toast.LENGTH_LONG).show();
}
</code></pre>
<p>i use this in the second extends Activity</p>
<pre><code> public void turnon()
{
Main dp = new Main();
... | java android | [1, 4] |
3,630,858 | 3,630,859 | Jquery: Iterate an array and find nodes with a specific id | <p>I have a list of div elements:</p>
<pre><code>var list = $('.divelement').get();
</code></pre>
<p>I want to use jQuery to find a specific element (that has an id that contains "hdnPK") in each of these div elements. Something like:</p>
<pre><code>var elem1 = list[0].$("[id*='hdnPK']").get();
var elem2 = list[1].$... | javascript jquery | [3, 5] |
4,758,187 | 4,758,188 | Does app could cause phone reboot and how to release variable | <p>I write an app which will continuously request data from a sensor board and send data to server. I use a Motorola Droid phone which have not be activated to test my app. I find that sometimes after several hours the phone will reboot. I just want to know does it cause by my app run out of memory. And if an app runs ... | java android | [1, 4] |
2,592,604 | 2,592,605 | How to use $(window).delegate('selector','resize',function handler) when selector is into an iFrame? | <p>I need to use as a selector an element from DOM inside an iFrame.</p>
<p>Thanx in advance.</p>
| javascript jquery | [3, 5] |
2,634,391 | 2,634,392 | Import a class of different project into my project | <p>I have a demo project-named A having a class Class AA. and I have another demo project-named B having a class Class BB.
My question is how can I import ClassBB in class AA??????</p>
| java android | [1, 4] |
218,079 | 218,080 | button to scroll all the way to the top with click of button | <p>i have this javascript so that when a user is scrolling on the page there will be a small icon to the side that will scroll all the way back up the page rather than manually scrolling. The button shows fine but when i click on it it is not going all the way to the top. </p>
<p><strong>html</strong></p>
<pre><code>... | javascript jquery | [3, 5] |
2,466,042 | 2,466,043 | How do I toggle a table row display? | <p>I would like to toggle my table row on an .change function in jquery. The desired row is being displayed in this code, how do I hide the other rows at the same time?</p>
<pre><code>$(document).ready(function() {
$('#ddlSelect').change(function() {
var ddlId = $('#ddlSelect').val();
alert(ddlId); ... | c# jquery | [0, 5] |
2,988,062 | 2,988,063 | Dialog Box will not show | <p>I created an AlertDialogFragment class and I am trying to show it from another class with the following code but I keep getting an error to change the type from FragmentTranscation to FragmentManager. If I change it to FragmentManager, I get a message to change to FragmentTranscation, whenever I change to FragmentT... | java android | [1, 4] |
3,502,003 | 3,502,004 | jQuery Click event on asp:button | <p>I have a server side button as </p>
<pre><code><asp:Button ID="btnSummary" runat="server" OnClick="btnSummary_Click" Text="Next" />
</code></pre>
<p>I want to attach the jQuery Click event using its ID and NOT using the alternative class attribute way.
<br/>
<br/>
I tried to attach the click event as:</p>
<... | asp.net jquery | [9, 5] |
280,316 | 280,317 | Android Disable all buttons | <p>I programmatically am creating buttons as depending on certain factors their will either be 3 or 4 buttons.</p>
<p>In some instances I would like to create all of the buttons but disable them all. At the moment the problem I have is that I cannot access the buttons from outside of this loop</p>
<pre><code> if (... | java android | [1, 4] |
2,203,196 | 2,203,197 | Asp.net Calendar Event Issue | <p>i have an Issue i am developing a reservation management Issue when user Complete his/her reservation by Selecting date from Calendar and when user Click on the same date again the Selection_index change event did't fire please help me out (in Hourly reservation when user click on date the Checkbox list of available... | c# asp.net | [0, 9] |
921,164 | 921,165 | How to show Image In GridView? | <p>I am working on a live project in which I have to prepare an Admin interface. In this Admin Interface the Admin of the website can manipulate data and user images. Problem is that I am unable to show the image because I have saved image path in database in respect to associate userid. I am also able to show data bu... | c# asp.net | [0, 9] |
734,475 | 734,476 | Why can't this simple javascript/jquery code alert selected text? | <p>I can't explain the behaviour of the code below. Here's my entire script</p>
<pre><code><html>
<head>
<script type="text/javascript" language="javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>
<script type="text/javascript" language="javascrip... | javascript jquery | [3, 5] |
4,065,268 | 4,065,269 | call another activity in class that did not extend Activity class | <p>Hi all i have a class name </p>
<pre><code>public class WikipediaDataSource extends NetworkDataSource{.....}
</code></pre>
<p>which extend to NetworkDataSource. what im try to do is from this class i would like to call new activity...</p>
<pre><code>Intent i = new Intent(context, Obj3DView.class);
startActivity(i... | java android | [1, 4] |
971,018 | 971,019 | Cant access class object variable of javascript in IE and Mozilla | <p>I am having a class in javascript , in which i have defined few properties and methods and i have created an array and created and instance values of the class and pushed into it. After that i have iterated the array and checked a property from a particular method, but in IE and mozilla it is showing as undefined. I... | javascript jquery | [3, 5] |
2,502,175 | 2,502,176 | Calling a method or piece of code from another file | <p>A have a very large piece of code that I execute multiple times on my webpage, with only a slight difference each time (it uses information from a database. Sometimes it's within a foreach loop, using "row.nameofrow", and other times it's just a single record, using "query.nameofrow").</p>
<p>I'm pretty new to codi... | c# asp.net | [0, 9] |
3,333,805 | 3,333,806 | Sending an array as a server tag's property | <p>I am wondering if it's possible to send an array of strings to a tag's property</p>
<pre><code><SampleTag:Form
runat="server"
ID="sampleform1"
Items={item1,item2,item3,item4}
>
</SampleTag:Form>
</code></pre>
<p>This doesn't work since it sends "{item1,item2,item3,item4}" as a string to the cl... | c# asp.net | [0, 9] |
2,946,202 | 2,946,203 | What is the simplest way to validate a date in asp.net C#? | <p>I'm using DateTime.ParseExact to parse a string from input. What is the simplest way to make sure the date complies to rules like max days in a month or no 0. month?</p>
| c# asp.net | [0, 9] |
2,286,321 | 2,286,322 | Adding class as per LI postion | <p>I have below markup,</p>
<pre><code><ul>
<li>1</li> //light BG
<li>2</li>
<li>3</li>
<li>4</li> //light BG
<li>5</li>
<li>6</li>
......
</ul>
</code></pre>
<p>I want to add class <code>dark</code> and <code>light</code>, as per pos... | javascript jquery | [3, 5] |
1,264,159 | 1,264,160 | jQuery Datepicker previous complete months | <p>I'm using the Datepicker in two input fields to allow users to select a start and end date, respectively. I was curious if there's a setting for jQuery UI's datepicker to initialize the start date field to a period that is two complete months prior to the end date, which defaults to the current date. So when a use... | javascript jquery | [3, 5] |
4,043,228 | 4,043,229 | Javascript: adding the print function to the body element | <p>I need to implement a print page functionality with the following restrictions:</p>
<ul>
<li>i cannot have a print view (no print.jsp to point to)</li>
<li>i cannot rely on print.css alone (because i have to move stuff around a lot in the DOM to get the page i want to print)</li>
</ul>
<p>So i implemented this lit... | javascript jquery | [3, 5] |
3,960,267 | 3,960,268 | thread problem in suspend() and resume() | <p>hi all
i doing a stop watch. for pause i use Thread.suspend() and resume i use Thread.resume(). but the resume is not resume the work.
code:</p>
<pre><code>pause(){
shouldRun = false;
currentThread.suspend();
}
resume(){
shouldRun = true;
currentThread.resume();
}
</code></pre>
<p>while(shouldRun... | java android | [1, 4] |
5,024,720 | 5,024,721 | Create a class with jQuery/javascript | <p>In a page I create an instance of a <code>class (MyClass)</code>, this class has 2 methods. But I'd like to do 2 things :</p>
<ol>
<li>In <strong>(1)</strong>, set the value <code>this.message</code></li>
<li>In <strong>(2)</strong>, call the information method or another method of the class</li>
</ol>
<p>Thank,</... | javascript jquery | [3, 5] |
5,965,010 | 5,965,011 | EditText dont grow with content | <p>I have a problem with an <code>EditText</code> in Android.
Cause its only for Debug purpose, the visibility of the Layout, the <code>EditText</code> is added, is at start gone.</p>
<p>So i receive infos from an <code>ServiceCall</code> and to find some possible errors, i display in this the string i got as response... | java android | [1, 4] |
706,900 | 706,901 | Delete Confirmation | <p>I have a set of records which are displayed in tabular format in a form. On each record there is a delete checkbox - here is the form in simplified format:</p>
<pre><code><form method="post" action="" id="update-history-form">
Item 1 <input type="checkbox" value="1" name="History[0][delete]">
Item 2... | javascript jquery | [3, 5] |
894,757 | 894,758 | How to fadeout image, then make it appear on another position in jquery? | <p>my image is at some div, and it's z-index is the highest</p>
<p>When i click on something, I want it to fade out, and fade in on another, specified position. Below the image of another class : ) It's an "aaa" class.</p>
<p>I was doing it like that:</p>
<pre><code> $('img.classy').fadeOut();
$('... | javascript jquery | [3, 5] |
3,525,195 | 3,525,196 | jQuery set call back on child elements | <p>I am trying to attach an onChange callback to all the input elements under the div <code>#dim</code>. It selects all 3 input elements, but returns an exception: </p>
<pre><code>Uncaught TypeError: Object 0 has no method 'change'
</code></pre>
<p>It may be because <code>x</code> may not be a jQuery object. How woul... | javascript jquery | [3, 5] |
2,779,051 | 2,779,052 | scrollTop() in HTML5 using firefox | <p>I have a website that I would like to build in HMTL 5(as it will become a visual html 5 reference), I have an example set using jQuery when the user clicks a link it will scroll to the appropriate element.</p>
<p>The issue I have is that in chrome it scrolls and retains it's margin top(as the navigation is overlapp... | javascript jquery | [3, 5] |
2,960,128 | 2,960,129 | Andriond send event from first activity and receive on the second | <p>I have two activities. The first activity display list of the users with short info. And after select some user I go to the second activity for display full info about this user. For send event I used <code>startActivityForResult();</code> for receive event in socond activity and added <code>public void onAct... | java android | [1, 4] |
5,332,541 | 5,332,542 | concate php variable | <p>When concatenate php variable result not showing.</p>
<pre><code>$a = 5;
$b = 4;
$o = '+';
echo $a.$o.$b;
result showing 5+4; but i want show result 9
</code></pre>
<p>How can i do this, anybody can help me out.
Thanks in advance. </p>
| php javascript | [2, 3] |
5,940,769 | 5,940,770 | How to use modalDialog to display pop-up which can work in all browser | <p>I just tried to create pop-up window but its parent window get active while pop-up is still open , in Chome.
My code is as blow</p>
<pre><code><script language="javascript" type="text/javascript">
function showModalWindow() {
window.showModalDialog('URL, "Sample.jpg", "resizable: yes");
}
</sc... | javascript jquery | [3, 5] |
1,784,226 | 1,784,227 | validation in asp.net login control | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/7213131/validation-problem-in-asp-net-login-control">validation problem in asp.net login control</a> </p>
</blockquote>
<p>I have asp.net login control in my web application. When I give the incorrect username a... | c# asp.net | [0, 9] |
5,280,756 | 5,280,757 | How to Set Null Value In Text Area | <p>I want to set null value in onclick() event of textarea, But my code does not work properly..</p>
<pre><code><textarea id="txtwishlistsong1" rows="5" cols="70" runat="server" onclick="return txtwishlistsong1_onclick()">Type Your Message Here...</textarea>
</code></pre>
<p>code behind</p>
<pre><code>fu... | c# javascript asp.net | [0, 3, 9] |
3,737,460 | 3,737,461 | Using apply with jQuery | <p>Why does this work...:</p>
<pre><code>$('.foo').hide()
</code></pre>
<p>...and this doesn't?:</p>
<pre><code>$('.foo').hide.apply(this,[])
</code></pre>
<p>I'm trying to write a function that passes arguments into hide().</p>
| javascript jquery | [3, 5] |
4,109,776 | 4,109,777 | How to add name value pair to existing query string | <p>i need to add new name ,value pair to existing query string when the user click on some button.</p>
<p>i'm using jquery for client side operations.</p>
<p>any idea..?</p>
<p>thank in advance!</p>
| javascript jquery | [3, 5] |
4,527,606 | 4,527,607 | Get Values of Dropdown based on First Dropdown selected | <p><strong>PHP/MYSQL</strong></p>
<pre><code><div style="width:810px; margin:inherit; padding-left:170px;">
<select style="width:300px;" id="n" name="userListingCateory">
<option disabled="disabled">Category...</option>
<?php while($row = $sth2->fetch(PDO::FETCH_ASSO... | php javascript jquery | [2, 3, 5] |
4,746,935 | 4,746,936 | Upload file without form | <p><strong>Upload file without form</strong>
Yes i used the search button but i just couldn't find the solution i need.
Is there any way to upload a file so that user wouldn't need to press any form buttons?</p>
<p>My first idea was to use CURL but then i remembered that CURL is server sided.</p>
<p>I know it's possi... | php javascript | [2, 3] |
5,715,556 | 5,715,557 | How do you get the current image name from an ASP.Net website? | <p>Scenario: You have an ASP.Net webpage that should display the next image in a series of images. If 1.jpg is currently loaded, the refresh should load 2.jpg.<br />
Assuming I would use this code, where do you get the current images name.</p>
<p><code>
string currImage = MainPic.ImageUrl.Replace(".jpg", "");<br />
cu... | c# asp.net | [0, 9] |
889,950 | 889,951 | calling a javascript function within markup created by javascript using Jquery | <p>I have form fields which are displayed using Jquery on click of a button.</p>
<pre><code>[select dropdown: conOperator] [textfield: conValue ] [select dropdown: conValuedd]
</code></pre>
<p>conValuedd is hidden by default.</p>
<p>I'm trying to figure out a way so that when I select either Apple or Banana in th... | javascript jquery | [3, 5] |
2,032,852 | 2,032,853 | Jquery UI draggable wont drag first time | <p>I have an image which when onmousedown is triggered it runs a function that changes its class and makes it draggable, however the first time I drag it it wont drag, it changes the class but will not drag? After the intial failed drag if you then drag again it will drag but why wont it drag at first?</p>
<pre><code>... | javascript jquery | [3, 5] |
4,714,204 | 4,714,205 | Help with JavaScript reading checkbox with [] | <p>i have written/modified a script to count checkboxes checked it works fine but i know need the checkbox name to read r1[] for my php scripts and now it doesn't work please help with java script...</p>
<p>THIS WORKS</p>
<pre><code><input name='r1' type='checkbox' value='' onClick='return GetSelectedItem2()' />... | php javascript | [2, 3] |
3,295,509 | 3,295,510 | Pinch interface on android | <p>I would like to ask this of developers that have more experience than I do. I am only a junior programmer, and have worked with java, C, and VB.net. I have been asked if it is possible to create something similar to the iOS Pinch interface, but for Android. I am pretty sure this is possible, but have no starting poi... | java android | [1, 4] |
2,259,307 | 2,259,308 | Code outputs errors twice even though the request is stopped? | <p>I am having an issue. </p>
<p>When I get an error on this code it outputs the error twice even though the function I call kills the response, notice the OutputError:</p>
<pre><code> private dynamic GetOauthTokens(string code)
{
Dictionary<string, string> tokens = new Dictionary<strin... | c# asp.net | [0, 9] |
1,889,351 | 1,889,352 | add dynamic element into array | <pre><code> var x = 0;
var counter = 0 ;
$(function () {
$('#addBtn').click(function () {
x++;
if (counter < 5) {
counter++;
$('#content').append('<input type="text" id="mytxt' + x + '">');
$('#con... | javascript jquery | [3, 5] |
4,235,074 | 4,235,075 | set a code behind property via jquery | <p>Is it possible to set the value of a property inside the page class using jquery? I know it's possible to get the value in jquery as long as the property is public but can't seem to set the value.</p>
<p>This is the property in the code behind.</p>
<pre><code>Private inventory_item_id As String = ""
Public Prope... | jquery asp.net | [5, 9] |
423,745 | 423,746 | How to replace last two cells values in a table with a string using jquery? | <pre><code> <table>
<tr>
<td>aaaa</td>
<td>bbbb</td>
<td>cccc</td>
<td>dddd</td>
</tr>
</table>
</code></pre>
<p>In this above table, how can i replace last two cells values with a string "abcd"</p>
| javascript jquery | [3, 5] |
3,170,278 | 3,170,279 | Android Speed based on accelerometer values | <p>I need to obtain the velocity of an android device, based on the accelerometer values. I made a code that allows me to get the accelerometer values, and then I calculate the velocity, using the formula:
v = v0 + at. (vector calculation)</p>
<p>My problem is that my velocity only increases and never decreases. I thi... | java android | [1, 4] |
3,046,274 | 3,046,275 | jQuery selector context question | <p>I'm trying to do make the following selection:</p>
<pre><code>$(".program", row)
</code></pre>
<p>Where "row" is a jQuery object containing two table rows. One of the tr's has the class 'program". This selector doesn't seem to find it. However the following works: </p>
<pre><code>$(".title", row)
</code></pre>
... | javascript jquery | [3, 5] |
1,641,154 | 1,641,155 | Navigate to a separate browser from Gridview Hyperlink | <p>Hello I would like the user to be directed to a separate browser if possible from a HyperLink in a Gridview. How can I do this.. like you know how a href blah blah target:_blank something like that.. but the problem is that I am using this..</p>
<pre><code> <asp:HyperLinkField
DataNavigateUrlFields="myID"
Da... | c# asp.net | [0, 9] |
889,009 | 889,010 | Javascript onbeforeunload- Show an image on Exit | <p>I am using following code so that if user closes the browser button it shows a confirmation box, whether to stay on page or not.</p>
<p>What I want to do is if someone closes the browser it should show an image, with "yes" or "no" options. When "yes" is clicked it should close the browser and if "no" is clicked it ... | javascript jquery | [3, 5] |
2,664,947 | 2,664,948 | one item from checkbox list checked should enable a div and viceversa | <p>I have a div tag with following checkbox list </p>
<pre><code> <div id="checkboxDiv" class="checkboxDivclass">
<table id="checkBoxList" runat="server">
<tbody>
<tr>
<td><input id="checkBoxList_0" type="ch... | jquery asp.net | [5, 9] |
5,403,438 | 5,403,439 | Script to insert data on different domain | <p>I am thinking about writing a script that will perform a sort of checkout procedure automatically similar to a program like Ebay snipe.</p>
<p>I will know what the page exactly looks like. All I really want to do is load the page from a different domain than the one that is running my script into an iframe, have jq... | php javascript jquery | [2, 3, 5] |
4,912,518 | 4,912,519 | Passing variable into findViewByID | <p>I have the following setup. In my xml i have a bunch of image views. I am trying to show only one of them depending on the number set in preferences and the day of week. This must be really easy but i can't find out the correct way to pass variable into findViewByID. Here is code snippet:</p>
<pre><code>String grou... | java android | [1, 4] |
3,189,156 | 3,189,157 | javascript send one way message to php | <p>How can I use javascript to send a one way message to php? I would like to get the browser information from javascript and just send it to php in the background. I know I can get some of this from php, but I'd rather use javascript. Is there a way to do this without a framework like jquery?</p>
| php javascript | [2, 3] |
3,903,200 | 3,903,201 | Making a method in a plugin accessible globally? | <p>Given the jQuery dropdown plugin below. Is there a way to add a method that would allow for a separate function outside of the dropdown to 'hideMenu'? Thanks</p>
<p>For example, if I applied the plugin to a div with an ID like so: </p>
<pre><code>$('#settings.dropdown').dropDownMenu();
</code></pre>
<p>How could ... | javascript jquery | [3, 5] |
5,557,495 | 5,557,496 | Parsing Date-and-Times from JavaScript to C# | <p>I have some JavaScript code that I'm trying to pass to my web service. My JavaScript code is supposed to send a date in UTC format. Locally, the time that I generated my code at was at 12:30:43 pm. When I executed my JavaScript code, the following date/time was generated:</p>
<p><em>2012-06-03T20:30:43.000Z</em></... | c# javascript | [0, 3] |
3,456,596 | 3,456,597 | cm to inch converter, two textboxes multply a value | <p>I Have a problem to make a cm to foot/inch converter in C#, this is what a got:</p>
<pre><code><asp:textbox id="txtFoot" runat="server"></asp:textbox>
<asp:textbox id="txtInches" runat="server"></asp:textbox>
<asp:Button id="btnAdd" runat="server" text="Count" onclick="btnAdd_Click" /&g... | c# asp.net | [0, 9] |
3,809,203 | 3,809,204 | How to detect whether an image exists in the server using Javascript or Jquery | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/3646914/how-do-i-check-if-file-exists-in-jquery-or-javascript">How do I check if file exists in jQuery or Javascript?</a> </p>
</blockquote>
<p>I need to find out image exists at specific path on server using ja... | php javascript jquery | [2, 3, 5] |
2,259,729 | 2,259,730 | How do I write PHP within Javascript so that I can load files? | <p>How do I write PHP within Javascript so that I can load files? Or is there a better way?
(I am loading text files from the server... so I need to use PHP to load those files. I don't know how to handle call backs in PHP but I can do it in Javascript. And from there if I can do some PHP from within the Javascript,... | php javascript | [2, 3] |
4,205,806 | 4,205,807 | get parent's siblings number went its child was click | <p>Here is my HTML and when tag was click I want to know that what is its <code><li></code> siblings number was. Please Advice me please. </p>
<pre><code> <div id="tabs">
<ul>
<li class="select" ><a href="#" id="tabHotel">Hotel</a></li>
<li >... | javascript jquery | [3, 5] |
197,193 | 197,194 | Jquery .span refresh onclick | <p>Am I correct in thinking this should work?</p>
<p>I have this jquery:</p>
<pre><code><script>
$(function() {
$(".wpsc_buy_button").click(function(evt) {
$(".counter").load("index.php")
evt.preventDefault();
})
})
</script>
</code></pre>
<p>This .span:</p>
<pre><c... | javascript jquery | [3, 5] |
5,299,978 | 5,299,979 | scroll to selected item in html listbox | <p>I have an html listbox :</p>
<pre><code><select id="test" size="5">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6&... | javascript jquery | [3, 5] |
1,508,302 | 1,508,303 | Removing array in javascript | <p>How we can remove an array entry from :</p>
<pre><code> var a = [],b = [],c = [],d = [];
var multi = {
a: a, b: b, c: c, d: d
};
</code></pre>
<p>Means if i want to remove <code>a</code> array from multi . What should i do?</p>
| javascript jquery | [3, 5] |
24,309 | 24,310 | How can I make a div unselectable? | <p>I would like to make specific div's unselectable Double-clicks, etc. should be blocked. </p>
<p><a href="http://jsfiddle.net/VYKfL/" rel="nofollow">Here's what I've tried:</a></p>
<pre><code><div id="test" class="unselectable">asd</div>
$(document).ready(function() {
$.ctrl = function(key, callbac... | javascript jquery | [3, 5] |
4,586,561 | 4,586,562 | connected list controls | <p>sorry for my English google translator. I have three connected lists</p>
<pre><code>$( ".listaAvisosConectados" ).sortable({
connectWith: ".listaAvisosConectados",
dropOnEmpty:true,
}).disableSelection();
</code></pre>
<p>Example online: <a href="http://test.vertudemo.com/" rel="nofollow">http://test.... | javascript jquery | [3, 5] |
557,439 | 557,440 | How to animate an element while using .before in jquery | <p>I want to append .item element before .content element but it just simply removes .item from previous location and append before .content. </p>
<p>What i want is to use some animation that slowly remove .item element from its original position and appear slowly on its new position.. how can i do this?</p>
<pre><co... | javascript jquery | [3, 5] |
54,593 | 54,594 | Javascript and css file search path while running python SimpleHTTPServer | <p>I am running a python SimpleHTTPServer and serving a html file. That html file includes couple of javascript files. When the html file is served by the server I get the following errors.</p>
<pre><code>1.0.0.127.in-addr.arpa - - [15/Jun/2012 13:42:54] code 404, message File not found
1.0.0.127.in-addr.arpa - - [15/... | javascript python | [3, 7] |
1,419,912 | 1,419,913 | jQuery string split the string after the space using split() method | <p>my code </p>
<pre><code> var str =$(this).attr('id');
</code></pre>
<p>this will give me value == <strong>myid 5</strong></p>
<pre><code> var str1 = myid
var str2 = 5
</code></pre>
<p>i want something like this ..</p>
<p>how to achieve this using split method</p>
| javascript jquery | [3, 5] |
5,049,558 | 5,049,559 | jquery click function always returns highest value | <p>I insert elements to the DOM, after that I want to bind a click function to these elements.
This works, but for some reason the links that were created all return the same value, which
is the highest value 'px_amount' has after looping. Very strange :) The first console.log();
does return the right value, and I can ... | javascript jquery | [3, 5] |
2,350,766 | 2,350,767 | get an iframe's "src" value in PHP? | <p>I have an iframe on my page, where on click (a menu) will update the iframe with a new URL depending on what menuitem they select.</p>
<p>I do that by calling javascript function on 'onclick' passing the URL from the menu :</p>
<pre><code> function frameclick(pageurl)
{
$("#iFrame1").attr('src',... | php javascript | [2, 3] |
1,758,035 | 1,758,036 | Javascript never gets called | <p>Any reason for the Javascript is NOT firing ? </p>
<pre><code><asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
<script type="text/javascript">
function ChangeDisplay()
{
alert("Changing");
document.getElementById('warningDiv').innerHTML = "<h1>Change Tex... | javascript asp.net | [3, 9] |
2,539,951 | 2,539,952 | What is Java's interface in C++ | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/318064/how-do-you-declare-an-interface-in-c">How do you declare an interface in C++?</a> </p>
</blockquote>
<p>I am reading Head First Design Pattern book. All the code example are in Java, but my main Programm... | java c++ | [1, 6] |
546,903 | 546,904 | jQuery.HTML not obeying formating within text | <p>Why dose the following not obey formating, the "li"s have no effect</p>
<pre><code><script>
function showENQ() {
jQuery('#enqtext').html("<li>showtext</li>");
}
$('#enq').live('pageshow', function () { showENQ(); });
</script>
<ul data-role="listview" data-filter="true" data-filter... | javascript jquery | [3, 5] |
1,876,627 | 1,876,628 | How to Manage Messages of my application | <p>I currently use a the databse to store my messages but I guess there should be a better way
any idea can help me ?</p>
<p>I mean thoese messages I provide for user in the UI,</p>
<p>Example :
"Data Saved Successfully"
or
"Are You Sure to delete?"</p>
| c# asp.net | [0, 9] |
4,155,750 | 4,155,751 | how can i make screen shot of html div which contains images, and text using php or javascript or jquery? | <p>Is it possible to capture the particular div content and div contains images or text or anything? </p>
<p>if any possible ways with script please tell me.</p>
| php javascript jquery | [2, 3, 5] |
6,013,104 | 6,013,105 | How could I add some attribute of a pop-up window from the parent window? | <p>So I have a pop-up window opened by the following from the parent page:</p>
<pre><code>popitup("foobar.html");
function popitup(url) {
newwindow=window.open(url,'name','height=700,width=1000');
if (window.focus) {newwindow.focus()}
return false;
}
</code></pre>
<p>After the page is popped up, I want t... | javascript jquery | [3, 5] |
518,497 | 518,498 | Get filename(s) where type is defined in asp.net website | <p>If I define a class in a file</p>
<pre><code>~/App_Code/Extensions/MyExtension/MyClass.cs
</code></pre>
<p>Is it possible to retrieve the filename by type (or 'MyExtension' part of it) without hard coding it?</p>
<pre><code>var extTypes = getExtensions();
foreach(var extType in extTypes)
{
// something like
... | c# asp.net | [0, 9] |
5,303,412 | 5,303,413 | Creating a dynamic array | <p>I need to create a dynamic array with a loop.. but I cant seem to get the desired results.</p>
<p>the array I want is: </p>
<pre><code>{
"CategoryName": "somecategoryname",
"Date": "02-17-2012",
"Id": 24,
"ProductToHide": [
{
"IsHide": true,
"ProductId": "someid"
... | javascript jquery | [3, 5] |
2,000,530 | 2,000,531 | How can i pass an object to a new thread generated anonymously in a button listener | <p>I would like to pass an object (docket for printing) to a new thread which will print the docket. My code is:</p>
<pre><code> private final Button.OnClickListener cmdPrintOnClickListener = new Button.OnClickListener() {
public void onClick(View v) {
new Thread(new Runnable() {
public void... | java android | [1, 4] |
4,338,689 | 4,338,690 | What does the Request object do in the following scenario? | <p>If I see something like:</p>
<pre><code>if(Request["Email"])
{
}
</code></pre>
<p>What does this actually mean? Where is the Email collection member actually being set?</p>
| c# asp.net | [0, 9] |
63,972 | 63,973 | php & .net security issue? | <p>I have an old .net application which also contains a vbuletin forum in php.</p>
<p>I have created a <strong>custom handler</strong> to protect access to some files (*.doc etc) for non-autheticated users in .net app. The main problem is that now, <strong>all vbulletin users can no longer access these files.</strong>... | php asp.net | [2, 9] |
2,857,654 | 2,857,655 | POSTing data using for-each with javascript and php? | <p>foreach loop only repeating the last element of the arary?</p>
<p><strong>java Script Code :</strong></p>
<pre><code> <?php foreach($_REQUEST["itemprice"] as $itemprice)
{
?>
+ "&itemname_price[]=<?php echo $itemname?>_price=" + <?=$itemname?>_price.value
<?php... | php javascript | [2, 3] |
4,512,789 | 4,512,790 | Showing on mouseover a div created dynamically and remove | <p>I searched a lot through questions but I did not find the right way. My problem is: I want to create a <code>div</code> dynamically , showing it on <code>mouseover</code> appending it to another <code>div</code>, and remove (through <code>remove()</code> function) on <code>mouseout</code>. I tried couple ways but in... | javascript jquery | [3, 5] |
4,494,559 | 4,494,560 | JavaScript/jQuery to load more from MySQL? | <p>I searched Google on how to do this, and I got the following link:
<a href="http://www.9lessons.info/2009/12/twitter-style-load-more-results-with.html" rel="nofollow">http://www.9lessons.info/2009/12/twitter-style-load-more-results-with.html</a></p>
<p>That is exactly what I want to do, however it's rather confusin... | php javascript jquery | [2, 3, 5] |
3,872,474 | 3,872,475 | formated output of JS contents into a HTML table | <p>i have a javascript file with the following content and would like to generate a dynamic html table with it's content</p>
<pre>(function($) {
My.Shortcuts = {
a: 'Name',
b: 'Elvis',
c: 'Fun'
};
My.Plugins.extend({
Name: {
url: 'http://www.name.com'
example: 'some example ... | javascript jquery | [3, 5] |
3,922,035 | 3,922,036 | Save WebControls.Image to a file or to system.drawings.image | <p>I am generating USPS barcode images so they can be printed to an address label and shipped. I purchased an ASP.Net USPS barcode image creator so It creates the image in an ASP WebControls.Image control. But when its time to print, the only thing i can send to the printer from C# is a system.drawings.image object:</p... | c# asp.net | [0, 9] |
5,650,572 | 5,650,573 | using jquery .find() to get children | <p>I have the following markup:</p>
<pre><code><div id="items">
<div class="item">
<div class="item_box" id="id_1">
<div class="one" id="one"></div>
</div>
</div>
<div class="item">
<div class="item_box" id="id_2">
<div cla... | javascript jquery | [3, 5] |
3,182,876 | 3,182,877 | Better method of retrieving values of checked input boxes via jQuery? | <p>I have several checkboxes and a fake submit button to make an AJAX request:</p>
<pre><code><form>
<input type="checkbox" value="1"/>
<input type="checkbox" value="2" checked="checked"/>
<input type="checkbox" value="3"/>
<input type="checkbox" value="4" checked="checked"/&... | javascript jquery | [3, 5] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.