IE developer toolbar: how to debug javascript?
Hi there, How can i set a break point in a javascript function and have the IE toolbar break on it ... as i can do with Firebug? ... or can i do this in IE? ...
Hi there, How can i set a break point in a javascript function and have the IE toolbar break on it ... as i can do with Firebug? ... or can i do this in IE? ...
What is the difference between the following two declarations? Class.method = function () { /* code */ } Class.prototype.method = function () { /* code using this.values */ } Is it okay to think of the first statement as a declaration of a static method, and the second statement as a declaration of an instance method? ...
Is there some agreed upon algorithm of what is supposed to happen when, in a text editor or text editing field, the user presses Ctrl + Left-Arrow or Ctrl + Right-Arrow? I noticed the behavior in Chrome's text box, and Windows Notepad, for instance, aren't the same; the "jump to the last/ next bit" pattern is similar but not the same. I...
Hi, I have a validationsummary control which displays the summary of a few validationrequired controls and all of them belong to a validationgroup. My submit button also has the same validationgroup so it validates everything upon it being clicked. The problem i am having is setting the focus to the validationsummary control after val...
Thanks for your replies. First I am explaining my requirement :- I created my own minimize and maximize button in my Application. When I click on minimize button, my application should minimize like our application (If we minimize any application in our PC, that application is displaying in our taskbar) I want my application should dis...
Given the following string: 's0\\8\\26\\29\\30\\32' or 's0\\8\\26\\' or 's0\\5', I need to return the last digits of the string. Given: function getFolderID(mystr) { var reFolderID = /\bs0\\\\[0-9]+\b/g //regexp to return s0\\34 var retArr = []; var retval = ''; retArr = mystr.match(reFolderID); ...
Hi friends, I need to know how to get full path from fileupload using javascript, I tried using the following coding but of no use <input type="file" id="picField" onchange="preview(this)"> <script type="text/javascript"> function preview(test){ var source=test.value; alert(source); } </script> but in the alert message, i ...
What would be the best way for me to pass data from a form on one page to another? For example an email form field is input on one page and that takes the user to a new page with that field already completed. If someone entered the page without using the email form submit link then the field would be blank. I know this can be done thro...
Hi friend, I need to make new own file upload field using HTML and Javascript since Built-In file upload not showing full path of the file I need to make it similar to file upload by using button and textbox please help to solve this problem ...
Excanvas "for enternet Explorer" is working fine for predefined canvas elements. But when it comes to creating canvas elements dynamically during the script, it will not work... Any ideas?? ...
I don't know which title I should use for this question. I have a webpage (e.g. index.html) which contains flash content, url: http://www.abc.com/travel/sg/traffic/ After I finish the webpage and upload onto the staging server, the customers said that they may need to use different domain to go to the site, e.g. http://sg.travel.com/ ...
I've been dealing with a bane-of-my-existence Javascript problem involving tracking when a user clicks on a link (in case you're curious, here it is: http://stackoverflow.com/questions/1629158/why-does-using-targetblank-cause-javascript-to-fail). I've figured out that I can solve the problem by tracking an onMousedown event rather than ...
hi i have a field called AppDate and it should get disabled conditionally the field is getting disabled but the date picker icon is not getting disable, hence though i disable AppDate Field users are able to change the date following is the code i am using any help pls? <hx:inputHelperDatePicker firstDay="1" rendered="true" styleCla...
I have 25 components which includes [textarea, textfile, radio, combo, etc...] and I have written a key event so that when "ENTER" is entered, I call a function which will submit the page. Now my page is getting submitted when I press enter, even in the textarea which should not be. So is there any way that I can not submit the page if ...
Hello, I am developing a component for Joomla website. This website has a sophisticated template with fancy css and scripts (namely some K2 components are named) In this component I am using colorbox to display modal picture gallery but what happens is as soon as this component is called CSS properties and functions of javascript of te...
I'm using this pattern for singletons, in the example the singleton is PlanetEarth: var NAMESPACE = function () { var privateFunction1 = function () { privateFunction2(); }; var privateFunction2 = function () { alert('I\'m private!'); }; var Constructors = {}; Constructors.PlanetEarth = function () { privateFunction1(); ...
Hi I have following HTML code: Its look like <html> <head> </head> <style id="styletag"> .class3{ } .sec2{ } .this3{ } </style> <body> <div class="class1 class2 class3">content</div> <div class="sec1 sec2 sec3">content2</div> <div class="this1 this2 this3">content2</div> </body> </html> I am having the values class3, sec2 and this3 ...
using jquery, how can you distinguish between refreshing vs. navigating away from the current URL ? ...
<input type="image" src="images/join.gif" name="SubmitStudent" onClick="CheckCaptcha();CheckTermsAcceptance(document.getElementById('chkStudent'));" width="98" height="31"/> In the above code, if either the function CheckCaptcha or CheckTermsAcceptance returns False, than Form should not be submitted. How to check this? ...
I was looking through some code on a project of mine and thinking about all the php pages that I call with ajax that just run a simple update or insert query and it made me think. What if I could essentially run an insert or update sql query from javascript. assuming I am using the prototype javascript framework for ajax and php on the ...