javascript

How to silently hide "Image not found" icon when src source image is not found

Do you know how to hide the classic “Image not found” icon from a rendered HTML page when an image file is not found? Is it feasible with JavaScript\jQuery\CSS? ...

PHP code to convert PHP to JS

I need some PHP code to convert some PHP into JS. functionality - I'm using common PHP functions from php.js syntax - ??? The issue is converting the syntax. I don't need full PHP syntax, mind you; no need for supporting class definitions/declarations. Here's a small checklist of what needs conversion: "." should be "+" (string con...

Google Maps - Not displaying but loaded in HTML

I don't know why this is. But for some reason, my google maps script is loaded in the page, but it is not displayed. I'm curious about what i'm doing wrong. Here's my html. <ul class="address"> <LI><STRONG>Titel:</STRONG><br/>Text <div class="gmap" address="Stationsstraat 23 8780 Oostrozebeke"></div></LI> </ul> <ul class="address"> <...

WebKit WebScripting Protocall callbacks with multiple parameters?

Hey I've registered my object and function selector to get callbacks from javascript when the function is fired. This all works fine for functions with a single parameter, how can I receive callbacks for functions with multiple parameters? So far keeping the syntax the same gets my function to fire, however the object passed in is alwa...

What is the use of PHP DOM Manipulation?

Hi, Sorry if the question is too general, but I wonder what is the use of a PHP DOM Manipulation compared to javascript DOM Manipulation? I understood that it was mainly used to parse some html, or xml, but are there other applications where it is good to use? Thanks :) ...

Javascript/Flash tiny, cross-browser sound player

I was searching for Javascript/Flash tiny, cross-browser sound player (notifier), but every solution I've met was or too big and feature-full, or based on different libraries (not on Jquery I'm using), or with bugs. The only feature I need is 'play'. :) For example, http://flash-mp3-player.net/players/js/download/ - this nice little pla...

javascript - document.write error ??

Hello, Consider the script.. <html> <head> <script type="text/javascript"> document.write('TEST'); </script> </head> <body> Some body content ... </body> </html> This works fine and the word 'TEST' is added to the <body> But when <script type="text/javascript"> window.onload = function(){ document.w...

A canvas object in jQuery, is it possible?

I intend to make a browser game with jQuery, I would need a canvas object in which I can place many visual elements and animate them to some extend. Is this entirely possible with just jQuery? Some may point to HTML5 canvas but it's specification isn't complete so I'm not too fond of it. ...

grey out whole screen including scrollbar

i want to create a grey out as that of gmail when we try to upload an exe. the grey out screen should cover the whole screen even the scrollbars, the scrollbars should be visible through it but disabled how this can be achieved using javascript and css please dont tell me to set the overflow of body to hidden. ...

Two-Way Communication Between HTML in .Net WebBrowser and WinForms application

When using WebBrowser control I would like to pass an object from javascript code to C#. Solution is known - using ObjectForScripting property of WebBrowser and invoking methods from javascript code using window.external. I know how to do that, but I would like to create object with given type in javascript and pass it to C# without u...

javascript viewstate problem

I have a situation that I am stuck with, and hoping someone can help. I am building a .NET/C# web application in which I have a tabbed panel layout, and when the user clicks on each of the tabs the display panel is updated using javascript to hide and show some divs. None of these clicks cause postback, it is all client-side, so I can't ...

how to implement photo gallary with slide show

I am developing a web application, I need a modern photo gallary using ajax or jQuery. ...

Javascript: How do I convert a specific timezoned date to different time zone date?

I have a php script which gives server time, but as per knowledge, we can get the user's machine time and time zone with the help of client side scripts (javascript). I have mysql table which has dates stored along with timezone from where it was stored with the help of form. I need to show the data on a web page along with the time stor...

nyroModal Lightbox issue

I'm using the latest version 1.6.2 version of nyromodal lightbox jQuery.nyroModalSettings({title:'Manual Title'}); It wont refelect any title on the lightbox title remains empty. I also tried: jQuery.nyroModalManual({ title:'Manual Title' }); Nothing reflects. If anyone has an idea please put it forward, Gobi:) ...

jQuery open link in new window with small dimensions (NOT TAB)

I need to open certain links in a new window (NOT TAB) with certain dimensions. This will open a link in new tab: $(document).ready(function() { $('a[rel|=external]').click(function(){ window.open(this.href); return false; }); }); What to change in order to get links opening in new windows.? EDIT: This is my ...

Event trigging object method loses the object

Hi. I'm not very used to javascript's prototyping syntax so this might be very simple. function MyClass(){ this.init = function(input){ this.input.onkeyup = function(){ this.change(); } } } Obviously I've left some things out here, but this.input refers to an HTML input element. The problem here is that this...

jQuery, Injecting a clickable image

I am trying to solve a problem for a client where they want to dynamically inject an image into the page and have it call their js function when clicked. The script is included from our base js class to their site, so it's my code on their site essentially. I am very close to getting there, but I've found a strange issue in IE of all pl...

There is problem in tabcontent.js script and I couldn't solve this.

Return a erron in http://www.neguzelhaber.com/ on sidebar in tab content with firebug. The error is "subcontent is null" I try different ways for solve this problem but I can't understand this error's cause. I suppose the problem is caused by wp-recentcomments plugin. I think so that because I check this script with wp-recentcomments' ol...

How to build a HTML 5 video playlist?

Hi< I was wondering would anybody know of tutorials describing, in detail, how to build a video playlist in HTML 5? I also would like these videos to play in a random order. ...

using <canvas> element from javascript

Is there any JS library designed for working with canvas elements? I don't really care about IE compatibility. I need to create objects(complex drawings with text) , draw lines between them, linear, bezier with different strokes, and attach event handlers to them(i need mouseOver and click). Anyone has any experience with a library tha...