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
1,120,750
1,120,751
Jquery - need help on usage
<p>Is this the right way of using the php script in the jquery function? The pathToTabImage variable</p> <pre><code>&lt;script type="text/javascript"&gt; $(function(){ $('.slide-out-div').tabSlideOut({ tabHandle: '.handle', //class of the element that will become your tab pathToTabImage: '&lt;?php echo $this-&gt;baseurl ?&gt;/templates/&lt;?php echo $this-&gt;template; ?&gt;/images/ack.jpg';, //path to the image for the tab //Optionally can be set using css alert(pathToTabImage); imageHeight: '122px', //height of tab image //Optionally can be set using css imageWidth: '125px', //width of tab image //Optionally can be set using css tabLocation: 'right', //side of screen where tab lives, top, right, bottom, or left speed: 600, //speed of animation action: 'click', //options: 'click' or 'hover', action to trigger animation topPos: '600px', //position from the top/ use if tabLocation is left or right leftPos: '550px', //position from left/ use if tabLocation is bottom or top fixedPosition: false //options: true makes it stick(fixed position) on scroll }); }); </code></pre>
php jquery
[2, 5]
1,089,046
1,089,047
When I add jQuery library it invalidates my other jQuery on the same page
<p>I am trying to create a page that has a scroller of images and a voting system (which I copied from here: <a href="http://yensdesign.com/2008/09/how-to-create-a-stunning-and-smooth-popup-using-jquery/" rel="nofollow">http://yensdesign.com/2008/09/how-to-create-a-stunning-and-smooth-popup-using-jquery/</a>).</p> <p>The scroller was working just fine until I added the voting pop-up. Essentially, when I add the library </p> <pre><code>&lt;script src="http://jqueryjs.googlecode.com/files/jquery-1.2.6.min.js" type="text/javascript"&gt; </code></pre> <p>needed for the pop-up to work, the scroller images disappear and the page seems to re-load whenever I hit the scrolling arrows. If I comment out the library above then the scroller re-appears (but the pop-up window does not work). Here are the directories for the other files.</p> <ul> <li>public/scripts/general0.js - init for scroller</li> <li>public/script/woo-jcar.js - scroller function</li> <li>public/scripts/popup.js" - pop-up javascript</li> </ul> <p>Please Help! I am a newby so this might just be a dumb thing like adding to conflicting libraries or something.</p> <p>Thanks,</p>
javascript jquery
[3, 5]
5,985,947
5,985,948
JQuery script conflict
<p>I am using a jQuery Lightbox for a gallery on a page with a jQuery Slideshow and menu bar, whilst the menu bar and Slideshow work ok, the Lightbox does not.</p> <p>CONFLICT WITH LIGHTBOX see <a href="http://concertorestaurant.creativeconnect.com.au/functions_gallery.html" rel="nofollow">http://concertorestaurant.creativeconnect.com.au/functions_gallery.html</a></p> <p>WORKING EXAMPLE - Menu with Slideshow <a href="http://concertorestaurant.creativeconnect.com.au/home.html" rel="nofollow">http://concertorestaurant.creativeconnect.com.au/home.html</a></p> <p>Appreciate your help!</p>
javascript jquery
[3, 5]
525,627
525,628
System.NullReferenceException: Object reference not set to an instance of an object in C#
<p>I have written following code in my <strong>global.asax</strong> file </p> <pre><code>void Application_PreRequestHandlerExecute(object sender, EventArgs e) { ConnStr = objConnStr.GetConnectionString(); if (HttpContext.Current.Session["LOGIN"] != null ) { } } </code></pre> <p>It is throwing following error at *<em>HttpContext.Current.Session["LOGIN"] *</em></p> <p><strong>Description</strong>: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. </p> <p><strong>Exception</strong> Details: System.NullReferenceException: Object reference not set to an instance of an object.</p> <p>what may be the issue ?</p>
c# asp.net
[0, 9]
892,469
892,470
why this Javascript function doesn't work?
<p>I use the following javascript function,</p> <pre><code>function get_check_value(formId,checkboxId,TxtboxId) { alert(formId); var c_value = ""; for (var i=0; i &lt; document.formId.checkboxId.length; i++) { if (document.formId.checkboxId[i].checked) { c_value = c_value + document.formId.checkboxId[i].value + "\n"; } } alert(c_value); document.getElementById(TxtboxId).value= c_value; // alert(c_value.value); </code></pre> <p>}</p> <p>and my php page has this,</p> <pre><code>&lt;form name="orderform" id="orderform"&gt; &lt;input type="text" name="chId" id="chId" &gt; &lt;table align="center" border="0"&gt; &lt;tr&gt; &lt;td&gt;Country&lt;/td&gt; &lt;/tr&gt; &lt;? foreach($country as $row){ ?&gt; &lt;tr&gt; &lt;td&gt;&lt;?= $row['dbCountry']; ?&gt;&lt;/td&gt; &lt;td&gt;&lt;input type="checkbox" name="CountrycheckId" id="CountrycheckId" value="&lt;?= $row['dbCountryId']; ?&gt; " onClick="get_check_value('orderform','CountrycheckId','chId')"&gt;&lt;/td&gt; &lt;? } ?&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/form&gt; </code></pre> <p>I am getting formname,checkboxid,textid in alerts inside the javascript function... But the problem is with the line <code>for (var i=0; i &lt; document.formId.checkboxId.length; i++)</code></p> <p>Webdeveloper toolbar shows this error</p> <p><code>document.formId is undefined</code></p>
php javascript
[2, 3]
963,098
963,099
Add separators in DropDownList
<p>i have a scenario where i have to add separators in DropDownList in asp.net. Please, suggest.</p>
c# asp.net
[0, 9]
4,577,744
4,577,745
switching selections between two select menus
<p>I'm trying to build some kind of currency converter and I have two select menus with the list of currencies. I want to create a button that when clicked, it will switch the selection between the "from" select menu and the "to" select menu. how do I implement it using the select menus I already have?</p>
javascript jquery
[3, 5]
5,028,989
5,028,990
How to remove an element slowly with jQuery?
<p><code>$target.remove()</code> can remove the element,but now I want the process to be down with some feel animation,how to do it?</p>
javascript jquery
[3, 5]
2,747,163
2,747,164
How to Resize the bitmap image in Android using Touch events?
<p>I have a very simple layout containing only an ImageView and now i wish to bring some touch events for resize (expand / reduce) the image. What is the best way to do this task? Thanks in Advance</p>
java android
[1, 4]
4,906,594
4,906,595
jQuery: Simultaneously fadeIn + fadeOut
<p>I'm designing a small portfolio website for my friend and I am having difficulty trying to get the fadeIn + fadeOut effect to work properly. The images are sliding + fading, however, there is a long delay in between the fades and you can momentarily see the background. The slider I am using is based off of the following tutorial:</p> <p><a href="http://www.sohtanaka.com/web-design/automatic-image-slider-w-css-jquery/" rel="nofollow">http://www.sohtanaka.com/web-design/automatic-image-slider-w-css-jquery/</a></p> <p>The only changes I have done to the original code is to add a caption to the images and (trying to add) a fade effect when the images slide.</p> <p><strong>Javascript</strong></p> <pre><code>$(".image_reel").fadeIn(500).delay(0).fadeOut(500); $(".image_reel").animate({ left: -image_reelPosition }, 500); $(".image_reel").delay(0).fadeIn(500); </code></pre> <p><em>The code here can be found in the <code>rotate</code> function on the tutorial website.</em></p> <p>So, as I stated above the code here is successfully fading and sliding the images, however, there is a delay where you can momentarily see the background.</p> <p>Any help would greatly be appreciating as to how I can get one image to fade out while the other image is fading in <strong>at the same time</strong>.</p>
javascript jquery
[3, 5]
3,008,624
3,008,625
How do I use jQuery on an HTML document instead of the DOM?
<p>I'm trying to modify an HTML document, but its not the same as the DOM. However, I found that the syntax that I used with the DOM itself doesn't work with the other document. For example, I could find the title using <code>$("title")</code> with the DOM. However, with the document I have to use <code>doc.find("title")</code>. There are other, more involved changes and I'm stuck on how to proceed with this. Is there a reference I can look at? I know about the jQuery documentation, but that assumes that you're manipulating the DOM itself.</p>
javascript jquery
[3, 5]
4,535,292
4,535,293
DHTML newbie question
<p>I have just started learning Javascript and I am absolutely overwhelmed with the number of technologies available especially on the browser side. Earlier I thought that just Javascript should suffice but now it appears that I need to understand JQuery, GWT, YUI and another dozen acronyms I do not even know the expansion for. Can somebody please tell me which are the most essential technologies one needs to be fluent with in this domain?</p>
javascript jquery
[3, 5]
3,706,892
3,706,893
Why isn't jQuery.append working?
<p>I am in the middle of creating a small script to 'help' me with my homework. It uses jQuery. The script (so far) is below:</p> <pre><code>var s = document.createElement('script'); document.body.appendChild(s); s.src = "http://code.jquery.com/jquery-latest.js"; // Include jQuery var tmp_1 = document.embeds[0].GetVariable("q1answers"); // Read raw values var answers_1 = tmp_1.split(","); // Explode into array answers_1.splice(0,1); // Remove first element (always 0) var tmp_2 = document.embeds[0].GetVariable("q2answers"); var answers_2 = tmp_2.split(","); answers_2.splice(0,1); answers_1.push("LINE_BREAK"); var answers = answers_1.concat(answers_2); $("body").append("&lt;div id='answers-wrap'&gt;&lt;/div&gt;"); $("#answers-wrap").css("position", "fixed"); $("#answers-wrap").css("background", "none"); </code></pre> <p>The problem arises when it gets to the 3rd-to-last line. Chrome console claims that <code>Object #&lt;HTMLBodyElement&gt; has no method 'append'</code>, however if I extract that line and put it into the console on its own, it works fine. I can use a different method to insert HTML, but I would like to know what isn't working with this one.</p> <p>Thanks in advance!</p>
javascript jquery
[3, 5]
739,214
739,215
What does EnableViewState on a HyperLink do or mean?
<p>What does EnableViewState on a HyperLink do or mean?</p> <pre><code>&lt;asp:HyperLink ID="RegisterHyperLink" runat="server" EnableViewState="false"&gt;Register&lt;/asp:HyperLink&gt; </code></pre> <p>What does it mean? and what will it do if I set it to true. Thanks! I looked it up, but the definition was not in simple terms. </p>
c# asp.net
[0, 9]
3,165,879
3,165,880
Which is better way to introduce variables in Java/Android?
<p>Does the first example produce more efficient code than the second in Java/Android and in generally in Java?</p> <p>At least the first example can not be slower than second, I think..</p> <p>I do not care here that the variable v may live longer time in first example, perhaps eating memory for a longer time.</p> <p>Of course it is true that second way of doing is more readable if you have more complicated code with several inner blocks. Also that is not the issue here.</p> <pre><code>MyType v; for(int i=0;i&lt;bigCount;++i) { v = &lt;value produced for i&gt;; //do something with v } for(int i=0;i&lt;bigCount;++i) { MyType v = &lt;value produced for i&gt;; //do something with v } </code></pre>
java android
[1, 4]
5,234,266
5,234,267
How to stop control creation inside a repeater based on a condtition?
<p>Here is the control i want to be created only if the condition is true. How do I do that using say the "Visible" attribute or something easy like that?</p> <pre><code> &lt;p&gt;&lt;%# (GetAnswer(Eval("AnsQID"))) != 1 ? (Eval("AText")) : ""%&gt;&lt;/p&gt; </code></pre>
c# asp.net
[0, 9]
5,045,919
5,045,920
Android 4: Give buttons another style/appearance
<p>I'd like to change the appearance of the default Android 4 buttons. They look like that: </p> <p><img src="http://i.stack.imgur.com/hvE37.png" alt="enter image description here"></p> <p>I'd like them to be completely black, a white border, no rounded corners, that's all. The blue hover effect is great, no change to that. Unfortunately, there are a lot of parameters that button has. Can I realize that with a single style.xml? Which are the interesting parameters?</p> <p>Thank you very much.</p>
java android
[1, 4]
3,200,236
3,200,237
How can I tell wheter a file is opened by an other application?
<p>Is there a way to tell whether a file is opened by another application in PHP of Java?</p>
java php
[1, 2]
6,012,378
6,012,379
jquery (null is null or not an object) error on IE8
<p>When I load jquery using: </p> <pre><code>&lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"&gt;&lt;/script&gt; </code></pre> <p>it works on IE9, firefox, chrome, safari but not IE8. I tried the developer/debugger tools but still don't understand why this is an issue.</p> <p>This is the character code jquery supposedly has error on: 32039. <br/> On that line there is such function:</p> <pre><code>G=function(a){ var b=F.exec(a); b&amp;&amp;(b[1]=(b[1]||"").toLowerCase(),b[3]=b[3]&amp;&amp;new RegExp("(?:^|\\s)"+b[3]+"(?:\\s|$)")); return b } </code></pre> <p>Anyone came across this issue as well?</p> <p>The site is <a href="http://www.kanersan.com">http://www.kanersan.com</a></p> <p>I am not calling jquery before it is loaded and I'm loading it inside the head tag.</p>
javascript jquery
[3, 5]
3,164,921
3,164,922
ASP.NET Response.End Problem
<p>i got a page users downloading files from there.And when a user click download link and finish downloading file , i am insertin' a new record for my File Download Counter event. (FileID,Date,blalbla..) </p> <p>But there is problem with my script ... after download starts and finish, its adding a new record but after this, its fires event again and making a new record too.So 1 download and 2 new download record. here is my script; </p> <pre><code> if (Page.Request.QueryString["FileID"] != null) { OleDbCommand command = new OleDbCommand("select * from Dosyalar where DosyaID=" + Page.Request.QueryString["FileID"].ToString(), veri.baglan()); string dosyaAdi = ""; int DosyaID = 0; OleDbDataReader dr = command.ExecuteReader(); while (dr.Read()) { dosyaAdi = Server.MapPath("formlar") + "\\" + dr["URL"].ToString(); DosyaID = Convert.ToInt32(dr["FileID"]); } dr.Close(); FileInfo dosya = new FileInfo(dosyaAdi); Response.Clear(); Response.AddHeader("Content-Disposition", "attachment; filename=" + dosya.Name); Response.AddHeader("Content-Length", dosya.Length.ToString()); Response.ContentType = "application/octet-stream"; Response.WriteFile(dosyaAdi); // INSERT A NEW RECORD OleDbCommand ekle = new OleDbCommand("Insert into Indirilenler (FileID,Tarih) values (@p1,@p2)", veri.baglan()); ekle.Parameters.AddWithValue("p1", FileID); ekle.Parameters.AddWithValue("p2", DateTime.Now.ToShortDateString()); ekle.ExecuteNonQuery(); Response.Flush(); Response.End(); </code></pre>
c# asp.net
[0, 9]
249,718
249,719
Jquery mouse-over fade-in/out (best practices)
<p>I've got working Jquery code to fade in/out descriptive text in a div below the question. The problem? The solution is not very elegant. Here's what I've got:</p> <pre><code>$("#home").mouseover(function() { $("#homeText").fadeIn("slow"); }); $("#homeText").mouseout(function() { $("#homeText").fadeOut(); }); </code></pre> <p>I know there is better way to do this, I'm just not sure what it is.</p>
javascript jquery
[3, 5]
5,734,517
5,734,518
updating config file
<p>I am trying to update the app.config file of another application from my project both are in c#. I know how to update it for the project in memory but not sure how to access the app.config file of my other project. I have following code but that will change the app.config file of my current project not the other one ....thanks for the suggestions or ideas </p> <pre><code> XmlDocument xmlDoc = new XmlDocument(); xmlDoc.Load(AppDomain.CurrentDomain.SetupInformation.ConfigurationFile); foreach (XmlElement element in xmlDoc.DocumentElement) { if (element.Name.Equals("appSettings")) { foreach (XmlNode node in element.ChildNodes) { if (node.Attributes[0].Value.Equals("Setting1")) { node.Attributes[1].Value = "New Value"; } } } } </code></pre>
c# asp.net
[0, 9]
3,888,298
3,888,299
Add list in Javascript
<p>I want to add another list while I click on anchor or button in Javascript, which should contain multiple textboxes, an option-list and a delete button on the second and onward lists. Look at:</p> <p><a href="http://jsfiddle.net/KMLkn/3/" rel="nofollow">http://jsfiddle.net/KMLkn/3/</a></p> <p>Can we use clone(jquery) for this?</p>
javascript jquery
[3, 5]
5,519,488
5,519,489
Application stopped working unexpectedly. Please try again
<p>I am trying to display the name and number of a contact from android phone book, i have one contact stored in my AVD. can anyone tell me whats wrong with this code please...it is showing application stopped working Please try again...thanks in advance...</p> <pre><code>public class get extends Activity { private void getColumnData(Cursor cur) { if(cur.moveToFirst()) { int numi=cur.getColumnIndex(People.NUMBER); int namei=cur.getColumnIndex(People.NAME); String name,num; do{ name=cur.getString(namei); num=cur.getString(numi); }while(cur.moveToNext()); } } @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Uri u=People.CONTENT_URI; String[] proj=new String[]{People.NAME,People.NUMBER}; Cursor cur=managedQuery(u, proj, null, null, null); getColumnData(cur); TextView tv=new TextView(this); tv.setText("First step"); setContentView(tv); } } </code></pre>
java android
[1, 4]
1,391,874
1,391,875
Converting string array to Name/Value object in javascript
<p>I currently am dealing with a Web Service that is returning an array of strings to the client. From here I would like to take this array of strings and convert it into an object that gives each string a name so to reference it later.</p> <p>So start with this:</p> <pre><code>var result = ["test", "hello", "goodbye"]; </code></pre> <p>And I would like to end up with this:</p> <pre><code>var final = [{'value': "test"}, {'value': "hello"}, {'value': "goodbye"}]; </code></pre> <p>I use jquery. Is there a easy to accomplish this?</p>
javascript jquery
[3, 5]
112,383
112,384
c# webbrowser click radio button in a form
<p>I am using webbrowser element in my code to automate some stuff. I am loading a form in this webbrowser, which contains several radiobutton in. My purpose is just to select one of the radi buttons. However, in the html code, there is a JS code which changes the form action target depending on the selected radio button. So if I use, </p> <pre><code>webBrowser1.Document.GetElementById("chicken").SetAttribute("checked", "checked"); </code></pre> <p>it selects the radio button that I want but just that. I mean it doesn't trigger the JS code. In this JS Code, it also submits the page, so my code above only selects the radio button and calls the same page. How can I solve this?</p> <p>Form tag is like the following:</p> <pre><code>&lt;form id="choose_dept" method="POST" action="/place/"&gt; </code></pre> <p>JS code is like this:</p> <pre><code>&lt;script type="text/javascript"&gt; &lt;!-- $("#choose_dept").change(function(){ $("#choose_dept").attr('action', '/place/' + ('input[name=department]:checked').val() + '/' ); this.submit(); }); </code></pre> <p>--> </p> <p>Last edit:</p> <pre><code> String sc = @"$(document).ready(function(){" + "$(\"input:radio[name=department]\").change(function() {" + "$(\"#choose_dept\").attr('action','place/'+$(this).val());" + "$(\"#choose_dept\").submit();" + "});" + "});"; HtmlElement headElem = (HtmlElement)webBrowser1.Document.GetElementsByTagName("head")[0]; HtmlElement scriptElem = (HtmlElement)webBrowser1.Document.CreateElement("script"); IHTMLScriptElement elem = (IHTMLScriptElement)scriptElem.DomElement; elem.text = sc; headElem.AppendChild(scriptElem); webBrowser1.Document.GetElementById("chicken").SetAttribute("checked", "checked"); webBrowser1.Document.InvokeScript("ready()"); </code></pre>
c# javascript jquery
[0, 3, 5]
2,833,434
2,833,435
how to send variable form javascript to php?
<p>how can i send variable from java script function and use it for a function of PHP?</p> <pre><code>enter code here &lt;script&gt; function showpopup(var1){ document.getElementById('popup').style.display='block'; document.getElementById('mane').value=var1; } &lt;/script&gt; </code></pre>
php javascript
[2, 3]
2,061,002
2,061,003
Convert java to c# .net
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/896867/tool-to-convert-java-to-c-code">Tool to convert java to c# code</a> </p> </blockquote> <p>I have done a project in java and I want to convert it to C#.Net. I'm using Visual Studio 2008. How can I convert the code from Java to C#? Are there any tools available? </p>
c# java
[0, 1]
3,456,654
3,456,655
out.write with android EditText
<p>I have many out.write lines of code (515 in total) that build an excel.xml file. I now need to be able to build a out.write line of code to include values from a string. Here is an out.write code line</p> <pre><code>out.write (" &lt;Cell ss:StyleID=\"s44\"&gt;&lt;Data ss:Type=\"Number\"&gt;25&lt;/Data&gt;&lt;NamedCell ss:Name=\"Print_Area\"/&gt;&lt;/Cell&gt;\r\n"); </code></pre> <p>and I would like to replace the 25 with the string value square_area_feet_result</p> <pre><code>double square_area_feet = square_area_inches / sqin_to_sqft; String square_area_feet_result = String.format("%.4f", square_area_feet); m1_sa_ft.setText(square_area_feet_result); </code></pre> <p>the out.write seems quite literal so maybe I have to first build everything after out.write?</p>
java android
[1, 4]
143,069
143,070
findviewbyid returns null in a dialog
<p>I have a custom dialog and when I try to get the value of an EditText it returns null.</p> <p>This line returns null</p> <pre><code>EditText et = (EditText)findViewById(R.id.username_edit); </code></pre> <p>Here is the code in its entirety.</p> <pre><code>protected Dialog onCreateDialog(int id) { switch (id) { case DIALOG_TEXT_ENTRY: LayoutInflater factory = LayoutInflater.from(this); final View textEntryView = factory.inflate(R.layout.alert_dialog_text_entry, null); return new AlertDialog.Builder(TicTacToe.this) //.setIconAttribute(android.R.attr.alertDialogIcon) .setTitle(getTitleText()) .setView(textEntryView) .setPositiveButton("JOIN GAME", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int whichButton) { try { EditText et = (EditText)findViewById(R.id.username_edit); playerName = et.getText().toString(); } catch (Exception e) { } } }) .create(); } return null; } </code></pre>
java android
[1, 4]
2,325,420
2,325,421
Jquery comparing elements
<p>I have an array on javascript and i insert the elements on it like this:</p> <pre><code> var parentRow = $(button).parent().parent(); list.push({ parent: parentRow, detailRow: newRow }); </code></pre> <p>On the click of another button i do the following:</p> <pre><code> var parentRow = $(button).parent().parent(); var detailRow = null; for (var i in list) { if ($(list[i].parent) == $(parentRow)) { detailRow = list[i].detailRow; } } </code></pre> <p>The point is: The if comparing to two elements should return TRUE, because they are the same DOM element....the same i added before, but it return FALSE.</p> <p>I would like to know how i compare this two elements to get TRUE there.</p>
javascript jquery
[3, 5]
4,504,722
4,504,723
How can I remove a browser's cache server-side, using ASP.NET?
<p>How can I remove a browser's cache server-side, using ASP.NET (C#)?</p> <p>A coupon shows by itself (I believe it comes from cache as I did also browse for other apparel sites). It breaks my JavaScript as well as my server-side code, as I am using an UpdatePanel for Ajax, and it duplicates the UpdatePanel's ID. I have renamed the UpdatePanel's ID, but it makes no difference. It generates "Invalid view State" exception. The coupon name is "FastSave"</p> <p>What I have tried:</p> <pre><code>Response.Cache.SetExpires(DateTime.UtcNow.AddMinutes(-1)); Response.Cache.SetCacheability(HttpCacheability.NoCache); Response.Cache.SetNoStore(); </code></pre>
c# asp.net
[0, 9]
3,294,179
3,294,180
rawurldecode and regexp for splitting words with and without quotes in javascript?
<p>so here is the case:</p> <p>i have a string in php (containts 2 words):</p> <pre><code>windows "mac os" </code></pre> <p>i encode it with rawurlencode and put it in the URL after ?name= in an anchor. when i click it i see the following in the browsers url.</p> <p>index.php?name=windows%20%5C%22mac%20os%5C%22</p> <p>and then i get it with javascript with jquery bbq.</p> <pre><code>var string = $.deparam.querystring(); document.write(string.name); </code></pre> <p>and get:</p> <pre><code> windows \"mac os\" </code></pre> <p>i want to get windows "mac os" when i output it with javascript. and then i want to split the words to:</p> <pre><code> array[0] = windows array[1] = mac os </code></pre> <p>the first step i think should be to get the string with rawurldecode but for javascript so i will get windows "mac os" rather than windows \"mac os\"?</p> <p>and then the second step should be what regexp to use in javascript split() to split it to the words in the array above?</p> <p>ive tried a numerous options but none is working. im stuck here..and its really frustrating. any help with these 2 steps would be appreciated</p>
php javascript jquery
[2, 3, 5]
5,789,996
5,789,997
How to prevent script loading in different domain
<p>I have <code>&lt;script src="bla"&gt;&lt;/script&gt;</code> that can be loaded in several domains. I want to know if there is a way to control the domains it will be loaded on. To clarify: My script is server-side rendered, so basically I can return empty string if the requested domain is invalid.</p> <p>This is to prevent from other sites embedding my script.</p> <p>Thanks!</p>
c# javascript asp.net
[0, 3, 9]
4,056,327
4,056,328
Appending to Second Last element
<p>This is the final output <img src="http://img2.pict.com/cc/dc/64/3257730/0/20100330041140.png" alt="Output"></p> <p>My HTML</p> <pre><code>&lt;li id='$id'&gt;TEXT &lt;ul class='indent'&gt; &lt;li id='$id'&gt;TEXT&lt;/li&gt; &lt;li id='$id'&gt;TEXT&lt;/li&gt; &lt;li class='formContainer'&gt; FORM &lt;/li&gt; &lt;/ul&gt; &lt;/li&gt; </code></pre> <p>I want to append a <code>li</code> between <code>form</code> after all other <code>li</code> So in this example new li will be appended between <code>Test141</code> APPEND <code>Input Box</code></p> <p>The <code>$id</code> are db ids of li which are unique</p>
javascript jquery
[3, 5]
3,149,607
3,149,608
What does jQuery ajax() return?
<p>Is this in the API documentation:</p> <pre><code>jQuery.ajax( url [, settings] ) </code></pre> <p>when you run</p> <pre><code>done(); </code></pre> <p>on it</p> <p>What is done acting upon?</p> <p>I'm looking for documentation on done().</p> <p>It is working on this object ( slang )</p> <pre><code>xhr </code></pre> <p>on this property which takes a method:</p> <pre><code>onreadystatechange </code></pre>
javascript jquery
[3, 5]
878,091
878,092
Moving a blinking image from left to right jquery
<p>I am working on a project where I am assigned a task to make a blink image moving on the web page from the left to the right. The image should move(step up) and blink each second. I know how to make it blink, my code is below:</p> <pre><code>function blink(time, interval){ var timer = window.setInterval(function(){ $("#img").css("opacity", "0.1"); window.setTimeout(function(){ $("#img").css("opacity", "1"); }, 100); }, interval); window.setTimeout(function(){clearInterval(timer);}, time); } blink(5000, 1000); </code></pre> <p>But I don't know how to move it on a second basis and at the same time blink it.</p> <p>Please, help me guys! Thanks</p>
javascript jquery
[3, 5]
752,942
752,943
How to get values from dynamically added (using javascript) elements?
<p>On my aspx page I dynamically create html controls on client side using javascript. For example, after page load you can click button in a browser, by clicking button html <em>input</em> and <em>select</em> elements appear. You may click once again, and this elements (<em>input</em> and <em>select</em>) will added again. So, you can create so many inputs and selects as you want (all this using javascript, no postbacks)</p> <p>After user created some inputs and selects and entered some information in it, he posted form. I want on server side to find all this dynamically added elements and perform some actions depends on values in this controls. </p> <p>How can I find dynamically added elements, and what is the best and elegant way to achieve this?</p> <p>Thanks in advance.</p>
javascript asp.net
[3, 9]
3,629,642
3,629,643
how to close activity after x minutes?
<p>I am looking for simplest way to close opened activity after x minutes. Does android provide countdown class or do I have to made one by my self ?</p> <p>I've tried this code but its not working</p> <pre><code>Thread isOnDisplayThread = new Thread(new Runnable() { @Override public void run() { Timer mTimer = new Timer(); mTimer.schedule(new TimerTask() { @Override public void run() { Log.d(TAG, (isApplicationOnDisplay) ? "Application on display" : "APPLICATION ON BACKGROUND"); if (!isApplicationOnDisplay) { notOnDisplayTime++; if (notOnDisplayTime &gt;= 10) { Process.killProcess(Process.myPid()); } } else { notOnDisplayTime = 0; } } }, 0, 1000); } }); isOnDisplayThread.run(); </code></pre>
java android
[1, 4]
290,022
290,023
Web Application Authentication
<p>I have two questions concerning authentication of a intranet website and how to go about doing it.</p> <ol> <li>I want the first page the user comes to, to be the login page. I could have sworn there was a tag, something like [Authorize] that you put in your C# code that did this for you but I can't find it anymore. Right now the first page is my dafault.aspx. I turned on windows authentication in the web.config file and it automatically logged me in. So that is working, but I want the user to have to login as stated above. What do I have to do?</li> <li>I only want to allow people that are in a certain group to have access. How do I add this additional check?</li> </ol>
c# asp.net
[0, 9]
905,737
905,738
How to tweak the content in the drop down list in asp.net
<p>I have a drop down column and the drop down contain a value "accidents" .Now I want to make the value to read as upper case "Accidents" and there are many as such in the grid .One way is to update the current value to uppercase but as these values are being used in the application where they want the wording to be in the lower case .How can these be handled through code..please advise?</p>
c# asp.net
[0, 9]
1,692,908
1,692,909
jquery cycle IE7 transparent png problem
<p>I'm having trouble getting jquery cycle to work when I have transparent png files in IE7</p> <p>It's fine in Firefox and Chrome but in IE (version 7) I get a black colour where the png transparency is during the fade.</p> <p>Can this be made to work right?</p>
asp.net jquery
[9, 5]
1,004,572
1,004,573
Controlling the animation
<p>I am creating a whack-a-mole style game where a sum is given and numbers animate from the bottom of the container to the top. The aim of the game is to click the correct answer to the sum and collect as many correct answers as possible.</p> <p>I have also added a couple of extra icons to make the game more fun. One of the icons is a flame which speeds up the animation for 5 seconds.</p> <p>At the moment it makes all the icons move really fast all at once. Instead of this happening I want the flow to continue as usual, but at a faster pace.</p> <p>This is what I have so far..</p> <pre><code>$(".character").click(clickThrottled(function () { if ($(this).hasClass("heat")) { $(this).effect("explode", 400); $("#container").children().css('top', '400px').fadeIn(1000).animate({ 'top': '-100px' }, 3000).fadeOut(1000); } })); </code></pre> <p>Can someone show me where I am going wrong? Look at the demo and click the flame icon to get a better understanding of the problem.</p> <p>Fiddle: <a href="http://jsfiddle.net/pUwKb/52/" rel="nofollow">http://jsfiddle.net/pUwKb/52/</a></p>
javascript jquery
[3, 5]
2,357,337
2,357,338
Best practice to save data for anonymous users?
<p>I'm building a web app and i'd like to allow anonymous users to use it and to save some data without signing up.</p> <p>let's assume the user save a list of favorites image urls without singing up.</p> <p>now i'm using this way: I save those favs in db and then i save the user's ip address so every time the user go back he can see his past favs</p> <p>of course this is a temp solution</p> <p>what's the best way to associate that list to a specific user? save it in a cookie? some hybrid solution?</p>
php javascript
[2, 3]
4,584,130
4,584,131
How can i hide a span using javascript?
<p>How can i hide a span content using JavaScript.</p> <pre><code>&lt;span class="price"&gt;My content goes here&lt;/span&gt; </code></pre>
javascript jquery
[3, 5]
198,290
198,291
Need advises how to make authentication in asp.net
<p>Im developing asp.net c# web site where i want to make user authentication. without any roles or something. </p> <p>i have database with user table where i store all user data, this table have relationship with many other tables.</p> <p>I like asp.net from authentication controls, but problem is that it have her custom database lots of tables, views and stored procedures, i need more simpler solution for my problems. All i want is to make secure remember me and any time check if user is logged in and get user name or id. Of course i tried custom relationship provider but i could not changed asp users table to my user table .</p> <p>So I just need secure remember me function and to get user id any time.</p>
c# asp.net
[0, 9]
1,502,528
1,502,529
Would it be possible to intercept all redirects and open the contents in a new window/pop up?
<p>So I have a page that contains an iframe. Inside the iframe, there are links that opens up new page in the same window (self.location.href) (window.open(urlstring,'false') etc...etc...</p> <p>Is there a way that I could force all links inside this window to open up their contents in a new window/pop up? Overrides their redirect settings and without changing the code inside the iframe?</p> <p>The reason I'm asking this is because that, I think the iframe page still references the parent window as their window, therefore, when the function like "window.self.open" was triggered, it took my whole parent window away...</p> <p>Maybe anyway to embed the iframe as an separate window inside the page? Just not sure how to avoid the same window referencing...</p> <p>Thanks!</p>
javascript jquery
[3, 5]
3,503,673
3,503,674
php jquery count down timer script
<p>i have one count down timer using <a href="http://keith-wood.name/countdown.html" rel="nofollow">http://keith-wood.name/countdown.html</a></p> <pre><code>var austDay = new Date(); austDay = new Date(austDay.getFullYear() + 1, 1 - 1, 26); $('#defaultCountdown').countdown({until: austDay,format: 'HMS'}); </code></pre> <p>this works fine.</p> <p>but for one year, as i can see in code that </p> <blockquote> <p>austDay = new Date(austDay.getFullYear() + 1, 1 - 1, 26);</p> </blockquote> <p>is generating last date.</p> <p>my last date is coming from PHP and i want to change the above line so that last date will be calculated from one of PHP variable.</p> <p>Thanks</p>
php jquery
[2, 5]
4,751,741
4,751,742
A sticky situation for jQuery slideshow
<p>I'm required to develop a slideshow (not an existing one) with jQuery. I was able to change picture with a function that I created named changePic (takes an image link). It incorporates the fading animation from the jQuery library. </p> <p>For the slideshow I'm trying to use a while loop. It kind of works, except that it doesn't wait for the animation to finish. </p> <p>How do I, a) wait for the animation to finish, b) delay the changing picture so it display the picture for a couple of seconds?</p> <p>Also tried Settimeout, and it doesn't work.</p> <p>Edit:</p> <p>Basically changing image is like this:</p> <pre><code>function changePic(imglink){ var imgnode = document.getElementById("galleryimg"); $(imgnode).fadeTo(500, 0, function(){ $(imgnode).attr("src", imglink); $(imgnode).fadeTo(1000, 1); }) } </code></pre> <p>and the slideshow code is like this, but obviously it shouldn't.</p> <pre><code>function slideshow(gallerylinks){ var i=0; while (i&lt;gallerylinks.length){ changePic(gallerylinks[i]); i++; } } </code></pre>
javascript jquery
[3, 5]
5,756,908
5,756,909
javascript to jquery
<p>This function call ResizeableTextbox('myRT'); works well inside javascript(produces a resizeable text box) but doesn't work inside jQuery code.Why?</p> <p>This produces the resizeable textbox.</p> <p><code>&lt;script type="text/javascript"&gt;</code><br /> ResizeableTextbox('myRT');<br /> <code>&lt;/script&gt;</code></p> <p>But if I give it like this in the jquery code,I dont get the resizeable textbox.</p> <pre><code>$(".select").change(function () { $(".select"+increment+" option:selected").each(function () { if($(this).text() =='String') { $("&lt;label id=labelid &gt;"+label+"&lt;/label&gt;").appendTo(".menu li"); ResizeableTextbox('myRT');//this does not work.How else to code? } }); }); </code></pre> <p>Is there any method for function call in jQuery?</p> <p>Update:</p> <p>The function call ResizeableTextbox('myRT'); doesn't work anywhere within the jQuery code. It works only inside <code>&lt;script&gt;</code>.</p> <p>How else to write this function call? some one help me please..</p>
javascript jquery
[3, 5]
1,820,158
1,820,159
How to change and track changes to a textarea
<p>I found it really hard to come up with a question title for this one so I apologise that it's fairly cryptic but I'll try explain better there.</p> <p>Basically part of an app I'm developing involves placing 'placeholders' in a textarea and then modifying those placeholders outside of the textarea. </p> <p>For example:</p> <pre><code>This is the &lt;first&gt; placeholder. This is the &lt;second&gt; placeholder. This is the &lt;first&gt; placeholder again. </code></pre> <p>Basically i have JS that detects these placeholders and creates input boxes to hold the text. So there would be an input text box for <strong>first</strong> and one for <strong>second</strong>. </p> <p>What I want to achieve is when I type a value into the textbox it changes the placeholder in the textarea to the content being typed into the textbox. Think sublime text editor's snippets for a textarea.</p> <p>I'm trying to figure out how I can track the placeholders in the text area. For example if a placeholder was <code>&lt;first_name&gt;</code> and i started typing into the placeholders textbox 'Billy'. I could easily change the placeholder by using a string replace function. However now the placeholder <code>&lt;first_name&gt;</code> doesn't exist in the textarea and so now I can't go back and change it. I need to have a way of tracking these placeholders whilst they are changing.</p> <p>I hope that makes sense.</p>
javascript jquery
[3, 5]
666,829
666,830
Is there a good alternative to having JavaScript code as string literals in my ASP.net code?
<p>Working on an ASP.net web application, I've been wondering if there is a good way to avoid writing JavaScript code in string literals in my ASP.net code. See here: <a href="http://www.4guysfromrolla.com/articles/030202-1.aspx" rel="nofollow">http://www.4guysfromrolla.com/articles/030202-1.aspx</a>. </p> <p>In the linked example, I see code that looks like: </p> <pre><code>Private Sub Calendar1_SelectionChanged(sender As Object, e As EventArgs) Dim strjscript as string = "&lt;script language=""javascript""&gt;" strjscript &amp;= "window.opener." &amp; _ Httpcontext.Current.Request.Querystring("formname") &amp; ".value = '" &amp; _ Calendar1.SelectedDate &amp; "';window.close();" strjscript = strjscript &amp; "&lt;/script" &amp; "&gt;" 'Don't Ask, Tool Bug Literal1.Text = strjscript 'Set the literal control's text to the JScript code End Sub </code></pre> <p>I'm not used to using much JavaScript. A lot of the code that I've worked with has been mostly server-side coding with T-SQL. The above code gives me a headache just looking at it. Not only is it ugly, but it shows a pattern where a malicious user could try to inject malicious code.</p> <p>Is there a better way to avoid manipulating JavaScript code as string literals? Think of the ways we have to avoid manipulating T-SQL code as string literals.</p>
javascript asp.net
[3, 9]
2,312,816
2,312,817
What is wrong with selecting with my drop down element
<pre><code>&lt;html&gt; &lt;head&gt; &lt;script type='text/javascript' language='javascript' src="http://localhost/javascript/jquery-1.4.2.js"&gt; &lt;/script&gt; &lt;script type='text/javascript' language='javascript'&gt; $(document).ready(function(){ $("#button").mousedown(function(){ dropDownMenu = $("#dropDownMenu"); alert(dropDownMenu.options[0].text); }); }); &lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;select id="dropDownMenu"&gt;&lt;option&gt;Test&lt;/option&gt;&lt;/select&gt;&lt;br&gt; &lt;input id="button" type="button"&gt; &lt;/body&gt; &lt;/html&gt; </code></pre>
javascript jquery
[3, 5]
25,772
25,773
Check permission on every page
<p>in my web site i need to check permission on every page, i found my self repeating the same code every page.</p> <p>this is one of my pages</p> <pre><code>public partial class KitView : AmsBasePage { protected void Page_Load(object sender, EventArgs e) { IddUser user = new IddUser(); user = (IddUser)Session["user"]; bool isAdmin = user.roles.Where(IddRole =&gt; IddRole.R_ID.Equals(3)).First().IsInRole; bool isIddTeam = user.roles.Where(IddRole =&gt; IddRole.R_ID.Equals(2)).First().IsInRole; bool isProductionTeam = user.roles.Where(IddRole =&gt; IddRole.R_ID.Equals(1)).First().IsInRole; if (isAdmin) { hypAddComponent.Visible = true; hypAddComponent.NavigateUrl = "AddComponent.aspx?CKID=" + Request.QueryString["CKID"]; } } } </code></pre> <p>how is the best practice to have the roles: isAdmin,isIddTeam,isProductionTeam in every page but not repeating the code below in every page code </p> <pre><code>IddUser user = new IddUser(); user = (IddUser)Session["user"]; bool isAdmin = user.roles.Where(IddRole =&gt; IddRole.R_ID.Equals(3)).First().IsInRole; bool isIddTeam = user.roles.Where(IddRole =&gt; IddRole.R_ID.Equals(2)).First().IsInRole; bool isProductionTeam = user.roles.Where(IddRole =&gt; IddRole.R_ID.Equals(1)).First().IsInRole; </code></pre>
c# asp.net
[0, 9]
2,075,506
2,075,507
Why do I need to set the Visibility of LinkButton in a ListView Layout in the LayoutCreated event instead of directly on the LinkButton?
<p>I have a ListView control and in the LayoutTemplate I have a LinkButton. I tried setting the Visible property to &lt;%# IsUserAdmin %>, where IsUserAdmin is a method which returns true or false depending on whether the user is an admin or not and sets the visibility of the control, but I found out that this does not work for the LayoutTemplate and instead of I have to go to the LayoutCreated event and get the control and then set its visibility. I am curious why I have to do it this way with a control in the LayoutTemplate? I can use the &lt;%# IsUserAdmin %> on the Visible property of a control in the ItemTemplate with no problem. I was thinking it would actually be easier for the LayoutTemplate because there is only 1 control generated instead of multiple controls for the ItemTemplates.</p>
c# asp.net
[0, 9]
4,295,855
4,295,856
Jquery add tr to last but one row in a table
<p>Sample Code </p> <pre><code>`&lt;table&gt; &lt;tr&gt; &lt;td&gt; first column &lt;/td&gt; &lt;/tr&gt; &lt;tr id ="addRow"&gt; &lt;td&gt;&lt;input type="button" id="add_button" name="add" value="Add" /&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; ` </code></pre> <p>Now when i click this Add button it should add tr before this row i.e </p> <pre><code>`&lt;table&gt; &lt;tr&gt; &lt;td&gt; first column &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt; some content &lt;/td&gt; &lt;/tr&gt; &lt;tr id ="addRow"&gt; &lt;td&gt;&lt;input type="button" id="add_button" name="add" value="Add" /&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; ` </code></pre> <p>so the next time i click Add button it has to be </p> <pre><code>`&lt;table&gt; &lt;tr&gt; &lt;td&gt; first column &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt; some content &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt; some content &lt;/td&gt; &lt;/tr&gt; &lt;tr id ="addRow"&gt; &lt;td&gt;&lt;input type="button" id="add_button" name="add" value="Add" /&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; ` </code></pre> <p>How is this done?? Please help</p>
javascript jquery
[3, 5]
3,302,681
3,302,682
Edit attribute value in an HTML string
<p>So, I've got a string. The string contains html. I'm checking the string for 'name', if it doesn't have one I'm using sneaking one in there if it does I need to change what it is.</p> <pre><code>var myString = '&lt;input id="accountUser_c967817c993e62b1de50e4f0401a03ae" type="hidden" value="c967817c993e62b1de50e4f0401a03ae" name="addRow[]"&gt;&lt;div class="colors goldbluegreenorange"&gt;&lt;/div&gt;'; if (myString.indexOf('name') == -1) { myString = myString.substr(0,myString.indexOf('&gt;')) + ' name="addRow[]"' + myString.substr(myString.indexOf('&gt;')); } else { //get what's inside name's quotes and change it to removeRow[]. } </code></pre> <p>I've got jquery going on too, if that makes more sense than straight javascript.</p>
javascript jquery
[3, 5]
422,135
422,136
Add javascript pixel values?
<p>Is there a way in javascript/jQuery to take two variables with values "60px" and "40px" and add them together to get "100px"?</p> <p>Or in a more general sense, I'm trying to calculate positions of objects relative to other objects and it would be really convenient if I could do something like this:</p> <pre><code>$('#object2').css('left', $('#object1').css('left')+'60px'); </code></pre> <p>Of course, that just gives in invalid "40px60px".</p>
javascript jquery
[3, 5]
1,786,989
1,786,990
Deleting files from a folder - android
<p>I have a folder which contains some files that I want to deleted after processing them. The files have the extension <code>.FIR</code> After some googling I found a recursive method that I modified a bit:</p> <pre><code>void delete(File f) throws IOException { if (f.isDirectory()) { for (File c : f.listFiles()) if(f.listFiles().toString().contains(".FIR")) delete(c); } if (!f.delete()) throw new FileNotFoundException("Failed to delete file: " + f); } </code></pre> <p>This function will throw an IOException telling me:</p> <pre><code>07-31 11:02:31.885: E/DELETE:(5694): Failed to delete file: /mnt/sdcard/ExtractedFiles </code></pre> <p>The folder has been set to <code>RW</code> operations. And in my manifest file:</p> <pre><code> &lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /&gt; </code></pre> <p>I couldn't find another permission that sounded something like <code>MODIFY_FILES</code></p> <p>Any ideas? </p>
java android
[1, 4]
4,170,333
4,170,334
How can I use my coding skills for good?
<p>By this autumn my two small websites should be generating around a total of $1200 a month with minimal/zero input which is enough to for me to live on comfortably enough. </p> <p>Rather than embark on another business venture, I would love to spend the next few years doing something genuinely good or that helps other people that need it. I want to spend 4 or 5 years dedicating my time to a worthy cause and do the most I can to help with the web development &amp; programming skills that I already have.</p> <p>The problem is that I don't know where to start. I don't have an awesome idea of my own and am very sceptical of many large charities. Ideally I'd like to find a small project where everyone is unpaid and focused on helping.</p> <p>Are there any such small organisations?</p> <p>Does anyone have an idea for a project/website/app that can help people in need that they would like me to work on or work with them on?</p> <p>I know this isn't a typical StackOverflow 2+2=? type question and some of you will be itching to delete it but considering the philanthropic nature of the IT industry (just look at S.O. itself) this is very relevant question to many developers either now or at some point in their careers. Given the recent events in Japan this question is particularly relevant with many people looking for ways they can help others with the skills/time that they have available.</p> <p>Really looking forward to reading your thoughts/answers on this, thanks guys</p>
c# java php javascript jquery
[0, 1, 2, 3, 5]
5,009,775
5,009,776
Alternative of VMRuntime.getRuntime().setMinimumHeapSize in Gingerbread
<p>I know there's a VMRuntime.getRuntime().setMinimumHeapSize in Android 2.1/2.2 for developer to adjust the starting heap size of the application, and it is one of the most effective solution sfor solving the OutOfMemory error during BitmapFactory.decodeStream()</p> <p>However, since Android 2.3, this VMRuntime class is removed from official API, does anyone knows the alternative API of this function in 2.3?</p>
java android
[1, 4]
1,005,690
1,005,691
how to display image created dynamically in asp.net 3.5 c# on localhost
<p>I have to display image dynamically. I have written code for that, i got the name of the image &amp; path also from database i.e Filename &amp; filepath which i stored earlier, but I didnt get image(not displaying image even i stored path of that image). Please give me idea about how to set imageurl of image here on local host. My code is as follow:</p> <pre><code>//PlaceHolder for adding images i.e inside formview control PlaceHolder PHFilename = (PlaceHolder)FVViewCustData.FindControl("PHFilename"); for (int i = 0; i &lt; dsfile.Tables[0].Rows.Count; i++) { HyperLink hypname = new HyperLink(); hypname.Text = Convert.ToString(dsfile.Tables[0].Rows[i]["FileName"]); PHFilename.Controls.Add(hypname); Image img = new Image(); //IPAddress is my ipaddress img.ImageUrl = "IPAddress" + Convert.ToString( dsfile.Tables[0].Rows[i]["FilePath"]); PHFilename.Controls.Add(img); } </code></pre>
c# asp.net
[0, 9]
4,992,182
4,992,183
Facebook Style "Like" button without postback
<p>How would one go about creating a facebook-style "Like" button in C# ASP.NET without doing a postback? Are there any code examples or tutorials that you know of? I assume that would have to use asynchronous javascript. (this is a tough one to search for due to the Facebook keyword!)</p> <p>This would have to work with .NET 2.o framework, SQL Server 2005 and VS 2005.</p> <p>Thanks for any direction.</p>
c# asp.net
[0, 9]
631,154
631,155
jquery related question
<p>i am modifying the inner html through javascript, and the inner html involves a button but when i put in the jquery code to run on the button click event it fails to do so .. sorry but im a newb when it comes to javascript</p> <p>content im adding into the html .. </p> <pre><code>function add() { var val=document.getElementById("ans").value; document.getElementById("answers").innerHTML+="&lt;tr&gt;&lt;td&gt;"+val+"&lt;br/&gt;&lt;p align=\"right\"&gt;&lt;button class=\"replyb\"&gt;replies&lt;/button&gt;&lt;/p&gt;"+"&lt;/td&gt;&lt;/tr&gt;"; document.getElementById("ans").value=""; } </code></pre> <p>jquery code ...</p> <pre><code>enter code here </code></pre>
javascript jquery
[3, 5]
4,939,350
4,939,351
How do I serialize an javascript array into html attribute and fetch it back with jquery?
<pre><code>var arr=[...]; var html = '&lt;input attr="' + serialize(arr) + '"&gt;'; </code></pre> <p>I can't simply <code>join(' ')</code> the <code>arr</code> as there may be white space or other special characters.</p> <p>How do I do it properly?</p>
javascript jquery
[3, 5]
2,865,391
2,865,392
jQuery adding a number to text
<p>I am trying to do something I though would be really simple. add the value of 1 to a number.</p> <p>However the number was plain text and things are getting a little confusing. As you may be able to guess, I am fairly new to this.</p> <p>My goal is to add 1 point to an existing score, the score has one decimal place, eg 1.3. So the desired result after adding a point is 2.3. However The current script I wrote is returning adds a point to the second decimal place and I don't understand why.</p> <p>Thanks for the help.</p> <pre><code>var getPoints = parseInt($('.awesome-points').text(), 10).toFixed(1); alert(getPoints); var addPoint = 1; var newScore = getPoints + addPoint; $('.awesome-points').text(newScore); </code></pre> <p>Mark</p>
javascript jquery
[3, 5]
4,745,301
4,745,302
JS/jQuery: How to highlight or select a text in a textarea?
<p>I don't want to highlight text (by changing background color to yellow - NO), I just want to select a portion of the text inside textarea, exactly as if the user clicked and hold the click then moved the mouse to highlight only a portion of the text</p> <p>How to do that? is it possible?</p>
javascript jquery
[3, 5]
3,571,568
3,571,569
How to get the eq() of $(this)?
<p>Here's my code:</p> <pre><code>$('div.menu &gt; ul &gt; li &gt; a').click(function(e) { alert($(this).eq()); e.preventDefault(); }); &lt;div class="menu"&gt; &lt;ul&gt; &lt;li&gt;&lt;a href=""&gt;Animals&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href=""&gt;Cars&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href=""&gt;Sports&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt;&lt;!-- menu --&gt; </code></pre> <p>My attempt alerts an object object error. If should instead return the numeric place of the link being clicked. For example if you click animals it should alert 1 (not sure if the eq count starts at 0 like arrays in which case it should alert that) and if you click sports it should alert 3 and so on...</p>
javascript jquery
[3, 5]
1,068,630
1,068,631
Prevent "bubbling"?
<p>I am not sure this is really bubbling, I will explain.</p> <p>I have this:</p> <pre><code>&lt;div&gt; &lt;div&gt; text here &lt;/div&gt; &lt;/div&gt; </code></pre> <p>How to bind an on click event so that it will affect only the enclosed div? If I set it like this:</p> <pre><code>jQuery('div').bind('click', function() { jQuery(this).css('background','blue'); }); </code></pre> <p>it makes blue all the divs. If I add false as the third argument(prevent bubbling) to the bind function it does nothing.</p> <p>How can I solved this?</p>
javascript jquery
[3, 5]
4,724,062
4,724,063
How to Copy a Folder(Not File by File) from server to Android Device
<p>I want to copy a folder from server which contains many files but without traveling through files in that folder. I have URL of that folder and i want to copy that folder from web service. Is is possible? if yes then please explain? </p>
java android
[1, 4]
2,695,664
2,695,665
Python List not getting in rendered in javascript
<p>I have a javascript which takes two variables i.e two lists one is a list of numbers and the other list of strings from django/python</p> <pre><code>numbersvar = [0,1,2,3] stringsvar = ['a','b','c'] </code></pre> <p>The numbersvar is rendered perfectly but when I do {{stringsvar}} it does not render it.</p>
javascript python
[3, 7]
324,064
324,065
export SQLite database from android phone to my system as mdb or accdb database format
<p>I want to export SQLite database file created by simple android code. I want to use that database in microsoft access (.mdb or .accdb). Is it possible? If it is possible means, Tell me the steps</p> <p><b>Note</b>:Here, I didn't put any code.. I just want know what are steps to exporting the sqlite database file to mdb or accdb format file..</p> <p>Thanks in Advance...</p>
java android
[1, 4]
2,014,858
2,014,859
Jquery dragging tab
<p>the below is a nice dragging tab, which I would like to implement in my project. Is there any jquery plugin for this.</p> <p><a href="http://www.blitzagency.com/our-people/#meet-the-blitizens" rel="nofollow">http://www.blitzagency.com/our-people/#meet-the-blitizens</a> </p>
javascript jquery
[3, 5]
1,632,855
1,632,856
Trying to pass in a callback function fails
<p>I am trying to create some functionality when a user clicks on an element on the webpage. The callback function executes as soon as the page is executed. It is only supposed to execute when the user clicks on an element. Here is the code:</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;title&gt;Javascript Test&lt;/title&gt; &lt;script src="http://code.jquery.com/jquery-latest.pack.js"&gt;&lt;/script&gt; &lt;script&gt; $("#clickMe").one('click', printThis("Hello All")); function printThis(msg) { console.log(msg); } &lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;div id="clickMe"&gt;Click me!&lt;/div&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>Thanks!</p>
javascript jquery
[3, 5]
1,409,592
1,409,593
detect back button click in browser
<p>I have to detect if a user has clicked back button or not. For this I am using </p> <pre><code>window.onbeforeunload = function (e) { } </code></pre> <p>It works if a user clicks back button. But this event is also fired if a user click F5 or reload button of browser. How do I fix this?</p>
javascript jquery
[3, 5]
4,881,351
4,881,352
An application is working on one server but doesn't work on another?
<p>I have a new web application. I've setup the application and it's working on one server(xxx) but it's not working on another(yyy). I changed the web.config file(checked throughly and I've changed the connection string and appsettings). </p> <p>What could be the error?</p> <p>The login page is working but when I proceed a Javascript error occurs...</p> <p><strong>(Line: 48 Error: Object doesn't support this property or method)</strong> </p> <p>Here's the code</p> <pre><code>function callCompForFileUpload(responseText) { document.getElementById("btnView").disabled = false; var objFolderUpload = document.getElementById("FolderUpload"); var UploadURL = document.getElementById("HdnFolderUploadURL").value + "?rid=" + responseText; // this is error line objFolderUpload.ShowForm(UploadURL); } </code></pre> <p>Thanks saj </p>
javascript asp.net
[3, 9]
486,208
486,209
Advice for logging in an asp.net application
<p>My current project structure is made to do logging of exceptions and such into the database instead of log files.</p> <p>In order to log down details, it goes through web services of another project (logToDBService). So I'm wondering that if by chance the web service fails, I will not be able to log down new message.<br> To counter this, for those failed logs, I thought of logging it down into csv so it can be uploaded into the database manually. </p> <p>And for this to handled by the system without configuring additional permission, what I can think of at the moment is to introduce a web service (logToCSVService) directly in the same asp.net application, so when the logging at the logToDBService fails, it execute logToCSVService. </p>
c# asp.net
[0, 9]
1,318,698
1,318,699
IE8 not working with jQuery .show() and working on all other browsers including ie9
<p>I have the following HTML:</p> <pre><code>&lt;a class="select_class" style="font-size: 15px;"&gt;&lt;/a&gt; &lt;div class="dropDown" style="display: none;" &gt; &lt;!--somecode--&gt; &lt;/div&gt; </code></pre> <p>And Javascript:</p> <pre><code>$('.select_class').click(function(){ var isVisible = $('.dropDown').is(':visible'); if (isVisible) { $('.dropDown').hide(); } else { $('.dropDown').show(); } return false; }); </code></pre> <p>It is giving me error that "null is null or not an object." and its working fine in IE9, Firefox and Chrome. Only in IE8 I am getting this issue.</p> <p>Error is on the following line:</p> <pre><code>var isVisible = $('.dropDown').is(':visible'); </code></pre>
javascript jquery
[3, 5]
3,238,645
3,238,646
What is the difference between $('#div') and _$('div')?
<p>What is the difference between <code>$</code> and <code>_$</code> in jQuery, and where we should use <code>$</code> and <code>_$</code></p> <pre><code>_$('Set_txtDateinputBox_From') $("#Set_drpdnAvailability") </code></pre>
javascript jquery
[3, 5]
25,134
25,135
Enter keyword in search box of any website using php script
<p>I am a beginner and i was wondering can we write a code in PHP by which we can enter keyword in search box of any website and submit.</p> <p>so there will be 2 inputs to this php function:</p> <pre><code>function enter_keyword($website_url, $keyword) { } function enter_keyword($website_url, $keyword) { } </code></pre> <p>It will be a great help thanks in advance </p>
php javascript
[2, 3]
5,796,327
5,796,328
Chrome problems
<p>I have a few annoying problems. The thing is, that when I am looking with Firefox every thing work perfect, after I try it with Chrome, sometimes happens that the code appears one web page (it is not all the time).</p> <p>So, it appears in input text it display " />" or some piece of code of java script, which is written inside input tag.</p> <p>The web page is: www.kalahoo.eu (do not try it in English )</p> <p>In this picture you can see the problem:</p> <p><a href="http://rhc.si/slike/problem.png" rel="nofollow">http://rhc.si/slike/problem.png</a></p> <p>Thank you very much for you help!!!</p>
php javascript jquery
[2, 3, 5]
4,761,680
4,761,681
Android color picker - updating color array
<p>I'm trying to create a color picker for Android that looks like a minimalistic version of Gimp's. So, it has a hue slider and a rectangle with saturation/value variants of a color chosen in hue slider.</p> <p>Question: what is the best way to create the rectangle?</p> <p>Right now, I'm creating an 200x200 array of pixels, but it takes ~5sec to create and display rectangle with that array. And I need colors in rectangle to change whenever I change the value in hue slider...</p> <p>Rectangle is bitmap, btw. Can I use color matrices on that and how? Any examples?</p> <p>Thanks in advance!</p>
java android
[1, 4]
326,215
326,216
simple jquery on asp.net does not work on firefox
<p>I have been struggling with getting this work on Firefox. Hope there is somebody help me!</p> <p>Basically; Firefox ignores the button click function and it's sub functions and the button posts the page instead of running the jquery code.</p> <p>It works on IE and Chrome but not on Firefox.</p> <p>Thank you for your help in advance.</p> <p>Here is the output code:</p> <pre><code>&lt;script type="text/javascript" language="javascript"&gt; $(document).ready(function() { $(".CatList li").click(function() { if ($(this).is(".selected")) { $(this).attr("class", ""); $('#ctl00_ContentPlaceHolderRight_CatChanged').val(1); return false; } else { $(this).attr("class", "selected"); $('#ctl00_ContentPlaceHolderRight_CatChanged').val(1); return false; } }); $("#ctl00_ContentPlaceHolderRight_btnSave").click(function() { var elements = $("li.selected"); if (elements.val() == null) { alert("You must select at least one category"); return false; } else { elements.each(function() { $('#ctl00_ContentPlaceHolderRight_CatChecked').val($('#ctl00_ContentPlaceHolderRight_CatChecked').val() + "," + $(this).attr("id")); return true; }); } }); }); &lt;/script&gt; </code></pre> <p></p> <p> </p>
javascript jquery
[3, 5]
4,565,390
4,565,391
How to get portion of the attribute value using jquery
<p>I have attribute value as:</p> <pre><code>&lt;div id = "2fComponents-2fPromotion-2f" class = "promotion"&gt; </code></pre> <p>Now I want to get only portion of it, say <code>Promotion</code> and its value <code>2f</code>, how can I get this using jquery ? Do we have built in function for it ?</p>
javascript jquery
[3, 5]
5,452,462
5,452,463
Calculating Jday(Julian Day) in javascript
<p>I have requirement to calculate <code>jday</code> in javascript , for doing client side validation , Can any one help me how to calculate <code>JDAY</code> in javascript or script to change given JDAY to actual date or vice versa . </p> <p>To know what is JDay ,I found the following site , </p> <p><a href="http://www.pauahtun.org/Software/jday.1.html" rel="nofollow">http://www.pauahtun.org/Software/jday.1.html</a></p> <p>Am also refering the below site for calculation which is mentioned in JAVA </p> <p><a href="http://www.rgagnon.com/javadetails/java-0506.html" rel="nofollow">http://www.rgagnon.com/javadetails/java-0506.html</a></p> <p>Thank you in advance</p>
c# java javascript jquery
[0, 1, 3, 5]
4,003,894
4,003,895
How to calculate time in asp.net?
<p>My webapplication is online exam site. when user click on start for writing test, i have to restrict the user particular time only, after time is completed message should display to the user that your exam time is finished and he redirect to home page, how can i write the code, can i go for timer control or webservice which one is good for the online exam site, please help me.</p>
c# asp.net
[0, 9]
356,546
356,547
Why this code does not work on Chrome?
<p>i just installed mobiscroll. I use date scroller. I use this below code to manage the textbox.</p> <pre><code>&lt;script type="text/javascript"&gt; $(function() { // create a datepicker with default settings $("#beginDate") .mobiscroll() .date({ invalid: { daysOfWeek: [0, 6], daysOfMonth: ['5/1', '12/24', '12/25'], theme: 'android-ics light', display: 'bottom', mode: 'scroller' } }); }); &lt;/script&gt; </code></pre> <p>It works well on firefox but not work on Chrome. Why? How can i fix it?</p>
javascript jquery
[3, 5]
1,783,900
1,783,901
Android avoid OnResume
<p>I have 3 Acivity based application, It's work flow like this <code>MainActivity</code> <code>ListView</code> and <code>DetailView</code>. when onResume event trigger , need to call MainActivity. without going to other two activity.</p> <p>Is there any way to call <code>MainActivity</code> when onResume event trigger?</p> <p>Thank You </p>
java android
[1, 4]
5,278,397
5,278,398
How to send emails from an address without logging into the server
<p>I'm building an asp.net application for a client that requires a confirmation email to be sent. I've gotten the code working but the only problem is that I can't get the code to work with their web host (godaddy). Is there a way to send emails with the from address marked as the clients' without having to use godaddy? (essentially faking it) </p>
c# asp.net
[0, 9]
5,986,219
5,986,220
JavaScript and ASP.NET - Cookies with Key / Value Pairs
<p>This question mixes client-side scripting with server-side parsing.</p> <p>In some cases, I'm writing a cookie to the user's browser using the <code>document.cookie</code> property. In other cases, I'm writing the same cookie to the user's browser through the ASP.NET <code>Response</code> object. </p> <p>When I'm writing the <code>HttpCookie</code> on the server-side, I am using the Values collection (<a href="http://msdn.microsoft.com/en-US/library/system.web.httpcookie.values%28v=VS.80%29.aspx" rel="nofollow">http://msdn.microsoft.com/en-US/library/system.web.httpcookie.values%28v=VS.80%29.aspx</a>) to store key/value pairs in the cookie. I would also like to be able to write key-value pairs to the cookie through JavaScript.</p> <p>How do I create cookies with Key/Value pairs via JavaScript that ASP.NET can parse?</p> <p>Thank you!</p>
asp.net javascript
[9, 3]
4,026,560
4,026,561
Using jQuery, how can I limit my number of ad units based on page height?
<p>My app is built using a 2-column design, with the right 300-pixel column being used to show <strong>one</strong> Adsense ad unit.</p> <p>Since some pages are taller, I am wondering if there's a way to have jQuery determine the height of my <code>#main_wrapper</code> and show <strong>an additional ad unit</strong> if it exceeds a certain size in pixels. Sort of like this:</p> <pre><code> // ad unit #1 shown here by default in all pages &lt;script&gt; $(document).ready(function(){ if ($('#main_wrapper').height() &gt; 660) { //show add unit #2 } }); &lt;/script&gt; </code></pre> <p>My issue is with how to deal with wrapping the ad unit code with the jQuery/JS condition above. A typical ad unit is:</p> <pre><code>&lt;script type="text/javascript"&gt;&lt;!-- google_ad_client = "ca-pub-123123123123"; /* Sidebar 300 Middle */ google_ad_slot = "123123123"; google_ad_width = 300; google_ad_height = 250; //--&gt; &lt;/script&gt; &lt;script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt; &lt;/script&gt; </code></pre> <p>How would I insert that inside the jQuery above?</p>
javascript jquery
[3, 5]
3,885,703
3,885,704
how to avoid session timeout in web.config
<p>What should I write in web config file in asp.net so that my session time is extended. and please tell me the exact location where should I place the code in web config</p>
c# asp.net
[0, 9]
5,995,978
5,995,979
Get Date after adding month and leave above days
<pre><code>$start_date = "2012-01-05"; $end_date = "2012-02-10"; </code></pre> <p>How to get month and after getting month date should like in above example</p> <p><code>$end_date</code> should "2012-02-05"; leave above 5 days. don't count a above day.</p> <p>How can i do this in php?</p> <p>I wan't to like</p> <pre><code>$month = 1; $end_date = "2012-02-05"; </code></pre> <p>Second Example</p> <pre><code>$start_date = "2012-06-19"; $end_date = "2012-09-25"; </code></pre> <p>then should </p> <pre><code>$month = 3; $end_date = "2012-09-19"; </code></pre> <p>Leave days between "2012-09-19" to "2012-09-25".</p> <p>Thanks </p>
php javascript
[2, 3]
1,481,887
1,481,888
Solved: Java: Cannot instantiate the type Foo
<p>I'm trying to create my own version of <code>HashMap</code> with some utility methods. </p> <p><strong>Foo.java</strong>:</p> <pre><code>import java.util.HashMap; public class Foo&lt;String, Parameter&gt; extends HashMap&lt;String, Parameter&gt; { public Foo() { super(); } public Parameter Add(String key, MyType type) { return put(key, new Parameter(type)); // -&gt; This line causes compilation error } } </code></pre> <p>The following line:</p> <pre><code>new Parameter(type); </code></pre> <p>produces <code>Cannot instantiate the type Foo</code>. </p> <p>I checked <strong><code>Parameter</code> class and it is not an abstract class/interface</strong>, why am I getting this error?</p> <p><strong>EDIT</strong><br> Changing class declaration as following solved the problem:</p> <pre><code>public class Foo extends HashMap&lt;String, Parameter&gt; { </code></pre>
java android
[1, 4]
1,529,465
1,529,466
How to declare function in MasterPage.Master instead of code-behind?
<p>In my MasterPage.Master I have this code:</p> <pre><code>&lt;% if (Convert.ToBoolean(Session["FullVersion"])) { %&gt; &lt;asp:LinkButton ID="LinkButton1" Text="Gå til mobilversjon" OnClick="GoToMobileVersion" runat="server" /&gt; &lt;% } %&gt; </code></pre> <p>Instead of declaring this function in MasterPage.master.cs like this:</p> <pre><code>protected void GoToMobileVersion(object sender, EventArgs e) { PageBase page = (PageBase)Page; page.Session["FullVersion"] = false; Response.Redirect(Server.UrlPathEncode(page.CurrentPage.LinkURL)); } </code></pre> <p>I would like to do the declare the function in MasterPage.Master. What syntax would I use to do this?</p> <p>Here is what I want to do:</p> <pre><code> &lt;% protected void GoToMobileVersion () { Session["FullVersion"] = false; Server.TransferRequest(Request.Url.AbsolutePath, false); } %&gt; </code></pre>
c# asp.net
[0, 9]
3,101,281
3,101,282
Jquery how to call click on a link?
<p>I have a link with the id: </p> <pre><code>nyhedsklik </code></pre> <p>I this function that gets triggered when clicking on the link:</p> <pre><code> $('a.poplight[href^=#]').click(function() { var popID = $(this).attr('rel'); //Get Popup Name var popURL = $(this).attr('href'); //Get Popup href to define size I have just taken a part of the function for an example.... </code></pre> <p>Now I want to make a click on the link with Jquery. Just like a user would do I have tried this which does not work:</p> <pre><code>&lt;script&gt; $(document).ready(function() { $('#nyhedsklik').trigger("click"); }); &lt;/script&gt; </code></pre>
javascript jquery
[3, 5]
3,321,874
3,321,875
Creating an object array in jQuery
<p>I want to store an array of latitudes/longitudes. I have these inputs on my page:</p> <pre><code>&lt;input type="hidden" class="latitude" value="-12.3456" /&gt; &lt;input type="hidden" class="longitude" value="12.3456" /&gt; &lt;input type="hidden" class="latitude" value="98.7654" /&gt; &lt;input type="hidden" class="longitude" value="-98.7654" /&gt; </code></pre> <p>And I'm putting them into arrays like so:</p> <pre><code>var latitudes = $('.latitude').map(function () { return this.value; }).get(); var longitudes = $('.longitude').map(function () { return this.value; }).get(); </code></pre> <p>But I'm thinking that it would be better to store them in a single array as objects, so that I can say:</p> <pre><code>$.each(array, function (i, obj) { alert(obj.Latitude); alert(obj.Longitude); }); </code></pre> <p>How can I modify this to create an array of objects?</p>
javascript jquery
[3, 5]
1,539,828
1,539,829
Jquery Datepicker not working in ASP.NET
<p>I have looked all over to solve this issue and all suggestions I have received have not worked. This is what I'm importing:</p> <pre><code>&lt;link href="css/jquery-ui-1.8.12.custom.css" rel="stylesheet" type="text/css" /&gt; &lt;script src="js/jquery-1.5.1.js" type="text/javascript"&gt;&lt;/script&gt; &lt;script src="js/jquery.ui.widget.min.js" type="text/javascript"&gt;&lt;/script&gt; &lt;script src="js/jquery-ui-1.8.12.custom.min.js" type="text/javascript"&gt;&lt;/script&gt; &lt;script src="js/jquery.ui.datepicker.min.js" type="text/javascript"&gt;&lt;/script&gt; </code></pre> <p>This is the Jquery and text box</p> <pre><code>&lt;script type="text/javascript"&gt; $(function () { $('#EarliestArrivalTB').datepicker(); }); &lt;/script&gt; &lt;asp:TextBox ID="EarliestArrivalTB" runat="server"&gt;&lt;/asp:TextBox&gt; </code></pre> <p>I got it working on my localhost but when i moved it over to the web server, it does not work. What am i doing wrong here?</p>
jquery asp.net
[5, 9]
411,564
411,565
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>&lt;uc1:CustomContent ID="bunchOfContent" runat="server" contentPayload='&lt;%# getRegionID() %&gt;' /&gt; </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 &lt;%= instead of &lt;%# but no luck. Thanks!</p>
c# asp.net
[0, 9]
3,741,922
3,741,923
Hold execution of script
<p>just wanted to know if it is programatically possible to halt the execution of script the same way javascript function "confirm" does. "confirm" stops further execution of script until user input, i want to acheieve same thing for BlockUI plugin of Jquery. </p>
javascript jquery
[3, 5]