javascript

[HTML/PHP/JavaScript]: Profiling tool.

Is there any free profiling tool with which I can measure the performance of HTML, PHP and JavaScript code independently? ...

keycode on keydown event

I'm using keydown event where i get the keycode and convert it to charcode. But i got a problem where in keyboard is press "2" it gives 50 and charcode as "2" whn i press "2" in numpad it gives keycode 98 , so whn i convert charcode "a" help please, on Advance thanks, Santose ...

javascript how to make the dropdown value to reset to intiall value(checking the check box)

hi, "INSERT MODE" i have check box in one "tr". and another dropdown control in another "tr" intially dropdown control will be invisiable intially . but once the user checks the check box. the dropdown control should be visiable and he can select the value. but again the user unchecks the check box the dropdown sho...

JavaScript: Get a dateobject (Six months previous) from another date object

In JavaScript, how can I create a dateobject which is less than n number of months from another date object. I am looking for something like DateAdd() Ex : var objCurrentDate = new Date(); Now using objCurrentDate, how can I create a date object which is having a date which is six month older that todays date/objCurrentDate? ...

how to generate CSS Path with javascript or jquery ?

is there any way to generate css path given an element ? i saw one for javascript. ...

reading Struts2 tag values in javascript

Hello, I am using struts2 with jsp. In Jsp, i have a table in which few rows of data are present. I have used iterators to display row data of table. Each row contains a button to update the row data(like priority of row data). I am trying to use javascript to update row data when a button is clicked. I am not able to access the...

Insert, Defer, Prototype and Append elements

Hi all, This might be a more generic browser/javascript questions than a prototype specific quesiton but i thought it would better to ask here because you all tend to really understand javascript and browsers in a ton of detail. So here goes. If i execute the following code: HTML: Javascript: $('area').insert({bottom: "<div ...

How to track/debug IE 7 & 6 javascript errors in dreamweaver CS3 ?

How to track/debug IE 7 & 6 javascript errors in pages in dreamweaver CS3 ? I know how to debug in Visual studio but is it possible in Dreamweaver CS3 ? ...

Equivalent of Firefox's "error console" in other browsers

Is there an equivalent to Firefox's "Error console" in other browsers? I find the error console handy for finding JavaScript errors, but there doesn't seem to be an equivalent simple way to see error messages on other browsers. I'm interested in Internet Explorer, Opera and Google Chrome. Post script: I'm not looking for an alternative ...

body html of iframe

Hi my code returns all the html of the iframe. I would like just the body html. Any one know how to amend to suit? Code: alert( $("#uploaderIframe").contents()[0].documentElement.innerHTML ); ...

Changing the symbols of a html password field

As the title says: is there any way to change the "*" or in some browsers a bullet that appears in password fields in HTML? thx ...

List doesn't want to toggle

Hello, I have a (semantically incorrect) HTML like this: <ul> <li class="year">2009</li> <li><a href="project1.html">Project 1</a></li> <li><a href="project2.html">Project 2</a></li> <li><a href="project3.html">Project 3</a></li> </ul> <ul> <li class="year">2008</li> <li><a href="project4.html">Project 4</a></li> <li><a href="project5....

ExtJS Unmask after data load

I am using a JSONStore in ExtJS and loading data by using setting the URL config and then calling the load method, is there anyway i can unmask the form only once the data is loaded. At the moment it unmasks after the load method which doesn't work since the load is async. But what i want to do is only unmask after the async operation ha...

What rounded corner approach should I take?

So there's no shortage of information out there on rounded corners and I've been through much of it and I'm posting to get the opinions of the communities on this point. My scenario is that we're developing a rounded corner dependent design, mainly used for interactions (<button> and <a>). We are going to use border radius for the good ...

Cant traverse XML document

Hi, When I try to traverse to the children of the gallery node, it return nothing for the nodevalue, when it should read 'Joe Bloggs', and '#text' for the node name when it should read 'property'. Can anyone see what might be wrong with my javascript or XML. <gallery_index> <gallery id="0"> <property id="name">Joe Bloggs</proper...

PHP Script works on laptop but not server

I make an AJAX GET request to a PHP script to compare a value in a textfield to one in a database on every character typed - this works smoothly and beautifully on my laptop (Windows). I transfer my scripts to computer running windows server 2003 and it tries to make a GET request but it returns a "500 Internal Server Error"?! What is ...

Trap the enter key, but not when choosing the browser's autocomplete suggestion

I have some textboxes on a page and I want to click a link when the user presses enter in any of them. I can easily trap the enter button using javascript (by looking for 13 in event.keyCode and event.which), but I hit an issue when the browser's autocomplete feature kicks in and suggests what the user might want to type. We're finding ...

jQuery: add dom element if it does not exist

Long question Is it possible to add a DOM element only if it does not already exists? Example I have implemented the requirement like so: var ins = $("a[@id='iframeUrl']"); ins.siblings('#myIframe:first').remove().end().parent().prepend('<iframe id="myIframe" src="'+ins.attr("href")+'"></iframe>'); Is it possible to replace the se...

Detect rotation of Android phone in the browser with javascript

I know that in Safari on an iPhone you can detect the screens orientation and change of orientation by listening for the onorientationchange event and querying window.orientation for the angle. Is this possible in the browser on Android phones? Update To be clear, I am asking whether the rotation of an android device can be detected b...

Using NSUserDefaults from javascript webapp

Hi! I need to store and access preferences (like colour, etc.) from a javascript webapp.. Is there some webkit access to the NSUserDefaults? (or maybe CFPreferences ?) ...