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
1,863,814
1,863,815
Javascript JQuery link to download a txt file
<p>Is there a way to 'force' the browser to download a file instead of opening that?</p> <pre><code>&lt;a href="file.txt"&gt;Download this file&lt;/a&gt; </code></pre> <p>I've tried the method via js using the window.open("file.txt", "Download"); </p> <p>but no success.</p> <p>Thx.</p> <p>Updating:</p> <p>I've do...
javascript jquery
[3, 5]
4,492,872
4,492,873
change DropdownList Datasource Dynamicly
<p>I have a <code>dropDownlist</code> that have tow <code>Datasource</code> with names <code>Datasource1</code>,<code>Datasource2</code>. when the page_Load accrued the datasource1 is assigned to <code>Dropdownlist</code>. I have a button on page that i want when i clicked on button, Datasource2 assign to <code>Dropdo...
c# asp.net
[0, 9]
2,427,244
2,427,245
Decoding an input stream
<p>So I have a page that is accepting XML through a POST method. Here's a small bit of the code:</p> <pre><code>if (Request.ContentType != "text/xml") throw new HttpException(500, "Unexpected Content Type"); StreamReader stream = new StreamReader(Request.InputStream); string x = stream.ReadToEnd(); // added ...
c# asp.net
[0, 9]
4,055,375
4,055,376
.click function .load not working
<p>I am a total novice at jQuery, but giving it a go. I cant seem to get the <code>.click</code> function below to work. Can anyone tell me were I am going wrong?</p> <pre><code>$(".news").click(function() { $("#contentarea").load("console/news.php"); }); </code></pre>
javascript jquery
[3, 5]
2,745,222
2,745,223
How to pass string from OnStartCommand into OnHandleIntent in an IntentService?
<p>Android/Java noob here. I have a URL that I am discovering in another part of my application. I am successfully passing that URL as a string into an intent service's OnStartCommand. I would then like to make that string containing my URL available to HttpURLConnection residing in a thread in OnHandleIntent as sh...
java android
[1, 4]
54,224
54,225
In Javascript, what does this syntax mean?
<p>I found this snippet when i was looking at jQuery plugins and wonder what it actually does</p> <p>A jQuery plugin skeleton:</p> <pre><code>(function($) { ... })(jQuery); </code></pre> <p>And more recently in <a href="http://net.tutsplus.com/tutorials/html-css-techniques/building-persistant-sticky-notes-with...
javascript jquery
[3, 5]
4,246,329
4,246,330
How to hide a control in asp
<p>I have a asp page in which i placed a button on clicking this button a calendar will show up.now what i want to do is on clicking any where apart from the button the calendar should be hided.it looks like a silly question but i am very new to this development </p>
javascript asp.net
[3, 9]
2,155,447
2,155,448
autoplay: true with jQuery flowslideshow when the window is resized
<p>I want:</p> <p>autoplay: false when is width>900 in window size and ,</p> <p>autoplay: true when is width&lt;900 &amp; width>701 in window size and ,</p> <p>autoplay: false when is width&lt;701 in window size</p> <p>with jQuery flowslideshow and when the window is resized run this code</p> <p>but notworking.<...
javascript jquery
[3, 5]
4,741,110
4,741,111
JQuery advice needed
<p>I have a page and I want to show some paragraphs after clicking a link, before that it should be hidden. So i wrote a simple JQuery code, but the problem is when I click the open link all the other hidden divs are also shown. My code is given below please advice how to solve the issue.</p> <p>HTML</p> <pre><code>&...
javascript jquery
[3, 5]
3,028,462
3,028,463
Radiobuton list click show hide label control
<p>I am trying to show/hide Label control if the Radio button List value is 'N'. The code works fine but when I uncheck the radio button the Label control doesn't hide. Also I am using Jquery mousedown event to clear the selection. Please suggest.</p> <pre><code>var radioList = "#&lt;%= radioLst1.ClientID %&gt;"; va...
jquery asp.net
[5, 9]
342,480
342,481
Client side showing , hiding is risky
<p>I have a div which contains a button .I am initially setting div display:none &amp; depending upon the user rights i am showing it to user using javascript.</p> <pre><code>&lt;div id="mydiv" style="display:none"&gt; &lt;asp:Button id="btn" runat="server"/&gt; &lt;/div&gt; PageMethods.GetRights(onsuccess); fun...
javascript asp.net
[3, 9]
5,794,167
5,794,168
The javascript code from server side is not working in asp.net?
<p>i am developing an Asp.net application when i call javascript function from codebehind i found that for example:</p> <ol> <li>click event not fired</li> <li>i have a javascript function that fill the dropdown list with items using ajax but when page loaded i found dropdown list empty</li> </ol> <p>i am using Regi...
javascript asp.net
[3, 9]
4,248,814
4,248,815
how to split image into multiple pices and join them as requested by user
<p>I am trying to load a large image <strong>( size > 80 MB)</strong> into web page. User doesn't really need to see the whole image at once and only need to see the requested portion. </p> <p>The dimensions of the image are approx <strong>10k x 10k</strong>.</p> <p>I looked around a little bit but couldn't found a r...
c# asp.net
[0, 9]
664,509
664,510
Serialize form to a specific json format
<p>When I use .serializeArray(), my data looks like:</p> <pre><code>[ Object { Name="Name", Value="MyName" }, Object { Name="Age", Value="15"} ] </code></pre> <p>But I want it to look like:</p> <pre><code>{ Name: "MyName", Age: 15 } </code></pre> <p>What do I need to do?</p> <p>My form:</p> <pre><code>&lt;form id...
javascript jquery
[3, 5]
5,184,671
5,184,672
Create multiple directories in Android
<p>This is my directory structure on my Android sdcard</p> <pre><code> sdcard/alQuranData/Reader1/Surah </code></pre> <p>Here is my code to make Directories</p> <pre><code>File SDCardRoot = new File(Environment.getExternalStorageDirectory().toString() + "alQuranData/Reader1/Surah"); Toast.makeText(ge...
java android
[1, 4]
4,803,364
4,803,365
Jquery Ignore Event
<p>Let's say we have this markup:</p> <pre><code>&lt;span href=""&gt;Text &lt;a href=""&gt;Link&lt;/a&gt;&lt;/span&gt; </code></pre> <p>We have events bound to both elements. How do I make it such that when I click on the anchor tag, the event on the parent will not be triggered? I've tried using the Jquery method <a...
javascript jquery
[3, 5]
1,383,287
1,383,288
Converting a string
<p>How do I convert a string</p> <pre><code>This: file:///C://Program%20Files//Microsoft%20Office//OFFICE11//EXCEL.EXE To this: C:\\Program Files\\Microsoft Office\\OFFICE11\\EXCEL.EXE </code></pre>
javascript jquery
[3, 5]
1,086,064
1,086,065
Replacing ASP.NET POSTBACK with jQuery form posting
<p>I have a login screen wheren i have 2 text boxes and 2 radio buttons.I have a ASP.NET button too.When the user clicks on the button in my codebehind, in the click even of button ,i have the below lines to check the user login</p> <pre><code> string emailId=txtEmailId.Text.Trim(); string password=txtPassword...
asp.net jquery
[9, 5]
1,428,592
1,428,593
jquery return false not Working in Function called from onclientclick button event
<p>in my ASPX page i have declared a jquery function and called it in button's onclientclick function but the return false is not occuring in it</p> <pre><code> &lt;asp:Button ID="btnRemove" Text="Remove" runat="server" CausesValidation="true" CssClass="submitButton" OnClientClick="CheckConfirm();" OnClick="btnRemove_...
javascript jquery
[3, 5]
2,075,587
2,075,588
Write date in asp:TextBox
<pre><code>&lt;asp:TextBox ID="txtDate" runat="server" Value="&lt;%= DateTime.Today.ToShortDateString() %&gt;" /&gt; </code></pre> <p><code>Value="&lt;%= DateTime.Today.ToShortDateString() %&gt;"</code> does not write date in txt field but whole string. What i am doing wrong?</p>
c# asp.net
[0, 9]
1,339,211
1,339,212
How to get HTML of HtmlControl object in backend
<p>I have a short snippet of C# code like this:</p> <pre><code>HtmlGenericControl titleH3 = new HtmlGenericControl("h3"); titleH3.Attributes.Add("class", "accordion"); HtmlAnchor titleAnchor = new HtmlAnchor(); titleAnchor.HRef = "#"; titleAnchor.InnerText = "Foo Bar"; titleH3.Controls.Add(titleAnchor); </code></pre>...
c# asp.net
[0, 9]
4,682,479
4,682,480
How to run a setInterval that loops and tries a max of 10 times before breaking?
<p>I have the following to try to reload on a connection drop:</p> <pre><code>setInterval(window.location.reload(), 1000); </code></pre> <p>My concern with this is that it could continue forever, ddos'ing my application.</p> <p>How can I update the above to try at max 20 times before giving up and breaking?</p> <p>...
javascript jquery
[3, 5]
2,388,396
2,388,397
jQuery extension is undefined in document.ready
<p>I'm just baffled on this one. I'm using linq.js, which is a great library that adds LINQ-style extension methods to js and jQuery. One of them is <code>$.Enumerable</code>, which is used to translate a jQuery list into another object that has the LINQ goodness. This has worked fine for weeks. </p> <p>Today I di...
javascript jquery
[3, 5]
1,985,287
1,985,288
Is it possible to reference object within the same object?
<p>I've been messing around with jQuery plugin code and I'm trying to put all of my common variables into a single object for easy access. I have included a few examples below on how I've done this, but I'm wondering how others deal with this problem.</p> <p>Lets say I have this</p> <pre><code>var x = function(option...
javascript jquery
[3, 5]
1,318,714
1,318,715
Is there a way to search for text inside rows of a table with Javascript?
<p>I have an input text box and an html table with rows of text.</p> <p><strong>Table:</strong></p> <ul> <li>This is the first row of my table. </li> <li>This is the second row of my table.</li> <li>This is the third row of my table.</li> </ul> <p>When I start typing in the input text box, I want the rows that do no...
javascript jquery
[3, 5]
4,702,128
4,702,129
Call Jquery library only for specific tasks
<p>I'm scraping a news website with PHP and injecting the Jquery library in the head, along with my own script which depends on Jquery. I have experienced some loss of functionality regarding some websites. So I was wondering if it would be possible to make the Jquery library function only for my script and thus not "a...
javascript jquery
[3, 5]
4,211,158
4,211,159
Accessing variables from onclicklistener
<p>So I have an onItemLongClickListener for a list view that gets a parameter 'int position' passed in. Inside, I have an alertDialogBuilder which has two buttons. I have another onclickListener for the buttons. I need to access the position from inside the second listener. Is there anyway to do this without making it ...
java android
[1, 4]
4,226,762
4,226,763
How do I loop through elements and use the index number to present the relative array object properties?
<p>I have created an array object with some dummy properties, I have have also dynamically created some list items that I would like to attach a click handler to. When a list item is clicked I would like to present the appropriate data inside #container using the template Ive set up. Im assuming I can use the index fro...
javascript jquery
[3, 5]
2,056,403
2,056,404
Does JQuery have a way to unbind events in random HTML string?
<p>I'm using JQuery to set the HTML inside a div. Something like this:</p> <pre><code>$(div).html(strHtmlBlob); </code></pre> <p>strHtmlBlob is a chunk of HTML returned via Ajax from the server. After, it's assigned, I set up some events for elements in the new HTML blob by doing this:</p> <pre><code>$(div).find("...
javascript jquery
[3, 5]
1,690,822
1,690,823
Is Annotation in Javascript? If not, how to switch between debug/productive modes in declarative way?
<p>This is but a curious question. I cannot find any useful links from Google so it might be better to ask the gurus here.</p> <p>The point is: is there a way to make "annotation" in javascript source code so that all code snippets for testing purpose can be 'filtered out' when project is deployed from test field into...
javascript jquery
[3, 5]
4,772,356
4,772,357
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,852,837
3,852,838
functions, variable and jquery
<p>I have 8 search filters user can choose. When user clicks on filter it opens options for this filter. When user clicks out, the function <code>hideFilterSearch()</code> is triggered. I have problem about understanding of scope for variable formData (see below).</p> <pre><code>$(document).ready(function() { var ...
javascript jquery
[3, 5]
233,726
233,727
Marshalling data for C#
<p>I have not many experience in such language as C# so I would be pleased if you guys could help me. I wrote this method in C++ using MPIR library:</p> <pre><code>mpz_class SchnorrProtocol::getX(const mpz_class&amp; r) const { mpz_class x; mpz_powm(x.get_mpz_t(), this-&gt;params_.getBeta().get_mpz_t(), r.get_...
c# c++
[0, 6]
1,810,949
1,810,950
Exception: Object reference not set to an instance of an object
<p>I have been using the code,</p> <pre><code> object amountObject = MySqlDAL.ExecuteQuerySingle(query); if (amountObject.Equals(System.DBNull.Value)) { return amount; } </code></pre> <p>here in some point am getting an exception "Object reference not set to an instance of an obj...
c# asp.net
[0, 9]
4,271,691
4,271,692
click event doesnt get clicked in javascript
<p>I am having problem with jquery click event. Here is what my app does. User enters names in textfield. when he he clicks on add button then that name appears in contents div tag. This name also has a delete button. Now the problem is when user clicks on delete button it does not give any response. So how can I make ...
javascript jquery
[3, 5]
4,381,849
4,381,850
Sending element id's upon form submit
<p>I need to take the data I get from an element id pulled from dropped items (using jqueryui draggables/droppables/sortables) to be sent via a form (to be emailed) along with data here:</p> <pre><code> function submitForm() { $.ajax({type:'POST', url: 'send_tile.php', data:$('#tiles_collected').ser...
javascript jquery
[3, 5]
4,106,709
4,106,710
Click closest submit button when any 'enter' key event occurs on any input field
<p>I have multiple submit button on the page. What I want is if user presses enter on any input field it should click the related submit button. I tried the way below but it even couldnt catch the key press on the input fields. </p> <p>Thanks in advance, </p> <pre><code>$('* input').keypress(function (e) { if...
javascript jquery
[3, 5]
2,400,207
2,400,208
how to populate asp:DropDownList from C# side
<p>I am trying to populate asp:DropDownList with data items and here is the code i have written so far</p> <p>.aspx side</p> <pre><code>&lt;asp:DropDownList ID="ddl" runat="server" /&gt; </code></pre> <p>C# side</p> <pre><code>protected void btnAdd_Click(object sender, EventArgs e) { ddl.DataTextField = "hello"; ...
c# asp.net
[0, 9]
1,676,979
1,676,980
How to add +9 hours on my jQuery script?
<p>How can I add +9 hours on my script below ? I don't prefer to just add 9 hours to the correct time, for example if I want it 13:22:54 to make it 22:22:54 for this to work but on the script.</p> <p>I create the unix timestamp in a php file doing</p> <pre><code>$end = mktime(16, 54, 0, 8, 18, 2011); </code></pre> <...
php javascript jquery
[2, 3, 5]
4,729,736
4,729,737
jquery - Remove class from parent in list
<p>I need a Javascript <code>IF</code> statement that detects if: </p> <pre><code>$('.ms-quickLaunch .menu ul.static li a .menu-item-text') == "Manage" </code></pre> <p>And if it does equal "Manage" then set the list to <code>.show().</code></p> <pre><code>&lt;ul class="root static"&gt; &lt;li class="static link...
javascript jquery
[3, 5]
1,031,569
1,031,570
Edit links in place
<p>I use this javascript to edit text in place: <a href="http://josephscott.org/code/javascript/jquery-edit-in-place" rel="nofollow">http://josephscott.org/code/javascript/jquery-edit-in-place</a> now I need to edit links as well. But when I click on link instead of just making it editable I'm redirected to the link ad...
javascript jquery
[3, 5]
1,016,049
1,016,050
Facebook Javascript vs PHP SDK
<p>I am somewhat confused by the facebook developers guide. Some tutorials show the javascript SDK being used while some show the PHP SDK being used. Do I need to load both of these? Are there any differences between the two (besides one being client and one being server)?</p> <p>I am wanting to use Facebook's SDK for...
php javascript
[2, 3]
5,420,984
5,420,985
loading DXT texture files in android using Java
<p>I am looking to load compressed jpg and png files in android. Loading the raw files is just too slow. The plan is to compress the files ahead of time into DXT files. I tried to use DXTViewer to compress some images and attempt to load them as textures.</p> <p>Currently I am getting a GL_INVALID_ENUM from gl.glCompr...
java android
[1, 4]
3,722,466
3,722,467
How can I automate certain actions on a certain web page using javascript and jquery?
<p>I am learning javascript and would like to exercise a simple task, which I just fail to get right.</p> <p>All I want is to automate these actions:</p> <ol> <li>Navigating to a url</li> <li>Logging into the site by typing the password and clicking the login button</li> <li>Then click another button, which would ope...
javascript jquery
[3, 5]
252,145
252,146
The android emulator is not reflecting changes I have made in .xml layout file
<p>I have re-started eclipse, re-run the application numerous times, and saved all of my files in my application. In my .xml, I have gotten rid of a button. The .xml is inflated in my .java file. However, when I run my application on the android emulator, it keeps showing the button that I deleted. Any help???</p>
java android
[1, 4]
3,283,575
3,283,576
How to play .swf with flash player lite in android 2.2 sdk in java?
<p>How can I get the full path of flash player lite, </p> <p>and use it to play my target <code>.swf</code> ?</p>
java android
[1, 4]
3,622,391
3,622,392
how to merge to two bitmap one over another
<p>*<em>i have two images and i want to save one bitmap image over another exactlly at the same point where it is present i also move image using gesture..... *</em></p> <p>`public Bitmap combineImages(Bitmap ScaledBitmap, Bitmap bit) {</p> <pre><code> int X = bit.getWidth(); int Y = bit.getHeight(); Sca...
java android
[1, 4]
1,471,090
1,471,091
change css classes of element added to DOM at runtime
<p>I've included some JavaScript from a third party in my page. This adds the following element to the page some time after the page is loaded:</p> <pre><code>&lt;a class="foo"&gt;some link&lt;/a&gt; </code></pre> <p>I need to ensure that this is changed to:</p> <pre><code>&lt;a class="bar"&gt;some link&lt;/a&gt; </...
javascript jquery
[3, 5]
3,011,186
3,011,187
Javascript - Getting data from XML for later use... put in array or object?
<p>I am extracting a bunch of data from an XML file using jQuery. I need to use the data to fill in image paths, names, etc.</p> <p>What is the best way to gather all of this data for use? For instance, I get everything like so:</p> <pre><code> $(document).ready(function() { $.ajax({ ...
javascript jquery
[3, 5]
53,431
53,432
chunk_split in python
<p>I'm trying to find a pythonic way to do this PHP code:</p> <pre><code>chunk_split(base64_encode($picture)); </code></pre> <p><a href="http://us2.php.net/chunk%5Fsplit" rel="nofollow">http://us2.php.net/chunk_split</a></p> <p>chunk_split split the string into smaller chunks of 76 character long by adding a "\r\n" ...
php python
[2, 7]
1,256,265
1,256,266
Stop user to Shift+F5 on the Page
<p>Does any one here know how can I stop user to Shift+F5 or F5 (refresh the page) on the Page by Jacascript or jQuery?</p> <p>The reason is just to stop the page resubmit the same variable into the server side after the user clicked on the 'submit' button then pressed F5 again</p>
javascript jquery
[3, 5]
2,116,810
2,116,811
Storing user details in application variable
<p>How to store some 100 users details (username) in Application variable?I know how to use session but i dont know how to use Application variable and how to store in global.asax file?</p>
c# asp.net
[0, 9]
1,060,970
1,060,971
jquery: drawing and erasing border on focus and blur on any child elements of a div
<p>I'm having a div which can have many (not less then 5) child elements (mostly they are <code>div</code>, <code>table</code> and <code>img</code>). I want to draw border (e.g. with <code>jquery.css</code> method) when a user clicked on any child element of that div. It can be easily done with something like</p> <pre...
javascript jquery
[3, 5]
1,469,439
1,469,440
android hello world app help
<p>i am learning android apps and i made this app and it doesnt work</p> <pre><code> package com.android.test; import android.app.Activity; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; import android.widget.Toast; public cl...
java android
[1, 4]
3,353,358
3,353,359
Tryied window.open with Ajax, window.print not working (IE9)
<p>I'm trying to open new window and send form data with javascript and jquery-1.8.3.</p> <p>With Bernhard's help I succeeded to call a new window with page for print.</p> <p>(Thank you so much Bernhard. <a href="http://stackoverflow.com/questions/14226470/window-open-and-sending-form-data-not-working">window.open an...
javascript jquery
[3, 5]
4,171,260
4,171,261
Plugin architecture
<p>I am trying to understand plugin-architecture. Specifically the one used in the implmentation of Windows Live Writer. I am referring to the style where you can configure/enable/disable/add/remove additional functionality just by adding/removing DLL's(+ config). </p> <p>I hope to see something similar for a web-bas...
c# asp.net
[0, 9]
3,915,497
3,915,498
PHP echo inside javascript
<p>I've got jwplayer installed in wordpress and have it showing in a single.php page... the way I have it I need to get a custom field in the javascript and I;m having no luck echoing it in there. I know you cant straight up run PHP in a javascript function, hence I'm here asking noob questions :)</p> <pre><code>&lt;s...
php javascript
[2, 3]
535,978
535,979
How can I improve this?
<p>[http://83.80.140.99/jp/index.php]</p> <p>At the moment I am trying to create a japanese rehearsal system, and its working perfectly. However, I am not pleased with the code. Basically I had a .txt file called lesson1.txt. I saved it as UTF-8 so it can contain japanese characters. </p> <p>I had the problem I could...
php javascript
[2, 3]
2,483,013
2,483,014
When is $_FILES created/cleared | Relationship to javascript reloads
<p>I use this line</p> <pre><code>isset( $_FILES['ufile']['tmp_name'] ); </code></pre> <p>to test for a file upload. The issue I'm having is that I can't get the value to "clear".</p> <p>If I go in and manually type</p> <pre><code>unset( $_FILES['ufile']['tmp_name'] ); </code></pre> <p>I can clear it but once I r...
php javascript
[2, 3]
1,129,957
1,129,958
What i am doing wrong with Class Overview?
<p>This code not work. Anyone can helpme?</p> <p>.java</p> <pre><code>package rfmsoftware.util.test1; import android.app.Activity; import android.os.Bundle; public class test1 extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) {...
java android
[1, 4]
1,831,326
1,831,327
Select all text in textarea jquery
<p>How to make all text in textarea selected when user open it through jquery?</p>
javascript jquery
[3, 5]
3,734,257
3,734,258
$ at the beginning and at the end of variable
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/205853/why-would-a-javascript-variable-start-with-a-dollar-sign">Why would a JavaScript variable start with a dollar sign?</a> </p> </blockquote> <p>I realized some syntax with jquery and didnt know what it is. ...
javascript jquery
[3, 5]
828,138
828,139
Returning values from Asynctask
<p>Okay I have been trying to get this to work for some time now. I want to be able to have my user login without having the UI hang until the server responds. When the doinbackground is complete I want it to pass an int value or perhaps a boolean value to the postexecute and then the rest of my code will execute. For ...
java android
[1, 4]
4,881,338
4,881,339
How to format date to match specific pattern?
<p>I need to format <strong>DateTime.Now</strong> to match this pattern <strong>Example:</strong> 10-March-2011.</p> <p>How can I accomplish it?</p>
c# asp.net
[0, 9]
1,707,426
1,707,427
Calling javascript from codebehind c# & Asp.Net
<p>Am unable to understand why Cannot the below javascript code is not called from code behind</p> <p>I have a simple javascript block like this</p> <pre><code> function callsCox(res) { alert(res); } </code></pre> <p>From my code behind :</p> <pre><code> .... string res="COX23"; string script = String.For...
c# javascript asp.net
[0, 3, 9]
1,311,952
1,311,953
Return True or False & how to get just on true in a loop
<p>I have this script that sends via $.post some information</p> <pre><code>$("#clickme").click(function(e){ var selected = $(".img input:checked").map(function(i,el){return el.name;}).get(); var prelucrare = selected.join(";") $.post('test.php', { rezultat: prelucrare, }, function(data){ $('#rez').html...
php jquery
[2, 5]
73,453
73,454
Can we impliment the operator over loading in Web services?
<p>Hi is it possible to implement operator over loading in Web services in .net</p> <p>Mehar</p>
c# asp.net
[0, 9]
5,232,380
5,232,381
Check if mail already exist when register new user
<p>I need some feedback on this code:</p> <pre><code>protected void RegisterUser_CreatingUser(object sender, LoginCancelEventArgs e) { var mail = RegisterUser.Email.ToString(); if (mail == "already existing mail") { e.Cancel = true; } } </code></pre> <p>I want stop new users to register with a...
c# asp.net
[0, 9]
2,452,054
2,452,055
JavaScriptInterface not called
<p>Why my code below doesn't trigger my JavaScriptInterface : I can't see any dialogbox popup (I guess that android.widget.Toast is supposed to do) when webview loads.</p> <pre><code>package com.example; import android.app.Activity; import android.os.Bundle; import android.webkit.WebView; public class MyActivity ext...
javascript android
[3, 4]
917,201
917,202
how do asp.net and c# work together?
<p>In regards to web development PHP works seamlessly embedded inside HTML pages and is parsed before the HTML itself (hence the name PHP!). I'm thinking of starting to learn ASP.NET and C# and it greatly boggles me how do these two Microsoft technologies work in tandem when compared to PHP which is a single entity in...
c# php asp.net
[0, 2, 9]
2,370,152
2,370,153
JavaScript ternary operator example with functions
<p>I am using jQuery 1.7.1</p> <p>I am just starting to use the JavaScript ternary operator to replace simple if/else statements. I have done so successfully in several places. I was surprised when I successfully made something else work when I thought for sure it wouldn't, but I tried anyway.</p> <p>Here's the orig...
javascript jquery
[3, 5]
1,207,618
1,207,619
Refresh a view Android
<p>I want to refresh a listview. When I am getting a value from different class I want it to update that to list view. I am creating a thread for refreshing the list but I am getting an exception:</p> <p><code>Only the original thread that created a thread a view hierarchy can touch its views</code></p> <p>How to pro...
java android
[1, 4]
3,926,181
3,926,182
Is there a way to play the role of Javascript with any other language like C#?
<p>Is there a way to play the role of Javascript with any other language like C#? One way came up in my head is, having silverlight installed, using C# instead of Javascript for all the client side scripting (Though C# is not a scripting language). Is it possible?</p> <p>I am not talking about something like GWT(Java)...
c# javascript
[0, 3]
1,122,710
1,122,711
Delete cookies in java script
<p>My actual prob is <a href="http://stackoverflow.com/questions/9428458/asp-post-back-issue-and-html-controls">asp post back issue and html controls</a>.<br> i try to solve this in this way.<br></p> <pre><code>if ($('#rdb1').attr("checked")) { document.cookie = $('#rdb1').attr("id"); c...
c# javascript jquery asp.net
[0, 3, 5, 9]
4,451,018
4,451,019
Referencing explicit element id
<p>My javascript function looks like this - </p> <pre><code>function updateSuccess(aEle) { //Here aEle doesn't have the correct id percIncrease.innerText = "Success"; } </code></pre> <p>in realizing it's bad to get the element this way, what would be a safer way of getting that element?</p> <p>Some more info...
c# javascript asp.net
[0, 3, 9]
4,909,016
4,909,017
Android won't show special character from PHP page
<p>I have a simple web page that displays the word "Entrée". It looks perfect on the web but, when I use an HTTPClient in Android to show the webpage that should display this single word it does not know how to handle the "é". I'm not familiar with character codes and such, but I've been looking around and have seen th...
java php android
[1, 2, 4]
405,318
405,319
Validation Viewstate error
<p>I got this error when I tried to call a <code>OnClick</code> in my form </p> <p><strong>Error:</strong> <code>Failed validation of viewstate MAC. If this application is hosted by a Web Farm or cluster, ensure that configuration specifies the same &lt;machineKey&gt; validationKey and validation algorithm. AutoGenera...
c# asp.net
[0, 9]
2,122,679
2,122,680
Returning html of an element along with the element in jquery
<p>I have mark up like</p> <pre><code>&lt;div id="div1"&gt; &lt;div id="div2"&gt; blah blah &lt;/div&gt; &lt;/div&gt; </code></pre> <p>If I use $("#div1").html(), it returns the div#div2. But I want to get the complete html. i.e, along with div#div1. </p> <p>Is there any way to do this?</p>
javascript jquery
[3, 5]
1,547,029
1,547,030
How to use zindex in JavaScript
<p>What is the syntax for zindex?</p> <p>I tried like this </p> <pre><code>document.getElementById('iframe_div1').style.zIndex =2000; document.getElementById('iframe_div1').style.z-index =2000; </code></pre> <p>It is not working, it doesn't even show an error.</p> <p>This is my snippet. It is working fine in HTML, ...
javascript jquery
[3, 5]
3,130,797
3,130,798
Android app can be launched when press icon?
<p>I've build my project as .apk file and then I installed it into my device. My step is:</p> <p>1) Press an icon in app drawer, the Main Activity was started.</p> <p>2) Press some action to go to Second Activity</p> <p>3) Press Home Button</p> <p>4) Press icon again</p> <p>My expectation is the Second Activity s...
java android
[1, 4]
2,564,733
2,564,734
C# class similar to Java Desktop class
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/10174156/open-file-with-associated-application">Open file with associated application</a> </p> </blockquote> <p>I want to open a file in it respective application, e.g. open function of windows.</p> <p>Same thi...
c# java
[0, 1]
1,426,192
1,426,193
Trying to do some Obfuscation, How should I approach this particular case?
<p>I currently have an assignment that is really pushing my limits so I need some help on how to approach this. </p> <ol> <li>We have a set of 25 results</li> <li>We are using a jquery plugin to vertically scroll through these 25 results, the container displays five results at a time. </li> <li>When viewing the source...
php javascript jquery
[2, 3, 5]
655,983
655,984
Sign in to other website using asp.net
<p>Hey guys, I'm trying to make a website that can sign into other websites for the users, and grab certain information. For example: a web based game forum that automatically pulls your game statistics. My website would have to navigate to the game url, fill in the user name and password, sign in, then read the html o...
c# javascript asp.net
[0, 3, 9]
3,609,714
3,609,715
Can one integrate PHP in Javascript?
<p>I've a webpage, which is currently completely build with PHP. Now, it would be great if it works on my local machine outside the web server, too. I figured out, that most of the stuff is just client side operations. I can easily rewrite them using Javascript. However, at one point, I am reading <code>Date</code> inf...
php javascript
[2, 3]
5,682,702
5,682,703
Dynamically change option values in drop down list
<p>Hi I want to add multiple drop down lists to my html page. Which they are contained same option values. (name,email,state,city,country,phone) condition is when user select "name" in first drop down list it should be disabled in all other drop down list. Assume when user select "email" in second drop down list, both ...
php jquery
[2, 5]
661,458
661,459
multi cloned select menu to submit form using Jquery?
<p>im trying to make a simple form which have a select menu with clone and remove button and once any of those select menus changed it must post the form using .Ajax call . its working but have some issues HTML</p> <pre><code>&lt;form action="action.php" method="post" id="LangForm" &gt; &lt;div id="fileds"&gt; &lt;sel...
php javascript jquery
[2, 3, 5]
5,895,951
5,895,952
Web Application Architecture (ASP.NET 3.5,JavaScript)
<p><strong>hey all ,</strong></p> <p>background -</p> <p>I'm using an activx that allow me to access some information on the client side,</p> <p>By using the activex events and callback i'm updating server side from client.</p> <p>i wrote a user control that register all activex's events so when one of the events o...
asp.net javascript
[9, 3]
5,275,226
5,275,227
Pass a javascript variable to php
<p>Newb question so excuse me if there's an obvious answer (I've tried everything I can think of).</p> <p>I have a javascript variable setup like so:</p> <pre><code>var imageURL = &lt;?php echo json_encode($imageRows[0]['URL_Path']); ?&gt;; </code></pre> <p>Where $imageRows[0] can be an integer from 0 to whatever.</...
php javascript
[2, 3]
2,676,888
2,676,889
Set focus to a textbox in a nested iframe
<p>I use TinyMce in my app. So, I have nested body elements and iframes. One from my html page, and one from the TinyMce. To the body of the tinymce I append div with many textboxes. Their ids are hello1, hello2 etc.</p> <p>How to set focus to 'hello1'?</p> <p>This code:</p> <pre><code>$iframe.contents().find('body'...
javascript jquery
[3, 5]
2,762,718
2,762,719
LineNumberReader setLineNumber not working
<p>i use LineNumberReader to read text file , when call setLineNumber and getLinenumber it print == 0 But when call readLine again ์Nit thing happen how can i fix it Here is my code</p> <pre><code> BufferedWriter writer = new BufferedWriter(new FileWriter("text.txt")); writer.write("This is a line1\n" + ...
java android
[1, 4]
5,475,864
5,475,865
The status code returned from the server was 413
<p>Getting this error on pages using https when a event handler is called. e.g selecting a row of data.</p> <p>the data is in a infragistic webgrid.</p> <p>Please advise.</p>
c# asp.net
[0, 9]
525,329
525,330
countdown timer on alert box in android
<p>How do i display a countdown timer in my alert box .i want to notify the user that the session will end in 5 minutes and show a timer running in the alert pop up box in android</p>
java android
[1, 4]
2,558,345
2,558,346
How to display selected auto drop down/autofill value into another div?
<p>If i select name/keywords from autofill/auto dropdown means, selected keyword should display into another div.</p> <pre><code> &lt;div class="iD_textarea" &gt; &lt;table&gt; &lt;tr class="organName" style="display:none;"&gt;&lt;td width="124px"&gt; &lt;b&gt;&lt;spa...
javascript jquery
[3, 5]
1,291,761
1,291,762
How to ensure HTML form elements visibly update before executing javascript events
<p>I have found that events like .click and .change, if they result in some processing that takes significant time (like a second or two) actually delay the screen update, so the user does not see e.g. the radio button select move until after some time. This is of course a big no-no in terms of user experience. The but...
javascript jquery
[3, 5]
4,774,172
4,774,173
Detect when an alert box is OK'ed and/or closed
<p>Basically as the title says.</p> <p>How can I detect when an alert box is OK'ed and/or closed?</p>
javascript jquery
[3, 5]
2,845,647
2,845,648
Add Control to website via Code
<p>I am writing some controls for an asp.net website and i want make this controls contain .ascx file and .dll file.<br> I dont want upload site for every control.<br> so is there a way that make this control add to site via code like adding module in <strong>DotNetNuke</strong>.</p>
c# asp.net
[0, 9]
3,232,191
3,232,192
figuring out this Javascript code
<p>I am trying to figure out how the get the featured area</p> <p>at <a href="http://blueoceanportfolios.com" rel="nofollow">http://blueoceanportfolios.com</a> to link to webpages rather than displaying it within the featured box on the left .</p> <p>This area is using JS file to display the videos on content in the ...
javascript jquery
[3, 5]
3,421,455
3,421,456
How do I clear the selection in an Android Submenu?
<p>I have a menu in my Android application and this menu has a <code>SubMenu</code>. The items are exclusively selectable.</p> <p>How can I remove a selection made by the user (such that the submenu looks like it was at the beginning, with no item selected?</p> <p>I was looking for a method that would do this, in a s...
java android
[1, 4]
1,279,471
1,279,472
retrieving multiple records from the database using jQuery
<p>I have a method in ASP.NET web service. jQuery calls this method to retrieve several records with multiple fields from the database. </p> <p>I have problem to display the data in tabular format in the web page. I know if my method in web service returns just one string with appropriate table tags, it can be display...
jquery asp.net
[5, 9]
4,341,255
4,341,256
data transfer gird view to excel sheet
<p>data transfer grid view to excel in asp dot net code is run but blank sheet generate of excel but data is not loaded in excel sheeet how to solve this type of broblem</p> <pre><code>protected void btnexcel_Click1(object sender, EventArgs e) { Response.Clear(); Response.Buffer = true; Response.AddHeader...
c# asp.net
[0, 9]