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 |
|---|---|---|---|---|---|
395,742 | 395,743 | Identifying the Form that is being Submitted using JQuery | <p>I have several forms on a page with different ids and I want to find out which is submitting and its id. How can I do this?</p>
<pre><code>//stop all forms from submitting and submit the real (hidden) form#order
$('form:not(#order)').submit(function(event) {
event.preventDefault();
</code></pre>
<p>The above stops... | javascript jquery | [3, 5] |
2,118,041 | 2,118,042 | Kinda like dynamic function in java/android | <p>I am coming from PHP to Java and I have some questions about "dynamic" functions. </p>
<p>Kinda like in php where you can do an <code>include(VARNAME.".php");</code> and if varname is <code>a</code> it'll include <code>a.php</code> if its <code>x</code> it'll include <code>x.php</code>. </p>
<p>I wanna do that in ... | java android | [1, 4] |
5,167,237 | 5,167,238 | How to call server side function using jQuery in ASP.Net | <p>I am beginner in jQuery. </p>
<p>I want to know that as we can call server side method in ASP.Net by javascript using XMLHttpRequest object and GET verb, similarly can we call the same using jQuery $get() or we are able to do it by POST onley?</p>
<p>Thanks.</p>
| javascript jquery asp.net | [3, 5, 9] |
4,226,627 | 4,226,628 | Why does PHP not have an attribute 'const' like C++ does? | <p>Why does PHP not have the moral equivalent to the C++ <code>const</code>? I think that this is lacking in the PHP language. Is there a way to simulate the same properties as a <code>const</code> object or parameter?</p>
| php c++ | [2, 6] |
2,611,352 | 2,611,353 | web user control adding items problem | <p>On one web user control</p>
<pre><code>public void displayFindingSection(int sectionsid,string text,string head)
{
SectionHeading.Text = head;
DataSet totImgs;
totImgs = objGetBaseCase.GetFindingsNewerImages(sectionsid);
FindingViewerlist.DataSource = totImgs;
DataBind();
SectionText.Text = text;
... | c# asp.net | [0, 9] |
4,714,614 | 4,714,615 | Slideshow Background <body> tag | <p>When a user loads my page I want to let the background color be white then after 5 seconds fade away the color and fade in the picture. And after 5 seconds fade in another picture again so you can create sort of a slide show in the background behind my content. This is what I have now but it doesn't work, any help?<... | javascript jquery | [3, 5] |
2,242,212 | 2,242,213 | Need to show() or remove() an element depending on who's logged in | <pre><code>(function($){
$(document).ready(function() {
$('.nlgchat').hide(); // or do it with CSS...
var usernames = ['Mr.EasyBB','runawayhorses','BL@DE','SirChivas'];
var nameslist='';
$('ul li a.mainmenu').each(function( i ){
var name = $(this).text().split(' ')[3];
nameslist += '||'+name; // ||dana||ro... | javascript jquery | [3, 5] |
217,105 | 217,106 | How can I trouble shoot click events being triggered twice? | <ul>
<li>I have a one page app. </li>
<li>It uses backbone.js. </li>
<li>Click events via mouse trigger once. </li>
<li>Click events via touch device trigger twice. </li>
<li>Unbinding the one click event stops both on touch devices.</li>
</ul>
<p>I can't figure out where to start looking.</p>
<p>This is the JS:</... | javascript jquery | [3, 5] |
4,190,998 | 4,190,999 | JQuery Validation results being placed outside of the cell | <p>I'm having trouble getting the validation function results "Required field" to fill the text input box of a table.</p>
<p>The current code is placing the result to the right of the cell instead of inside.
I'm fairly positive it's the $(this).parent().append portion but after trying several other variations I haven'... | javascript jquery | [3, 5] |
4,134,413 | 4,134,414 | Integration of external jar file in android application using adt 20 | <p>I am trying to use external jar file in android application. The jar file is running well in another java application but when I am trying to use the Jar file with Android Application by BuildPath-> Add External Jars; it is showing following errors </p>
<p>"could not find class referenced from method ".</p>
<p>Pl... | java android | [1, 4] |
2,298,500 | 2,298,501 | convert Javascript to jQuery | <pre><code> //Page A
<input type='text' id='tb'>
var returnedValue = showModalDialog('page2.aspx', window);
//Page B
<input type='text' onkeypress='update(this);'>
function update(Sender) {
var input = window.dialogArguments.document.getElementById("tb");
input.value = Sender.value;
}
</code></pre>
<p>... | javascript jquery | [3, 5] |
3,264,484 | 3,264,485 | javascript problem | <p>i have a javascript function </p>
<pre><code> function alertMe(len)
{
var fu1 = document.getElementById("FileUpload1");
var fu2 = document.getElementById("FileUpload2");
var fu3 = document.getElementById("FileUpload3");
var fu4 = document.getElementById("FileUpload4");
var myCars=new Array... | asp.net javascript | [9, 3] |
5,685,791 | 5,685,792 | Populate drop down from XML - code executing in wrong order | <p>I am trying to populate a drop down box from an XML file using jQuery. When the code is ran it appears to execute in order.</p>
<p>jQuery:</p>
<pre><code> $("#filterButton").click(function() {
var dropdown = new Array();
$.get('../restaurants.xml', function (xmlFile) {
$(xmlFile).find('restaurant').... | javascript jquery | [3, 5] |
5,518,351 | 5,518,352 | 2 or more keys pressed at the same time | <p>Hi guys I have been working with android recently and it's fine until now.</p>
<p>When I want to handle a key down event I just override the onKeyDown method in my activity. The same with the key up event.</p>
<p>The problem is that this just works for a single key, if I press to keys at the same time just one is ... | java android | [1, 4] |
2,976,331 | 2,976,332 | Empty Http Call but no error | <p>I'm trying to call a webservice with my application, but I get no error, the URL is the good one and return something (via the browser), but I get no content.</p>
<pre><code>try {
HttpClient httpclient = new DefaultHttpClient();
HttpGet httpget = new HttpGet(url);
HttpResponse response = httpclient.exec... | java android | [1, 4] |
267,387 | 267,388 | retrieve window.location.hash url in php | <p>I am using a jquery tabbed interface here <a href="http://www.imashdigital.com/#2" rel="nofollow">http://www.imashdigital.com/#2</a> and would like to return the tab number in php.</p>
<p>Ideally I would like to run a javascript function (on a timer) that continually updates a global <strong>php variable</strong> w... | php javascript jquery | [2, 3, 5] |
3,136,147 | 3,136,148 | open text box which clicking on image | <p>I have an image on which "click to edit" is written now when i click that part i want to show edit box where "Type 1" is written.</p>
<p>I have tried to put edit box but unable to get the click event ... </p>
<p>here is the image</p>
<p><a href="http://www.freeimagehosting.net/image.php?55dd1b316d.png" rel="nofol... | javascript jquery | [3, 5] |
3,320,203 | 3,320,204 | JS/jQuery code flow - combine an animation with a click function | <p>I am trying to implement a page that has a simple div when the pointer is outside of it, which fades in to a different div, with different content, on hover.</p>
<p>I want the simple div to not be a link, but the different div to be a link (the entire div).</p>
<p>The following jsfiddle describes and demonstrates ... | javascript jquery | [3, 5] |
4,168,897 | 4,168,898 | Tips for moving from C# to Java? | <p>So I'm going to a job interview next week at a Java place, and would like to not come across as clueless. I'm a pretty confident C#/.NET developer and am (clearly!) willing to consider jumping ship to Java - I'd like links to resources people would recommend for doing this. I'm interested in answers to questions l... | c# java | [0, 1] |
1,769,215 | 1,769,216 | bind focus to a radio button | <p>I'm working in chrome 12, my code is below.</p>
<p>HTML:</p>
<pre><code><input type="radio" class="tooltip" title="test1" name="group" value="1"> 1<br>
<input type="radio" class="tooltip" title="test2" name="group" value="2"> 2<br>
<input type="radio" class="tooltip" title="test3... | javascript jquery | [3, 5] |
3,588,170 | 3,588,171 | JS: Keeping user selection persistent across page reloads | <p>Lets say we have a side bar on a page. It has two tabs. When you click the unselected tab, the content below it in the sidebar instantly switches using jQuery. The old div is hidden, the new div is shown. Not a big deal. </p>
<p>Now that you've selected that div however, when you click to the next page, the history... | javascript jquery | [3, 5] |
4,929,409 | 4,929,410 | How to get the user control textbox value in aspx page? | <p>I have a User control ascx file with a textbox in it</p>
<pre><code><asp:TextBox ID="textboxDate" runat="server" CssClass="FieldValue" MaxLength="10"
Columns="12" autocomplete="off" Style="padding-right: 18px; border: 1px solid #567890;" />
<ajaxToolkit:CalendarExtender ID="calendarExtenderDate" runat="ser... | javascript jquery asp.net | [3, 5, 9] |
4,191,161 | 4,191,162 | View Pager has a mind of its own | <p>I have a set of five panning pages in view pager. All these pages have a list view, Since the data is too much, I pre-fetch the data from the server and populate the list at position+1 itself,</p>
<p>For ex: When the position of the page is 0, I load the adapters with data for page 1 during page 0 itself. </p>
<p>... | java android | [1, 4] |
4,847,038 | 4,847,039 | JS: setInterval and clearIntervals with jQuery | <p>I'm probably tired for staring at this for too long,
maybe someone can clear this up for me:</p>
<pre><code>//scripts in whispers are setup this way.
var something = function(){
setInterval(function1,1000);
setInterval(function2,1000);
blah .. blah...
}
//function2 is the same as this one
var function1... | javascript jquery | [3, 5] |
5,266,527 | 5,266,528 | Change input language for selected Controls - ASP.NET | <p>I've a text area in my application. I want to programatically set the input language for the text area alone without affecting other controls.</p>
<p>Any ideas?</p>
<p>Regards</p>
<p>NLV</p>
| c# asp.net | [0, 9] |
2,764,504 | 2,764,505 | javascript: Defining "this" in the context of a function | <p>When jQuery calls a function as an event handler for a raised event, jQuery is somehow able to define "this" in the context of a function that it calls. In the following example, jQuery define this as the dom element that was clicked on.</p>
<pre><code><input id="someButton" type="button" value="click me!"/>
... | javascript jquery | [3, 5] |
1,802,860 | 1,802,861 | Is Python-based software considered less-professional than C++/compiled software? | <p>I'm working on a plugin for some software that I'm planning on selling someday. The software I'm making it for has both a C++ SDK and a Python SDK.</p>
<p>The C++ SDK documentation appears incomplete in certain areas and isn't documented that well.</p>
<p>The Python SDK docs appear more complete and in general are... | c++ python | [6, 7] |
1,025,547 | 1,025,548 | I want to write a Reordering User Interface? How to do it? | <pre><code><ul style="padding: 5px; margin-left: 20px;">
Hardware
<li style="padding: 10px; margin-left: 40px;">Product 1</li>
<li style="padding: 10px; margin-left: 40px;">Product 2</li>
<li style="padding: 10px; margin-left: 40px;">Product 3</li>
<li style="padding: 10px; margin-left: 40px;">P... | javascript jquery | [3, 5] |
1,710,673 | 1,710,674 | Open anew window using java | <p>Is there any way to open a new window with a specified URL using java only.I know that we can use window.open in javascript but i need it to be in java page.Anyidea?.</p>
| java javascript | [1, 3] |
5,282,575 | 5,282,576 | how to make a counter like badoo.com | <p>I'm really amazed with Badoo.com counter.
How can we implement such a graphical counter, wich is by the way very eye-catching.
When It adds one number it shows all the number from 0 to that number.
With firebug I just noticed that all of it a picture.
They use css to show a specific number.<br>
thanks </p>
| php jquery | [2, 5] |
2,664,682 | 2,664,683 | How to delete an item from an array in jquery? | <p>I have an array :</p>
<pre><code>var menu_items = [];
</code></pre>
<p>I push two element in it like this :</p>
<pre><code> menu_items.push({
order: menu_items.length + 1, // value= 1
title: 'Label',
url: '',
IsSystemMenuItem: true
... | javascript jquery | [3, 5] |
2,261,840 | 2,261,841 | Input field values not adding up correctly | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/588004/is-javascripts-math-broken">Is JavaScript's Math broken?</a> </p>
</blockquote>
<p>I'm attempting to add up three input fields, each containing a value of 33.3 which should total 99.9, however they ar... | javascript jquery | [3, 5] |
3,887,060 | 3,887,061 | what's the difference between these two javascript calls? | <p>what does the 'function' do in the following:</p>
<pre><code>$('.event-row').on('mouseover',function(){
arc.event_handler.event_row_over();
});
$('.event-row').on('mouseover',arc.event_handler.event_row_over );
</code></pre>
<p>thx in advance</p>
| javascript jquery | [3, 5] |
5,696,026 | 5,696,027 | Stripe texts out of string | <p>I want to strip the <code><img></code> tags and it's contents out of my string that is returned from the database.</p>
<p><strong>Example string</strong></p>
<pre><code>//I want to retrive dummy texts from my string.
var string = "<img src='test.jpg'/>dummy texts <img src='text.jpg'/> dummby text... | javascript jquery | [3, 5] |
4,736,970 | 4,736,971 | Using jQuery or JavaScript to Add Attribute to Anchors After DOM Already Loaded | <p>I have an application that requires the "ontouchstart" attribute to be added to each and every anchor in order to have the anchor:active CSS state to work on iOS devices.</p>
<p>Trouble is that the entire application loads content via AJAX after the DOM has already loaded, which means any <code>$(selector).attr('on... | javascript jquery | [3, 5] |
3,341,638 | 3,341,639 | Getting client ID in javascript | <p>I am trying to fix someone else's code and I have lines like this throughout my javascript -</p>
<pre><code>var dataDiv = document.getElementById("ctl00_cpMain_tcMainTabs_tResBDetails_tcDetailTabs_tBDetail_bmrDetailDataDiv")
</code></pre>
<p>What is the preferred syntax?</p>
<p>FYI, this is a jQuery enabled web a... | javascript jquery | [3, 5] |
4,287,763 | 4,287,764 | byte[] operations in Java | <p>Let's say I have array of bytes:</p>
<pre>
byte[] arr = new byte[] { 0, 1, 2, 3, 4 };
</pre>
<p>Does platform has functions that I can use to play with this array - for example, how to invert it (get 4,3,2,1,0)? Or, how to invert part of it (2,1,0,3,4)? Get part of array (0,1,2,3)?</p>
<p>I know I can manually wr... | java android | [1, 4] |
3,497,865 | 3,497,866 | Call jQuery function from PHP | <p>How do I call a jQuery function from PHP?</p>
<pre><code><?php
if ($error == 1) {
?>
<script type="text/javascript">
error('1');
</script>
<?
}
?>
</code></pre>
<p>It doesn´t work.</p>
| php jquery | [2, 5] |
2,813,914 | 2,813,915 | Android: ExpandableListView and context menus | <p>I'm writing an app utilizing <strong>ExpandableListView</strong>.<br>
I use a subclass of <strong>BaseExpandableListAdapter</strong> to provide data to my <strong>ExpandableListView</strong>.</p>
<p>Then I try to add context menus to this view, but these menus should be different for group an child items in the exp... | java android | [1, 4] |
1,067,427 | 1,067,428 | is in iphone javascript Enable dispble? | <p>i have one project working greate but in other iphone not working .both are same model with same os. i m thinking i may be of javascript problem . is it so ? how can i Enable disable javascript wih code ?</p>
| javascript iphone | [3, 8] |
2,826,099 | 2,826,100 | How can i convert the List<string> to a dataset in the required format | <p>Hi all i will read the required Content from an Excel sheet so that i will get the required data and i am saving that to <code>List<String></code> as follows</p>
<p><img src="http://i.stack.imgur.com/eIVIp.jpg" alt="enter image description here"></p>
<p>Now i would like to have my dataset in such a way that... | c# asp.net | [0, 9] |
4,134,527 | 4,134,528 | jQuery: how to change output with click and change functions? | <p>I have a form where I have a group of fields that can be added and removed. One of these fields contains a set of numbers that are added to produce a sum. You can see an example of this here: <a href="http://jsfiddle.net/beehive/HGJck/" rel="nofollow">http://jsfiddle.net/beehive/HGJck/</a></p>
<p>Here's my problem:... | javascript jquery | [3, 5] |
4,561,319 | 4,561,320 | how to convert text to image on the fly without image file | <p>I am doing some sort of directory in ASP.NET, in which everyone has phone numbers displayed.
I dont want harvesting on my site, so instead of writing 123-123-1234 I want it to be rendered from image.</p>
<p>another limitation is that I dont want to save any TMP image file. I want the server to send it right back to... | javascript asp.net | [3, 9] |
2,560,700 | 2,560,701 | JQuery Mobile collapsible does not apply to div | <p>I'm very new to both JQuery and Javascript. I have an feed, I would like to display these feed inside a collapsible div AS a collapsible div. I have the following Javascript file:</p>
<pre><code><script type="text/javascript" src="https://www.google.com/jsapi"></script>
<script type="text/javascript... | javascript jquery | [3, 5] |
3,784,765 | 3,784,766 | JQUERY .show() and div tag in ASP.NET | <p>Basically, when the page loads i set the div visibility to false. When i click the button, i want the code behind function to be called, and the div tag to be visible, true.</p>
<pre><code> $('#Button2').click(function () {
$('#edit').show(function () {
});
});
<input type="submit" ... | jquery asp.net | [5, 9] |
739,124 | 739,125 | How to get Contact Name through Phone Number | <p>I need to directly get the contact name (if registered in contact list) through the contact number. </p>
<p>I can do the opposite (get number through name) with this code:</p>
<pre><code>ContentResolver cr = getContentResolver();
Cursor cursor = cr.query(ContactsContract.Contacts.CONTENT_URI, null,
... | java android | [1, 4] |
2,014,815 | 2,014,816 | How to hide div with jquery within the UpdatePanel onClick event? | <p>This is how I'm trying to do it:</p>
<pre><code> $(document).ready(function () {
$("#ButtonId").click(function () {
$('#DivID').hide();
});
});
</code></pre>
<p>This is not working for me. Any suggestions would be helpful.</p>
<p>Thanks.</p>
| jquery asp.net | [5, 9] |
4,457,823 | 4,457,824 | ASP.Net RadioButtonList SelectedIndexChanged event not firing | <p>I'm building a dynamic RadioButtonList to list all of the records for a particular search item and allow the user to select the relevant option. The problem I'm having however, is that the SelectedInhdexChanged event is never firing.</p>
<p>I've tried initialising the RadioButtonList and assigning its event handler... | c# asp.net | [0, 9] |
1,997,149 | 1,997,150 | Again, how to get data from callback? | <p>I have this code</p>
<pre><code>var children;
$.ajax({
url: Routing.generate('snmp_ajax_get_children', {dev: root}),
async: true, type: "GET"
}).done(function(data) {
var children = Array();
for(var i in data) {
children[i] = data[i].split('|');
for (var j in data[i]) {
... | javascript jquery | [3, 5] |
5,257,359 | 5,257,360 | How to get textbox value in javascript | <p>I have this in the aspx.cs page and trying to get the value of the text box in my js function. This is not working:</p>
<pre><code>result += result.Replace(sOptionText.ToString(), "<input type='text' id=\"txtSS_" + Version + "\" size='10' value=\"" +"\" runat = \"server\" style=\"display:none;\" />");
</code... | javascript asp.net | [3, 9] |
3,374,927 | 3,374,928 | How to limit character in jquery tags input? | <p>i have used the following code to limit the character but it is not working.. pls help me. thanks in advance.</p>
<pre><code> <td nowrap="nowrap">
<asp:TextBox MaxLength="60" runat="server" ID="Keyword" CssClass="TaskTitle" Width="270px"
TextMode="SingleLine" />
</td... | jquery asp.net | [5, 9] |
5,851,062 | 5,851,063 | Jquery to a asp.net control | <p>I am trying to use jquery on an Asp.net control. In asp.net id get generated from server.
so I am trying to write a selector to use jquery.</p>
<pre><code> $(document).ready(function() {
$("#ctl00$cphBody$fv$txtDescription").val('blah');
});
</code></pre>
<p>I need if the id <strong>contains</stro... | jquery asp.net | [5, 9] |
4,250,721 | 4,250,722 | How do I identify which element (or elements) exist at a specific position? | <p>Given the vast number of threads/searches that relate to how to obtain coordinates of an element, I'm having a tough time trying to figure out the opposite - how to get the element (or elements) at a specific x y coordinate. Any suggetions? </p>
| javascript jquery | [3, 5] |
1,415,035 | 1,415,036 | How can I replace values in an array of variables with jQuery | <p>I have this code</p>
<pre><code>newRow = "<tr><td>[[var1]]</td><td>[[var2]]</td><td>[[var3]]</td></tr>"
</code></pre>
<p>Now i have this array</p>
<pre><code>data['var1'] ='test1';
data['var2'] ='test2';
data['var3'] ='test3';
</code></pre>
<p>I want to replace th... | javascript jquery | [3, 5] |
2,245,548 | 2,245,549 | Using .click() twice | <p>My function right now is set to animate a pop up window on mouse over and close the pop up window when the mouse leaves the area.</p>
<p><strong>I would like call .click() twice</strong>. I've been playing around with <code>.click()</code> and can only get it to function once since when used twice it tries to call ... | javascript jquery | [3, 5] |
3,399,557 | 3,399,558 | Jquery conditional statement | <p>I'm really sorry if this come across as stupid but i've searched everywhere but i didn't find any tip on how to go about it.
i have this variable </p>
<pre><code> var id = $('#sometextfield').val();
</code></pre>
<p>This text field value is dynamically generated eg.</p>
<pre><code> <input type="text" name="id... | javascript jquery | [3, 5] |
3,981,738 | 3,981,739 | How to make a custom Dialog which will display once a day | <p>I am doing an application in which a I want to implement a custom dialogn in the main activity.
The thing is a want this dialog to be displayed once a day.
How can I accomplished that ? </p>
| java android | [1, 4] |
3,952,248 | 3,952,249 | Get system ip code not working in server | <p>This code works on my system not in server please help me to fix this error. am not sure what is error..</p>
<p>This is my partial code...</p>
<pre><code>private IPAddress getMyCurrentIP()
{
IPHostEntry host = Dns.GetHostEntry(Dns.GetHostName());
if (host.AddressList.Length == 1)
myCurrentIP = host... | c# asp.net | [0, 9] |
5,966,401 | 5,966,402 | How can I show a dialog box like stackoverflow? | <p>I have the following code on my page:</p>
<pre><code>$('#Report').click(Report);
function Report() {
var e = encodeURIComponent,
arr = [
"dataSource=" + e($('#DataSource').val()),
"statusID=" + e($('#StatusID').val())
];
window.loc... | javascript jquery | [3, 5] |
1,335,259 | 1,335,260 | where does the Editable.append() implemented? | <p>Here is the code :</p>
<pre><code>Editable text = (Editable)mResults.getText(); //mResults is a TextView.
</code></pre>
<p>I want to know, when i call <code>text.append("***")</code>,which implements is called? I can't find where the Editable interface is implemented.</p>
| java android | [1, 4] |
3,713,681 | 3,713,682 | Android MediaRecorder release() issue and Video capturing is not in portrait mode | <p>I am facing some issue while developing Video capturing application.</p>
<p>1) When I start capturing the Video, the <code>surface view</code> comes in landscape mode. I tried a lot. But i failed. I also referred<br>
<a href="http://developer.android.com/reference/android/hardware/Camera.Parameters.html#setRotatio... | java android | [1, 4] |
2,613,064 | 2,613,065 | AND/OR Conditions in jQuery | <p>In jQuery space denotes AND condition "," denotes OR condition, Is that right? But I am facing issues in that. Here is my sample html code</p>
<pre><code><td id="4">
<div id="test1" class="test1"></div>
<div id="test2" class="test2"></div>
</td>
<td id="5">
<... | javascript jquery | [3, 5] |
2,277,956 | 2,277,957 | how to format data | <p>I am getting the following values from database:</p>
<p>99, 12, 12.2222, 54.98, 56, 17.556</p>
<p>Now I want to show that values like below:
99%, 12%, 12.22% , 54.98% , 56%, 17.55%</p>
<p>Please give me any suggestion to acchive this.</p>
| c# asp.net | [0, 9] |
3,043,267 | 3,043,268 | change color of an image using a color picker jquery | <p>i currently need some help, im using [Jquery Minicolors color picker][1]
and i wanted to implement this png color picker transparency to png images basically color png images without clicking the button preview to apply it basically i want to include it in the jquery Minicolors plugin
i made a demo myself but im not... | javascript jquery | [3, 5] |
1,131,535 | 1,131,536 | Repel Objects when mouse is near | <p>I have a bunch of span elements in random positions enclosed inside a parent div called '.background'. These are generated with Javascript. Like this:</p>
<pre><code><span class="circle" style="width: 54px; height: 54px; background: #5061cf; top: 206px; left: 306px"></span>
</code></pre>
<p>I want them... | javascript jquery | [3, 5] |
6,192 | 6,193 | Create variable just a number from text/number string - Razor CSHTML | <p>I have a variable <code>var1</code>. In the current context, it is pulled from the database and will be one of those values: </p>
<blockquote>
<p>2, 6, 7 6t, 7q, 8q, </p>
</blockquote>
<p>The number will only ever be single digit.</p>
<p>The number will only ever be the first characters in the variable.</p>
<... | c# asp.net | [0, 9] |
2,205,258 | 2,205,259 | Python to Javascript | <p>are there any tools for Windows to convert python to javascript?</p>
<p>regards</p>
<p>Alberto</p>
| javascript python | [3, 7] |
2,895,249 | 2,895,250 | I have two javascript block in the page , one is adding dynamicllay which is , providing all images. should add above existing javascript on page | <p>i am using following code to add javascript dynamically </p>
<pre><code> HtmlGenericControl scriptTagLinks = new HtmlGenericControl("script");
scriptTagLinks.Attributes["type"] = "text/javascript";
var scrip = "var aImgs=[" + appendString.ToString().TrimEnd(new char[] { ',' }) + "]";
scriptTagLinks.InnerHtml = ... | c# javascript asp.net | [0, 3, 9] |
2,301,008 | 2,301,009 | 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] |
5,608,182 | 5,608,183 | How to validate input controls in jquery and json, asp.net | <p>I am using jquery and json to save data to the database. How can I apply validation on textboxes. if conditions fails i have applied return false; still json data saving code executes.</p>
<pre><code>$('input[type=text]').each(function() {
// Ex: Person['FirstName'] = $('#FirstName').val();
... | jquery asp.net | [5, 9] |
4,128,160 | 4,128,161 | send the form information to my email box with php | <pre><code><input type="button" class="button" />
<form action="" method="">
<input type="text" name="name" />
<input type="text" email="email" />
<input type="text" phone="phone" />
<textarea name="message"></textarea>
<input type="submit" class="submit"/>
</form>
... | php jquery | [2, 5] |
5,501,391 | 5,501,392 | create photo slide using javascript | <p>I'm using VS2010,C# to develop a small enterprise ASP.NET web app for a company, I've created a history page, and I'm going to develop a simple photo slide using JavaScript (no JQuery if possible), is there any ready-made library? something that displays small thumbnails of images and where users mouse overs each on... | javascript asp.net | [3, 9] |
2,883,000 | 2,883,001 | CSS stylesheet value is not modifying | <pre><code>function getStyle(Selector, Property, Value, StyleSheetIndex) {
var Selectors = document.styleSheets[StyleSheetIndex].rules;
for (var i = 0; i < Selectors.length; i++) {
if (Selectors[i].selectorText == Selector) {
alert(Value + " " + Property);
... | javascript jquery | [3, 5] |
19,732 | 19,733 | How to obtain the current url | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/593709/how-to-get-the-url-of-the-current-page-in-c-sharp">How to get the URL of the current page in C#</a> </p>
</blockquote>
<p>If I am in a page say <code>http://myweb/folder/obtain.aspx?thevalue=3</code> , ho... | c# asp.net | [0, 9] |
5,665,244 | 5,665,245 | Am i limited with C# and ASP? | <p>Currently, i have basic C++ and PHP skills.
But, i want to switch to C# and ASP ( for the web part ).
Why ? you will ask.
Because i have the opportunity to learn pretty easily C# ( including OOP-ed ) to a pretty advanced level.
And because i read that ASP is very similar to C#, i'm thinking to learn it.</p>
<p>So, ... | c# asp.net | [0, 9] |
1,974,598 | 1,974,599 | Selecting values from a multiple select picklist with Javascript | <p>How would I set values of a picklist with Javascript? Like for example, a page loads, and I want several values of a picklist to be selected (I will generate these with PHP from the database and echo the actual Javascript). I don't need the actual page load part, just how to select a value out of a picklist (with mu... | php javascript | [2, 3] |
5,002,215 | 5,002,216 | Append data to css class - jQuery string operation | <p>Please take a look at the following html.
EDIT: UPDATED THE HTML PART</p>
<pre><code><div id="html_editor">
<head>
<style type="text/css" >
.blog
{
border:2px solid grey;
width:auto;
}
<style>{customcss}</style&... | javascript jquery | [3, 5] |
1,676,104 | 1,676,105 | Preventing the same sum from appearing | <p>In my game, sums are created randomly by the program and displayed at the top. The user then has to click on the correct number to answer the sum. At the moment there is no way for me to make sure that a sum that requires the same answer as the previous one is chosen. How can I prevent this from happening so that th... | javascript jquery | [3, 5] |
5,957,673 | 5,957,674 | Verify each line of a text area starts with something | <p>I'm trying to validate a textarea making sure that each line starts with 'http://':</p>
<p><a href="http://jsfiddle.net/n8zYB/1/" rel="nofollow">http://jsfiddle.net/n8zYB/1/</a></p>
<p>When the url is wrong, it executes the else statement but if it's correct, it isn't getting executed.</p>
<p>What's the problem? ... | javascript jquery | [3, 5] |
4,477,718 | 4,477,719 | call local image in drawable with html (WebView) | <p>This question has been asked few times in forums, but in my code, i can't display my image. I think it's not the right method :</p>
<pre><code>webViewContact.loadData(db.getParametres().get(0).getInformationParam(), "text/html", "utf-8");
</code></pre>
<p>getInformationParam() recup the HTML code, like :</p>
<pre... | java android | [1, 4] |
5,724,282 | 5,724,283 | simple Data Pass between HTML, Url static | <p>Actually, I have already asked this question here: <a href="http://stackoverflow.com/questions/12669506/jquery-simple-data-pass-html">jQuery simple Data Pass HTML</a></p>
<p>I have 1/2 achieved my goal,
I am using <code>window.location.href</code> to pass the variable "<code>VISITORNAME</code>"
the Url looks <code... | javascript jquery | [3, 5] |
433,427 | 433,428 | How to add events that repeat on specific days of the week indefinitely with fullcalendar | <p>I see the example for repeating <code>events</code> in the code but I'm confused as to how it works. How would I go about adding an event (adding <code>events</code> as an array for now) which occur every Monday at 4:30pm? I'm trying to use the basicWeek view.</p>
| javascript jquery | [3, 5] |
1,980,652 | 1,980,653 | submit button also validates and display an alert dialog | <p>In my application i am using a submit button which validates that all fields are inserted or not and then it shows an alert dialog that do u want to save or not.
Here is my code:</p>
<pre><code>public void OnClick_click2(final Button btnadd)
{
final Button btn = (Button) btnadd;
if(btn.getId()==R.id.btnadd)... | java android | [1, 4] |
2,671,503 | 2,671,504 | global admin page for multiple applications in ASP.Net | <p>I was wondering if anybody could give advice on a secure way to implement a global login. I have an admin page that accesses active directory admin groups after typing in your username and password. </p>
<ol>
<li>current logged in account (on computer) does not matter</li>
<li>user in web browser goes to web app, r... | c# asp.net | [0, 9] |
1,303,410 | 1,303,411 | How to add a ComboBox to an asp.net unbound GridView | <p>I wonder how I can add a ComboBox column to an unbound GridView <em>through code at runtime</em>.</p>
| c# asp.net | [0, 9] |
5,850,828 | 5,850,829 | select a child element in jquery object | <p>I'm new to jquery and I have a basic question now.</p>
<p>I have a jquery object got from a jquery selector. e.g</p>
<pre><code>var obj = $('#certainTR');
</code></pre>
<p>Now, I want to get the element in this object and I cannot use '#certainTR > date' in a selector because '#certain' is not passed in my subro... | javascript jquery | [3, 5] |
304,108 | 304,109 | error:'ddVehicleType' has a SelectedValue which is invalid because it does not exist in the list of items. Parameter name: value | <p>I have a dropdownlist as 'ddVehicleType' that is in edit field. iam getting value from database when page load. but the error is coming like</p>
<pre><code> 'ddVehicleType' has a SelectedValue which is invalid because it does not exist in the list of items.Parameter name: value
</code></pre>
<p>my coding is,</p... | c# asp.net | [0, 9] |
3,594,400 | 3,594,401 | LINQ Except query with an XElement | <p>I have a data set that I receive from a service. The data comes in XML format. We are given an XElement object with all the data. The structure of the XML document is very simple. Looks like this:</p>
<pre><code><root>
<dataPoint>
<id>1</id>
<param1>somedata</param1>
&... | c# asp.net | [0, 9] |
6,013,325 | 6,013,326 | Playing sound on app startup | <p>How do I go about getting my app to play an mp3 (in my res) on startup? Or how how about if I wanted this to happen when a button is clicked?</p>
| java android | [1, 4] |
3,748,634 | 3,748,635 | javascript comparing strings (for date purposes) | <p>Ive only ever done absolute comparisons before, so Im a bit stuck as to how to deal with this...</p>
<p>I have two strings returned from PHP (format is DATE_ATOM i.e 2012-01-20)</p>
<p>What I need to do is compare one string (date) against another - however, I need to return true on the following three conditions<... | php javascript | [2, 3] |
2,671,344 | 2,671,345 | jquery: Finding the last child from a selector | <p>For example, I've got a selector here</p>
<pre><code>var $myNeeds = $('.history');
</code></pre>
<p>This selector would have multiple divs inside, and now I want to get the last child from it, how to do this?</p>
<p>I tried <code>$myNeeds.last()</code>, this won't work!</p>
| javascript jquery | [3, 5] |
1,870,486 | 1,870,487 | Post form data to a new page and show that page with the posted data | <p>I have:
form.php
preview.php </p>
<p>form.php has a form in it with many dynamically created form objects. I use jquery.validation plugin to validate the form before submitting.
submit handler: </p>
<pre><code>submitHandler: function() {
var formData = $("#myForm").serialize();
$.post("p... | php jquery | [2, 5] |
5,737,968 | 5,737,969 | I want to display the alert box but for a certain interval. is it possible in javascript or in php? | <p>Right now i am using java-script to display alert message box. it contains ok button if i click the button then only it hides .But my requirement is to display it only for few seconds then it should automatically close and redirect to my page. </p>
<pre><code>?>
<script type="text/javascript">
alert("Ente... | php javascript jquery | [2, 3, 5] |
4,008,272 | 4,008,273 | If parent div is animated by jquery is it possible to prevent some child elements from animating? | <p>I wonder if its possible to keep child elements from being animated. like in the following example: ( <a href="http://jsfiddle.net/JsfMF/6/" rel="nofollow">http://jsfiddle.net/JsfMF/6/</a> ) </p>
<p>
</p>
<pre><code><head>
<meta charset="utf-8" />
<title>test</title>
<script ... | javascript jquery | [3, 5] |
883,802 | 883,803 | trigger click on element that has multiple class | <p>I have the following element:</p>
<pre><code> <a href="#" class='popup register'>Register</a>
</code></pre>
<p>and I want to trigger a clic action on this, how do I do this? I tried doing:</p>
<pre><code>$('.popup .register').trigger('click');
</code></pre>
<p>but it didn't work</p>
| javascript jquery | [3, 5] |
2,536,139 | 2,536,140 | How to run javascript in java programming | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/1999503/how-can-i-run-javascript-code-at-server-side-java-code">How can I run JavaScript code at server side Java code?</a> </p>
</blockquote>
<p>How possible to run <strong>java script</strong> in <strong>java ... | java javascript | [1, 3] |
3,686,382 | 3,686,383 | android indexoutofboundsexception passing bundle through intent | <p>I have stumbled upon an issue I can't figure out right now. I get an index out of bounds exception when I pass a bundle to a new activity in intent extras. </p>
<p>I use the following code:</p>
<pre><code>Intent intent = new intent(this, statelistactivity.class);
Bundle bundle = new bundle();
Bundle.putInt("id", ... | java android | [1, 4] |
350,927 | 350,928 | how to get the current page number from history in JavaScript? | <p>I am using vs2010.</p>
<p>I used two link to back/forward between pages.</p>
<p>the code like,</p>
<pre><code> <a href="#" onclick="history.go(-1);return false"><img src ="Images/back.jpg" /></a>
<a href="#" onclick="history.go(1);return false"><img src ="Images/forward1.jpg" /><... | javascript asp.net | [3, 9] |
5,732,904 | 5,732,905 | Get css properties from string | <p>I am creating a plugin that allows the user to define the notification by typing something like this.</p>
<pre><code>growl-top-left-300px;
</code></pre>
<p>I was using a split to get rid the width, but this still required me to have quite a few if statements because I user had the following choices</p>
<p>for exa... | javascript jquery | [3, 5] |
1,013,508 | 1,013,509 | Java/Python: Integration, problem with looping updating text | <p>Basically I have a script in Python that grabs the text from an open window using getWindowText() and outputs it to the screen. The python loops so as the text in the window changes, it outputs the changes, so the output of the python will always be up to date with the window text.</p>
<p>I'm trying to access this ... | java python | [1, 7] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.