javascript

how to automate / script processes like signups .

which is the best tool for this - Automation of signup process to a website , e.g an email signup The tool should be able to take data from an external data file like an excel of csv file this data file would contain data such as first name , last name , username, password etc. basic data required during an email signup . I am imagin...

Introducing JavaScript learning resource for ASP.NET Delelopers

Hi I'm doing programming with ASP.NET . I have no idea how to use JavaScript in ASP.NET Server Side controls ( Totally uncomfortable with it ) . Do you mind introduce me some resource for folks like my type , please ? Edit: Thank you , I appreciate any online resource either . ...

How to control the system volume using javascript

Hi, I am using media player to play audio and video. I am creating own button to increase and decrease the volume of the media player. working fine too. Problem: Even after reaches 0% volume its audible. If the player volume increase the system volume also be increased. Is it possible. How to achieve this task. Control: <objec...

date to timestamp in javascript

Is it possible in javscript to convert some date in timestamp ? i have date in this format 2010-03-09 12:21:00 and i want to convert it into its equivalent time stamp with javascript. ...

Converting a PHP associative array to a JSON associative array

I am converting a look-up table in PHP which looks like this to JavaScript using json_encode: AbilitiesLookup Object ( [abilities:private] => Array ( [1] => Ability_MeleeAttack Object ( [abilityid:protected] => [range:protected] => 1 [name:protected] => MeleeAttac...

cross domain access in iframe from parent to child

Hi, Could someone please help me with this- I've 2 applications AAA and BBB. The homepage of AAA contains an iFrame which displays the application BBB. When I login to AAA, the same login details should be used to login to BBB(single signon) and on pageload of the homepage of AAA, homepage of BBB should also be loaded in the iFrame. I t...

How to get the 'height' of the screen using jquery

I want to set something in the middle of the screen thanks ...

how to get li width + margin using jquery

hello my code is something like this //css li{display:inline-block} //html #li margin and width are dynamic <ul> <li style='margin:30px;width:100px;'>Pic</li> <li style='margin:40px;width:200px;'>Pic</li> <li style='margin:10px;width:500px;'>Pic</li> <li style='margin:50px;width:300px;'>Pic</li> </ul> how to make a jquery function ...

how to set the blue border in the middle like the jquery site.

in this page:http://api.jquery.com/category/effects/ when you put 'up' or 'down', the blue border is always in the moddle of the screen, how to do this . i have the hotkeys lib:http://www.openjs.com/scripts/events/keyboard_shortcuts/ thanks ...

when using javascript how do you use select form to do if else statements?

How do you take a value of an option in a select form and use it for a if else statement? for example if apple is selected as an option then write to the document how to make applesauce but orange is selected then write how to make orange? so far I have a basic form and select options and I know how to do the document.write but I dont ...

How to validate an expression in JavaScript?

I have an expression in {YYYY}-{MM} format, and I have a textbox in which I will take input from user. The user must input in above format for example: {2010}-{03} or {10}-{3} or {2010}-{3} How do I validate this using JavaScript? Thank You ...

Intergating dokuwiki and jquery

Dokuwiki us prototype, my site use Jquery. If there is another way to alter Dokuwiki javascript, instead using jQuery.noConflict(), or/and var $j = jQuery on my jQuery? I open all .js files on Dokuwiki, search for "$(" and replace it with "$DW(", and it works like a charms, but I had to deal with every Dokuwiki plugins that has javascr...

SOA, unobtrusive JavaScript

Hi, Let us say I have a restful web service which can deal with DTOs in json format to perform a CRUD operation. Let us also say I use jquery in an unobtrusive way to serialise my form at the frontend using: JSON.stringify What can I do to ensure that everything works even if JavaScript is switched off? Thanks. Best wishes, Chris...

jQuery event order and waiting till animation complete

I have an slider animation but on clX.click event #close div hides before it is animated -250px left. How to wait till the animation completes and then hide #close div? $(document).ready(function() { $("#open").click(function() { if ($("#close").is(":hidden")) { $("#open").animate({ ...

What dataTypes other than 'number' can I use in ajaxpro bind ?

<input type="text" id="number" bind="{fieldName:'$.Id',dataType:'number'}" /> I would like to know what other dataTypes I can use. ...

What is the best way to observe the scroll over an element with overflow set?

It's simple to observe the documents scroll event but I can't seem to find anything relating to the scroll of any other element with css property overflow being set? To get around this myself i've been observing mousemove which only fires while you hold down on the scrollbar but this would need to be teamed with a mouse wheel observe al...

Variable declaration warning in VS2008

Hello, The following code in VS2008 gives me a "variable is already defined" warning: if (someVar) { var a = 1; } else { var a = 2; } The warning is given on the second var a = .... To cure this warning I have done: var a; if (someVar) { a = 1; } else { a = 2; } But is this the correct way to do it? Thanks, AJ ...

how to compare two element in jquery

var a=$('#start > div:last-child'); var b=$('#start > div.live')[0]; alert(a==b) alert(a==$(b)) it always false, how to compare two element in jquery, thanks ...

Javascript regex hangs (using v8)

Im using this regex to get the contents of a tag in a file. var regex = new RegExp("<tag:main>((?:.|\\s)*)</tag:main>"); This causes the v8 engine to hang indefinitely. Now, if I use new RegExp("<tag:main>([\s\S]*)</tag:main>"), all is good. Anyone have an idea why the first one takes too long? ...

How to structure Javascript programs in complex web applications?

I have a problem, which is not easily described. I'm writing a web application that makes strong usage of jQuery and AJAX calls. Now I don't have a lot of experience in Javascript archicture, but I realize that my program has not a good structure. I think I have too many identifiers referring to the same (at least more or less) thing. L...