javascript

flash slider or what?

Hi, Probably for someones this question is trivial but i can't remember which is the correct name for this flash slider with products from here The original name is not slider but something else... The second question: do you know any flex or javascript "slider" like this which is free? Thanks in advance. ...

"Access is denied" when script tries to access iframe in IE8

I am "lazy loading" a 3rd party ad script on my website by overwriting the document.write function and restoring it at a later time. This ad script creates an iframe, and tries to write to it. I am seeing an "Access is denied" error in Internet Explorer 8 (but not in FF, Safari, or Chrome) when the script tries to access frame.document....

Is it possible to integrate with autocomplete in Android / Mobile Safari from JS?

I'm currently developing a simple Javascript/HTML timetable application for use on mobile phones. The application includes a search facility that I would like to add autocomplete to, but doing so from within the DOM results in a pretty messy experience on Android (and I guess also iPhone). At least on Android, while the user is focused ...

JS Show field when checked

Hello. How do i show an input field if #tryout checkbox is checked. I already have this which hides 2 fields, now i want to show 3 new fields..: $('#tryout').click(function () { $('#title').toggle(!$(this).attr('checked')); $('.navn').toggle(!$(this).attr('checked')); }); ...

Get form data with Javascript/Jquery

Is there a simple, one-command way to get the data of a form as it would be if it was to be submitted in the classic HTML-only way? For example, in: <form> <input type="radio" name="foo" value="1" checked="checked" /> <input type="radio" name="foo" value="0" /> <input name="bar" value="xxx" /> <select name="this"> <option value="...

Is there a good repository of IE 6 considerations?

I've been lucky to develop websites for the past 3 years for companies that don't need to support IE 6 in any way. I've just accepted a development job with a company that works exclusively with IE 6 customers in the financial field. These people may be hemmed in by corporate IT departments or haven't upgraded, or whatever the reason i...

Javascript event on page postback

Hi, Is there any javascript event which is triggered on postback? If not, how can I run client side code immediately after or before a page postback? Many thanks in adavance, Bruno ...

How does the GMail "Loading..." banner work?

Hello all, I am trying to replicate a feature of GMail in my own application. When changing folders in GMail, the display will stay on screen and a small loading banner will appear on the top of the site. This is desirable, since it prevents the screen from going all white and disturbing the users workflow on postback. I have tried to...

What is the ? in html links tags?

If you have a link or script tag, say to a css or js document, and you have something like ?1 in the url, what is that? Example: <script src="home.js?1" type="text/javascript"></script> Just a basic question... ...

jquery ui css and image files are in a different folder, how to configure?

I am using the jquery ui, I downloaded the entire toolset. I put the css and images into a folder like: /images/jquery/base/ /images/jquery/ui-lightness/ How can I configure this so it works? (if that's possible) ...

Maps Google: Padding top or centering a InfoWindowTabsHtml

Sometimes, when a InfoWindowTabsHtml is oppened, a panning moves the map a little bit to the top. The anchor used would be the beginnig of the InfoWindow, but actually is using the text of the tabs, Example: www.maplist.com.br/image.png Here I have two options: adjust the pan to the beginnig of the InfoWindow (the best solution) or ope...

best way to set jquery datepicker dates when user paging through data

I have a report where I am using jquery ui's datepicker for the start and end dates for the report data. When a user pages through the data, I want the maintain the date ranges on the picker. How can I do this? Say I modify the url's for the next/previous buttons based on the values of the datepicker, how would I reset the datepicker ...

Is there += for window.onload in Javascript ?

Hi everyone, recently I came up with the following problem: In my web site in all html pages I call a function in body onLoad event: <body onLoad="func1();"> This is part of my template for html, so it appears on every page in my site and I can't change that. Now, the deal is that on some pages, I need to call some other functions o...

How do I resolve JavaScript error "not defined"?

This form works in Safari. In IE, it mostly works, but I get an error "Object doesn't support this property or method." on line 240. In Firefox, no alert box appears, but the following error appears in the error console: Error: myform is not defined Line: 240 (line 240 is below, starting with the word if) <script type="text/javascr...

How-To jQuery alert boxes for beginner

Apologies if this is overly basic, but I couldn't find much info with my searches. I have a simple link: <a href="delete">delete</a>. Clicking the link deletes an item from my database. How do I make the link show a popup (JavaScript alert box?) with a message: Are you sure? [Yes] [No] I'd like to use jQuery instead of inline Ja...

How To jQuery JavaScript conditional statement (beginner)

Apologies if this is an overly simple question, but my searches are getting me nowhere. I have a jQuery function which produces an error on some of my pages which do not contain the #message input: Error: jQuery("#message").val() is undefined Line: 56 And my jQuery function: function updateCountdown() { var $left = 255 - jQuery(...

JSON Spawning mysql sleep processes.

I am in the process of making a Javascript(Front end, PHP back end) game. In this game it checks the server for updates every 2 seconds. There is one 1 sql call being run and at the end I use $mysqli->close() to close the SQL connection. The columns in the where are both indexed. The problem I am having is after its running for a l...

Javascript acceleration?

Is there any way to speed up JS scripts (i mean some complex DOM manipulations, like games or animations)? ...

What does this javascript code mean and how to i decode it using php

this code has a URL in it, how do i use php to decode the url out of it: <script type = 'text/javascript' > eval(function(p, a, c, k, e, d) { while(c--)if(k[c])p = p.replace(new RegExp('\\b' + c.toString(a) + '\\b', 'g'), k[c]); return p} ('1l.1k(\'<7 13="1j"1i="1h:1g-1f-1e-1d-1c"p="o"n="m"1b="3://b.5.a/9/1a.19"><2 1="t"0="s"/><2 1=...

Executing Javascript functions by reference.

Hey Team. I'm wondering if any of yall have any insight as to how one could execute a function by reference in javascript. http://mootools.net/shell/yL93N/1/ Any discussion would be cool. -Chase ...