Main-programming
   17 tags on

Main-programming

  • All Sites
  • SmugMug
  • Meta SmugMug

0 answers

Why does my window.navigate code fail?

I have a And when I try to do window.navigate("#thisitem"); JS fails on that line...why?

13 secs ago
0 answers

Jquery won't let me do if blocks?

I am trying to do a fade effect, that fades out a div and substitutes it for another. For that I have created a lastDiv var which sets the number of the last div clicked. But when I try to set an if …

40 secs ago
0 answers

Redirect response to download file

I have a generic handler that I call using this very basic js code: var formData = new FormData(); formData.append("fileId", this.model.get("id")); xhr = new XMLHttpRequest(); ...

3 answers

Most efficient way of selecting a set of elements

Example, if I have an unordered list lets say, <ul> <li class="foo">Foo</li> <li class="bar">Bar</li> </ul> I can select foo as $('ul li.foo'), ...

1 min ago
0 answers

remove print button

I'm creating charts with the HighCharts library and I wonder how to remove the 2 little buttons on the right corner which one you can print and download graphs and I'd like to add a new one. Maybe …

1 min ago
1 answer

Split groups in SVG into sub-images positioned around the contents

I'm having issues with individual elements with an imported SVG and was hoping somehow could advise. I have an SVG created in Illustrator, with several layers, which end up being group elements. ...

1 min ago
0 answers

Does exists a Validation framework in ExtJs 3.4?

I'm developing with extjs 3.4 and I'd like to know if exists a pluging or library that I can used to validate models

2 answers

How can I debug JavaScript code with FireBug

I know how to debug JavaScript code in FireBug that comes from a separate JS file but I don't know how to debug code that is in a page (razor view). Is this possible and if so how?

0 answers

Determine redirect destination using AJAX

Is there an AJAX-y way to find out the destination of given URL that redirects? Use case: use inputs a short url, and this javascript (without leaving the page) informs the user of the destination …

2 mins ago
2 answers

Can Infinite Scroll jQuery plugin work inside a page?

I use infinite scroll plugin in my page, but there's a problem: I use it for a content that is hidden in a div with overflow-y: scroll CSS. Which means that only the div contents are scrolled. It ...

0 answers

Can't upload an image to my domain

I'm using my own domain for developing ideas and basic Web Pages. I designed a element that had an image on its background as you see here: background:url(img/myImage.png); I made a jQuery ...

3 mins ago
0 answers

Selection tab and onselect code conflict - infinite reloading of page

I use JQueryUI TABS plugin. There is my tabs structure. <div id="tabs"> <ul> <li><a href='#tabs-1'>TabGroup1</a></li> <li><a ...

1 answer

Pixelate video stream with HTML5

I'm goofing around with some HTML5 stuff and wanted to combine the Close Pixelate library with the getUserMedia API. I want to pixelate the stream on the fly (i get the frame rate would be crazy low). …

0 answers

add two json objets

Iam having two json objects [ {"name": "Graduation"}, {"name": "Post Graduation"} ] and another one is also same [ {"name": "first sem"}, {"name": "second sem"}, {"name": "third sem"} ] how can …

0 answers

JavaScript - Video Tag

I have a video-tag in html- I will stop my video with javascript after 20 and after 40 seconds and then show a Lightbox. And when the Lightbox closed, should the video play again. i tried it so …

5 mins ago
1 answer

How to update a portlet contents periodically?

I'm developing a portlet to show content from several RSS feeds and update them periodically after certain timeout. So I'm studying plone's RSS portlet (plone.app.portlets.portlets.rss). It uses ...

5 mins ago
1 answer

clearInterval not working on click

I have a simple slideshow script which rotates images at a given interval. It has "previous" and "next" buttons for navigating through the slideshow. Upon being clicked these buttons call ...

5 mins ago
3 answers

PHP drop down menu with Javascript alert

I have created a simple drop-down menu in PHP: <td> Privilege: </td> <td><select name="privilege"> <?php $position_list = array( 1 => "Chair", …

1 answer

Jquery not working in IE 9

I am trying to create a toggle panel to show and hide the additional div.Please find my code snippet of the function below. It is working fine in Chrome,Safari&Firefox . It is not working on IE 9 …

7 mins ago
5 answers

JS: Get number of same values

Suppose i have this array: [1, 2, 2, 3, 3, 3, 4] How do i return an array/object that contains how many times a value appears something like: {1:1, 2:2:, 3:3, 4:1} Here is what I have so far: …

0 answers

d3.json works but $.getJson fails

Using d3.json to make a json request works while $.getJson and $.ajax fail. It is not a cross-domain problem as I am requesting a script on the same domain. ...

0 answers

Why isn't this CSS3 animation working in Safari & Chrome?

I used the -webkit- stuff and it doesn't animate for some reason, even though the same code with -moz- prefix works in firefox. The background is meant to slide down, then the background changes ...

0 answers

Modeling non-standard actions in Backbone.js with Models and Collections

I'm working on a project where there's a "reading list", in this list are "reading list items" - they're an abstract concept, on the server-side they can be Books, Articles, etc - they're handled ...

0 answers

controlling form submit action inside a div using Jquery

I am trying to load everything in my website inside a div with fading effect, i have made a jquery function to handle all click events inside the div such as links, buttons, and form submits. ...

2 answers

How can I fire an event on the server without a page refresh in WebForms

As it says in the title I want to have a button/link that when clicked it adds a number to a table in a database but stays on the same page without refreshing the page. It would also be nice if it ...

2 answers

Combining mousenter / mouseleave into one function

Consider these two working functions. Is there any way to string these two together into one jQuery function? $("#help").mouseenter(function(){ $(this).animate({bottom: '+=100',}); }); ...

10 mins ago
3 answers

Trouble with jQuery index()

I have a group of images I'm using as a slide show. The javascript I'm using looks at which image has the .active class on it to know which image is being displayed. The trouble is, jQuery's .index() …

12 mins ago
0 answers

How do I attach an event listener to a GrailsUI datePicker component/YUI Calendar object with a dynamically created id

I'm using some AJAX with my GrailsUI plugin datePicker. To attach an event listener to my datePicker I can follow the instructions on the GrailsUI plugin page. This works great if I know the id that …

3 answers

How can I prevent default double-tap behavior (zooming, panning) in Mobile Safari on iOS4?

When I double-tap near the edge of a page that exceeds the height or width of the browser window in Safari under iOS4, it zooms in or out and/or scrolls up, down, right, or left, depending on the size …

1 answer

Best way to load content into application

I have a project where I need to write text from a database into an HTML5 canvas / Javascript application. To select this content, I've specified an attribute "reference" where I can ask the database …

15 30 50 per page
1 2 3