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,595,279 | 4,595,280 | Check if a remote file exists | <p>When retrieving remote files from a serrver via HTTP, there is one situation where I do not know the exact number of files I fill need to retrieve, incrementing a part of the filename until either the file does not exist or I hit a pre-defined threshold.</p>
<p>What is the best way to test if a remote file exists using C#? Obvisouly I could send a webrequest and see if it times out, but that would not be optimal!</p>
| c# asp.net | [0, 9] |
2,156,905 | 2,156,906 | global variable in javascript? | <p>i have this code:</p>
<pre><code> $(".link").each(function() {
group += 1;
text += 1;
var links = [];
links[group] = [];
links[group][text] = $(this).val();
}
});
var jsonLinks = $.toJSON(links);
</code></pre>
<p>after it has looped every .link it will exit the each loop and encode the array 'links' to json. but the array 'links' is a local variable inside the each-loop. how can i make it global outside the loop?</p>
| javascript jquery | [3, 5] |
2,178,334 | 2,178,335 | StringBuffer Append Space (" ") Appends "null" Instead | <p>Basically what I'm trying to do is take a String, and replace each letter in the alphabet inside, but preserving any spaces and not converting them to a "null" string, which is the main reason I am opening this question.</p>
<p>If I use the function below and pass the string "a b", instead of getting "ALPHA BETA" I get "ALPHAnullBETA".</p>
<p>I've tried all possible ways of checking if the individual char that is currently iterated through is a space, but nothing seems to work. All these scenarios give false as if it's a regular character.</p>
<pre><code>public String charConvert(String s) {
Map<String, String> t = new HashMap<String, String>(); // Associative array
t.put("a", "ALPHA");
t.put("b", "BETA");
t.put("c", "GAMA");
// So on...
StringBuffer sb = new StringBuffer(0);
s = s.toLowerCase(); // This is my full string
for (int i = 0; i < s.length(); i++) {
char c = s.charAt(i);
String st = String.valueOf(c);
if (st.compareTo(" ") == 1) {
// This is the problematic condition
// The script should just append a space in this case, but nothing seems to invoke this scenario
} else {
sb.append(st);
}
}
s = sb.toString();
return s;
}
</code></pre>
| java android | [1, 4] |
5,023,751 | 5,023,752 | Find contours of objects on photo | <p>I need to find contours of objects on images and that borders paint in blue ( like parameter I have Bitmap). Is there any library for this task or can anyone suggest me concrete algorithm for this task ?</p>
| java android | [1, 4] |
3,252,699 | 3,252,700 | Can I call the function Ready() again in jQuery | <p>I have this code </p>
<pre><code> $(".insert").click(function(){
$(".insert").ajaxStop(function(){
$(".load").hide();
});
$(".insert").ajaxStart(function(){
$(".load").show();
});
$.ajax({
type: "GET",
url: "edit.php",
data: "action=add",
success: function(msg){
$(".control").append(msg);
}
});
});
</code></pre>
<p>as you can see this code append the HTML response of edit.php to the .control</p>
<p>the problem is </p>
<p>after appending the html .. all jquery changes wont apply in it .. because the $(document).ready() was already called before this this HTML code was born ...</p>
<p>can I call $(document).ready() every while I do any changes ????</p>
| javascript jquery | [3, 5] |
2,405,848 | 2,405,849 | Highlight selected list item only on long click? | <p>I'm using this to make a list item visible selected:</p>
<pre><code><item android:state_activated="true" android:drawable="@android:color/holo_blue_light" />
</code></pre>
<p>But I want the item only to be highlighted if a longclick is performed (so to say: only during the context menu bar is displayed above).
And on a single click I do not want it to be highlighted, even though performing an action on single click.</p>
<p>How can I disable the activated state only on longclick?</p>
| java android | [1, 4] |
1,079,726 | 1,079,727 | jQuery Deconstruction | Init()'s constructor property set to jQuery? | <p>Regarding <a href="http://code.jquery.com/jquery-latest.js" rel="nofollow">latest jQuery</a> - Note I substitute aliases to make the code more readable.</p>
<p><code>jQuery()</code> </p>
<p>will call a method which does:</p>
<pre><code>new jQuery.prototype.init()
</code></pre>
<p>and inside this method the constructor property is set:</p>
<pre><code>constructor: jQuery;
</code></pre>
<p>Why is this done?</p>
<p>The prototype is also set manually like this:</p>
<pre><code>jQuery.fn.init.prototype = jQuery.prototype;
</code></pre>
<p>and this is obvious as now init has access to these making it act like a jQuery object.</p>
<p>But why the constructor?</p>
| javascript jquery | [3, 5] |
1,254,505 | 1,254,506 | jquery form name selector not working when passed as a parameter | <p>I have a function which takes 4 parameters i.e form name, class of button , function , eventType
all i want to do is select the element button of the form and call the function accordingly but it doesnt work for me
<strong>Works when i hard code the form name and button class</strong></p>
<pre><code>registerFormEvent : function(formName,buttonClass,func,eventType) {
$('form[name= "demoForm"]').find('.submit').on(eventType,func);
</code></pre>
<p><strong>while it wont work when i try to pass the param into the form name and buttonClass name</strong></p>
<pre><code>registerFormEvent : function(formName,buttonClass,func,eventType) {
$('form[name= formName]').find(buttonClass).on(eventType,func);
}
</code></pre>
<p>I know its an Syntax Error but i could not find a way to do it ..help is really appreciated</p>
| javascript jquery | [3, 5] |
3,062,380 | 3,062,381 | To verify that any item has been selected using Jquery Selectors | <p>I have a situation like this,
Iam trying to select a label using Id selector and sets its value..Due to some reason it doesnt seem to be working</p>
<pre><code> $(document).ready(function () {
$("#Label3").val("hii");
});
</code></pre>
<p>How do I verify that <code>$("#Label3")</code> has indeed selected the label.</p>
<p>The label is rendered like this:</p>
<pre><code><span id="Label3"></span>
</code></pre>
| javascript jquery | [3, 5] |
3,686,291 | 3,686,292 | How to share html content from a webview? | <p>Please tell me how to share the Contents of webview. I have used <strong>myjavascriptinterface</strong> class for registering, but I don't where the contents of webview is stored. please guide properly so that i can understand properly the usage my javascriptinterface class.</p>
| java android | [1, 4] |
5,958,258 | 5,958,259 | jQuery: Get reference to click event and trigger it later? | <p>I want to wrap an existing click event in some extra code.</p>
<p>Basically I have a multi part form in an accordion and I want to trigger validation on the accordion header click. The accordion code is used elsewhere and I don't want to change it.</p>
<p>Here's what I've tried:</p>
<pre><code> //Take the click events off the accordion elements and wrap them to trigger validation
$('.accordion h1').each(function (index, value) {
var currentAccordion = $(value);
//Get reference to original click
var originalClick = currentAccordion.click;
//unbind original click
currentAccordion.unbind('click');
//bind new event
currentAccordion.click(function () {
//Trigger validation
if ($('#aspnetForm').valid()) {
current = parseInt($(this).next().find('.calculate-step').attr('data-step'));
//Call original click.
originalClick();
}
});
});
</code></pre>
<p>jQuery throws an error because it's trying to do <code>this.trigger</code> inside the <code>originalClick</code> function and I don't think <code>this</code> is what jQuery expects it to be.</p>
<p><strong>EDIT: Updated code. This works but it is a bit ugly!</strong></p>
<pre><code> //Take the click events off the accordion elements and wrap them to trigger validation
$('.accordion h1').each(function (index, value) {
var currentAccordion = $(value);
var originalClick = currentAccordion.data("events")['click'][0].handler;
currentAccordion.unbind('click');
currentAccordion.click(function (e) {
if ($('#aspnetForm').valid()) {
current = parseInt($(this).next().find('.calculate-step').attr('data-step'));
$.proxy(originalClick, currentAccordion)(e);
}
});
});
</code></pre>
| javascript jquery | [3, 5] |
4,557,385 | 4,557,386 | jQuery .ready() automatically defining variables for each element with ID in DOM | <p>I have noticed some unexpected behaviour when using the jQuery <code>.ready()</code> function, whereby afterwards you can reference an element in the DOM simply by using its ID without prior definition:</p>
<pre><code><html>
<script src="jquery.js"></script>
<script>
$(document).ready(function() {
myowndiv.innerHTML = 'wow!'
});
</script>
<body>
<div id="myowndiv"></div>
</body>
</html>
</code></pre>
<p>I would have expected to have to declare and assign <code>myowndiv</code> with <code>document.getElementById("myowndiv");</code> or <code>$("#myowndiv");</code> before I could call <code>innerHTML</code> or anything else on it?</p>
<p>Is this behaviour by design? Can anyone explain why? My fear is that if I don't notice and refactor and end up not using <code>.ready()</code> or even using jQuery at all then my code will fail to execute with lots of <code>undefined</code> errors.</p>
<p>Cheers!</p>
| javascript jquery | [3, 5] |
643,981 | 643,982 | Organising code that includes php and javascript files | <p>I have a website where I am including a php library file and a javascript library file. I have condensed the problem to the following files:</p>
<p><strong>index.php</strong></p>
<pre><code><?php
include('constants.php');
?>
<html>
<head>
<script type="text/javascript" src="lib.js"></script>
</head>
<body onload="javascript:show_const_1('<?php echo(CONST_TEXT); ?>');
show_const_2();">
Some text here
</body>
</html>
</code></pre>
<p><strong>constants.php</strong></p>
<pre><code><?php
define('CONST_TEXT', 'Hello World');
?>
</code></pre>
<p><strong>lib.js</strong></p>
<pre><code>function show_const_1(string)
{
alert(string);
}
function show_const_2()
{
alert('<?php echo(CONST_TEXT); ?>');
}
</code></pre>
<p>The result is that when the page loads I get two message boxes. The first says "Hello World" and the second says "<?php echo(CONST_TEXT); ?>". The first javascript method does what I want it to, but I will be using the function in many places across the site and so ideally I don't want to have to pass the constant as a parameter every time.</p>
<p>Is there a good way to rearrange the code to make the second javascript method work?</p>
| php javascript | [2, 3] |
2,999,072 | 2,999,073 | How to save innerhtml to text file, html file on some folder using java script? | <p>I am using .aspx page, i want to save some data on button click, which i extracted using function</p>
<pre><code> function save() {
var t1 = document.getElementById('test').innerHTML;
alert(t1);
}
</code></pre>
<p>to .text file, .html file some folder on desktop.
the folder should appear, where i can save the file with any extension of .text or .html.</p>
| javascript asp.net | [3, 9] |
4,113,044 | 4,113,045 | How to format 2010-11-24 date in C#? | <p>I am using </p>
<pre><code>((DateTime)newsItem.Date).ToString(@"yyyy MM dd")
</code></pre>
<p>which gives me 2010 11 24 but not 2010-11-24.</p>
<p>I want dashes in between the numbers of date.</p>
| c# asp.net | [0, 9] |
2,052,826 | 2,052,827 | no action is firing on Next button in android web browser | <p>I am using type="tel" attribute for numbers dialpad in adroid browser. My Problem is the "Next" button is not working in the keypad.</p>
<p>How to workout on the "Next" button. Please suggest me. Is it possible with javascript? Thanks</p>
| javascript android | [3, 4] |
3,543,514 | 3,543,515 | Applying jQuery function to dynamically added item | <p>My question is basically <a href="http://stackoverflow.com/questions/1240184/applying-jquery-function-to-dynamically-added-item">the same as this one</a> (which never got properly answered).</p>
<p>How can I use a jQuery function on an item I add dynamically?</p>
<p>Specifically, I want to use the <a href="http://tablesorter.com/docs/" rel="nofollow">jquery tablesorter plugin</a> on a table that I load on the page dynamically, after the user does something. </p>
<p>Here's my code:</p>
<pre><code> results_html += "<table id='results' class='tablesorter><thead>";
[My table contents go here, ommitted for this question]
results_html += "</tbody></table>";
$('#book_results').html(results_html);
$("#results").tablesorter();
</code></pre>
<p>There are no JS errors on the page, but the tablesorter functions aren't being applied. What can I do?</p>
<p>Thanks!</p>
| javascript jquery | [3, 5] |
796,262 | 796,263 | JQuery children element set event | <p>Im trying to create an event for each (a) element in a list (ul). But im doing something wrong</p>
<pre><code>function EnableAjaxOnMenu(ElementID, TagName) {
var elm = jQuery("#" + ElementID).children(TagName).click(function () {
GetPageByUrl(jQuery(this).attr("href"));
//ChangeSelectedMenuItem(this);
return false;
});
}
</code></pre>
<p>Does anyone know what im doing wrong here, as far as I can see it won't even create an event?</p>
| javascript jquery | [3, 5] |
4,797,477 | 4,797,478 | Run code over and over | <p>In my application I am showing a clock in a <code>TextView</code>, and I want to update it in real time. I tried to run it like this:</p>
<pre><code>public void clock() {
while(clock_on == true) {
executeClock();
}
}
public void executeClock() {
TextView timeTv = (TextView) findViewById(R.id.time);
long currentTime=System.currentTimeMillis();
Calendar cal=Calendar.getInstance();
cal.setTimeInMillis(currentTime);
String showTime=String.format("%1$tI:%1$tM %1$Tp",cal);
timeTv.setText(showTime);
}
</code></pre>
<p>But it doesn't work.</p>
| java android | [1, 4] |
5,484,788 | 5,484,789 | Using JQuery, how do I turn a .click() event into something that happens with no user action? | <p>I'm currently working with the following code:</p>
<pre><code>$("li.className").click(function () {
$(this).fadeTo(1000, 0);
});
</code></pre>
<p>which turns the <code><li></code> opacity down on click. How do I make this happen with no user interaction at all, such as when the page loads or after a certain duration of time?</p>
| javascript jquery | [3, 5] |
4,522,617 | 4,522,618 | Get the ID for an element when in status MouseOver | <p>I have an element with event <code>onMouseOver</code>. I need to get the ID for the element when the event is fired.</p>
<p>Here my HTML structure:</p>
<pre><code>'<div id="see_all" class="btn_backtostart_catview">' +
'<div class="btn_backtostart_slice_l_catview"></div>' +
'<div class="btn_backtostart_slice_c_catview" onclick="Main.magicCtrVerTodas()" onMouseOver="Main.magicCtrVerTodasMouseOver(this)">Ver todas</div>' +
'<div class="btn_backtostart_slice_r_catview"></div>' +
'</div>' +
</code></pre>
<p>The function</p>
<pre><code>magicCtrVerTodasMouseOver: function(obj){
console.log('ID for elm in OVER: ' + obj);
},
</code></pre>
<p>As result I get <code>HTMLDivElement</code> no the name of the ID.</p>
<p>Any idea what I'm doing wrong? I also can use jQuery.</p>
| javascript jquery | [3, 5] |
3,094,951 | 3,094,952 | Creating asp.net website dynamically on the fly | <p>I have an ASP.NET website
I need some tool that generate copy of this site on server with a small changes in web.config file.</p>
<p>For example: user fill in small form and it creates for him a new copy of this site with db on the server.</p>
| c# asp.net | [0, 9] |
4,955,663 | 4,955,664 | Why in ViewHolder pattern should the ViewHolder class be static? | <p>I am just trying to have a better understanding of the following pattern I regularly use to optimize <code>ListView</code></p>
<p>My readings only pointed me to the fact that a static inner class is treated as top level class. What is the benefit of such a thing compared to a member class (non static)?</p>
<pre><code>@Override
public View getView(int position, View convertView, ViewGroup parent) {
Comment comment = getItem(position);
ViewHolder holder;
if (convertView == null){
holder = new ViewHolder();
convertView = LayoutInflater.from(context).inflate(R.layout.mylayout, null);
holder.nickname = (TextView) ((ViewGroup) convertView).findViewById(R.id.nickname);
convertView.setTag(holder);
}else{
holder = (ViewHolder) convertView.getTag();
}
holder.nickname.setText(comment.getMember_nickname());
CharSequence
return convertView;
}
public static class ViewHolder{
TextView nickname;
}
</code></pre>
| java android | [1, 4] |
4,035,948 | 4,035,949 | Call URL before closing of Browser Window | <p>I want to call an URL in the unload-Function of a Webpage but in the unload-function the get request is not working. My code looks like this:</p>
<pre><code>$(window).unload( function () {
jQuery.get("someurl")
} );
</code></pre>
<p>We want to be informed about the closing of the window for some logging of user actions. Is it possible somehow?</p>
<p>If i add an alert() after the jQuery.get(), the Get-Request has enough Time, to do this, but that's not what we prefer. </p>
| javascript jquery | [3, 5] |
3,532,868 | 3,532,869 | Calling javasript function inside a jquery generate <a href> | <p>I have a problem with this piece of code:</p>
<pre><code>$(document).ready(function() {
$('.notActiveId').change(function() {
if ($(this).attr('value').length === 0 ) {
$("#notActiveButton").html('');
} else {
$("#notActiveButton").html('<a href="javascript:void(0)" onClick="setStatus(' + $(this).attr('value') + ', activate)" class="operationUnlock" >Activate</a>');
}
});
});
</code></pre>
<p>I'm calling with <code>$(this).attr('value')</code> a value from a select list named <code>notActiveId</code>. But the problem is how to write <code>$(this).attr('value')</code> in <code>setStatus()</code> function, because value of my select is in this form: <code>RZT_83848Rer</code> (so it consists of characters, underline and numbers).</p>
<p>If I try to write it as above, then JS prints error. </p>
| javascript jquery | [3, 5] |
2,792,277 | 2,792,278 | How do I get a Font from a string? | <p>In the the <code>System.Web.UI.DataVisualization.Charting.Chart</code> control a font can be set by referring Font by it's family name. How do I do something similar in code?</p>
<pre><code> <asp:Chart runat="server">
<legends>
<asp:Legend Font="Microsoft Sans Serif, 8.25pt, style=Bold"/>
</legends>
</asp:Chart>
</code></pre>
<p>How can I do something similar in the codebehind?</p>
<pre><code>chart.Legends[0].Font = Font.???("Microsoft Sans Serif, 8.25pt, style=Bold")
</code></pre>
| c# asp.net | [0, 9] |
1,091,188 | 1,091,189 | Is Python-based software considered less-professional than C++/compiled software? | <p>I'm working on a plugin for some software that I'm planning on selling someday. The software I'm making it for has both a C++ SDK and a Python SDK.</p>
<p>The C++ SDK documentation appears incomplete in certain areas and isn't documented that well.</p>
<p>The Python SDK docs appear more complete and in general are much easier to work with.</p>
<p>So I'm trying to decide if I want to go through the potential trouble of building a C++ plugin instead of a Python plugin to sell. About the only thing that makes me want to do a C++ plugin is that in my mind, a "C++ plugin" might be an easier sell than a "Python plugin". A lot of programmers out there don't even considered writing Python to be real "programming".</p>
<p>Do you think that potential customers might say "Why would I pay money for a measly little Python script?"? As opposed to "Oh it was written in C++ so the guy must be a decent programmer"?</p>
<p>Writing the Python plugin would be faster. Both plugins would look and behave exactly the same. The C++ plugin might be faster in certain spots, but for the type of plugin this is, that's not a huge deal.</p>
<p>So my question is, would a Python plugin be considered not as professional/sellable as a C++ plugin, even if it looks and acts EXACTLY the same as a C++ plugin?</p>
| c++ python | [6, 7] |
3,189,871 | 3,189,872 | What is the best control to use to display items from a database? | <p>I'm writing a website that will sell items from one of my classes. It will be linked to a SQL Server db where I will pull pricing, item name, quantity and description. If I wanted to display the items from the database in a thinkgeek fashion, what would be the best control to use so I can custimize the display to actually look ok?</p>
| c# asp.net | [0, 9] |
455,931 | 455,932 | Handling 404's better in .NET | <p>As some of you guys are running some pretty big sites I wanted to get your opinion on handling 404’s. I have tried loads of different setups with .Net but can never actually get it to do the right thing. I always seem to get some kind of redirect or false header returned, never a 404. This is a real pain because search engines never get the correct feedback and are still hitting these pages despite them no longer existing. In turn this means I get errors reported for pages I know no longer exist. I’m also pretty confused over the way some requests are handled by .Net and some are handled by IIS. </p>
<p>My current setup is as follows: IIS7, ASP.Net 3.5 App. I have the custom error pages section of web.config setup to handle 404’s using the new redirectMode="ResponseRewrite" property, forwarding to a html error page. IIS is configured to handle 404’s and forward them to the same html page. Elmah is configured to report any such issues via email too. </p>
<p>Now when I try the following address <a href="http://www.severnside.com/document.aspx" rel="nofollow">http://www.severnside.com/document.aspx</a> (a page that doesn’t exist), .net handles the error and shows a 200 response. Obviously this should be a 404. When I try <a href="http://www.severnside.com/document" rel="nofollow">http://www.severnside.com/document</a> I get a correct 404 but the error was handled by IIS. Is it possible to have .Net handle this error too so Elmah can pick up the error?</p>
<p>It would be great if I could get an insight into the setups used by others to handle this sort of scenario correctly. </p>
<p>Thanks</p>
| c# asp.net | [0, 9] |
2,499,512 | 2,499,513 | jquery : time operations | <p>I have 2 time inputs as 7:07:02 and 7:00</p>
<p>How can I find the difference between these two,I prefer to use jquery, Is there any jquery plugins available for this ? ( please let me know if you know other solutions for this )</p>
<p>Thanks a lot </p>
| javascript jquery | [3, 5] |
4,425,520 | 4,425,521 | Detect if Android app has been installed on the device using a mobile web page - PHP and JS | <p>I have a requirement like this and something similar to that has been implemented by Android Pit app-store.</p>
<p>I need to check if the Android app has been installed on the device using a mobile web page (PHP and JS), and if installed launch the app immediately.</p>
<p>These are the intermediate pages used by Android pit. </p>
<p><strong>When app has not been installed</strong> - <a href="http://www.androidpit.com/en/android/market/app-center-mobile?pname=com.ocito.laredoute" rel="nofollow">http://www.androidpit.com/en/android/market/app-center-mobile?pname=com.ocito.laredoute</a></p>
<p><strong>When app has been already installed</strong> - <a href="http://www.androidpit.com/en/qrdl/com.mobage.ww.a692.Bahamut_Android" rel="nofollow">http://www.androidpit.com/en/qrdl/com.mobage.ww.a692.Bahamut_Android</a></p>
<p>Does anyone know how to implement this. Please help</p>
| php javascript android jquery | [2, 3, 4, 5] |
4,308,039 | 4,308,040 | Shoutbox Multiple Windows/tabs not displaying all shouts | <p>I have a problem with my Shoutbox, when you have say 2 tabs open on your Web Browser and you are sending / receiving messages..
This is an issue in all Browsers.</p>
<p>Problem: It shares the messages between both tabs so you see some shouts in one tab and some in the other.. Never all of them in either of both tabs..</p>
<p>The Shoutbox is coded in PHP MySQL and Jquery.. Uses a refresh.txt file to check for new shouts then get new the if any shouts.</p>
<p>I would like to either have it so the 2nd tab you open displays a message saying you already have the shoutbox open in another window shouts will be displayed in the 1st window open.... Or maybe just display everything in both.. 1st option would be the best!</p>
<p>How would I tackle this?</p>
<p>I don't have any source code to show you as I don't know where to start with this.
Any help would be a amazing its something that I have been trying to work out for a while.</p>
| php jquery | [2, 5] |
2,986,661 | 2,986,662 | Image as TabIndicator | <p>using a image as tabIndicator it always appears at the center i want it to take up the whole space available in that tab can I make it something like fill parent ???</p>
| java android | [1, 4] |
5,378,947 | 5,378,948 | Detect the row and get the td value using javascript. (Dynamic table) | <p>I totally want to avoid using inline javascript! But i have a table which is being dynamically generated from a mysql database using php. I want that if a user clicks on any of the rows it creates a modal with the information about the clicked row. Now i am able to initialise the modal, however the first column of the table holds an index value which can be used to retrieve the information about that row. My question is how can i retrieve that index value using javascript. To initiate the modal i am using the following code:</p>
<pre><code>$('#production tr').click(function(){
$('#review_order').modal('show');
}) ;
</code></pre>
<p>Table markup:</p>
<pre><code><table id="order_basket" class="table table-bordered">
<thead>
<th>Voucher ID</th>
<th>Title</th>
<th>Created By</th>
</thead>
<tbody>
<tr><td>1<td>
<td>Something here</td>
<td>Some Person</td></tr>
</tbody>
<table>
</code></pre>
| javascript jquery | [3, 5] |
2,457,685 | 2,457,686 | Jquery open url in new tab | <p>I'm making a personal script to search google in another language and I've got a url that I've passed from a php script. I want to use jquery to open that url in a new tab (only in google chrome).</p>
<p>I tried:</p>
<pre><code> window.open("http://localhost/123", '_blank');
</code></pre>
<p>It unfortunately Opens in a new window in google chrome, which is unfortunately the only browser that's light enough to use on my computer. I don't seem to have any success googling it so any advice would be much appreciated.</p>
<p>Thanks
Sam</p>
<p>EDITED:
Sorry if your not meant to edit like this but my new question is (I should probably ask it somewhere else):</p>
<p>How to edit google chromes config to open a new tab instead of a window when window.open("href", "_blank") is called?</p>
| javascript jquery | [3, 5] |
5,783,752 | 5,783,753 | javascript read php function | <p>How to make this working. javascript should read the php value by return and disply it.</p>
<p>thank you,</p>
<pre><code><html>
<body>
<script type="text/javascript">
var _date = "<?=
$xml = new DOMDocument();
$xml->load( 'http://web.com/public.xml' );
$elements = $xml->getElementsByTagName( "data" );
$dates = $xml->getElementsByTagName( "i_data" );
$_date = $dates->item(0)->nodeValue;
return $_date;
?>";
alert(_date)
</script>
</body>
</html>
</code></pre>
| php javascript | [2, 3] |
2,759,425 | 2,759,426 | Can I assign the value like this? | <pre><code> Exactly I ned to do something like this is this possible?
<%
var Controller = null;
if (Model.ID== "ABC")
{
Controller = "Name";
}
else
{
Controller = "Detail";
}
%>
<% using (Html.BeginForm("edit", Controller, FormMethod.Post, new { @id="exc-" + Model.SID}))
{%>
<%= Html.Summary(true)%>
</code></pre>
<p>is this possible?
if i do I am getting exception...</p>
<p>ERROR: Cannot assign to an implicitly-typed local variable</p>
| c# asp.net | [0, 9] |
2,546,233 | 2,546,234 | C# ASP.NET and javascript onclientclick function not found | <p>I have a link button and javascript setup like so</p>
<pre><code><asp:LinkButton ID="lnkbutton"
CssClass="Button"
OnClientClick="javascript:PlayVideo();"
runat="server">Play Video</asp:LinkButton>
<script type="text/javascript">
funtion PlayVideo(){
$('#ctl00_EFlyerCPH_EFlyerPart_ytapiplayer2').show();
$('#ctl00_EFlyerCPH_EFlyerPart_imageID').hide();
}
</script>
</code></pre>
<p>but when I click on my button I get an error saying</p>
<p>PlayVideo is not defined...what am I doing wrong?</p>
| c# javascript asp.net | [0, 3, 9] |
1,661,475 | 1,661,476 | javascript executed from server side in java? | <p>I was looking for real information about this, I am working some system on Java EE, I worked all my life on web, now I am getting into systems, my boss told me he makes javascripts works from "server side" to manage polls and stuffs, still I didnt think was right and I told him I thought javascript was only executed client-side, still seems like its right, I found both information about saying it is possible and it is not, anyone has some valid answer about this? and if yes, how is this possible?</p>
<p>Thanks!</p>
| java javascript | [1, 3] |
4,186,567 | 4,186,568 | attempt to change type="button" to hyperlink | <p>the following code works for my button, which displays an image when clicked:</p>
<pre><code><input type="button" onclick='javascript:showImg("<%# FieldValue %>")' />
</code></pre>
<p>I want to change this to a hyperlink 'display' but the following code doesnt work.</p>
<pre><code><asp:HyperLink ID="displayImg" runat="server" NavigateUrl='javascript:showImg("<%# FieldValue %>")'>Preview</asp:HyperLink>
</code></pre>
<p>it throws the error:
JavaScript runtime error: Invalid argument.</p>
<p>any help?</p>
| javascript jquery asp.net | [3, 5, 9] |
3,374,658 | 3,374,659 | Javascript/Jquery simple user experience functions | <p>I am starting to write some javascript for my site to create a better user experience but i am getting a little confused on what exactly is happening, and maybe it is clearly evident to someone else what I am doing wrong or missing. I have two javascript functions that work perfect after the first time of use and if you use it slowly (sometimes it skips the next item and selects nothing if you press two keys too fast). I feel that I am missing some sort of $(document).ready(function() {}); implementation to make sure that each process has finished before it moves on. I have two textboxes that the user puts in two numbers then it moves on to the next tab element (the next textbox). The textboxes are also in an asp.net update panel if that has any impact. </p>
<pre><code> function selectall(item) {
$(item).focus().select();
};
function selectNext(textBox) {
if ($(textBox).val().length == 2) {
$(textBox).next().focus().select();
}
};
<asp:TextBox ID="Text1" runat="server" Width="30px" AutoPostBack="True" onkeyup="selectNext(this);" onclick="selectall(this);"
Height="20px"></asp:TextBox>:
<asp:TextBox ID="Text2" runat="server" Width="30px" AutoPostBack="True" onkeyup="selectNext(this);" onclick="selectall(this);"
Height="20px"></asp:TextBox>
<asp:DropDownList ID="Text2" runat="server"
</code></pre>
| javascript jquery asp.net | [3, 5, 9] |
314,009 | 314,010 | How to call javascript function of a web browser control of C#? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/1437251/calling-a-javascript-function-in-the-c-sharp-webbrowser-control">Calling a Javascript function in the C# webBrowser control</a> </p>
</blockquote>
<p>I want to call a JavaScript function through C#, using a WinForm's WebBrowser control. I've attempted to search however could not find anything which answers my question, only solutions which involved ASP.NET.</p>
<p>Thank you in advance.</p>
| c# javascript | [0, 3] |
5,205,881 | 5,205,882 | What is the proper way to include code from an external file in ASP.NET? | <p>I've been using PHP for years to build websites. Often I will use an include to bring in, say a navigation menu:</p>
<pre><code><?php include 'includes/nav.php'; ?>
</code></pre>
<p>I am much more of a novice when it comes to ASP.NET (C#). I am wondering what is the correct (and most efficient) way of doing the equivalent of a PHP include, in ASP.NET?</p>
| c# asp.net | [0, 9] |
4,432,699 | 4,432,700 | Are Java and C# as "customizable" as Python? | <p>At the time of asking, I am using Python most of the time, and I have not used Java or C# much, although I have a (basic) idea of how they work. I am thinking to possibly start to use Java or C# more, but it seems from the little I know about them that they aren't as "customizable" as Python, but I may be wrong.</p>
<p>By "customizable" (there is probably better phrases to use to describe what I mean, but I can't think of anything better :-) ), I mean things in Python like:</p>
<ul>
<li>Dynamic object attributes definition (using <code>__getattr__</code>, etc.)</li>
<li>Import hooks (so code modules can be imported from any type of media, not just files which match certain sets of criteria)(see <a href="http://www.python.org/dev/peps/pep-0302/" rel="nofollow">PEP 302 -- New Import Hooks</a>, and <a href="http://stackoverflow.com/questions/960832/pep-302-example-new-import-hooks">this Stackoverflow question</a>)</li>
<li>Operator overloading (I think that C# and Java both have this, but it is another example)</li>
<li>Subclassing of built in types</li>
<li>Mappings and sequence simulation using <code>__getitem__</code>, <code>__setitem__</code>, and <code>__delitem__</code>, etc., "magic" methods</li>
</ul>
<p>So, I am wondering if there are (at least some of) these "customization" kinds of things in Java and C#, and if not, are there functionally similar or equivalent ways to do these kinds of things?</p>
| c# java python | [0, 1, 7] |
3,460,095 | 3,460,096 | Print PDF file to default printer on client side using Jquery or javascript | <p>I am creating an PDF file to print badges for Cloud Based application. Until now it's fine.</p>
<p>Now I need to print this PDF file on client side default printer. As they are using DYMO printer. My code is not supporting the dymo printer.</p>
<p>So is there any code, using javascript or jQuery to do this? .</p>
<p>Can anyone please suggest me with examples?</p>
| javascript jquery | [3, 5] |
904,642 | 904,643 | handling views by ID | <pre><code>for(id=1;id<=33;id++) {
i = new TextView(this);
i.setClickable(true);
i.setOnClickListener(this);
i.setId(id);
i.setBackgroundResource(R.drawable.yes);
AbsoluteLayout.LayoutParams lp2= new AbsoluteLayout.LayoutParams(abc, abc,abc ,abc);
al.addView(i, lp2);
}
i = (TextView) findViewById(4);
i.setBackgroundResource(R.drawable.no);
</code></pre>
<p>This peice of code never works for me.
The
<code>i= (TextView) findViewById(4);</code>
part works.
But then when I try to change the image, the app doesnt run.
Help please</p>
| java android | [1, 4] |
2,277,802 | 2,277,803 | Incrementing one of the classnames of an element with jQuery | <p>I have a number of div elements with three class names each. There is an image inside each one. They're consecutively numbered (<code>i1, i2, i3</code>...) through class names. The class names are something like <code>"img small i14"</code>. I need to increment the numbers of these class names for each element.</p>
<p>So: for each of these div elements I need to change the class starting with <strong>i</strong> - add 1 or subtract 1 from it. Hopefully there is an efficient way of doing this.</p>
<p>The goal of the whole thing is to create a rotating image gallery. I'd much appreciate help, either through helping with the code or offering a better way of approaching the problem. Thank you.</p>
| javascript jquery | [3, 5] |
3,734,087 | 3,734,088 | is it possiable to call our server side(like gridview events) event from javascript | <pre><code><img src='<%# "ThumbNailImage.ashx?ImID="+ Eval("ImageID") %>' id="ImgShow" runat="server"
align="top" style="border: solid 1px Gray;" height="150"
width="170" onclick="javascript:myFunction();" >
protected void gvImages_SelectedIndexChanged(object sender, EventArgs e)
{
string s = gvImages.SelectedValue.ToString();
SqlConnection connection = new SqlConnection(ConfigurationManager.ConnectionStrings["connectionString"].ConnectionString);
SqlCommand command = new SqlCommand("SELECT imagename,ImageID from [Image2] where ImageID='"+s+"' ", connection);
SqlDataAdapter ada = new SqlDataAdapter(command);
ada.Fill(dt);
this.dvCustomerDetail.Visible = true;
dvCustomerDetail.DataSource = dt;
dvCustomerDetail.DataBind();
this.updPnlCustomerDetail.Update();
this.mdlPopup.Show();
}
<script type ="text/javascript" >
function myFunction()
{
debugger ;
document.getElementById('<%=gvImages.ClientID%>').SelectedIndexChanged();
//__doPostBack('Button1','OnClick');
}
</script>
</code></pre>
<p>now in control i a calling my javscript function from there i need to call my gvImages_selected index change event.</p>
<p>which is not happening is there any issue in my javscript
any help would be great thank you</p>
| asp.net javascript | [9, 3] |
2,397,700 | 2,397,701 | how to make any text file on the client computer? | <p>how to make any text file on the client computer ?</p>
<p>can i get any C# asp.net sample code ?</p>
<p>thanks in advance</p>
| c# asp.net | [0, 9] |
3,850,973 | 3,850,974 | Jquery to append a div and to remove a div | <p>Here is my problem, </p>
<p>I have a select box where i need to validate if the val() becomes 0, then append a text insed a span with class error stating that 'Please select a value'. Else need to remove that div. These happens when i click the submit button. Here is my code, </p>
<pre><code>if ($('.combo option:selected[value==0]')) {
var error_span = $("div.info-cont ul.map-list li span.right")
.append("<br>Please select an appropriate value")
.addClass('error');
} else {
}
</code></pre>
<p>Now the problem is, if a value is selected in the selectbox, my appended span should get removed. Any help. Thanks in advance...</p>
| javascript jquery | [3, 5] |
2,237,721 | 2,237,722 | using master page | <p>I have master page in asp.net.i want to display user in master page but in my knowledge master page is loading once at a time.How it possible when Session["User"] only get when login attempt.But master page is already loaded. </p>
| c# asp.net | [0, 9] |
2,810,397 | 2,810,398 | Need a javascript equivalent for java URL and URL connection class | <p>If we need to read the content of the webpage, using a java URL and URL connection class we can read the contents of the webpage by providing url. This can be done at the server side. I want to do the same at client side using javascript or jquery,..</p>
<pre><code>import java.net.*;
import java.io.*;
import java.util.Date;
class UCDemo
{
public static void main(String args[]) throws Exception {
int c;
URL hp = new URL("http://www.imdb.com/name/nm0761052/");
URLConnection hpCon = hp.openConnection();
// my own processing for reading the text
}
}
</code></pre>
<p>Can some one tell me javascript equivalent for the URL class,..</p>
<p>I tried the ajax calls to the urls, but it needs a proxy to read the contents of the url is there any other way,..</p>
| javascript jquery | [3, 5] |
3,226,428 | 3,226,429 | jQuery response saved as PHP variable | <p>I have a php page which generates links based on results from an "USERS" table, "NAME" row.
I'm using a jQuery tooltip so that a div appears when those links are hovered.
When the hover happens, I am able to get the link's text using <code>$(this).text()</code>, however, I don't seem to be able to parse the result so that it can link with PHP, as I want to display in the 'hidden' div certain info about the HOVERED user (e.g. his e-mail address).</p>
<p>Something like: When "Mike" is hovered, show Mike's e-mail address in the hover div.. and so on.</p>
<p>I've tried with cookies (when mouseover happens, I used something like:</p>
<pre><code>$.post("gophp.php", {"name":$(this).text()}, function(results) {
nada
});
</code></pre>
<p>, with gophp.php setting a cookie with data from <code>$_POST['name']</code>) - the div inside the other page is then able to show the cookie, BUT if I hover some other link, the data which is displayed remains the same because the page has to be reloaded.</p>
<p>Please help me, I'm going nuts.</p>
| php javascript jquery | [2, 3, 5] |
2,464,745 | 2,464,746 | message box show in asp.net problem | <p>I have an email compose page. When the user clicks on the "Send" button, if there is any error, the page is redirected to an error page. If the email is sent out successfully, it displays a javascript alert message. The way it's done now is using a label control, LblMessage.Text="alert('Your email has been sent successfully!');"; All of this works fine. Now I want to redirect the user to the home page. So if the email is sent out successfully, I want to display the javascript alert message, then do a redirect to home page. But if I add the response.redirect after the alert code, the alert never shows up. I tried changing the endReponse to true and false, it did not work. Any suggestions? </p>
| c# asp.net | [0, 9] |
792,386 | 792,387 | How to retrieve the image in javascript | <p>I have one url , which returns an image tag.Now i need to call this url using javascript , and embed this return under a div tag.
I was trying $.get(), but "data" is returning some text.How to retrieve the image in javascript.
note: pls provide sln with javascript/jquery.</p>
<p>Edit: data returns GIF40 or soem this kind of arbitary value.. </p>
| javascript jquery | [3, 5] |
5,510,920 | 5,510,921 | Jquery show div after form post | <p>I have a link on a page that toggles the visibility of a div. The div contains filter options for a form, which is posted. I would like to retain the filter visibility after a post; so if its open before post, it remains open after post.</p>
<p>Here is my script code so far:</p>
<pre><code>$(document).ready(function() {
// choose text for the show/hide link
var showText="Show Filter Options";
var hideText="Hide Filter Options";
// create the toggle link
$("#filter-params").before("<p><a href='#' id='toggle-link'>"+showText+"</a>");
// hide the content
$('#filter-params').hide();
// capture clicks on the newly created link
$('a#toggle-link').click(function() {
// change the link text
if ($('a#toggle-link').text()==showText) {
$('a#toggle-link').text(hideText);
}
else {
$('a#toggle-link').text(showText);
}
// toggle the display
$('#filter-params').toggle('slow');
// return false so any link destination is not followed
return false;
});
});
</code></pre>
| php javascript jquery | [2, 3, 5] |
3,391,709 | 3,391,710 | .jar won't run when launched from C# program | <p>I'm using C# to develop some programs for Kinect. C# doesn't have anything as good as Java's Robot for simulating Keystrokes or Mouse movements, so I'm using Java for that. At the moment, I'm creating .jar files and trying to run them from the C# application (although I'm suspicious that there's a better way to do it). The way I do this is by putting this line in my C# code:</p>
<pre><code>System.Diagnostics.Process.Start("CMD.exe", java -jar C:\\Users\\Me\\RobotProgram.jar");
</code></pre>
<p>This works fine in a small, basic C# application:</p>
<pre><code>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
System.Diagnostics.Process.Start("CMD.exe", "/c java -jar C:\\Users\\Me\\RobotProgram.jar");
}
}
}
</code></pre>
<p>But when it's in a more complex program that uses the Kinect camera, it won't work. The console flashes up saying "Error occurred during initialization of VM java/lang/NoClassDefFoundError: java/lang/Object".</p>
| c# java | [0, 1] |
1,982,697 | 1,982,698 | Passing multiple Eval parameters to a JavaScript function from ASPX | <p>I already know how it works with a single parameter </p>
<pre><code>OnClientClick='<%# String.Format("confirm_ticket({0});return false;",DataBinder.Eval(Container,"DataItem.idAgir"))%> '
</code></pre>
<p>but is it possible to pass 2 parameters?</p>
<p>thanks in advance</p>
| c# javascript asp.net | [0, 3, 9] |
1,581,323 | 1,581,324 | jquery basic of dollar sign - named vs anonymous | <p>I have a couple of interview questions</p>
<ol>
<li><p>What is the different between <code>$(function(){});</code> and <code>$(document).ready(function(){});</code></p></li>
<li><p>What is the difference between <code>$(function(){});</code> and <code>var func=function(){};</code> How are each of them called?</p></li>
<li><p>Given the following script</p>
<pre><code><script language="javascript">
$(function()
{
var id=$("cssID");
//do something with your id
//your event to be added here
});
</script>
</code></pre>
<p>How can you add an event, say, <code>onmouseout</code> that will work on the <code>id</code>?</p></li>
</ol>
<p>Here are my answers:</p>
<ol>
<li><p>They are the same, both are meant to run when the page document finishes loading</p></li>
<li><p>The first one is called automatically while the second one will be called via named reference; that is <code>func.called()</code>, for example.</p></li>
<li><p>Something like this: </p>
<pre><code>$(function()
{
var id=$("cssID");
//do something with your id
//Oki
id.onmouseout
(function(){
//do something
});
});
</code></pre></li>
</ol>
<p>However my professor says I was wrong in all three. she explained things I am unsure and didn't dare to ask, she was mad about me. What are the correct answers and why are mine wrong?</p>
| javascript jquery | [3, 5] |
263,642 | 263,643 | Method in WebUserControl is called many times | <p>I have a method in WebUserControl which is called twice in my code once from the Page_load event of WebUsercontrol (Inside !isPostback) and second in the page_Load event of Page where this WebUserControl is used (again in !ispostback).</p>
<p>But I kept a breakpoint on this method and observe that this is called around 8 times.</p>
<p>This method is called even when I log-In into the application.</p>
<p>I understand that if you AutoEventWireup = "true" then the page_Load method is called twice.</p>
<p>But why this method is called 8 times?</p>
<p>Why this method is called on Login Page?</p>
<p>Please suggest</p>
<p>Thanks</p>
| c# asp.net | [0, 9] |
1,571,909 | 1,571,910 | jquery preloading multiple images | <p>I managed to do preloding of 1 image like this:</p>
<pre><code>var img = new Image();
$(img).load(function () {
//do something after
}).attr('src', response.image1);
</code></pre>
<p>How can I make the same for multiple pictures. Let's assume that my response is a json object which has several image sources.
Thanks!</p>
| javascript jquery | [3, 5] |
2,526,828 | 2,526,829 | How to respond to mouse button clicks in Javascript? | <p>I want to be able to write code to respond (seperately) to the following events:</p>
<ol>
<li>Right hand click</li>
<li>Left hand click</li>
<li>Middle button click (optional - nice to have but I can live without this).</li>
</ol>
<p>Is there an inbuilt way in Javascript that I can respond to these events, or do I need to use a library (preferably jQuery) ?</p>
| javascript jquery | [3, 5] |
2,411,654 | 2,411,655 | Is it impossible to make an Android game stutter-free? I am going crazy here | <p>I have been working on an Android game for the past 6 months or so, and have posted on here several times about various lag issues that I cannot get rid of.</p>
<p>I ended up grabbing the LunarLander example and stripping it down to its very core components to see if I could make anything at all that doesn't lag. All it really does is change the amount the canvas is translated each frame, and then draw a background onto the canvas. EVEN THIS, about as simple as you can get for a surfaceView application - stutters...</p>
<p>My game is a scrolling game where you continuously move up the screen (think of a flying game), but the way I am currently doing the background results in constant stuttering every second or so for about 50-100ms. This isn't game breaking, but it is very distracting and makes the game seem as if it was programmed by a complete moron (though I am starting to suspect this might be the case). </p>
<p>No, it is not the garbage collector, there are no new objects being created at all during the game's run loop, and the GC barely ever runs while my game is running.</p>
<p>I am practically tearing my hair out with frustration. I have spent over 40 hours just trying to get rid of the lag on this simple application example over the past week alone and it is driving me crazy. How can an application as simple as the one I have linked possibly have lag issues? You wouldn't think a scrolling background could get much simpler than that...</p>
<p>NOTE: This demonstration constantly gets about 60fps on my phone (A Motorola Milestone). Uncomment the FPS code in the example to see the FPS.</p>
<p>TL;DR: Extraordinarily simple program that is just a scrolling background shows stuttering. Please have a look...</p>
<p>Link to download simple stuttering example based off the LunarLander example:
<a href="http://dl.dropbox.com/u/4972001/LunarLander.rar" rel="nofollow">http://dl.dropbox.com/u/4972001/LunarLander.rar</a></p>
| java android | [1, 4] |
103,025 | 103,026 | Set up Notifications in Android application? | <p>I have app for job search, it works over httppost to activate PHP function and get filtered(depends what kind of search user choose)data(JSon format) from mysql database on server. <br/>
What I want to do now is to put one checkbox for notifications, and if user check it before click on search, to be able to get notifications in Status bar about new jobs he didn't see at the first time, for example ("You have 10 new jobs in your search"). And after he click on notification application will open on the page with the list of jobs he already seen + new jobs, just I want to somehow show user which jobs are new. <br/>
I was thinking that maybe I can wrap the new data in a different color. <br/>
Can anyone give me idea how can I do it? <br/>
And how can I now when database have new data, how to monitor it?</p>
| java android | [1, 4] |
3,456,628 | 3,456,629 | Retrieving month name with the month number | <p>I'm modifying a calendar and there is a case where I'm given a month number and I need to compare it with a month name. </p>
<p>Of course, I could create a switch statement, but I was wondering if I can obtain the month name from the number or vice versa to do the conditional.</p>
<p>Thanks!</p>
| java android | [1, 4] |
1,432,161 | 1,432,162 | jQuery that works in Firefox but not in IE | <p>Ok guys/girls.</p>
<p>Below is some jQuery that runs in Firefox but no IE. I have no idea why it craps out in one and not the other. </p>
<p>Anyone??</p>
<pre><code>function SwapTextAssetforPOS() {
$("*").each(function () {
if ($(this).children().length == 0) {
$(this).text($(this).text().replace('Assets', 'POS'));
$(this).text($(this).text().replace('Asset', 'POS'));
$(this).text($(this).text().replace('assets', 'POS'));
$(this).text($(this).text().replace('asset', 'POS'));
}
});
}
</code></pre>
<p>Sorry folks - the error that I get is:-</p>
<p><strong>SCRIPT65535: Unexpected call to method or property access.
jquery-1.6.min.js, line 16 character 60352</strong></p>
<p><strong>EDIT:------------------------------------------------------------------------------------</strong></p>
<p>Ok so an update - I removed the * selector and IE no longer blows up, my issue now is that I cant figure how to get it to do the replace on the element. I have the following code to ping up all the text elements in the object:</p>
<pre><code>function SwapTextAssetforPOS() {
var containerElementByID = $("#assetDetailContents");
containerElementByID.children().children().each(function () {
var $this = $(this);
alert($this.text());
});
</code></pre>
<p>This chucks me up an alert for every bit of text, however some is contained within a table, some is within a span, and some is just there. I have no control over a majority of this stuff so my new question is how do I get the previous replace to work using this type of selector. -- I can believe how painful this is..</p>
<p>Cheers again</p>
| javascript jquery | [3, 5] |
927,159 | 927,160 | Adding jQuery to a 3rd party page fails | <p>I am trying out a few things, and among those I tried to insert jquery on a site, namely, <a href="http://www.tesco.com/wine" rel="nofollow">http://www.tesco.com/wine</a>. </p>
<p>For some reason, I was not able to able access jQuery even though I was able to successfully append a new script tag to the body element. Also, the page seems to have a <code>window.$</code> function that I tried to delete with <code>delete window.$</code>. This, seems to return false for me. How do you make something undeleteable?</p>
<p>Here is the code I used to append the jQuery script to the document:</p>
<pre><code>var s = document.createElement('script');
s.src = "http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js";
document.body.appendChild(s)
</code></pre>
<p>It is working on other pages.</p>
| javascript jquery | [3, 5] |
3,832,439 | 3,832,440 | jquery image gallery slide animation | <p>I am trying to make a simple image gallery like this. <a href="http://dimsemenov.com/plugins/royal-slider/#image-gallery" rel="nofollow">http://dimsemenov.com/plugins/royal-slider/#image-gallery</a> When I click a thumbnail image, image element will create and loading image will appear a little time and created element will slide in the visible area.At last old image elment will remove.</p>
<pre><code><div id="imageGallery" style="overflow:visible;display:block;">
<div class="preview">
<div id="content" style="width:640px;height:420px;">
<img id="main-Image" alt="" src="../../baContent/image1.jpg" style="display:inline; top:0;left:0;" />
</div>
</div>
<div id="thumbnails">
<a class="thumbnail" href="../../baContent/image1.jpg"><img alt="Image 1" src="../../baContent/image1-thumb.jpg"></a>
<a class="thumbnail" href="../../baContent/image2.jpg"><img alt="Image 2" src="../../baContent/image2-thumb.jpg"></a>
</div>
</code></pre>
<p></p>
<pre><code>$(document).ready(function () {
$(".thumbnail").click(function () {
$("#mainImage").animate({ "left": "-640px" }, "fast");
$('#preview').css('background-image', "url('../../baContent/spinner.gif')");
var img = $("<img style='left:640px;display:none;' />").attr('src', this.href).load(function () {
$('#mainImage').attr('src', img.attr('src'));
$('#preview').css('background-image', 'none');
$(this).parent().prevAll().remove();
$("#mainImage").animate({ "left": "-640px" }, "fast");
});
});
});
</code></pre>
<p>I wrote a few code but had no success. Any ideas or tutorials?</p>
| javascript jquery | [3, 5] |
1,873,864 | 1,873,865 | Selecting all elements | <p>This should be really simple but I'm a javascript/jQuery rookie, so here we go:</p>
<p>With the following code I can select a certain element</p>
<pre><code>var user = $(".ui-selected .user-name").html();
</code></pre>
<p>But if there are multiple elements with the above classes, only the first value gets selected. What I would like to accomplish is a variable with all the elements seperated by a , like: user1,user2,user3 ... etc.
Any help would be greatly appreciated, thanks in advance!</p>
| javascript jquery | [3, 5] |
2,152,225 | 2,152,226 | how does form authentication work in asp.net? | <p>Please any one help me... i am new in asp.net...</p>
| c# asp.net | [0, 9] |
3,856,800 | 3,856,801 | How to add new items in our project dynamically from our program? | <p>Is there is any method to add new items or existing items in our project from our program?</p>
<p>For example:
if i need to add example.aspx page from my program then how to add it?? And it should save in solution explorer.</p>
| c# asp.net | [0, 9] |
147,178 | 147,179 | How to get the highlighted texts? | <p>I am trying to get the selected texts from the user(the highlighted text that user highlights).</p>
<p>I have the following:</p>
<pre><code>function getSelectedTexts(){
var t = '';
if(window.getSelection){
t = window.getSelection();
console.log('1');
}else if(document.getSelection){
t = document.getSelection();
console.log('2');
}else if(document.selection){
console.log('3');
t = document.selection.createRange().text;
}
return t;
}
$('.text_speech').live('click',function(e){
e.preventDefault();
var textTest='';
textTest=getSelectedTexts();
console.log(textTest);
})
</code></pre>
<p>My console returns</p>
<pre><code>1
>Selection <------object
anchorNode: Text
anchorOffset: 2
baseNode: Text
baseOffset: 2
extentNode: Text
extentOffset: 1
focusNode: Text
focusOffset: 1
isCollapsed: false
rangeCount: 1
type: "Range"
__proto__: Selection
</code></pre>
<p>I am not sure how to get the selected texts. Anyone can help me about it? Thanks a lot!</p>
| javascript jquery | [3, 5] |
2,501,049 | 2,501,050 | how to use ISynchronizeInvoke to communicate with a device? | <p>I have a finger print scanner and it's SDK (brand : Suprema BioMini usb device).
they have provided some sample C# codes for <strong>windows form</strong> applications.
To initialize device following code segment is used,</p>
<pre><code>UFScannerManager ScannerManager;
ScannerManager = new UFScannerManager(this);
</code></pre>
<p>Here "this" means the current window form object, the constructor required a "ISynchronizeInvoke sysInvoke" parameter type. So when passing "this" the scanner can be initialized properly in windows form applications. No need to worry about ISynchronizeInvoke interface.</p>
<p>Now i need to implement a web base program using ASP.Net with c# where i need to communicate with the finger print device. So when initializing how can i create the ScannerManager object by passing ISynchronizeInvoke object??</p>
<p>thanks</p>
| c# asp.net | [0, 9] |
1,222,611 | 1,222,612 | fetch values from cross browsers cookie | <p>Can we Fetch Values from Cross Browser Cookie ???
For Example USer Can use mozilla or chrome or any other browser </p>
<p>when we <code>print_r($_COOKIE);</code></p>
<p>All Browsers Cookie Will Print. </p>
| php javascript | [2, 3] |
3,653,676 | 3,653,677 | handling a POST request | <p>I am trying to POST some data but I am not achieving what I need to. </p>
<p>No matter what <code>list-item</code> I click on, it is POSTing the value of the top most <code>list-item</code>. </p>
<p>this is the jquery function: </p>
<pre><code>$(".list-item-wrap a").click(function(){
$.post("display2.php", {
msg_id: $(".list-item-wrap a .list-item").find('input').val()},
function(data) {
$("#list").load("display2.php", {
msg_id: $(".list-item-wrap a .list-item").find('input').val()
});
//window.location.replace("display2.php");
})
})
</code></pre>
<p>This is the actual html/php data: </p>
<pre><code><?php
$query = "SELECT * from workflow WHERE name = '$username' ORDER BY msg_id DESC";
$result = mysql_query($query) or die("ERROR: $query.".mysql_error());
while ($row = mysql_fetch_object($result)) {
echo "<div class=list-item-wrap>";
echo "<a href='#'><div class=list-item><input class=msgid type=hidden value="
.$row->msg_id.">";
echo "<b><h1>".$row->subject."</h1></b>".substr($row->message, 0, 200)
."...<br><b>".$row->sender."</b>";
echo "</div></a></div>";
}
?>
</code></pre>
<p>Where am I going wrong??</p>
| php javascript jquery | [2, 3, 5] |
5,478,961 | 5,478,962 | Remote poll using jQuery/javascript | <p>I want to let my users create their own polls so they could paste my code somewhere on their website and users may rate their own game characters (with 1-5 stars rating).</p>
<p>I want to use jQuery or javascript for this purposes, but I have no idea how to start developing something like that. It should be free from being spoofed in any way, so I'd like to store the poll records in my database table (MySQL).</p>
<p>You probably had some experiences on this case, so I'm waiting for your suggestions.</p>
| javascript jquery | [3, 5] |
1,745,290 | 1,745,291 | JavaScript and JQuery - Encoding HTML | <p>I have a web page that has a textarea defined on it like so:</p>
<pre><code><textarea id="myTextArea" rows="6" cols="75"></textarea>
</code></pre>
<p>There is a chance that a user may enter single and double quotes in this field. For instance, I have been testing with the following string:</p>
<pre><code>Just testin' using single and double "quotes". I'm hoping the end of this task is comin'.
</code></pre>
<p>Additionally, the user may enter HTML code, which I would prefer to prevent. Regardless, I am passing the contents of this textarea onto web service. I must encode the contents of the textarea in JavaScript before I can send it on. Currently, I'm trying the following:</p>
<pre><code>var contents $('<div/>').text($("#myTextArea").val()).html();
alert(contents);
</code></pre>
<p>I was expecting contents to display</p>
<pre><code>Just testin&#39; using single and double &#34;quotes&#34;. I&#39;m hoping the end of this task is comin&#39;.
</code></pre>
<p>Instead, the original string is printed out. Beyond just double-and-single quotes, there are a variety of entities to consider. Because of this, I was assuming there would be a way to encode HTML before passing it on. Can someone please tell me how to do this?</p>
<p>Thank you,</p>
| javascript jquery | [3, 5] |
4,247,486 | 4,247,487 | jQuery Parent Class Attribute | <p>I want to add a slide up affect with jQuery to a DIV when a link inside of the DIV is clicked, but the problem i am running into is the class of the DIV's are defined by a loop. So, i can't define the DIV class in the jQuery line, because each DIV class is different and i cannot determine ahead of time what they are. I am trying to use .parent and .child but I am not sure how to go about this. Is this making any sense?</p>
| javascript jquery | [3, 5] |
716,875 | 716,876 | How to pass data while setting HttpResponse.RedirectLocation with c# in 3.5 framework | <p>I am doing a SEO-friendly redirect, using Visual Studio 2008 (I am stuck on this version) like so:</p>
<pre>
public static class RedirectExtension
{
public static void RedirectPermanent(this HttpResponse response, string pathUrl)
{
response.Clear();
response.Status = "301 Moved Permanently";
response.RedirectLocation = pathUrl;
response.End();
}
}
}</pre>
<p>The redirect happens via selection of an item in a dropdown, which displays flag images (using a popular jquery dropdown extension) and region selected. For some selections, since we don't have subdomains for the region selected, I redirect to the same place. (For reasons unknown, I'm forced to redirect, otherwise the page name displays, which the SEO folks do not want.)</p>
<p>I need to pass the index that was selected somehow, so that I can generate the appropriate first item of the dropdown. I always display the first item. (I don't want to force selection of an item, since that would enter an infinite redirect and select loop.)</p>
<p>I'm extremely limited in terms of what I can do, since everything is running inside of an awful old sitefinity site that I have inherited, which I can not even debug.</p>
| c# asp.net | [0, 9] |
4,478,199 | 4,478,200 | Losing DropDownList value on postback | <p>I have the following drop down list:</p>
<pre><code><asp:DropDownList runat="server" ID="ddlShipping" CssClass="shippingMenu" AutoPostBack="true">
<asp:ListItem Text="3-5 working days (£12.50)" Value="" />
<asp:ListItem Text="3-5 working days - Pre-Midday (£25)" Value="" />
<asp:ListItem Text="3-5 working days - Pre-10.30am (£35)" Value="" />
<asp:ListItem Text="3-5 working days - Pre-9am (£45)" Value="" />
</asp:DropDownList>
</code></pre>
<p>In a blank aspx page. When I run the page, and select an item, it causes a postback, and then always returns the the first value in the list.</p>
<p>Does anyone have any idea whats causing this. It is not databound in any way, in fact here's the code-behind:</p>
<pre><code>public partial class Default4 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
}
</code></pre>
<p>The reason that it's in a blank page was just to isolate the problem from any other code.</p>
| c# asp.net | [0, 9] |
334,007 | 334,008 | Consolidating jQuery functions with multiple named selectors | <p>I'm looking for a techniuqe similar to a switch function in PHP so I can use a single function for multiple named selectors. Additional code would be added based on which selector calls the function.</p>
<p>My example is a 'Save' button along a 'Save And Close' button where the latter has additional code to close an accordion.</p>
<p>If the 'Save' button is clicked it calls this:</p>
<pre><code> $('form[name=experienceForm]').submit(function(eve) {
eve.preventDefault();
tinyMCE.triggerSave();
var FormData = $(this).serialize();
var requestThis = $(this);
var inputCom = $(this).find('input[name=inputCom]').val();
var inputTitle = $(this).find('input[name=inputTitle]').val();
$.ajax({
type : 'POST',
url : '<?php echo site_url('resume/update'); ?>',
data: FormData,
dataType: "html",
context : $(this),
success : function(msg){
requestThis.closest('.item').children('h3').children('a').text(inputCom+' : '+inputTitle);
if(msg != '') {
showNotice(msg);
}
},
error: function(msg){
alert('FAIL '+msg);
}
});
});
</code></pre>
<p>I would like the 'Save and Close' button to do the same as above with this added:</p>
<pre><code> $('input[name=experienceClose]').click(function(eve) {
eve.preventDefault();
tinyMCE.triggerSave();
$(this).parent().parent().parent().parent().parent().parent().parent().parent().parent().accordion({active:"false"});
});
</code></pre>
| javascript jquery | [3, 5] |
5,881,082 | 5,881,083 | jQuery keyup only keys that affects textarea content | <p>How can I detect if the value of a textarea changes using jQuery? I'm currently using keyup() but this triggers every key stroke of course, I dont want my code to run if it's an arrow key that was pressed or any other key that doesn't have an impact on the value of the textarea.</p>
<p>Take a look:</p>
<pre><code>$('textarea').keyup(function() {
if (content was changed)
// Do something
});
</code></pre>
<p>I hope you understand. How can I do this the best way? I don't want to compare the current value to an old value to check for changes, I hope that's not the only way.</p>
| javascript jquery | [3, 5] |
815,118 | 815,119 | how to find the vertical distance from top in px of an element using jQuery | <p>How do I find the vertical distance from the top of the page to where the element exist in the DOM using javascript/jQuery?</p>
<p>I've something like</p>
<pre><code><ul>
<li>one</li>
<li>one</li>
<li>one</li>
<li>one</li>
<li class="test">one</li>
....
....
....
<li>one</li>
</ul>
</code></pre>
<p>For example here, I want to find the vertical distance from top of the page to the <code>li#test</code> element.</p>
<p>I tried <code>.scrollTop()</code> but it always comes as 0!</p>
| javascript jquery | [3, 5] |
5,055,083 | 5,055,084 | How to send data from a C# ASP.NET Web Page to a java webservices | <p>I have created a C# ASP.NET web page(Front End) to collect information from user and I would like to know how to send the information to a java web services to process the information which is from the web page?</p>
| java asp.net | [1, 9] |
1,695,968 | 1,695,969 | Creating admin page in asp.net application | <p>I am considering best option to create multi-purpose admin page in my asp.net application. In that section should be searching users in database, adding users, review single users or whole groups, etc. I have two ways, how to do it:</p>
<ol>
<li><p>create single page for every option. It means: on first page will be some text box and search button, on second will be form with multiple textboxes to add new user, and so on.</p></li>
<li><p>place all needed controls to one page. Then use query string (something like aspx?mode=userAdd) to determine desired task and hide unneeded controls.</p></li>
</ol>
<p>Please, give me best idea, which one is better. (Or maybe you know completely different approach).</p>
<p>Thanks</p>
| c# asp.net | [0, 9] |
5,381,406 | 5,381,407 | AsyncFileUpload Change Request Size | <p>I am currently working on an ASP.net C# web app. I am using the AjaxControlToolkit ASyncFileUpload, however, when I upload a certain file I get the error message Maximum Request Length Exceeded. Is there a way that I can increase the size limit for file uploads.</p>
<p>Thanks for any help you can provide. </p>
| c# asp.net | [0, 9] |
2,764,509 | 2,764,510 | How to get a time stamp posted? | <p>Hi I am trying to get a time stamp in the format of "posted: ten minutes ago" or "posted yesterday" or "posted three days ago" etc. I want to have an activity with a button and when the button is clicked I want to open a new activity and display the time stamp in the format I explained in the new activity. This is what I have so far:</p>
<pre><code>public class MainActivity extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
Button b = (Button) findViewById(R.id.button1);
b.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
long currentTime = System.currentTimeMillis();
Intent i = new Intent(MainActivity.this, Main2.class);
i.putExtra("currentTime", currentTime);
startActivity(i);
}
});
}
}
</code></pre>
<p>And activity two which I want to display the time stamp in the above format:</p>
<pre><code>public class Main2 extends Activity{
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main2);
Bundle extras = getIntent().getExtras();
long currentTime = extras.getLong("currentTime");
}
}
</code></pre>
| java android | [1, 4] |
3,966,190 | 3,966,191 | destroy $_SESSION after cliking 'Cancel' button | <p>I would like to destroy $_SESSION['userList'] after cliking 'Cancel' button. However, the $_SESSION['userList'] is destroied when page load.</p>
<p>Below is my code:</p>
<pre><code><a href='#' class="btn" onClick="resetForm()"><span>Cancel</span></a>
<script type="text/javascript">
function resetForm() {
<?php
unset($_SESSION['userList']);
?>
}
</script>
</code></pre>
<p>Really appreciate for any help.</p>
| php javascript | [2, 3] |
5,238,036 | 5,238,037 | Whats the best way to run a time consuming script in ASP.NET at regular intervals on shared hosting? | <p>I would like to run a time consuming script (to update a database from a 3rd party API) at regular intervals. I was wondering what the best practice for this would be:</p>
<ol>
<li>What should the 'script' be - an ASP.NET service? Bearing in mind I am on shared hosting, this may not be possible (but I would like to know).</li>
<li>How could the script be scheduled to run at regular intervals/at set time automatically?</li>
</ol>
<p>Thanks in advance!</p>
| c# asp.net | [0, 9] |
3,141,388 | 3,141,389 | Function to look through folder and use a wildcard | <p>been a lurker on Stack Overflow for a while, love the site.</p>
<p>Now its my turn. From the code below, i am making the background image random each time the page loads.</p>
<p>Would anyone be so kind as to help me make this more efficient so that i don't have to manually enter my filenames ? Im looking for some kind of wildcard function that can look through my given folder and load footer*.png or even *.png as this folder will only contain footer patterns.</p>
<pre><code>var images = ['footer.png', 'footer2.png', 'footer3.png'];
$('#footer').css({'background-image': 'url(images/footers/' + images[Math.floor(Math.random() * images.length)] + ')'});
</code></pre>
| javascript jquery | [3, 5] |
5,590,255 | 5,590,256 | Select form option on page load | <p>I would like to select the option contained within a php variable on page load.</p>
<pre><code><?php
$pre = 78;
?>
<select id="form8" name="form8">
<option value="15">15</option>
<option value="25">25</option>
<option value="64">64</option>
<option value="78">78</option>
<option value="82">82</option>
</select>
<script>
$(document).ready(function(){
$("form8").val("<?php echo $pre; ?>");
}
</script>
</code></pre>
<p>Expected output should be, </p>
<pre><code><select id="form8" name="form8">
<option value="15">15</option>
<option value="25">25</option>
<option value="64">64</option>
<option value="78" selected="selected">78</option>
<option value="82">82</option>
</select>
</code></pre>
<p><a href="http://jsfiddle.net/qQZVN/1/" rel="nofollow">http://jsfiddle.net/qQZVN/1/</a></p>
| php javascript jquery | [2, 3, 5] |
3,189,317 | 3,189,318 | what is the "===", and whats the big difference between it and the "==" | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/359494/javascript-vs-does-it-matter-which-equal-operator-i-use">Javascript === vs == : Does it matter which “equal” operator I use?</a> </p>
</blockquote>
<p>whats does the <code>===</code> mean when working with jquery/javascript? and whats the difference between <code>===</code> and <code>==</code>?</p>
<p>like i got this code </p>
<pre><code>if ($this.val() != '' || ignore_empty === true) {
var result = validateForm($this);
if (result != 'skip') {
if (validateForm($this)) {
$input_container.removeClass('error').addClass('success');
}
else {
$input_container.removeClass('success').addClass('error');
}
}
}
</code></pre>
<p>and there is the <code>===</code></p>
<p>i just want to understand what it does and whats the difference.
thanks</p>
| javascript jquery | [3, 5] |
1,708,333 | 1,708,334 | Jquery - Difference between internal & external jquery files | <p>I have a html page with 1000+ lines of jquery. The page loads and works fine. </p>
<p>Is it correct to write 1000+ lines of jquery within a page? Or should create an external <code>.js</code> file(s) & call these from my html?</p>
<p>Which one is best? Thanks in advance...</p>
| javascript jquery | [3, 5] |
5,488,333 | 5,488,334 | access textfield values from java script in php | <p>function addRow(tableID) {</p>
<pre><code> var table = document.getElementById(tableID);
var rowCount = table.rows.length;
var row = table.insertRow(rowCount);
var cell1 = row.insertCell(0);
var element1 = document.createElement("input");
element1.type = "text";
cell1.appendChild(element1);
var cell2 = row.insertCell(1);
var element2 = document.createElement("input");
element2.type = "File";
cell2.appendChild(element2);
//cell2.innerHTML = rowCount + 1;
}
</code></pre>
<p>How to access the values added in the text boxes in php from here?</p>
<p>Please advise.</p>
| php javascript | [2, 3] |
4,102,251 | 4,102,252 | Using a variable into a string | <p>I just want to insert the variable $src (it fetches the url of an image)</p>
<pre><code>$src = $('a[class="button"]').attr("src");
</code></pre>
<p>into this string</p>
<pre><code>$("a[class=panel]").append("--wanna insert $src here--");
</code></pre>
<p>How can I do this?</p>
| javascript jquery | [3, 5] |
5,461,736 | 5,461,737 | J-query J-player is not auto playing | <p>I have used jPlayer in my music site .The actual songs data in dynamic.It is been adding on user checks from 10 listed songs on every page.jPlayer is getting added with the playlist but not autoplaying.when i'm clicking manually only it is getting palyed.
I tried with playItem= 0,playItem= 1,playItem= 2...etc.,</p>
<p>Can any body suggest be about this issue .How to add dynamic playlist and set it play automatically.</p>
| php javascript jquery | [2, 3, 5] |
4,346,601 | 4,346,602 | How can I get the Clipboard text in Mozilla, Not setting text to clipboard | <p>I am performing a search operation like Ctrl+F in a web page with some improvements like searching multiple items once and auto cleaning text etc..<br>
But in IE i can get the clipboard text easily.. But the problem is.. As our previous tools are developed in Mozilla I am looking to make this also in mozilla. </p>
<pre><code>I have found some flash related solutions like Zeroclipboard, zclip etc..
But Zeroclipboard, zclip etc.. are limited to set the data to clipboard.
I want to assign the text from clipboard to a local variable and then perform search operation.
</code></pre>
<p>Someone please help me on this.. I am struggling for this from a long time to get solution for this.. </p>
<p>Else can i get the text from the pasted text from findbar? So that I can directly take the findbar text as clipboard text...</p>
| javascript jquery | [3, 5] |
2,270,890 | 2,270,891 | ASP.NET - How To View MS Word File from server, edit then save on server? | <p>I have developed an (C#) asp.net web application based on document management
and I want to view the selected ms word file from server files on the client machine then when the client save the selected file, It will be saved back on server.</p>
| c# asp.net | [0, 9] |
4,934,781 | 4,934,782 | Making a phonecall from a AlertDialog | <p>Hi I've got a AlertDialog that shows the users some information and two buttons "yes" or "no". If the user press "yes" the application should call a specific number, but the application crashes. My sourcecode:</p>
<pre><code>new AlertDialog.Builder( this )
.setTitle( "" )
.setMessage("")
.setPositiveButton( "Yes", new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int which) {
Log.d( "AlertDialog", "Positive" );
call();
}
})
.setNegativeButton( "No", new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int which) {
Log.d( "AlertDialog", "Negative" );
}
} )
.show();
</code></pre>
<p>My call() function</p>
<pre><code> private void call() {
try {
Intent callIntent = new Intent(Intent.ACTION_CALL);
callIntent.setData(Uri.parse("tel:123456"));
startActivity(callIntent);
} catch (ActivityNotFoundException e) {
Log.e("Calc", "Call failed", e);
}
}
</code></pre>
<p>Why, and how can I complete this task? Thanks :) </p>
| java android | [1, 4] |
1,760,515 | 1,760,516 | How to create friends and status updates using App engine | <p>Hi guys i posted a question earlier related to this topic but i believe the question was to broad. So this time i will try to be more specific.</p>
<p>I would like to use Google's AppEngine to create a social networking environment for my app.</p>
<p>For example, it will allow a user to log in, see friends status, and their will be an activity where the user can see friends list and click a friends to load the users profile.</p>
<p>So basically i would like to know what should the implementation for this look like?</p>
<p>Such as using App Engine, Amazon S3 services, etc</p>
<p><strong>So here are my main two questions:</strong>
how would i load a users friends list when they click the "Friends" activity?</p>
<p>how would i load the users current friends latest statuses?</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.