javascript

How to call parent window function in chrome browser?

HI, I've surprisingly found problems, in Chrome browser, in calling window parent javascript functions. If I have a window with a javascript function defined in it <script type="text/javascript"> function dolink() { . . . } </script> and I have an iframe inside that window that makes this call using jquery <script type="text/j...

How to find browser date time format

Hi All, I have date as 31.03.2010 in german ofcourse 31 is date,03 is month and 2010 is year. Now I want to display the date as per the selected datetime format for the browser, say is user has german for him I would display 31.03.2010 whereas for English I would display 03/31/2010. Any Idea how this can be done? ...

What regular expression do I need to check for some non-latin characters?

I am checking a field if it is Latin Characters or not. var foreignCharacters = $("#foreign_characters").val(); var rlatins = /[\u0000-\u007f]/; if (rlatins.test(foreignCharacters)) { alert("This is Latin Characters"); } else { alert("This is non-latin Characters"); } This works well, but I would like to change it so when I ...

How to Integrate DOM into V8 engine?

Im in the process of developing Browser for ARM Device. I've done rendering of pages and basic javascript executions using V8. Now am in the process of Integrating Javascript DOM. Is any independent library version (.so) of DOM available? ...

Can we insert javascript into any webpage loaded in the browser

Hi I am looking into methods to inject javascript into any webpage loaded in the browser, so that I can traverse through the page's DOM. I use JQUERY for my scripting needs. Method should work in all browsers. I tried using IFRAME and adding some html into it, but I cant. Please suggest some ways. ...

asp.net mvc client side validation; manually calling validation via javascript for ajax posts

Under the built in client side validation (Microsoft mvc validation in mvc 2) using data annotations, when you try to submit a form and the fields are invalid, you will get the red validation summary next to the fields and the form will not post. However, I am using jquery form plugin to intercept the submit action on that form and doing...

where did the other/ come from ?

why some thing like this url="http:/"+"www.pathname.com"+"/"+"anotherString"; turns into http://www.pathname.com/anotherString. Notice the // after the http:. ...

PHP and Javascript Webservice

By using javascript am trying to cal a webservice.That service return response as follows.. <envelope> <date_time> Test', callbackTest Wednesday, March 31, 2010 2:28:55 AM </date_time> </envelope> I am using firefox as browser to execute the application.Thats why after creating the object of XMLHttpRequest try to read as follows _xm...

Highlighting search words like Chrome with jQuery

I have recently done a very simple highlighting with jQuery and a highlight plugin. It looks like this: $('myButton').click(function() { $('body').highlight($('#myInputText').val()); }); But I wonder how can I do the Chrome like highlighting, I mean highlight the letters whenever I type in some letter in textbox without s...

Capture reload/endrequest event after server redirect to download file

Inside a webpage I have an Excel download button, which redirects to a webpage that serves the requested Excel file via the application/ms-excel MIME type, which usually results in a file download in the browser. In the webpage, I have the following jQuery code: $(document).ready(function () { $(".div-export .button").click(functio...

jQuery: Open File Upload window by pressing a link or image.?

Is this possible to open a File Upload window when clicking on a image or link. (like what exactly in the <input type="file" name="upload" />). ...

how to create a Polyline in google map v3 , and make it enableDrawing..

this code is in v2: var polyline = new GPolyline([point1,point2], "#ff0000", 5); map.addOverlay(polyline); polyline.enableDrawing(); and how to do in v3 ?? thanks ...

Retrieve the full page HTML - jQuery

I am trying to retrieve the full HTML of a page, so far I am using: $('*').html() Is there a better way (also this excludes the <html> tags at the top)? ...

Can you have multiple clipping regions in an HTML Canvas?

I have code that loads a bunch of images into hidden img elements and then a Javascript loop which places each image onto the canvas. However, I want to clip each image so that it is a circle when placed on the canvas. My loop looks like this: $$('#avatars img').each(function(avatar) { var canvas = $('canvas'); var ...

Javascript Msxml2.XMLHTTP terminal server access denied

Hi, var xmlHttpRequest = new ActiveXObject("Msxml2.XMLHTTP"); xmlHttpRequest.open("POST", "http://vat/_vti_bin/lists.asmx", false); How can I let this script work on a Terminal server? When I open it on my local pc, it works, but when I do the same thing in a browser on a Terminal server, I get Access Denied. I tried using ServerXMLH...

Bypassing Browser popup blocking when automatic session timout occurs

Hi all, Please help regarding the following issue. I have enabled the "Block popup" option in browser. We are doing a session validation using a background ajax call to check the session is active or not. If the session is not active for a desired interval a popup window will come for notification. Now comming to the problem . since...

Check if elemntFromPoint() bumps into a hyperlink

I am using elemntFromPoint in order to return onclick some element. I would like to check if the returned element ('span' div' whatever...) is part of a link or if it is a button etc. How should I start? Thanks. ...

Cross-domain templating with Javascript

I'm currently building a Javascript library that can be used to easily create embeddable media based on the URL of a media file, and then be controlled using Javascript methods and events (think something like the Flash / Silverlight JW player). Of course, i could simply cat all the html tags from the Javascript library and send that t...

Photo gallery in javascript

Hai, I am in search of a photo gallery in jquery like the one in the following link http://www.epson.co.in Could you guess tell me where i can get a plugin like this. thanks ...

Catching 'Last Record' in Coldfusion for IE javascript bug

I'm using ColdFusion to pull UK postcodes into an array for display on a Google Map. This happens dynamically from a SQL database, so the numbers can range from 1 to 100+ the script works great, however, in IE (groan) it decides to display one point way off line, over in California somewhere. I fixed this issue in a previous webapp, th...