20,316 Topics
Hi, I have the following piece of code. <html> <script language=javascript type='text/javascript'> function Getlink(a, b) { var targetURL=""; switch(a) { case 'param1': switch(b) { case 'param2': targetURL="http://www.google.com"; break; } break; default: break; } return targetURL; } </script> <body> <p> <!--<a href="javascript:Getlink('param1', 'param2')">Test google</a>--> <a href="#" target="content" onClick="document.location.href=Getlink('param1', 'param2');">Test google</a> <a …
Hi, I am new to JS. Long time passed trying to understand JS basics and functions...may be it's time for asking some help. Om my exam pages I have <iframe> and <img> to change pages in the iframe. I have links to other 5 pages that are opened in the …
this is related to link exchange i have a form field where user can enter his website url or code with anchor tag to display hyperlink. i want to validate the input from user is done properly for hyperlink code(not allow any other html code). Can anyone suggest me how …
Does anyone know how to Detect Mouse Click Anywhere on Window, Not just on form?
hi all, can you help me find a way to start a new internet explorer window in a new process? for the moment i am using window.open in javascript but its using the same process no matter how many windows i open while what i need is one process for …
hello, i want to open several ie windows but the problem is that when i use window.open only one ieexplorer thread is used no matter how many windows i open which is causing me session time out problems when closing one of the windows so my question is can u …
Hey everyone. I am working on adding a 'search' field to a page and I'm using ajax to update the content of the page. When someone types a letter into the search box, the page content updates based on what they type. I have this all working as far as …
Hi all, I am new to asp.net programming and i have to create a calendar control that displays 3 drop down lists for day month and year resply. But i am not able to do it since i dont know client side programming for asp.net any help or suggestion is …
Dear members, I'm facing a problem using ajax..I ve two files language.php and ajax-language.php. In language.php I have a list of languages with checkbox where if i click a checkbox then a male female option will be shown. now the problem is when i'm going to click gender option then …
i have one text box date of birth and submit button ..if i click that submit button the calender should open ...if we selevt any one of the date on that calender the date should display in dataof birth text box.. can anyone tell me the javascript code for this …
Hi, When i click on submit button, javascript is going to check a particular textbox if it is empty. If it is then don't validate the form and make a text message visible from invisible. How can i do it? No CSS please. thanks [code] <form name="form1" method="post" action="a.html" onsubmit="return …
ok, I have a form that submits data to a database. data that is colected from things like dropdown boxes, textboxes, checkboxes etc. I want to put some conditions that prevent the user from submitting something that is missing important data. I found a little tutorial that dose that, but …
I have developed a New Website in HTML. Its a Multi Location or Country Website. For the same I have created the Welcome Page where it will show the list of countries available and I need to place a Remember me Check box so that next time the same computer …
I'm new to ASP.net and struggling with what should be an easy thing. I have three bound thumbnail images in a template field. I need to display a larger version of the image when the user clicks a thumbnail. I'm used to Dreamweaver and this is a 2 second job. …
hi i am new to java script and i am designing my web site but i want to load a new image on a particular place of my web page when a user hover over the home,contact us link so pls tell how can i do this if you have …
How to play multiple wav files with embed element using javascript and/or DHMTL? I have a page with a liink to play and I need to play audio files through javascript and/or DHTML with embed element.
The code is: [CODE=JAVASCRIPT] var func = function(){ this.a(){ //here 'this' refers to 'func' }; var b = function(){ //here 'this' refers to 'window' }; }; [/CODE] This is kind of beginner question, but are there any simple rules that I can follow to determine what context I'm currently in? …
I have a field set as number (num) for validation. The code below will only allow numbers to be accepted in the field. I would like to modify it such that is MUST have at least two numbers and as many characters as the person wants to type. Can it …
Haii. I want to resize an image before uploading it to the server.. Is there any way to do that....
Hi Everyone; I'm working on a project to create an html form for users to input their contact information. I was wondering: is there a way to have a pre formatted text field? For example, to have a form text field that has the brackets for the area code and …
hi I am trying to assign open a page in a new window, the following codes are doing so: [code=html]<a title="" target="_blank" href=" my_page.htm"> <img border="0" src="test.gif"></a>[/code] but there are not any control on the size, scroll bar, etc. of the new window. so how can the parameters be defined …
Hello, I need help with embedding links within a Jquery Accordion. The code I am using is based on [URL="http://jquery.bassistance.de/accordion/demo/"]Jörn Zaefferer's JQuery Accordion plugin[/URL], with some modifications to allow for an embedded link within each accordion div. The accordion effect looks and works just fine when viewed in Safari and …
hi my code is using javascript to dynamically build an html table and fill the table with html buttons. my code: [CODE=javascript]<html> <head> <title>javascript1</title> </head> <script lnaguage="javascript"> function Init() { var table = document.createElement("tbody"); var newrow,newcol,tmp; var array = new Array(16); for (var i=0 ; i<16 ; i++) array[i] = …
Helloo guys, I have a problem. I dont like the way images load partially on slow connections (loading as it displays). I really want to eliminate this problem fro my site. I have seen a number of j/s preloading scripts but i have not seen their effect on my web. …
Hi, I'm trying to create an expandable content box for forum purpose, however the code I've come up doesn't work in IE, but it is valid HTML 4.01 Strict. Anyway, if I'm handling this problem the wrong way, please tell me how I should do it then. I have an …
I have an AJAX script that works fine the first time in IE. For example, if you go through the form and never change your mind, everything updates like normal. However, if you decide that where you checked yes you shold have checked no, the objects do not update. The …
I need some help here please. I have a form that has a javascript slider bar to give one field's percentage. Unfortunately I can't get the value to pass to the hidden input. Here's the code: [code=php]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title>Slider test</title> <script type="text/javascript" …
I would like to do an Audit of who Prints out my Page of the Top Frame. I have the audit code figured out but I would like to know if there's a way to Press the print button and Print the Page. If the page was successful printed I …
haii .. how can i read an image using javascript...
[code]function setgray( id)// for gray color on mouseover { if( typeof(id) == "string" && id.length > 0 ) { var element = document.getElementById(id); // if( element ) document.getElementById(id).style.backgroundColor ="appworkspace"; sub1.style.display="block"; } } function setblack(id ) // for black color on mouseover { if( typeof(id) == "string" && id.length > 0 …
I am not experienced with javascript.I made a from with tabs.When i Click on order tab regorder.jsp in not coming.here is my codes. <div class="TabView" id="TabView" > <div class="Tabs" style="width: 500px;"> <a style="color:blue;"><font face="times">Order Form</font></a> <a style="color:blue;"><font face="times">Accounting</font></a> <a style="color:blue;"><font face="times">Services</font></a> <a style="color:blue;"><font face="times">Members</font></a> </div> <div class="Pages" style="color:blue; width: 900px; …
One page on my website loads on all PCs but it doesn't load on most Macs...except for the newer ones at the Mac store. Is there something obvious wrong with my HTML or javascript below that a Mac wouldn't like? Sorry the code is so long, but I'm not sure …
Hi, I am trying to login to a site which is a pretty standard process when using the ClientForm library. My problem is that when I login I am redirected to a site that says another user is logged in on the account and to click to continue and kick …
I would like to make a photo gallery using javascript. Are there any tutorials out there? This is what I wish for (but anything is better than nothing): - Vertical Bar - Auto Scrolling (mouse movement scrolls quicker on outsides and stops in middle) - When clicking on one of …
I am looking to recreate this photo gallery: [url]http://www.bourakis.com.au/gallery-contemporary.htm[/url] With its sidescrolling and picture enlargement. Thankyou, Regards X
I cant get the List/menu to remember the list choice when i reload the form [ICODE] <script type="text/javascript"> function reload(form) { var val=form.SelectDate.options[form.SelectDate.options.selectedIndex].value ; self.location='Snapshot.php?SelectDate=' + val ; <?php $SelectDate=$_GET['SelectDate']; switch($SelectDate) { case "1" : $Datefrom = date('Y-01-01'); $Dateto = date('Y-12-31'); $aa ="selected"; break; case "2" : $Datefrom = date('Y-01-01'); …
Hi, I want to buy a JavaScript book to learn. What is the best book that should also have information about form validation, HTML DOM etc. with examples. Thanks
Hello , i have an .js file to fetch title and description from another site have utf8 charset and my site also have utf8 charset it fetch english character well but arabic or turki character it appear such that ????????? ???? ???????? .js content [CODE] function request_videoinfo() { if (!fetch_object('videourl').value) …
Can any one help with getting this script to work? Am i Missing something? [url]http://simplythebest.net/scripts/DHTML_scripts/dhtml_script_114a.html[/url] When i try, I get the whole list opened all down left side of page, like normal link type page. any help much appreciated. Thanks, Trip
Hello everyone! I am new to JavaScript and have been using PHP, but needed to use a dynamic form for information about County/State. Here is part of the code (keep in mind I did all 50 states this way-that's well over 3000 counties): [code] <script language="JavaScript" type="text/javascript"> <!-- //first combo …
Hi, How do i check if any of these checkboxs are selected. If nothing is selected then invalidate the form. Javascript thanks [code] <input type="checkbox" name="MYcheckbox[]" value="0"> <input type="checkbox" name="MYcheckbox[]" value="1"> <input type="checkbox" name="MYcheckbox[]" value="2"> <input type="checkbox" name="MYcheckbox[]" value="3"> [/code]
Hi; how can a predefined text be printed in a html page? it means, when the "print this page" button/link is clicked all the elements in the window is printed even the button. now is there any way to print just the texts & etc. without printing the buttons and …
Does anyone have any tutorial's on creating one? I see alot of Horzonital tutorials but no vertical. I wish it to be scrolling(mouse movement) and when clicked loads images and text that correspond. Also if possible to link this to an xml file would be very good :) Thanks Regards, …
hello I am new to this blogging thing and have decided to try it. I am also a Noob to JS and am late with my webpage I am trying to enlarge an inmage in it's own pop up window without useing html as you can see in my gallery …
hi, i want to have a image link static at the top right of the page, even if the user scrolls down the image should move along with the page.... [URL="http://www.dynamicdrive.com/dynamicindex4/logo.htm"]http://www.dynamicdrive.com/dynamicindex4/logo.htm[/URL] check the above link. But this is compatible only in ie and opera .. can anyone tell how to …
Hi. I'm new to this Java Script. Could anyone give me an idea how to start a quotation rotator that someone could embedded into their webpage, a JavaScript script, and that would display a random quotes on their page. The quotes could just be saved as a .txt file.
Hi all, I have a problem with a script that is driving me round the bend and I do hope someone can shed some light on the matter. I am new to Javascript and need a nudge in the right direction. I have three select menus - Country, Region and …
I have a web based form that contains a select box that calls to an AJAX function from the onchange event that produces at least two additional select/textboxes boxes. When I submit the form using Firefox/Mozilla, the additional form values do not post to the next page. Ugh! Works fine …
While making use of a sample for addContent (located at [url]http://www.randomsnippets.com[/url] - specific page [URL="http://www.randomsnippets.com/2008/04/14/how-to-dynamically-add-content-to-a-div-via-javascript/"]here[/URL] ) I stumbled into a problem that I hope someone can help on. This may not be the best/only way to skin this cat, but we have a PHP/MySQL page that has to be modified …
Hi everybody. here i have a problem with hashtable. i am storing hashtable in session scope and i want to validate that hashtable with javascript in next jsp . how suresh kumar
The End.