javascript

How to ignore events in html table

Hello, I have a transparent table with width:100% which contains some html content. I use the table in order to position a content element on the screen center. The table captures mouse events, and the user can't press on links which are positioned beneath it (although it is transparent). Is there a way to tell the browser to ignore e...

How can I rate limit how fast a javascript function allows itself to be called?

I have a JavaScript function which actually ends up making a server-side call. I want to limit the rate at which this function can be called. What is an easy way I can limit how fast my javascript function will get called by say 200-500 milliseconds or so? Should I use a javascript timer control? ...

Is there a way to show html source in the browser after insertion by js?

Is there a way to show html source in the browser after insertion by js via ~.innerHTML = Source; ? ...

I need to create a contest....

I'm working on a contest where users vote for contestants. Each contestant will have a bio. I was wondering what would be the best way to approach this? Should I do this in php or javascript? Should I use a database to collect data? Should I use sqlite3? If I use sqlite3 how do i install that on my mac? I'm very new to all this but I'm a...

Multiple file uploader with previews

I'm trying to find something that will let users upload multiple files to a website. The requirements are that it let them easily select multiple files (preferably with something like check boxes) and that it displays a preview of the images they select. I'd prefer to only use Javascript or Flash if possible, but Java is also an option ...

jqGrid Mouse Drag to Resize

I'm looking for a way to trigger a resize of a jqGrid by dragging the mouse. ...

Access Google-apps public spreadsheet via Javascript

Spent a bunch of time looking at this.. It seems that what little info there was about accessing a Google-apps spreadsheet is not very well maintained.. At Google IO this year there was an announcement of enhanced Google-apps script. Including UI elements.. That got me to thinking of creating a widget based on data in Google spreadsheet...

How do I make a expanding textbox?

I want to make a textbook where it starts out as a given width/height. Then if users type more then the given amount of space, the textbox expands downward. How do I go about doing this? Do I use css? The basic textbox just displays a scroll bar when users pass the number of rows allow. How do I make it so the textbox expands the rows b...

Databinding to a property ?

I'm using the following syntax to bind to a div element: <div id="previewdiv"><%=Preview%></div> Where Preview is a property on my page. The catch is that I'm creating this in Javascript on a new page in an onclick event. On the server side, I'm able to reference the new page via this property but for some reason when the page is pos...

change mouse icon in asp.net

Hi All, I am using asp.net 3.5 and C#. I want to change my mouse cursor similar to this site http://dummyblogtrix.blogspot.com/ How can I do the same ? Please help. Thanks in advance ...

Good Javascript (inc frameworks) and DOM books

I have recently been using jQuery and some modules of Yahoo's YUI tools to develop a website and found myself getting more interested in learning how the Javascript code works "behind the scenes". This Javascript book has been recommended to me, however I have heard that it isn't as suitable for beginners in the language - I am a fairly ...

Under what conditions can I access the HTML-DOM of a child IFrame from the hosting website?

What can cause my website to not have access to a child IFrame's DOM via Javascript? Are there cross-domain restrictions in place? Does HTTPS play a role? ...

2 javascripts problem

<?php global $user; $userId = $user->uid; /* start with default */ $myresult = ""; /* All Includes - start */ include_once('db.php'); include_once('valid-scripts/validateData.php'); /* All Includes - end */ /* Build All required Variables - start */ $alias = $_GET['alias']; $product = $_GET['product']; $pr...

Play sound on mouse hover using Javascript.

Is it possible play song on mouse hover using javascript? If yes then how to code for it. ...

jQuery not selecting div class

Trying to make a simple toggle menu, and I can't seem to hide/show the sub menu using this bit of jQuery: $(".topic news").mouseup(function(){ $(".feed groups").hide("fast", function(){ $(".feed messages").hide("fast"); $("ul.feed news").toggle("fast"); }); }); Here is the corresponding HTML: <div class="topic n...

jQuery and Canvas.toDataURL

I'm working on a script, and a small part of that involves taking a canvas and converting it to a downloadable image. To do this, I do: var thumb_jpeg = thumbnail.toDataURL("image/jpeg"); $("#" + options.dest).attr('src',thumb_jpeg); ...where thumbnail is a canvas tag and options.dest is the name of an img id. This code works perfec...

How to pop out a Firefox window without an address bar or status?

How to pop out a Firefox window without an address bar or status, basically what i need is a bar minimum window that renders my html. ...

Metaprogramming on web server

From time to time, I find myself writing server code that produces JavaScript code as the output result. I can point out why it is really bad: Inextricable tie between server code and client code. Can render client code un-reusable. But sometimes, it just seems to make sense. And isn't it kinda sorta interesting? I guess the quest...

File upload progress bar

Anyone who has developed file upload progress bar with following: Ajax Javascript HTML C based CGI I am stuck at one point. I am not able to read each updated progress bar value from CGI script. /*****************CLIENT SIDE CODE*************************/ var intervalID; var percentage; var request; var tempvar=0; var progress; fun...

Creating Object in Objective C iPhone SDK

I need help creating an object for this declare UIWebView *webView; I thought it was the object, but Its the declare in my header file. Can someone help me create the object for this declare? ...