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,912,916
3,912,917
How to detect selection outside textarea and input
<p>jQuery select event is limited to <code>textarea</code> and <code>input:text</code> only. Is there a way to handle a selection in ordinary elements such as <code>&lt;div&gt;</code>?</p>
javascript jquery
[3, 5]
839,346
839,347
Why does asp.net still have to use js?
<p>I'm a beginner of <code>asp.net</code>, and I learned yesterday that we can use <code>.cs</code> file to handle control event, so do we still need to use <code>js</code>? Can we just use c# to deal with the web controls?</p>
c# javascript asp.net
[0, 3, 9]
564,005
564,006
When to use jQuery wrapper methods instead of built-in javascript methods
<p>Which jQuery methods should be avoided in favour of built-in methods / properties?</p> <p>Example:</p> <pre><code>$('#el').each(function(){ // this.id vs $(this).attr('id'); // this.checked vs $(this).is(':checked'); });; </code></pre>
javascript jquery
[3, 5]
1,910,939
1,910,940
How would you store Highcharts chart objects?
<p>I have started using Highcharts creating some very basic visualisations with some data. I used C#/MVC3 with a basic class called GraphOptions consisting of two properties, an array of string categories and an array of Graph Series (which has a name and data property). </p> <p>I then stored a js graph configuration ...
c# javascript
[0, 3]
624,011
624,012
Run javascript/jquery after text change but before submit
<p>I have an input element on a form along with a submit button.</p> <p>I want to run the change event on the input element all whenever a change occurs. The problem is if end user changes text and clicks submit button the code in the change event doesn't run.</p> <p>Immediately after user clicks the submit button, ...
javascript jquery
[3, 5]
70,955
70,956
Error when add row in php and jquery?
<pre><code>&lt;a class="checkModelButton" href="addrow.php"&gt;ADD ROW&lt;/a&gt; &lt;table&gt; &lt;thead&gt; &lt;th&gt;Name&lt;/th&gt; &lt;/thead&gt; &lt;tboby id="model_row"&gt; &lt;tr&gt;Nokia N70&lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; </code></pre> <p>And jQuery:</p> <pre><code>jQuery(...
php jquery
[2, 5]
3,356,775
3,356,776
get value of div class in jquery drop event
<p>Using jQuery, I am trying to capture and display the value of a div class when it is 'dropped'. For example, I want to display '01:20' when this particular element is dropped. div class='routineTime'>01:20 /div></p> <p>Additionaly, I want to sum and display a running total of these dropped elements.</p> <p>I have ...
javascript jquery
[3, 5]
4,280,640
4,280,641
what is the best practice of binding jQuery click event to each anchor tag on every row of a table
<p>There is a grid (just html table) that lists users and you can delete a specific user by clicking on delete link. The usual way I do is </p> <pre><code>&lt;% foreach (var user in Model.Users) {%&gt; &lt;tr &gt; &lt;td align="right"&gt;&lt;%= user.Name %&gt;&lt;/td&gt; &lt;td&gt;&lt;%= user.Level %&gt;&lt;/td&gt...
javascript jquery
[3, 5]
4,986,230
4,986,231
JQuery click function not getting called
<p>I have a simple page for testing with only a button, I am linking to an external js file. It is displaying the jquery version in a alert box, but when the button is clicked nothing happens. What is wrong with this? </p> <p>Here is my simple test html page</p> <pre><code>&lt;title&gt;Insert title here&lt;/title&gt...
javascript jquery
[3, 5]
437,200
437,201
Android Expandable ListView Icon (Group Indicator)
<p>I have been able to successfully swap in my own image for the expandable listview arrows. I have two issues at the moment.</p> <p>One is that the icons i substitue in with the code below are each strechted to the height of the row and too wide as well. The second is, that this code is only changing the initial stat...
java android
[1, 4]
977,369
977,370
checkbox list -javascript
<p>In my aspx page i am having a checkbox list ..It has binded values from a table.. I need to validate the checkbox list ..I tried the following script </p> <pre><code> var checkBoxCount = 0; var elements = document.getElementById('&lt;%=ChkBoxList.ClientID%&gt;'); for(i=0; i&lt;elements.length...
c# javascript asp.net
[0, 3, 9]
1,649,928
1,649,929
logging javascript module names
<p>I want to be able to log my module initializations to see what happens. Is there a way to get the module namespace and log it to the console.</p> <pre><code>(function($, bis, window, document, undefined) { "use strict"; //other app code bis.library = bis.library || function(module) { $(function(...
javascript jquery
[3, 5]
4,836,853
4,836,854
In jquery, trigger a click on the link with the highest 'rel' attribute value
<p>I have:</p> <pre><code>&lt;a rel="9"&gt;Link 1&lt;/a&gt; &lt;a rel="6"&gt;Link 2&lt;/a&gt; &lt;a rel="3"&gt;Link 3&lt;/a&gt; &lt;a rel="21"&gt;Link 4&lt;/a&gt; </code></pre> <p>I want to trigger a click on the link with the highest 'rel' value. What is the most efficient way to write this?</p>
javascript jquery
[3, 5]
4,586,504
4,586,505
c# & ASP.NET Gridview- Textbox data update in DB
<p>I have a grid view with about six columns in which one of those columns is a text box.</p> <p>User may enter a value in the texbox and when he clicks on Submit button(this button is not within the gridview) that single value has to be updated into the database. All other columns in the gridview will be retrieved fr...
c# asp.net
[0, 9]
1,847,789
1,847,790
Why does a JavaScript function fail with certain parameter names?
<p>The following JavaScript function is supposed to make a simple JQuery call to load a page and set a class:</p> <pre><code>function Lp(page,class) { $("#result").load(page); $('#nav').attr('class',class); } </code></pre> <p>However it failed to work until, on a hunch, I changed the name of the second parame...
javascript jquery
[3, 5]
1,752,498
1,752,499
Variable different on php echo and javascript alert
<p>I have a dynamic multilanguage website. My php echos the current language right, but javascript doesn't even if loading after body.</p> <p>My php:</p> <pre><code>&lt;?php echo $language ?&gt; </code></pre> <p>This gives me english, portuguese, german or french accordingly to the one is being used.</p> <p>when i...
php javascript
[2, 3]
1,763,119
1,763,120
Android equivalent function of VC++ sleep function
<p>Is any equivalent function in android(Java) of sleep(VC++) function. If no please provide a method to do it.</p> <p>eg. <code>Sleep(5000);</code> // a delay of 5000 milliseconds</p> <p>thanks</p>
java android
[1, 4]
5,206,266
5,206,267
objectdatasource cast gridview datasource back to generic list
<p>environment: asp.net fx3.5</p> <p>i'm using the objectdatasource for my gridview. at first, i load up my gridview with records from a generic <code>List&lt;Attachments&gt;</code> for my customer. Next I'd like to add/remove items from the gridview without hitting database until after all the add/removes are done. T...
c# asp.net
[0, 9]
2,564,653
2,564,654
Jquery DateTime Unix timestamp vs http://www.epochconverter.com/
<p>I am referring to <a href="http://docs.jquery.com/UI/Datepicker/%24.datepicker.formatDate" rel="nofollow">datepicker</a> where I noted that:</p> <blockquote> <p>@ - Unix timestamp (also known as epoch seconds or POSIX time) in milliseconds since 01/01/1970</p> </blockquote> <p>Also site <a href="http://www.epo...
javascript jquery
[3, 5]
1,986,811
1,986,812
How to show popup message box in ASP.NET?
<p>Work on C# VS 2005 AJAX enabled web. I want to show a pop up message on my web page. In my desktop application I write the following code to show a message:</p> <pre><code>MessageBox.Show("Data Saved Successfully.", "Save", MessageBoxButtons.OK, MessageBoxIcon.Information); </code></pre> <p>I want this kind of mes...
asp.net javascript
[9, 3]
1,509,135
1,509,136
check filename before posting using jquery/ php
<p>I need jquery to check if my posted filename (up_image) is empty or not.</p> <p>if it's empty i need a div tag to be shown and come with some kind of alert message. </p> <p>if not, just do the </p> <blockquote> <pre><code>$("#submit").submit(); </code></pre> </blockquote> <pre><code> &lt;form action="/profi...
php jquery
[2, 5]
4,579,428
4,579,429
how to get data from string in javascript
<p>I have such string <code>test1/test2/test3/test4/test5</code> How can I get those tests in separate variables or in array or smth using javascript or jquery ?</p>
javascript jquery
[3, 5]
4,826,079
4,826,080
file browser/uploader with CKEditor?
<p><a href="http://stackoverflow.com/questions/1498628/how-can-you-integrate-a-custom-file-browser-uploader-with-ckeditor">How can you integrate a custom file browser/uploader with CKEditor?</a></p> <p>after read the answer, i still don't know which file in ckeditor package should put the code in ? expect someone can...
php javascript
[2, 3]
5,989,660
5,989,661
How to populate a DropDownList using a List<ListItem>
<p>I have a DropDownList.</p> <p>I need populate it with item collected in a <code>List&lt;ListItem&gt;</code>.</p> <p>In my script, collector has been populated properly.</p> <p>But I cannot populate the DropDownList. I receive an error:</p> <pre><code>DataBinding: 'System.Web.UI.WebControls.ListItem' does not con...
c# asp.net
[0, 9]
4,459,475
4,459,476
Reading all values from an ASP.NET datagrid using javascript
<p>I have an ASP.NET Datagrid with serveral text boxes and drop down boxes inside it. I want to read all the values in the grid using a javascript function. How do i go about it?</p>
asp.net javascript
[9, 3]
2,910,655
2,910,656
Reducing the need for JavaScript libraries
<p>I'm writing several small things in JavaScript, notably a <code>mousemove</code> event, and a AJAX call. I don't believe that two things should necessitate loading the ~25KB that is jQuery. Add in the fact that I want as <em>few</em> external dependencies as possible and necessitating jQuery isn't something I want t...
javascript jquery
[3, 5]
2,367,073
2,367,074
Jquery Change event for input and select elements
<p>I am trying to alert something when ever a drop down box changes and when ever something is typed into an input. I don't think I can use change for input fields? What would you use for input fields? Also, what about input fields of type file? Same thing. Here is what I have so far and its not working:</p> <pre><cod...
javascript jquery
[3, 5]
5,437,012
5,437,013
How to hide div that is referenced by an anchor href on click with javascript (jQuery)
<p>I have several blocks of text separated into their own divs. I also have several links in a navigation bar that reference these divs with an anchor link. On click, I'd like to hide all other divs except the one referenced by the clicked link. I have:</p> <pre><code>&lt;div id="navbar"&gt; &lt;ul&gt; &lt;li&gt;...
javascript jquery
[3, 5]
3,210,066
3,210,067
Problem on how to update the DOM but do a check on the data with the code-behind
<p>This is with ASP.NET Web Forms .NET 2.0 - </p> <p>I have a situation that I am not sure how to fulfill all the requirements. I need to update an img source on the page if selections are made from a drop down on the same page. </p> <p>Basically, the drop downs are 'options' for the item. If a selection is made (...
c# javascript jquery asp.net
[0, 3, 5, 9]
1,558,043
1,558,044
Getting outerWidth of element where text is changed
<p>I have the following element.</p> <pre><code>var e=$('&lt;span/&gt;', {"class":'someClass',text:'Hello'}); </code></pre> <p>I wish to get its outer width. It appears that I cannot just use <code>e.outerWidth()</code> as it needs to be written to the screen first. Correct?</p> <p>So, now the real question. Inst...
javascript jquery
[3, 5]
1,911,424
1,911,425
"com.android.exchange.ExchangeService has leaked ..." error when running emulator
<p>I'm seeing many of these errors when using my emulator with IntelliJ. I'm not sure what to do about it. It doesn't appear to have been affecting anything, so I haven't paid much attention to it. But I'm concerned it may cause an issue before long.</p> <pre><code>01-01 15:16:22.805: ERROR/StrictMode(607): null ...
java android
[1, 4]
4,298,943
4,298,944
ASP.NET save files from dynamically added FileUpload controls
<p>I'm building an ASP.NET UserControl where users of the website can upload several pictures at once. I'm doing it the old fashioned way by letting the user enter the amount of FileUpload controls wanted and then add them dynamically from C# to a asp:Panel control. </p> <p>While this works, the values/files from the ...
c# asp.net
[0, 9]
4,411,563
4,411,564
Check if cookie exist in general, not a specific cookie
<p>How would I detect if the website has set a cookie in general without checking lots of individual cookies. </p> <p>I looked at this similar question: <a href="http://stackoverflow.com/questions/2824021/check-if-cookie-exists-if-not-create-it">Check if cookie exists if not create it</a>. But the solutions provided t...
javascript jquery
[3, 5]
4,984,406
4,984,407
If you select an element in jQuery by ID is there still a speed improvement by giving it a context?
<p>Imagine this simplified markup:</p> <pre><code>&lt;div id="header"&gt; &lt;!-- Other things.... --&gt; &lt;div id="detail"&gt; &lt;/div&gt; &lt;/div&gt; </code></pre> <p>and assume you already have this code:</p> <pre><code>var $hdr = $("#header"); </code></pre> <p>Is there any speed difference for jQu...
javascript jquery
[3, 5]
2,922,940
2,922,941
How to properly use the each() in jQuery?
<p>I have the following:</p> <pre><code> &lt;div class="io-section-header"&gt; &lt;ul&gt; &lt;li class="advanced"&gt;Eat&lt;/li&gt; &lt;li class="advanced"&gt;Sleep&lt;/li&gt; &lt;li class="advanced"&gt;Be merry&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; </code></pre> <p>I have the jQuery (which is tied to...
javascript jquery
[3, 5]
2,030,110
2,030,111
Resolve URLs for ASP.NET in jQuery?
<p>I would like to use "<code>~/</code>" and resolve on the client site.</p> <p>For example, I would want to do this:</p> <pre><code>&lt;a href="~/page.aspx"&gt;website link&lt;/a&gt; &lt;img src="~/page.aspx" /&gt; </code></pre> <p>I would have my base URLs in ASP.NET like this:</p> <pre><code>&lt;script type="tex...
asp.net javascript jquery
[9, 3, 5]
4,272,908
4,272,909
How to create a dynamic array in Javacript?
<p>I need to create the following array dynamically, for example:</p> <pre><code>var data = { point: [ { x:5, y:8 }, { x:8, y:10}, ]}; console.log(data.point[0].x); // 5 n=0 console.log(data.point[1].y); // 10 n=1 </code></pre> <p>At some point my application needs to...
javascript jquery
[3, 5]
3,375,334
3,375,335
What is the best practice to pass many server side information to JavaScript?
<p>Let say that I have many Javascript inside pages. At this moment is pretty easy to initialize variable by simply using some Print/Echo statement to initialize JavaScript value.</p> <pre><code>Example: var x = &lt;?php echo('This is a value');?&gt; </code></pre> <p>I first thought that I could pass all variables va...
php javascript
[2, 3]
3,654,337
3,654,338
What is the best way to validate that a specific option has been selected in an asp:ListBox?
<p>I have an asp:ListBox that contains multiple values. A user is required to always select one specific item in this box as well as optionally selecting others.</p> <p>What is the best way to do this?</p> <p>Thanks in advance!</p>
c# asp.net
[0, 9]
1,781,404
1,781,405
Should we user anonymous classes for Button click listener or Inner named class
<p>I have lots of buttons in my activity, the question comes here, </p> <p>1) should i create multiple inner anonymous classes for clickListener for each button, like below</p> <pre><code> private View.OnClickListener mShuffleListener = new View.OnClickListener() { public void onClick(View v) { /// t...
java android
[1, 4]
5,758,835
5,758,836
Slide up div and then append a new div to slide up in its place
<p>Im trying to animate two div boxes when a user has successfully filled out a registration form. The first div that is animated is the registration form itself which will slide up from the bottom into the centre and the slide up and off the screen when a user has filled the form properly. </p> <p>I have that first b...
javascript jquery
[3, 5]
2,382,489
2,382,490
JQuery DatePicker not showing in textbox when textbox is enabled
<p>I have a set of controls, which sit inside an ajax update panel, and these controls are enabled via the user ticking a checkbox. One of these controls is a textbox, which uses the JQuery Datepicker to populate the textbox with a date. The problem I am seeing is when the textbox is enabled, and you click on the textb...
jquery asp.net
[5, 9]
3,029,498
3,029,499
scope of variables in JavaScript callback functions
<p>I expected the code below to alert "0" and "1", but it alert "2" twice. I don't the reason. Don't know if it is a problem of jQuery. Also, please help me to edit title and tags of this post if they are inaccurate.</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;script type="text/javascript" src="http://aj...
javascript jquery
[3, 5]
2,614,200
2,614,201
How to assign dynamic css class to HyperLink located inside ListView
<p>Kinda of confusing title.</p> <p>This is my old navigation</p> <pre><code>&lt;li&gt;&lt;a href="General.aspx" runat="server" id="currentGeneral"&gt;&lt;i class="home"&gt;&lt;/i&gt; Overview&lt;/a&gt;&lt;/li&gt; </code></pre> <p>The i class sets an icon next to the navigation tab. </p> <p>On the Site.Master.CS I ...
c# asp.net
[0, 9]
68,634
68,635
Javascript Jquery code just works the first time, next time it doesnt
<p>I am a beginner in all Javascript stuff and the code is making me crazy. I'm using Jquery</p> <p>I have a div:</p> <pre><code>&lt;div id="dicesDiv"&gt;&lt;/div&gt; </code></pre> <p>This div is load at the beginning directly with this code:</p> <pre><code>$("#dicesDiv").load("dices.php?dice1=&lt;?php print ($last...
php javascript jquery
[2, 3, 5]
950,104
950,105
How to assign the text to the label using Jquery for the web controls
<p>i am having and by using jquery ineed to assign another text "hello" to the label "lbl" through the jquery. and if we access the label "lbl" the text "hello" should come because the value "hai" is replaced with "hello" and if we write the below line i should get the new modified lable in aspx.cs file</p> <p>my asp...
asp.net jquery
[9, 5]
114,033
114,034
How can I use a variable to define MailAddress toAddress in c#?
<p>I have an ASP.NET 4.0 aspx page from which I wish to send an email to the recipient specified in a text box named "supervisoremailTextBox". Is there any way that I can specify a variable as the recipient email address. The code I have used which doesn't work is shown below:</p> <pre><code>MailAddress fromAddress =...
c# asp.net
[0, 9]
4,431,204
4,431,205
Jquery Masonry Isotope gap issue
<p>Maybe I am being dumb or maybe its just not possible to do.</p> <p>I am trying to get my divs to reorder when the page is smaller than the container div.</p> <p>You can see what I mean by clicking here <a href="http://maffo.co.uk/masonry-isotope-issue" rel="nofollow">example</a></p> <p>If the page is narrow, I ge...
javascript jquery
[3, 5]
5,031,984
5,031,985
PHP array to jQuery options
<p>I'm creating a Wordpress Plugin which uses a jQuery script. I've created a PHP array which contains its options like:</p> <p><code>$settings = array('setting1' =&gt; 'value1', 'setting2' =&gt; 'value2', 'setting3' =&gt; 10)</code></p> <p>I was now going to use foreach to loop over the items and print them like thi...
php jquery
[2, 5]
4,114,363
4,114,364
Is there an #ifdef ANDROID equivalent to #ifdef WIN32
<p>I have some c++ code that has a bunch of #ifdef WIN32 else we assume its IOS code. However I am now trying to use this same c++ code for an android port.</p> <p>Is there some sort of equivalent for #ifdef WIN32 || ANDROID?</p>
android c++
[4, 6]
3,038,375
3,038,376
Check if the jQuery page load events fired already
<p>Is there a way to check if jQuery fired the page load events yet, or do you have to roll your own? I need to alter the behavior of links, but I don't want to wait until the page finishes loading because the user could conceivably click on a link on, say, the top half of the page before the page finishes loading. Rig...
javascript jquery
[3, 5]
1,323,522
1,323,523
Changing Background of an app
<p>Here is sample code:</p> <pre><code> WallpaperManager wallpaperManager1 = WallpaperManager .getInstance(getApplicationContext()); final Drawable wallpaperDrawable1 = wallpaperManager1.getDrawable(); getWindow().setBackgroundDrawable(wallpaperDrawable1); if (wallpape...
java android
[1, 4]
2,991,451
2,991,452
Android CookieManager
<p>I have an application that makes several web calls in order to get authenticated after which a JSON is returned. My web calls are to an https server and I am using HTTPURlConnection.</p> <p>I need to store the session in a cookie, after researching around, I found this</p> <p><a href="http://developer.android.com/...
java android
[1, 4]
3,659,713
3,659,714
checking session with jquery from php script then saving the item clicked to mysql database and updating the label which has been clicked
<p>hi I am trying to saving to save item into my sql database I have 3 functions </p> <pre><code>/* the function below checks if a session is pressent using jquery ajax call to php script */ function checkSess(){ $.ajax({ url: "check_s.php", ...
php jquery
[2, 5]
3,972,027
3,972,028
Get access to a view so it can be replaced
<p>So, I am using the sliding menu library from <a href="https://github.com/jfeinstein10/SlidingMenu" rel="nofollow">JFeinstein</a>.</p> <p>I have successfully integrated into my project but I am having trouble changing the view of the front/main view/activity.</p> <p>I currently have many activities that I would lik...
java android
[1, 4]
6,007,778
6,007,779
Android Autocomplete TextView drop down width
<p>I want the dropdown of my auto complete TextView to cover the entire screen width. Currently the normal behaviour of the autocomplete textview is such that it covers only the width of the EditText (screenshot below). </p> <p>How do I do it ? It should look somewhat like the default maps app in android. </p> <p><im...
java android
[1, 4]
4,986,873
4,986,874
What does jQuery(function) or $(function) do?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/7642442/what-does-function-do">What does $(function() {} ); do?</a> </p> </blockquote> <p>what exactly does the following syntax mean?</p> <pre><code>$(function() {..} </code></pre> <p>as in </p> <pre><code>$...
javascript jquery
[3, 5]
5,513,981
5,513,982
Remove duplicate cells of a column
<p>I want to remove duplicate cells of a column.</p> <pre><code>&lt;table id="test" border="1"&gt; &lt;tr&gt; &lt;td&gt;test1&lt;td&gt; &lt;td&gt;test2&lt;td&gt; &lt;td&gt;test3&lt;td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;test4&lt;td&gt; &lt;td&gt;test2&lt;td&gt; &lt;td&gt;test5&lt...
javascript jquery
[3, 5]
643,956
643,957
Getting sensors from separate package
<p>I'm working on a small project where I'm making a compass that is going to be used on top of a MapView. Everything works just fine when running the program (compass part) within its own activity (not on the MapView), but because the compass has to be integrated into another package containing the Activity that holds...
java android
[1, 4]
4,846,548
4,846,549
Calling a javascript function after a server call in asp.net web forms
<p>Is there a way in web forms to call a javasctipt function after making a server call for example </p> <pre><code>function showAlert(){ alert("hello"); } &lt;asp:Button ID="callJavasctips" runat="server" Text="callJavasctipt" OnClick="callJavaSctipt_click" /&gt; </code></pre> <p>In MVC I can say OnSuccess ...
javascript asp.net
[3, 9]
4,987,881
4,987,882
Check how far window can scroll?
<p>This seems like it should be pretty easy, so I just don't get what I'm overlooking. I've tried jQuery's <code>$(document).width()</code> and that is not returning the correct value. I just need to check how far a window can scroll (horizontally).</p>
javascript jquery
[3, 5]
5,812,491
5,812,492
siutable tool and technology for electronic health system?
<p>hello i am going to develop an EHR (Electronic Health Record System) i am new to this field and want to discuss and get the suggestion about what tool technology i have to use for this purpose: </p> <p>here is my research about EHR and available tools for it</p> <p>1) i am going to discuss about java as an EHR is ...
java php asp.net
[1, 2, 9]
3,045,475
3,045,476
Listening in Javascript to back button in Android
<p>I have a HTML5 app in Android. I would like to override this</p> <pre><code>@Override public void onBackPressed() { } </code></pre> <p>so the js file, which has a method called back(), can "listen" when the user taps the back button in Android, in order to replicate the navigation behaviour that is currently in m...
javascript android
[3, 4]
1,940,823
1,940,824
ASP.NET Content page dynamic content comes out at the top of the HTML output
<p>I'm very new to ASP.net. I have a c# content page, in which I want to inset this code half way down within the HTML:</p> <pre><code>&lt;% HttpResponse r = Response; r.Write(HttpContext.Current.Request.ServerVariables["SERVER_NAME"]); %&gt; </code></pre> <p>But when I view the page, this content comes out first, ...
c# asp.net
[0, 9]
495,655
495,656
how do you add a new view at a specific layout?
<p>I want to add an ImageView on a absolute layout thats on a specific place. the x y coordinates may change dramatically,so I want java code instead of xml code.</p>
java android
[1, 4]
5,167,309
5,167,310
Cannot load ClassDiagram.cd URI formats are not supported
<p>When I create a new Class Diagram in my ASP.NET Application C# it gives me an error message that says:</p> <pre><code>(Cannot load 'C:\Users\...\...\App_Code\ClassDiagram.cd': URI formats are not supported) </code></pre> <p>I don't have any classes in my ASP.NET project.</p>
c# asp.net
[0, 9]
3,249,140
3,249,141
Get function name from inside itself
<p>let's say I have a function:</p> <pre><code> function test1() { } </code></pre> <p>I want to return "test1" from within itself. I found out that you can do <code>arguments.callee</code> which is going to return the whole function and then do some ugly regex. Any better way?</p> <p>what about namespaced fu...
javascript jquery
[3, 5]
3,095,846
3,095,847
How can I get the element visible in the viewport? jquery
<p>I have a list of images on a page. As I scroll through the page I would like to show some options in a naviationbar of the image currently in the viewport. Therefore I need to get the image element currently in the viewport, is this possible ? </p> <p>Jakob</p>
javascript jquery
[3, 5]
1,298,418
1,298,419
Android development without SDK
<p>To get a better understanding of what I'm actually asking let me outline my situation (I think the wording of my question is off, but couldn't think of how to word it better).</p> <p>I'm currently working in a team of 4 people to develop a basic OCR app. I'm focused on the algorithm side, developing the pre-process...
java android
[1, 4]
5,819,036
5,819,037
apk download issue
<p>Hi I am trying to download apk file from https and http ,I am not able to proceed. What wrong i may be doing.When trying on https I have added .htaccess file on apache server containing the AddType for android. When tried on http it didnt worked.</p> <p>Any help is appreciated. Thanks in advance.</p>
java android
[1, 4]
3,912,054
3,912,055
Strange behaviour from System.IO.DirectoryInfo. Exists function
<p>I am developing an application using c# and asp. It need to access some places in the local network . There is a text box in the form which accept the path to be accessed from the user and will store it to a string variable named location.</p> <p>The if loop always return false if the application run in windows 7....
c# asp.net
[0, 9]
2,737,969
2,737,970
Pass PHP Array to Javascript
<p>Am trying to pass an array of values from PHP function to Javascript. Not sure if I am doing it correctly.</p> <p>PHP:</p> <pre><code>function toggleLayers(){ for($i=0;$i&lt;$group_layer_row;$i++){ $toggleArray=mb_convert_encoding(mssql_result ($rs_group_layer, $i, 0),"UTF-8","SJIS")."_".mb_convert_enc...
php javascript
[2, 3]
200,173
200,174
Reference in ASPX file is not working as in ASPX.CS file
<p>I am using <a href="http://code.google.com/p/google-api-for-dotnet/" rel="nofollow">http://code.google.com/p/google-api-for-dotnet/</a> Google API for .NET.</p> <p>I added DLL file reference to project and address it using <code>using Google.API.Search;</code> <code>Search.aspx.cs</code> file and it works completel...
c# asp.net
[0, 9]
4,576,741
4,576,742
jquery row selection from index
<p>I want, given a table id and a row index (0-based), to select the row at that index so that I can apply a background color to all of its td's. I'm familiar with basic selection, but am not sure how to do this using an index variable.</p>
javascript jquery
[3, 5]
3,018,631
3,018,632
How to learn Java, developing for Androind using Eclipse?
<p>I want to learn Java and to became an Android Developer. I studied Electronics &amp; Telecomunications, and I studied programming basis, operative systems, computer architecture, and I studied the languages: Basic, Visual Basic, Turbo Pascal, DIV, Assembler for PICs.</p> <p>I'm looking for the perfect docs and tuto...
java android
[1, 4]
1,167,432
1,167,433
Serialise/Deserialise List<String>
<p>I was to save an arraylist of strings into 1 column in the local database. I am having some problems doing this. Can somebody tell me where I am going wrong...</p> <pre><code>private String serializeArray(List&lt;String&gt; array) { try { ByteArrayOutputStream bytesOut = new ByteArrayOutputStream(); ...
java android
[1, 4]
4,794,194
4,794,195
jQuery methods, order of optional arguments
<p>I just played around a bit with the <a href="http://api.jquery.com/animate/" rel="nofollow">animate()</a> method.</p> <blockquote> <p>.animate( properties [, duration] [, easing] [, complete] )</p> </blockquote> <p>I know that I dont have to pass all the arguments to a function in javascript. But what I would li...
javascript jquery
[3, 5]
1,914,018
1,914,019
Asp.net radio button, how to change the rendered label server side?
<p>I'm having to modify some existing code for a radio button that has a bunch of logic based around the value and Id for a radio button. All I really need to do is change the label and I don't really want to modify the generated input tag since it breaks the messy logic. Does anyone know how to do this server side? ...
c# asp.net
[0, 9]
1,372,859
1,372,860
No suitable HttpMessageConverter found when trying to execute restclient request
<p>I'm trying to use <code>Spring for Android rest client</code> to send data with an <code>http post</code> , to avoid creating and parsing the json data.</p> <p>From their <a href="http://static.springsource.org/spring-android/docs/1.0.x/reference/htmlsingle/#d4e426" rel="nofollow">manual</a> they have the following...
java android
[1, 4]
560,073
560,074
Jquery on new Window objects?
<p>Is it possible to use jQuery on a new Window javascript object?</p> <p>Example:</p> <pre><code>win = new Window('mywindow','width= 400', 'height=400'); win.getContent().innerHTML = xmlFindNodeContent(XmlHttp.responseXML, "windowHtml"); jQuery(win).ready(function(){ do jQuery stuff on the new window here?? }); ...
javascript jquery
[3, 5]
5,013,225
5,013,226
Passing data between a parent window and a child popup window with jQuery
<p>I have the following HTML</p> <pre><code>&lt;tr&gt; &lt;td class="label" valign="top"&gt; Affiliate Party &lt;/td&gt; &lt;td class="field"&gt; &lt;input type="hidden" name="ctl00$MainContent$ExternalAccountAttributes$AffiliatePartyId" id="AffiliatePartyId" /&gt; &lt;input name="c...
javascript asp.net jquery
[3, 9, 5]
1,535,308
1,535,309
set watermark on an image with high quality
<p>I have a handler wich set watermark on images. The problem is the quality is not so good. Here is the code:</p> <pre><code> byte[] imageBytes = null; using (Graphics G = Graphics.FromImage(ImageToWatermark)) { using (ImageAttributes IA = new ImageAttributes()) { ColorMatrix C...
c# asp.net
[0, 9]
2,309,297
2,309,298
Is there a better way to get ClientID's into external JS files?
<p>I know this has been asked before, but I've found a different way to get references to controls in external JS files but I'm not sure how this would go down in terms of overall speed.</p> <p>My code is</p> <pre><code>public static void GenerateClientIDs(Page page, params WebControl[] controls) { StringBui...
asp.net javascript
[9, 3]
2,523,951
2,523,952
Apply widget to current and future page elements
<p>Update : I had to change the text to explain my exact problem.</p> <p>I have a 3th party library for tooltips. It works like this</p> <p>jQuery("a").tooltip();</p> <p>How can I attach this to all future "a" elements added using ajax on this page ?</p>
javascript jquery
[3, 5]
4,232,726
4,232,727
How to remove data- attribute from the div element?
<p>I have an html <code>div</code> element, which contains lot of HTML-5 <code>data-</code> attributes to store extra </p> <p>data with element. I know that we can use <code>removeAttr</code> of jquery to remove specific attribute, </p> <p>but i want to know that is there any way to remove <code>data-</code> all aton...
javascript jquery
[3, 5]
1,249,913
1,249,914
High Score Board for Android
<p>I am trying to implement a high score system inside of my game, I don't know any sql, so I can't write it that way. So I was wandering what would be the best and simplest way to use a tab layout to display a global high score on one and local high score on the other. The scores would be taken from the game activity ...
java android
[1, 4]
2,731,710
2,731,711
autoscrolling textview in android
<p>I'm building a chat-like application that displays text the user inputs to the screen using a scrollview. What I'd like to do is making the scrollview autoscroll as more text is appended to the screen. I'm using a textview to display the input. The xml portion of the scrollview is as follows:</p> <pre><code> &l...
java android
[1, 4]
2,512,021
2,512,022
Can I make the force open select in save/download dialog box?
<p>I use ASP.NET and C# to create file content from binary value</p> <pre><code>FileStruct currentFile = null; File file = new File(); currentFile = file.GetFile(FileID, strTableCode); Response.ContentType = currentFile.ContentType; Response.OutputStream.Write(currentFile.FileContent, 0, currentFile.FileContent.Leng...
c# asp.net
[0, 9]
4,884,634
4,884,635
PHP/JS : Preventing doubleinserting with function
<p>Yes im having a issue i thought i didn't have.</p> <p>When you submit it runs a javascript function, that runs an ajax call. This function have this right under it´s name(first line in the function):</p> <pre><code> $('#submitWall').attr('disabled', true); </code></pre> <p>This works very well, but not so well fo...
php javascript jquery
[2, 3, 5]
423,942
423,943
How to use JQuery InsertAtCaret Function
<p>I have found JQuery InsertAtCaret Function <a href="https://gist.github.com/mathiasbynens/326491" rel="nofollow">Here</a> But there is no detail given how to use it. I have tried a lot to understand that how it can be used, but could not find any way. Here is the function.</p> <pre><code>$.fn.insertAtCaret = functi...
javascript jquery
[3, 5]
4,436,240
4,436,241
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]
2,189,135
2,189,136
Remove part of string between two indexOf in javascript
<p>How can i remove from a string between two <code>indexOf</code> </p> <p>i have this <a href="http://jsfiddle.net/minagabriel/ertcp/" rel="nofollow">jsFiddle</a></p> <p>here is my code : </p> <pre><code> var x = "M 178.6491699876038 23.419570090792845 C 183.6491699876038 23.419570090792845 186.47776067057902 30.9...
javascript jquery
[3, 5]
5,953,269
5,953,270
How to use Session List<T> in asp.net to store value
<p>i made one property like this :</p> <pre><code>public static List&lt;Message&gt; _SessionStore; public static List&lt;Message&gt; SessionStore { get { if(HttpContext.Current.Session["MyData"]==null) { _SessionStore = new Lis...
c# asp.net
[0, 9]
5,701,273
5,701,274
jQuery - Building object arrays with html5 data attribute selection
<p>I'm using HTML 5 data attributes to key rows of data in a table. I need to iterate the rows and gather the data into an object collection. I created a class to represent my row data:</p> <pre><code>function SomeItem(description, finalPrice, percentDiscount) { this.Description = description; this.FinalPric...
javascript jquery
[3, 5]
3,522,762
3,522,763
How to pass variable using javascript/jquery from one PHP file to another PHP file
<p>I have two PHP files a.php and b.php. I have some links in a.php like this:</p> <pre><code>echo "&lt;ul&gt;"; foreach($x-&gt;channel-&gt;item as $entry) { echo "&lt;li&gt;&lt;a href='NEED SOME CODE HERE TO OPEN b.php' title='$entry-&gt;title'&gt;" . $entry-&gt;link . "&lt;/a&gt;&lt;/li&gt;"; } echo "&lt;/...
php javascript
[2, 3]
4,686,729
4,686,730
how do i store a path to an image in my drawable folder to my database in android?
<p>i have a database and need to store an image from drawable folder's paht into it.</p>
java android
[1, 4]
2,666,902
2,666,903
How to close dialog box which is opened by jQuery?
<p>I have a webpage in which I open a dialog box, which shows another webpage. When I click on the submit button on this child webpage, it is loaded in the browser window.</p> <p>Here is the whole synopsis:</p> <p>On the parent page, I have a div which loads the child.</p> <pre><code>&lt;div id="divMyDialog" title="...
jquery asp.net
[5, 9]
2,700,167
2,700,168
How to add items to a dropdown list provided from textbox?
<p>I want to take values from a textbox,</p> <p>and add those to a dropdown list on another page.</p>
php javascript jquery
[2, 3, 5]
5,274,796
5,274,797
How to show modal popup on page index changed event?
<p>I have one user control having gridview in it.In my aspx page i have modal popup to show this user control.So,when i click on page index modal popup get disappears.</p> <p>So,how can i avoid disappearance of modal popup on page index change in asp.net.</p> <p>Thanks.</p>
c# asp.net
[0, 9]
2,631,738
2,631,739
Using jQuery in a Blackboard Building Block
<p>Shot in the dark here, but I'm trying to use jQuery in a custom building block of type module for Blackboard: <a href="http://www.blackboard.com/" rel="nofollow">http://www.blackboard.com/</a>, and would love to know the tag structure I'm suppose to use to get this accomplished.</p> <p>I have tried several combinat...
java jquery
[1, 5]