javascript

Is it best for multiple specialization or single specialization?

I've noticed a lot about jobs being posted that require the applicant to know several languages or technologies. Especially I find this with web development. I don't really like this considering the point that the more you specialize in several things the less you actually know about each one. I recognize that this is good for the bottom...

Dynamic hide reveal

I'm working on a blog and I have it set up so you can leave a comment on an entry. I don't like how much vertical space all the comments and the entry form use, so I would like to have a link on each entry that you click and it reveals the entry form and comments. I'm thinking a link that's like "Comments (5)". I see this all the time on...

Complicated question about javascript history object and cookies.

I have a one-page website with sliding panels, some of which have external links. The desired behavior is that when a visitor clicks an external link, they go to it. When they hit the back button, they come back to the panel they were on. So far I've got this working by keeping the state saved in a cookie. I'm wondering, though, if it ...

Is REST supported by default in JavaScript and Java or do I need to install new software?

Do I require to install new software to use REST services with JavaScript and Java? ...

ExtJS: Unable to call findById on a toolbar added by apply()

I have a page with a toolbar on it, that is added through apply like so (abridged code, lots of irrelevant stuff in the original): var obj = Ext.extend(Ext.Panel,{ initComponent:function(){ Ext.apply(this,{ layout:'card', itemId:'contactDetails', border:false, activeItem:0, ...

Javascript: Preserving event hooks and state by updating DOM with only changed nodes or minimum number of potentially changed nodes?

So for example if we have a flash video already buffered and playing, or an autocomplete active with input, focus, and a dropdown visible (and maybe even loading something) but only have HTML of the full document and a copy of the HTML earlier, how can we merge them into the live DOM without the user's state being interrupted? Ordinaril...

how i can i change the content of a page without refreshing.

how i can i change the content of a page without refreshing.I know we need to use hidden frames for this but all the tutorials i have come across teach this only for HTML files what if the content is returned from a PHP file how do i do it in such a case? what should the php file echo or return? ...

jQuery DatePicker - Does not disappear in IE7 after selection

Hi all, I am using the standard jQuery datepicker which works fine for me in all browsers except Internet Explorer 7 - the date can be selected, and the text field does populate, but the datepicker itself doesn't disappear. I didn't modify the script at all so I don't really have any unique code to post - I was really just wondering if ...

How can I refresh a page for all logged in users (collaborative editing) using JavaScript, jQuery and HTML?

I want the action to be automatically reflected for all the logged in users. ...

Getting installed software from webpage

How does google pack knows what applications are installed on your system? ...

How to read individual '-webkit-transform' values in JavaScript?

Webkit's blog post from last year on 3D transforms explains the various transform 'functions' that can be used in the -webkit-transform property. For example: #myDiv { -webkit-transform: scale(1.1) rotateY(7deg) translateZ(-1px); } My question: how do you access individual values in JavaScript? When you read the webkitTransform prop...

Google Maps API v3: Close infowindow when DOM element is clicked

Hi, I'm playing around with Google maps for the first time, so I looked at a nice tutorial over at CSS Tricks: http://css-tricks.com/google-maps-slider/ I like working with jQuery better than pure JS, and this tutorial makes a nice way to click on a place in a list to display the marker in the map. I liked it that way, but I need to ad...

How to resize the rangeinput handle after creation?

I am using this http://flowplayer.org/tools/demos/rangeinput/scrollbar.html ( as a horizontal scrollbar ) When resizing using: $('.handle').css('width', 550+"px"); or $(".handle").width(550).click(); after changing the handle width from 800px to 550px ( while using a 1000px width slider ) the handle cant be draged until the end of...

ASPxTextbox - masking, prompt always at last or first character

Hi, I have an aspxtextbox e.g <dxe:ASPxTextBox ID="txtZip" runat="server" Width="150"> <MaskSettings Mask="00000" ErrorText="Please input missing symbols" /> <ValidationSettings ErrorDisplayMode="ImageWithTooltip" /> </dxe:ASPxTextBox> How can I modif...

Comparing two arrays in Javascript - Returning differences

Assuming we have: array1 = ['A', 'B', 'C', 'D', 'E']; array2 = ['C', 'E']; Is there a proven and fast solution to compare two arrays against each other, returning one array without the values appearing in both arrays (C and E here). So: array3 = ['A', 'B', 'D'] should be the output of the solution. (jquery may be involved) thx. ...

YUI Buttons not passing value in firefox (linux)?

Hello The following code works in IE and Chrome (linux) but will not working in Firefox. Any Ideas why? This is using the YUI 2 developer tools. It will display the buttons, however it does not pass the actual value of the radio buttons. // php <? print_r($_POST); ?> // html var oButtonGroup3 = new YAHOO.widget.ButtonGroup({ ...

lightweight jQuery countdown

I've seen some really nice looking jQuery plugins to count down the number of day, hours, minutes and seconds. They use images and look great. But I'm looking for a simple little countdown that populates a div with the number of seconds remaining. I'm going to use it in conjunction with: function submitform() { document.forms[0].su...

How to get method of form using javascript or jquery when we submit a form ?

How to get method of form using javascript or jquery when we submit a form at client ? ...

How to update phone numbers for an employee in a database using PHP

I've got a form that allows the user to edit an employees information: name, email, technician level, etc. Well this is not hard in itself, I'm trying to find a good method for updating phone numbers for each employee. I have two tables (that are relevant): technicians and phones. My form allows the user to add, remove and edit any amoun...

Why does IE8 display a whitespace GAP between my menu bar and page content?

The page in question Please open the page in whatever browser you normally use and confirm that the menu bar immediately precedes the map. Next, open the page in IE8 and see that it inserts whitespace (roughly the height of the menu bar). Even if you use IE7, the whitespace doesn't appear. This has been bothering me for a while and I...