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,349,599 | 4,349,600 | $.ajax if condition | <p>I failed to write a condition inside of ajax by using the following syntax. </p>
<pre><code> var num = 1;
$.ajax({
type: "POST",
//condition starts
if (num === 1){
url: url1,
data: data1,
}else{
url: url2,
data: data2,
}
//condition finishes
success: success,
dataType: dataType
});
</code></pre>
<p>but this way works. </p>
<pre><code> var num = 1;
if(num === 1){
$.ajax({
type: "POST",
url: url1,
data: data1,
success: success,
dataType: dataType
});
}else{
$.ajax({
type: "POST",
url: url2,
data: data2,
success: success,
dataType: dataType
});
}
</code></pre>
<p>the 2nd method is not quite ideal as repeating my code.
is my first script in a wrong syntax? Could someone please point out? thanks</p>
| javascript jquery | [3, 5] |
2,232,303 | 2,232,304 | Javascript/jQuery: How to increment a number and highlight text when selected | <p>I've searched and search, but cannot find what I need. I know very little about Javascript so I need a bit of help with this.</p>
<p>I have a number, say numValue, that I want to increase or decrease based on items being selected in different areas. Plus I want those items to highlight and stay highlights until clicked again. When selected I want numValue to decrease by 1 and when deselected I want numValue to increase by 1. </p>
<p>Example:</p>
<p><strong>50</strong> (numValue)</p>
<p>Group 1 </p>
<ul>
<li>Option 1</li>
<li>Option 2</li>
<li>Option 3</li>
</ul>
<p>Group 2</p>
<ul>
<li>Option 1</li>
<li>Option 2</li>
<li>Option 3</li>
</ul>
<p>So if I click on Group 1/Option 1 and Option 2 plus Group 2/Option 3 I want the numValue to decrease by 3 (for 3 selected options). I want each item to stay selected when clicked not deselect when another option is clicked. Then deselect when clicked a second time. So it becomes:</p>
<p><strong>47</strong> (numValue)</p>
<p>Group 1 </p>
<ul>
<li><strong>Option 1</strong></li>
<li><strong>Option 2</strong> </li>
<li>Option 3</li>
</ul>
<p>Group 2</p>
<ul>
<li>Option 1</li>
<li>Option 2</li>
<li><strong>Option 3</strong></li>
</ul>
<p>Can anyone point me in the right direction? </p>
| javascript jquery | [3, 5] |
2,511,213 | 2,511,214 | asp.net gridview textbox value | <p>How to get gridview itemtemplate textbox value in javascript?</p>
| javascript asp.net | [3, 9] |
521,508 | 521,509 | One function to rule multiple buttons, and then some | <p>I have 7 buttons. They are distributed on top of a background image and interacting with it. They are placed absolutely. I have created a jQuery function to animate one of the buttons height. The button expands upwards. Check it out here: <a href="http://hdpano.no/bf/newindex.html" rel="nofollow">http://hdpano.no/bf/newindex.html</a> and click the top left button named Deck 8.</p>
<p>I wish this function to handle all the buttons, but there are some variables. The baseline of each button varies, and i need to subtract from it as i expand the height. I also wish to close any other open button if one clicks another. </p>
<p>Here is the jQuery code:</p>
<pre><code>jQuery(document).ready(function() {
$('#link8').toggle(
function()
{
$('#deck8').animate({height: "25px",top:"202"}, 500);
},
function()
{
$('#deck8').animate({height: "150",top:"76"}, 500);
});
});
</code></pre>
<p>The function is quite basic and I have stripped it of all my attempts to make it work with the other buttons.</p>
| javascript jquery | [3, 5] |
1,544,140 | 1,544,141 | Textbox onchange event | <p>So I have a text box, where I add an onchange event of markAsException.</p>
<p>My javascript is - </p>
<pre><code>function markAsException(recordID) {
//alert("Exception");
//mark exception column
document.getElementById("ctl00_cpMain_lblScrollException_" + recordID).innerText = "Exception";
document.getElementById("ctl00_cpMain_lblScrollException_" + recordID).style.color = "#FF0000";
document.getElementById("ctl00_cpMain_tdScrollException_" + recordID).style.backgroundColor = "#99CCFF";
//enable comments ddl and remove blank (first item)
document.getElementById("ctl00_cpMain_ddlCommentId_" + recordID).disabled = false;
document.getElementById("ctl00_cpMain_ddlCommentId_" + recordID).focus();
document.getElementById("ctl00_cpMain_ddlCommentId_" + recordID).options[0] = null;
}
</code></pre>
<p>What I want to do is, when a user changes the value in a textbox, to mark a column as "Exception", and then focus a drop down list where they have to chose the reason for the exception.</p>
<p>This is what happens.. If I am on that text box and change it, then tab, it tabs to the drop down list.</p>
<p>However, if I change the value and then simply click in another text box on the form, I don't focus the drop down list.</p>
<p>How would I accomplish that?</p>
| c# javascript | [0, 3] |
1,343,341 | 1,343,342 | How to find a DropDownList in a GridView ItemTemplate without RowDataBound? | <p>I have a DropDownList outside of a GridView and I have a DropDownList inside an ItemTemplate of a GridView. The DropDownList that is outside has a SelectedIndex_Changed event and when that fires, it should populate the DropDownList inside the GridView. The problem is that in the method that I use to populate the inside DropDownList, it can't find the control: Here is sample code that is called when the outside DropDownList is changed:</p>
<pre><code> //Does not find ddlRoom
DropDownList ddlRoom = (DropDownList)gv.TemplateControl.FindControl("ddlRoom");
if (rows.Count() > 0)
{
var rooms = rows.CopyToDataTable();
ddlRoom.Items.Clear();
ddlRoom.Items.Add(new ListItem("Select...", "-1"));
ddlRoom.DataSource = rooms;
ddlRoom.DataBind();
}
</code></pre>
<p>I have also tried:</p>
<pre><code>DropDownList ddlRoom = (DropDownList)gv.FindControl("ddlRoom");
</code></pre>
| c# asp.net | [0, 9] |
3,503,968 | 3,503,969 | java.lang.NoClassDefFoundError on android | <p>i am doing an application-email sending without user interaction. so that i got coding from the following <a href="http://stackoverflow.com/questions/2020088/sending-email-in-android-using-javamail-api-without-using-the-default-built-in-a/2033124#2033124">link</a>. here i got <strong>java.lang.NoClassDefFoundError</strong>: com.murali.email.GMailSender. i got this error at </p>
<pre><code>GMailSender sender = new GMailSender("[email protected]", "password");
sender.sendMail("This is Subject",
"This is Body",
"[email protected]",
"[email protected]");
</code></pre>
<p>in the MailSenderActivity Class. i added all external jars in referenced library and no error found at compile time. i spent more time to solve the issue but failed. i know it is possible of duplicate question but the other answers were not used for me. i guess me or eclipse miss some jar or class path for GMailSender class. please help me. i do not know how to solve it. </p>
| java android | [1, 4] |
3,539,398 | 3,539,399 | Why 'insert "AssignmentOperator Expression" to complete assignment' syntax error occurs? | <pre><code>public Object execute() throws Exception {
JSONArray result = new JSONArray();
DBHelper dbh = new DBHelper(mContext);
SQLiteDatabase db = dbh.getReadableDatabase();
try{
Cursor cursor_products = db.rawQuery(dbh.GET_ALL_PRODUCTS,null);
//Cursor cursor_products = db.query(DBHelper.PRODUCT_TABLE, new String[]{DBHelper.PRODUCT_ID,DBHelper.PRODUCT_NAME,DBHelper.PRODUCT_PRICE,DBHelper.PRODUCT_QTY}, null, null, null, null, DBHelper.PRODUCT_NAME + " ASC" );
while(cursor_products.moveToNext()){
JSONObject product = new JSONObject();
product.put("id", cursor_products.getInt(0));
product.put("name", cursor_products.getString(1));
product.put("price", cursor_products.getInt(2));
product.put("stock", cursor_products.getInt(3));
result.put(product);
}
cursor_products.close();
}catch(SQLException e){
Log.e(this.getClass().getName()+"@54", e.getMessage());
}finally{
db.close();
dbh.close();
}
return result;
}
</code></pre>
<p>Using the above code, the error occurs at the line: <code>Cursor cursor_products = db.rawQuery(dbh.GET_ALL_PRODUCTS,null);</code>
which is really weird because im sure my assignments are correct.
Is there a chance that its only Eclipse not parsing the code correctly?</p>
| java android | [1, 4] |
3,345,310 | 3,345,311 | How would I add a delay to this JQuery event? | <p>This is an event that appends some html:</p>
<pre><code> $("#feed").live("mouseover", function(){
$("#main").append('<div class="help_div" id="feed_help"><p>Your feed shows you information on the users you follow, such as songs added, voting, commenting, following, and the showing of songs between users.</p></div><div class="arrow" id="feed_arrow"></div>');
});
</code></pre>
<p>How would I cause there to be a 2000 millisecond gap between mousing over the selected element and appending the html?</p>
| javascript jquery | [3, 5] |
2,603,725 | 2,603,726 | When One of 2 select boxes are changed, alert with the value for each select box | <p>Given the following: </p>
<pre><code><div class="filters" id="filters">
<select id="state" name="state" tabindex="1" >
<option value="">Filter by State</option>
<option value="AL" >Alabama</option>
<option value="AK" >Alaska</option>
<option value="AZ" >Arizona</option>
etc...
</select>
<select id="availability" availability="products" tabindex="2">
<option value="">Filter by Availability</option>
<option value="yes">Available 24/7</option><option value="no">Not Available 24/7</option>
</select>
</div>
</code></pre>
<p>What kind of JQUERY magic would bind to filters, so that any time the SELECT input(s) were changed, it would alert with the Values of STATE and AVAILABILITY?</p>
| javascript jquery | [3, 5] |
4,157,861 | 4,157,862 | How do I make new elements draggable with jquery? | <p>I'm loading new elements with a form. After the elements are loaded I need to make each one draggable. According to .on doc <em>"Delegated events have the advantage that they can process events from descendant elements that are added to the document at a later time."</em></p>
<p>I've tried oh-so-many variants of .on, .click, etc but so far no luck. I'm currently working with...</p>
<pre><code> $('#parent').on('change', '.thumb', function(event){
alert('loaded');
$('.thumb').draggable();
});
</code></pre>
<p>...but, it doesn't attach to the new .thumb element. How can I accomplish this?</p>
<p>Edit: Here's the html...</p>
<pre><code> <input type="file" id="parent" name="files[]" multiple />
<output> //these spans are created after files are selected from 'file'
<span><img class=".thumb" src="..."></span>
<span><img class=".thumb" src="..."></span>
</output>
</code></pre>
| javascript jquery | [3, 5] |
5,055,910 | 5,055,911 | ASP.NET parent page update with JavaScript? | <p>here is my problem:
I have a ASP.NET appl. In the appl, there is a page (page A) that brings up a second page (page B) Page b is a simple form that fills a dataGrid that is located in Page A. I have tryed many approaches (IDisposable, creating methods for it...) but it does not give me the correct functioning. I have been looking into it for quit a while now and I am pretty sure the right way to do it is by using javaScript, but I am not that expert in that technology. I wonder if someone could point me to a solution (whether is JavaScript or not) or point me to an article that could make me understand the preblem better.</p>
<p>Many thanks for your help guys!!!!!
Cheers</p>
| asp.net javascript | [9, 3] |
5,651,604 | 5,651,605 | jQuery JavaScript Encoding HTML | <p>How on earth do you encode HTML with jQuery/JavaScript?</p>
<p>Havn't found any working solution after hours of Googling and surfing this site.</p>
<p>This:</p>
<pre><code>jQuery('<div/>').text(value).html();
</code></pre>
<p>does not work with jQuery!</p>
| javascript jquery | [3, 5] |
1,924,314 | 1,924,315 | SelectedIndexChanged event not firing with OnChange method in JavaScript | <p>Please help me with a problem I'm having with a <code>DropDownList</code>. I'm using the JavaScript "onchange" method to get the DropDownList's selected value. I can get the value, but the <code>OnSelectedIndexChanged</code> event not firing. Hopefully someone can help me. My JavaScript function for getting selected value is:</p>
<pre><code> <script type="text/javascript" language="javascript">
function showAddress_Byamit()
{
var e = document.getElementById("TabC_tp1_ddlcountry");
var country = e.options[e.selectedIndex].text;
}
</Script>
<asp:DropDownList ID="ddlcountry" runat="server" AutoPostBack="True"
Height="20px" EnableViewState="true" TabIndex="4"
OnSelectedIndexChanged="ddlcountry_SelectedIndexChanged"
onchange="showAddress_Byamit();return false" Width="100px" >
</asp:DropDownList>
</code></pre>
<p>The problem is that the <code>"ddlcountry_SelectedIndexChanged"</code> method is not called.</p>
<p>In the codebehind I have added the <code>Onchange</code> event as follows:</p>
<pre><code> ddlcountry.Attributes.Add("onchange", "showAddress_Byamit(); return false");
</code></pre>
| javascript asp.net | [3, 9] |
2,485,053 | 2,485,054 | Multiple click events for the same element? | <p>Is it possible to have multiple click events for the same element? I have tried to simply have it like so:</p>
<pre><code>$('#templates').click(function(e) {
do something..
});
$('#templates').click(function(e) {
do something else also..
});
</code></pre>
<p>Yet only the second event fires. I cannot find any decent answers explaining how to do this for a singular element in an on-click?</p>
<p><strong>Note</strong>: the first click event calls server-side and loads a new PHP template (this may have an effect on what I can use in the second call I guess, as individually both clicks work but the server call does not work if I try a second click for the same element)</p>
| javascript jquery | [3, 5] |
4,665,667 | 4,665,668 | In Android, how do I reference an instantiated Activity object from another Activity? | <p>Suppose I have two Activity classes in my Android app. Inside Activity B, I know that Activity A exists and is instantiated. What's the <em>proper way</em> to access Activity object A from Activity object B?</p>
| java android | [1, 4] |
2,712,948 | 2,712,949 | bridge language between PHP and Objective-C | <p>i want to show php page in iphone application. I have also used webview to display page but not able to know how to apply slide effect on page please help me...</p>
<p>i am working with one application in which i m working with php listing page and then i want to show detail page but how to show slide transition effect.</p>
| php iphone | [2, 8] |
1,845,329 | 1,845,330 | Why isn't this.value or $(this).val() responding in JavaScript / jQuery? | <p>I have the following <code>function</code>, which successfully increases the <code>value</code> of <code>input type="text"</code></p>
<pre><code>function deleteLine(arrayNumber) {
$("#line" + arrayNumber + "_quantity").val(parseInt($("#line" + arrayNumber + "_quantity").val()) + 1);
}
</code></pre>
<p>I'm just wondering why these don't work instead, for a neater code:</p>
<pre><code>$("#line" + arrayNumber + "_quantity").val(this + 1);
$("#line" + arrayNumber + "_quantity").val(this.value + 1);
$("#line" + arrayNumber + "_quantity").val($(this).val() + 1);
</code></pre>
| javascript jquery | [3, 5] |
3,076,534 | 3,076,535 | how to hide div with Class/id with jQuery | <p>I have a function openbag(); for opening div. this div is also open on click and addClass "active". but i am open this div from server side, call the function openbag();. but the problem is this div is open every time when refresh the other page. I have removed "active" class and check if class has not but this is always showing. here is my code i am using.</p>
<pre><code>function openBag() {
$("#bag").addClass("active");
$("#expanding-bag").slideDown("fast");
}
$(document).ready(function () {
if ($("div#bag").hasClass("active")) {
$("#expanding-bag").show();
$("#bag").removeClass("active");
}
else {
$("#expanding-bag").hide();
}
</code></pre>
<p>in c# :</p>
<pre><code>Page.ClientScript.RegisterStartupScript(typeof(Page), "alert", "<script language='javascript'>openBag();</script>");
</code></pre>
| jquery asp.net | [5, 9] |
2,630,846 | 2,630,847 | Android AutoCompleteTextView, how to link suggestions to xml? | <p>I am trying to use the suggestions of my AutoCompleteTextView can be click to view my xml layouts.</p>
<p>I have done the xml part.</p>
<pre><code>AutoCompleteTextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/autoCompleteTextView1"
android:layout_gravity="center"
android:text="Enter keyword to search outlet"
</code></pre>
<p>So here are my suggestions :</p>
<blockquote>
<p>static final String[] COUNTRIES = new String[] { "Adidas", "Affin", "Alam Art" };</p>
</blockquote>
<p>I have them saved as adidas.xml, affin.xml and alamart.xml. So how do i have them to be displayed with the autocomplete?</p>
| java android | [1, 4] |
14,887 | 14,888 | Get elements value using jquery | <p>I have an anchor, as follows:</p>
<pre><code><a href="#" class="fpa2" value="7">
<div class="pl2">
<div class="pl3">Hero</div>
</div>
</a>
</code></pre>
<p>Using <strong><em>jQuery</em></strong>, how do i get a variable with the value <code>7</code> from the value field on click?</p>
<p>I tried:</p>
<pre><code>$('.fpa2').on("click", function(){
var a1 = $(this).val();
});
</code></pre>
<p>but this is <strong><em>returning a blank</em></strong> value.</p>
| javascript jquery | [3, 5] |
1,999,008 | 1,999,009 | Storing `CheckBoxList` items in **Session** and retieveing back to `CheckBoxList` | <p>I am storing all the items in the <code>CheckBoxList</code> in the <strong>Session</strong> and retrieving the same and adding to another or same <code>CheckBoxList</code>.</p>
<p>Here is the code where I store the <code>CheckBoxList</code> items in the Session on button1_click :</p>
<pre><code>Session.Add("AllItems", CheckBoxList1.Items);
</code></pre>
<p>Here is the code where I retrieving the values from Session and fill the <code>CheckBoxList</code> on button2_click:</p>
<pre><code>if ((Session["AllItems"]) != null)
{
CheckBoxList1.Items.Add(Session["AllItems1"].ToString());
}
</code></pre>
<p>But this results in one item in the <code>CheckBoxList</code> whose value is: "System.Web.UI.WebControls.ListItemCollection"</p>
<p>Can someone kindly help me on this.
Thank you in advance.</p>
| c# asp.net | [0, 9] |
681,423 | 681,424 | taking off the http or https off a javascript string | <p>I have the following strings</p>
<pre><code>http://site.com
https://site.com
http://www.site.com
</code></pre>
<p>how do i get rid of the http:// or https:// in javascript or jquery</p>
| javascript jquery | [3, 5] |
3,763,791 | 3,763,792 | Need to save a high score for an Android game | <p>It's quite simple, all I need to do is save a high score (an integer) for the game. I'm assuming the easiest way to do this would be to store it in a text file but I really have no idea how to go about doing this.</p>
| java android | [1, 4] |
274,383 | 274,384 | Why is jQuery returning each character of the contents of my span element when I loop it? | <p>Ok, I have bunch of span with an endtime class. I want to get each of the contents independently from the others.</p>
<pre><code><span class='endtime'>
2011-03-29 00:01:03
</span>
<span class='endtime'>
2011-03-31 19:20:11
</span>
<span class='endtime'>
2011-03-28 19:00:12
</span>
</code></pre>
<p>But the problem is, when I do this:</p>
<pre><code>var text = $('.endtime').text();
for(var i = 0; i < text.length; i++) {
$('.counter').countdown({
until: text[i],
format: 'HMS'
})
}
</code></pre>
<p>The contents of the text only have 1 character? How to make it return the whole characters?</p>
| javascript jquery | [3, 5] |
4,446,869 | 4,446,870 | JavaScript 'beforeunload' event not working in ie | <p>I need to open a pop-out window, then after close pop-out window (refresh a parent page)</p>
<p>jquery 'beforeunload' event not working in internet explorer 8,9.</p>
<p>my code is:</p>
<pre><code> /*
* events
* add tallyman
*/
$("div.main form div.tallymanlist").click(function() {
if(gencargo.show_confirm('Add new tallyman?')) {
var windowObject = gencargo.windowOpener(600,1400, "Tallyman",$(this).children().attr("url"));
gencargo.windowParentRefresh(windowObject);
}
});
</code></pre>
<p>gencargo object is content (window open):</p>
<pre><code> /*
* open window
*/
windowOpener : function (windowHeight, windowWidth, windowName, windowUri) {
var centerWidth = (window.screen.width - windowWidth) / 2;
var centerHeight = (window.screen.height - windowHeight) / 2;
newWindow = window.open(windowUri, windowName, 'resizable=0,width=' + windowWidth +
',height=' + windowHeight +
',left=' + centerWidth +
',top=' + centerHeight);
newWindow.focus();
return newWindow;
},
</code></pre>
<p>and also window close:</p>
<pre><code> windowParentRefresh : function(object) {
$(object).bind('beforeunload', function () {
object.opener.location.reload();
});
}
</code></pre>
<p>Close window event is not working in ie. Only in FireFox, Chrome, Opera.</p>
| javascript jquery | [3, 5] |
3,920,452 | 3,920,453 | Re Using C++ graphics code in java | <p>I am having some code already written C++ using graphics.</p>
<p>Is there any way to re use that code in java?</p>
<p>Thanks in advance..</p>
| java c++ | [1, 6] |
2,973,983 | 2,973,984 | Why does everyone like jQuery more than prototype/script.aculo.us or MooTools or whatever? | <p>It seems that jQuery has taken the throne for JavaScript frameworks and I was wondering exactly why. Is there a technical reason for this or is it just that they have evangelists? I have been really happy with using <a href="http://en.wikipedia.org/wiki/Prototype_JavaScript_Framework">Prototype</a> myself. Should I use jQuery for my next project?</p>
| javascript jquery | [3, 5] |
32,214 | 32,215 | how to display hide and show select box? | <p>I google a lot for my requirement.So i am posting this question.
my requirement is when a user select a value from dropdown based on that value a div to be displayed. But in default all the divs with values to be displayed.</p>
<p>here is my code:</p>
<pre><code><select name="lab_1" id="title" >
<option value="All" onclick="showAll();" >All</option>
<option value="one" onclick="showOther();">One</option>
<option value="two" onclick="showOther();">Two</option>
</select>
<div id="All" >
hiihdhfhdf
<div id="otherTitle" style="display:none;" >
select
</div>
<div id="otherTitle2" style="display:none;" >
ramsai
</div>
</div>
<script type="text/javascript" src="../js/jquery-1.7.2.min.js"></script>
<script>
$(function() {
$('#title').change(function() {
var all= $("#All").val();
alert('hi');
if(all==""){
$("#otherTitle").show();
$("#otherTitle2").show();
}
else if (this.value == "one") {
$("#otherTitle").show();
$("#otherTitle2").hide();
}
else if (this.value=="two"){
$("#otherTitle2").show();
$("#otherTitle").hide();
}
});
});
</script>
</body>
</code></pre>
<p>Here with above code when i click all my divs are not displaying but when i go to one or two options it is showing all the values.
I have 42 divs is there any other solution for all those divs in jquery or below mentioned are the only solutions for that</p>
<p>Thank you in advance</p>
<p>Ramsai</p>
| javascript jquery | [3, 5] |
3,732,038 | 3,732,039 | Text being updated in real time | <p>I need some text to be updated in real time depending on choices from dropdown boxes.</p>
<p>Here's an example: <a href="http://www.thatsoftwareguy.com/swguy_demo_1.3.7/index.php?main_page=product_info&cPath=65&products_id=183" rel="nofollow">http://www.thatsoftwareguy.com/swguy_demo_1.3.7/index.php?main_page=product_info&cPath=65&products_id=183</a></p>
<p>I know how to get an input box automatically updated, using the NAME and ID - but how do you give normal text a NAME and ID?</p>
| php javascript | [2, 3] |
1,601,615 | 1,601,616 | JQuery - object.id is undefined when it shouldn't be | <p>I'm working with JQuery and i'm running into this strange (or perhaps stupid) error.</p>
<p>In my HTML I have:</p>
<pre><code><input type="password" name="repeatPassword" id="id_repeatPassword" />
</code></pre>
<p>And then in my javascript code i have:</p>
<pre><code>validateRepeatPassword($('#id_repeatPassword'));
</code></pre>
<p>Unfortunately in the function "validateRepeatPassword":</p>
<pre><code>function validateRepeatPassword(o) {
// this works
if (o.value == $("#id_password").val()) {
// this returns "undefined"
alert(o.id)
...
}
</code></pre>
<p>why?</p>
| javascript jquery | [3, 5] |
3,178,793 | 3,178,794 | IN Thread-Safe How to write Map and other thread read | <p>How to write in Thread-Safe Map and other thread read it thread</p>
| java android | [1, 4] |
542,178 | 542,179 | How do I ensure that all clients can correctly parse a database DateTime string? | <p>I got a Windows application, used on hundreds of computers. It gets dates from my Sql Server as string and converts this string to datetime format to calculate some date time difference.
Sometimes on some system, we get error while converting string to Date. "String was not recognized as a valid DateTime".</p>
<p>Every computer's Windows DateTime settings are not the same and we cant even force client to use one format.</p>
<p>Now how to handle this at code side?</p>
| c# asp.net | [0, 9] |
856,266 | 856,267 | JQuery Killing Function | <p>I'm new to JQuery, so I'm a little confused here. I have a button that, onclick, runs this function. When the JQuery is commented out, the alert goes off when the button is clicked. But with the JQuery, nothing is alerted when the button is clicked. What am I doing incorrectly?</p>
<pre><code><script type="text/javascript">
function LoadList(type){
alert(type);
if(type == "private"){
//$.post("fileone.php", { page: "private" };
}else{
//$.post("fileone.php", { page: "public" } );
}
}
</script>
</code></pre>
| php javascript jquery | [2, 3, 5] |
4,079,717 | 4,079,718 | Extracting Android .apk and reading contents of XML file in res/layout | <p>I am trying to reverse engineer an existing android app and understand how a particular UI is constructed. I've found that I can rename the apk to zip and view some of the compiled source. The res/layout directory is populated with all the xml files that define the UI, but while they do have the xml extension, they are not in XML format. Is there anyway to convert these files back to text based markup?</p>
| java android | [1, 4] |
3,189,866 | 3,189,867 | Adding div before selected div | <p>I have a bunch of divs one after the other.</p>
<pre><code><div class="betweenable">some content</div>
<div class="betweenable">other content</div>
<div class="betweenable">yet another</div>
</code></pre>
<p>When I click the last div, I want to insert the text <code>new content</code> in a div before it, so the final result will be</p>
<pre><code><div class="betweenable">some content</div>
<div class="betweenable">other content</div>
<div class="betweenable">new content</div>
<div class="betweenable">yet another</div>
</code></pre>
<p>I tried <code>append</code> but it's adding the new markup <strong>inside</strong> the select div <em>at the top</em>. I want it inserted <em>outside</em> the selected div and right before it. What should I use instead of this line </p>
<pre><code>var newmarkup = '<div class="betweenable">new content</div>';
$(this).prepend();
</code></pre>
| javascript jquery | [3, 5] |
864,030 | 864,031 | Jquery or javascript auto click | <p>How can i auto click on the link on page load? i have been trying for ages but id doesn`t work.</p>
<pre><code><link rel="stylesheet" type="text/css" href="leightbox.css" />
<script type="text/javascript" src="prototype.js"></script>
<script type="text/javascript" src="leightbox.js"></script>
</head>
<body>
<div class="content">
<p> <a href="#" class="lbOn" rel="pop02">Click here to activate leightbox popup.</a></p>
</div>
<!----------// POPUP (ON CLICK) //---------->
<div id="pop02" class="leightbox">
<a href="#" class="lbAction" rel="deactivate">×</a>
<div class="scrollbox">
<h1>This popup loads upon clicking a trigger link.</h1>
text</div>
</div>
</body>
</code></pre>
| javascript jquery | [3, 5] |
4,711,204 | 4,711,205 | JS slideToggle close other open divs | <p>I have about 20 buttons on a page. I have set them up with jquery to slide toggle to show and hide a div. It works well but only if the same button is used to close the div before selecting a new div. I want that if a button is clicked it will slide up open divs, before it slides down its own div. Right now if a div is still showing, and a different button is clicked, the open div wont close. </p>
<p>I think there are too many buttons to make an if function to test each div by name if open, and then slide up. is there a general slide up all open divs?</p>
<p>If I add a class and use css to display:block, I dont get animation, so I am using slidetoggle. I am happy to redo my code if there is a better way? Is there a way to close the open divs?</p>
<pre><code>$(document).ready(function(){
$('.show1').click(function(){
$(".row1").slideToggle();
});
$('.show2').click(function(){
$(".row2").slideToggle();
});
$('.show3').click(function(){
$(".row3").slideToggle();
});
});
</code></pre>
| javascript jquery | [3, 5] |
612,264 | 612,265 | Comparing generic lists and filter mismatching values | <p>I would like to compare to generic lists, and filter the mismatching values. I'm currently using a foreach loop, but I would like to know if there is a way to solve this using a lambda expression? In the example below i would like a resulting list that only contains the "4".</p>
<pre><code>List<string> foo = new List<string>() { "1", "2", "3" };
List<string> bar = new List<string>() { "1", "2", "3", "4" };
</code></pre>
| c# asp.net | [0, 9] |
2,889,559 | 2,889,560 | how to generate a identified filename from url? | <p>Now I have to download a file whose url has known. I need to save it to SD card when download action finished. The problem is I should know whether the file is existed before downloading. So I plan to save the file with a identified filename which is generated from url. So when I get the url I can calculate his corresponding filename. Which algorithm should I use? </p>
<p>BTW, JAVA is what I'm using.</p>
<p>Maybe, I have not told my requirement clearly. Fetch the filename "abc.png" from url "www.yahoo.com/abc.png" is not what I need. Because "www.google.com/abc.png" results the same filename. I need to generate a unique filename from url.</p>
| java android | [1, 4] |
3,664,659 | 3,664,660 | Python and executing php files? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/2931061/start-local-php-script-w-local-python-script">Start local PHP script w/ local Python script</a> </p>
</blockquote>
<p>How do you execute a php file and then view the output of it?</p>
<pre><code>os.system("php ./index.php")
</code></pre>
<p>Does not work only returns <code>0</code></p>
| php python | [2, 7] |
5,204,343 | 5,204,344 | Asp:Image with Link | <p>I would like to place an image in my application. when I click on it I want to move to another page. In general my asp:image to work as link
Is that possible ??</p>
| c# asp.net | [0, 9] |
1,405,825 | 1,405,826 | Filtering elements out of a jQuery selector | <p>I have a page that selects all the elements in a form and serializes them like this:</p>
<pre><code>var filter = 'form :not([name^=ww],[id$=IDF] *,.tools *)';
var serialized = $(filter).serialize();
</code></pre>
<p>This works, unless the form gets around 600+ elements. Then the user gets s javascript error saying that the script is running slow and may make their browsers unresponsive. It then gives them the option to stop running the script.</p>
<p>I have tried running the filters separately, I have tried using .not on the selectors, then serializing them, but I run into one of two problems. Either it runs faster without the error, but also does not filter the elements, or it does filter the elements and gives me the slow script error.</p>
<p>Any ideas?</p>
| javascript jquery | [3, 5] |
2,232,066 | 2,232,067 | Is it possible to read data from a local port using Javascript or ASP.NET? | <p><strong>I written the following to broadcast a data in a Windows Application using C#</strong> </p>
<pre><code> UdpClient server = new UdpClient("127.0.0.1", 9050);
string welcome = "Hello, are you there?";
data = Encoding.ASCII.GetBytes(welcome);
server.Send(data, data.Length);
</code></pre>
<p><strong>But, How can I read the same data by a web application using javascript or asp.net?</strong></p>
| javascript asp.net | [3, 9] |
4,379,364 | 4,379,365 | How do I add a function to a specific element type in jQuery? | <p>I can do this</p>
<pre><code>jQuery.fn.validate = function(options) {
var defaults = {
validateOPtions1 : '',
validateOPtions2 : ''
};
var settings = $.extend({}, defaults, options);
return this.each(function() {
// you validation code goes here
});
};
</code></pre>
<p>but that will make validate() available for every element. I could do this to any element: $('some selector').validate().</p>
<p>Is there a way I can make this only available to, say, form elements? eg. $('.mySpecialFormClass').validate()?</p>
| javascript jquery | [3, 5] |
5,589,798 | 5,589,799 | Best practices for declaring functions inside jquery ready function | <p>I haven't found a good reference for declaring my own functions inside the jquery.ready(function(){});</p>
<p>I want to declare them so they are inside the same scope of the ready closure. I don't want to clutter the global js namespace so I don't want them declared outside of the ready closure because they will be specific to just the code inside.</p>
<p>So how does one declare such a function...and I'm not referring to a custom jquery extension method/function...just a regular 'ol function that does something trivial say like: function multiple( a, b ){ return a * b; }</p>
<p>I want to follow the jquery recommendation and function declaration syntax. I can get it to work by just declaring a function like the multiply one above...but it doesn't look correct to me for some reason so I guess I just need some guidance.</p>
| javascript jquery | [3, 5] |
4,930,520 | 4,930,521 | word processor in c# or c++ | <p>I learned C Sharp for one purpose, to write a word processor that includes my needs. For example that you could play with the spaces between words, and the spaces between the lines, raise one word higher from the row, and many other similar things.
When I start working on it in c# - winForms I see the possibilities are very limited, Indeed there are ways to do almost everything With effort, but my question is if I on the right way, maybe c# is not the language to it, maybe I should work with c++.
What do you think?</p>
| c# c++ | [0, 6] |
2,962,852 | 2,962,853 | check if /en/ or /es/ in document.location | <p>i need to get the language that the user is using based on the document.location</p>
<p>urls are of the type:</p>
<pre><code>domain.com/en/blabla.html
domain.com/es/blabla.html
domain.com/it/blabla.html
</code></pre>
<p>so i was trying like this:</p>
<pre><code>function getLan(){
var idioma = document.location;
var idiomaTmp = idioma.split("/");
return = idiomaTmp[1];
}
</code></pre>
<p>but (i don't understand but) i get this error at firebug</p>
<pre><code>idioma.split is not a function
[Detener en este error] var idiomaTmp = idioma.split("/");
</code></pre>
<p>any idea why? or maybe a better solution?</p>
| javascript jquery | [3, 5] |
4,810,569 | 4,810,570 | Add TextView on top of Button? | <p>I'm building a contacts app which displays big contact photos. I need to add a label with the contacts name of each contact on top of the button (near the bottom) however I don't know how to get two views on top of each other. I cannot simply use settext since I need to add a semi-transparent background to the label.</p>
<hr>
<p>EDIT:
I managed to get it on top but I cannot figure out how to get it on the bottom of the button.</p>
<pre><code>RelativeLayout icon = new RelativeLayout(context);
// Create button
Button button = new Button(context);
button.setLayoutParams(new LayoutParams(LayoutParams.MATCH_PARENT,LayoutParams.MATCH_PARENT));
layout.addView(button);
// Create label
TextView label = new TextView(context);
label.setText(name);
label.setBackgroundColor(Color.argb(120, 0, 0, 0));
label.setLayoutParams(new LayoutParams(LayoutParams.MATCH_PARENT,LayoutParams.WRAP_CONTENT));
icon.addView(button);
icon.addView(label);
</code></pre>
<p>However the text appears on the top of the image and I want it to be on the bottom like this:</p>
<p><img src="http://i.stack.imgur.com/J5uaF.jpg" alt="enter image description here"></p>
<p>With xml this would be something like: <code>android:layout_alignBottom="@+id/myButton"</code> but I'm doing this programatically and I haven't found a way to do it. How can I place my label near the button?</p>
| java android | [1, 4] |
3,576,670 | 3,576,671 | Java query to website user database | <p>I am trying to figure out the method on connecting a java program to my website. I have a program that allows users to download jars to run as scripts in this program. For some of the jars, I want them to have a login that queries my website. So a user tries to run the script and has to enter details that correspond with their wordpress username on my website, and a certain DB field must be true to continue.</p>
<p>I don't have high encryption on these jars, so I'd prefer the username and password be merely sent to a php file to do the processing on my secure server. So I guess this is more of a PHP question in the end. </p>
<p>Anyway, I hope I'm clear on what I want.</p>
| java php | [1, 2] |
1,505,672 | 1,505,673 | popup window from right on the page load through jquery | <p>i searched on internet for j Query or java script code that do some work for me like when the the page completely loads a popup window come out from the right side for some time and then disappears after some specific time but i couldn't succeed. i need yours help and favor in this regard.(send me any link of document related my question or any you tube or any other media link from where i could get help now and for future).</p>
<p>thanks in advance </p>
| javascript jquery | [3, 5] |
5,738,403 | 5,738,404 | Download file from web to iPhone (C#) | <p>I have a website wich allows users to upload / downloads files (pdf, jpg, txt, etc.). It works nice as it is, but my problem is that users accesing the web on an iPhone (or iPad) can't dowload or access the file. I've tried to use "Respone.Redirect" to the file, but it doesn't work. I've use c# to make my website.</p>
<p>Do you have a piece of code i can use to make it work?</p>
<p>This is the code i'm using but doesn't work:</p>
<pre><code>if (Request.UserAgent.ToLower().Contains("iphone") || Request.UserAgent.ToLower().Contains("ipad"))
{
Response.Redirect(Server.MapPath(fi.FullName.ToUpper()));
}
</code></pre>
<p>Thank you.</p>
| c# iphone | [0, 8] |
352,213 | 352,214 | input:empty detects empty fields when there are none | <p>Using the below I am checking every input field is not empty</p>
<pre><code> if ( $("input:empty").length > 0 )
{
$(":text[value=]").css('background', 'rgb(255,220,200)');
$(":text[value!=]").css('background', 'rgb(255,255,255)');
alert('One or more fields are not completed')
e.preventDefault();
return false;
}
</code></pre>
<p>Even when all fields are full I still get an alert. What are the gotchas here? No fields highlight. I did try to extract which field it is but it came back with nothing.</p>
| javascript jquery | [3, 5] |
1,362,686 | 1,362,687 | How do I make a div element editable (like a textarea when I click it)? | <p>This is my code:</p>
<pre><code><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta name="viewport" content="width=device-width, user-scalable=no">
</head>
<body>
<style type="text/css" media="screen">
</style>
<!--<div id="map_canvas" style="width: 500px; height: 300px;background:blue;"></div>-->
<div class=b style="width: 200px; height: 200px;background:pink;position:absolute;left:500px;top:100px;"></div>
<script src="jquery-1.4.2.js" type="text/javascript"></script>
<script src="jquery-ui-1.8rc3.custom.min.js" type="text/javascript"></script>
<script type="text/javascript" charset="utf-8">
</script>
</body>
</html>
</code></pre>
<p>Thanks</p>
| javascript jquery | [3, 5] |
408,764 | 408,765 | Why is this not a valid, chained function? | <pre><code>$("#infoBox").hide(, function(){
alert('hidden!');
});
</code></pre>
<p>Just a small question, but my code breaks when I try to do this -</p>
| javascript jquery | [3, 5] |
5,599,034 | 5,599,035 | javaScript, jQuery - how to convert a timestamp to a date format like Jan 2, or Jan 26? | <p>Given a string like:</p>
<pre><code>Sun Feb 06 2011 12:49:55 GMT-0800 (PST)
</code></pre>
<p>How can you convert that to:</p>
<pre><code>Feb 6
</code></pre>
<p>And / Or</p>
<pre><code>Sun Jan 26 2011 12:49:55 GMT-0800 (PST)
to: Jan 26
</code></pre>
<p>Any ideas?</p>
| javascript jquery | [3, 5] |
1,707,625 | 1,707,626 | How to call method from separate package : Android | <p>I am trying to get a method from the file Duality.java to be run in Min.Java when a button is clicked. Below are the two files and what I am currently trying to do, which is not working. How do I get the method duality() to run when the button is clicked within Min.java?</p>
<p>Duality.java</p>
<pre><code>package com.android.control;
import android.util.Log;
import com.map.AppName.R;
public class duality {
public void duality(){
Log.e("Did It Run","Yes it ran");
}
}
</code></pre>
<p>Min.java</p>
<pre><code>package com.android.control;
import android.view.View;
import android.widget.Button;
import android.widget.LinearLayout;
import com.map.AppName.R;
public class Min extends LinearLayout {
Button but;
private final int ELEMENT_HEIGHT = 60;
private final int ELEMENT_WIDTH = 80;;
private final int TEXT_SIZE = 30;
public Min( Context context, AttributeSet attributeSet ) {
super(context, attributeSet);
this.setLayoutParams( new LinearLayout.LayoutParams( LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT ) );
LayoutParams elementParams = new LinearLayout.LayoutParams( ELEMENT_WIDTH, ELEMENT_HEIGHT );
createBut( context );
addView( but, elementParams );
}
private void createButton( Context context){
but = new Button( context );
but.setTextSize( TEXT_SIZE );
but.setText( "Go" );
but.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
Duality duality = new duality();
}
});
}
}
</code></pre>
| java android | [1, 4] |
3,665,207 | 3,665,208 | How to show the Birthdate in mm/dd/yyyy format if year is separated from it? | <p>I have a modalpopup inside it I have checkboxes,when I check the checkboxes and save the changes there is a dynamically created table with dynamically generated labels.I have a checkbox Birthdate inside the modal popup which shows the mm/dd only.And another checkbox below it that will show the year only, and will be visible if Birthdate checkbox is checked.
I want to show that if Birthdate checkbox is checked and the save button is clicked then insisde the dynamic table it will show the mm/dd only.And if year checkbox is checked ,and the save button is clicked, then it will show the Birthdate inside the dynamically created table as mm/dd/year.</p>
| c# asp.net | [0, 9] |
2,284,459 | 2,284,460 | Can't set tag/attribute value using c# codebehind on aspx page | <p>I have a custom .ascx control and would like to set one of it's properties using code. In the .aspx I have this:</p>
<pre><code><uc1:CustomContent ID="bunchOfContent" runat="server" contentPayload='<%# getRegionID() %>' />
</code></pre>
<p>In the codebehind I have:</p>
<pre><code> public partial class Region : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
... things
}
public string getRegionID()
{
//return "region_" + Request["region"];
return "thevalueIwant";
}
</code></pre>
<p>However, the value I want is not populated and the code is not invoked (breakpoints are not triggered).</p>
<p>What am I doing wrong? I've tried various changes like changing the quotes from " to ' to no quotes at all. Also I've used <%= instead of <%# but no luck. Thanks!</p>
| c# asp.net | [0, 9] |
2,494,432 | 2,494,433 | Should I learn C++ and Java simultaneously? | <p>I'd love to start writing Android apps. That's apparently all in Java. Programming jobs on Craigslist are at least 100 Java to 1 C++. I want to learn Java.</p>
<p>Unfortunately, the CS program I'm considering teaches C++ rather than Java, so C++ is what I'm learning. (I'm sure learning C++ will teach me to code well, but so would Java, and then I could get a job. It's frustrating that CS programs stick with languages they've used for 20 years instead of teaching languages that will help their students succeed.)</p>
<p>My question is whether it's a good idea to crack open the Java books on my shelf after I finish my C++ homework. Will I just end up confused, or will I end up better at both? Has anyone learned both C++ and Java simultaneously?</p>
<p>Edit: Thanks for all the quick answers! I've done some programming and I pick up languages easily, I think. Comparing side by side does appeal to me. But I also tend to bite off more than I can chew, and learning C++ and Java both seems like the kind of big meal that could get me in trouble.</p>
| java c++ | [1, 6] |
4,871,081 | 4,871,082 | Count occurrences of array objects | <p>I'm looking to create an array of counts based on the occurrences of the same object within a different array. So far, my code looks like this:</p>
<pre><code>var dates = [];
$.each(items, function (i, item) {
dates.push(item.date);
});
</code></pre>
<p>which returns:</p>
<pre><code>['2013/03', '2013/03', '2012/01', '2012/11', '2012/09', '2012/09', '2012/09']
</code></pre>
<p>After that, I'd like to end up with an array that looks like this:</p>
<pre><code>[2,1,1,3]
</code></pre>
<p>Any help would be much appreciated! </p>
| javascript jquery | [3, 5] |
2,730,800 | 2,730,801 | jQuery determine if selected element's CSS has certain property via identifying attribute | <p>I have a UL list inside that UL list is a handful of LI's that all have "rel" attributes as identifying tokens as the ID/Class tags have been used for other reasons. Anyway this is what I am attempting currently</p>
<pre><code>if($('#column1').find('li:[rel='+theElements[i]+']').css({'opacity':0})){hideit = true;}else{hideit = false;}
</code></pre>
<p>Which finds the right column, but then turns around and hides the whole column. I definately feel as though I am approaching this the wrong way. I tried .is(':visible') but I don't think that worked properly for me. Anyone have an Idea?</p>
<p>What I am doing based on the "hideit =" part is building a JSON string to control the layout and save things for a later date for my users.</p>
| javascript jquery | [3, 5] |
4,914,258 | 4,914,259 | Copy clipboard image into webpage using Jquery | <p>I want to implement copy clipboard image into webpage.</p>
<p>Ex. User click the printscreen button, opens a web page, clicks CTRL+V and the image is upload to the web page. Can it possible using jquery/javascript or PHP.</p>
<p>Is it possible in firefox?</p>
<p>Thanks in advance.</p>
| php javascript jquery | [2, 3, 5] |
4,864,846 | 4,864,847 | formatting money with jquery | <p>I wrote this little snippet that should format money but its failing on the period for some reason. It keeps adding them every time ...any idea why and is there a better way of doing this</p>
<pre><code>$(".dollar").blur(function() {
var curval = $(this).val();
if ($(this).val().indexOf("$") != 0) {
$(this).val("$" + $(this).val());
}
if ($(this).val().indexOf(".") != 0){
$(this).val($(this).val() + ".00");
}
});
</code></pre>
| javascript jquery | [3, 5] |
3,078,595 | 3,078,596 | Initialize value inside function only once | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/840397/static-variables-in-c">Static variables in C#</a> </p>
</blockquote>
<p>If you have a large function and in the middle somewhere you have a value that should be declared only the first time its encounter.</p>
<p>In c++ you can use static for this:</p>
<pre><code>void func() {
...
...
static double startPosition = 0.0;
int var = startPositino - value;
startPosition = var;
...
}
</code></pre>
<p>But in c# you cant have static variables inside a function, is there some other way to do this without declaring it outside the function?</p>
| c# c++ | [0, 6] |
5,433,990 | 5,433,991 | skip take methods with javascript arrays | <p>Are there methods by which I can skip a particular number of objects and take a certain number of objects from an array in javascript?</p>
<p>Basically the pattern I'm looking for is this.</p>
<p>Say I have an array of 8 objects.</p>
<p><strong>First loop:</strong></p>
<p>Return objects at index 0 to 3 from the array.</p>
<p><strong>Second loop:</strong></p>
<p>return objects at index 4 to 7 from the array.</p>
<p><strong>Third loop</strong>:</p>
<p>Back to the beginning so return objects at 0 to 3 again.</p>
<p>Ad infinitum.....</p>
<p>I'd love to see a jquery based solution if possible but I'm all open for raw javascript implementations too as I'm eager to learn.</p>
<p>Cheers.</p>
| javascript jquery | [3, 5] |
3,983,511 | 3,983,512 | Passing html data from a div to php | <p>I am able to get the total text data from a contentEditable div, but I would like to pass the data just as it is in the div with the HTML elements in tact to a PHP file. At the moment only the text is being returned by log stripped of html tags, </p>
<hr>
<p>First I dynamically add this to the div </p>
<pre><code> var user = "<a contenteditable='false' href='#' >"+name+" </a>";
$("#message").append(user);
</code></pre>
<hr>
<p>But when I try to log the content I only see the text within the 'a' tag returned </p>
<pre><code> var msg = $('#message').html();
console.log(msg);
</code></pre>
<hr>
<p>THi is my HTML</p>
<pre><code> <div name="message" contentEditable="true" id="message" ></div>
</code></pre>
<p>So an Example of what I would like to pass is this </p>
<pre><code> "Hello world!<a href='#'>Ned</a> Fails!"
</code></pre>
<p>Any help is appreciated, thanks.</p>
| javascript jquery | [3, 5] |
2,874,754 | 2,874,755 | Javascript: Equality Comparison between two Object/ Array | <p>Let us guess two objects with same property:</p>
<pre><code>var x = {a : 'some'},
y = {a: 'some'};
</code></pre>
<p>output:</p>
<p><code>x == y;</code> and <code>x === y;</code> both give false</p>
<p>Similarly for two array,</p>
<pre><code>var p = [1, 2, 3],
q = [1,2,3];
</code></pre>
<p><code>p == q</code> and <code>p === q</code> both give <code>false</code>.</p>
<p>But for if I do following:</p>
<pre><code>var x = y = {a: 'some'};
var p = q = [1, 2, 3];
</code></pre>
<p>All above comparison give <code>true</code>.</p>
<p>Why Javascript do such thing? Explain Please.</p>
| javascript jquery | [3, 5] |
2,319,994 | 2,319,995 | Jump to Java after 2yrs php experience | <p>I have 2yrs experience in php now I to want learn java should I go for some java(core, advanced) coaching or should I proceed further with learning joomla, cakephp, etc.
Will there be any help in learning java along with php as I have done only BCA and not MCA. Also I have not even touched java before. Any suggestion would be really helpful. </p>
| java php | [1, 2] |
4,303,452 | 4,303,453 | Set literal text with inline code in aspx file | <p>In an ASP.NET project, I have a literal. In order to set the text property, I used the following code:</p>
<pre><code><asp:Literal ID="ltUserName" runat="server" Text="<%= session.UserName %>" />
</code></pre>
<p>But instead of value of <code>session.UserName</code>, literal shows <code><%= session.UserName %></code>. I feel that solution is simple but I couldn't do it. How can set the text with inline code?</p>
| c# asp.net | [0, 9] |
1,734,670 | 1,734,671 | Trying to execute PHP from JavaScript, not working? | <p>I am using the following code: <code><a href="#" onclick="<?php var_dump($_SERVER)?>">$_SERVER Variable</a></code>. is this even possible? if not then how would I do this? I amn using $_SERVER for very specific - experimental purposes.</p>
<p>Thanks in advance!</p>
| php javascript | [2, 3] |
5,775,689 | 5,775,690 | Trying to add Javascript to PHP file | <p>I am trying to add javascript to a php file and everytime I add the javascript and save, it just displays the javascript and not the rest of the page content.</p>
<p>The code looks like this:</p>
<pre><code><section class="portlet grid_6 leading">
<header>
<h2>Time <script type="text/javascript">
<!--var currentTime = new Date()
var hours = currentTime.getHours()
var minutes = currentTime.getMinutes()
if (minutes < 10){
minutes = "0" + minutes
}
document.write(hours + ":" + minutes + " ")
if(hours > 11){
document.write("PM")
} else {
document.write("AM")
}
//-->
</script></h2>
</code></pre>
<p>Any suggestions?</p>
| php javascript | [2, 3] |
991,283 | 991,284 | Control .fadeOut() with jQuery | <p>I have the following jquery code:</p>
<pre><code><script type="text/javascript">
$(function(){
$('.gallery-slider li:gt(0)').hide();
setInterval(function(){
$('.gallery-slider li:first-child').fadeOut("slow")
.next('.gallery-slider li').fadeIn(1000)
.end().appendTo('.gallery-slider');},
2000);
});
</script>
</code></pre>
<p>The .fadeIn seems to be working, however the .fadeOut does not seem to be properly accepting the speed parameter. What do I need to change such that it will properly work? Thank you.</p>
| javascript jquery | [3, 5] |
5,745,301 | 5,745,302 | equal of php in asp.net | <p>what is the equivalent code in asp.net language???</p>
<pre><code><?php
$ch = curl_init("http://irnafiarco.com/queue");
$request["queue"] = file_get_contents("/path_to_my_xml_file/my_xml_file.xml");
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $request);
$response = curl_exec($ch);
curl_close ($ch);
echo $response;
?>
</code></pre>
<p>in <a href="http://irnafiarco.com/queue" rel="nofollow">http://irnafiarco.com/queue</a> a Listener that get requst xml file and saver xml file.</p>
| php asp.net | [2, 9] |
1,042,172 | 1,042,173 | How to ignore click() if an element has a certain class in jQuery? | <p>I know this should be easy stuff, but for some reason the click event is still firing for the element that has a "selected" class.</p>
<p>Can anyone spot the problem with this line?</p>
<pre><code>h.find("li a").not("li a.selected").click(function () {
</code></pre>
| javascript jquery | [3, 5] |
2,447,782 | 2,447,783 | Jquery simple if statement confusion | <p>I got a confirmation alert to confirm a user action.</p>
<p>on click "ok", it should do the following code:</p>
<pre><code>function disableSubmitButton() {
jQuery("#submitButton").attr("disabled", "true");
jQuery("#rent_space").submit();
}
</code></pre>
<p>on "cancel", the following.</p>
<pre><code>if (!confirm('Are you sure you want to proceed ?')) {
return false;
}
</code></pre>
<p>However, the way my code is currently formated, the first block of code is executed regardless of which button is pressed.</p>
<p>I think this is pretty much just moving the code around, but I'm unsure how to correctly do it as my precedent attempts all failed. Any help appreciated. Thanks !</p>
<p>Full code:</p>
<pre><code><script>
jQuery(document).ready(onDocumentReady);
function onDocumentReady() {
jQuery("#submitButton").click(disableSubmitButton);
jQuery('#submitButton').click(function() {
if (!confirm('Are you sure you want to proceed ?')) {
return false;
}
});
}
function disableSubmitButton() {
jQuery("#submitButton").attr("disabled", "true");
jQuery("#rent_space").submit();
}
</script>
</code></pre>
| javascript jquery | [3, 5] |
5,675,254 | 5,675,255 | How to select a div and display another div with more description about that div? | <p>Hi im new on jquery and nowhere in javascript but anyway im trying to create this carousel where you can click any item from the list and show more infos about that item on the left div.</p>
<p>Here is the preview:
<img src="http://i.stack.imgur.com/3YSfv.png" alt="web part screenshot"></p>
<p>I've already created the carousel on the right part but im stuck on what to use for displaying the left part when specific item is selected can i do it with any jquery plugin or do i need to deep dive in javascript?</p>
| javascript jquery | [3, 5] |
4,164,099 | 4,164,100 | Visual Studio 2010 working directory | <p>I'm developing a C# asp.net web application. I'm basically done with it, but I have this little problem. I want to save xml files to the "Users" folder within my project, but if I don't psychically hard code the path "C:......\Users" in my project it wants to save the file in this "C:\Program Files (x86)\Common Files\microsoft shared\DevServer\10.0\Users" folder, this is an annoying problem because I can't use the hard coded directory on our web hosts server. Also, I have a checkbox list that populates from the the "DownloadLibrary" folder in my project, and its suppose to download the files from that fold but its also looking to the "C:\Program Files (x86)\Common Files\microsoft shared\DevServer\10.0\" folder for download even though its populating from the correct folder. I'm very confused by this, its the first time something like this has ever happened to me. Can anyone please help me with this, its the only thing standing in my way to complete this project.</p>
| c# asp.net | [0, 9] |
5,906,310 | 5,906,311 | jQuery find - can I use a callback? | <p>So I'm trying to figure out if I can call a function inside of find() as below but I'm not getting anything returned to the console. Is this possible with find() or do I need to find an alternative? </p>
<pre><code>$(".tdInner1").find(".block", function () {
if( $(this).next().hasClass("continuation") ) {
console.log("yes");
} else {
console.log("no");
}
});
</code></pre>
| javascript jquery | [3, 5] |
3,757,567 | 3,757,568 | Triggering javascript setTimeOut events prematurely | <p>I'm using setTimeOut to control an automatic slideshow.</p>
<p>(You can see it here: <a href="http://thingist.com/labs/ipad.shtml" rel="nofollow">http://thingist.com/labs/ipad.shtml</a> -- basically something pretty to look at while I'm working. Images are coming from reddit's API)</p>
<p>The code looks approximately like this:</p>
<pre><code>next() {
image_url = images[key]["url"]
$("#image").html(vsprintf("<img src='%s'>", [image_url]));
key++;
setTimeOut(function() { next(); }, 30000);
</code></pre>
<p>The problem is that if I trigger the "next" function in another way (for instance with a div onclick), the setTimeOut callback function is still queued. So I'll "next" an image, but when the callback fires, it "next"s an image again. If you "next" many times in a row, there is an approx 30 second delayed burst that will follow you. (Once all of the queued timeouts fire).</p>
<p>Is there a way to prematurely trigger a setTimeOut's callback? Or to just dequeue it altogether?</p>
| javascript jquery | [3, 5] |
170,930 | 170,931 | Android Search Dialog soft keyboard stays open for too long | <p>I'm trying to use Android's built-in <a href="http://developer.android.com/guide/topics/search/search-dialog.html" rel="nofollow">Search Dialog</a>, and it's working fine except when I try to use it with a <a href="http://developer.android.com/reference/android/app/ProgressDialog.html" rel="nofollow">ProgressDialog</a>. The basic chain of events it his:</p>
<ol>
<li>User press the search button, enters a query and submits it.</li>
<li>The SearchManager calls the search Activity's onCreate method.</li>
<li>In the onCreate method, I call an AsyncTask that runs a query and shows a ProgressDialog in the onPreExecute method and hides it in the onPostExecute method.</li>
</ol>
<p>This all happens fine except as soon as I submit the query the screen looks like this:</p>
<p><img src="http://i.stack.imgur.com/Qwvkh.png" alt="enter image description here"></p>
<p>... which is pretty ugly. How can I prevent this from happening? </p>
<p><a href="http://code.google.com/p/mediawikiprovider/source/browse/#hg%2Fsrc%2Forg%2Fcdmckay%2Fandroid%2Fprovider%2Fdemo" rel="nofollow">You can find the source code for the project at Google Code.</a></p>
| java android | [1, 4] |
286,120 | 286,121 | saving Image using sql query method | <p>I am using following code: Note that i HAVE TO SEND SQL Query so using this procedure.</p>
<p><code>currentReceipt.image</code> is a <code>byte[]</code></p>
<pre><code> String updateQuery = "INSERT INTO MAReceipts(userId, transactionId, transactionType, receiptIndex, referenceNo, image, smallThumb, comments, createdOn, updatedOn) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?)";
java.util.Date today = new java.util.Date();
long t = today.getTime();
java.sql.Date now = new java.sql.Date(t);
for(int i = 0; i < receipts.size(); i++)
{
try{
Receipt currentReceipt = receipts.get(i);
String[] valVars = {
stringToDB(transaction.userId),
integerToDB(transaction.transactionId),
integerToDB(transaction.transactionType.getValue()),
integerToDB(i),
stringToDB(currentReceipt.referenceNo),
(currentReceipt.image != null ? imageToDB(currentReceipt.image): "null"),
(currentReceipt.smallThumb != null ? imageToDB(currentReceipt.smallThumb): "null"), // NEED TO CHANGE THIS TO SMALL THUMB
stringToDB(currentReceipt.comments),
dateToDB(now),
dateToDB(now)
};
mDb.execSQL(updateQuery, valVars);
}catch (Exception e){
Log.e("Error in transaction", e.toString());
return false;
}
}
public String imageToDB (byte[] image)
{
String convertedImage = image.toString();
return convertedImage;
}
</code></pre>
<p><code>return convertedImage</code> shows a value of <code>[B@43eb4218</code> or similar to that.</p>
<p>Now this data is saved in database. Please tell me is the image is correctly saving in database and can i retrieve it? If not then any preferable way , do tell me.</p>
<p>Best Regards</p>
| java android | [1, 4] |
4,313,674 | 4,313,675 | jQuery register click event twice | <p>I've written the following plugin <a href="http://jsfiddle.net/ilpet/yjGLF/" rel="nofollow">http://jsfiddle.net/ilpet/yjGLF/</a></p>
<p>The click event on '.selectUI span' registers twice but only in case of the first select box.</p>
<p>Can anyone please help me? Kinda' stuck on this.</p>
| javascript jquery | [3, 5] |
3,874,162 | 3,874,163 | loading javascript file after jquery.ready | <p>I want to load a javascript file at the end of jquery.ready so that the code in my ready handler doesn't have to wait to execute until this large javascript file is loaded.</p>
<p>My jquery.ready code doesn't rely on this javascript file at all. </p>
<p>Would this be a good way to do that?</p>
<pre><code>$(function(){
...
...
$('head').append('<script type="text/javascript" src="/largejs.js"></script>');
});
</code></pre>
| javascript jquery | [3, 5] |
3,258,595 | 3,258,596 | parentsUntil() in jQuery uses reversed order? | <p>I have this html structure : </p>
<pre><code><body>
<a>
<b>
<c>
<d>
</d>
</c>
</b>
</a>
</body>
</code></pre>
<p>I use the <code><d></code> element as the first node to start with.</p>
<p>Question :</p>
<pre><code> var s= $("d").parentsUntil("body").andSelf().map(function(){
return this.tagName;
}).get();
</code></pre>
<p>It should start from the bottom and to top meaning the <code>s</code> array should look like <code>d,c,b,a</code>.</p>
<p>But it apparently look like : <code>["A", "B", "C", "D"]</code></p>
<p>Why is that ? </p>
<p><a href="http://jsbin.com/ivapox/2/edit" rel="nofollow"><strong>Jsbin</strong></a></p>
| javascript jquery | [3, 5] |
4,821,186 | 4,821,187 | Finding out which CSS property is being animated by jQuery | <p>I see that <code>$element.is(':animated')</code> tells me if $element is being animated but is it possible to see which css properties are being animated.</p>
| javascript jquery | [3, 5] |
1,700,219 | 1,700,220 | Jquery submit and post to post a form unable to return data | <p>i have problem with jquery submit and post. I would like to submit a form and post it to my php for a check, and return the php result back to the form. However, I have problem with the returning of data, it basically ignores the result.</p>
<p>This is my html form:</p>
<pre><code><form id="form" method="post">
<p id="status">Status:</p>
<p class="text">
<label for="name" class="label">Name:</label>
<input type="text" id="name" name="name" value="" size="30" />
</p>
<p class="text">
<label for="email" class="label">Email:</label>
<input type="text" id="email" name="email" value="" size="30" />
</p>
<p class="submit">
<input type="submit" name="send_btn" id="send_btn" value="Send" />
</p>
</form>
</code></pre>
<p>This is my javascript to do the submit and post:</p>
<pre><code>$('#form').submit(function(e) {
e.preventDefault();
var name = $('#name').val();
var email = $('#email').val();
$.post('notify.php', {name: name, email: email}, function(data) {
$('#status').html(data);
});
});
</code></pre>
<p>This is the php that does the check and return the data:</p>
<pre><code><?php
if (isset($_POST['name'], $_POST['email']))
{
$name = htmlentities($_POST['name']);
$email = htmlentities($_POST['email']);
if ($name == "myname")
{
$output = 'It matches!';
}
else
{
$output = 'No matches!";
}
}
?>
</code></pre>
<p>Can please highlight what has gone wrong? Thank you.</p>
| php javascript jquery | [2, 3, 5] |
4,247,408 | 4,247,409 | Monitor the progress of an input stream / httpclient.exectute | <p>I'm trying to get the progress of an Apache HTTP Client Execute method. Is it possible to either</p>
<ol>
<li>Get the mount of input stream that has been read by the execute method
or </li>
<li>Monitor the execute process using some internal method either by percent or amount of data sent?</li>
</ol>
<p>The code below sends an input stream to the server (in this case an image) which is then stored appropriately. Problem is with high resolution cameras and slow mobile operators its hard to tell if an upload is actually taking place. The code does work, but feedback is desired.</p>
<pre><code>public List writeBinary(String script, InputStream lInputStream) {
Log.d(Global.TAG,"-->writing to server...");
HttpParams httpParameters = new BasicHttpParams();
HttpConnectionParams.setConnectionTimeout(httpParameters, 5*1000);
HttpConnectionParams.setSoTimeout(httpParameters, 60*1000);
HttpClient httpclient = new DefaultHttpClient(httpParameters);
HttpPost httppost = new HttpPost("http://xxx.xxx.xxx.xxx" + script);
String responseText = null;
List responseArray = new ArrayList();
try {
httppost.setEntity(new InputStreamEntity(lInputStream, -1));
HttpResponse response = httpclient.execute(httppost);
if (response.getStatusLine().getStatusCode() == 200){
InputStream lInputStreamResponse = response.getEntity().getContent();
DataInputStream lDataInputStream = new DataInputStream(lInputStreamResponse);
BufferedReader lBufferReader = new BufferedReader(new InputStreamReader(lDataInputStream));
while ((responseText = lBufferReader.readLine()) != null){
responseArray.add(responseText);
}
lInputStream.close();
}
} catch (ClientProtocolException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
return responseArray;
}
</code></pre>
| java android | [1, 4] |
4,485,684 | 4,485,685 | communication between PHP and Javascript | <p>I want to send some data to Javascript from PHP.(these two file is different file in same folder)
For example, If I calculate some value in PHP side, I want to send the data to javascript and I use the data.
How can I do this??</p>
| php javascript | [2, 3] |
2,851,250 | 2,851,251 | Why can't a submit button send to PHP and jQuery at the same time? | <p>I have this code.</p>
<pre><code><html>
<head>
<script src="http://code.jquery.com/jquery-latest.js"></script>
</head>
<body>
<form action = "" method = "POST" id = "form">
<img src = "circle.gif" id="loading" style="display:none; "/>
<input type="text" name = "text2">
<input type="submit" name="submit2" value="Send">
</form>
<?
if (isset($_POST['submit2'])){
echo $_POST['text2'];
}
?>
<script>
$('#form').submit(function(e) {
$('#loading').show();
return false;
});
</script>
</body>
</html>
</code></pre>
<p>I want to store in my db the value written in the textbox <strong>using PHP</strong>, and while it's being saved, I want to show a gif using jQuery, once the page is loaded, this gif should be removed.</p>
<p>Then, If I don't comment nothing, gif appears when submit button is submitted but echo fails.</p>
<p>If I comment the jQuery script, PHP echoes the vale written.</p>
<p>If I comment the PHP script, gif is shown but no echo of course...</p>
<p>How could I do what i'm asking. I know that my full script does until only showing the gif, but this without this I can't continue.</p>
| php jquery | [2, 5] |
5,671,474 | 5,671,475 | "Build" JS variable | <p>I'm having problem for a long time and I would like to solve it now.
In php, if you want to retreive variable $var123, you could do it this way</p>
<pre><code>$varname = "var123";
$var = $$varname;
</code></pre>
<p>How could I do the same in js and/or jquery?</p>
| php javascript jquery | [2, 3, 5] |
747,799 | 747,800 | jQuery/JS - How to compare two date/time stamps? | <p>I have two date/time stamps:</p>
<pre><code>d1 = 2011-03-02T15:30:18-08:00
d2 = 2011-03-02T15:36:05-08:00
</code></pre>
<p>I want to be above to compare the two:</p>
<pre><code>if (new Date(d1) < new Date(d2)) {alert('newer')}
</code></pre>
<p>But that does not appear to be working correctly. Is there a way to compare not just the dates but the times as well.? thanks</p>
<p><strong>UPDATE:</strong></p>
<pre><code>console.log(d1 + ' ' + d2);
console.log(new Date(d1) > new Date(d2))
2011-03-02T15:30:18-08:00 2011-03-02T15:36:05-08:00
false
2011-03-02T15:30:18-08:00 2011-03-02T15:30:18-08:00
false
2011-03-02T15:30:18-08:00 2011-03-02T14:15:04-08:00
false
</code></pre>
| javascript jquery | [3, 5] |
4,189,109 | 4,189,110 | CharSequence ArrayList to charSequence casting | <p>There is problem of class casting. Please tell me how to cast this. I want to this <code>ArrayList<CharSequence></code> in my <code>CharSequence[]</code> named <code>Contacts</code>.</p>
<p><code>java.lang.ClassCastException</code> (in Android):</p>
<pre><code>CharSequence[] Contacts;
List<CharSequence> contacts = new ArrayList<CharSequence>();
Contacts = (CharSequence[]) contacts.toArray();
for(CharSequence p : contacts) {
Log.i("log_tag", "AAAAAAAAAAAAAAAAAAA" + p);
}
</code></pre>
| java android | [1, 4] |
3,580,255 | 3,580,256 | onclick in jquery | <p>I am trying to use jQuery with PHP, like this:</p>
<pre><code><th bgcolor="#FFCC00" align="center">
<a href="" title="Sort" name="fname" id="fname" >First Name</a>&nbsp;
<?php if($_REQUEST['o']=="fn"){ ?><img border="0" id="b1" /><?php } ?>
</th>
</code></pre>
<p>jQuery code:</p>
<pre><code>$('#fname').click(function() {
alert ("come");
<?php if ($_REQUEST['o'] == "fn") { $_SESSION['clicked'] = "fn"; } ?>
window.location = '<?php echo $redirect ?>Clients.php?o=fn';
return false;
</code></pre>
<p>But it doesn't work. Thank you for any help.</p>
| php jquery | [2, 5] |
5,624,120 | 5,624,121 | Problem in assigning js value to php variable | <p>How can i assign a javascript value to a php variable,</p>
<p>This is what i want to do:</p>
<pre><code><?php
$pag = echo "<script language ='javascript'>var pn = document.getElementById('t').value;
document.write(pn); </script>";
?>
</code></pre>
<p>But getting error as: Parse error: syntax error, unexpected T_ECHO</p>
<p>or is there any other way to do, but i want to assign that valur to php variable.
can somebody help here?</p>
| php javascript | [2, 3] |
1,039,091 | 1,039,092 | ASP.NET C# Graphics Path shape | <p>I'm having a problem generating a certain path for a slightly modified round-corner rectangle. Here is the code I am using for generating the round rectangle:</p>
<pre><code> public static System.Drawing.Drawing2D.GraphicsPath RoundedRectangle(Rectangle r, int d)
{
System.Drawing.Drawing2D.GraphicsPath gp = new System.Drawing.Drawing2D.GraphicsPath();
gp.AddArc(r.X, r.Y, d, d, 180, 90);
gp.AddArc(r.X + r.Width - d, r.Y, d, d, 270, 90);
gp.AddArc(r.X + r.Width - d, r.Y + r.Height - d, d, d, 0, 90);
gp.AddArc(r.X, r.Y + r.Height - d, d, d, 90, 90);
gp.AddLine(r.X, r.Y + r.Height - d, r.X, r.Y + d / 2);
return gp;
}
</code></pre>
<p>Now I need to generate something like this:</p>
<p><img src="http://i.stack.imgur.com/Vyzuj.png" alt="enter image description here"></p>
<p>What would be the best approach to achieve this? Maybe by erasing the left border and then adding a right triangle somehow?</p>
<p>Any help is appreciated, thanks!</p>
| c# asp.net | [0, 9] |
4,506,819 | 4,506,820 | Is there access to the iPhone accelerometer using Javascript? | <p>I'm starting to try and do some web based game programming for my iPhone, and other web enabled phones that my friends have, and was having a hard time finding information on accessing the accelerometer using Javascript in the browser. </p>
<p>With the latest release, I know I've got access to location information now but I was hoping that I could make use of the accelerometer for some of the games I plan on making.</p>
<p>Alternately, is this also possible with the Android phones?</p>
| javascript iphone | [3, 8] |
2,101,442 | 2,101,443 | Where to store the data for jquery? | <p>I have gallery and a custom css drop-down menu to choose a category. If the user does not have javascript enabled, he should be able to click the a anchor without any problems. Otherwise, jquery & ajax are used.
My problem is, how do I know the category selected? Storing it as an attribute isn't an option, because it doesn't validate, even though it's convenient. I use HTML5 doctype but I am not sure if I should use data, because I might need to validate it to xhtml again.
Are there any other good options?</p>
| javascript jquery | [3, 5] |
1,475,678 | 1,475,679 | loading "child page" inside "parent page" through javascript and functionality of "child page" throws ERROR | <p>i have a masterpage. Its content place holder i.e page "parent page", contains a button "Call Batch". On click "Call Batch", the "child page" is loaded in div of "parent page" using javascript without refresh! Now this "Child Page" contains a label and a button. On click of button the text of label shoud change.
I want the functionality of "child page" on "parent page". I got the "child page" in "parent page" div but the functionality of "child page" is lost and i am getting error.Where to put the code of button click event which changes the text of label?</p>
<p>Please Help.</p>
| c# javascript asp.net | [0, 3, 9] |
2,665,560 | 2,665,561 | Toggle effect not working | <p>hello friends i want to use toggle on <code><li></code> when one <code><li></code> is open i want rest <code><li></code> get close i have tried this <a href="http://jsfiddle.net/MbTRD/1/" rel="nofollow">http://jsfiddle.net/MbTRD/1/</a> but its not working as i want</p>
<pre><code> $(function () {
$(".flyout").hide();
$(".flyout").siblings("span").click(function () {
$(this).siblings(".flyout").toggle(500);
});
});
</code></pre>
<p>Please help thanks </p>
| javascript jquery | [3, 5] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.