![]() |
|
|
|
||||||||||
![]() |
|
|
Thread Tools |
|
#1
|
||||
|
||||
|
Hey all, this time I will write about a confusion in regards to some particular form on my website. You see, as a result of things mentioned in this post of mine in some other thread here on DP forums, I checked the code of some particular form on my website: http://tadejpersic.50webs.com/index.html (please visit it to actually see what I am talking about)
I am talking about that line/row of buttons, while the problematic one is the first one, which uses an external .js file and which function is to bookmark the current page (the other two buttons with <input type="image" in this line/row are to open a search and contact pages); here below is the original code of the "bookmark page" form: Code:
<form action="#">
<input type="button" value="Bookmark us!" onclick="bookmark('http://javascript.internet.com/','JavaScript Source')">
</form>
Code:
<form action="#" /><input type="image" src="save.png" title="bookmark page" onclick="bookmark('index.html','Tadej Persic\'s website | index')" /> <input type="image" src="search.png" title="search site/web" onclick="window.open('search.html','search','height=560,width=440')" /> <input type="image" src="contact.png" title="contact me" onclick="window.open('contact.html','contact','height=560,width=440')" />
Code:
<form action="#"><input type="image" src="save.png" title="bookmark page" onclick="bookmark('index.html','Tadej Persic\'s website | index')" /></form> ...
Code:
<form action="#" /><input type="image" src="save.png" title="bookmark page" onclick="bookmark('index.html','Tadej Persic\'s website | index')" /> ...
tayiper
__________________
If you want to, please check out my main general personal http://tadejpersic.50webs.com/ website, which is a some sort of a navigational site that basically only describes and lists links to my other websites and blogs. |
|
#2
|
||||
|
||||
|
OK folks, I already got some feedback here in this thread on WebDeveloper forums. Now I only need to know if I need to put <form action="#"> also to the beginning of others <input type="image" (namely for two buttons that open search and contact pages)??!
tayiper
__________________
If you want to, please check out my main general personal http://tadejpersic.50webs.com/ website, which is a some sort of a navigational site that basically only describes and lists links to my other websites and blogs. |
|
#3
|
||||
|
||||
|
why use form elements?
is there a reason you have to use form elements? seems like all you need are anchor wrapped images with onclick. example: |
|
#4
|
||||
|
||||
|
Quote:
tayiper
__________________
If you want to, please check out my main general personal http://tadejpersic.50webs.com/ website, which is a some sort of a navigational site that basically only describes and lists links to my other websites and blogs. |
|
#5
|
||||
|
||||
|
Quote:
tayiper
__________________
If you want to, please check out my main general personal http://tadejpersic.50webs.com/ website, which is a some sort of a navigational site that basically only describes and lists links to my other websites and blogs. |
|
#6
|
||||
|
||||
|
yes it's possible. I think.
I'm not clear on the question. |
|
#7
|
||||
|
||||
|
Well then please take a quick look at the website in question (and page on it, but best would probably be the http://tadejpersic.50webs.com/index.html one) and see the mentioned line/row of buttons for yourself ...
/UPDATE: Sorry niktesla but I totally missed your reply (i.e. I posted my post before checking if there are any new responses to the previous one) tayiper
__________________
If you want to, please check out my main general personal http://tadejpersic.50webs.com/ website, which is a some sort of a navigational site that basically only describes and lists links to my other websites and blogs. Last edited by tayiper; Nov 6th 2007 at 4:36 pm. Reason: addition |
|
#8
|
||||
|
||||
|
It looks proper.
Is everything working the way you want it? |
|
#9
|
||||
|
||||
|
Yes, it indeed looked proper since I haven't actually changed it yet back then (and uploaded to the server), but yeah, luckily I managed to find solutions/fixes to/for most of these things by myself anyway ...
I only have one question left: what's the difference between, or in other words, is it possible to use <a href="" instead of <a href="#" (and similarly for the form <form action=""> instead of <form action="#">), same as I do to open such popup window below under the "Copyright notice" for the disc link where it says: 1. Specifically, I've found out that indeed don't need to use form (nor <input type="... of course) for the other two mentioned elements (i.e. for buttons that open the "search" and "contact" pages, beside the one that bookmarks the page, which does require it) in the line/row of the buttons!! Actually, I am not sure why I did use them in the first place. Here is the old code: Code:
<input type="image" src="search.png" title="search site/web" onclick="window.open('search.html','search','height=560,width=440')" />
<input type="image" src="contact.png" title="contact me" onclick="window.open('contact.html','contact','height=560,width=440')" />
Code:
<a href="#" onclick="window.open('search.html','search','height=560,width=440')"><img class="button" src="search.png" alt="search site/web" title="search site/web" /></a>
<a href="#" onclick="window.open('contact.html','contact','height=560,width=440')"><img class="button" src="contact.png" alt="contact me" title="contact me" /></a>
2. And regarding my other problem (i.e. that there is not possible to align this "bookmark page" button that uses a form with the rest of the buttons), I simply moved this particlar button elsewhere, namely under the title (i.e. <h1> headline) of the respective page. But anyway, if anyone does know for a way to do it as it was before (i.e. all the buttons in the same line/aligned to the same row), I would be glad to hear it. P.S. - And finally, just a notice on one strange thing. You see, it's that the page in question strangely did validate even before (with one form not propery closed, and with two <input type="... without form "around them"); see for instance the W3C Markup Validator results here: [Valid] Markup Validation of http://tadejpersic.50webs.com/sample/index-old.html for the sample file of the: http://tadejpersic.50webs.com/sample/index-old.html page that still had the mentioned things coded in a wrong manner (and also still had an old layout) tayiper
__________________
If you want to, please check out my main general personal http://tadejpersic.50webs.com/ website, which is a some sort of a navigational site that basically only describes and lists links to my other websites and blogs. Last edited by tayiper; Nov 9th 2007 at 5:21 pm. Reason: formatting fixes |
![]() |
| Bookmarks |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Need feedback on strange ppc situation | flybuzz | Keywords | 1 | Apr 29th 2006 2:03 am |
| Just received a strange auto email form G | Ch-Nauman | AdSense | 10 | Dec 6th 2005 11:06 pm |
| Form Post strange behavior | Connect | Programming | 1 | Oct 11th 2005 3:53 am |
| Strange form mails | hasbehas | Site & Server Administration | 4 | Sep 16th 2005 5:09 am |