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,025,258
3,025,259
Opening a select box using js in Android web browser
<p>I have a standard <code>&lt;select&gt;</code> and would like to open it when a user clicks on another element. It's pretty simple in a regular browser and even on the iphone, but for some reason nothing working on Android.</p> <p>I've tried the click and focus events, and also tried changing the size attribute of t...
javascript jquery android
[3, 5, 4]
3,801,263
3,801,264
Drop down list issue
<p><strong>Html</strong></p> <pre><code> &lt;a id="btn" class="btn" href="#."&gt;&lt;/a&gt; &lt;div id="main-dropdown" class="hide"&gt; &lt;ul id="dropdown"&gt; &lt;li&gt;&lt;a href="/"&gt;Back &lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="/foo"&gt;Foo &lt;/a&gt;&lt;/li&gt; &lt;...
javascript jquery
[3, 5]
1,585,129
1,585,130
jQuery clickable not checked input:checkbox? select all check boxes?
<p><strong>Q1:</strong> I create a "jQuery clickable" I want when click on <code>input:checkbox</code> in rows checked <code>it input:checkbox</code>(like when click on rows)</p> <p><strong>Q2:</strong> I want when click on <code>input:checkbox(no row)</code> in "first row(tr)" <strong>select all check boxes</strong>?...
javascript jquery
[3, 5]
5,020,604
5,020,605
jQuery UI Multiselect Events
<p>I'm using <a href="http://www.quasipartikel.at/multiselect/" rel="nofollow">this</a> Multiselect jquery component. and I can't figure how to trigger and subscribe to the events of this thing. (I'm new to js).</p> <p>What I've been trying so far is to trigger a collectionChanged event in the _updateCount function of...
javascript jquery asp.net
[3, 5, 9]
2,140,214
2,140,215
C# and Javascript Variable
<p>I have a variable that is like this:</p> <p><code>var dependentVar = "'&lt;%: somevalue %&gt;', '&lt;%: somevalue2 %&gt;', '&lt;%: somevalue3 %&gt;'";</code></p> <p>Which must be passed into a another variable </p> <p><code>var newVar = new var.Function(dependentVar)</code>. </p> <p>The function is like</p> <p>...
c# javascript jquery
[0, 3, 5]
3,821,608
3,821,609
Repeater Retrieve the previous index Property value
<p>I am using the Repeater control in Asp.net.</p> <p>I have scenario where based on the condition i have to Retrieve the previous index Property value.</p> <p>Please, help.. </p>
c# asp.net
[0, 9]
2,468,742
2,468,743
Javascript post data and head to next page
<p>I have a php page can check user's data, if data are correct, those data will pass to next page. </p> <p><code>if(data are correct){header("location:nextpage.php?data=...");}</code></p> <p>However I don't want those data to show on address bar. Since I can't use post here. Is possible to use javascript or Jquery t...
php javascript jquery
[2, 3, 5]
4,120,959
4,120,960
Passing values from ASP.NET to PHP
<p>Is there anyway to pass values from ASP.NET to PHP easily using Session or any other? I tried in the below way but it didn't work for me. Anybody either correct the below code or suggest me a way to pass values from ASP.NET to PHP without using URL query string.</p> <p>ASP.NET code.</p> <pre><code>protected void B...
php asp.net
[2, 9]
5,386,244
5,386,245
how to get current date in the below format using jquery
<p>how to display the date in this below format using jQuery.</p> <pre><code>Thursday, January 08, 2013 </code></pre> <p>I saw some plugins but wondering if there is a way without using any plugin.</p> <p>Please advise if there is a straightforward answer using JavaScript, that's fine too.</p>
javascript jquery
[3, 5]
4,131,114
4,131,115
Pass value between asp.net web page
<p>I'm using asp.net with c# in backcode. On my first page, I have a hyperlink with <code>NavigateUrl ="Order.aspx?productId = " + ProductID</code> . I want to transfer <code>ProductID</code> in <code>Order.aspx</code> file. So, how to get it in target file :<code>Order.aspx</code>.</p> <p>I used a lable to display i...
c# asp.net
[0, 9]
1,833,373
1,833,374
Display tip on home page by day number in asp.net
<p><strong>Scenario:</strong>.I have 30 tips in xml file, now I want to display it on home page by day number.</p> <p>For example, today is the 12th then tip number 12 will be displayed on the home page and after that 13 and so on. After 30 tips it will start from tip 1.</p> <p>I have tried following code</p> <pre><...
c# asp.net
[0, 9]
1,095,969
1,095,970
Best Framework for making webbased games in java
<p>I have been research tihs topic in web for a while and i want to make a webbased strategy game which can be fast and efective. But my game will not be a graphical game. my game will be like that players will make castles armies, ships etc. Then players going to battle with each other. So ı am stuck with java or php....
java php
[1, 2]
1,728,654
1,728,655
c# and checkboxes in asp.net
<p>Hy all,</p> <p>I want an idea from you.I have 2 tables.From table1 I want to populate a checkboxlist and from table2 I want to also populate a checkboxlist but depending on the first checkboxlist.So if I have 5 rows in table1 then 5 checkbox. I want if I check the first checkbox some others checkbox appear with da...
c# asp.net
[0, 9]
3,268,214
3,268,215
Listening to Trigger
<p>I am using a library that when complete will trigger an event via <code>$(document).trigger('playlistDone');</code>. I am listening to this trigger but I am not getting the <code>alert()</code> I am expecting.</p> <pre><code>$(document).bind('playlistDone', function() { alert('done'); }); </code></pre> <p>What...
javascript jquery
[3, 5]
4,716,433
4,716,434
how to make running activity disable while progress bar running in java android
<p>i have an activity or screen which contains mainly 3 views (ex.textview1,textview2,textview3) and a progress bar.</p> <p>While progress bar running or loading if i click on either of textview1,textview2,textview3, corresponding next activity or screen is opening.</p> <p>But i want like while progress bar running r...
java android
[1, 4]
3,232,366
3,232,367
How to switch activity with item specific data sent
<p>I've had a look around, and it might be because I'm not sure what I'm looking for, but I can't find out how to do something I presume should be quite easy with android.</p> <p>I have an array of data to display on the screen. This data is a class that holds a database key, name and image.</p> <p>I'm currently disp...
java android
[1, 4]
4,225,521
4,225,522
Expected identifier, string or number
<p>I'm trying to implement some webcam jquery script / plugin into my page, in firefox it works flawlessly, in IE i'm getting this error:</p> <p>Expected identifier, string or number. Line 151 Char 13</p> <p>Which is the following part:</p> <pre><code> $.webcam._flash = $("#jquerywebcamflash"); } else...
javascript jquery
[3, 5]
1,997,470
1,997,471
Java vs native coding in Android Application development
<p>I plan to create an SDK (involving huge data manipulations), which can used to create applications on Android.</p> <p>I plan to develop the complete SDK, including the libraries in Java, for the reason that if I implement my libraries in the native language(C++) the data movement between the Java and the native lay...
java android c++
[1, 4, 6]
4,324,566
4,324,567
Android Demo's aren't appearing in simulator
<p>I'm trying to get my feet wet with Android development. I downloaded Eclipse, and setup the ADT. When I create a project from existing source, I choose the demo projects (API Demo) and compile + run. The simulator pops up but I can't seem to find the API Demo application. How can I get this up and running?</p>
java android
[1, 4]
3,799,439
3,799,440
iPhones jQuery show/hide conflict with auto scrolling slideshows
<p>There seems to be an issue with iPods and iPhones (4,4S, and probably 5). We have an autoscrolling slideshow utilizing Flex Slider. I have a toggle trigger to show and hide our menu (div). When the menu is toggled open and the slideshow auto scrolls to the next image the menu closes. On my Android phone (Android ...
jquery iphone
[5, 8]
4,606,968
4,606,969
radio button to enable form fields
<p>I have a form containing two radio buttons, I want to enable corresponding fields when a radio button is checked. My code just isn't working, here it is:</p> <pre><code>&lt;head&gt; &lt;script type="text/javascript" src="jquery.js"&gt;&lt;/script&gt; &lt;script type="text/javascript"&gt; $(document).ready...
javascript jquery
[3, 5]
381,450
381,451
How do I get the index of a list item during a click even on that item?
<p>How do I get the index of a list item during a click even on that item?</p> <pre><code>&lt;ul&gt; &lt;li&gt;&lt;/li&gt; &lt;li&gt;&lt;/li&gt; &lt;li&gt;&lt;/li&gt; &lt;li&gt;&lt;/li&gt; &lt;li&gt;&lt;/li&gt; &lt;ul&gt; $('li').live('click', function(e){ alert(e.index); }) </code></pre> <p>...
javascript jquery
[3, 5]
1,578,944
1,578,945
Syncronize count down time for all users
<p>I need to synchronize the count down time for all users.So it will display identical remaining time to all in asp.net.</p> <p>Waiting for your valuable thoughts </p> <p>Thanking You </p>
c# asp.net
[0, 9]
4,639,930
4,639,931
What is the meaning of A potentially dangerous Request.Form value was detected from the client error message
<p>I was trying to send an email via my web project using <a href="http://freetextbox.com/" rel="nofollow">Free text box</a> control.It is an text editor . but I've got this error.</p> <p><strong>A potentially dangerous Request.Form value was detected from the client (FreeTextBox1="<b>hello my dear</b>").</strong> I s...
c# asp.net
[0, 9]
3,424,585
3,424,586
jQuery asp control .prop(“disabled”, “”) not enabling check box in IE 9
<p>I’m trying to enable a check box on an Aspx page using the following code.</p> <pre><code>$("#ctl00_ContentPlaceHolder1_chkCheque1").prop("disabled", ""); </code></pre> <p>This code is executed when an item in a drop down list is clicked and works in chrome and Firefox, but not IE 9. </p> <p>I can see the code be...
jquery asp.net
[5, 9]
2,260,434
2,260,435
How to pass textbox value to java script on button click event
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/765205/how-to-pass-text-in-a-textbox-to-javascript-function">How to pass text in a textbox to javascript function?</a> </p> </blockquote> <p>I need to pass the text box value as parameter of javascript method wh...
javascript asp.net
[3, 9]
1,678,218
1,678,219
Adding Meta Tag Programatically in c#
<p>I tried to add meta tag programatically it is working fine when there is Head element with runat ="server" in .aspx page .</p> <p>The code behind is:</p> <pre><code>HtmlMeta meta = new HtmlMeta(); meta.Name = "robots"; meta.Content = "noindex,follow"; this.Page.Header.Controls.Add(meta); </code></pre> <p>But ...
c# asp.net
[0, 9]
2,875,998
2,875,999
Android Location Promixity Query
<p>I'm working on an app, where I need to determine which sqlite rows are closest to me given my current lat/long. I have a table with lat and long columns, I'm just having a bit of trouble working out how to get ones that are closest based on my devices current location. Any help would be appreciated. </p>
java android
[1, 4]
3,128,160
3,128,161
Convert a string to a resource Uri for mp3 playback
<p>I am trying to play an mp3 using the Media player class. When I hardcode the mp3 resource it works, however I would like the resource to come from a string instead of directly accessing it like <code>R.raw.mp3name</code>.</p> <pre><code>Bundle bundle = getIntent().getExtras(); String Choice= bundle.getString("bundl...
java android
[1, 4]
5,808,326
5,808,327
Why won't my code work in Java?
<p>Here's my code in C#:</p> <pre><code> string month; do { Console.WriteLine("put month"); month = Console.ReadLine(); switch (month) { case "1": Console.WriteLine("dsad"); Console.ReadLine(...
c# java
[0, 1]
2,808,137
2,808,138
Get codebehind to create a complete JS section
<p>I want my codebehind to dump a very large set of JS into the ASPX page. This is required, as I can't use external JS code for this component, and the code is also unique to each customer. Is it possible to do this from codebehind? I know how to set the value of text boxes etc. (.Text/.Value = xxx) but I can't see ho...
c# javascript asp.net
[0, 3, 9]
3,778,959
3,778,960
Passing any variable value from Java to JavaScript
<p>I'm using a webview in my android application, and the web address that the webview loads contains some JavaScript. Now, I just want to know if it is possible to pass in some variable values from my Java Code to my JavaScript.</p> <p>Here's my code:</p> <pre><code>public void onCreate(Bundle savedInstanceState) { ...
java javascript android
[1, 3, 4]
529,591
529,592
Insert datatable in to sql table
<p>I have a data table named <code>dt2</code>. And it contains some datas.I want to add these data to my table named invitationdata.</p> <p>How can I write the code?any one help?</p>
c# asp.net
[0, 9]
3,019,066
3,019,067
not called Looper.prepare() when running a Timer from CallBack
<p>I'm in this code I am cycling through an attaylist of objects and assigning each object a callback, yet when I get to using a CountDownTimer, it crashes with <strong>Can't create handler inside thread that has not called Looper.prepare()</strong></p> <pre><code> for ( final ABoxActor a : actList ) { ...
java android
[1, 4]
825,789
825,790
How to send an Email with longitude and latitude coordinates or maybe send a Google static map using c#
<p>How to send an Email with longitude and latitude coordinates or maybe send a Google static map using c#. The information should represent the sender email address or IP address as to where the sender is located. </p> <p>I am using a simple email form and would like to add this feature to it. How do I go about this ...
c# asp.net
[0, 9]
3,600,636
3,600,637
JavaScript/jQuery weirdness concerning re-insertion of an element
<p>I've got a good sized script(200 lines or so) and I'm having problems with a seemingly trivial element of the code. I have a page and I am replacing the entire body with JS, however I need to re-attach a form so it can still be submitted after the page restructuring. (That submission will be triggered through JS.) H...
javascript jquery
[3, 5]
5,445,353
5,445,354
access a Properties.Settings via javascript in asp.net?
<p>is it possible to access a <code>Properties.Settings</code> which I set in my visual studio asp.net project via javascript?</p>
javascript asp.net
[3, 9]
2,535,594
2,535,595
Can PHP handle enterprise level sites as well as Java
<p>PLEASE NO FLAMING! </p> <p>I really would love a few objective opinions about the issue. I have a project that has been strongly developed in PHP but have clients that are concerned that Java would be a better solution. I know sites such as Flickr and Digg are run on PHP, but I am concerned that PHP's lack of a run...
java php
[1, 2]
4,893,377
4,893,378
jquery: event for simulating live typing
<p><strong>Part 1:</strong><br> Is there any event I can use to get a callback when the user 'change' the input field. My definition of change is to simulate the following effect. say, I want to update a label while the user typing in the input box. I tried jquery "change" event. It works, but doesn't have the live e...
javascript jquery
[3, 5]
2,836,163
2,836,164
How to close total application in Android?
<p>I am new to android application development.</p> <p>I developed one android application, in this application when the user presses back or exit buttons I call the finish() method. This method closes the current activity only.</p> <p>My requirement is when i click on the exit button, it should close all activities ...
java android
[1, 4]
3,653,046
3,653,047
Constructing a URL with parameters using jQuery
<p>I have for example the following URL stored in a global variable:</p> <pre><code>var myUrl = "http://mydomain.com/something?row=1"; </code></pre> <p>Then a function has to add let's say another parameter called "<em>column</em>". How would that function add parameters to a pre-existing URL string using jQuery?</p>...
javascript jquery
[3, 5]
4,119,958
4,119,959
Random parameters in javascript
<p>I know this may be a very basic question, sorry if it is but in javascript/jquery i sometimes come into contact with a function having a random parameter that doesn't seem to serve an obvious purpose, such as this one below used on the jquery website.</p> <pre><code> $("div").mousemove(function(e){ var p...
javascript jquery
[3, 5]
250,723
250,724
How to automatically reload page after a certain time based on a php variable
<p>I currently have a php file that automatically plays the song at the top of a playlist. I have a <code>$duration</code> value that I pull from a mysql database and I want the page to automatically refresh after the song is finished playing.</p> <p>The song is currently played within an iframe so this is the only wa...
php javascript
[2, 3]
3,120,824
3,120,825
Sugestion for FB meta tags using jquery and php
<p>here is my problem:</p> <p>i have FB app, where i am getting data from json and using that data for making list of items in my main window, i can click on every item, and after i click it opens in new ajax window where i get more info about that item</p> <p>problem is about meta tags for FB, cos i have LIKE button...
php jquery
[2, 5]
1,423,533
1,423,534
jQuery override form submit not working when submit called by javascript on a element
<p>I've got a page with a normal form with a submit button and some jQuery which binds to the form submit event and overrides it with <code>e.preventDefault()</code> and runs an AJAX command. This works fine when the submit button is clicked but when a link with <code>onclick='document.formName.submit();'</code> is cli...
javascript jquery
[3, 5]
2,687,527
2,687,528
@ sign has no effect in C# aspx
<p>I am using Webmatrix to write my aspx and I find that @ has no effect to my asp codes.</p> <pre><code>&lt;%@ Page Language="C#" %&gt; &lt;html&gt; &lt;body&gt; @for(var i = 10; i &lt; 21; i++) {&lt;p&gt;Line @i&lt;/p&gt;} &lt;/body&gt; &lt;/html&gt; </code></pre> <p>This program, instead of outputing Line 1, Line ...
c# asp.net
[0, 9]
1,087,263
1,087,264
How can I check if the network has change state during run time of my android application?
<p>I'am developing an application for android, which needs network in order to retrieve some information from an xml file. I've got this code, that looking for if the users has enabled the network:</p> <pre><code>public boolean isOnline() { ConnectivityManager cm = (ConnectivityManager) getSystemService(Co...
java android
[1, 4]
5,251,068
5,251,069
Efficiently read binary data into int[]
<p>I have binary data in a file (a list of 32-bit integer values) that I need to get into an int array efficiently. I can't see any way to do this other than loading the data into a byte[] and then converting it into an int[] one element at a time. This is too slow for the amount of data I need to load. It takes about ...
java android
[1, 4]
5,497,999
5,498,000
Disable fadein animation
<p>I am trying to create a splash screen for my app. The problem is it first renders empty layout with default title bar and then fades in my image.</p> <p>This is all I have <code>onCreate</code></p> <pre><code>super.onCreate(savedInstanceState); this.requestWindowFeature(Window.FEATURE_NO_TITLE); this.setContentVie...
java android
[1, 4]
4,009,800
4,009,801
HashMap doesn't provide values in the order in which added them
<p>I am putting values in HashMap. But when I am reading values from that HashMap; I am NOT getting those values in the ORDER in which I have added them. Can any-one help me?.</p>
java android
[1, 4]
4,826,909
4,826,910
Example code of select display area images
<p>Trying to make a better question</p> <p>There are a lot of images on different width and height, what i want to do is to resize those image to a certain size and shop image on the croppea area to have every image on the same size.</p> <p>is there any way to archived this.</p> <hr> <p>This website his the example...
javascript jquery
[3, 5]
100,577
100,578
Open source Java Library for guitar chords detection when you play an mp3 music file
<p>I am looking for an alternative in java as most of the libraries I found were written in c++ E.x. the clam library. <a href="http://clam-project.org/wiki/Chordata_tutorial" rel="nofollow">http://clam-project.org/wiki/Chordata_tutorial</a></p> <p>Does any body know a good java library which does pitch synthesis from...
java android
[1, 4]
4,680,990
4,680,991
how can i generate dynamic hidden values in a form
<p>I have got a shopping cart which is build using jquery and php. and I need to generate hidden values for item id. Every time I click add, the value must be different.</p> <p>I do not know how to create dynamic values which will be different on each click.</p> <p>At the moment I created with php the following code....
php javascript jquery
[2, 3, 5]
1,898,036
1,898,037
Wait for a function to finish before if()else()
<p>I have this:</p> <pre><code>var myError; function getNames(user,location){ myError=null; //Make an Ajax Call (this takes some time) //On Success do this: if(//Some Condition){ myError=false; }else{ myError=true } } function first(){ getNames(user, l...
javascript jquery
[3, 5]
5,082,680
5,082,681
jQuery Event Keypress: Which key was pressed? A-Z, & @
<p>on a keydown I get the following from jQuery:</p> <pre><code>jQuery.Event altKey: false attrChange: undefined attrName: undefined bubbles: true button: undefined cancelable: true charCode: 0 clientX: undefined clientY: undefined ctrlKey: false currentTarget: HTMLDivElement data: undefined detail: 0 eventPhase: 2 fr...
javascript jquery
[3, 5]
209,296
209,297
Script downloading DI.FM list works only under Opera
<p>Hello fellow stackoverflow'ers! Today I was tired of old dead links to my fav internet radio, so I decided to make a downloader for all channels from di.fm. The idea was simple: download the page, get to the menu and parse it. After that create a playlist and make user download it.</p> <p>So I created a PHP script ...
php javascript jquery
[2, 3, 5]
4,083,644
4,083,645
Insert element between index x, y
<p>I try to insert list item between list elements:</p> <pre><code>$('#deals-providers dt').each(function(index) { if (index == 10) { $(this).insertBefore($('&lt;dt/&gt;').text('More item')); } }); </code></pre> <p>but it doesn't work. How can I do this?</p>
javascript jquery
[3, 5]
4,835,146
4,835,147
jQuery not loading on Master Page when the Content Page is in a child folder
<p>I have a site where I am trying to implement a jQuery UI based MessageBox in my master page. Content pages are arranged accoring to business area folders, i.e. '~/Branding/Contracts.aspx'. I find that when I load such a content page, jQuery, which is referenced in the master page as below, does not load. I assume...
asp.net jquery
[9, 5]
2,653,464
2,653,465
Javascript objects and loops optimization
<p>So what is the best way to clean up this javascript code (see fiddle link in comments).</p> <p>By "clean up" I mean replace "document.getElementById..." and fix the output variable to be a reusable function instead of the way I have it there. Two problems I'm having below:</p> <p>1) When I use .empty then .append ...
javascript jquery
[3, 5]
1,424,873
1,424,874
Dynamically populated javascript slideshow
<p>I would like to create a dynamically populated javascript slide show for an e-commerce site, where I have a product list with several categories. </p> <p>I would like to be able to create slide shows with roughly 5 linked images displaying at one time, starting with newest products. I'd like to be able to take them...
php javascript
[2, 3]
2,616,766
2,616,767
Android, Start App on Launch of Emulator
<p>I want to do some testing on the Android emulator to run an app of mine automatically and pass it a parameter how can I do this?</p> <p>For now lets assume, I have an app that opens a URL (parameter) in a browser. How can I get my emulator to do this upon launch of app?</p> <p>This is for testing and this app will...
java android
[1, 4]
4,521,112
4,521,113
Disable notification of incoming/outgoing SMS in android
<p>Is it possible to disable SMS received and send notification in status bar ?? What is the procedure to do this ?</p>
java android
[1, 4]
1,390,480
1,390,481
Creating random colors (System.Drawing.Color)
<p>I am tring to create random drawing colors. There is an error. Could you help me about this code.</p> <pre><code> private Random random; private void MainForm_Load(object sender, EventArgs e) { random = new Random(); } private Color GetRandomColor() { ...
c# asp.net
[0, 9]
2,050,991
2,050,992
Dividing two integers in Java gives me 0 or 100?
<p>I'm trying to divide two integers and multiply by 100 but it keeps giving only 0 or 100. Can someone help me?</p> <pre><code> int x= (a/b)*100; </code></pre> <p>if a was 500 and b was 1000 it would give me 0. The only time it will give me 100 is if a>=b. How can I fix this?</p> <p>Thanks</p>
java android
[1, 4]
1,607,273
1,607,274
Break on space (Textbox)
<p>In C# I know this</p> <pre><code> if (textBox1.Text.Length &gt; x) { textBox1.AppendText(Environment.NewLine); } </code></pre> <p>(x is some random number) But what if I want to break on first space before x?</p>
c# asp.net
[0, 9]
2,997,213
2,997,214
Getting id then selecting that element - jQuery
<p>I'm often finding myself getting various attributes, such as the id of an element or class, then selecting that element and doing something.</p> <p>What I do now for example is:</p> <pre><code> var id = $(this).closest(".item").attr('id'); $('#'+id).hide(); </code></pre> <p>Is using '#' and including the id th...
javascript jquery
[3, 5]
3,762,686
3,762,687
localizable strings C#
<p>Im thinking about solution which would give mechanizm to localize applications websties etc. On one od the cms I saw option that each time u use localizable string simply put </p> <p>[LANG::MyText]</p> <p>and then according to language (each one in different file) tags were replaced.</p> <p>Should it be done in p...
c# asp.net
[0, 9]
679,213
679,214
Control data to display from MySQL by putting them into a group
<p>I have a lot of items in my database and I have no problems displaying them. It's just that I want to organize the items that I get from my database by grouping them.</p> <p>For example I have 50 items and I want to display the first 10 items first, and then hold the rest for later display. So if a user clicked the...
php jquery
[2, 5]
4,642,275
4,642,276
jQuery Collapsible Panel
<p>ASP.Net, 2.0 VS2005, .Net 2.0 jQuery 1.8.3, jQuery UI 1.9.2</p> <p>I have two panels (more will come later on) on my form that can be open or closed at the users request.</p> <p>i am using the jQuery '.slideToggle' method.</p> <p>This is my markup</p> <pre><code>&lt;div class="trigger0"&gt;Collapsible Header 1 -...
jquery asp.net
[5, 9]
1,494,999
1,495,000
how to use parameters in code behind to access some controls in my aspx file using C#
<p>i have 2 textbox that has a date values in my aspx file. I would like to access these 2 controls in my select statement using code behind but i am getting error like this: 'Must declare the scalar variable "@txtStartClosingDate" so what am i missing here in my code behind here? thanks</p> <pre><code> protected vo...
c# asp.net
[0, 9]
480,983
480,984
Hiding Extra Items in a list using jQuery in a tricky situation (markup is not ideal)
<p>I want to make a long list short by hiding some elements in long sub-lists without adding extra processing on the server side. The problem is that the markup that comes from the server is not controlled by me and is not designed in a way to make my job easy. here is the code</p> <pre><code>&lt;ul id="long-list"&gt;...
javascript jquery
[3, 5]
1,377,139
1,377,140
making div/htmlgeneric control visible using asp.net
<p>I have a user control with a div like this:</p> <pre><code> &lt;div runat="server" id="pnlShippingMethods" class="checkoutstep"&gt; &lt;div class="steptitle"&gt; &lt;%=GetLocaleResourceString("CheckoutOnePage.ShippingMethods.Title")%&gt; ...
c# asp.net
[0, 9]
5,290,439
5,290,440
Can you use Routes and Query String Values Together?
<p>Is it possible to use routing and query strings together?</p> <p>An example would be the following as a route in my <em>Global.asax</em> file:</p> <pre><code> void RegisterRoutes(System.Web.Routing.RouteCollection routes) { routes.MapPageRoute("My Route Name", "users/{UserName}", "~/users/UserInfo.aspx"); ...
c# asp.net
[0, 9]
3,171,992
3,171,993
Save image from Image.Control to website directory
<p>Is there a way to save an image from a .net Image Control to the server's directory?</p> <p>It's a barcode image that gets generated on Page_Load:</p> <pre><code>Image1.ImageUrl = "~/app/barcode.aspx?code=TEST" </code></pre> <p>The barcode image displays just fine on the webpage, but I wnated to save it to a dire...
c# asp.net
[0, 9]
5,219,258
5,219,259
Why when I change the src of an image with jquery, the the src is not changed in my c# codebehind?
<p>I have a gallery of thumbnails. When you click on a thumbnail, the main image changes to the thumbnail clicked by using jQuery and changing the 'src' tag of the . This works as expected. </p> <pre><code>$('#ContentPlaceHolder1_photoSpotImage').attr('src', src.replace(/-thumbs/, '')); </code></pre> <p>I have a link...
c# jquery asp.net
[0, 5, 9]
1,486,904
1,486,905
Iterating Through All DropDownList In an ASP.NET WebForm C#
<p>What is the object that I would have to reference in order to iterate through all the DropDownList on a web page. I have a web page with several drop down list on it. I want a piece of code that will do the following:</p> <pre><code>foreach (DropDownList d in xxx) { someFunction(d, d.ID); } </code></pre> <...
c# asp.net
[0, 9]
1,231,792
1,231,793
prevent form submission if validation failed after iterating over each form element with jquery's .each() function
<p>I have the following code in which I'm trying to iterated over html text input elements, do some validation and prevent the form submission if the validation fails:</p> <pre><code>$("#the_form").submit(function(){ $(":text", this).each(function(){ if($(this).v...
javascript jquery
[3, 5]
4,388,871
4,388,872
How do i enclose the Single quotes in double quotes in javascript
<p>I have a php variable that needs to be interpreted in javascript how do i do this </p> <pre><code>var cntr = "&lt;?php echo $j;?&gt;"; var opt = "&lt;?php echo $options;?&gt;"; var opt_selected = "&lt;?php echo get_options($val['SOMEVARIABLE'],$opt); ?&gt;"; var reference = "&lt;?php echo $val["RFDREFVAL"];?&gt;"; ...
javascript jquery
[3, 5]
2,066,004
2,066,005
Android spinner give a NullPointException
<p>Any ideas why this code throws a NullPointException?</p> <pre><code> Spinner spinnerLoadLayouts = (Spinner)this.findViewById(R.id.spnLoadLay); ArrayAdapter&lt;CharSequence&gt; adapter = new ArrayAdapter&lt;CharSequence&gt;(this, android.R.layout.simple_spinner_item, new ArrayList&lt;CharSequence&gt;())...
java android
[1, 4]
5,485,409
5,485,410
Get the selected value of an asp dropdownlist in an asp repeater
<p>I have a repeater that has multiple dropdown lists and multiple buttons. Each button is tied to the dropdown list in the repeater row. Is there a way to alert the dropdownlists value on a button click. I want the button click to alert the value of the ddl in the same repeater row.</p> <p>Is this possible?</p>
javascript jquery asp.net
[3, 5, 9]
566,599
566,600
javascript to jquery conversions
<p>I have a JavaScript function which returns a function. What does it mean ?</p> <pre><code>function CheckShadowBounds(rounded) { return function() { }; } </code></pre> <p>How can I convert it to jQuery ?</p>
javascript jquery
[3, 5]
4,357,564
4,357,565
Jquery function to detect cookies and set focus
<p>I have an asp.net login control and I have implemented the user name to be remembered using cookies. How can I use Jquery(javascript) function to detect cookies and set the focus on the password field?</p>
javascript asp.net jquery
[3, 9, 5]
2,000,232
2,000,233
jquery not responding on select box retrived from a PHP script with jquery.load()
<p>I have a hidden div on a admin page. The div reveal itself when an image-link on the site is clicked. The content of the div is loaded with a jquery.load() call to a PHP script which in return send back the HTML-form for the correspodning link. In this way I have constructed an control panel for the admin. When the ...
javascript jquery
[3, 5]
1,198,985
1,198,986
jQuery event only every time interval
<pre><code>$(document).ready(function() { $('#domain').change(function() { // }); }); </code></pre> <p>The code inside the change function will basically send ajax request to run a PHP script. The #domain is a text input field. So basically what I want to do is to send ajax requests as user types i...
javascript jquery
[3, 5]
5,681,181
5,681,182
Javascript: is using t_this inside annonymous functions considered harmful?
<p>I've been using:</p> <pre><code>var t_this = this; // Used inside annonymous functions </code></pre> <p>for quite some time when dealing with annonymous functions inside a 'class' but always with unease as it looks like a code smell. Is this a bad practice? Is there a better alternative?</p> <p>example:</p> <pre...
javascript jquery
[3, 5]
174,099
174,100
local variable performance in Javascript vs C#
<p>My Javascript code here. Instead of everytime trying to access document which is global context we made it to activation object. So that we can improve our read/write performance.</p> <pre><code>function initUI(){ var doc = document, bd = doc.body, links = doc.getElementsByTagName("a...
c# javascript
[0, 3]
1,344,526
1,344,527
Custom ASP.NET Membership controls added via button click
<p>Can I customise ASP.NET DB Membership Providers? </p> <p>In my ASP.NET database I added two columns to Membership table: Age and Address.</p> <p>In the Register.aspx page there are built-in fields such as User Name, E-Mail, Password, Confirm Password.</p> <p>I want to add age and address, and when the user clicks...
c# asp.net
[0, 9]
4,458,851
4,458,852
Ensuring unique Javascript identifiers in ASP.NET Web User Controls
<p>In my current project, I am creating a number of user controls, some of which include some custom Javascript for event handling on the client side. I am registering my event handlers using OnClientClick="function()" and the like.</p> <p>Now, I'm wondering how to ensure that all Javascript function names are unique ...
asp.net javascript
[9, 3]
2,820,989
2,820,990
.bgi library or equivalent in java
<p>please help me to find out this: Is there any package/library in java that provides same functionalities that bgi library c/c++ provides!?</p> <p>Thanks if any helps to find out this</p>
java c++
[1, 6]
3,674,406
3,674,407
Android: how to call onCreate() with different arguments after clicking on a list item?
<pre><code>protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); String path = "/"; ... list.setOnItemClickListener(new OnItemClickListener() { public void onItemClick(AdapterView&lt;?&gt; parent, View view, int position, long id) { } }); } </co...
java android
[1, 4]
3,510,377
3,510,378
i ajax a file with jquery,and i don't know where does it download to
<pre><code>$.ajax({ type: "POST", url: "http://images.digu.com/web_res_v1/images/logo.png?t=20091230", success: function(msg){ alert( "Data Saved: " + msg ); } }); </code></pre> <p>where is the download file.</p> <p>thanks</p>
javascript jquery
[3, 5]
5,373,740
5,373,741
How do I obtain information from the cell that was clicked in the GridView?
<p>I need to obtain information from the cell that was clicked in the GridView.</p>
c# asp.net
[0, 9]
1,137,852
1,137,853
Random string from string array list
<p>I have list of countries in my array, I would like to pick random country from the list (using random probably?), but I haven't found out the answer myself...</p> <p>This is what I have so far:</p> <pre><code>String[] list = {"Finland", "Russia", "Latvia", "Lithuania", "Poland"}; Random r = new Random(); </code></...
java android
[1, 4]
1,496,155
1,496,156
Difference between Caching object and Hash map
<p>I was reading an article on Caching object in asp.net framework and I was looking on the class behavior. It has a HashMap like structure and looks like that I can actually instantiate a Hashmap and use it as collection.</p> <p>What extra benefit does cache object bring over hashmap?</p>
c# asp.net
[0, 9]
464,732
464,733
Regular expression or Jquery to validate a ASP.NET textbox for valid date and in the past
<p>I am trying to validate a text field for valid date (MM/DD/YYYY) I have not done this validation before and wondering if it is easy to achieve through regular expression validator or through Jquery?</p> <p>Example would be greatly appreciated.</p>
jquery asp.net
[5, 9]
3,607,825
3,607,826
Twitter-bootstrap javascript components not working
<p>all in the title. I cant get the javascript bootstrap components working.</p> <pre><code>&lt;div id="example"&gt;Some element&lt;/div&gt; &lt;script&gt; $('#example').popover({ title: 'A title!', content: 'Some content!', trigger: "hover" }); &lt;/script&gt; </code></pre> <p>this is not working an...
javascript jquery
[3, 5]
596,796
596,797
How to determine the best "framerate" (setInterval delay) to use in a JavaScript animation loop?
<p>When writing a JavaScript animation, you of course make a loop using setInterval (or repeated setTimeout). But what is the best delay to use in the setInterval/setTimeout call(s)?</p> <p>In the <a href="http://api.jquery.com/animate/" rel="nofollow">jQuery API page for the .animate() function</a>, the user "fbogner...
javascript jquery
[3, 5]
908,547
908,548
Easy way to turn Javascript array into comma-separated list?
<p>I have a one-dimensional array of strings in Javascript that I'd like to turn into a comma-separated list. Is there a simple way in garden-variety Javascript (or jQuery) to turn that into a comma-separated list? (I know how to iterate through the array and build the string myself by concatenation if that's the only ...
javascript jquery
[3, 5]
2,124,154
2,124,155
jQuery: clicking nested elements
<p>I have the following markup</p> <pre><code>&lt;ol&gt; &lt;li class="ListItem"&gt; &lt;span class="sub"&gt;@qItem.CategoryText&lt;/span&gt; &lt;input type="image" src="http://icons.iconarchive.com/icons/tatice/just-bins/256/bin-red-full-icon.png" width="30" class="deleteIcon" name="QuestionId" va...
javascript jquery
[3, 5]
1,010,388
1,010,389
Adding an ItemCommand to a CompositeDataBoundControl
<p>I have a CompositeDataBoundControl and im trying to add a ItemCommand to it, ala the System.Web.UI.WebControls.Repeater - so like a numpty, I just thought if I reflector'ed and added the code like so, it should work:</p> <pre><code>private static readonly object EventItemCommand = new object(); protected override ...
c# asp.net
[0, 9]