17,114 Topics

Member Avatar for
Member Avatar for cguan_77

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...

Member Avatar for koolhq
0
247
Member Avatar for sunilsinha

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 …

Member Avatar for serkan sendur
0
105
Member Avatar for aashishn86

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 …

Member Avatar for aashishn86
0
147
Member Avatar for veledrom

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

Member Avatar for veledrom
0
116
Member Avatar for evilhackerz

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> …

Member Avatar for peter_budo
0
54
Member Avatar for RaniThomas

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.

Member Avatar for RaniThomas
0
118
Member Avatar for ssreevidya.m

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.

Member Avatar for serkan sendur
0
115
Member Avatar for tymk

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 …

Member Avatar for essential
0
85
Member Avatar for Reggie32

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 …

Member Avatar for Reggie32
0
95
Member Avatar for creativeideas

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 …

Member Avatar for essential
0
84
Member Avatar for billymcguffin

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 …

Member Avatar for essential
0
104
Member Avatar for BillyMako

[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 …

Member Avatar for itsjareds
0
507
Member Avatar for Potato.Head

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 …

Member Avatar for almostbob
0
90
Member Avatar for Fiume

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(). …

Member Avatar for Fiume
0
78
Member Avatar for rowads80

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: …

Member Avatar for JugglerDrummer
0
167
Member Avatar for danielgrad

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 …

Member Avatar for danielgrad
0
76
Member Avatar for aashishn86

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....

Member Avatar for mail2saion
0
325
Member Avatar for Lib Auth

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

Member Avatar for Airshow
0
102
Member Avatar for billymcguffin

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 …

Member Avatar for essential
0
535
Member Avatar for billymcguffin

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 = …

Member Avatar for billymcguffin
0
89
Member Avatar for T.Cavanagh

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 …

Member Avatar for essential
0
1K
Member Avatar for new2JS

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 …

Member Avatar for peter_budo
0
96
Member Avatar for billymcguffin

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

Member Avatar for Airshow
0
564
Member Avatar for Ries

[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 …

Member Avatar for Ries
0
295
Member Avatar for Sirabbub

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 …

0
64
Member Avatar for Archo

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 …

Member Avatar for Archo
0
305
Member Avatar for rajeesh_rsn

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=''; …

Member Avatar for mail2saion
0
105
Member Avatar for stix

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 …

Member Avatar for itsjareds
0
84
Member Avatar for cguan_77

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>" + …

Member Avatar for essential
0
131
Member Avatar for _Nestor

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]

Member Avatar for itsjareds
0
202
Member Avatar for jools68

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. …

Member Avatar for itsjareds
0
117
Member Avatar for Poojasrivastava

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. …

0
114
Member Avatar for suresure88

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 …

Member Avatar for suresure88
0
164
Member Avatar for sephoria

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 …

0
62
Member Avatar for millsy007

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' …

Member Avatar for millsy007
0
193
Member Avatar for billymcguffin

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 …

Member Avatar for billymcguffin
0
3K
Member Avatar for learnerasp

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 …

Member Avatar for billymcguffin
0
119
Member Avatar for learnerasp

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 …

Member Avatar for essential
0
162
Member Avatar for aashishn86

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 …

Member Avatar for aashishn86
0
115
Member Avatar for osirion666

[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 …

Member Avatar for osirion666
0
1K
Member Avatar for lifeworks

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 …

Member Avatar for billymcguffin
0
123
Member Avatar for rbadtke

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 …

Member Avatar for essential
0
68
Member Avatar for coolmind259

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.

Member Avatar for mail2saion
0
104
Member Avatar for rameshreddy

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) { …

0
55
Member Avatar for av11453

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 …

Member Avatar for essential
0
100
Member Avatar for sawmaster

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 …

Member Avatar for sawmaster
0
831
Member Avatar for tanha

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 …

Member Avatar for madristaa
0
527
Member Avatar for sunilsinha

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

Member Avatar for Airshow
0
115
Member Avatar for hannahwill

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 …

Member Avatar for ShawnCplus
0
82
Member Avatar for dpatz

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" …

Member Avatar for dpatz
0
255

The End.