17,114 Topics
![]() | |
hi, how to use the window onload event on javascript.. for example i got a function and i want that function to execute during page load. any ideas is greatly appreciated... thanks... | |
I have an iframe which is by default hidden. It becomes visible on a double click event and should be in editable mode. I set iframeObject.contentDocument.designMode='on' on body load event. But when i fire a double click event, iframe becomes visible but not in editable mode. How to achieve this … | |
i need to write a function to remove consecutive slashses from a string i wrote this [code] for( i=0; i!=b; ) { var slashone = strname.indexOf('/',i+1) i=slashone var slashtwo = strname.indexOf('/',i+1) i=slashtwo //alert("index of slash one" + slashone) //alert("index of slash two" + slashtwo) if( slashone == (slashtwo-1)) { alert("Remove … | |
Hi, I need an effect like in this linkhttp://markgrantcables.co.uk/shop/ I simply put a "?" mark next to a textarea. When mouse is over "?" then a little explanation box will appear. Thanks | |
plz tell me that how to open this ads function using a button in new window. Code: [code=JavaScript]function ads() { <script type="text/javascript"><!-- google_ad_client = "pub-6044026340890176"; /* 468x60, created 3/17/08 */ google_ad_slot = "3105157606"; google_ad_width = 468; google_ad_height = 60; //--> </script> <script type="text/javascript" src="(URL address blocked: See forum rules)"> </script> … | |
Hi, Can anyone suggest me the best browser (IE or Firefox) for working of JavaScript. If IE, vat version..?? And why..??? Im using Mozilla Firefox, But people are telling me that IE is best... Please suggest me. | |
Hi, I have a dropdown list in the headerrow of a gridview. When submiting data to the database, how can i check the value is selected or not from the dropdown list using javascript. Thanks in advance. | |
The position and visibility of the image element is dynamically updated. The following code displays the correct dimensions in Firefox 3.0.10 and Chrome 1.0.154.65, but displays "0,0" in IE8. [code] var _img = document.getElementById("imageElementId"); alert(_img.width + ", " + _img.height); [/code] Any ideas on how to get it to work … | |
I've worked up a site for a friend who wanted a horizontal scrolling site -I've managed to do it ([url]www.testdrive-site.co.uk/site2[/url]) for Firefox etc. but the links didn't slide the page across to the relevant 'page' in iE. I checked the site and now it validates but doesn't even load in … | |
I m using a script for randomly calling a text on my page using [code]Math.floor(Math.random()*(quotes.length))[/code] this code running perfectly when i click on my page or refresh it... is that possible to autorate the quotes after sometime u can see the live example [url]playbackgroup.com[/url] right panel in top box where … | |
hello, i was wondering if there is a way to automatically crop a picture, or only show a specific part of it with javascript. i dont know if this is important or not, but i want the cropped picture to fill the div its in, no matter what size the … | |
[IMG]http://i36.tinypic.com/11rus5g.jpg[/IMG] So far i have a database with all data in it. I have the 1st text field where the user enters their postcode and then the page reloads populating the drop down menu with the corresponding suburbs. Next what i want is after a suburb has been selected in … | |
Hi to all, I'm developing a web page and the requirements is that the page must include an iframe and the user can insert an URL address and the page will be displayed in the iframe(I write awhile a question displaying contents ion iframe and I receive an answer the … | |
I've been trying to brush up my js skills, and have been reading some scripts for personal edification. A notation I keep seeing, and do not understand, is the following: emptyFunction: function() { } ...where a function will be declared with the name, followed by a colon, followed by function(). … | |
Hi, Using Dreamweaver, I'm trying to implement code on my page so that the images refresh upon loading, and each image links to a different page.... I'm also trying to have it so images will rotate on the page and link to other pages within my site. please help! email: … | |
Hello, I have a site hosted on a free hosting service and I'm using freedns.afraid.org to direct my domain there. The URL forwarding is done by ways of a frameset with my site in a frame. On my site is a javascript that manipulates the location string for some AJAX … | |
Hi!! i need to write a function that counts the number of names seperated by a '/' for example if i write aashish/ankush in a field the number returned should be 2 thanks.... | |
Hello there, I have this script which I have edited and altered, to create a demo of what I want (the original coming from Dynamic Drive). Is there a way to achieve this in CSS? Thank you, Regards, Grant | |
Hello, I was wondering if you can extract an item from a rss file and display it in a div. like extract the title and put it in an h3 tag, extract the description and put it in a paragraph, and have the link below, and all automatic, so you … | |
sorry about the bad title, but this is a code that takes a string, defined in an array, and converts it to the next string in the array by replacing letters one at a time. it works fine, but i want some modifications. code: [CODE]function scroll(message_loop) { var messages = … | |
Hi i am new to AJAX but i havejust managed to write one of my first basic scripts. What it does is takes all the news items out of a database and lists them as links. When you click a link i want all of the data that is linked … | |
Hi I want to capture a Windows OS event. In Java Plugin Checker, when the user is prompted to install a JRE there is a File Download window pops up with Run,Save and Cancel buttons. I want to get the control back when the user clicks on Run/Save/Cancel. I need … | |
hello, the title basically sums it up. how can i see if a word is in a url and then if it is, do something with it. thanks for any help billy | |
[code]<script type="text/javascript"> function counter() { var first; var number; if (first == ""){ var first = 42; var number = 0; }else{ var number = number++; } var full = 7; var length = strlen(number); var full = full - length; for (i=0;i<full;i++){ document.getElementById('counter').innerHTML = document.write('<img src="images/0.gif" border="0">'); } for … | |
I've got a problem with a web application that runs slow when called by JQuery? Below I will be summarising the structure of the application, but just to say that it is hanging inconsistently and unpredictably as if the (dedicated) webserver runs out of memory or too many database connections … | |
Hello! I am a n00b to both PHP and Javascript, so please bear with me... I have a form and I use Javascript to validate the form. If there is an error on the for it displays the appropriate alert. The problem I have is when I click "OK" on … | |
Hai all , I had a from in a php page with 3 fields. ie username, name and email. I have to do a form validation using javascript. My code is like this. [ICODE]<script language="javascript"> function Validate_form(){ if(document.getElementById('user_id').value.length<=5){ document.getElementById('user').className="error_msg2"; document.getElementById('user').innerHTML='Username must have minimum 6 chars.'; return false; } else{ document.getElementById('user').innerHTML=''; … | |
hello, i never used ajax and now i need it :-P i need monitor iframe on page. user open my page with some information and iframe. in this iframe user must register on other pages and i need to know iframe url to redirect iframe to other pages after complete … | |
hi, can anyone help to explain this code.. or is their an equivalent vbscript for this code? please help...don't know about javascript.. thanks in advance.. [code] if(arguments.length == 3){ var result = "<" + arguments[1] + ">"; for (var i = 0; i < arguments[2].length; i++){ result += "<li>" + … | |
I was wondering how to change a url in javascript for example if i wrote an address [url]www.google.ei[/url] How would i get the script to change the address to [url]www.google.ie[/url] | |
I'm working on a page that needs to do some calculations based on values that the user inputs via sliders. I can get the values selected to display in a text box below the slider, but I also need to store the value as a variable for use in calculations. … | |
hi , actually i am developing a web application in asp.net using c#. i have come across a requirement to read a excel file without going to the server . i need to use javascript for the same. so i need help on javascript function to read from excel file. … | |
Hi, I'm currently doing on a project, frankly speaking i'm new in javascript only know the basics. I'm not even sure whether this thread is suppose to be here or under html.. I'm suppose to create some codes that enable a html page to load to the next html page … | |
Hi I know how to use html and I am learning css by myself (with the help of books and internet) but I thoght of doing a course on javascript cos it looks way too complicated and it always helps having a tutor cos you can ask questions etc What … | |
I have a product image that is 4 images 'sewn together' [url]http://www.flickr.com/photos/28033561@N03/3504394261/[/url] I am going to set a div called ProductImage and then have the background of the div set to this image, but with only the top image showing. I then want to have a button for 'more views' … | |
ok. i am having trouble with this code: [code] <head> <script type="text/javascript"> <!-- function switchPic(picID) { document.getElementById(picID).style.display="none"; } //--> </script> </head> <body> <a href="" onclick="switchPic(_1)">Click Here</a> </body> [/code] when you click the link, it gets the id from the info provided in the link and makes it disappear (thats how … | |
Hi There, I need help badly on the div tags. I dont have much knowledge on div tags I have a div tag in my code and it should be show when there is an inactivity. Its working fine, until today I found a bug. When I scroll my browser … | |
Hi All, I need help on this. I am a new bie in javascript When javascript alert is popped up, it doesnot allow us to focus on the window till we click on the alert ok button. Can we do the same when I popup div alert. I have put … | |
hii!!! i have two forms, the edit and the add transaction form.. In the add transaction form, the user has to attatch a file for which i use <input type=file id="path" > and the path is saved in the database.. now when the user edits the form, i cannot get … | |
[code=javascript] function read() { var numbers = new Array(); for (i = 0; i < field.length; i++) numbers[i] = document.test.checkboxName.value; var counter=0; //Let's print out the elements of the array. for (counter=0; counter<numbers.length; counter++) document.write(numbers[counter] + "<br>"); } [/code] I want to read the values of the checkboxs and store … | |
Hi I have an iframe on a page, i am using a javascript to resize the iframe so that there isnt a scroll bar. However, when I print the page, depending on the browser, different things happen. So far, Google Chrome is the only one that pulls it off... FireFox … | |
Hi all I made a email form in html coding. I want to add a feature And cant figure out how it do it. I want a field that when the click onit it will make a popup window for the imput of the field. Example Address ______________ when they … | |
Hi there, I need to show and hide functionality through javascript , how can I achieve this. If I click on a dash link then show particular section and if I click again then it should be hide. Is there is any script I can use? Please reply. | |
hi, my project is based on ajax. my problem is project is not running properly, plz help me my code is [code=javascript]req=false; function setreq(){ try { // Firefox, Opera 8.0+, Safari return new XMLHttpRequest(); } catch (e) { // Internet Explorer try { return new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { … | |
Hi, I need to search for strings and retrieve it and display. Using Regular Expression i tried but my need is that : For example if i need to search for country names when the use enters only first 2 or 3 letters it should return back the names starting … | |
Hey. For some odd reason, event.clientX and event.clientY don't work in safari in mac os x leopard. They used to, but it appears it cannot find the object "event". URL: [url]http://71.193.112.221:8888/tools/jos2/[/url] In the file windowsxp.js (don't get confused with windowsxp.jos), the movecursor() function moves the cursor div. It works, but … | |
Hi. I want to add new ROW, which includes three TD as follow: 1. <td> caption </td> 2. <td> textfield </td> 3. <td> button </td> that should be mentioned that each textfield should have different id, and name started from one and go on. I figured out something, but two … | |
Hi, I need to indent text of textarea control with either bullets or numbers How can we achieve this in javascript. Any help will be greatly appreciated. Thanks in advance | |
hello Question: i get "Access denied" error.Can anyone convert the code below in JSON i need to access data from some other domain. OR any other fully explained efficient method to access cross domains plz. ---------js file-------------- [code=JavaScript]window.onload=makeRequest; function makeRequest() { var http_request={}; if (window.XMLHttpRequest) { // Mozilla, Safari,... http_request … | |
Hi, I have an input text box that I want to change the type from text to password and I wrote code that works in Firefox but not in IE any suggestions? Here is the code(cut down a little for easier reading): [CODE] <form class="formstyle"> [INDENT]<input name="password" type="text" value="Enter Password" … |
The End.