javascript

Suggestions based on unknown address in google's geocoder

When using Googles geocoder service to display a city on a map; filling out a non-existing city results in an error. Is there a way to display some suggestions based on the filled out city? var geocoder = new GClientGeocoder(); function showAddress(address, zoom) { geocoder.getLatLng( address, function...

jQuery validationEngine plugin - custom callback for datepicker input fields

Hi, I'm using this jQuery validationEngine but I'm having a problem validating input fields which are transformed using Jonathan Leighton's datepicker. I need to validate that two dates are the same, so i have a custom callback (validateDOB) to check this. When I run this callback in the firebug console it correctly tests the values agai...

Validate Div tag seperately...

i have 3 div tags.Each having no. of textboxs and button.Each textbox having validation.For all button causesvalidation property is true.If i click "button1" in "div1" tag will cause validation of other textbox in other div tags.I dont want to do this ? How to avoid this? ...

Can someone tell me how to make the motion from top to bottom of the scroller of this jquery plugin?http://plugins.jquery.com/project/vTicker

Can someone tell me how to make the motion from top to bottom of the scroller of this jquery plugin?http://plugins.jquery.com/project/vTicker. i want the newest child to display at the top.Simply changing the obj.animate({top: '+=' + height + 'px'} to obj.animate({top: '-=' + height + 'px'} changes the direction but does not disp...

TinyMCE and pluploader not working together

I want to have an instance of both TinyMCE textarea and pluplupload custom file uploader on on web page. The problem is that in my Firefox 3.6 or Google Chrome they just don't work together. I checked with IE8 here it works fine. I tried both versions of TinyMCE - the standard and jQuery. I tried debugging the initialization of plupload...

Design an indefinite scroll widget like google reader on iGoogle

Hi, all. Do you have any idea how to implement an indefinite scroll widget like google reader on iGoogle, which loads data dynamically and the scroll bar is replaced with a pair of up and down arrows. I have a html structure like this: <div id="note_column"> <ul class="messages"> <li class="note"> .... ...

Javascript RegEx Question

Hello, Suppose I have this: $('ul.child').slideUp('slow'); What would be the regex to find 'ul.child' and 'slow' (including quotes) in the above expression. ...

why is internet explorer displaying my javascript pagination backwards?

Here's a version of the code I'm using, stripped down to just the parts that aren't working. This is all written to generate some basic pagination with jQuery. In Chrome/Safari/Moz, I generate see spans, 1,2,3,4,...,etc When I look in IE7/8, I see etc,...,4,3,2,1 The string seems to be concatenating backwards!! This seems very strang...

Alert formatted as hexadecimal in JavaScript

How do I alert as FF and not 255 with this: var myHex1 = 0xff; alert(myHex1);//alerts 255 var myVar = 255; var myHex2 = myVar.toString(16); alert(myHex2);//also alerts 255 and not FF ...

To see javascript object properties and functions with intellisense in VS.NET 2008

I am creating classes in external files.And adding them with <script src='../js/clsClassName.js' type='text/javascript'></script> tags. When i created an object from this class I can't access its props, and functions with intellisense. Is there any way to achieve this? Sample javascript class: // clsClassName.js function ClassName(_p...

JS encodeURIComponent result different from the one created by FORM

I thought values entered in forms are properly encoded by browsers. But this simple test file "test_get_vs_encodeuri.html" shows it's not true: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt; <html><head> <meta http-equiv="Content-Type" content="text/html; charset=windows-125...

Android v1.5 w/ browser data storage

I'm trying to build an offline web application which can sync online if the network is available. I tryed jQuery jStore but the test page stop at "testing..." whitout result, then I tryed Google Gears which is supposed to be working on the phone but it is not found. if (window.google && google.gears) { google.gears.factory.getPermis...

Dojo not working for me.

Hello, I can't get my dojo working. I've tried everything. Here is the code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt; <html> <head> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/dojo/1.4/dojo/dojo.xd.js"&gt; dojo.addOnLoad(functio...

Set form action dynamically in https-area

Hi, heres the problem explanation: Im on the domain https://www.example.com - theres an Order-Form with the Action https://www.example-otherdomain.com with an other SSL Certificate. On some conditions i set the form action to https://www.example.com so that it will be posted on our domain, but if the user uses a CreditCart it should g...

insert new line after displayeing each key value pair in javascript object

Hi, I have a javascript object which is converted from json to java script object. i want to display its values like after each key value pair, i want to insert new line. but i dont know exactly how to do that. below is my code, please take a look and tell me how i should insert a new line. i tried but its not inserting a new line is dip...

How to create a file by getting the filename from the user in javascript?

How to create a file by getting the filename from the user in javascript? ...

Visual Studio Script Documents macro for javascript

Hi I think it would be quite useful to have a macro where, I fire it on a javascript file in Visual Studio (the file being embedded into the dll) and it takes me to the corresponding file in Visual Studio Script Documents. I doubt anyone has written one (nice if you have :-)) but I bet theres something similar out there. So the que...

FirePHP not returning ajax request queries, yet returns normal page load queries

I am using firePHP(Zend profiler) on on FF 3.6.3(firephp addon installed) and it returns queries, when I do a normal page load. Ajax requests, however, are not returning the proper queries. I am using Prototype 1.6.0.2 for ajax requests. Is there something I am missing? Most of the write-ups seem to imply that this should work by def...

Is there a way to see what's manipulating a HTML Node?

Breakpoints are great when one knows where the code is being executed. However, I have a problem where my DIV is being manipulated by some unknown code in a library I'm using. Is there a way to basically set a breakpoint on the node and see when children are added or attributes changed? ...

what is the keep me logged in functionality in rails?

Hi All, I am creating a login form where username , passowrd and one checkboxed with label " keep me logged in Until I log out " i want to know is it a basic functionality? what happened if i checked the checkbox and vice-versa? i am using. Any help is appreciated. ...