Shawn Olson Guestbook
William Moraes said: [ Regarding Using an Object Id with JavaScript ]
hey man, fix up your button!
on the button event you should put this:
changeImgSize(document.exampleForm.Example.value,document.exampleForm.width.value,document.exampleForm.height.value); return false
you forgot the "return false". without this the page will send all data from the form to the action, and reload the page as well.
:) (sorry for my bad english)[ See Responses ]
Shawn Olson said: [ See Comment Stimulus ]
William, thanks for the post. The function was something I put up years ago to demonstrate how to use an object's ID to manipulate it. The article really did not get to the point... but it did provide that function.
I expect to write something more useful in time. As for your comment about the button... the function being called was not intended to return anything. I assume you were having a problem with the function because you were using Firefox or another browser beyond IE. In IE, a button does not automatically submit a form... since the demonstration form was not originally intended to submit the form to a server script... and I originally did not test it in Firefox... I did not see the issue you brought to my attention.
I have updated the demo form to work properly in Firefox. Thanks for pointing out the issue.
Please note that not all of the ideas, opinions and statements made in this guestbook necessarily represent the views and opinions of Shawn Olson.
This guestook is kept spam-free by the protection of the GoodGuest System.
Featured Articles by Shawn Olson
November 18, 2009 Newsletter
11.18.09 November 18, 2009 Newsletter with a discussion on social networking sites like Facebook. Links to latest projects.
New CS:Source Map de_tension
11.17.09 My return to mapping is official with the remake of de_tension for CS:Source. This new map includes a novel mapping technique developed by Andrew Penry and myself called Dynamic Mapping.
Well Shark
11.03.09 A cartoon about the infamous well shark--a creature that is not as benign as is commonly thought.
Dragon Maze
10.04.09 A maze challenge featuring dragon art. Try to sneak past the dragon and escape the maze.
My Images by Shawn Olson
Wide view of de_tension from above. In this view, both the stone and the wooden bridge are visible.New CS:Source Map de_tension Posted on 11.17.09







