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 |
|---|---|---|---|---|---|
185,332 | 185,333 | Declaring InputStream | <p>I am learning android and new to Java but not new to programming (Using Eclipse). I am trying to execute an example code like this in a method:</p>
<pre><code>private void dummy() {
try {
URL url = new URL(quakeFeed);
URLConnection connection;
connection = url.openConnection();
H... | java android | [1, 4] |
4,636,368 | 4,636,369 | ImageMap display in asp.net | <p>I have building image with seating positions, I have to display selected location of image on button click. example If user select seat num 120 I have to locate seat num 120 and highlight the seat num. Image is very big 2000x1500 size so I have to show the image with selected position ,like in google map it display ... | c# asp.net | [0, 9] |
4,893,714 | 4,893,715 | Deriving a crypto key from a password | <p>I am trying to generate a key using the .net 2.0 PasswordDeriveBytes class.</p>
<pre><code> PasswordDeriveBytes pdb = new PasswordDeriveBytes("blahblahblah",null);
byte[] iv = new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 };
byte[] key = pdb.CryptDeriveKey("TripleDES", "SHA1", 128, iv);
</code></pre>
<p>The code throws... | c# asp.net | [0, 9] |
3,215,337 | 3,215,338 | jQuery best way to detect a parent elements edge | <p>I have dev'd up a little popover element inside a frame with the intention for this frame to sit within a facebook application. This means that the app is limited to 810px and there can be no bleed. In my application you can hover an element and that element will create a small popover with a slightly larger element... | javascript jquery | [3, 5] |
864,951 | 864,952 | How to get TextBox ClientID in a javascript function using ListView and InsertTamplate or EditTemplate | <p>I have a ListView with ItemTemplate, EditTemplate and InsertTemplate.
There are several TextBoxes in Edit and InsertTemplate. I need to calculate some of the values in Javascript, but I don't know, how to get a ClientID in my JS function or pass it as a parameter.</p>
<p>Javascript function:</p>
<pre><code><scr... | javascript asp.net | [3, 9] |
92,183 | 92,184 | export datatable to CSV with Save File Dialog box - C# | <p>Struggling to get my CSV export to display the Save File dialog box up. It saves to file ok, but doesn't let the user save. Can anybody see where I might be going wrong with the code please?</p>
<pre><code>string filename = Server.MapPath("~/download.csv");
StreamWriter sw = new StreamWriter(filename, false);
in... | c# asp.net | [0, 9] |
4,766,755 | 4,766,756 | jquery editable extra button/link | <p>I am using jquery's editable and with submit and cancel I also want to 1 extra button for other functionality... can anyone help?</p>
| javascript jquery | [3, 5] |
4,410,139 | 4,410,140 | Jquery next adjacent selector with $(this) | <p>How could i use the adjacent selector "+" with the $(this). </p>
<p>I would need a help with the commented lines with //this doesnt work:</p>
<pre><code>$(".ExpandCollapse").click(function () {
if ($(this).nextUntil('.Collapsable').is(':visible'))
{
//this doesnt work
... | javascript jquery | [3, 5] |
1,667,511 | 1,667,512 | Use jQuery $ inside an iframe | <p>I would use an expression like this </p>
<pre><code>$("a[href*='2']").offset().left
</code></pre>
<p>but for iframe's elements ...</p>
<p>I tried this:</p>
<pre><code>$("#inside-slider").contents().attr("a[href*='2']").offset().left
</code></pre>
<p>but nothing. </p>
<p>(inside-slider is my iframe's id)</p>
| javascript jquery | [3, 5] |
1,783,345 | 1,783,346 | Extend a function - merge two functions? | <p>I am in some new territory now, I haven't worked with this sort of thing in a while.</p>
<p>What is the best way to have a Javascript 'class' for instance </p>
<pre><code>// In the parent instance
function xyz()
{
var x = 1;
}
</code></pre>
<p>I want to set this in the class, and when a user extends a class, ... | javascript jquery | [3, 5] |
432,619 | 432,620 | C# directive for code to run only when working on localhost | <p>Is there any directive in C# that runs a code (server side code) only when the application runs on localhost and ignores it on production (not the debug true or false)?</p>
<p>It can be something that reads a web.config appsettings variable, if it's true, run the code, if it's false, ignore it (just an idea).</p>
| c# asp.net | [0, 9] |
4,864,109 | 4,864,110 | How come this JQuery code returns nothing? | <pre><code><script src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
<script>
var newvalue = '<img class="youtube_replace youtube_canvas" data-code="Wn-_MyJV37E" src="http://img.youtube.com/vi/Wn-_MyJV37E/0.jpg" />';
var abc = $('<div>' + newvalue + '</div>').find('*').each... | javascript jquery | [3, 5] |
3,239,488 | 3,239,489 | Is increased programming efficiency in Java or C# a myth? | <p>A big advantage of Java or C# in increasing <strong>productivity of development</strong> is that you're supposed to lose less time with complicated language features, especially those related to memory management. But is it just an impression?</p>
<p>I think that the learning curve for C++ is definitely more steep,... | c# java c++ | [0, 1, 6] |
5,653,343 | 5,653,344 | How to put buttons in a html page in a jQuery dialog | <p>eHello everyone,the following is my code to display a jquery dialog window with a closing button "OK":</p>
<pre><code><script type="text/javascript">
$(function(){
$("#dialog").dialog({
autoOpen:false,
bgiframe:true,
buttons: { "OK": function() { $(this).dialog("close"); } },
... | javascript jquery | [3, 5] |
2,268,360 | 2,268,361 | Changing the cursor in asp.net | <p>I want to change the cursor to an hourglass in my asp.net application to let my users know that the process is running. I searched for an answer and was advised to use javascript as follows. </p>
<p>1) Add this javascript</p>
<pre><code>function hourglass() {
document.body.style.cursor = "wait";
}
</code></pr... | c# asp.net javascript | [0, 9, 3] |
755,292 | 755,293 | .NET Get logged in user | <p>My problem is that I have a asp.net solution that uses a seperate project for logging and now I want the log to save the logged in user. Windows authentication is used for the webapp and the app pool is run under a service account. So when I call the logger through a method(static) I want the logger to pick up who i... | c# asp.net | [0, 9] |
5,305,352 | 5,305,353 | English to french asp.net resource file translation | <p>I have a asp.net resouce language file in english and I have to translate that resource file into french. how can this be achieved? There are lot of values on the resource file that needs to be translated. </p>
<p>is there any sample available on how this can be done by using google language translation or somethin... | c# asp.net | [0, 9] |
874,875 | 874,876 | python executing existent (&big) c++ code | <p>I have a program in C++ that uses the <code>cryptopp</code> library to decrypt/encrypt messages.</p>
<p>It offers two interface methods <code>encrypt</code> & <code>decrypt</code> that receive a string and operate on it through <code>cryptopp</code> methods.</p>
<p>Is there some way to use both methods in Pyth... | c++ python | [6, 7] |
3,136,752 | 3,136,753 | include javascript with php or client side script tags | <p>I'm not sure how to check out which is better, so I was wondering if anyone had some insight.</p>
<p>For javascript files, is it faster (or better) to use the script tags in the html and let the browser download the script from the server, or is it faster to use php to include the javascript file with the html when... | php javascript | [2, 3] |
4,506,611 | 4,506,612 | jQuery $.post doesn't work with when function(response) added | <p>I have the following js function</p>
<pre><code>function remove() {
jQuery(document).ready(function() {
jQuery("button").click(function(e) {
var buttonHnd = jQuery(this);
jQuery.post("script.php", {
nume_client: jQuery("#nume_client").val()
adresa: jQuery(... | javascript jquery | [3, 5] |
5,152,246 | 5,152,247 | Inject javascript in existing asp.net webforms app | <p>I am currently working on a website which has a lot of javascript . How can i make sure that my javascript has the best chance of running properly? By adding another script section in the page or through asp.net registering the script?</p>
| javascript asp.net | [3, 9] |
1,552,864 | 1,552,865 | how to send a value from a HTML dropdown box to a JQuery function | <p>I'm very new to JQuery and don't have much experience with javascript at all, and after hours of trying to figure this out i give up. I know how to do it in PHP, but there's something I'm missing when I try it in JQuery.</p>
<p>I have a html-file that generates a dorpdown box that looks something like tihs:</p>
<p... | javascript jquery | [3, 5] |
2,929,957 | 2,929,958 | how to show a previously hidden div defined by the $_GET function | <p>i have recently started coding in PHP and im wondering how i can show a div defined in the adress bar (example: www.yourwebsite.com/index.php?divtoshow=home)</p>
<p>The div is hidden with css, display:none;</p>
<p>then i want it to display the home div</p>
<p>i have tried using jquery, but i cant seem to get the ... | php javascript jquery | [2, 3, 5] |
2,533,929 | 2,533,930 | Can't click search box in browsers other than Firefox | <p>I'm using the following search: <a href="http://www.technabled.com/2009/03/how-to-build-animated-ajax-search-with.html" rel="nofollow">http://www.technabled.com/2009/03/how-to-build-animated-ajax-search-with.html</a></p>
<p>I'm able to click inside the search box and type stuff in Firefox, but not Chrome. I've test... | php jquery | [2, 5] |
5,457,643 | 5,457,644 | How do I convert several anonymous jquery functions into a single named function? | <p>Is it possible to convert the following four anonymous jquery functions into one function that gets a parameter passed?</p>
<p>this is what I have...</p>
<pre><code> dropZone.addEventListener("dragenter", this.dragEnter, false);
dropZone.addEventListener("dragover", this.dragOver, false);
dropZone.addEv... | javascript jquery | [3, 5] |
1,700,384 | 1,700,385 | How to use Javascript or Jquery to switch the select elements? | <p>I don't know much about Javascript and Jquery, but I do have to use it on a HTML select tags. I have two database tables, grouptypes and groups. A grouptype can have multiple groups, but a group only belongs to one grouptype. I have two select tags, one is grouptypes and another one is groups. What I want to do is t... | javascript jquery | [3, 5] |
1,676,267 | 1,676,268 | PageMethods what is issue with it? | <p>I'm getting "Object Error" on line</p>
<pre><code>function readWURecord()
{
var ifUSD = "";
try
{var mtcnNo=document.getElementById('ctl00_ContentPlaceHolder1_TxtReferenceNo').value;
if(mtcnNo=='')
{
alert('Provide Reference Number');return false;}
var adoConn=new ActiveXObject("ADODB.Connection");
var adoRS=new Ac... | c# javascript asp.net | [0, 3, 9] |
4,656,085 | 4,656,086 | How to check that Proxy enabled or not | <p>I want to check that proxy enabled or not in my connection through my code.</p>
<p>How can I achieve this via my code?</p>
| c# asp.net | [0, 9] |
689,867 | 689,868 | Check color CSS file... change colors jquery plugin | <p>Is it possible to check with JavaScript (jQuery) if there is a certain CSS file? And if there is that it loads a color array for jQuery plot?</p>
<p>Example:</p>
<ul>
<li>I include a color CSS file (blue.css).</li>
<li>Javascript will check if there is a color CSS file (blue.css, red.css, grey.css).</li>
<li>There... | javascript jquery | [3, 5] |
3,615,186 | 3,615,187 | how can I execute javascript code every a specific time interval? | <p>I want to ping the server every 2 minutes using jquey? I thought about an open loop with setTimeout function but I think this would crush the browser , any suggestions ?</p>
| javascript jquery | [3, 5] |
258,187 | 258,188 | Search For Words, Replace With Links | <p>I have an array like this</p>
<pre><code>var words = [
{
word: 'Something',
link: 'http://www.something.com'
},
{
word: 'Something Else',
link: 'http://www.something.com/else'
}
];
</code></pre>
<p>I want it to search the page for word and replace it with link. Is there an effi... | javascript jquery | [3, 5] |
5,488,460 | 5,488,461 | Why is first sound slow to play with soundmanager2? | <p>I've just finished this jquery plugin to display musical scales:</p>
<p><a href="http://www.daveconservatoire.org/tools/scales" rel="nofollow">www.daveconservatoire.org/tools/scales</a></p>
<p>The piano keys are clickable and play the relevant notes. I'm using the Soundmanager2 package. </p>
<p>I'm loading all t... | javascript jquery | [3, 5] |
1,335,007 | 1,335,008 | What's the difference when new operator is applied? | <p>For example, if I would like to display the current date on the <code>p</code> element:</p>
<pre><code>$("p").html('Now is '+Date()); // good
$("p").html('Now is '+new Date()); // good
$("p").html(Date()); // good
$("p").html(new Date()); // bad
</code></pre>
<p>Why the last statement does not display the current ... | javascript jquery | [3, 5] |
1,929,840 | 1,929,841 | Do IntentServices eat up an applications memory? | <p>I have 5 IntentServices that run at different times and in a separate process than the main UI. When the services complete they send the data via an intent to the main process. I am wondering if having 5 services is using too much memory for my application. Are services completely cleaned from memory when they shutd... | java android | [1, 4] |
5,001,431 | 5,001,432 | abstract activity causes findViewById() not to work | <p>I have an abstract <code>Activity</code> as most of my activities share the same menu:</p>
<pre><code>public abstract class ActivityBase extends Activity {
@Override
public boolean onCreateOptionsMenu(Menu menu) {
MenuInflater inflater = getMenuInflater();
inflater.inflate(R.menu.menubar, m... | java android | [1, 4] |
2,414,485 | 2,414,486 | Loads external php file with javascript src | <p>I'm currently using below method to call an external php file with some variables using javascript</p>
<pre><code><script src="http://www.domain.com/function.php?param=A" type="text/javascript"></script>
</code></pre>
<p>And the code in the function.php file will return data in Javascript format, somet... | php javascript | [2, 3] |
3,784,170 | 3,784,171 | c# session multidimensional array | <p>I'm trying to add form data from an asp.net wizard into a session array object. The object should store the question number and question answer selected by the user for each question. I'm trying to use a multidimensional array to store the question number and the associated answer. I would also be open to using a ha... | c# asp.net | [0, 9] |
3,966,267 | 3,966,268 | Impossible to hide a DIV in ASP.NET MVC | <p>I have some trouble to hide some div in my application, this code is used in jQuery UI tabs.</p>
<p>In the controller :</p>
<pre><code>public ActionResult MyAction()
{
return View("MyView", model);
}
</code></pre>
<p>In the view "MyView", I have this :</p>
<pre><code><script type="text/javascript">
$(d... | jquery asp.net | [5, 9] |
2,585,313 | 2,585,314 | c# control names | <p>Is there a way to control how .Net sets the <code>Name</code> and <code>ID</code> property of my controls? I have some radio buttons for which I need the name to be the same. However if I set the <code>ID</code> property of the radio button control it sets the <code>Name</code> and the <code>ID</code>. I see no w... | c# asp.net | [0, 9] |
3,925,076 | 3,925,077 | android 4.0.3 and jquery compatibility | <p>I'm currently developing an Android application who uses a WebView loading html/js pages.</p>
<p>These pages are games developed with jQuery, especially to make animations.</p>
<p>I have an issue on Android 4.0.3 . I can't get animations to work correctly. But the weird thing is that it works on Nexus S and not on... | android jquery | [4, 5] |
4,153,749 | 4,153,750 | How can I display default face photo using the Facebook graph API? | <p>I am using graph API. I need to show default human face picture. how can i show it?</p>
<p>Thanks in advance.</p>
| php javascript | [2, 3] |
5,256,676 | 5,256,677 | jquery plugin tutorial confusing, cannot see init parameters | <p>i'm currently exploring <a href="http://docs.jquery.com/Plugins/Authoring" rel="nofollow">jQuery's plugin authoring</a> and:</p>
<pre><code>var methods = {
init : function(options) {
console.log(options);
return this.each(function() {
console.log(options);
});
}
};
</code... | javascript jquery | [3, 5] |
3,543,165 | 3,543,166 | getTabHost() method in undefined | <p>I am making tabs in android. I am using TabHost to achieve this. I am getting red line under <code>getTabHost()</code> method on this line <code>TabHost tabHost = getTabHost();</code>. I am not sure why am I getting this. How can I make this example work?</p>
<p>Here is my complete code</p>
<pre><code>public class... | java android | [1, 4] |
181,449 | 181,450 | Which solution is better for passing "this" parameter to javascript event handler | <p>What is the best approach for passing the <code>this</code> parameter of the init function to the change event handler and why?</p>
<p>Option 1 (using that = this).</p>
<pre><code>SomeObject.prototype.init = function () {
var that = this;
this.$element.change(function () {
//do some som... | javascript jquery | [3, 5] |
916,934 | 916,935 | calling jquery from a javascript function | <pre><code><html>
<head>
<script type="text/javascript">
function display(id)
{
// open jquery modal window using jquery UI
}
</script>
</head>
<body>
</body>
</html>
</code></pre>
<p>I want to open jquery modal window using jquery UI whenever the function display i... | javascript jquery | [3, 5] |
2,473,527 | 2,473,528 | popup window according to CheckBox checked | <p>If user don't checked, I want to show asp:ModalPopupExtender and get numeric value from this form.</p>
<p>I'm using asp.net wizard control. I don't know "finish" button id. Can somebody help me?</p>
<p><img src="http://i.stack.imgur.com/V7ZnU.png" alt="enter image description here"></p>
| c# asp.net | [0, 9] |
3,112,041 | 3,112,042 | 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><title>Insert title here</title>... | javascript jquery | [3, 5] |
26,746 | 26,747 | Is this the correct jQuery to change the class? | <p>I have a little project I am working on and I am using jQuery. I tried using a little jQuery to change the class to change some css styles when clicked but it does not seem to work.</p>
<p>heres the important html:</p>
<pre><code><ul id="UInavList">
<li class="selectedNav"><a href="javascrip... | javascript jquery | [3, 5] |
3,143,617 | 3,143,618 | addClass if contains match | <p>HTML:</p>
<pre><code><li class="widgetcontainer widget_text" id="text-3">
<h3 class="widgettitle">Static Ad</h3>
<div class="textwidget"><img alt="" src="static/announcement.png"></div>
</li>
</code></pre>
<p>jQuery:</p>
<pre><code>if( $('.widget_text')[0] ) {
$... | javascript jquery | [3, 5] |
1,241,103 | 1,241,104 | If value of form field is less than variable show alert with info | <p>How to do something like this: if value of this form field:
<code>$('#id_erinnerung_am')</code></p>
<p>is < <code>enddate</code> ->show <code>alert("Wrong");</code></p>
<p>Java script code:</p>
<pre><code>$(document).ready(function(){
$('#id_laufzeit_bis').datepicker().on('changeDate', recalculate_deadlin... | javascript jquery | [3, 5] |
5,130,979 | 5,130,980 | C# how can i use WMI to create user account in a remote computer | <p>I wan to create user account in a remote machine and set some credintial to it.
i knew that we can use WMI to run batch file remotly on another machine .</p>
<p>is there a way to run batch file using c# code to create user name and passowrd remotly on another machine</p>
| c# asp.net | [0, 9] |
5,971,973 | 5,971,974 | Get textbox value in a GridView templatefield using Jquery | <p>I am using a text box inside a GridView as ItemTemplate field. I have a requirement to get the value of the text box usingJquery. How can I do that? How can I get the textbox object under a GridView in Jquery. </p>
<p>Thanks in advance</p>
| javascript asp.net jquery | [3, 9, 5] |
2,352,926 | 2,352,927 | PHP and JavaScript - What is the difference? | <p>What is the <strong>big difference</strong> between PHP and JavaScript?</p>
<p>Can we do website only with PHP (and HTML) or is it absolutely necessary you need JavaScript too?</p>
| php javascript | [2, 3] |
4,838,527 | 4,838,528 | How can I pass a ASP.NET server control to a function? | <p>I have a class in a separate file (stripped out a lot for simplicity)</p>
<pre><code>public class navigation
{
// Adds to menu
public static void addMenuToList(ListView parent)
{
parent.Items.Add(newItem);
}
}
</code></pre>
<p>Where parent is a control on my .net page:</p>
... | c# asp.net | [0, 9] |
3,446,750 | 3,446,751 | Is that possible to use a same user control in a page for multiple times? | <p>It's all about the control id. I am developing chat function in my asp.net project. I need to show a chat div for a target user that the current user is chatting with. Each chat div is loaded a user control. I'm wondering if there are more than one control shows in a same web page, what is the control id. For exampl... | c# asp.net | [0, 9] |
5,651,580 | 5,651,581 | Can't get form's select element value using jQuery | <p>I am able to get input element's value using
<code>var flt=$("#flt"+rowID).val();</code></p>
<p>but cannot get <code>select elements value</code></p>
<p>here is my php code</p>
<pre><code><?php
$AC= & getAC();
while ($rowAC=mysql_fetch_array($AC)){
$i++;
if ($rowAC['acode']==$row['... | javascript jquery | [3, 5] |
5,953,416 | 5,953,417 | Two ASP.NET Postback related questions | <p><strong>Question 1)</strong>
I have a control to which I add an attribute from the server side by using a sentence like:</p>
<pre><code>ControlName.Attributes.Add("myTestAttribute", "")
</code></pre>
<p>From the client side I modify the value of this attribute by using the Javascript function:</p>
<pre><code>Docu... | asp.net javascript | [9, 3] |
5,369,577 | 5,369,578 | read html file from asp.net | <p>I want to read <code>html</code> file and load control in <code>ascx</code> file in asp.net.I search in net but unable to find any resource.Please suggest links or any solution.Thanks.</p>
| c# asp.net | [0, 9] |
2,577,262 | 2,577,263 | C# while loop not working with server side controls | <p>I have 5 records in my Database and the below code is working fine to retrieve all the 5 records and write them.</p>
<pre><code>while (dr.Read())
{
String a1 = dr[0].ToString();
Response.Write(a1);
}
</code></pre>
<p>but, when I remove <code>Resonse.Write(a1);</code> and using <code>repvals = a1;</code> ... | c# asp.net | [0, 9] |
1,150,037 | 1,150,038 | How to Load Google's jQuery in External Script? | <p>Stupid question, but does anyone know how to load google's jquery from an external script so it doesnt clunk up my header? In other words, I want to take the code below (probably starting at the google.load stuff and save it inside another file to include in my header. I want to keep my view source pretty :)</p>
<p... | php javascript jquery | [2, 3, 5] |
5,377,636 | 5,377,637 | Remove whitespace after disabled control in asp.net | <p>I have small page, it looks follows:</p>
<p>Some header</p>
<p>Label with text only for logged users</p>
<p>Hyperlink</p>
<p>Logout button</p>
<p>Here is the behind code:</p>
<pre><code>protected void Page_Load(object sender, EventArgs e)
{
if (User.Identity.Name == "")
{
Label1.Visible = false... | c# asp.net | [0, 9] |
2,882,826 | 2,882,827 | javascript date display | <p>Please refer the fiddle <a href="http://jsfiddle.net/HCqsM/5/" rel="nofollow">http://jsfiddle.net/HCqsM/5/</a></p>
<p>Here By clicking the 'click' link for the first text field, the date picker displayed. By selecting the date, it will be populated on text field. Then click the first text field , (the date + 7days)... | php javascript jquery | [2, 3, 5] |
1,294,110 | 1,294,111 | Get Value from child window to parent window | <p>In Child window i have a table. When i click on it i need to get those values in parent window. I am using HTML and javascript. I need this in javascript or jquery.</p>
| php javascript jquery | [2, 3, 5] |
2,937,739 | 2,937,740 | increase number of visitor by view | <p>the number of visitor will increase by click, but every time when i close my browser, the number of visitor never decreased</p>
<p><strong>my testing step</strong></p>
<p>1)click f5 on my browser, number of visitor increased by 1</p>
<p>2)open another browser ,number of visitor increased again, current number of ... | c# asp.net | [0, 9] |
3,577,289 | 3,577,290 | RadioButtonList inside DataList | <p>I have a radiobuttonlist control inside a datalist</p>
<pre><code><asp:DataList ID="dlfilteritem" runat="server" RepeatDirection="Horizontal"
RepeatColumns="3">
<ItemTemplate>
<asp:RadioButtonList ID="rblfilteritem" runat="server">
</asp:RadioButtonList>
</Item... | c# asp.net | [0, 9] |
1,431,232 | 1,431,233 | how to print a variable of javascript in php? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/10853630/how-to-put-javascript-variable-in-php-echo">how to put javascript variable in php echo</a> </p>
</blockquote>
<p>I have JavaScript to get time and the code is below.</p>
<pre><code><script type="tex... | php javascript | [2, 3] |
4,117,037 | 4,117,038 | Read Status code | <pre><code>conn = (HttpURLConnection) connectURL.openConnection();
conn.setDoInput(true);
conn.setDoOutput(true);
conn.setUseCaches(false);
conn.setRequestMethod("POST");
conn.connect();
int code = conn.getResponseCode();
</code></pre>
<p>I have successfully established a connection. I am trying to pass the informatio... | java android | [1, 4] |
3,253,787 | 3,253,788 | Getting rid of the onclick when clicked with jQuery | <p>ok so i have some select tags of cities</p>
<pre><code> <select onchange="storeCity(this.value, false)" name="search[city]" id="search_city" class="left">
<option value="">== Select City ==</option>
<optgroup label="Florida"><option selected="selected" value="ft-myers-sarasota-fl">... | javascript jquery | [3, 5] |
1,450,989 | 1,450,990 | jQuery selector by position on page available? | <p>Is there a selector available in jQuery to select elements which have a specific position of the page, for example all elements that have an offsetTop bigger than, say, 100px?</p>
<p>I tried:</p>
<pre><code>$('span[offsetTop>100]')
</code></pre>
<p>because just as we can check if an attribute equals to some va... | javascript jquery | [3, 5] |
1,078,313 | 1,078,314 | jQuery(selector).contains throws "no method" TypeError? | <p>my HTML:</p>
<pre><code><form>
<input type="text" name="url" maxlength="10" />
</form>
</code></pre>
<p>my JS:</p>
<pre><code>$(document).ready(function(){
var inputUrl = $('input[name=url]');
inputUrl.change(function() {
alert(inputUrl);
if ($(inputUrl).contains('wa... | javascript jquery | [3, 5] |
1,867,850 | 1,867,851 | What is the better approach to trim unprintable characters from a string | <p>I am reading data from xml. When I checked in eclipse console I found I am getting the whole data with some square boxes. <strong>Example</strong> If there is 123 in excel sheet i am getting 123 with some square boxes. I used <code>trim()</code> to avoid such things but didnot get success because trim() method trims... | java android | [1, 4] |
4,020,196 | 4,020,197 | A question about John Resig's Simple Javascript Inheritance | <p>I'm using this simple code: <a href="http://ejohn.org/blog/simple-javascript-inheritance/" rel="nofollow">http://ejohn.org/blog/simple-javascript-inheritance/</a><br/>
Using this "library", I made this simple class:</p>
<pre><code>var Person = Class.extend({
init: function(openningSentence) {
this.say(opennin... | javascript jquery | [3, 5] |
522,551 | 522,552 | reading with java, an element that was generated with javascript | <p>I have a website that implements a JavaScript that generates some messages elements.</p>
<p>I would like to write a Java program that will read from this messages once they will generate. Is this possible to do?</p>
| java javascript | [1, 3] |
1,267,257 | 1,267,258 | Insert image in textarea when button is pressed using javascript or jquery? | <p>i have design one textarea and button in html. i want to insert image in textarea when button is pressed. how it is possible in javascript or jquery?</p>
| php javascript jquery | [2, 3, 5] |
5,568,963 | 5,568,964 | Android - java.lang.NoClassDefFoundError: android.Maps.HomeScreen | <p>I have just opened my code from a few weeks off and now it doesn't seem to work. I have a splash screen on open, which then moves to the home screen. The splash screen works, but when trying to move to the home page it falls over saying <code>No Class Def Found</code>. What does this mean and how can i fix it?</p>
... | java android | [1, 4] |
2,813,764 | 2,813,765 | PHP-Jquery image upload not working | <p>I'm trying to post form data through ajax</p>
<p><strong>form1.php</strong></p>
<p>I use request to get all URL parameter data</p>
<pre><code>$_REQUEST["Ename"];
$_REQUEST["eImg"];
</code></pre>
<p>To upload the image,i use this code <a href="http://www.9lessons.info/2011/08/ajax-image-upload-without-refreshing.... | php jquery | [2, 5] |
5,118,921 | 5,118,922 | Add and Display percentage of an amount | <p>I have a javascript which calculates the percentage of amount entered, But I am confused how to add amount+percentage and then display.</p>
<pre><code> $(document).ready(function(){
$('#shares').keyup(function(){
$('#result').text($('#shares').val() *(10/100));
});
});
</code></pre>
<p>a... | php javascript | [2, 3] |
4,236,019 | 4,236,020 | Error: $.ajax is not a function | <p>Am getting a error like that, $ajax is not working</p>
<pre><code><script type="text/javascript">
$(document).ready(function () {
$("#btnsubmit").click(function () {
$.ajax({
type: "POST",
url: "loginform.aspx/getdataval",
data: "{'uname':'" + $("#TextBox1").val() + "','passwod':'" ... | javascript jquery asp.net | [3, 5, 9] |
3,119,687 | 3,119,688 | Can someone figure out what this JavaScript code is doing? | <p>I'm trying to figure out how a website works, and I've come to some packed JavaScript that won't seem to unpack with JSBeautifier.org. Can someone understand what it's doing?</p>
<pre><code>eval(function (p, a, c, k, e, r) { e = String; if (!''.replace(/^/, String)) { while (c--) r[c] = k[c] || c; k = [function (e)... | javascript jquery | [3, 5] |
3,181,929 | 3,181,930 | Alert which checkbox[x] of array was clicked? | <p>My code onclick for each checkbox function is:</p>
<pre><code>function testc() {
var values1 = new Array();
jQuery.each(jQuery("input.id1"), function() {
values1.push(jQuery(this).attr("name"));
});
var values2 = new Array();
jQuery.each(jQuery("input.id76"), function() {
values2.push(jQuer... | javascript jquery | [3, 5] |
5,274,851 | 5,274,852 | Posting large files | <p>I want to upload large files with FileUpload control.
The page with this control located in Admin folder.</p>
<p>In admin folder's web.config file i set:</p>
<pre><code> <httpRuntime maxRequestLength="900000"/>
</code></pre>
<p>But this does not effect!</p>
<p>Only if I set this line in root's web.config... | c# asp.net | [0, 9] |
4,047,655 | 4,047,656 | How to access ASP.NET drop down box from jquery | <p>Well, I have a really small problem. How can I access an ASP.NET Drop down list from jquery? I tried to use "CssClass" property of the drop down list to assign a CSS class and then accessing that list using that class, but later I found out that the class changes when an element is selected, so my initial class repl... | asp.net jquery | [9, 5] |
1,785,134 | 1,785,135 | How to blink a label in asp.net | <p>I want to blink a label in asp.net page but when i put the then its blink the whole page, not that label.</p>
| c# asp.net | [0, 9] |
1,571,162 | 1,571,163 | How I can use java.applet.Applet in Android? | <p>When I try to use java.applet.Applet, I get a runtime error:</p>
<pre><code>java.lang.NoClassDefFoundError: java.applet.Applet
</code></pre>
<p>I have tried to put that library manually, but I get the same error.
I have done the same with other libraries and it worked, but not with this one.</p>
| java android | [1, 4] |
5,200,799 | 5,200,800 | php + javascript open a link in new weindow (tab) automatically | <p>I have 100 links for example, in a file. The idea is to loading to a php page, it loads the links file, it reads the first line and gets the first link. Then it opens it in a new window of browser, after 5 seconds the page refreshes itself and it gets the second link from the file and opens it in a new window again.... | php javascript | [2, 3] |
3,988,285 | 3,988,286 | How do i parse this string in javascript | <p>this url </p>
<pre><code>"?route=system/template/update&template_id=22&token=200bfaa1f5d6cda4c782f98b15f32e7f"
</code></pre>
<p>and i just need the token out of it </p>
<pre><code> 200bfaa1f5d6cda4c782f98b15f32e7f
</code></pre>
<p>how is the best way to parse that out...it seems to always be last </p>
| javascript jquery | [3, 5] |
2,695,727 | 2,695,728 | after inserting some script the dollar sign returns null | <p>javascript newbie here, I wrote a form in html and submitted it with an onchange event, but after I added a daterange picker in javascript the submission doesn't work. Here is my code:</p>
<pre><code> <form id="dash_form" method="get">
<div>Select a Tag Bundle dimension:</div>
&... | javascript jquery | [3, 5] |
587,721 | 587,722 | How to change class of textbox? | <p>my textbox has a <code>class='cssText'</code>. I want to change this class to <code>'blck'</code> at runtime.</p>
<p>How can I access the class attribute of textbox and change its value using jQuery?</p>
<p>Thanks </p>
| javascript jquery | [3, 5] |
5,297,302 | 5,297,303 | How to enable javascript in client machine using PHP? | <p>Is there any way to enable JavaScript on the client machine using PHP?</p>
| php javascript | [2, 3] |
220,092 | 220,093 | Different access modifier of properties? | <p>i have doubt, can we have different access modifier for get and set in a property.</p>
<p>Thank you,</p>
| c# asp.net | [0, 9] |
4,774,670 | 4,774,671 | Android read text file from end | <p>In Android
I have a text file which can be LARGER or SMALLER then 33 lines.
If larger then 33 lines read the LAST 33 lines.
If LESS or equal to 33 lines then read ALL lines.
The fastest way to do it thanks</p>
<p>OK this is what i got</p>
<pre><code>MAXLINECOUNT=33;
File f = new File("file......."); ... | java android | [1, 4] |
5,847,672 | 5,847,673 | See if current page equals relative link - JavaScript | <p><em>I know that different versions of this question has been asked in the past, although this exact question has not been asked (and none of the other answers suit my purposes);</em> </p>
<p><strong>So, here goes</strong>: I have a relative link in JavaScript (which is stored as a string) and I am trying to see if ... | javascript jquery | [3, 5] |
738,562 | 738,563 | Observing Applications via Heartbeat in Asp.net | <p>I have seen an article in code project regarding <a href="http://www.codeproject.com/KB/dotnet/heartbeat.aspx" rel="nofollow">Observing Applications via Heartbeat</a> i would like to implement the same for asp.net web forms how can i do this with out creating a wcf service and all. When i run the application i would... | c# asp.net | [0, 9] |
1,342,964 | 1,342,965 | Passing data between usercontrols | <p>I'm with a problem here.</p>
<p>I have a DB table <code>Things(id,name,description)</code>.</p>
<p>In default.aspx i do a "select name from Things" to SqlDataReader, then i bind it to a Listbox.</p>
<p>So now i have a listbox with all names from Things.</p>
<p>What i want to do is: when selecting a listbox row, ... | c# asp.net | [0, 9] |
2,730,162 | 2,730,163 | Maximum checked allow in CheckBoxList | <p>I have generated a CheckBoxList which has more than one item using C#. Now I want to set a maximum number of checked item allowed in CheckBoxList. If user check more than maximum allowed item, there will be an alert or the other item will automatic uncheck to prevent user check over maximum number of item allowed.</... | c# javascript asp.net | [0, 3, 9] |
3,166,007 | 3,166,008 | jQuery fade effect on replacing divs | <p>I've been struggling to find a solution for a <code>fade</code> effect with this script. I'm still learning basic jQuery, but cant seem to figure it out. The script is working fine, the divs are replacing, but with no animation. I have tried fadeToggle, fadeIn and fadeOut.</p>
<pre><code>function HideContent(d) {
... | javascript jquery | [3, 5] |
5,409,631 | 5,409,632 | C# Page postback | <p>Is it possible to stop the page postback on any click event based on some validation</p>
| c# asp.net | [0, 9] |
1,474,471 | 1,474,472 | PHP Image Loading | <p>I have a PHP Image that I use like this:</p>
<pre><code><img src="image.php">
</code></pre>
<p>Sometimes it takes up to 10 seconds to render (there are some heavy dataloads coming in from an API). It works great but there's no way of telling whether anything is happening, I was wondering if there was a way I... | php javascript | [2, 3] |
5,693,605 | 5,693,606 | My javascript code not working in mozilla firefox | <p>This is my code for making textbox accept number only.</p>
<pre><code><asp:TextBox ID="txtRotationNo" runat="server" onkeydown="return NumberOnly();" CssClass="textbox"></asp:TextBox>
function NumberOnly () {
if(!(event.keyCode>=48 && event.keyCode<=57) && event.keyCode!=8) {
... | asp.net javascript | [9, 3] |
255,322 | 255,323 | Where can i find a text editor plugin that can accept a variable | <p>I don't know how to call this but here is the picture:</p>
<p><img src="http://i.stack.imgur.com/81qMl.jpg" alt="enter image description here"></p>
<p>See the <a href="http://i.stack.imgur.com/81qMl.jpg" rel="nofollow">higher quality image here</a>.</p>
<p>I saw it in some website and what to create a report wher... | php jquery | [2, 5] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.