javascript

Link in Javascript alert

I want to put a link in a Javascript alert. Is this possible? (I've searching for a solution, but I keep getting things about links that fire alerts!) ...

Trace an IP Address and find the owner

Is there any way to find the owner or the domain Example if i give the ip of google my tool find that ip of google this shoul be done address programatically most prefered programing language will be vc++ other language is also not a problem ...

Escape_javascript problem

I have a set of dependent dropdown menus on my user/edit page. The user selects the parent dropdown, which then limits the selections available in the child dropdown. The user can add multiple additional sets of parent/child dropdowns. Product is the parent. Variety is the child. This all works great unless a variety is entered into...

show image gallery on modal popup

hi,, i have a dropdownlist containing some items,,,on selecteditem index i have displayed modal popup,,,this modal popup is used to show image gallery,,i have seen some posts where datalist is used to show images but they dont seem to work efficiently,plz provide some posts which show image gallery and enlarge them as well.... ...

problem on executing on mozilla (activexobject is not defined)

my source is working in IE but not in mozilla. please help me. <script type="text/javascript"> <!-- var adOpenDynamic = 2; var adLockOptimistic = 3; /* Path of database. */ var strDbPath = "..\\SRVGdb.mdb"; /* Here is the ConnectionString for Microsoft Access. If you want to use SQL or other databases, you hav to change the connection...

How to create a function that resizes text on a page without javascript ?

Does anyone have any ideas how to create a function that resizes text on a page dynamically without the use of JavaScript? I'm using CMS based on C#? Is it possible with CSS only? if it's not possible then i want to do with javascript like this page http://demo.joomla.org/1.5/?template=beez and as a fallback want to user server side sol...

Writing Multidemisional Array jQuery

Hi, Good Day!... I would like to ask on how to write Multidimensional Array in jQuery ? its oky if its in basic syntax, im still new to jQuery. ...

Showing an invisible div after jquery animate

So I'm trying to figure out how to show an invisible div after an animation on jquery. Here's the code to show the div: $('#box_green') .css({ visibility: "visible", opacity: 0 }) .fadeIn('slow') ; the css which also makes the div invisible: div#box_green{ background-image:url(../images/bg_stripe_green...

Help needed for writing regular expression for this complex conditions

Hi, What can be a regular expression for following type of string E.g. 1, 2-3, 4..5, <6, <=7, >8, >=9 Here I am using equals, range (-), sequence (..) & greater than/equal to operators for numbers less than 100. These numbers are separated by a comma. Pls help me in writing a regular expression for this. Thanks in advance. Atul ...

IE errors with jQuery & timeout

In a jquery hover event I use the following code to drop down a menu: clearTimeout(hTimeout); $('#lowermenu').queue('fx', []); $('#menucenter .current').removeClass('current'); $(this).children('a').addClass('current'); dTimeout = setTimeout(function($item){slidelower($item)}, 200, $(this)); // This is the bad line function sl...

Adding a custom icon to a google map

Hi, I'm not a javascript guru, so I need a hand adding a custom icon to some google maps javascript. Code below for your reference. All good things P function populateMap() { var map = new GMap2(document.getElementById("map")); map.setCenter(new GLatLng(55.915832522285235, -3.5911989212036133), 10); map.setUIToDefault(); var p...

create random sha1 salt with javascript

Hi! can anyone recommend a good method to create a sha1 salt using javascript ? ...

What is the equivalent of JavaScript's encodeURIcomponent in PHP?

What is the equivalent of JavaScript's encodeURIcomponent in PHP? ...

Shorten up Jquery condition

Hi there, I have a question about how I can shorten a Jquery if statement. In my form I have several fields that I check if they are filled. I know there are several plugins to do that for me, but I wan't to learn it by myself (with some help of others ;-)) I got this check //---- First define hasError var hasError = false; //---- Ge...

How to show an image and hide it after 5 seconds?

var div=document.createElement("div"); div.innerHTML="<img src='load.gif'>"; With javascript. ...

Showing the browser’s ‘select file’ dialog when focusing input[type=file] through keyboard navigation

As the title says, I want the ‘select file’ dialog to open when a certain input gets focus by tabbing through the form fields (using keyboard navigation). By default, the ‘select file’ window only opens when the field is clicked. I put up a page on JS Bin for this issue: http://jsbin.com/areba/edit Currently, this page consists of the ...

Graphs in a Facebook App

I've been messing around a bit with a Facebook application for a while now, which is using FBML. A need has arisen to integrate graphs to display data. From what I can tell my options would be one of the following: Find a Flash Graph that doesn't require a JavaScript library to work Convert the application to an IFrame application, and...

Send XML in a js variable to FusionCharts

Hi I have this php code which ends up with xml data in a string, I then use onClick to send it to a js function $strXML = "<chart><set label='B' value='12' /><set label='C' value='10'/></chart>" <td align='right' onClick='drawchart($strXML)' >&pound $totalcost </td> However when it gets to my js function it does not work and the dat...

Send XML in a js variable

Hi , I have this php code and the variable is XML data $strXML = "<chart caption='ADI Chart Test ' xAxisName='Month' yAxisName='Units'" $strXML.= "showValues='0'formatNumberScale='0' showBorder='1'>"; echo "<td align='right' onClick='drawchart($strXML)' > $totalcost </td> " ;` this is passed to a javascript function function drawc...

OnSubmit is not working in IE 8

Everything was working fine in Internet Explorer 6 but it's not in Internet Explorer 8. I will appreciate help from anybody. I want to know what I should change to make it work in IE8. This is the code I am using in the form: <form METHOD="POST" ENCTYPE="multipart/form-data" name="form1" onSubmit="checkFileUpload(this,'GIF,JPG,JP...