JavaScript event for contenteditable elements
Hi all, Is there a way to capture JavaScript events for when a contenteditable element begins and ends editing? Cheers - Greg. ...
Hi all, Is there a way to capture JavaScript events for when a contenteditable element begins and ends editing? Cheers - Greg. ...
Hi, I have this HTML code: <div id="content"> <div class="profile_photo"> <img style="float:left;margin-right:7px;" src="http://gravatar.com/avatar/53566ac91a169b353a78b329bdd35c95?s=50&d=identicon" class="profile_img" alt="{username}"/> </div> <div class="container" id="status-#"> <div class="message"> <span class="...
Hi there, I've decided to get used to using Javascript as my server sided (I'm using Node.js) language to setup a webserver, create server deamons and a lot more. This is a rather big project, which means that I have to get used to the language and get myself an optimal setup before actually starting to avoid overhead and unneeded hassl...
whats the problem with that array? var proImages = { {img_1 : '3648119884.png',img_2 : '2737618597.png',img_3 : '1688333623.png'}, {img_1 : '8738764911.png',img_2 : '1367341638.png',img_3 : '9613419473.png'}, {img_1 : '0072066717.png',img_2 : '2516072491.png',img_3 : '1567853878.png'}, {img_1 : '2991559225.png',img_2 : '8333423763.png',...
This is my code. v=dom.find("ul:first").outerHeight(); // the height of the first li element // instead of taking the height of the first li element, it should loop through all // li elements and set v to the element with the biggest height The comment in the middle of the code pretty much explains everythi...
I would like to create a div, that is situated beneath a block of content but that once the page has been scrolled enough to contact its top boundary, becomes fixed in place and scrolls with the page. I know I've seen at least one example of this online but I cannot remember it for the life of me. Any thoughts? ...
Hi, I need a drop and drag functionality for my email client application. Description: I have some mails in my Inbox, I want them to move to my user defined folders by using drag and drop functionality by using Java Script. Looking forward for your response. Thanks, Ranjith ...
I'm basically looking for something that can play/stream a variety of formats if possible (or if not, to have an easy way for non-technies to convert them to the desired format). I'm also looking for something easy to setup - like including a javascript tag at the top of the page and then perhaps using a div, or just 1 line of script cod...
Is it possible to add Bullet points for the warning/Alert message box for a webpage using HTML and Java Script? If not, what would be the best possbile way to create one of those? The message box should have the below properties: Warning Image Message box header Bullet points listing summary Accept and Reject button Thanks in advanc...
I have a php variable that needs to be interpreted in javascript how do i do this var cntr = "<?php echo $j;?>"; var opt = "<?php echo $options;?>"; var opt_selected = "<?php echo get_options($val['SOMEVARIABLE'],$opt); ?>"; var reference = "<?php echo $val["RFDREFVAL"];?>"; How do i correct the above statements iam getting Javascrip...
Hi! I'm currently coding a game that makes use of Google Maps' Static API - http://code.google.com/apis/maps/documentation/staticmaps/ However, a limitation of the API means that I can only get a maximum of 640x640 images from it and I need much larger images for my game. As such I'm just wondering if it's possible to stitch multiple s...
For example <script> function foo(){...} </script> <div><script>foo();</script></div> <span><script>foo();</script></span> and I wanted to have foo return "abc" when called from a div, return "123" when called from a span. Is this possible? ...
I am trying to set the width and height of a mask behind a modal window. I am using $(document).width() and $(document).height(). Works great in FF and Chrome but IE adds about 25px to each and I end up with scroll bars? What am I supposed to use that is cross browser compatible? I am using IE8 btw, but I want it to work down to 6 or...
Having a problem with the change() event in jQuery: $("select[name=cmm]").change(function(){ total(); }); For some reason the "total" function isn't being called with the code above. The html code is: <select name="cmm"> <option value="none">none</option> <option value="one">the first</option> <option value="t...
Hello there ok i may be wrong about this and if i am then i am sorry. But is it possible to change the screen with ajax by looking at whats after the "#" in the link. because when im on facebook i know that it is all an iframe yet when the screen changes so does the text after the "#". Is that what is causing the change or is that a resu...
I seem to be getting different results of fromDate between Mozilla and IE. Is there a more reliable cross-browser way of doing this? [edit] I am actually getting different column values! [/edit] <tr id='id3332201010241' /> <td>20101024</td> <td>20101025</td> <td>1415</td> <td>1445</td> <td>INVDROP</td> <td>H4T1A3</td> <td><a...
How can I count the number of times a particular string occurs in another string. For example, this is what I am trying to do in Javascript: var temp = "This is a string."; alert(temp.count("is")); //should output '2' ...
I have this regex: var alphaExp = /^[a-zA-ZåäöÅÄÖ\s]+$/; This is for a name-field in a form validation. I need to make it possible to type names like this "Anna-nicole" (note the minus sign). Currently the minus sign causes error. I need to remake this regex so that a minus sign can be included in the name, preferrably make it so ...
How do you print onto seperate lines like in Java with println? <script language = "javascript"> document.write("Your name is:" + fullName); document.write("You were born in:" + birthYear); document.write("You already had your birthday this year"); docu...
im making a jquery autocomplete, i have something between 10~20k registers the data is static (i'll run a update script when i need) and i can choose to get the file from a json or embed in the page in a single line, like: var title = ["example title 1","example title 2"]; which one should i choose, perfomance wise? (also im worried ...