javascript

javascript drop down loop if statement

I have created 2 drop down menus, from and to, these include times starting from 8 > 22:00, however on submitting the form it is asking me to select a start time which has already been selected and confirmed by an alert option i have included, has really confused me!! any help appreciated. craig window.status='Loading contingency scrip...

Problem creating markers from JSON

I am trying to create markers from a database. I do this by outputting the DB results to json and loading the json in the google maps code. The JSON is valid and is being loaded. My full Google maps code is: google.load("maps", "2"); // make a json request to get the map data from the Map action $(function() { if (google.maps.BrowserI...

Javascript Arrays - Consolidating Multiple Arrays Help

Hi Guys, I wonder if anybody could provide me with any assistance to the following problem I am having with my JS project? I basically have information about a product being pulled from out from 3 different JSP lists: A Product's Details A Products's Ratings A Products's Retailers What I am trying to a do is loop through the JSP th...

How to use bit.ly for Twitter

Hi, I'm developing a J2EE website with spring framework. I want my website to share with Twitter but I couldn't succeed using bit.ly API. the function makes bit.ly link but in Twitter's share page I only see the full link. How can I send the bit.ly link to Twitter? The bit.ly response which I get from firebug: BitlyCB.getBitlyUrl({"...

jQuery Basic problem

Hi, I have a page that display some data. It is loaded from a database using php and mysql, I use zend framework to handle all this. On this page I have two things that use jquery. one is a paginator and the other is a thumps up function. the paginator works fine. It receives the data as json and applys it to the view. all the functio...

javascript drop down loop if statement

Possible Duplicate: javascript drop down loop if statement I have created 2 drop down menus, from and to, these include times starting from 8 > 22:00, however on submitting the form it is asking me to select a start time which has already been selected and confirmed by an alert option i have included, has really confused me!! ...

Best IDE for Java Script also JQuery

Possible Duplicate: Good JavaScript IDE with JQuery support ? I am a Web Developer, working on Javascript and Jquery. Right now I am using EditPlus for development process. Faceing lots of difficulties. Please let me know Best IDE for Javascript / Jquery. ...

Show hyperlink and popup window when Mouseover on image !

Hello , I am developing a web application using asp.net, telerik RadAjax control. I have to need to develop when mouseover the image then show a hyperlink and when click the clink then open a new window(like facebook profile picture change). Please Help me... ...

Prevent tampering with client-side geocoding results

We are building a service that uses location-based pricing. The user can input an address and see prices in his area as determined by various server-side algorithms. It is then possible to order items based on these prices. I'm trying to figure out if there is a way we can use client-side geocoding in this scenario (to avoid hitting Goo...

javascript: missing : after property id

I'm trying to pass my own array of objects: results[num_row] = {'title:\'' + title + '\', ' + 'url:\'' + url + '\''}; but this returns the error in firebug when I try: results[num_row] = {title:'Link A', url:'/page1'} it works. Thanks, <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xh...

How to create a dynamic CSS-based interface using moving content tiles?

I'm trying to figure out what the best way would be to set up a website interface that has a large centre 'tile' (basically a div with rounded corners, a variable background image, and text on it) that acts as the hub of the interface, around which I have smaller tiles which are clickable as link, e.g. one tile will lead to a photo galle...

Client-side hashing/salting over HTTPS

I'm wondering what the serious issues are with the following setup: Username/password login scheme Javascript/ajax requests the salt value from the server (we have established in previous questions salt is not a secret value) Javascript preforms an SHA1 (or otherwise) of the password and salt. Javascript/ajax return the hash to the serv...

jQuery, get and set tag values

Hi, I have a <span id="test">5</span> and I wand to get its value, 5. And I want to change that value. how do I realize that. ...

optimize dom-heavy JS sorting

Hi guys, So I've built this mail-program-like HTML viewer (no real emails, just some messages from user to user). It basically behaves just like windows explorer, where you have the labels at the top and the files you can sort by date or alphabetically. Each message looks like this: <div class="mail_msg" d_id="363"> <div class="don...

making png transparent in ie6 with wordpress site

i'm running a wordpress site and when viewing the site in IE6 i would like it to show my png transparent instead of with a grey background, anyone who can help? found solutions but the make me confused since wordpress has different tags to work with ...

jQuery autocomplete - include description

How can I add to the results which are displayed smaller text with a description? I have the description in the array of data that autocomplete is using. I can call this by using the .result function and calling item.description So right now I see a list: Item1<br /> Item2<br /> Item3<br /> I'd like to have it Item1<br /> &nbsp;desc...

CPU Architecture (32/64 bit) using Javascript

Possible Duplicate: Detect 64-bit or 32-bit Windows from User Agent or Javascript? Is it possible to find the client architecture (32 bit or 64 bit) using JavaScript? ...

JQuery string contains check

Hello, I need to check a string to see if it contains another string. var str1 = "ABCDEFGHIJKLMNOP"; var str2 = "DEFG"; What function do I use to find out if str1 contains str2? Cheers, Thomas. ...

How to detect changes to dom with no distinguishable ids or classes

I am working on fixing a bug to my google chrome extension for Gmail. I need to detect when the Rich Format bar is displayed, but all of the ids and classes are obfuscated and I presume unreliable. To detect the message canvas this.canvas_frame_document.evaluate("//iframe[contains(@class, 'editable')]", this.canvas_frame_document, n...

Small Problem with Regular Expression when checking for character input

I have made a simple webpage to check for regular expressions. <html> <head> <script type="text/javascript"> var illegalChars = /^[&*%]+$/ function validate_form(thisform) { with (thisform) { if (illegalChars.test(regextest.value)==true) alert('Illegal Characters'); {regextest.focus();return false;} } } </script> </head...