javascript

Trying to randomise a jQuery content slider

Hi everyone, I'm using a very nice jQuery content slider called Easy Slider on my site that I downloaded from Css Globe. The script is excellent and does just what I want - except I can't make it randomise the list, it always scrolls from left to right or right to left! I'm far from good with JavaScript, so my attempts at solving this...

Ajax back forward problem

i use Ajax in my page, and dynamicaly load content, but in this case my back/forward does't work. could you tell me how can i solve this problem? thanks ...

Gmail like URL scheme

I am working on a ticket system, having the following requirement: The home page is divided into two sections: Sec-1. Some filter options are shown here.(like closed-tickets, open-tickets, all-tickets, tickets-assigned-to-me etc.). You can select one or more of these filters. sec-2. List of tickets satisfying above filters will be displa...

Intro Bar like stack overflow

I have a simple top bar using jquery like the one on stackoverflow, but i want it to only appear on the first time a person visits the website. The HTML: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html> <head> <script src="http://ajax.googleapis.c...

Writing to a new window with javascript... get access denied

Hello gurus :) I have been struggling with this for a while now, and decided it was time to ask for help. I am trying to create a print function on an aspx page, and I am using javascript to do this: function PrintContentCell() { var display_setting = "toolbar=yes, location=no, directories=yes, menubar=yes,"; d...

Hide a UL when a url is loaded

hi , i am having a form -search below that on search i am listing the matched records below the search form .. But even by default case without any search when i load the search form i am getting all the entries by default.. which is coming in a UL.. So i am trying to hide a div when the particular url is loaded .. How to do so?? ...

Event problems with FF

Hi all :) Made this sweet little script to auto change fields after input. Works nicely in IE, Chrome and Safari, but not in FF or opera. JS code: function fieldChange(id, e){ var keyID = (window.event) ? event.keyCode : e.keyCode; if (document.getElementById(id).value.length >= 2){ ...

Facebook Connect Javascript API failing to maintain connected state after page reloads

I have a Facebook Connect site using the Javascript API - I'm not using any FBML tags. It was working fine until a couple of days ago and now I have a problem with reloading the page while the user is logged in. The user can log in fine, and I can get the user's Facebook ID. They can refresh the page and they're still logged in (and I s...

javascript function not working in IE 7

Hi, Can anyone please tell me how do I make this script run in IE 7? When I run this , nothing happens. <html> <head> <script language="JavaScript"> function moveSelectedOption() { // Fetch references to the <select> elements. var origin = document.getElementById('origin_select'); var target = d...

Javascript DOM encoded html code problem

var accordion = document.createTextNode(tp.getAccordionContent()); var el = document.createElement("div"); el.appendChild(accordion); document.getElementById("gp").appendChild(el); tp.getAccordion() function returns me a string like < div .... and it is being decoded. All I want is to get it encoded and implement the di...

How to recognize touch events and control a script object inside UIWebView?

Situation: I have an UIView with an UIWebView in it. When the viewDidLoad the Javascript Object inside the UIWebView is called (Microsoft Seadragon AJAX JS). For your Understanding: Seadragon loads a specified megapixel image(JPEG) and in a Desktop Browser like Firefox i can Zoom into the image and I can drag the crop for example from t...

How do i check if object is a div or a li?

Using jquery or JS how do i check if an object is a div or a li? ...

Which is the most memory leak safe approach.

I have a table of frequently updated information. This is presented using a container div with a div for each row, each row containing 10 divs. I am using setInterval to call a an asmx webservice that returns some json formatted information. On the success callback I call $("#myContainer").empty(); on the container div and recreate the...

Can you access the iPhone camera from Mobile Safari?

Is there a JavaScript API for accessing the the iPhone's camera from Mobile Safari? ...

Swap image with jquery and show zoom image

Hi there, On my site I have an Classic ASP page that shows 4 thumbnail product images that when clicked on swap the main image. This part is working okay. However, on the main image I'm also trying to use the jQZoom script. The zoom script works for the most part, except that the zoomed image always displays the zoom of the first image...

digital clock using javascript/jquery

Anybody has a suggestion on how to build a textbox that is exactly like the one showing the windows time using javascript and/or jquery? ...

Ignore mouse interaction on transparent parts in image and assign it to the image below

i have two tables with images that parts of them are transparent and i want to ignore mouse interactions (especially clicking) on these parts and assign the click to the image in the other table that below. (i hope you understand because english is not my native language.) thanks.. ...

Making onmouseout and onmouseover work correctly in Opera while cursor moves between iframes

I have the following code. Here iframe2 will be on top of iframe1 near it's right. When the user moves the mouse on iframe2 the size should increase and it should move to the left and when the moves leaves iframe2 it must go back to it's original size. The Javascript below does it. The code works fine in Firefox, but in Opera 10.50 it do...

Optimize website for touch devices

On a touch device like iPhone/iPad/Android it can be difficult to hit a small button with your finger. There is no cross-browser way to detect touch devices with CSS media queries that I know of. So I check if the browser has support for javascript touch events. Until now, other browsers haven't supported them, but the latest Google Chro...

how to create a pure browser/javascript search engine for a bunch of static files ?

Hello, I was wondering if there exists some kind of indexer (in python language for exemple) that would take a bunch of html files and create an index in javascript. In the solution, these javascript files would then be used to create a pure browser search engine. Jerome ...