javascript

Someone to explain a part of this jQuery code to me using the dhtmlxcombo plugin.

I have this code fragment var combo = new dhtmlXCombo("combo_zone4", "alfa4", 230); combo.loadXML("create_store2.php"); combo.attachEvent("onChange", onChangeFunc); combo.enableFilteringMode(true, "select_store.php"); function onChangeFunc() { var d=combo.getSelectedValue(); var product=$("#selProduct"); ...

Differences in JSON.stringify result between browsers

Hey! When I JSON.stringify() the following code: var exampleObject = { "name" : "Žiga Kovač", "kraj" : "Žužemberk"}; I get different results between browsers. IE8 and Google Chrome return: {"name":"\u017diga Kova\u010d","kraj":"\u017du\u017eemberk"} While Firefox and Opera return: {"name":"Žiga Kovač","kraj":"Žužemberk"} I am ...

Internet Explorer 7 Google Map Rendering Problem

Hi I'm having some trouble with IE7 when doing a map. I've made an xml and ajaxed it to grab points based on where the user is on the map. It works well, and in FF, IE8 no problems when they click the points. On IE7 it firstly misses the cross at the top right, has some problems with the border (fixed that with some margin) and more impo...

Counting embedded video plays from an external player

I'm trying to serve videos to my users using an embedded player. My current video provider provides a way of storing the amount of views that a video has, however I want to bring this functionality in house. Is there a way that I can register the 'play' of an embedded flash player (and HTML5 video player)? Perhaps by registering a callba...

jQuery image reszie on window resize

$(document).ready(function(){ WinSize = $(window).width(); var currentPosition = 0; var slideWidth = WinSize; $(function(){ $(window).resize(function(){ slideWidth = WinSize = $(window).width(); }); }); var slides = $('.slide'); var numberOfSlides = slides.length; // Remove scrollbar in JS $('#slidesContainer'...

How do I implement this pop up box that displays when hovered over "Shopping Cart" link in this website

I want exactly like this...not a simple box but the one with shadow borders like this one..I have been googling but all I came across is Slide down boxes and tool tips..that's not what I want..How do I implement the one in this website..oh and this box's got HTML stuff in it...like buttons and all Is there any way I can see the code of ...

external loaded SVG broken in IE (Raphael JS)

Hi everyone, I am using jQuery to load an external SVG (a map of France) and parse it into paths with raphaël.js the following code. But it is not doing anything in IE. Any ideas? $(document).ready(function(){ var paper = Raphael("canvas", 450, 380); var map = paper.set(); // load svgz map $.ajax({ type: "GET",...

How do you call a JavaScript (AJAX) function when the user reaches the end of a page to load new content?

Hi.. On twitter (new twitter) and facebook they now have the the ability to load new tweets and posts when you hit the bottom of the page.. Is there a JavaScript / jQuery event that you can call / add to a div so when the browser hits the bottom it does some ajax call to get the new data? Thanks Daniel ...

get data from dynamic key value in json

The requirement is following: I have to get the location field from page. var input= global.input = document.getElementById("Location"); Get the neighborhood area from the json file based on input and show on the page. I have a json object and have to filter the data from the json object based on the key value (location) var inputLo...

HTML, printable hyperlink references, like table of contents

A link in an HTML document is normally clickable. However, on a printed page, that feature is by natural causes not available. <a href="#foo">Link to foo</a> [... loads of content ...] <a name="foo"/>Here is foo Klicking on "Link to foo" on screen will scroll the page to the right place. Is there a way to refer to page number instead ...

How to fetch the status of Internet security setting(Display mixed content) using javascript or c# code

Is there any way to detect the internet security setting using javascript or through C# code ...

How to referesh Telerik:radgrid contorl using Javascript ?

How to referesh Telerik:radgrid contorl using Javascript ? ...

how to trigger an event on onload of <textarea>

In my application there are few <textarea> presents and applied pagination to all these <textarea>. On a page one <textarea> is displayed. Assume there are 10 <textarea> exist, then there will be exist 10 pages, one <textarea> on each page. I have applied auto fit feature to these <textarea>, written below function for this : functio...

AS3 to JS compilers

I stumbled accroos the AS3 to JS compiler Jangaroo, which looks like it could be a useful tool since it supports a lot of things I like about AS3. Are there any other such compilers? Is there another language I could learn, that compiles to JS, that is AS3 like? ...

How to pass context in jquery ajax success callback function

var Box = function(){ this.parm = {name:"rajakvk",year:2010}; Box.prototype.jspCall = function() { $.ajax({ type: "post", url: "some url", success: this.exeSuccess, error: this.exeError, complete: this.exeComplete }); } this.exeSuccess = function(...

Opening 0kb file using window.open() in Javascript with PHP

When we try to open a blank text file ( 0kb ) using window.open() in php we get an error that the file not exist. But when we open it directly by giving that path to a browser it will open that blank file. Please help... Thnks. ...

Getting the geometric bounds of a piece of text

I have an InDesign document which has hyperlinks contained inside a text frame. I need a way to determine the geometric bounds of the text contained in the hyperlink. Unfortunately, I can't seem to find a way to do this in ExtendScript. // Export the hyperlinks in the document for (k = 0; k < myDocument.hyperlinks.length; k++) { /...

Jquery .delay().fadeOut cancel/clear queue.. Is it possible? How?

Hi, I need some help here.. Is it possible to cancel the chaining delay? Mn.Base.TopBox.show = function(timedur){ $('#element').fadeIn().delay(timedur).fadeOut(); } Mn.Base.TopBox.cancelFadeout = function(){ } I read about queuing and tried some different approaches but I hadn't success... $('#element').stop(); $('#e...

Scope of variables in Javascript

I'm having trouble understanding the scope of 'this' in this scenario. I'm able to call each one of these functions like: this.startTracking(); from within the time tracker switch object. However, when I try to execute the code: Drupal.timeTracker.prototype.stopTracking(); It loses all scope of variables and my GET request becomes undefi...

Dynamic iFrame height not working with Ajax!

Hello, I am developing a web application with ASP.NET 3.5 with C# and Telerik Ajax Control. I have a iFrame in my master page. Application load other pages in iFrame dynamically and iFrame height adjust the dynamically when page load. I uses RadScriptManager , RadAjaxPannel, RadAjaxLoadingPannel in my page. The problem is when ajax "call...