No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Web developer
11 Posted Topics
Re: Just use some AJAX library which will make a request and put onto page returned value. Do you need detailed script for that? | |
Re: Do you have a one image to be loaded first of all? Just use that: [code=javascript] <head> <script type="text/javascript"> var img = new Image; img.src = "http://..."; // place an URL here </script> </head> [/code] I specified the HEAD tags for your information, that this script should be performed just … | |
Re: I guess you should use JSON. Perhaps, I misunderstand the question, what is the task? | |
Re: You just need to specify correct way. Keep in mind that when you try to specify such url (without any path) the script will try to find the image in current folder. In other case, if you have <base ... /> tag into your code - browser will try to … | |
Re: what do you mean by disable parent window? do you want to close it? If so, forget about it - JavaScript able to close windows that open by JS only. | |
Re: Your problem is that you are trying to run the "a" function in incorrect way. As I understand, the task is that the calculations should be made after clicking on a button? If so, following is fixed code for you (tested in IE 7 and firefox): [code=javascript] <HTML> <head> <title> … | |
Re: You can get the JS script into some other file, but make this script use some global variable. By this way you can parse needed array in PHP, then put the value on page and if the JS script included will find those, it will run. It's hard code, but … | |
Re: Do you need it in the background? Paste this into the style information: [code=css] background-image: url(http://ecx.images-amazon.com/images/I/41gsdg45CIL._AA262_.jpg); background-repeat: repeat; [/code] By this way the image will fill all the page background. Perhaps MySpace will block this style information, though you should try. | |
Re: You have three bugs man: 1. Fill name of form, set [code]<form name="userdetails" method="post" ... >[/code] 2. Where you verify whether the fields are empty, change 2nd "case" statement to "caddr": [code=javascript] case "caddr": if (element.value.length==0) valid=false; break; [/code] 3. In the beginning of function, where you define the valid … | |
Re: Seems like you need to do this: [code=javascript] var strings = [ 'loading config', 'done', 'loading fav', 'done' ];// define values to print in this array function writeText(index) { var area = document.getElementById('area'); // textarea object where will be print each word step-by-step area.value += strings[index] + '\n'; index++; if … |
The End.