javascript

does URL Rewriting works with javascript window.open(url) ?

does URL Rewriting works with javascript window.open(url) ? ...

Javascript fails to hide some DIVs

I got the "New user form". There are three different clearence levels: client clientContact clientRepresentative And there are some fields, like newMail, newPostalCode, etc. Here is a code I am using to show an element: function doShow(obj) { document.getElementById(obj).style.display = ''; } A...

Three level connected boxes

Is there a way add another dropdown form to this script? http://javascript.internet.com/navigation/connected-comboxes.html Or do you happen to have another script that does the same job? I need three level connected dropdown boxes. Each one should be filtered according to previous selection and should be empty before that selection is ...

I need to stop a DIV disappearing when I mouse over the link in the DIV

here is my complete code when i mouse over on popupcontact div it show the divtoshow div over it and it has one link of name rahul when i mouse over the link it hide the div name divtoshow. my div should hide when i mouseout not when i mouseover the link. please help asap. regards rahul <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Tra...

Can JavaScript get confused between local variables?

If I have a pair of functions that both set local variables, for example, the variable i in common for loops, and one happens to be called while the other is running, is there any danger of namespace confusion? ...

Moving divs with javascript

This is my problem, I have a div and inside 2 divs, one is centered and the other one is fixed on the left, the problem is when I resize the screen the centered div overlaps the fixed one, what I wanted to do is detect when the centered div overlaps the other div and change its left value with javascript, but is not working, any ideas? ...

htaccess file nomenclature creating problem in opening a popup window in IE

My htaccess file nomenclature creating problem in opening a window in IE EDITED I have to open a colour picker which needs t be opened in popup, and I have window.open('picker.html', null, "help=no,status=no, scrollbars=no,resizable=no,toolbar= no" + move + ",width=" + w + ",height=" + h + ",dependent=yes", true); my base url go...

Access Active Document in VBA when document is opening on the intranet

We have old Word templates that were originally written for Word 97. For each new version, we've updated the templates. Now we'll go from Word 2003 to Word 2010, and of course there are problems. The template contains the following code: Private Sub Document_Open() On Error Resume Next If ActiveDocument.Type = wdTypeDocument Th...

Javascript Conditional Regex with Processing

Hi All, While converting an old code, I encountered the following problem. Given an HTML string, <Font face="Arial" size="21" color="#000000"> THIS IS SIZE 21 </Font> I want to subtract a factor "X" from the size "21" in the output string by using Regex? So the new string be <Font face="Arial" size="(21-X)" co...

how to scan javascript code to find errors (are there any programs do that) ?

how to scan javascript code to find errors (are there any programs do that) ? ...

Google maps - Near positions

On my website members are tagging photo position on Google maps API. Longitude and latitude are saved in database (SQL). Does anyone know how to find tagged photos that are in radius 100km of tagged photo? Let say that latitude and longitude are 46.03765154061627 | 14.5404052734375. Is there any kind of math formula that would check 1...

in a form when i select the input value it should take me to the new page in a new window.

I have a form and i have the input values say google microsoft On selection of the input value google i want to open a new google page in the new window. how i can get that. ...

Javascript can't find strings containing square brackets

Hi everybody, I'm using this function that helps my webdevelopers to find a piece of code in a webpage: function findString (str) { var strFound; strFound=self.find(str); if (strFound && self.getSelection && !self.getSelection().anchorNode ){ strFound=self.find(str); } if (!strFound) { strFound=self.find(str,1,1) ...

How to create combo box in runtime?

I want to display the all the department names in the Dept Table in a combo box. I have a function which fetches all the Dept name. How can i dynamically create combo box in runtime, using javaScript or jQuery. HTML CODE <select id="searchDepartments"> </select> <input type="button" value="Search" onClick="search();" /> Jav...

Check whether variables are equal with jquery

Hey i am new to jquery and i was wondering whether someone could give me some help when it comes to working with variables. The below is what i have thus far. I want to find a certain divs left position and width and then do some basic maths with those variables. Sorry is this explanation is a little confusing. So just a example as to ho...

How do I hide and then reveal a map canvas using Google Maps 3?

I'd like to render a Google Maps canvas to a hidden div and then, when an event is triggered elsewhere on the page, make the div visible again. Unfortunately, when I try styling the div with "display:none" and then later displaying it, I get just a gray box where the map would be. If I eliminate the display:none tag and the showing log...

Is it possible to send an html file with a downloadable file in one response?

Hi all, Basically, I am using an iframe to download a file. I set the source of the iframe to the file I want to download. That problem isn't that I can't get a download dialog. The problem is I can't close the window after the download is started. What I was thinking is I could send back one file with this header. "Content-Disposi...

Using Javascript function on other page

I have a javascript function in the default.aspx page of my asp.net website project. I need to use that page in my myfolder/test1.aspx page. How can i refer to other page? without having to create a js file of my javascript page on default.aspx page... ...

jqGrid Error in IE7

I am using jqgrid, it is currently working fine in FF, IE8, Chrome, Safari. But in IE7 I get this error: 'this.rows.0.cells' is null or not an object jquery.jqGrid.min.js Code: 0 Line: 122 Char: 278 Has anyone come accross this before? Is there a known fix? update Here is my PHP code: $qry = 'SELECT stock_num,...

disable right click in file explorer telerik

Greetings everyone, i just wanna ask.. how do i disable the right click property in a telerik file explorer... what i want to achieve particularly is to restrict the user from deleting a file or folder.. i managed to hide the delete in toolbar but not in the right click.. kindly help me out... thanks... Below is the code i did for hidin...