javascript

pros and cons of .htc file

What are pros and cons of using a .htc file in CSS? ...

How can I create a "grid" layout where everyone knows their neighbour?

Hey there guys, I was wondering what the easiest way to create a grid-layout in Javascript/jQuery that will allow each "node" to talk to their nearest neighbours (up, down, left and right). Does anyone have an idea?! :) ...

undoing the html element

perform undo operation in my small web application.i want to perform undo on svg layers.Have any suggestion ...

Library/script for creating a training/guide mode for web appliction

I'm looking for a js library or jquery plugin that helps me to create training/guide mode for web application. Best example I know of training/try now mode is Atlassian JIRA one. ...

What does the new keyword do under the hood?

I am curious as what else the new keyword does in the background apart from changing what the this scope refers too. For example if we compare using the new keyword to make a function set properties and methods on an object to just making a function return a new object is there anything extra that the new object does? And which is pref...

Output CSV to download via jquery

UPDATE: Solved via: append = append+'/output/'+output; var url = '/producer/json/index/period/'+period+'/empties/'+empties+'/movies/'+movies+'/fields/'+fields+'/start/'+start+'/end/'+end+append+''; $.ajax({ url: ''+url+'', success: function(msg) { ...

Google maps info window open() panTo edge of map

Hello i have these two lines map.panTo(respectiveMarker.getPosition());//Center in map the respective marker infoWindow.open(map, respectiveMarker); When infoWindow.open is executed the map pans to the edge. If i remove this line the map pans to the marker as expected. Any ideas? ...

Progressive enhancement / Graceful degradation and web applications

Hello, I am building a web application that uses a lot of Javascript. Now I am wondering does it make sense to make the application work without Javascript? I can understand for normal websites that you want to make sure everybody can use it but can you say the same of complex web applications? I checked out some big web apps and it se...

Javascript/jquery Images slideshow does not work.

Hi guys, I am trying to create an easy slideshow but It is not that easy at all :(. I have few problems to make it work. Here is my code so far: http://jsfiddle.net/WUE9g/1/ PS: I would much appreciate any kind of help. Thank you! ...

How to show hidden div on mouse over using jquery?

I want to show hidden div on hover of <div class="thumb"> and i have multiple div on page each thumb div has different content images. width is fix for all div but height of large div <div class="large" style="display:none"> can be extended upon content after the image inside div. Text of h2 will be always the same in both div. If mous...

how to create events through fullcalendar

how to create events and store to database using jquery fullcalendar ...

Mouse positioned over image when page loads doesn't fire onmouseover event

I'm curious about if it's possible to make an onmouseover event fire when page loads with the mouse over the image in question? I don't want to move the mouse anything (hence using mousemove won't solve anything). I have checked these earlier posts: http://stackoverflow.com/questions/2903068/jquery-trigger-mouseover-function-when-page-...

What is the difference between .click(...) and .live('click', ...) ?

Consider the following code: HTML: <div id='button' class='enabled'>Press here</div> <div id='log'></div> CSS: #button { width: 65px; height: 25px; background-color: #555; color: red; padding: 10px 20px; } #button.enabled { color: #333; } #button.enabled:hover { color: #FFF; cursor: pointer; } JavaS...

Concatenate href value and jquery result in href of anchor tag

Hi, Below is my code present in my application : <input id="input" value="Testing" /> <a href="/captures/getTranslation/?TB_iframe=true&amp;modal=true&amp;height=380&amp;width=670&amp;" name="Signup" id="signuplink" title="Post" > Test </a> I am posting some data to one page, i am getting all the attached parameter in my result pag...

Html5 content edit also change with source code

I want to create my small html editor with using html5 <section contenteditable="true"> Edit here </section> so, when i use it's make specified region editable but how i change also its source code with their front code, is this possible with any simple way or javascript. ...

Can we have two or more function call in jquery-ajax success

I have request to webservice and getback xml result as output , In sucess function can i have a two or more function call function searchLocationNear() { // Get the radius using jQuery var radius = $("#radiusSelect").val(); // Make Ajax call using jQuery $.ajax({ type: "POST", data: "keyword1=&streetname=&l...

increase size of text on mouse hover css/jquery/html

I have a large paragraph. Within that there is a span tag with id for a particular word. On mouse hover the size of that particular word in para should increase. It can come above the other text and cover the contents in paragraph but it should not affect the alignment of other text. ...

How to linking between datepicker and fullcalendar

How to linking between datepicker and fullcalendar ...

Image change triggered by time and click

I want an image, which is not clicked after 5 seconds, to turn into another image, which then returns to the original image when clicked. So image > (user not clicked on image after 5 secs) > image prompting user to click > (user clicks) > image back to original. Any ideas? ...

Javascript .pac file

Is there a way to get a browser to read a .pac file without having the user manually point the browser's automatic config file at the URL? ...