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 |
---|---|---|---|---|---|
4,042,145 | 4,042,146 |
ASP.NET error: A namespace cannot directly contain members such as fields or methods
|
<p>I created a Web project in VS 2010 (selecting ASP.NET project) and I wrote following code</p>
<pre><code><% page language="c#" %>
<html>
<head>
<title>Example 1: Hello World</title>
</head>
<body bgcolor="white">
<h1>
<%
string strUsersBrowser = "";
strUsersBrowser+=Request.Browser.Browser;
strUsersBrowser+=Request.Browser.MajorVersion.ToString();
strUsersBrowser+="."
strUsersBrowser+=Request.Browser.MinorVersion.ToString();
response.write("<h1>Your web browser is " + strUsersBrowser + "</h1>")
%>
</h1>
</body>
</html>
</code></pre>
<p>VS2010 returns an error :</p>
<p>Error : A namespace cannot directly contain members such as fields or methods</p>
<p>Also, I saved that file as "<strong>.aspx.cs</strong>" extension</p>
<p>Where is the problem ?</p>
<p>// I SOLVED IT...</p>
|
c# asp.net
|
[0, 9]
|
2,547,266 | 2,547,267 |
How to replace and select word on click with jQuery
|
<p>I absolutely do not know Javascript and jQuery. Tell me, please, how to use jQuery to replace one word on the page to another when user click on it, and select it so user can copy it to clipboard.</p>
|
javascript jquery
|
[3, 5]
|
3,031,506 | 3,031,507 |
Change TextBox TextMode with jQuery
|
<p>I was wondering if someone knew the best way to switch from using the </p>
<pre><code> myTextBox.TextMode = TextBoxMode.Password;
</code></pre>
<p>to</p>
<pre><code> myTextBox.TextMode = TextBoxMode.SingleLine;
</code></pre>
<p>using client code and jQuery. I will have to do it on focus, along with deleting the whole text content of the textbox onFocus event.</p>
|
jquery asp.net
|
[5, 9]
|
3,034,274 | 3,034,275 |
Is it possible to loop through a textbox's contents? If not, what's the best strategy to read line-by-line?
|
<p>I am designing a crawler which will get certain content from a webpage (using either string manipulation or regex).</p>
<p>I'm able to get the contents of the webpage as a response stream (using the whole httpwebrequest thing), and then for testing/dev purposes, I write the stream content to a multi-line textbox in my ASP.NET webpage.</p>
<p>Is it possible for me to loop through the content of the textbox and then say "If textbox1.text.contains (or save the textbox text as a string variable), a certain string then increment a count". The problem with the textbox is the string loses formatting, so it's in one long line with no line breaking. Can that be changed?</p>
<p>I'd like to do this rather than write the content to a file because writing to a file means I would have to handle all sorts of external issues. Of course, if this is the only way, then so be it. If I do have to write to a file, then what's the best strategy to loop through each and every line (I'm a little overwhelmed and thus confused as there's many logical and language methods to use), looking for a condition? So if I want to look for the string "Hello", in the following text:</p>
<p>My name is xyz
I am xyz years of age
Hello blah blah blah
Bye</p>
<p>When I reach hello I want to increment an integer variable.</p>
<p>Thanks,</p>
|
c# asp.net
|
[0, 9]
|
2,033,544 | 2,033,545 |
Iframe in the jquery UI dialog
|
<p>I have an iframe in the jquery UI dialog , setting its src at doument.ready event :</p>
<pre><code> $(document).ready(function() {
$("#iframe").attr("src", whatever);
$("#button").click(function() { $("#dialog").dialog(); });
});
<div id="dialog">
<iframe src="" id="iframe"></iframe>
<div>
</code></pre>
<p>Everything is going fine, when i <code>click over the button dialog open</code> but <code>the problem</code> is that it <code>loads iframe content everytime when dialog open</code>.I <code>want to stop</code> this behaviour and <code>load the contents only once at document.ready event</code>.How can i do this?</p>
|
javascript jquery
|
[3, 5]
|
4,646 | 4,647 |
Event keycode in javascript for galaxy tablet
|
<p>Any one aware of the event keycode of the key (to use in javascript) for the following.</p>
<p>Android devices --> key which minimizes the keyboard when the focus is on.</p>
<p>Generally, we can minimize the keyboard which is up (when the focus is on textbox) by pressing a key in android devices (which is generally at the left bottom of the keyboard)</p>
<p>I would like to know the event keycode of that key to disable the keyboard through javascript.</p>
<p>Thanks</p>
|
javascript android
|
[3, 4]
|
622,778 | 622,779 |
Elegant jQuery replace on mutiple values
|
<p>Im using .replace() with jQuery to remove different strings from an img URL:</p>
<pre><code>src = src.replace("/_w", "");
src = src.replace("_jpg", "");
src = src.replace("_jpeg", "");
src = src.replace("_png", "");
src = src.replace("_gif", "");
</code></pre>
<p>As you can see its pretty primative and not very clever, is there anyway I can replace this with something a little more elegant.</p>
<p>Essentially the url will always be 1 of the following:</p>
<pre><code>http://local.com/images/_w/image_jpg.jpg
http://local.com/images/_w/image_jpeg.jpeg
http://local.com/images/_w/image_png.png
</code></pre>
<p>Is there anyway I can write a .replace() to remove the /_w/ then remove all characters between the last '.' in the URL and the last underscore?</p>
|
javascript jquery
|
[3, 5]
|
5,551,168 | 5,551,169 |
how to get usercontrol in javascript
|
<p>How can I get a handle on my user control in JavaScript?</p>
<pre><code><body>
<form id="form1" runat="server">
<div>
<uc1:WebUserControl ID="WebUserControl1" runat="server" Enabled="False" />
<input id="Button1" type="button" value="button" runat="server" onclick="return Button1_onclick()" /></div>
</form>
<script type="text/javascript">
var pageDefault = {
uc: document.getElementById("<%=WebUserControl1.ClientID%>"),
btn1: document.getElementById("<%=Button1.ClientID%>"),
init: function() {
this.btn1.onclick = function() {
uc.setAttribute('Enabled', 'True'); //uc is null at this point
};
}
}
pageDefault.init();
</script>
</body>
</code></pre>
|
javascript asp.net
|
[3, 9]
|
5,940,137 | 5,940,138 |
Put GridView in Edit Mode Programmatically with ASP MERMERSHIP
|
<p>I need Put GridView in Edit Mode Programmatically when editing ROLES in ASP MERMERSHIP.
Could you provide me some examples? I am not able to write the appropriate EVENTS to display the right EDIT TEMPLATE.</p>
<p>Thanks</p>
|
c# asp.net
|
[0, 9]
|
4,836,005 | 4,836,006 |
Search Engine Optimization (SEO) & Friendly URLs using ASP.Net
|
<p>please tell me best to achieve Search Engine Optimization (SEO) & Friendly URLs using ASP.Net</p>
|
c# asp.net
|
[0, 9]
|
3,388,716 | 3,388,717 |
Why can't a input tag be type submit?
|
<p>I am trying to do:</p>
<pre><code><input type="submit" runat="server" ... />
</code></pre>
<p>Error:</p>
<pre><code>The base class includes the field 'btnEdit', but its type (System.Web.UI.HtmlControls.HtmlInputImage) is not compatible with the type of control (System.Web.UI.HtmlControls.HtmlInputSubmit).
</code></pre>
<p><strong>Submit is a valid type, what is wrong here?</strong></p>
|
c# asp.net
|
[0, 9]
|
27,439 | 27,440 |
Problem with the encoding of a web page
|
<p>I'm trying to get some information from a web... with the code above...</p>
<pre><code>URL url = new URL(webpage);
URLConnection connection;
connection = url.openConnection();
BufferedReader in;
InputStreamReader inputStreamReader;
inputStreamReader = new InputStreamReader(connection.getInputStream(), "iso-8859-1");
in = new BufferedReader(new InputStreamReader(connection.getInputStream()));
</code></pre>
<p>But I'm having a problem with the encoding when I'm reading it. The page is in spanish, and it has some simbols like "ñ" or "á". The header of the source code of the page says that it's in "iso-8859-1", and I've tried with "utf-8", but none of them works... when I try to set the text I'm reading from the URL to a TextView it just shows garbage in the simbols I've told....</p>
<p>Any ideas?</p>
<p>Thanks!</p>
|
java android
|
[1, 4]
|
1,004,120 | 1,004,121 |
PHP Variable to JQuery function?
|
<p>I need a relative path in this function:</p>
<pre><code> $(function() {
$("#searchbox").autocomplete({
minLength : 2,
source : function (request, response){
$.ajax({
url : "http://linux/project/index.php/main/search/",
dataType : "json",
data : { key : request.term},
type : "POST",
success : function(data){
response($.map(data, function(item) {
return {
label: item.original_name,
value: item.original_name,
id : item.project_id+"/"+item.folder_id+"/"+item.id
}
}))
}
})
},
select : function(event, ui) {
document.location.href = "http://linux/project/index.php/projects/loaddocument/"+ui.item.id;
}
});
});
</code></pre>
<p>How can I use a PHP Variable path to replace <a href="http://linux/project" rel="nofollow">http://linux/project</a> in the function above?</p>
<p>Best regards ...</p>
|
php jquery
|
[2, 5]
|
4,554,304 | 4,554,305 |
Find a data in richtextBox, I have used the Rich Text format
|
<p>I am try find a data in <strong>richTextBox</strong> . I can try with the option of richTextBox1.Find("textBox1.text").I am new in programming . when the run this code one time find the data and can't a select whole page. I have try again and again but can't do this.
Once again i am telling what is my problem, my problem is find a data in the whole page. but find a once time data and stop. My coding part is below...plz help me...
thanks in advance..</p>
<pre><code> private void gOToToolStripMenuItem_Click(object sender, EventArgs e)
{ if (richTextBox1.Text.Trim().Length > 0)
{
FindMyText("joginder", 0, richTextBox1.Text.Length);
}
}
public int FindMyText(string searchText, int searchStart, int searchEnd)
{
int returnValue = -1;
if (searchText.Length > 0 && searchStart >= 0)
{
if (searchEnd > searchStart || searchEnd == -1)
{
int indexToText = richTextBox1.Find(searchText, searchStart, searchEnd, RichTextBoxFinds.MatchCase);
if (indexToText >= 0)
{
returnValue = indexToText;
} }
}
return returnValue;
} }
</code></pre>
|
c# asp.net
|
[0, 9]
|
1,763,359 | 1,763,360 |
asp.net,c#.net repeated fields
|
<p>I have a asp.net webpage <code>abc.aspx</code><br>
it contains </p>
<pre><code> <td class="style1">
<asp:TextBox ID="chqdt1" runat="server" Width="71px"></asp:TextBox>
<a href="javascript:OpenCalFuture('ctl00_ContentPlaceHolder1_chqdt1');">
<img border="0" height="16" src="cal.gif" width="16" /></a>
</td>
<td>
<asp:Button ID="Button1" runat="server" Text="add" style="margin-left: 0px" />
</td>
<td>
&nbsp;</td>
</code></pre>
<p>I want on each button click event create new row with new textbok with calender field created</p>
|
c# asp.net
|
[0, 9]
|
2,212,440 | 2,212,441 |
Declaring a Javascript variable into a PHP form
|
<p>Preapring for a Facebook competition while I have spare time, the Publish function with facebook has a once posted javascript function that you can define.</p>
<p>What I am looking to do is call a function to write a value unto a php form which will then be posted and submitting data into a database. I have tested to the extent that I know the idea is sound just calling a basic alert, I am just not sure how to get from calling the function to writing the value into the form.</p>
<p>This value I need to be able to call on in the page that the data is being posted to, to base an "if function" off, basically if "True/Yes" then I need it to process another php script in addition to the data its posting to the database</p>
<p>What I have now is:</p>
<pre><code> <script type="text/javascript">
function isShared()
{
alert("Yes");
}
</script>
<input class="fieldbox" name='shared' type='hidden' value="value of 'display_alert()'"/>
</code></pre>
<p>I know it cannot be an alert, but this is pretty much where my current javascript skills leave me stranded.</p>
|
php javascript
|
[2, 3]
|
4,982,746 | 4,982,747 |
jquery/javascript post to new window when pressing a preview button
|
<p>I want to have a form with two buttons, submit & preview, the preview button should open a new window with the text from the input areas how do I make that happend?</p>
<pre><code><form method='post'>
//input
<input type='text' name='headline' id='headline' />
<textarea name='content' id='content'></textarea>
//buttons
<input type='submit' id='btnsubmit' value='submit' />
<input type='submit' id='btnpreview' value='preview' />
</form>
</code></pre>
<p>I can't have target'_blank' in form because i have two buttons, and only one should open in a new window, i would like this to be done in jquery. can someone help.</p>
|
javascript jquery
|
[3, 5]
|
257,271 | 257,272 |
Change DLL File Version of Website Application before precompiling
|
<p>After precompiled, my asp.net webiste application's bin folder contains the dlls with file version 0.0.0.0. How can I set a file version something like 2.1.1.0. </p>
<p>In 'Property Page' (by right click on solution) there is no option to set the file version. But in a Class library project I could set the file version in 'Property' page.</p>
<p>Then, how can I do in case of a website application before precompiling?</p>
|
c# asp.net
|
[0, 9]
|
1,034,965 | 1,034,966 |
Escaping quotes in jquery
|
<p>I'm having a bit of a problem escaping quotes in the following example:</p>
<pre><code>var newId = "New Id number for this line";
$(id).html('<td><input type="text" id="my' + newId + '" onKeyUp="runFunction("#my' + newId + '");"></td>');
</code></pre>
<p>The issue is that when I look at the generated code the id does update to <code>id="myNewId"</code>, but in the function call it looks like this:</p>
<pre><code>onkeyup="runFunction(" #row2="" );=""
</code></pre>
<p>What exactly am I doing wrong? </p>
|
javascript jquery
|
[3, 5]
|
1,597,961 | 1,597,962 |
Why aren't my dynamically-added form inputs posting?
|
<p>I'm working on a form where I need to dynamically add inputs whenever the user clicks a "more widgets" button. There's a hidden div inside the form, and I append the inputs to it with jQuery, like this:</p>
<pre><code>$('div#newwidgetinputs').show().append(newInputs);
</code></pre>
<p>They show up, are properly named, etc, but when I post the form, their contents are not in the PHP <code>$_POST</code> array.</p>
<p>So I tried just appending them to the form itself:</p>
<pre><code>$('form#someform').append(newInputs);
</code></pre>
<p>They can't be seen on the page, but I give them default values, and this time they <strong>do</strong> appear in '$_POST'.</p>
<p>This makes me think that <code>div#newwidgetinputs</code> isn't considered part of the form, but I don't see why; it's between the opening and closing <code><form></code> tags.</p>
<p>Why wouldn't those inputs post?</p>
|
php jquery
|
[2, 5]
|
3,433,166 | 3,433,167 |
How to create 2d array from two 1d arrays
|
<p>I would like to ask you if there is any function in js/jquery that creates 2d array from two 1d arrays.<br>
I know that i can do it manually like:</p>
<pre><code> var output = new Array(table1.length);
for(var i=0; i<table1.length; i++)
{
output[i] = new Array(2)
output[i][0] = table1[i]
output[i][1] = table2[i]
}
</code></pre>
<p>But maybe there is any function which does it for me ?</p>
|
javascript jquery
|
[3, 5]
|
1,615,222 | 1,615,223 |
Exception Driven Programming in Java
|
<p>I just finished reading <a href="http://www.codinghorror.com/blog/archives/001239.html">Exception Driven Programming</a> and I'm wondering about something like <a href="http://code.google.com/p/elmah/">ELMAH</a> for Java. Did you know it?</p>
<p>Interesting features:</p>
<ul>
<li>A web page to remotely view the
entire log of recoded exceptions</li>
<li>A web page to remotely view the full
details of any one logged exception</li>
<li>An e-mail notification of each error
at the time it occurs</li>
<li>An RSS feed of the last 15 errors
from the log</li>
<li>other interface (JSON, RESTful interface, etc)</li>
<li>A number of backing storage
implementations for the log,
including in-memory, JDBC, JMS, etc</li>
<li>open source</li>
</ul>
<p><strong>NOTE</strong></p>
<p>log4j is for logging, it is not an integrated solution for exception handling </p>
|
c# java
|
[0, 1]
|
1,607,619 | 1,607,620 |
Getting access to standalone JVM / Java Access bridge
|
<p>I want to get access through the Java Access Bridge to an application that has its own JRE. JAB works fine for me with the "public" JRE (SE 7). But the target application has its own JRE (SE 6). Well neither Monkey nor Ferret display any information about the application. But I know that it is possible due to third party applications that make use of JAB to get access to it. Has anybody an idea how to manage this?</p>
<p>Using Win7 x64,
Visual Studio 2010,
Win 32 application,
Java SE 7_u7,
target apps JRE is JSE 6.</p>
|
java c++
|
[1, 6]
|
3,444,525 | 3,444,526 |
jQuery custom toggle function?
|
<p>I'm trying to make a custom jQuery toggle function. Right now, I have 2 separate functions, <code>lightsOn</code> and <code>lightsOff</code>. How can I combine these functions to make them toggle (so I can just link to one function)?</p>
<pre><code>function lightsOn(){
$('#dim').fadeOut(500,function() {
$("#dim").remove();
});
};
function lightsOff(){
$('body').append('<div id="dim"></div>');
$('#dim').fadeIn(250);
};
</code></pre>
|
javascript jquery
|
[3, 5]
|
1,452,835 | 1,452,836 |
SPLIT with \n Delimiter
|
<p>I need to split string with delimiter of <code>\n</code> when I use this code:</p>
<pre><code>String delimiter = "\n";
String[] temp;
temp = description2[position].split(delimiter);
for (int i = 0; i < temp.length; i++) {
holder.weeklyparty_text3.setSingleLine(false);
holder.weeklyparty_text3.setText(temp[i]);
}
</code></pre>
<p>but not get split string from <code>\n</code>.</p>
|
java android
|
[1, 4]
|
2,026,366 | 2,026,367 |
how to pass the strMessage (from codebehind to the script) to get the alert message
|
<p>how to pass the strMessage (from codebehind to the script) to get the alert message </p>
<p>i.e
if my strmessage from code behind is hi,</p>
<p>then i need</p>
<p>You Have Used already the message : hi</p>
<p>My code...</p>
<pre><code><script type="text/javascript">
var strFileName;
function alertShowMessage() {
alert("You Have Used already the message :"+ <%=strFileName %>+ ");
}
</script>
datatable dtChkFile =new datatable();
dtChkFile = objutility.GetData("ChkFileName_SMSSent", new object[] {"rahul"}).Tables[0];
if (dtChkFile.Rows.Count > 0)
{
for (int i = 0; i < dtChkFile.Rows.Count; i++)
{
strMessage= dtChkFile.Rows[i]["Message"].To);
}
}
</code></pre>
|
c# asp.net javascript
|
[0, 9, 3]
|
1,998,173 | 1,998,174 |
How can I have hover effect on DIV's using the DIV ID in javascript?
|
<p>I want to have a different hover effects on each div using the div id. Is it possible? I have been searching on google for a while now and all I see is hover effect using classname and tags. I want to do this using javascript or jquery. Any help is appreciated, Thanks!</p>
|
javascript jquery
|
[3, 5]
|
2,382,817 | 2,382,818 |
EventObject is not defined when calling a class function out of mousemove
|
<p>I wrote a Object which "manages" a <div>-Element. I wanted it to do something on mousemove so I wrote this line in a function I call to create the content of this -Element:</p>
<pre><code>$('#' + this.slider_id).mousemove(this.mouseMoveHandler(e));
</code></pre>
<p>Later i defined a function which handles this Event:</p>
<pre><code>this.mouseMoveHandler = function (e) {
var mouseX = e.pageX;
....
}
</code></pre>
<p>But when I call it, all I get is : </p>
<pre><code> Uncaught ReferenceError: e is not defined
</code></pre>
<p>What am I missing?</p>
|
javascript jquery
|
[3, 5]
|
2,884,278 | 2,884,279 |
Stop/break an SaxXMLparsing
|
<p>Im making an app that fetches some XML using SAXparser.
Im parsing the xml and if the xml does not have a specific node I have to start over the SAXparser with a different URL. </p>
<p>This means that when I'm in my XML handler inside startElement I have to break/stop it and do it again. How can I do this break/stop/exit?</p>
<p>Here are some fake code to explain:</p>
<pre><code>private String browsLevel(String url) {
SAXParserFactory spf = SAXParserFactory.newInstance();
SAXParser sp = spf.newSAXParser();
XMLReader xr = sp.getXMLReader();
URL sourceUrl = new URL(url);
MyXMLHandler myXMLHandler = new MyXMLHandler();
xr.setContentHandler(myXMLHandler);
xr.parse(new InputSource(sourceUrl.openStream()));
}
//external class in a separate document
public class MyXMLHandler extends DefaultHandler {
@Override
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException {
// Im checking here if a special node exsists and if not I need to break/stop this and go to the Restart point above.
//I need to do something like this:
if (!localName.equals("mysspecialnode")) {
MyXMLHandler.break(); //????
browsLevel("a different url");
}
</code></pre>
|
java android
|
[1, 4]
|
3,129,663 | 3,129,664 |
How can we get the background colour of a gradient image at particular point in Javascript?
|
<p>I have a gradient image and I want to get the background color at all positions where I move my mouse i.e. at a particular positions.</p>
<p>I can get the position of mouse so now I have to get the color at that position.</p>
<p>So please Guide me for this problem</p>
|
javascript jquery
|
[3, 5]
|
1,139,371 | 1,139,372 |
Get selected time in javascript control
|
<p>I'm using the following JavaScript Control:</p>
<p><a href="http://www.ama3.com/anytime/" rel="nofollow">http://www.ama3.com/anytime/</a></p>
<p>How do I get the selected date in the control? So I can pass it to a postback page?
I tried finding it, but I'm just not very good at JavaScript :(</p>
<p>Which function do I have to call?</p>
<pre><code>// Initialization
$(document).ready(function () {
//alert("welcome");
$("#DateTimeDemo").AnyTime_picker(
{ format: "%Y-%m-%d %H:%i: %E",
formatUtcOffset: "%: (%@)",
hideInput: true,
placement: "inline"
});
// Asp.net code
<input type="text" id="DateTimeDemo" style="background-color:Green;" />
</code></pre>
<p>I assume the code will be something like this:</p>
<pre><code> var x = getBlaBla();
</code></pre>
<p>Where x is something that I can use to pass to C# for postback info. I think I'll have to use JQuery to select the object I'll be taking the date out of.</p>
<p>Edit:
Okay I think I have to use something like this:</p>
<pre><code>$("#DateTimeDemo").AnyTime_current(g, k);
</code></pre>
<p>what do the g and the k stand for? What do I have to pass?</p>
|
javascript asp.net
|
[3, 9]
|
536,383 | 536,384 |
Jquery Collapsible panel - post back issue
|
<p>I need some modification in the script but could not do it as i am not so friendly with jquery</p>
<p>When the page postback i want to maintain the state of the panels. Right now if i refresh the page all the panels are collapsed,</p>
<p>i am using the below code </p>
<pre><code>$(document).ready(function() {
$(“DIV.ContainerPanel > DIV.collapsePanelHeader > DIV.ArrowExpand”).toggle(function() {
$(this).parent().next(“div.Content”).show(“slow”);
$(this).attr(“class”, “ArrowClose”);
},function() {
$(this).parent().next(“div.Content”).hide(“slow”);
$(this).attr(“class”, “ArrowExpand”);
});
});
</code></pre>
<p>Please help</p>
|
jquery asp.net
|
[5, 9]
|
1,238,260 | 1,238,261 |
Javascript slider not sliding, how to tell if there is a JS conflict?
|
<p>I have an existing website that the image slider no longer performs its slideshow function or slide arrow no longer advance the slideshow. I'm assuming another script is causing this one to malfunction. Can anyone tell me how or take a look and tell me where the problem is from a browser by chance?</p>
<p>URL: </p>
|
php javascript jquery
|
[2, 3, 5]
|
5,144,742 | 5,144,743 |
rename xml rootnode using c#
|
<p>I am using the below code to change the root node name. But its not working for me. Please help me to do this. My partial code is given below.</p>
<pre><code>XmlNode PackageListNode = hst_doc.SelectSingleNode("NewDataSet");
XmlNodeList PackageNodeList = PackageListNode.SelectNodes("Table5");
hst_doc.DocumentElement.Name.Replace("NewDataSet", "rows");
</code></pre>
|
c# asp.net
|
[0, 9]
|
5,080,160 | 5,080,161 |
Jquery post with umlauts
|
<p>I read about the special characters and umlauts in javascript is a bit tricky and I couldn't find the right answer for my problem. </p>
<p>For example:</p>
<pre><code> $.post('test.php','club=Fc Köln',
function(response){
/*--- do something from database with response---*/
}
});
</code></pre>
<p>If I send a club name like Fc Köln or Deportiva la coruña javascript can't handle it, does someone have the right solution?</p>
<p>Regards,</p>
<p>Frank </p>
|
php javascript jquery
|
[2, 3, 5]
|
3,562,881 | 3,562,882 |
Textarea - new lines to br tags and then special characters
|
<p>I have a text area with the following id: <code>#openingHours</code></p>
<p>The text area contains information, for example:</p>
<pre><code><textarea id="openingHours">
Mon-Fri 8am - 6pm
Sat-Sun 9am - 3pm
</textarea>
</code></pre>
<p>I want to get the value of the textarea and replace new lines with break tags.</p>
<pre><code>Mon-Fri 8am - 6pm<br/>Sat-Sun 9am - 3pm
</code></pre>
<p>Notice how it is all on one line.</p>
<p>How can I achieve this? All of the data must be on the same line, separated by <br /> tags and html encoded to special characters.</p>
<p>Thank you.</p>
|
javascript jquery
|
[3, 5]
|
2,358,053 | 2,358,054 |
android change selected tab background color
|
<p>I came from objective-c and I am an Android newbie. I am using following method that intends to change tabColor for index 0. But I would like to change default grey tab when selected. Thank you.</p>
<pre><code>mTabHost.getTabWidget().getChildAt(0).setBackgroundColor(Color.CYAN);
</code></pre>
|
java android
|
[1, 4]
|
5,276,021 | 5,276,022 |
Jquery tablesorter plugin not sorting correct
|
<p>I have some columns with the format:</p>
<pre><code><td>148 kr. </td>
</code></pre>
<p>The tablesorter plugin does not sort them correct. It is like random.</p>
<p>I also have columns like this one:</p>
<pre><code><td>148 kr. <br>(Oprettelse 49 kr.)</td>
</code></pre>
<p>Were I want to sort by the first number <code>148 kr.</code> </p>
<p>What should I do? </p>
|
javascript jquery
|
[3, 5]
|
114,336 | 114,337 |
Are there any broadcast receivers for my Intent?
|
<p>I have developed application which need to use any PDF-Viewer. How can I programatically check the existence of application which are able to respond to my Intent?</p>
|
java android
|
[1, 4]
|
1,959,083 | 1,959,084 |
Disable a form and all contained elements until an ajax query completes (or another solution to prevent multiple remote requests)
|
<p>I have a search form with inputs and selects, and when any input/select is changed i run some js and then make an ajax query with jquery. I want to stop the user from making further changes to the form while the request is in progress, as at the moment they can initiate several remote searches at once, effectively causing a race between the different searches.</p>
<p>It seems like the best solution to this is to prevent the user from interacting with the form while waiting for the request to come back. At the moment i'm doing this in the dumbest way possible by hiding the form before making the ajax query and then showing it again on success/error. This solves the problem but looks horrible and isn't really acceptable. Is there another, better way to prevent interaction with the form? To make things more complicated, to allow nice-looking selects, the user actually interacts with spans which have js hooked up to them to tie them to the actual, hidden, selects. So, even though the spans aren't inputs, they are contained in the form and represent the actual interactive elements of the form.</p>
<p>Grateful for any advice - max. Here's what i'm doing now:</p>
<pre><code>function submitQuestionSearchForm(){
//bunch of irrelevant stuff
var questionSearchForm = jQuery("#searchForm");
questionSearchForm.addClass("searching");
jQuery.ajax({
async: true,
data: jQuery.param(questionSearchForm.serializeArray()),
dataType: 'script',
type: 'get',
url: "/questions",
success: function(msg){
//more irrelevant stuff
questionSearchForm.removeClass("searching");
},
error: function(msg){
questionSearchForm.removeClass("searching");
}
});
return true;
}
</code></pre>
<p>where the 'searching' class currently has just {display: none}</p>
|
javascript jquery
|
[3, 5]
|
5,516,399 | 5,516,400 |
Javascript: Timed href change
|
<p>Having a slight Javascript issue at the moment, I am hoping to have the below image have a variable HREF which is triggered by a time change. </p>
<p>At the moment it is triggering to some extent but then getting stuck on one of the URLs. It is also affecting an image which is overlaid on top of this one. Which isn't the aim at all!</p>
<p>Any help would be great. Thanks. </p>
<pre><code><div style="position: absolute; left: 0; top: 0; z-index: 100"><a href="[VARIABLE URL]"><img src="[BACKGROUNDIMAGE]" style="position: absolute top: 0; left: 0;"/></a></div>
<script type="text/JavaScript">
setTimeout(hyperlink1,3000);
setTimeout(hyperlink2,3000);
setTimeout(hyperlink3,3000);
function hyperlink1 () {
$("a").attr("href", "[URL1]")
}
function hyperlink2 () {
$("a").attr("href", "[URL2]")
}
function hyperlink3 () {
$("a").attr("href", "[URL3]")
}
</script>
</code></pre>
|
javascript jquery
|
[3, 5]
|
5,909,357 | 5,909,358 |
How can I take contents of one element and add to another when they both have an id ending in the same two or three digit number?
|
<p>I have this code:</p>
<pre><code>$('.update-title')
.change(function () {
$(this).prop('title', $('option:selected', this).prop('title'));
});
</code></pre>
<p>and this HTML:</p>
<pre><code><select id="modal_TempRowKey_14" class="update-grid update-title">
...
...
</select>
<input id="modal_Title_14" class="update-grid" type="text" value="xx">
</code></pre>
<p>Is it possible for me to make it so that when the .update-title changes
then the value of the title is put into the input id with the matching number.
So in this case the <code>#modal_TempRowKey_14</code> title would go into <code>#modal_Title_14</code> value</p>
<p><strong>Important</strong></p>
<p>I want this to happen only if the element being changed starts with <code>modal_TempRowKey</code>. Is this possible to put into the change block?</p>
|
javascript jquery
|
[3, 5]
|
5,593,292 | 5,593,293 |
How to change javascript for loop criteria? Newbie question
|
<p>Javascript newbie here, just trying to tweak this bit of code. It checks for all HTML elements with a title attribute and adds the class 'tooltipParent'.</p>
<p>I'd like it to only add the class to elements with a title attribute AND the class 'tooltip'. I think I need to add something to the <em>for</em> loop to check for this extra class?</p>
<pre><code>// loop through all objects with a title attribute
var titles=$('[title]');
// use an efficient for loop as there may be a lot to cycle through
for(var i=titles.length-1;i>-1;i--){
// titled object must be position:relative
$(titles[i]).addClass('tooltipParent');
}
</code></pre>
<p>Thanks!</p>
|
javascript jquery
|
[3, 5]
|
1,136,462 | 1,136,463 |
Building a file cache
|
<p>I am looking for any information regarding the design and performance of a file cache. This is not for a website.</p>
<p>I'm working on a program that I may, potentially, want to maintain a small file cache to help speed up things (since it will be running on a mechanical disk, it may be possible to further increase performance by preloading the next file, and ensuring the CPU always has something to work on). </p>
<p>Would I just fire off a thread to load a file when I determine it's a good time, or are there more interesting / standard behaviors that might give better performance?</p>
<p>Many Thanks.</p>
|
c# c++
|
[0, 6]
|
4,740,758 | 4,740,759 |
execute javascript method after completing code behind method?
|
<p>I want execute below callback() method after completion of <code>document.getElementById('btnDownload').click();</code> method . Now <code>callback()</code>executing immediatly. I want wait "Click()" process done then Execute <code>callback();</code> method.</p>
<pre><code>function LoadPopup() {
// find the popup behavior
this._popup = $find('mdlPopup');
// show the popup
this._popup.show();
// synchronously run the server side validation ...
document.getElementById('btnDownload').click();
callback();
}
function callback() {
this._popup = $find('mdlPopup');
// hide the popup
this._popup.hide();
alert("hi");
</code></pre>
<p>}</p>
|
asp.net javascript jquery
|
[9, 3, 5]
|
3,989,196 | 3,989,197 |
How to select multiple files with a java plugin and then upload with PHP?
|
<p>I am looking a easy way for the user to upload multiple images to the website. The idea I have on mind is like the old Facebook service that, I think, they used Java. You click to add images and popups with a your system files and folders where you can select with checkboxes more than one image, only one, etc.</p>
<p>I have never used something like that, and I also didn't touched Java but i think that is the only way to do it.</p>
<p>Thanks!</p>
<p>PS: I'm not talking about multiple <code><input type="file" /></code>.</p>
|
java php
|
[1, 2]
|
3,900,826 | 3,900,827 |
posting a parameter to a jquery dialog box
|
<p>i have a small problem
well i'm using a jquery dialog box, and i want to post a parameter to this dialog box</p>
<p>this is how i'm using it :</p>
<pre><code>$(document).ready(function() {
$("#dialogShare").dialog({
resizable: true,
width:400,
modal: true,
autoOpen: false
});
});
$("#share").click(function(){
$.post(
"/accueil.php",
{ name: $("#idPubToPreview").val() }
);
$("#dialogShare").dialog('open');
});
</code></pre>
<p>in the div that display the content of the dialog box "#dialogShare" i do a var_dump of $_POST but it seems to be empty !</p>
<p>any help please ?</p>
|
php jquery
|
[2, 5]
|
6,000,105 | 6,000,106 |
attaching a script dynamically using jQuery
|
<p>I have a problem which have been troubling me for the last few days. I have to implement tracking to my website simply by adding a script tag as shown below.</p>
<pre><code><script src="domain">
</code></pre>
<p>However I need to attach the script tag once a javascript event is fired. I made some research and discovered this can be achieved using jQuery .getScript() function. Sample code shown below.</p>
<pre><code>$('body').bind("success", function(e, data) {
// Call for the tracking scipt here
$.getScript("domain", function() {});
});
</code></pre>
<p>My problem is that the loaded script contains the below code:</p>
<pre><code>document.write(<img src='domain'/>);
</code></pre>
<p>Unfortunately this code is not executed, (I am guessing since the DOM is already loaded at the time I am attaching the script, the document.write() function will not work.) I also tried using native javascript code as shown below to no avail.</p>
<pre><code>var body = document.getElementsByTagName("body")[0];
var script = document.createElement('script');
script.type = "text/javascript";
script.src = "domain";
body.appendChild(script);
</code></pre>
<p>At the moment I have managed to achieve this by placing the scipt tag in a seperate page and then load the page in an invisible iFrame from the fired JS event. I don't really like this idea, so any help would be appreciated.</p>
|
javascript jquery
|
[3, 5]
|
3,416,323 | 3,416,324 |
Merging two datasets which have 1 column in common
|
<p>I have a dataset dsvalue that has columns Id and views. An other dataset has quite a number of columns including Id. So for each id in dataset ds, i should add a new column "Views" and merge it with views from dsvalue.</p>
<p>How is it possible. Thanks in advance!!</p>
|
c# asp.net
|
[0, 9]
|
1,008,165 | 1,008,166 |
How to publish my c++ program to my android?
|
<p>I am new at this. I wrote a simple c++ program in eclipse. I was wondering how to get this app to run on my phone?</p>
|
android c++
|
[4, 6]
|
1,794,711 | 1,794,712 |
Is declaring a local array based on function arguments legal in c++
|
<p>I read from a book saying that the following c++ code should not compile:</p>
<pre><code> void f(int n, int m){
int a[n] , b[n][m];
}
</code></pre>
<p>because the size of the arrays are not determined at compile time.</p>
<p>But I tried it out and found no matter the function is a global one or a member function, I could get compilation successful using g++.</p>
<p>Was this something made legal in recent c++ implementation, or the book is simply wrong.</p>
<p>Thank you.</p>
<p><strong>Edit</strong></p>
<p>I saw a few replies immediately. I just have this wonder too in Java. I notice in java, this is supported (please correct me if this is also version dependent). So why the difference? Does it have anything to do with using references vs. objects? But still, in java, I can declare an array with variable length from function argument for primitives.</p>
<p><strong>Edit 2</strong></p>
<p>The following Java code did compile though, if you say it should not:</p>
<pre><code>class Test1 {
public int[] f(int n,int k){
int[] c=new int[n];
Arrays.fill(c, k);
return c;
}
}
</code></pre>
|
java c++
|
[1, 6]
|
5,900,914 | 5,900,915 |
pause a runnable thread and wait for user input
|
<p>Lets say I have to copy a bunch of files from one location to another. This I will do in an AsyncTask so I can easily display a progressBar while the operation is happening. </p>
<p>But lets say one fo the files being copied already exists in the new location, can then pause the asynctask and display an alert dialog saying skip or overwrite?</p>
<p>From what I have understood its not possible inside the asynctask. But is there a smart way to achieve something similar? Or should I go through the list, that might be 1000+ files, before and check if they exist in the new location?</p>
<p>What would be the most efficient way?</p>
|
java android
|
[1, 4]
|
2,261,042 | 2,261,043 |
Radio buttons not working when binded with DataList control
|
<p>When i tries to bind a radio button in a datalist it becomes multiselect as its name property becomes different even when i used GroupName to be same.</p>
<p>How can i make it act as radio button only.</p>
<pre><code> <asp:DataList ID="dlRoomNo" runat="server" RepeatColumns="4">
<ItemTemplate>
<div class="orboxfour">
<ul class="boxfour">
<li>
<asp:RadioButton ID="rdoRoomNo" GroupName="roomNo"
Text='<%#Eval("Room No")%>' runat="server" />
</li>
</ul>
</div>
</ItemTemplate>
</asp:DataList>
</code></pre>
|
c# javascript asp.net
|
[0, 3, 9]
|
5,552,622 | 5,552,623 |
How to position an element so that it does not flow off the visible screen
|
<p>I am creating pseudo-tooltips on a page that has a lot of "a" and "span" elements that have these tips associated with them. Everything in the creation of the element is fine, and it displays fine.</p>
<p>However, since this is a page with a lot of data, as you get towards the bottom of the visual area the tooltips start to flow past the bottom edge of the window. My initial attempt to compensate for this with <code>window.innerWidth</code>/<code>innerHeight</code> didn't come out too well. I'm using jQuery for DOM manipulation (but not jQuery UI). Given the event itself, and the height and width of the tooltip (which I can get with <code>getBoundingClientRect()</code>), how can I position this element so that the bottom of the tooltip is never below the edge of the window?</p>
|
javascript jquery
|
[3, 5]
|
1,275,108 | 1,275,109 |
Restrict dragging of div based on css class
|
<p>I use the below code to arrange my divs : </p>
<pre><code>$( ".myDivs" ).sortable({
connectWith: [".myDivs"]
});
</code></pre>
<p>Is it possible to amend this code so as to exclude divs that can be sorted(moved) which contain a particualar css value : </p>
<pre><code><div class="myDivs excludeThisCss"><Excluded From Move></div>
</code></pre>
|
javascript jquery
|
[3, 5]
|
1,003,706 | 1,003,707 |
Initiate POST Request, Perform Action, Then Complete Post request - how?
|
<p>When a user clicks a submit button I want the form to be submitted. However, just before this happens, I want a window to pop open and for them to fill in some data. Once they do this and they close that child window, I want the POST request to be made.</p>
<p>Is this <strong>possible</strong>, if so <strong>how</strong>? I just need help after the window closes, how can I make that POST request continue?</p>
<p>Thanks all</p>
|
php javascript
|
[2, 3]
|
1,240,066 | 1,240,067 |
Visibility into HttpURLConnection pooling?
|
<p>I have been experimenting with <a href="http://developer.android.com/reference/java/net/HttpURLConnection.html" rel="nofollow">HttpURLConnection</a> recently and am impressed with the fact that different instances of HttpURLConnection share connections from a common pool. (verified using packet capture)</p>
<p>My question is this: Is it possible to access the pool directly? I want to see what connections are there in the pool, status of each connection. Is there an interface to set maximum connections per host? </p>
<p>Also, is my understanding correct that any instance of HttpURLConnection across any thread/AsyncTask will always use a single pool? I only tested within a single task...</p>
<p>Java noob here and having a hard time navigating all the javadocs...</p>
|
java android
|
[1, 4]
|
5,283,730 | 5,283,731 |
Onchange Event in JavaScript or Jquery
|
<p>Please help me. I need to change a textbox value when i give value in another textbox. see i have three text box first one is Qty another Amount and third will be a Total Amount.
here i will give a value for Qty and amount. Now third textbox i mean Total amount will be appear automatically. </p>
<p>Please help me...</p>
|
javascript jquery
|
[3, 5]
|
3,542,441 | 3,542,442 |
jQuery targeting this > a where a is not the subject
|
<p>I have batted together a quick script for changing colours on hover as follows however, I need to be able to target <code>$(this a).blah()</code> is it possible to do that?</p>
<p>Using <code>'#nav ul li ul li a'</code> targets the entire <code>ul a</code> if that makes sense</p>
<p>Code: </p>
<pre><code><script type="text/javascript">
// stuff for superfish
$(document).ready(function($) {
$('#nav ul li ul li').mouseenter(function(){
$(this).css("background-color", "#4a4a4a");
$('#nav ul li ul li a').css("color", "#fff");
}).mouseleave(function(){
$(this).css("background-color", "#404041");
$('#nav ul li ul li a').css("color", "#ccc");
});
});
</script>
</code></pre>
|
javascript jquery
|
[3, 5]
|
2,330,735 | 2,330,736 |
Setup a global loading animation istead on every div. Javascript - Jquery
|
<p>How can I setup a global loading instead on every div? The loading pic appears until all pages are loaded.</p>
<pre><code> $(document).ready(function() {
$('#termid').change(function() {
var val = $(this).val();
$('#firstresult').empty().addClass('loading').load(val + '.php', function(){$('#firstresult').removeClass('loading') });
$('#secondresult').empty().addClass('loading').load(val + 'b.php', function(){$('#secondresult').removeClass('loading') });
});
});
</code></pre>
|
javascript jquery
|
[3, 5]
|
5,087,588 | 5,087,589 |
repeating data in ReportViewer
|
<p>I have assigned a dataTable to report as below, but I am getting only the first row of data in the report, not all of the rows. How can I repeat the results for all rows of the datatable I am assigning?</p>
<pre><code><rsweb:ReportViewer ID="ReportViewer1" runat="server" Height="1000px"
Width="600px" SizeToReportContent="True">
</rsweb:ReportViewer>
ReportDataSource rd = new ReportDataSource();
rd.Name = "DataSet1_DataTable1";
//rd.Value = ReceiptData;
rd.Value =(DataTable) ViewState["ReceiptData"];
ReportViewer1.LocalReport.ReportPath = Server.MapPath("Report/Report.rdlc");
//ReportViewer1.LocalReport.EnableExternalImages = true;
ReportViewer1.LocalReport.DataSources.Clear();
ReportViewer1.LocalReport.DataSources.Add(rd);
ReportViewer1.LocalReport.Refresh();
</code></pre>
|
c# asp.net
|
[0, 9]
|
4,365,694 | 4,365,695 |
Website upload error
|
<p>Hi when i upload my website i get the following error</p>
<blockquote>
<blockquote>
<p>Server Error in '/' Application.</p>
</blockquote>
<p>Runtime Error</p>
<p>Description: An application error
occurred on the server. The current
custom error settings for this
application prevent the details of the
application error from being viewed
remotely (for security reasons). It
could, however, be viewed by browsers
running on the local server machine. </p>
<p>Details: To enable the details of this
specific error message to be viewable
on remote machines, please create a
tag within a
"web.config" configuration file
located in the root directory of the
current web application. This
tag should then have
its "mode" attribute set to "Off".</p>
<p>
</p>
<p>Notes: The current error page you are
seeing can be replaced by a custom
error page by modifying the
"defaultRedirect" attribute of the
application's
configuration tag to point to a custom
error page URL.</p>
<p>
</p>
</blockquote>
<p>Any one have any ideas when this is when i run the code i get no errors and the website works?</p>
<p>Any help at all would be great.</p>
|
c# asp.net
|
[0, 9]
|
4,835,920 | 4,835,921 |
How can I check if the cursor is hovering on an element using JQuery
|
<p>It possible to check if the cursor is hovering on an element.</p>
<p>Something like</p>
<pre><code> $("#divId").is("hover");
</code></pre>
<p>NOTE: I just want to check not set event.</p>
|
javascript jquery
|
[3, 5]
|
4,598,679 | 4,598,680 |
Mailto tag puts text into the "To" field of email instead of subject on mobile devices
|
<p>When I use my mobile applications mailto tag on my desktop everything works great but when I access my app on my 2.3 android phone the body of my email gets crammed into the "To" field. Is there any issues with mobile browsers and the mailto tag? Am I setting up the email incorrectly? I have made sure the email message cannot exeed 1,000 characters fully escaped, I cant think of anything else that would be causing this. Any help would be greatly appreciated.</p>
<pre><code>document.location.href = "mailto:&body=" + escape(myMessage.replace(/[^\u0000-\u007F]/, ""))
</code></pre>
|
javascript android
|
[3, 4]
|
3,070,918 | 3,070,919 |
making a custom calendar like layout programicaly
|
<p>I am developing an app which basically should download a list of events from a website and then views them in a in a calendar like layout. I already covered the first part. But I don't have an idea how to make a layout which would be a grid (tume on one axis and date on second axis) and the events in form of listview would be placed on the grid based on the start and end time. I just need a hint how to start this. The problem is that i have to add the events depending on user choices.</p>
|
java android
|
[1, 4]
|
5,942,510 | 5,942,511 |
Comparing text from EditText with string from database
|
<p>This code should compare text entered into <strong>R.id.editUserName</strong> with <strong>R.string.DB_username</strong> and, if they match, log you in, else show a toast that they don't match.</p>
<pre><code>public void signIn(View view) {
EditText editUserName = (EditText)findViewById(R.id.editUserName);
String userName = editUserName.getText().toString();
if ( userName == getResources().getString(R.string.DB_username)) {
// log in
setContentView(R.layout.screen1);
} else {
// show toast
Toast toast = Toast.makeText(getApplicationContext(), userName+" != "+getResources().getString(R.string.DB_username), Toast.LENGTH_LONG);
toast.setGravity(Gravity.CENTER, 0, 0);
toast.show();
}
}
</code></pre>
<p>Even when they do match, it still shows a toast, such as "Roger != Roger"... how could that be?</p>
|
java android
|
[1, 4]
|
5,226,973 | 5,226,974 |
Where can I find advanced jQuery/JavaScript resources/tutorials?
|
<p>I'm reading some tutorials now about jQuery.. function creating,plugin creation etc. but these tutorials are missing some basic explanations like they mention things like </p>
<p>function prototype, anonymous functions, umm putting (jQuery) after the }); .. and stuff like that .. is there a tutorial/website/book that explain these I'm not sure how to call them "terms" from beginner level to advance. I'm mean I have a knowledge of some jquery syntax but not enough to understand this, can anyone recommend useful resource?</p>
<p>Google doesn't help much, I googled "advance features of jquery" don't really get me the things I wanna know.</p>
<p><strong>EDIT</strong></p>
<p>Also if someone can share his/her <strike>story</strike> steps on how to become comfortable with javascript, how to overcome this "terminology" or whatever is called</p>
|
javascript jquery
|
[3, 5]
|
4,902,688 | 4,902,689 |
List.Add() thread safety
|
<p>I understand that in general a List is not thread safe, however is there anything wrong with simply adding items into a list if the threads never perform any other operations on the list (such as traversing it)?</p>
<p>Example:</p>
<pre><code>List<object> list = new List<object>();
Parallel.ForEach(transactions, tran =>
{
list.Add(new object());
});
</code></pre>
|
c# asp.net
|
[0, 9]
|
3,381,306 | 3,381,307 |
Enforcing case constraint on textbox
|
<p>I have a textbox with the case settings from the database. If the database setting is Upper Case then the textbox text should be converted to Upper Case and if the Setting is Proper Case then the textbox text should be converted to Proper Case. I have achieved this with the help of javascript. </p>
<p>However, I have one more setting which is Upper Changeable where the textbox text is converted to upper case. But if the user does not want upper case he can change the case.</p>
<pre><code> <script type="text/javascript">
function toUpper(obj) {
var mystring = obj.value;
var sp = mystring.split(' ');
var wl = 0;
var f, f1, f2, r1, r2, r;
if (document.getElementById('<%= hdnNameStyle.ClientID %>').value == "UC") {
mystring = mystring.toUpperCase();
obj.value = mystring;
}
if (document.getElementById('<%= hdnNameStyle.ClientID %>').value == "PC") {
var word = new Array();
for (i = 0; i < sp.length; i++) {
f = sp[i].substring(0,1).toUpperCase();
r = sp[i].substring(1);
word[i] = f + r;
}
newstring = word.join(' ');
obj.value = newstring;
}
if (document.getElementById('<%= hdnNameStyle.ClientID %>').value == "UG") {
mystring = mystring.toUpperCase();
obj.value = mystring;
}
}
</code></pre>
<p></p>
<p>This is the javascript that I have tried and it works fine. However, to clarify it further if the hdnNameStyle value is UG the textbox text is converted to uppercase, but if the user does not want uppercase he can change the case.</p>
<p>How to enable the user to change the case with the help of javascript?</p>
<p>Thanks,</p>
|
c# javascript jquery
|
[0, 3, 5]
|
5,547,511 | 5,547,512 |
jQuery extension (scope?) question
|
<p>I have some confusion over a jQuery extension not working as I'd expect. I have the following function defined:</p>
<pre><code>$.fn.poster = function() {
this.each(function() {
self = $(this);
self.click(function() {
/* does stuff */
$.post(url, data, function(d, t) { handle_storage(d, t, self); }, "json");
});
});
}
handle_storage = function(storages, status, caller) {
container = $("<div>");
$("<span>").poster().html(storage.name).appendTo($("<li>").addClass("folder").appendTo(container));
}
$(function() {
$("li.storage span").poster();
});
</code></pre>
<p>The initial call to poster() in the ready function works, but inside the handle_storage() callback, I get a "poster() is undefined" error. What gives?</p>
|
javascript jquery
|
[3, 5]
|
3,548,801 | 3,548,802 |
Call a function only once
|
<p>I've 3 divs (<code>#Mask #Intro #Container</code>) so if you click on Mask, Intro gets hidden and Container appears.
The problem is that I just want to load this only one time, not every time I refresh the page or anytime I click on the menu or a link, etc.</p>
<p>How can I do this?</p>
<p>This is the script I'm using for now:</p>
<pre><code>$(document).ready(function(){
$("div#mask").click(function() {
$("div#intro").fadeToggle('slow');
$("div#container").fadeToggle('slow');
$("div#mask").css("z-index", "-99");
});
});
</code></pre>
<p>Thank you!</p>
|
javascript jquery
|
[3, 5]
|
5,547,272 | 5,547,273 |
object literal not defined unless wrapped in jQuery onready; need ideas for debugging
|
<p>Adopted some javascript code that I'm rearranging into smaller files to make it more managable; I'm never been a full-time javascript engineer but have worked with it for awhile but don't feel super comfortable with it. </p>
<p>I have an object literal that handles most of our controller level activities for our site. We've rearranged the code and put it in different files but there's one specific object where I'm getting an undefined error. Looking at the load order of the files, it comes in before the jQuery piece. Also wrapping this object literal in another jQuery onready wrapper fixes the problem. If I check via somethign like this:</p>
<pre><code>if (typeof arc.event_handler === "undefined"){
alert("something is undefined");
}else{
alert("something is defined");
}
</code></pre>
<p>then with jQuery onready wrapping, it is defined but without it is undefined. Like (I know that this code will work either with or without the jQuery onload)</p>
<pre><code>// file-1.js
var arc={};
$(document).ready(function(){
arc.event_handler={
do_something: function(){
alert('do something');
}
}
});
</code></pre>
<p>and then later in different file</p>
<pre><code>// later in load order z-file.js
$(document).ready(function(){
if (typeof arc.event_handler === "undefined"){
alert("something is undefined");
}else{
alert("something is defined");
}
$('.some').on('click',function(){
arc.event_handler.do_something();
});
});
</code></pre>
<p>I'm a little bit at a loss what could causing this behavior. My understanding is that even if an external file, the part in the jQuery onready should essentially cause it to wait until these other pieces are loaded. I'm probably not getting something really simple but wanted to see if there were any ideas about what next to look at next? </p>
<p>thx in advance</p>
|
javascript jquery
|
[3, 5]
|
1,318,953 | 1,318,954 |
How do I pause a windows.setInterval in javascript?
|
<p>I have a javascript function that is called every 2000ms. I want to pause this so I can have the user do other things on the page without it being called again. Is this possible? Here is the function that gets called every 2000ms:</p>
<pre><code>window.setInterval(function getScreen (sid) {
if (window.XMLHttpRequest)
{// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
}
else
{// code for IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange=function()
{
if (xmlhttp.readyState==4 && xmlhttp.status==200)
{
document.getElementById("refresh").innerHTML=xmlhttp.responseText;
}
}
xmlhttp.open("POST","getScreen.php?sid="+<?php echo $sid; ?>,true);
xmlhttp.send();
},2000);
</code></pre>
|
javascript jquery
|
[3, 5]
|
2,945,438 | 2,945,439 |
jQuery UI confirm dialog doesn't return true/false
|
<pre><code> $(function ()
{
$("#dialog-confirm").dialog(
{
autoOpen: false,
resizable: false,
height: 240,
modal: true,
buttons: {
"Delete": function ()
{
$(this).dialog("close");
return true;
},
Cancel: function ()
{
$(this).dialog("close");
return false;
}
},
close: function() {
;
}
});
});
function ShowDeleteConfirmation()
{
var activeEmelent = document.activeElement;
if (activeEmelent.innerHTML == 'Delete')
{
$('#dialog-confirm').dialog('open');
return false;
}
}
</code></pre>
<p>//aspx code</p>
<pre><code><asp:LinkButton ID="lbDelete" runat="server" Text="Delete" CssClass="wecc-grid-link" data-cmd="delete" OnClick="Delete_Click" OnClientClick=" return ShowDeleteConfirmation();" ></asp:LinkButton>
</code></pre>
<p>//Server side event</p>
<pre><code>protected void Delete_Click(object sender, EventArgs e)
{
_deleteClicked = true;
LinkButton lb = sender as LinkButton;
GridViewRow row = lb.Parent.NamingContainer as GridViewRow;
if (row.RowState != (DataControlRowState.Selected | DataControlRowState.Edit) &&
row.RowState != (DataControlRowState.Alternate | DataControlRowState.Selected | DataControlRowState.Edit))
{
Delete(row);
}
else
{
SetRowState(row.RowIndex, DataControlRowState.Normal);
}
gvSaveState.DataSource = this.Data;
gvSaveState.AllowSorting = true;
gvSaveState.DataBind();
lbAddItem.Visible = true;
lbRefreshData.Visible = true;
}
</code></pre>
<p>The dialog pops up when I click on the delete link button in my gridview. But, upon Clicking Delete button in the dialog, it doesn't fire my Server Side click event. I do return a value 'true' when the Delete is clicked.</p>
<p>Appreciate your help here.</p>
|
javascript jquery asp.net
|
[3, 5, 9]
|
2,441,890 | 2,441,891 |
Failing to set multiple attributes using .attr()
|
<p>how can I set the <code>.attr()</code> of my <code>iframe</code> by using the variable <code>attrs</code> made below ?</p>
<pre><code>iosocket.on('content', function (object) {
var attrs = '';
for (var key in object) {
attrs = attrs.concat(",'" + key + "':'" + object[key] + "'");
}
attrs = '{' + attrs.substring(1) + '}';
console.log(attrs);
var i = $('<iframe></iframe').attr(attrs);
$('#in').append(i);
});
</code></pre>
<p>the console.log say it right but it doesn't work, my iframe never get the attrs and no error is dropped.</p>
<pre><code>{'width':'853','height':'480','src':'https://www.youtube-nocookie.com/embed/qNaknTgIbIg?rel=0','frameborder':'0','allowfullscreen':''}
</code></pre>
<p>I've also try with <code>.attr(eval(attrs))</code>, same issue.</p>
|
javascript jquery
|
[3, 5]
|
5,862,053 | 5,862,054 |
How to get email of selected checkboxes in gridview on client side?
|
<p>I have a grid view with 3 columns checkbox, name and email. I am trying from last day but couldn't succeed in getting email addresses of checked checkboxes on client side in javascript funtion.</p>
<p>Help please.</p>
|
javascript jquery asp.net
|
[3, 5, 9]
|
570,410 | 570,411 |
how to convert datetime to a particular format
|
<pre><code>private void buildGrid()
{
this.currentActivities = new XSPIncidentActivityModel.XSPIncidentActivityEntities(BuildEntityConnectionString("XSMDSN")).XSP_IncidentActivity.Where(ia => ia.IncidentID == this.IncidentID).OrderBy(ia=>ia.CompletionDate).ToList();
foreach (XSPIncidentActivityModel.XSP_IncidentActivity act in this.currentActivities)
{
act.CompletionDate.AddHours(this.TimeZoneOffset);
if (act.CompletionDate.IsDaylightSavingTime())
{
act.CompletionDate.AddHours(-1).ToString("MMM dd, yyyy");
}
}
CommonGrid1.BindDataSource(this.currentActivities);
}
</code></pre>
<p>I have to conert the datetime object to a particular format i.e, currentl;y it displays 9/14/2009 12:20:30 PM</p>
<p>i have to display in this manner 9/14/2009 12:20 PM</p>
<p>by converting it to string string s = String.Format("{0:g}", act.CompletionDate.AddHours(this.TimeZoneOffset)); i can display date time without seconds.</p>
<p>But since the data is coming from sql server i have to dislay the datetime object (act.CompletionDate) in that particular format</p>
<p>i tried this but it isnot working
string[] expectedFormats = {"G", "g", "f" ,"F"};
IFormatProvider culture = new CultureInfo("en-GB", true);
act.CompletionDate = DateTime.ParseExact(s, expectedFormats, culture, DateTimeStyles.AllowWhiteSpaces);</p>
|
c# asp.net
|
[0, 9]
|
4,612,921 | 4,612,922 |
Move text display area from one place to another
|
<p>Imagine I have a html page which has a 2x2 matrix (4 quadrants) and in each quadrant I can have a text display listing. People can just click on + button on any quadrant and add text there. Once text has been added, it will be displayed in those quadrants. </p>
<p>My question is:</p>
<p>How do I enable that a text line display from one quadrant be moved to another quadrant. </p>
<p>I would prefer using PHP, javascript for this. Any pointers to examples would help</p>
|
php javascript
|
[2, 3]
|
606,623 | 606,624 |
define a web request for the specified URL
|
<p>what is the best way to validate a valid url and through error message?</p>
<p>i am using something like this:</p>
<pre><code> HttpWebRequest req = (HttpWebRequest)WebRequest.Create(url);
</code></pre>
<p>i am doing try and catch to catch the error message</p>
<p>is that enough or can be do better then that?</p>
|
c# asp.net
|
[0, 9]
|
4,724,173 | 4,724,174 |
filling background color in a cicle with effects from bottom to top
|
<p>I have a 4x4 matrix circles, which created by using canvas. I want to fill background color for every circles. Each circle color filling should be from bottom to top. is it possible with canvas?If i am using div instead of canvas how can i fill back ground color for each div with effects bottom top?</p>
|
javascript jquery
|
[3, 5]
|
432,497 | 432,498 |
How do I identify which element (or elements) exist at a specific position?
|
<p>Given the vast number of threads/searches that relate to how to obtain coordinates of an element, I'm having a tough time trying to figure out the opposite - how to get the element (or elements) at a specific x y coordinate. Any suggetions? </p>
|
javascript jquery
|
[3, 5]
|
298,052 | 298,053 |
jQuery - how to hide a DIV element only when clicking outside of it
|
<p>I have a <code>DIV</code> element that appears when a certain action is performed. For the sake of simplicity, I wrote a very simple routine that mimics the issue I'm running into. The problem I am facing, however, is that when you click inside the <code>DIV</code> element (and outside the <code>textarea</code>), it will hide the <code>DIV</code> anyway.</p>
<p>Here is the code below:</p>
<pre><code><body>
outside div
<br><br>
<a href="#" id="wrap_on">make inside appear</a>
<br><br>
<div id='wrap' style='background:red;display:none;padding:10px;width:155px'>
<textarea id='inside'>inside div</textarea>
<div id='inside2'>also inside div -- click me</div>
</div>
</body>
<script>
$(document).ready(function() {
$('#wrap_on').click(function() {
$('#wrap').show();
$('#inside').select().focus();
});
$('#inside2').click(function() {
alert('test');
});
// #inside2 does not work but #wrap does hide
$('#wrap').focusout(function() {
$('#wrap').hide();
});
});
</script>
</code></pre>
<p>Or you can tinker with it here: <a href="http://jsfiddle.net/hQjCc/" rel="nofollow">http://jsfiddle.net/hQjCc/</a></p>
<p>Basically, I want to be able to click on the text "also inside div -- click me" and have the alert popup. However, the <code>.focusout</code> function is preventing it from working. Also, I want to hide the <code>#wrap DIV</code> if you click outside of it.</p>
|
javascript jquery
|
[3, 5]
|
4,758,554 | 4,758,555 |
How to prevent ASP:Button from posting back from a jQuery click handler
|
<p>I have an <code>ASP:Button</code> on a page. It renders as HTML like so:</p>
<pre><code><input type="submit" name="myButton" value="Do something"
onclick="javascript:WebForm_DoPostBackWithOptions(
new WebForm_PostBackOptions('myButton', '', true, '', '', false, false))"
id="myButton" />
</code></pre>
<p>Now I am trying to prevent the default behavior of this button (submitting the form) via a jQuery event handler:</p>
<pre><code>$('#myButton').click(function () {
// do some client-side stuff
if (someCondition) {
// don't postback!
return false;
}
});
</code></pre>
<p>The problem here is that the inline click handler that ASP sticks on the input seems to be executing before the jQuery event handler, every time.</p>
<p>The easiest solution here would be to use a plain <code>input type="button"</code> instead of an <code>ASP:Button</code>, unfortunately <strong>this is not a possibilty</strong> as this <code>ASP:Button</code> does many other things that are required in this scenario.</p>
<p>What would be the best way to prevent the form submission from happening? I've thought of using string manipulation to prepend my handler on the element's <code>onclick</code> attribute, but this seems really dirty. I'd also like to avoid using the <code>OnClientClick</code> as this would require my handler function to be publicly exposed. Is there a better way?</p>
|
javascript jquery asp.net
|
[3, 5, 9]
|
3,620,080 | 3,620,081 |
Android: How to get or read XML from URL to String
|
<p>how to read XML and then convert/transform it to variable String, I have try with Jsop library, but not success, with JSoup I get html format.</p>
<p>I want to read link in below to String:
<a href="http://bowingdown.wordpress.com/feed/" rel="nofollow">http://bowingdown.wordpress.com/feed/</a></p>
<p>And then put it to String, I want to as below, example;</p>
<pre><code>String data = "<rss xmlns:content=blablabla><channel>blablbabla</channel></rss>";
</code></pre>
<p>And i have read in here <a href="http://stackoverflow.com/questions/5162063/http-request-for-xml-file/5162372#5162372">HTTP request for XML file</a>, but not success.</p>
<p>Thanks for help. </p>
|
java android
|
[1, 4]
|
2,670,405 | 2,670,406 |
Jquery/JS scoping
|
<p>This may be pretty simple but it's stumping me. I'm trying to return a variable in javascript to another variable outside of the function's scope. For some reason, the assignment isn't occurring. Here's my code:</p>
<pre><code>var time = Math.round(((new Date()).getTime())/1000);
// first call to get data
var power_now = get_data(<%= @user.id %>, time);
function get_data(user_id, timestamp){
var targetURL = "get/user_data?time_now="+timestamp+"&user_id="+user_id;
var power = 0;
$.get(targetURL, function(data){
power = data[0]['power'];
alert(power);
})
return power;
}
$('body').html('<h1>'+power_now+','+power_then+'</h1>')
</code></pre>
<p>If I place alert(power) within the .get function, the value is correct; however if I place it outside of the .get function, the value is 0.</p>
<p>Maybe I'm missing something about scoping in javascript?</p>
<p>Thanks!</p>
|
javascript jquery
|
[3, 5]
|
2,625,275 | 2,625,276 |
Can I call OnCommand programmatically?
|
<p>I have in the master page an overridden method for <code>OnCommand</code> method.</p>
<p>Can I call it programmatically through any page uses the master page?</p>
<p>I mean something like the following:</p>
<pre><code>CallOnCommand("CommandName", "CommandArg");
</code></pre>
|
c# asp.net
|
[0, 9]
|
2,548,008 | 2,548,009 |
Password manager-auto id and password in java
|
<p>HI i am developing password manager application in android......How can i generate auto user id and password for particular websites account in android for password manger application? IN .details....
first i created database which is contain id,websites names,user id and password
so when i enter websites names in edit text it ll save to database then how can i created auto id and password for single website name in database</p>
<p>so if any one know source code for this above statement let me know..</p>
|
java android
|
[1, 4]
|
2,821,955 | 2,821,956 |
How to make a link out of text on the fly? -- JQuery beginner
|
<p>I have a bunch of these on a page:</p>
<pre><code><div class="item" id="555">
<div class="wrapper>
<p>Make Link One</p>
</div>
<p class="action">Make Link Two</p>
</div>
</code></pre>
<p>How can I dynamically make the 2 texts links based on the id 555? ie. They both should be links to <code>http://555</code></p>
<p>There is a unique business requirement which is the reason they're not just normal hrefs to begin with.</p>
|
javascript jquery
|
[3, 5]
|
2,016,594 | 2,016,595 |
How to clear the gesture in android?
|
<p>I have a gestureview and i can draw anything in it, but when i want to put another drawing I need to clear the gesture on that activity. I used a clear button, but I cant figure out the exact method to do it.</p>
|
java android
|
[1, 4]
|
2,977,047 | 2,977,048 |
Check if/time Image loads ASP.net Web Application
|
<p>Ive looked around and havent seen anything on what I can do for my problem, so maybe someone here can help me. Basically I have an image (http://mysite.com/Sites/P/PA/25?encoding=UTF-8&b=100 note there is no file extension as this served through a script) and I want to check to see if this image returns an Image, or an error code like 404 or 403. I also want to record the response time of that. I am trying to make a web application that will monitor this software that displays the image, if it returns 404 error I know its down, if the load time is greater than 10 seconds I also know it may be down or some other action needs to be performed.</p>
<p>I thought about using <code>WebRequest.Create</code> but this wont return the time it took.</p>
<p>Any have any ideas on how I could implement this?</p>
|
c# asp.net
|
[0, 9]
|
188,820 | 188,821 |
Insert a divider
|
<p>Hello friends I wish to insert a divider into my String after <code>15-9-2012 15-10-2012</code>
Example:- <code>15-9-2012@15-10-2012</code></p>
<p>Guys I am looking for generic method to insert @ symbol when space is preceded and followed by numbers</p>
|
java android
|
[1, 4]
|
1,003,989 | 1,003,990 |
How to set drop down list option up to specific value
|
<p>If I have valvo that obtain from database, How can I set volvo option status into active(checked) by using JQuery?</p>
<pre><code><select name="car">
<option value="volvo">Volvo</option>
<option value="saab">Saab</option>
<option value="mercedes">Mercedes</option>
<option value="audi">Audi</option>
</select>
</code></pre>
<p>I don't know how to manager control that have same identity. <br/>
<code>??? $('input[name="car"]').attr('checked', true);</code></p>
|
javascript jquery
|
[3, 5]
|
1,448,568 | 1,448,569 |
uncheck a checked checkbox with jquery in asp.net
|
<p>I have several checkboxes inside an UpdatePanel of asp.net</p>
<p>Let's say, I have 3 checkboxes in that panel. Each time, one checkbox is checked, the previous checked checkbox will be unchecked. </p>
<p>I have tried like this:</p>
<pre><code><asp:CheckBox ID="CheckBoxExport1" CssClass="checkboxSingle" />
<asp:CheckBox ID="CheckBoxExport1" CssClass="checkboxSingle" />
<asp:CheckBox ID="CheckBoxExport1" CssClass="checkboxSingle" />
</code></pre>
<p>In js:</p>
<pre><code> $('.checkboxSingle').live('click', function (e) {
if ($(this).is(':checked')) {
$(".checkboxSingle").attr('checked', false);
$(this).attr('checked', 'checked')
}
});
</code></pre>
<p>The click is function but the rest does not. Thanks in advance</p>
<p>Thanks in advance.</p>
|
jquery asp.net
|
[5, 9]
|
2,405,338 | 2,405,339 |
Session and Thread in ASP.NET
|
<p>I have a ASP.NET website where a thread is responible for doing some code retrived from a database queue.</p>
<p>Is it possible to get access to the Session or pass that as a parameter ?</p>
<p>My current code looks a follows:</p>
<pre><code>MediaJob nextJob = GetNextJobFromDB();
CreateMedia media = new CreateMedia();
Thread t = new Thread(new parameterizedThreadStart(media.DOSTUFF);
t.Start(nextJob);
</code></pre>
<p>The HttpContext.Current.Session is null when running in a thread, so cant do that </p>
|
c# asp.net
|
[0, 9]
|
2,964,133 | 2,964,134 |
Dynamic javascript using JQuery?
|
<p>My code is as follows:</p>
<pre><code><script>
$(document).ready(function() {
var tagCounter=0;
$("#tag-add-button").click(function () {
var text = $("#tagadd").val();
$("#set-tags").append("<input type='text' id='tag"+tagCounter+"' READONLY>");
$("#tag"+tagCounter).val(text);
$("#tagadd").val("");
tagCounter++;
});
});
</script>
</code></pre>
<p>This does the following: </p>
<p>When tag-add-button is clicked, it takes the text from the inputbox (tagadd) and puts it in a new inputbox thats appended to the set-tags div. The tagadd inputbox is then made blank. </p>
<p>The problem I'm having, is I want each input box to have its own remove button. But I don't see how the javascript can be generated for that when there can be an unlimited number of input boxes...</p>
<p>Any ideas?</p>
|
javascript jquery
|
[3, 5]
|
3,158,395 | 3,158,396 |
find('a,b') is slower than find('a')+find('b'), why?
|
<p><a href="http://jsperf.com/find-a-b-vs-find-a-find-b" rel="nofollow">jsperf's link</a></p>
<p>I'm not a jQuery expert(not even a good user), i haven't studied the whole source code of it (only a little part which can't help me solve this problem).</p>
<p>Can somebody explain this for me?</p>
|
javascript jquery
|
[3, 5]
|
3,793,102 | 3,793,103 |
Issue with Jquery calendar when going live
|
<p>Hi all i have developed a calendar from here <a href="http://keith-wood.name/datepick.html" rel="nofollow">http://keith-wood.name/datepick.html</a> in my application which was working fine in locally. But when i am hosting the files i am unable to display the calendar can any one tell what might be the problem</p>
<p>I found another interesting one i.e when i am having <code>master page</code> i am unable to load the script</p>
<p>Here is the link for the one which is having <code>Master page</code> </p>
<p><a href="http://myusapayroll.com/Demo/DemoTest.aspx" rel="nofollow">http://myusapayroll.com/Demo/DemoTest.aspx</a></p>
<p>The one which works fine with out master page is here</p>
<p><a href="http://myusapayroll.com/Test/Test.aspx" rel="nofollow">http://myusapayroll.com/Test/Test.aspx</a></p>
<p>Can any one suggest me what to do</p>
|
c# jquery asp.net
|
[0, 5, 9]
|
3,159,344 | 3,159,345 |
How can I automate chaining a series of ajax requests?
|
<p>Look at the lower part of my function: I want to repeat <code>info(url_part1 + next + url_part2, function(next) {</code> couple of times. Is there a smarter way than one presented below (maybe some kind of loop)? I've been thinking whole day and I can't devise anything.</p>
<pre><code> function info(link, callback) {
$.getJSON(link, function(json) {
$.each(json.data.children, function(i, things) {
$("#threadlist").append('<img src="' + things.data.url + '">');
});
callback(json.data.after);
});
}
var url_first = "http://www.reddit.com/r/aww/.json?jsonp=?";
var url_part1 = "http://www.reddit.com/r/aww/.json?after=";
var url_part2 = "&jsonp=?";
info(url_first, function(next) {
info(url_part1 + next + url_part2, function(next) {
info(url_part1 + next + url_part2, function(next) {
info(url_part1 + next + url_part2, function(next) {
info(url_part1 + next + url_part2, function(next) {
});
});
});
});
});
</code></pre>
<p>Js fiddle: <a href="http://jsfiddle.net/rdUBD/1/" rel="nofollow">http://jsfiddle.net/rdUBD/1/</a></p>
|
javascript jquery
|
[3, 5]
|
4,968,403 | 4,968,404 |
Need a simple way to repeatedly poll a file using javascript
|
<p>Hopefully the below is close, but I feel I'm doing the first part wrong.<br /></p>
<hr />
<p>Ideal outcome is status-remote.php to be polled every 2 seconds, while not being cached (hence the random nocache variable). </p>
<p>If it's relevant, the php file has two variables the status of which determines the visibility on this page.</p>
<pre><code><script id="status" type="text/javascript"></script>
<script type="text/javascript">
var nocache = Math.random();
setInterval(
document.getElementById('status').src = '/status-remote.php?sid=2&random='+nocache;
}, 2000);
</script>
</code></pre>
<p>Thanks so much for taking a look!</p>
|
php javascript
|
[2, 3]
|
5,151,689 | 5,151,690 |
take screen shots on android 4.0 using pc or on rooted devices
|
<p>Is there a library to take screen shots for the current screen on android 4.0, even if it uses pc access?</p>
|
java android
|
[1, 4]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.