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
5,038,322
5,038,323
Can't hide labels; JQuery
<p>What am I doing wrong ? -<em>_</em>-</p> <p>Alert displays, but that's it.</p> <pre><code> &lt;asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeaderContent"&gt; &lt;script type="text/javascript"&gt; if (navigator.userAgent.match(/Android/i)) { } else if (navigator.userAgent.match(/webOS/i)) { } else if (navigator.userAgent.match(/iPhone/i)) { } else if (navigator.userAgent.match(/iPod/i)) { } else { alert("I'm a PC"); $('#Label2').hide(); $('#Label3').hide(); $('#Label4').hide(); } &lt;/script&gt; &lt;/asp:Content&gt; (...) &lt;div data-role="content"&gt; (...) &lt;label id="Label1"&gt; Explanation to save it and/or bookmark (PC / Others) &lt;/label&gt; &lt;label id="Label2"&gt; Explanation to save it and/or bookmark (iOS) &lt;/label&gt; &lt;label id="Label3"&gt; Explanation to save it and/or bookmark (Android) &lt;/label&gt; &lt;label id="Label4"&gt; Explanation to save it and/or bookmark (BlackBerry) &lt;/label&gt; &lt;/div&gt; </code></pre>
javascript jquery asp.net
[3, 5, 9]
5,218,450
5,218,451
jquery check if string starts with 1234
<p>Thanks for taking the time to answer my question.</p> <p>I want to check if a string has exactly 7 characters and starts with "1234". How do I do that?</p> <p>I know of string.substring but am not sure if I shouold use regex or are there any other alternative. Thanks in advance!</p>
javascript jquery
[3, 5]
1,552,894
1,552,895
Is there an property value named invisible?
<p>Instead using of:</p> <p><code>if ( ! $('#XX').is(':visible) )</code></p> <p>Is there a value called <code>invisible</code> ? I tried that one , but doesn't work.</p> <p>Thanks !</p>
javascript jquery
[3, 5]
4,156,165
4,156,166
VoiceRecognition.java - No Internet connection or Airplane mode
<p>I'm looking to allow my <code>VoiceRecognition.java</code> code to start another activity if it sees that the Phone does not have a signal/internet connection/etc. Here is the code (adopted from Google).</p> <pre><code>@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Inflate our UI from its XML layout description. setContentView(R.layout.voice_recognition); // Get display items for later interaction Button speakButton = (Button) findViewById(R.id.btn_speak); View exitButton = findViewById(R.id.exit_button); exitButton.setOnClickListener(this); mList = (ListView) findViewById(R.id.list); // Check to see if a recognition activity is present PackageManager pm = getPackageManager(); List&lt;ResolveInfo&gt; activities = pm.queryIntentActivities( new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH), 0); if (activities.size() != 0) { speakButton.setOnClickListener(this); } else { speakButton.setEnabled(false); Intent b = new Intent(this, ReminderEditActivity.class); startActivity(b);; } } </code></pre> <p>I tried to add the intent with the <code>ReminderEditActivity.class</code>. Furthermore, I tried to flip the If statement around to say that if (<code>activitysize = 0</code>) then go to the <code>ReminderEditActivity.class</code>. I got an error there.</p>
java android
[1, 4]
5,673,711
5,673,712
Why use Async HTTP post Android
<p>I currently have this running in my app. The use of this is for users to send me simple messages. A dialog is opened where they can type then when they click send button I want another dialog opened saying processing and finally one opened saying thanks if successful.</p> <p>Is the only / best way to do this by using asyncTask? And is there a good example/walkthrough anywhere for implementing this as I understand the theory, but not really implementation.</p> <pre><code>public void postData() { HttpParams params = new BasicHttpParams(); params.setParameter(CoreProtocolPNames.PROTOCOL_VERSION, HttpVersion.HTTP_1_1); HttpClient httpclient = new DefaultHttpClient(params); HttpPost httppost = new HttpPost("http://www.mysite.com/script.php"); try { List&lt;NameValuePair&gt; nameValuePairs = new ArrayList&lt;NameValuePair&gt;(2); nameValuePairs.add(new BasicNameValuePair("id", "12345")); nameValuePairs.add(new BasicNameValuePair("stringdata", messageval)); httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs)); HttpResponse response = httpclient.execute(httppost); responseBody = EntityUtils.toString(response.getEntity()); } catch (ClientProtocolException e) { // TODO Auto-generated catch block } catch (IOException e) { // TODO Auto-generated catch block } } </code></pre>
java android
[1, 4]
119,799
119,800
External js file problems
<p>I have an external js file with some simple functions. They work fine when in the aspx page. When they are in the external js file, I get an error on the dev machine that the function is not defined. After playing with this for two days in IE9, I tried it in FF and it worked fine. Then, it worked in IE9 too. I had a second site with the same problem. I checked it again and it didn't work in IE9, then checked it in FF, it worked, and then it continued to work in IE9. What could possible cause this?</p>
javascript asp.net
[3, 9]
6,021,587
6,021,588
javascript error when using google maps ASP.NET GoogleMaps User Control
<p>when i try to run the google maps on an asp .net page i get a javascript error saying that it doesnt like the key im using but i have the key from google</p> <p>can anyone help please?</p> <p>thanks</p> <p>Kevin</p> <p>edit this is the key that google provided ABQIAAAAcPBSoXRloZCu5tYnhpZBCBRrxSVjvAJ3kkmtcIQSxWeYirsDfxTECPvByIoh90G8hcPG55N3s_3E2g</p> <pre><code>&lt;cg1:GMap ID="gMap1" runat="server" Height="250px" Width="350px" enableServerEvents="true" Visible="False" serverEventsType="AspNetPostBack" /&gt; </code></pre>
c# asp.net javascript
[0, 9, 3]
5,072,965
5,072,966
Python Jpype integration
<p>Hi i am using JPype The following is the code i am trying to use </p> <p>from jpype import * startJVM("C:\Program Files\Java\jdk1.6.0_14\jre\bin\client\jvm.dll","-ea") java.lang.System.out.println("hai") shutdownJVM() </p> <p>It is giving error in the execution of the println statement</p> <blockquote> <blockquote> <blockquote> <p>java.lang.System.out.println("hai") File "", line 1 java.lang.System.out.println("hai") ^ SyntaxError: invalid syntax</p> </blockquote> </blockquote> </blockquote> <p>Can any body help me please ?? thanks in advance.</p>
java python
[1, 7]
5,717,762
5,717,763
android mobile to mobile file transfer
<p>Although it seems like a simple problem, I have really come up empty on Google. I want to take a 3gp file on one device's SD card and transfer it over WIFI to another device. Really not sure how to do this, I would appreciate if someone could provide me some references or code snippets. Do I really have to do this at the FileOutputStream / socket level?</p>
java android
[1, 4]
5,324,167
5,324,168
Refresh parent window when the pop-up window is closed
<p>Is there any way I can refresh the parent window when a popup window is closed without adding any javascript code to the popup window?</p> <p>I have a page parent.php on which users can click "open popup" to open a popup window. This popup window shows some flash content and its not possible for me to add something like </p> <pre><code>window.onunload = function(){ window.opener.location.reload(); }; </code></pre> <p>to the popup window page markup.</p> <p>Is there any other method to achieve this? Thanks</p>
javascript jquery
[3, 5]
3,250,601
3,250,602
Isn't the jQuery text() function cross browser?
<p>I want to get the text that contains the element inside a td. Even not knowing what's inside this td using the jQuery <code>mytd.text()</code> returns the text successfully in IE8.</p> <p>However I noticed that this function <code>text()</code> <strong>may be not cross browser</strong> since it returns me diferent values in Chrome and FF than in IE8. In both Chrome and FF the string result is much longer than in IE8. It's preceded and appended with empty values <code>" "</code></p> <p>As of I have a variable <code>mytd</code> that has the td object how could I retrieve the text that contains in a cross browser manner?</p> <pre><code> // Does not work var text = mytd.text() </code></pre> <p>thank you.</p>
javascript jquery
[3, 5]
550,072
550,073
Building your own sources on Android
<p>I have coded a new provider and now want to get this into android working. I changed security.properties and Security.java files in android under libcore directory.</p> <p>Now how do I build the files?</p> <p>I simply did a make on android sources and I already see the main provider file that I have written.</p> <p>However the class files are missing. I know that I have to tweak some make files to include my sources in the classpath but dunno which one to tweak :(</p> <p>I also see the /out/target/common/obj/JAVA_LIBRARIES/core_intermediates/ has to have my classes....</p> <p>Please HELP</p>
java android
[1, 4]
3,676,061
3,676,062
Conflicting javascript
<p>I've got a bunch of jquery/javascript running on a new site I'm building, and of course I've run into a conflict. I can't figure out where it's coming from as I'm not that great with js. There is a sticky relocate function that's supposed to show a navigation bar when you start scrolling the page but since I've added in a category filter function, the navigation bar no longer shows.</p> <p>Site: <a href="http://www.audreylynn.net/demo" rel="nofollow">audreylynn</a></p>
javascript jquery
[3, 5]
3,749,039
3,749,040
Custom jQuery scrollbar inside jQuery tooltip
<p>I'm using nanoscroller.js and tiptip.js , although for my question I'm not sure specific libraries matter that much (but they may).</p> <p>I have a working tool tip, I have a working scrollbar. When used seperately.</p> <p><strong>My goal</strong> is to have a working custom scrollbar inside the tooltip.</p> <p><strong>HTML:</strong></p> <pre><code>&lt;a class="tooltip"&gt;Open tooltip&lt;/a&gt; &lt;div class="tooltip-html" style="display:none;"&gt; &lt;div id="main-content" class="nano"&gt; &lt;div class="Content"&gt; &lt;div class="blue"&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; </code></pre> <p><strong>JS:</strong></p> <pre><code>var tip_html = $('.tooltip-html').html(); $('.tooltip').tipTip({activation: 'click', maxWidth: "230px", defaultPosition: "bottom", keepAlive: true, content: tip_html }); $("#main-content.nano").nanoScroller(); </code></pre> <p>First thing I noticed about the above: With this arrangement the nanoscroller was only applied to the first set of html, not the set that is in the tooltip.</p> <p>So I then applied the scrollbar first before grabbing the html and adding it to the tooltip, this applied the scrollbar to the tooltip but it wasn't functional.</p> <p>Tried a lot of different approaches here (applying the scrollbar to every id that matched, different order of when to call which, etc), and I'm definitely stuck. Any help is appreciated, thanks!</p>
javascript jquery
[3, 5]
1,521,008
1,521,009
How to get parameters from a link that callls a jQuery function?
<p>I have a link that looks like this:</p> <pre><code>&lt;p class="half_text"&gt; &lt;?php echo $upvotes; ?&gt; &lt;strong&gt;&lt;a class="vote_up" style="color: #295B7B; font-weight:bold;" href="#"&gt;Vote Up&lt;/a&gt;&lt;/strong&gt; | &lt;?php echo $downvotes; ?&gt; &lt;strong&gt;&lt;a class="vote_down" style="color: #295B7B; font-weight:bold;" href="#"&gt;Vote Down&lt;/a&gt;&lt;/strong&gt; &lt;/p&gt; </code></pre> <p>and I have the jQuery code that looks like this:</p> <pre><code>&lt;script type="text/javascript"&gt; $(document).ready(function() { $('.vote_up').click(function() { alert("up"); alert ( "test: " + $(this).attr("problem_id") ); // $(this).attr("data-problemID"). $.ajax({ type: "POST", url: "/problems/vote.php", dataType: "json", data: dataString, success: function(json) { // ? :) } }); //Return false to prevent page navigation return false; }); $('.vote_down').click(function() { alert("down"); //Return false to prevent page navigation return false; }); }); &lt;/script&gt; </code></pre> <p>How can I get the parameter value which is problem_id ? If I add a url in the href parameter, I think the browser will just go to the url, no? Otherwise - how can I pack parameter values into the jQuery?</p> <p>Thanks!</p>
php javascript jquery
[2, 3, 5]
2,704,429
2,704,430
Test app in release mode
<p>How do I test an app while in release mode? I tried <code>ant release test</code>, but it gave this error</p> <pre><code>test: [echo] Running tests ... [exec] INSTRUMENTATION_STATUS: id=ActivityManagerService [exec] INSTRUMENTATION_STATUS: Error=Unable to find instrumentation info for: ComponentInfo{com.kizbit.speedyreader.tests/android.test.InstrumentationTestRunner} [exec] INSTRUMENTATION_STATUS_CODE: -1 [exec] android.util.AndroidException: INSTRUMENTATION_FAILED: com.kizbit.speedyreader.tests/android.test.InstrumentationTestRunner </code></pre> <p>I already copied the keystore to the test project.</p> <p>I want to test while in release mode, because it saves a lot of state. If I re-install in debug mode, then I have to uninstall and re-install it, and that deletes all the state.</p>
java android
[1, 4]
4,571,329
4,571,330
Webview in android able to run php
<p>I am working on a Android Application that has web view where i need to load html, jquery and js and php also. Now i am able to load html jquery css javascript , But my problem is i am unable to load php in web view in offline is there any way to execute php in web view Please Help Me Thanks In Advance</p>
php android
[2, 4]
3,449,762
3,449,763
How can I reference a non-global function with window[functionName]?
<p>I'm making something like a framework for JS. I want the users to be able to add functions to a specific action, just like in wordpress plugins:</p> <pre><code>add_action("wp_head", "functionName"); </code></pre> <p>I looked at other questions, and the most appreciated answer was</p> <pre><code>window['functionName'] </code></pre> <p>But how do I do it when the function "functionName" is <strong>not global</strong>, but sits within $(document).ready({}); for example? It throws an error Uncaught TypeError: Cannot call method 'call' of undefined</p> <p>There is one more option, that is to pass the user's function as an argument to add_action (if we suppose that my function will be named add_action as well):</p> <pre><code>add_action("some_event", functionName); // in the framework's JS file: function add_action(event, fn) { fn(); } </code></pre> <p>But I have a hunch that this will be inefficient as hell and a wrong way to do it.</p>
javascript jquery
[3, 5]
4,314,502
4,314,503
Javascript onclick and escapes
<p>If my onclick event looks like:</p> <pre><code>&lt;input .... onclick="someEvent('blah', '/some/folder/?a=1')" /&gt; </code></pre> <p>Should the <code>?</code> character be escaped?</p>
javascript jquery
[3, 5]
1,970,352
1,970,353
jquery div fadeout on child form event
<p>I'm new in jquery/javascript and couldn't google for any solution.</p> <p>I have number of divs generated automatically from cycle. Each of them contains form as a child element. So on form submit I'd like the corresponding parent div to fadeout.</p> <p>I am using Ajax for form submission. Basically, now I have an event handler 'submit' binded to all child forms within divs. Here what it looks like</p> <pre><code> $('#divCreatedActivities').children('div').children('form').submit(function() { var options = { target: $('#divCreatedActivities').children('div'), dataType: 'xml', success: submittedActivity }; $(this).ajaxSubmit(options); return false; }); function submittedActivity() { alert('ahoy!'); } </code></pre> <p>How can I do that with JQuery? </p> <p>Thank you.</p>
javascript jquery
[3, 5]
5,981,593
5,981,594
Jquery modal dialog and form submit
<p>I have a form where I need to display a confirm dialog to the user before saving.</p> <p>I have done this by intercepting the form submit function as follows:</p> <pre><code>$("#my_form").submit(function(e) { if ($("#id").val() &gt; 0) { var $dialog = $('&lt;div&gt;&lt;/div&gt;') .html('Are you sure?') .dialog({ autoOpen: false, title: 'Save New Invoice', modal: true, buttons: { "OK": function() { $dialog.dialog('close'); $("#my_form").submit(); }, Cancel: function() { $(this).dialog("close"); } } }); $dialog.dialog('open'); e.preventDefault(); return false; } }); </code></pre> <p>However, the OK button does not function correctly - the dialog does not close and the form is not submitted.</p> <p>If I change the OK function as follows, then the dialog is closed and the alert is shown.</p> <pre><code>"OK": function() { $dialog.dialog('close'); alert('form will be submitted'); }, </code></pre> <p>So, I am guessing that this is something to do with the <code>$("#my_form").submit();</code> method.</p>
javascript jquery
[3, 5]
2,378,265
2,378,266
how to refresh my index page after form submission?
<p>I am having a dynamic content in my jsp pages that has to be refreshed once my form is submitted.Form submission is not done via ajax.I have tried with data-cache=never,rel=external. They ddnt work for me.</p>
javascript jquery
[3, 5]
1,819,192
1,819,193
Store session value in a datatable in C#
<p>I have created a session which store multiple value using Hashtable.</p> <pre><code>string productCode = lblProductId.Text; string mrp = lblPrice.Text; string quantity = txtQuantity.Text; Hashtable htPdt = new Hashtable(); htPdt.Add("pdtId", "" + productCode + ""); htPdt.Add("price", "" + mrp + ""); htPdt.Add("quantity", "" + quantity + ""); Session["bag101"] = htPdt; </code></pre> <p>Now I want to store this session data in a Datatable. How can I do it?</p> <p>I am using this code</p> <pre><code>Datatable DtbBag101= (Datatable)Session["bag101"]; </code></pre>
c# asp.net
[0, 9]
1,151,395
1,151,396
Any ways to detect CSS changing?
<p>I have this tags:</p> <pre><code>&lt;div&gt; &lt;h1&gt; &lt;/h1&gt; &lt;/div&gt; </code></pre> <p>Then I have a javascript lib that changes font-size of the <code>&lt;div&gt;</code> tag, but <code>&lt;h1&gt;</code> has its own CSS. Then text in <code>&lt;h1&gt;</code> does not change. I just want resizing font-size of <code>&lt;div&gt;</code> affecting <code>&lt;h1&gt;</code>. I cannot change the javascript lib nor the html structure. So, I think that it would be good to have something like </p> <pre><code>$('div').bind('css-change', function (){ $('h1').css('fontSize',$('div')Text.css('fontSize')); }) </code></pre> <p>Any ways to have something like .bind('css-change') ?</p>
javascript jquery
[3, 5]
5,327,722
5,327,723
Get the return confirm popbox value in asp .net C#
<p>How can i get the value that was pressed in the confirm box?</p> <pre><code> &lt;script type = "text/javascript" language = "javascript"&gt; function confirm_proceed() { if (confirm("Are you sure you want to proceed?")==true) return true; else return false; } &lt;/script&gt; </code></pre> <p>C#</p> <pre><code> Button2.Attributes.Add("onclick", "return confirm_proceed();"); </code></pre>
c# javascript asp.net
[0, 3, 9]
2,036,138
2,036,139
Creating home screen browser shortcuts from android app
<p>I have a php site, which is basically like a site directory, what I want to achieve is to create a home screen shortcuts from when I click a URL in an application, meaning: I need to first, intercept the url, decode it, and create a browser shortcut to a parameter within the url.</p> <p>Thanks in advance, Itai.</p>
java android
[1, 4]
5,151,726
5,151,727
WebBrowser InvokeScript
<p>I have a Webrowser with some settings that are changed using javascript. I'm trying to use the example <a href="http://msdn.microsoft.com/en-us/library/cc452443%28v=vs.100%29.aspx" rel="nofollow">here</a> but can't get the correct syntax</p> <p>the script looks like this</p> <pre><code> &lt;div class="DisplayInput"&gt;&lt;input type="radio" name="displaytype" value="decimal" onclick="setdisplayType('decimal');" checked="checked"&gt;&lt;a href="javaScript:setdisplayType('decimal');" onclick="s_objectID=&amp;quot;javascript:setdisplayType('decimal');_1&amp;quot;;return this.s_oc? this.s_oc(e):true"&gt;Decimal&lt;/a&gt;&lt;/div&gt; </code></pre> <p>So far I've tried these with no success</p> <pre><code>this.webBrowser1.InvokeScript("setdisplayType"); this.webBrowser1.InvokeScript("setdisplayType('decimal')"); this.webBrowser1.InvokeScript("setdisplayType","decimal"); </code></pre>
c# javascript
[0, 3]
3,145,927
3,145,928
Launch / Check application
<p>I have the following script which I am using in an intranet environment:</p> <pre><code>function LaunchApp(the_app) { var ws = new ActiveXObject("WScript.Shell"); ws.Exec(the_app); } </code></pre> <p>This allows me to pass it an exe path to launch directly from a web page as long as internet explorer's intranet security settings are adjusted.</p> <p>The problem is, that not everyone in out network has the same applications, some has more, others have less. So I was wondering, is it possible to extend the script above to some how check if the path given exists on the users computer before attempting to launch it?</p>
javascript jquery
[3, 5]
1,337,938
1,337,939
Password remember does not work as needed
<p>On the website I am working on it has been deployed but the problem I am facing is that when I enter a username and password and click on the check box to remember...It remembers the password for sometime.. wen I login in after 5 or 10 minutes it remembers the password but aftr a long period of time like about 2hours it forgets the username and password and i have to type it in all over again... this dint used to happen with the old server as even I could sign in and it remembered the password the next day until i log off... what can be the reason </p> <p>The session state im using is: </p>
c# asp.net
[0, 9]
5,058,448
5,058,449
How to set an empty string as a default value for a DataSource parameter in ASP.NET?
<p>This doesn't work. I've got an exception from SQL databse that column does not allow nulls.</p> <pre><code>&lt;asp:SqlDataSource ID="MyDataSOurcet" runat="server" ConnectionString="&lt;%$ ConnectionStrings:MyConnectionString %&gt;" InsertCommand="INSERT INTO MyTable(Name) VALUES (@Name) WHERE NameID = 1" &lt;InsertParameters&gt; &lt;asp:Parameter Name="Name" Type="String" DefaultValue=""/&gt; &lt;/InsertParameters&gt; &lt;/asp:SqlDataSource&gt; </code></pre>
c# asp.net
[0, 9]
830,122
830,123
toggle two images by fading
<p>How can I toggle two images by fading using jQuery <code>.fadeToggle</code> method.</p>
javascript jquery
[3, 5]
2,303,166
2,303,167
Does JavaScript/jQuery always have the latest element or version of that element?
<p>I am writing a userscript that grabs an element with something like: </p> <pre><code>var theElement = $('div.someClass:last'); </code></pre> <p>To grab the last element in the class <code>.someClass</code> so I can parse it. </p> <p>This is where my question comes in. There is another script on this page dynamically adding a new <code>&lt;div class="someClass"&gt;</code> every once in a while. I want to always have the last element on the page with a class of <code>.someClass</code> selected. </p> <p>Will Javascript/jQuery always have the latest element or will I have to manually "refresh" it?</p>
javascript jquery
[3, 5]
4,451,048
4,451,049
cant figure out null pointer expection
<p>okay, so ive been trying to find a solution to this for hours but i cant find one. Heres me code that the log cat has said the null pointer expection is:</p> <pre><code>import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.Button; public class splash extends Activity{ Button begin; @Override protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate(savedInstanceState); begin=(Button) findViewById(R.id.button); begin.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { // TODO Auto-generated method stub Intent startmenu=new Intent("com.life.project.menu"); startActivity(startmenu); } }); } } </code></pre> <p>and heres the xml file:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" android:background="@drawable/icon3"&gt; &lt;TextView android:id="@+id/textView1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="You have 20 minutes to increase your status as much as possible." /&gt; &lt;Button android:id="@+id/button" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Begin!" android:layout_gravity="center" android:typeface="monospace" /&gt; &lt;/LinearLayout&gt; </code></pre> <p>so when i try to run this it gets a null pointer exception and i dont know whats wrong with it, any ideas?</p>
java android
[1, 4]
4,260,178
4,260,179
Is there a way i can disable the information bar for ActiveX controls using JavaScript or XHTML?
<p>I save this file as test.html and when I opened this file in IE, I am getting Information Bar for ActiveX Controls, Is there any way we can disable this thing using javascript code or jQuery code?</p> <pre><code>&lt;html&gt; &lt;body&gt; &lt;h1&gt;My First Web Page&lt;/h1&gt; &lt;script type="text/javascript"&gt; if(navigator.appName == "Microsoft Internet Explorer") { window.location = "http://www.google.com/" } else { window.location = "http://www.yahoo.com/" } &lt;/script&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>And I just wanted to make sure, as I am running locally on my box so that is the reason it is showing ActiveX control Information bar? And Once I upload this file to a remote server and access it from there then this active x bar will not appear?? But is there any way programmatically to disable this information bar? Any suggestions will be appreciated.</p>
javascript jquery
[3, 5]
3,624,921
3,624,922
How to reset specific form element in a search form?
<p>I have a search form that has different elements in it, checkboxes, selects, text fields etc. Each change is accompanied by an ajax call that gets the number of results as a sort of counter. I would like to reset only the previous element that caused the counter to return a value of 0.</p> <p>I was thinking about keeping track of each change in a variable, and each time the counter evaluates to 0, I would then reset the element that caused the change. I however fear that this could force me to handle all the different elements differently with a lot of code and jumping around.</p> <p>Is there a possible more elegant solution to the problem that anybody can think of? I would appreciate the help.</p>
javascript jquery
[3, 5]
4,503,347
4,503,348
jQuery triggers out event even though it should be still in
<p>I am facing a rather awkward problem. I register two event handlers, one for <code>mouseenter</code> and one for <code>mouseout</code> for the <code>li</code> elements on the page. It has multiple <code>div</code> areas inside it. When I leave the <code>li</code> element it calls the <code>out</code> handler, which is ok. What is not ok is that the <code>out</code> handler is also triggered when I leave a <code>div</code> inside that <code>li</code>. </p> <p>Below is an image that illustrates it. The blue area is the <code>li</code> element which I register an <code>enter</code> and <code>out</code> event for.<br> <img src="http://i.stack.imgur.com/POwAc.jpg" alt="enter image description here"> </p> <p>I tried to register handlers on the inner <code>divs</code> that would stop the propagation but it only results in the triggering of the <code>out</code> handler when I enter those inner divs. </p> <p>Any idea what is going wrong here?</p>
javascript jquery
[3, 5]
408,404
408,405
auto tab with exception
<p>I have a form where I primarily input single digit numbers. I want to auto tab to each input field, however, sometimes, there is a need for a two digit number. The two digit number will always start with "1". So I would like to auto tab on all single digit numbers except 1 and if a 1 is entered the auto tab is disabled so that a second digit can be entered. I will manually tab to the next field where auto tab would then resume.</p> <p>I can find plenty of code for auto tabbing but none with this type of exception. I am new to javascript.</p>
javascript jquery
[3, 5]
4,938,092
4,938,093
Pass jQuery Variable into ASP.NET Code Behind Using HiddenField
<p>I'm experiencing problems passing the physical size of a div (height and width) into an ASP.NET variable using a hidden field and jQuery.</p> <p>This is my code, but it is not working:</p> <pre><code>$("&lt;%=hfAdvertHeight.ClientID %&gt;").val($("#Advert_Container").attr("height")); </code></pre> <p>Any ideas?</p> <p>Many thanks.</p>
c# jquery asp.net
[0, 5, 9]
5,997,728
5,997,729
Endless loop in jQuery and PHP. What should I change to make it work?
<pre><code>&lt;? if($_POST['begin']) { while(1) { echo "1"; sleep(2); } die(); } ?&gt; &lt;span class="answer"&gt;&lt;/span&gt; &lt;script type="text/javascript"&gt; $(document).ready(function() { $.ajax({ type: "POST", url: "exp.php", data: "begin=1", success: function(msg){ $(".answer").html(msg); } }) }) &lt;/script&gt; </code></pre> <p>It, of course, doesn't work. What should I change to make it work? Can I avoid using setInterval, setTimeout or other functions in javascript?</p> <p>By the way, what I am trying to do here is to write number 1 every two seconds.</p>
php javascript jquery
[2, 3, 5]
4,161,293
4,161,294
Call A Function On ScrollExtend - jQuery
<p>How to call a function on scrollExtend. I need the code like below but its not working fine. How to make it work?</p> <pre><code>$(document).ready( function() { $('#scrollBox').scrollExtend(function() { //alert('scroll extend working'); //functionCall(); }); } ); </code></pre> <p>But the actual code of scrollExtend is like below in which i dont know how to call a function on it,</p> <pre><code>jQuery('.scroll_container').scrollExtend({ 'target': 'div#scroll_items', 'url': 'more_content.html', 'newElementClass': 'list_item more_content' }); </code></pre>
javascript jquery
[3, 5]
24,648
24,649
Why I am not able to control Media volume when the alert dialog is shown in Android?
<p>I am controlling media volume programmatically from my app. I am setting alert dialog when the media volume is below certain range. When this alert is displayed at this point if I try to adjust the volume controller buttons the ringer volume will get adjusted not media volume. Why is this happening?</p> <p>I am using these lines to control media volume..</p> <pre><code>case KeyEvent.KEYCODE_VOLUME_DOWN: audio.adjustStreamVolume(AudioManager.STREAM_MUSIC, AudioManager.ADJUST_LOWER, AudioManager.FLAG_SHOW_UI); return true; case KeyEvent.KEYCODE_VOLUME_UP: audio.adjustStreamVolume(AudioManager.STREAM_MUSIC, AudioManager.ADJUST_RAISE, AudioManager.FLAG_SHOW_UI); return true; </code></pre> <p>Once the alert dialog is dismissed I am able to control the media volume. I am facing this issue only in phone not in tablet.</p>
java android
[1, 4]
2,066,276
2,066,277
Convert C++ enum to python int
<p>I have a python wrapper for a C++ function that returns an enum.</p> <p>When I do the following:</p> <p>returnValue = mylibrary_py.getRole() # this returns an enum</p> <p>I get the following error when I load my web page:</p> <pre><code>No to_python (by-value) converter found for C++ type: mynamespace::MyRole </code></pre> <p>How can I solve this??</p>
c++ python
[6, 7]
1,920,899
1,920,900
jQuery dynamic event binding
<p>I think this is a pretty basic question, but I'm struggling with this problem.</p> <p>On my form I have an option to dynamically add a new row to the table, which is simple enough to do with jQuery. On one of the elements, I need to bind an event, also relatively straightforward. The part I'm having problems with is the event that needs to be bound has to take a parameter. So, the code I've got:</p> <pre><code>$(newrow).find("select").each(function () { var ochange = function(handle){ var thisselect = "select" + handle; var thislink = "link" + handle; var thiscollate = "collate" + handle; if(document.getElementById(thisselect).value == 4){ document.getElementById(thislink).style.visibility = 'visible'; } else{ document.getElementById(thislink).style.visibility = 'hidden'; document.getElementById(thiscollate).value = ""; } }; $(this).change(ochange); $(this).attr("name", "select" + numfields); $(this).attr("id", "select" + numfields); }); </code></pre> <p>The event binds as expected, but the "handle" variable doesn't register (of course because I'm pretty sure this is incorrect syntax). Also, this function that I want to bind to the dynamic form element is actually already defined, so if there is a way I can call an already-defined function (that takes a parameter) I'd love to hear about it.</p>
javascript jquery
[3, 5]
1,654,864
1,654,865
remember a variable's history
<p>Let's say I have a page that slides right and left and loads new content using ajax. A variable gets set to leftslide or rightslide depending on the slide direction.</p> <p>When you click the back button in the browser the html5 popstate event enables and loads the last page using ajax. Now using the variable I can determin what direction to slide in when the back button is pushed <code>if (var direction == 'leftslide'){ direction = 'rightslide'}</code> (to get a nice "back" effect).</p> <p>But if you push the backbutton twice the slide will not always be correct sine it will just reverse the slide instead of looking at the slide of that paticular page.</p> <p>So is there any way to save a variables history and get the order back using javascript?</p> <p>thanks for reading and thinking about this :)</p>
javascript jquery
[3, 5]
154,941
154,942
How to access some row databound functions in row updating event
<p>I have this code in row data bound event :</p> <pre><code> if (e.Row.RowType == DataControlRowType.DataRow &amp;&amp; (e.Row.RowState &amp; DataControlRowState.Edit) == DataControlRowState.Edit) { string CCC = (string)DataBinder.Eval(e.Row.DataItem, "COLUMN"); DropDownList DropDownList1 = (DropDownList)e.Row.FindControl("DropDownList1"); } </code></pre> <p>How can I make the code to work in row updating event . I want to add in rowupdating event only this code without the if condition.</p> <pre><code>string CCC = (string)DataBinder.Eval(e.Row.DataItem, "COLUMN"); DropDownList DropDownList1 = (DropDownList)e.Row.FindControl("DropDownList1"); </code></pre>
c# asp.net
[0, 9]
684,414
684,415
Get elements width and height
<p>How can i get <code>height</code> and <code>width</code> of element which doesn't a part of <strong>DOM</strong> yet?</p> <p><strong>For example:</strong></p> <pre><code>var t = $('&lt;div style="position:absolute;height:100px;width:100px;background-color:steelblue;" &gt;lalala&lt;/div&gt;'); var height = t.height(); // height is 0! </code></pre>
javascript jquery
[3, 5]
3,818,434
3,818,435
jQuery/JS random image positioning using Math.random() and .css?
<p>I'm new to programming. Right now I'm using jQuery + jqueryrotate to rotate my images randomly so it looks like they are scattered. I managed to make them rotate randomly, but I am a little stuck on how to make the position random. I made all the images <code>position: absolute</code> in a <code>position: relative</code> div with class <code>.holder</code>. I know usually the css property using jquery should normally be <code>({"top": "4px"})</code> but I want it doesn't work when I wrap it around a toString function.</p> <pre><code>$.each($('.holder img'), function (i, element) { $(element).rotate(Math.random() * -90 + Math.random() * 90); $(element).css({ "top": Math.random() * 300; }) }); </code></pre>
javascript jquery
[3, 5]
4,244,655
4,244,656
Android: Where to store Selector (xml) file for customed design controls
<p>I tried to make a custom LinearLayout and Button styles.</p> <p>I'm just wondering where to place my Selector xml files?</p> <pre><code>&lt;selector xmlns:android="http://schemas.android.com/apk/res/android"&gt; &lt;item&gt; &lt;shape&gt; &lt;gradient android:angle="90" android:startColor="#534E4E" android:endColor="#000000" android:type="linear" /&gt; &lt;/shape&gt; &lt;/item&gt; </code></pre> <p></p> <p>In my mono project I put the files at drawable folder BUT in my Java(native) development I don't know maybe I miss the basic in storing files but still have no Idea where to put my Selector since the latest Eclipse plugin has 4 drawables (-ldpi,-hdpi, mdpi and xhdpi).</p>
java android
[1, 4]
4,400,229
4,400,230
How to manage back end data layer class instance throughout site
<p>I'm new to web dev. and I'm using asp.net/C# to build a website. I currently have a class called <code>DataLayer</code> that I'm using to perform all of my database functions, and also store some queried information. I initially had this class as static, because that's how I wanted it to behave, but then realized that will be all kinds of bad for multiple users.</p> <p>I have to make an instance out of this class in order to use it, but I need to maintain the same instance throughout several webpages for that user. Any thoughts or ideas on how to go about this approach? How to pass this object from page to page? Store in session variable, as a global object somehow? I guess this more of a discussion since there are multiple solutions, I want to hear suggestions from more experienced people^^ pts for all helpful suggestions :D</p>
c# asp.net
[0, 9]
2,834,435
2,834,436
im getting "function not defined" in firebug. help please
<p>I am using an external javascript file to call a function and it will not. i get function not defined in firebug too. the name of the external js file is getpic.js in the html, i put this in the header:</p> <pre><code>&lt;script src="getpic.js" type="text/javascript"&gt; &lt;/script&gt; </code></pre> <p>php:</p> <pre><code>echo "&lt;button id='sldkfj' onclick='hg();'&gt;sdlkfj&lt;/button&gt;"; </code></pre> <p>js:</p> <pre><code>function hg() { alert("hello") } </code></pre> <p>the file system is basically in one folder for wamp this is all of getpic.js</p> <pre><code>function hg() { alert("hello") } </code></pre> <p>for the php part</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;script src="getpic.js" type="text/javascript"&gt; &lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;?php echo "&lt;button id='sldkfj' onclick='hg();'&gt;sdlkfj&lt;/button&gt;"; ?&gt; </code></pre> <p>EDIT----- i also keep getting this in firebug: </p> <pre><code>Reload the page to get source for: http://localhost/iframe/getpic.js </code></pre> <p>Thanks</p>
php javascript
[2, 3]
2,640,521
2,640,522
How can I create my custom properties on xml for Android?
<p>We have in our project a keyboard with "Key" elements, this Key elements have attributes such as android:codes="119", android:keyLabel="w" and so on.</p> <p>My question is how can I include an custom attribute like a "android:alternativeKeyLabel" to do something else.</p>
java android
[1, 4]
5,561,958
5,561,959
Android: Is it possible to put an ArrayList<myObject> in a bundle?
<p>I am creating an app to manage homework, and have a class called Assignment. I wish to add an ArrayList to a bundle, how should I do this?</p> <p>Is it something to do with serialisable/parsable data, if so, all the data contained within an Assignment is simple data such as Strings and Integers (with the exception of a Course object which also contains simple data types)?</p>
java android
[1, 4]
784,960
784,961
Need help with jQuery
<p>This my script:</p> <pre><code>&lt;script type="text/javascript"&gt; var auto_refresh = setInterval( function () { $('#alert_div').load('/check_messages.php?timestamp=&lt;?php echo TIMESTAMP2;?&gt;').fadeIn("slow");}, 180000); $("html,body").scrollTop("alert_div",0); &lt;/script&gt; </code></pre> <p>Actually, everyting works fine but... As you can see, every 3 minutes script loads check_messages.php file. If user has new messages <strong>messages check_messages.php</strong> outputs information, otherwise the output is empty:</p> <pre><code>echo ""; </code></pre> <p>I need that <code>$("html,body").scrollTop("alert_div",0);</code> <strong>exetutes only in case</strong> if php script output <strong>is not</strong> empty.</p>
javascript jquery
[3, 5]
566,320
566,321
regex for validating time in asp.net
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/884848/regular-expression-to-validate-valid-time">Regular expression to validate valid time</a> </p> </blockquote> <p>i wrote this code for validating time in asp.net *</p> <p>what are the errors if i use "[0-9]?[0-9]+\:[0-9]+[0-9]+\:[0-9]+[0-9]+" for hh:mm:ss format.Will it work for all cases?</p>
c# asp.net
[0, 9]
5,729,713
5,729,714
Reload parent window from child window
<p>How can i reaload my parent window from child window using jquery?</p> <p>Please help.</p>
javascript jquery
[3, 5]
5,728,510
5,728,511
check if file exist in javascript?
<p>i have to display auto-generated images from a folder in html.</p> <p>how can i check if file exist in javascript/jquery so i can do a for-loop and display them all. they will be numbered 1.jpg, 2.jpg and so on.</p>
javascript jquery
[3, 5]
5,356,630
5,356,631
if user pastes 32 characters into the license text-box first split textbox
<p>if user pastes 32 characters into the license text-box first split textbox, the method will place 8 characters into each of the 4 text boxes</p> <p>see i have 4 text box ... max length (8)</p> <pre><code>&lt;input type = "text" size = "8" maxlength="32" name = "LicenseNumber1" id="LicenseNumber1"&gt; &lt;input type = "text" size = "8" maxlength="32" name = "LicenseNumber2" id="LicenseNumber2"&gt; &lt;input type = "text" size = "8" maxlength="32" name = "LicenseNumber3" id="LicenseNumber3"&gt; &lt;input type = "text" size = "8" maxlength="32" name = "LicenseNumber4" id="LicenseNumber4"&gt; </code></pre> <p>&amp; my license is 32 characters like 06e1823681f48e2f013904403b33ff08 now if i paste the whole 32 character in my first test box i.e. LicenseNumber1 then i </p> <p>want other three textbox wil be automatic fill bcause(8*4=32)</p>
javascript jquery
[3, 5]
2,702,244
2,702,245
How do I show a circle when touched on android?
<p>I am trying to make an android app and I can't seem to find anywhere how to make a simple activity where a circle shows up when anywhere on the screen is touched. It doesn't have to link with the coordinates with the click, just a circle in the middle of the screen. I have the frameview and everything set up, I just need to figure out the circle class. Any help?</p>
java android
[1, 4]
1,184,898
1,184,899
Jquery Tmpl Rendering Array of Objects
<p>I'm using jQuery Tmpl Plugin -> <a href="https://github.com/jquery/jquery-tmpl" rel="nofollow">https://github.com/jquery/jquery-tmpl</a></p> <p>What's the correct way of rendering an array of objects?</p> <p>Please consider these codes:</p> <pre><code> var html = template.tmpl(showDetailsData); // Show details data is an array of objects $(el).html(html); $(el).find('#shows-assets .assets').append($(showAssetsToTemplate).tmpl(showGraphicAssetsData)); </code></pre> <p>Javascript object:</p> <pre><code> [ { "id": 14, "type": "SHOW_MOBILE_GRAPHIC_B", }, { "id": 15, "type": "SHOW_MOBILE_GRAPHIC_A", }, { "id": 16, "type": "GRAPHIC_A", }, { "id": 17, "type": "SHOW_MOBILE_BANNER", }, { "id": 18, "type": "SHOW_THUMBNAIL", }, { "id": 19, "type": "SHOW_BUTTON_A", } ] </code></pre> <p>In this case, the template is being rendered 6 times, I'm guessing that it has something to do with the number of elements on the said object.</p> <p>Also, what I need is something like this:</p> <pre><code>{{each data}} &lt;li id="show-${$id}"&gt;${$type}&lt;/li&gt; {{/each}} </code></pre> <p>Thanks.</p>
javascript jquery
[3, 5]
5,277,851
5,277,852
Download File From Another Sever With Save as Dialogue Box
<p>I want to download a file from another server with save as dialog box... I tried 1 example to download file from our server which worked but i don't know how to work for files which are hosted on another server.</p> <p>If I try to download then i am getting It is not valid virtual path</p> <p>Response.WriteFile(Convert.ToString(http://abc.com/sbe/test.pdf));</p> <p>What should i do to download files from another server.</p> <p>Regards,</p>
c# asp.net
[0, 9]
4,072,511
4,072,512
serialized generic collections
<p>I have serialized XML file. I am reading the contents which is of type <code>Dictionary&lt;string,string&gt;</code> and <code>List&lt;int&gt;</code>.</p> <p>How can I retrieve these 2 objects. I tried to use ArayList to hold these 2 objects ,but since arraylist is not generic type, it gave exception.Please help..</p> <pre><code>if (fs.Length != 0) { BinaryFormatter bf = new BinaryFormatter(); ArrayList dstemp = (ArrayList)bf.Deserialize(fs); // Dictionary&lt;string,string&gt; tempRD = (Dictionary&lt;string,string&gt;) TempList[0]; // List&lt;int&gt; shipto = (List&lt;int&gt;)TempList[1]; this.currentFormData.LinkToShipToList = (List&lt;int&gt;)bf.Deserialize(fs); } fs.Close(); </code></pre>
c# asp.net
[0, 9]
1,751,233
1,751,234
get selected value from checkbox and put it on a row in a table
<p>Hy all,</p> <p>I'm developing a web application and I'm trying to use a checkboxlist. I want that for each selected item in that checkboxlist to create a new row in a table.So if I have 5 items and i check 3, I want a table to appear with 3 rows and in each row the selected items.This is how i get what items are checked:</p> <pre><code> protected void Button1_Click(object sender, EventArgs e) { string str = string.Empty; foreach (ListItem item in check.Items) { str += item.Value; } } </code></pre> <p>My question is: how can I create a table with the selected values?? I'm using c# in an asp.net application</p>
c# asp.net
[0, 9]
1,783,485
1,783,486
resizing gridview column manually
<p>I have a gridview that I am displaying email html in. The columns are very wide because of the way the html is formated. How can I manually set the size of the column in the gridview? I tried</p> <p>Item-Style width = </p> <p>Header-Style width =</p> <p>but none of those change the column width, any ideas would be appreciated.</p> <p>Thank you,</p> <pre><code> &lt;asp:BoundField HeaderText="Message" HeaderStyle-Width="100px" ItemStyle-Width="100px" ItemStyle-Wrap="false" HeaderStyle-Wrap="false" HtmlEncode="false" DataField="message" /&gt; </code></pre>
c# asp.net
[0, 9]
4,174,256
4,174,257
Banner changer issue
<p>I have the lines of code for a banner changer and whenever i add a link to any of the banners, it goes blank "The banner space goes blank." every now and then. </p> <pre><code> $(function(){ $('#banner img:gt(0)').hide(); setInterval(function(){$('#banner :first- child').fadeOut().next('img').fadeIn().end().appendTo('#banner');}, 8000); }); &lt;/script&gt; </code></pre> <p><br> </p> <pre><code> &lt;div id="banner"&gt; &lt;img src="images/hollinger.png" width="519" height="76" /&gt; &lt;img src="banners/leonards.png" width="519" height="76" /&gt; &lt;img src="banners/banner1.png" width="493" height="82" border="0" /&gt; &lt;/div&gt;&lt;!-- End Banner - -&gt; </code></pre> <p></p> <p>Here's the link to unstand what I mean Here's the link to understand what I mean <a href="http://woodstown-pilesgrove.com/" rel="nofollow">http://woodstown-pilesgrove.com/</a></p>
javascript jquery
[3, 5]
5,677,149
5,677,150
JS Player --- Err : My Return false doesnt work with IE10 but work with all other browser
<p>Hi ive made a mp3 player using javascript, its working perfectly on everybroswer except IE10</p> <p>Ex of page : <a href="http://www.mupiz.com/noon" rel="nofollow">http://www.mupiz.com/noon</a> (try to click on a song)</p> <p>But IE10 follows the link and ignores the script before...</p> <p>Here's My script : </p> <pre><code> var list = $("#playlist").find("a:not(.songLink)"); listNC=new Array(); for (var i=0;i&lt;list.length;i++) { // we get all the song list[i].rel = i; $(list[i]).parent().parent().prepend("&lt;td class='notplayed' width='25px'&gt;&lt;img src='../../images/lecteur-B-playlist-play.png' style='z-index:10000'/&gt;&lt;/td&gt;"); listNC[i]=girlify(list[i].href); list[i].onclick = function(event) { // onclick on each link if($(this).attr('class')!="songLink"){ soundManager.stopAll(); current = this.rel; event.preventDefault(); lire_current(); // this play the song return false; // **this does not work!** } }; </code></pre> <p>This is the dedicated part of the CSS</p>
javascript jquery
[3, 5]
5,094,872
5,094,873
binding jquery onclick even to this tooltip
<p>I'm using this <a href="http://cssglobe.com/lab/easytooltip/03.html" rel="nofollow">great tooltip</a> which displays the tooltip (title of an anchor element with .tooltip function called on it) upon hover. This time around, I want it to display upon click so I did this:-</p> <pre><code>$(document).ready(function(){ $(".icons a.tooltips").click(function() { return $($(this).attr("href")).html().easyTooltip(); // Prevent the browser jump to the link anchor e.preventDefault(); }); }); </code></pre> <p>the html for this is as follows:</p> <pre><code>&lt;div class="foo"&gt; &lt;a class="bar" title="Lorem ipsum" href="#"&gt;&lt;/a&gt; &lt;a class="bar" title="meaningless text" href="#"&gt;&lt;/a&gt; &lt;a class="bar" title="more meaningless text" href="#"&gt;&lt;/a&gt; &lt;a class="bar" title="even more meaningless text" href="#"&gt;&lt;/a&gt; &lt;/div&gt; </code></pre>
javascript jquery
[3, 5]
577,358
577,359
How can I show asterisks instead of characters when a textbox reaches maximum length?
<p>I have a textbox whose <code>maxlength</code> attribute is 13. When the user reachers 13, I must hide all the characters and show asterisk symbols (*).</p> <p>How do I do that?</p>
javascript jquery
[3, 5]
3,718,612
3,718,613
js script with yes/no in asp.net site
<p>I have a button on my asp.net site which activates javascript through <code>OnClientClick</code> property which is set to <code>potwierdzenie()</code>. The script:</p> <pre><code>&lt;script type="text/javascript"&gt; function potwierdzenie() { var answer = confirm("Do you want to delete it") if (answer) ??? else ??? } &lt;/script&gt; </code></pre> <p>All I want to do is do some work (deleting something from mysql db) in c# depending on what user clicked (yes or cancel). How can I do this? How can I execute c# code in this script or how can I do it the other easiest way?</p>
c# javascript
[0, 3]
48,752
48,753
Datakey values of a grid view using Jquery
<p>Hii... How can i get the data key values of a gridview using Jquery?If there any method please share .... thanks in advance</p>
jquery asp.net
[5, 9]
4,142,384
4,142,385
How can I check if a checkbox is checked on click?
<p>I need to trigger some code when I click a checkbox based on if a checkbox is checked or not. But for some reason, <code>.is(':checked')</code> is always triggered.</p> <p>This is my code.</p> <pre><code> jQuery('#selectlist input[type=checkbox]').live('click',function(){ var select_id = jQuery(this).attr('id'); if(jQuery(this).is(':checked')) { alert('You have unchecked the checkbox'); // Remove some data from variable } else { alert('You have checked the checkbox'); //Add data to variable } } </code></pre> <p><strong>UPDATE</strong><br> I've added an example on JSFiddle: <a href="http://jsfiddle.net/HgQUS/" rel="nofollow">http://jsfiddle.net/HgQUS/</a></p>
javascript jquery
[3, 5]
5,629,324
5,629,325
handling event bubling in jquery
<p>iam having links as shown below</p> <pre><code>&lt;a item='1' href='javascript:void(0)'&gt;&lt;img class='icon1' /&gt;&lt;span&gt;text1&lt;/span&gt;&lt;/a&gt; &lt;a item='1' href='javascript:void(0)'&gt;&lt;img class='icon2' /&gt;&lt;span&gt;text2&lt;/span&gt;&lt;/a&gt; &lt;a item='1' href='javascript:void(0)'&gt;&lt;img class='icon3' /&gt;&lt;span&gt;text3&lt;/span&gt;&lt;/a&gt; &lt;a item='1' href='javascript:void(0)'&gt;&lt;img class='icon4' /&gt;&lt;span&gt;text4&lt;/span&gt;&lt;/a&gt; $(function(){ $('a').click(_handleClick); }); function _handleClick(e) { var _item=$(e.target).attr('item'); // do something with _item variable } </code></pre> <p>// now my problem is when user clicks on image 'e' received in _handleClick is image so i can't read attr='item' so how can bubble the event to read that value.</p>
javascript jquery
[3, 5]
3,556,242
3,556,243
How to find the control of textbox inside the grid
<p>I am using ASP.NET and I have one <code>GridView</code> that has a <code>TextBox</code> within an editTemplate, but I am not able to find the control; whenever I try to assign the value to <code>TextBox</code> of <code>GridView</code> I'm getting a <code>NullReferenceException</code>. </p> <p>My code is as follows:</p> <pre><code>for (int i = 0; i &lt; grdTransfer.Rows.Count; i++) { GridViewRow row = grdTransfer.Rows[i]; if (((CheckBox)row.FindControl("chkSelect")).Checked) { count = 1; (row.FindControl("txtDestLocation") as TextBox).Text = txtLocation.Text; } } </code></pre> <p>Issue: <code>NullReferenceException: object reference not set to the instance of an object</code>.</p> <p>This means I'm getting <code>null</code> whenever I try to assign the value of <code>GridView</code> <code>TextBox</code> from outside the <code>TextBox</code> at runtime. </p> <p><em><strong>What am I doing wrong?</em></strong></p>
c# asp.net
[0, 9]
1,442,121
1,442,122
Download and save aspx page
<p>I saved aspx page as html it worked in my local machine but after published on the server its showing an error that "the access to the path is denied"... I tried giving access permission then also it doesn't work.. can anyone help with it? or else is there any other way to save the page in C# asp.net?...</p> <pre><code>string url=HttpContext.Current.Request.Url.AbsoluteUri; string sHtml=""; HttpWebRequest request; HttpWebResponse response=null; Stream stream=null; request=HttpWebRequest)WebRequest.Create(url); response=(HttpWebResponse)request.GetResponse(); stream=response.GetResponseStream(); StreamReader sr=new StreamReader(stream,System.Text.Encoding.Default); sHtml=sr.ReadToEnd(); string path=Environment.GetFolderPath(Environment.SpecialFolder.Desktop); string textfilename=TextBox1.Text; string getpath=path+"\\"+textfilename+".html"; File.WriteAllText(getpath,sHtml); if(stream!=null)stream.Close(); if(response!=null)response.Close(); </code></pre> <p>Thanks..</p>
c# asp.net
[0, 9]
1,836,026
1,836,027
Is there a better way to redirect and pass parameter
<p>I have this table</p> <pre><code>&lt;table id="tableDg" border=1&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td &gt;&lt;input type="hidden" id="path" readonly="true" value="{path}"&gt;{path}&lt;/input&gt;&lt;/td&gt; &lt;td&gt;&lt;input type="checkbox" class = "chkbCsm" &gt;&lt;/input&gt;&lt;/td&gt; &lt;td &gt;&lt;input type="hidden" id="nameText" readonly="true" value="{name}"&gt;&lt;a href="#" class="aDg"&gt;{name}&lt;/a&gt;&lt;/input&gt;&lt;/td&gt; &lt;td &gt;&lt;input type="hidden" id="nameText" readonly="true" value="{host}"&gt;{host}&lt;/input&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; </code></pre> <p>After reading post from <strong>Felix Kling</strong> My jQuery </p> <pre><code>$('#tableDg tbody tr td a.aDg').live('click', function(){ path=$('input', $(this).parent().prev().prev()).val(); window.location.href = "/simon/infopage.html"; var url_action="/getData"; var client; var dataString; if (window.XMLHttpRequest){ client=new XMLHttpRequest(); } else { client=new ActiveXObject("Microsoft.XMLHTTP"); } client.onreadystatechange=function(){ if(client.readyState==4&amp;&amp;client.status==200) { //here i will get back path in infopage.html } }; dataString="request=getconfigdetails&amp;path="+path; client.open("POST",url_action,true); client.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); client.send(dataString); }); </code></pre> <p>Is this how i should get <code>path</code> from my previous page to <code>infopage.html</code></p>
javascript jquery
[3, 5]
5,158,318
5,158,319
Why would jquery not pollute global namespace?
<p>It is said here:</p> <p><a href="http://briancrescimanno.com/2009/09/24/how-self-executing-anonymous-functions-work/" rel="nofollow">http://briancrescimanno.com/2009/09/24/how-self-executing-anonymous-functions-work/</a></p> <blockquote> <p>Take a look at the source code of jQuery and you’ll see that the whole library is wrapped in a single, self-executing function that is assigned to the jQuery global object.</p> </blockquote> <p>But since jQuery is GLOBAL object it does pollute global namespace or I miss something ?</p>
javascript jquery
[3, 5]
1,054,351
1,054,352
how do I find the value inside of a td upon clicking a checkbox in another td but within the same tr?
<p>I have a table with a few columns and a few rows. When I click a checkbox at the beginning of each row, I'd like to store the value of a particular cell into a variable and use it in a comparison for something else.</p> <p>How would I go about getting data from a cell in the same row as the clicked checkbox?</p> <p>This function gets called by the click event for the checkbox that was clicked</p> <pre><code> function checkLives if ($('.CarrierID:contains("2")', $( ':checkbox' ).parents( 'td' ) ).length &gt; 0 ) { //if its not dental &lt;%if (this.CurrentProduct != Products.Dental){%&gt; //if the lives being quoted are over 16 //Here is where I would need the value inside of that table row if (livesover16) { //show popup $('#over16').dialog('open'); return false; &lt;%}%&gt; } </code></pre>
c# jquery asp.net
[0, 5, 9]
3,739,327
3,739,328
Tooltip over different cells of a table
<p>I need to display tooltip on different cells of table. Basically what I want is a new layer of tool tip over that cell. It is necessary the cell can be anywhere I have seen some jquery library that apply tooltip to last column of table which wont work for me so tooltip should appear any where in mid of table or in the end.</p> <p>Any one can please suggest me any jqyery library i could use? Or any javascript ways</p>
javascript jquery
[3, 5]
2,834,232
2,834,233
Download and save aspx page
<p>I saved aspx page as html it worked in my local machine but after published on the server its showing an error that "the access to the path is denied"... I tried giving access permission then also it doesn't work.. can anyone help with it? or else is there any other way to save the page in C# asp.net?...</p> <pre><code>string url=HttpContext.Current.Request.Url.AbsoluteUri; string sHtml=""; HttpWebRequest request; HttpWebResponse response=null; Stream stream=null; request=HttpWebRequest)WebRequest.Create(url); response=(HttpWebResponse)request.GetResponse(); stream=response.GetResponseStream(); StreamReader sr=new StreamReader(stream,System.Text.Encoding.Default); sHtml=sr.ReadToEnd(); string path=Environment.GetFolderPath(Environment.SpecialFolder.Desktop); string textfilename=TextBox1.Text; string getpath=path+"\\"+textfilename+".html"; File.WriteAllText(getpath,sHtml); if(stream!=null)stream.Close(); if(response!=null)response.Close(); </code></pre> <p>Thanks..</p>
c# asp.net
[0, 9]
4,541,034
4,541,035
Removing an Element on Certain Location
<p>Let's say the window's location is on <code>htt://stackoverflow.com/index.php</code>, I want to remove an element in the index page with jQuery. This is what I have and it's not working:</p> <pre><code>$(document).ready(function() { var location = window.location; var locQuery = /index/i; if (location.match(locQuery)) { $('.someClass').removeClass(); } }); </code></pre>
javascript jquery
[3, 5]
5,118,488
5,118,489
how to update gridview based on dropdownlist item
<p>I am creating a web page that contains one Dropdownlist and Gridview. </p> <p>Query is Dropdownlist will contains SQL Server database table list. When I select a table name from dropdownlist the Gridview needs to show entire table data and able to perform <code>edit, update, delete, cancel</code> actions.</p> <p>When I click <code>edit</code>, Gridview need to show <code>Update</code> and <code>Cancel</code> buttons and it update should update dropdownlist table and also delete.</p> <p>Please any one can help.</p> <p>Thanks in advance. </p>
c# asp.net
[0, 9]
663,999
664,000
how to create new line between dateformat
<p>i m creating date format like this :</p> <pre><code>SimpleDateFormat sdf =new SimpleDateFormat("MMM d, EEE, h:mm a"); </code></pre> <p>i need a new line between date, month and time something like this </p> <pre><code>thus ,sep 6 4:25pm </code></pre> <p>so i made the following changes :</p> <pre><code>SimpleDateFormat sdf =new SimpleDateFormat("MMM d, EEE,"+"\n"+" h:mm a"); </code></pre> <p>it did not give me anything just it created it in one line like this :</p> <pre><code>thus ,sep 6 4:25pm </code></pre> <p>so i took format object like this </p> <pre><code>SimpleDateFormat sdf =new SimpleDateFormat("MMM d, EEE,"); SimpleDateFormat sdf1 =new SimpleDateFormat(" h:mm a"); </code></pre> <p>and did this :</p> <pre><code>sdf.format(calendar.getTime())+"\n"+sdf1.format(calendar.getTime()) </code></pre> <p>but it again gives the same result</p> <pre><code>thus ,sep 6 4:25pm </code></pre> <p><strong>calendar</strong> is a Calendar object.Any help will be appreciated!!</p>
java android
[1, 4]
3,996,309
3,996,310
Convert Datatable to PDF
<p>Can I get a code for converting datatable to pdf in Asp.net Web application. I want to have functionality to export <code>datatable</code> into <code>PDF</code>. I found <a href="http://www.aspsnippets.com/Articles/Export-DataSet-or-DataTable-to-Word-Excel-PDF-and-CSV-Formats.aspx" rel="nofollow">this</a> article but it is using <code>gridview</code> for exporting </p>
c# asp.net
[0, 9]
4,573,924
4,573,925
Best practise for displaying multiple controls which require an extended class?
<p>If I want to display a <code>MapView</code> inside my <code>Activity</code> I would have to extend my <code>Class</code> from <code>MapActivity</code>. If I want to display a <code>Tabbed</code> interface I would have to extend my <code>Class</code> from <code>TabActivity</code>. Similar is the case with some other controls which require user class to extend from a specific class.</p> <p>Let's say inside my <code>Activity</code> I want to display both a <code>MapView</code> for displaying Google Map and a <code>TabView</code> to display some other data. I can't do it directly because Java doesn't support multiple inheritance. My question is how can I achieve this scenario? How can I display multiple controls inside my activity where each require your class to extend from a specific class. Is it possible first of all? If yes, what are the best practises to achieve this scenario? </p> <p><strong>Update</strong> I want to achieve this</p> <p><img src="http://i.stack.imgur.com/nLUci.png" alt="enter image description here"></p> <p><strong>I am using Map and Tab for sake of an example. I would like to know how you can tackle this scenario in general?</strong></p>
java android
[1, 4]
4,027,296
4,027,297
Calling javascript from a code behind vs. calling a code behind from javascript
<p>I have a web application that will need to access code behind methods as well as javascript methods. For this particular implementation it doesn't really matter which order they are called in from a program flow perspective.</p> <p>I'm looking for insight into when it would be appropriate to use a code behind to call javascript and when it would be appropriate to call javascript from a code behind. Are there any ramifications of doing it one way or the other that I should be aware of before moving forward with an implementation?</p> <p>Is there a best practice way to do it or is it very specific to the actual implementation?</p>
c# asp.net javascript
[0, 9, 3]
3,591,288
3,591,289
Bind DropDownlists with JQuery in Asp.Net
<p>I have 3 dropdownlists for Country,State and Metro. I want to when user seclect <strong>Country</strong> then <strong>State</strong> dropdownlist fill Jquery and when select <strong>Sate</strong> then <strong>Metro</strong> dropdownlist fill(like cascading dropdownlist of ajax).These process i want to do with JQuery.</p>
asp.net jquery
[9, 5]
292,620
292,621
Add Item from Dropdownlist to ListBox using JQuery
<p>How can i add anything user selected from dropdownlist to listbox using JQuery? and when i post the page i should be able to retrieve <strong>"id, name"</strong> from the listbox.</p> <pre><code>&lt;asp:DropDownList ID="ddlPerson" DataSourceID="ods_person" DataValueField="Id" DataTextField="Name" runat="server" Width="221px" /&gt;&lt;br /&gt; &lt;asp:ListBox ID="lstPerson" runat="server" Width="245px" Font-Bold="true" ForeColor="Green" SelectionMode="Multiple"&gt; &lt;/asp:ListBox&gt; &lt;br&gt; </code></pre>
asp.net jquery
[9, 5]
1,097,950
1,097,951
table structure is not coming properly in FF with jQuery
<p>I have one table having 10 rows.Now on page load lets say first 7 rows are showing and I have blocked last 3 rows using jQuery. Now on click of a span I want to show last 3 rows..its working fine in IE but not in FF. in FF, when I am loading last 3 rows , the first 7 row css stops working , I mean from 2 nd col, it starts to be right aligned, thus breaking the whole table structure, but the last 3 roes are coming in proper place.</p> <pre><code> $("tr").slice(index).css("display", "block"); </code></pre> <p>I have tried to change the display prop to table/inline-table..but its of no use. Can somebody help?</p>
javascript jquery
[3, 5]
4,032,343
4,032,344
Javascript hide control in Repeater
<p>How to hide a table row in repeater control in ASP.NET?</p>
javascript asp.net
[3, 9]
2,443,946
2,443,947
jQuery - Get a element class based on a prefix
<p>What's the fastest way possible to get a string like "fade" from the classes in the element below?</p> <pre><code>&lt;div class="MyElement fx-fade"&gt; ... &lt;/div&gt; </code></pre>
javascript jquery
[3, 5]
503,992
503,993
set value to hidden input
<p>Can anyone tell me what am I doing wrong. The hiddenvalue is being kept all the time null without any value assigned to it. </p> <p>The following is the code;</p> <p><strong>Javacript</strong></p> <p>This is intended to occur on a click event on a map</p> <pre><code>var str = "ryan"; document.getElementById("hiddenvalue").value = str; </code></pre> <p>This is from the asp.net</p> <pre class="lang-html prettyprint-override"><code>&lt;div&gt; &lt;input id="hiddenvalue" type="hidden" value="" runat="server"/&gt; &lt;asp:Button ID="Button1" runat="server" Text="Button" onclick="Button1_Click" /&gt; &lt;/div&gt; </code></pre> <p>And this is how am I referring to it from the codebehind:</p> <pre class="lang-c# prettyprint-override"><code>using (NpgsqlCommand cmd = new NpgsqlCommand("insert into altitude select nextval('altitude_id_seq'), :value", conn)) { cmd.Parameters.Add(new NpgsqlParameter("value", NpgsqlDbType.Varchar)); cmd.Parameters[0].Value = hiddenvalue.Value; cmd.ExecuteNonQuery(); } </code></pre> <p>For some reason no value is being set. Can anyone guide since I have been for hours trying to debug this issue.</p>
c# javascript asp.net
[0, 3, 9]
4,793,326
4,793,327
Remove all but the three word from a sentence and add three dots after that three sentence using jquery
<p>I want to Remove all but the three word from a sentence and add three dots after that three sentence using jquery. example if the sentence is " We evaluate our borrowers on a periodic basis. See our evaluations " so in that remove "<em>borrowers on a periodic basis. See our evaluations See our evaluations</em>" and i want to show like this "<strong>We evaluate our...</strong>" i tried here is <a href="http://jsfiddle.net/sureshpattu/Rpq7b/1/" rel="nofollow">code</a></p>
javascript jquery
[3, 5]
2,553,119
2,553,120
Need to bind DataList with Two DataSources
<p>I am displaying some information in DataList. Can i bind the DataList to two DataSources.?? since i am facing a situation in which the two rows needs to be populated from two different Tables. Below is what i am trying to do.</p> <pre><code>&lt;asp:DataList runat="server" id="myDataList"&gt; &lt;ItemTemplate&gt; &lt;b&gt;&lt;%# DataBinder.Eval(Container.DataItem, "Column from DataSource1") %&gt;&lt;/b&gt; &lt;br /&gt; &lt;%# DataBinder.Eval(Container.DataItem, "Column from DataSource2") %&gt; &lt;/ItemTemplate&gt; &lt;/asp:DataList&gt; </code></pre>
c# asp.net
[0, 9]
2,042,925
2,042,926
jquery - Custom event doesn't trigger
<p>In the first script tag I have</p> <pre><code>var foo = function(){ $.ajax({ url: foo.com, dataType:'json', success: function(data,status,jqXHR){ $("#bar").trigger("custom"); }, }); } var intervalID = setInterval( foo , 15000 ); </code></pre> <p>In second I have <strong>foo1</strong> function</p> <p>And at the body's bottom I have</p> <pre><code>jQuery(function($) { $("#bar").on("custom",foo1); }); </code></pre> <p>Interval is working, also ajax part but the trigger isn't firing, but from the console I can see foo1 function and when I invoke it manually it works. What could be a problem?</p>
javascript jquery
[3, 5]
4,349,034
4,349,035
JavaScript: distinguish DOM element objects and Event objects
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/384286/javascript-isdom-how-do-you-check-if-a-javascript-object-is-a-dom-object">Javascript isDOM &mdash; How do you check if a Javascript Object is a DOM Object?</a> </p> </blockquote> <p>I have the following simple function:</p> <pre><code>function do_smth(el){ if(typeof el != 'object'){ el = this } var val = $.trim(el.value) /**** some code here ****/ } </code></pre> <p>Sometimes it is binded to an element as an event</p> <p>1)</p> <pre><code>element.onclick = do_smth </code></pre> <p>and sometimes it is used the following way</p> <p>2)</p> <pre><code>do_smth(element) </code></pre> <p>both ways this should work good...</p> <p>The problem is that I get the <code>el</code> as <code>Event</code> object in the first case, even if there are no arguments passed. So <code>typeof el != 'object'</code> does not work as expected. </p> <p>How can I distinguish DOM element or Event?</p>
javascript jquery
[3, 5]
3,837,316
3,837,317
How to Convert an array of jQuery Objects to an HTML String
<p>In the jQuery Infinite Carousel, it uses <code>.clone()</code> to do the infinite effect. This works great unless the code it's cloning has HTML5 Elements. IE7 and IE8 have trouble applying HTML5 Element-specific CSS rules to cloned or otherwise post-page-load inserted elements.</p> <p>The <a href="http://jdbartlett.github.com/innershiv/" rel="nofollow">innerShiv</a> JavaScript plugin inserts the elements in a way that IE7 and IE8 will render just fine with the appropriate CSS. </p> <p>The problem is that innerShiv takes an HTML string as a parameter, but the jQuery .clone() method returns an array of jQuery objects.</p> <p>In order to use the two together, I need to convert the output from .clone() into an HTML string that innerShiv will be able to parse.</p> <p>Any thoughts on how this could be done?</p>
javascript jquery
[3, 5]
3,841,445
3,841,446
Hiding divs with javascript collapse all
<p>I'm making divs with holds content and my problem is how to get all divs to collapse. Problem here is that the code needs to be dynamic since we don't know how many divs going to be made.</p> <p>First here is my javascript:</p> <pre><code>function pageLoad() var j = 1; while(j&gt;0) collapseAll($('div'+j,'divx',+j)); j++; </code></pre> <p>This part handles collapse when page is loaded. All divs need to be collapsed. in code it should be like this:</p> <pre><code>&lt;a onclick="div('div1');" &gt; //this at first time &lt;div id="div1"&gt; content &lt;/div&gt; &lt;a onclick="divx('divx1'); &lt;div id="divx1"&gt; content &lt;/div&gt; &lt;!-- this at next when div is created --&gt; &lt;a onclick="div('div2');" &gt; &lt;div id="div2"&gt; content &lt;/div&gt; &lt;a onclick="divx('divx2'); "&gt; &lt;div id="divx2"&gt; content &lt;/div&gt; </code></pre> <p>and so on.. Problem here is that when code creates new div it gives same name for div that is used in earlier part.</p> <p>forexample: </p> <pre><code>&lt;a onclick="divx('divx2'); "&gt; &lt;div id="divx2"&gt; content &lt;/div&gt; //new div created: &lt;a onclick="divx('divx2'); "&gt; &lt;div id="divx2"&gt; content &lt;/div&gt; </code></pre>
javascript jquery
[3, 5]
1,432,130
1,432,131
Currency conversion
<p>Does anyone know of a web service(pay or free) that will convert one currency to another based on current market value?</p> <p>Thanks in advance</p> <p>ADDITION</p> <p>I am not looking for a screen scrapeing solution. I am looking for something that I can setup and walk away from not something that I will have to rebuild if someone changes the UI.</p>
c# asp.net
[0, 9]
3,571,765
3,571,766
Changing style of context menu in Android
<p>In one Android activity I have added a context menu to an <code>ImageView</code> with only one menu item: 'Close' (in order to hide the image). However, the context menu does not look precisely nice when shown, expanding a big white rectangle occupying almost all the wide of the screen. Is there a way to reduce the size of this rectangle to cover only the word 'Close'?. This is my main question, but any pointer to how to change other styles of the context menu will be appreciated (e.g., the background color, or the text font/color). Thanks !</p>
java android
[1, 4]
390,334
390,335
jquery & php: saving some data without reload
<p>I have three buttons and need to save some data. I have a idea, I have to set an ID to every button and then let the JS determinate witch button that has been pressed, like:</p> <pre><code>$("#mySpecifikButton").click(function() { ....some code here... }); </code></pre> <p>but then Im stuck. For example I have 9 users. All they have an ID in the db. So now we have all the users in separate rows:</p> <pre><code>&lt;p&gt;&lt;a id="userID"&gt;user 0&lt;/a&gt;&lt;/p&gt; &lt;p&gt;&lt;a id="userID"&gt;user 1&lt;/a&gt;&lt;/p&gt; &lt;p&gt;&lt;a id="userID"&gt;user 2&lt;/a&gt;&lt;/p&gt; &lt;p&gt;&lt;a id="userID"&gt;user 3&lt;/a&gt;&lt;/p&gt; ... </code></pre> <p>When I press on a specifik user I want to add it to db through php with help of jquery. But how do I sent it to php with JS (jquery)?</p> <p>Im I thinking right or is there better ways?</p> <p>If I didn't described it well, ask me.</p>
php jquery
[2, 5]
2,270,226
2,270,227
Multiple javaScript libraries | Emerging standards - compare to C++
<p>It seems like there are many different styles to write JavaScript, in fact I've heard that JavaScript is an expressive language.</p> <p>But the point of code is functionality (function) not expression (form).</p> <p>Is there a library that will be adopted into the ECMA standard the way the STL and Boost Library were adopted in to the C++ standard?</p>
c++ javascript
[6, 3]