Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Hyperlink within same page, to form and back...
Old 07-22-2006, 08:57 PM Hyperlink within same page, to form and back...
kiwiluck's Avatar
Novice Talker

Posts: 14
Name: Sheena
Location: New Zealand - First place to see a new day.
Trades: 0
Hi all. Please, can someone help me with this problem. I have created a table with multiple questions applied. The same page I have added a form for the answers to be entered. How do I link from question X to answer X and back to next question etc, without having the user scroll back and forth? I look forward to any help available... thank you.
kiwiluck is offline
Reply With Quote
View Public Profile Visit kiwiluck's homepage!
 
 
Register now for full access!
Old 07-22-2006, 09:22 PM Re: Hyperlink within same page, to form and back...
Skilled Talker

Posts: 92
Trades: 0
Why not have the answer right under the question? It makes it a lot easier. The way I'm understanding it you have all the qeustion together, then all the answers together. If that's it, then it's a pain.

But to answer your question, put <a name="sumin">text</a> in there. Change as needed. The address for the link would read <a href="site.com/page.php#sumin> Rest is pretty basic.
__________________

Please login or register to view this content. Registration is FREE
Entertaining at least a few people every Monday night from 4-6 pm EST.
waffles is offline
Reply With Quote
View Public Profile Visit waffles's homepage!
 
Old 07-23-2006, 03:50 AM Re: Hyperlink within same page, to form and back...
kiwiluck's Avatar
Novice Talker

Posts: 14
Name: Sheena
Location: New Zealand - First place to see a new day.
Trades: 0
I gave that a thought but took into account the number of questions, a clue that applied to each question and the amount of fields that applied to the submit form... i e. email addie, user name, title/topic, ID code, weblink name and answer.
But you have given me an idea... if I created pages that had approx... 5 questions and accompanied answer field form... that may do it. Though that would mean user would need to submit form 5 times to complete all questions with accompanied answers etc..... hmmmmm. ... oh well! I'll just reduce the amount of questions and apply submit button after every 3rd question/answer. Thank you for assistance, greatly appreciated.

Last edited by kiwiluck; 07-23-2006 at 08:42 AM..
kiwiluck is offline
Reply With Quote
View Public Profile Visit kiwiluck's homepage!
 
Old 07-23-2006, 04:47 AM Re: Hyperlink within same page, to form and back...
Ultra Talker

Posts: 256
Location: Auckland, New Zealand
Trades: 0
Hey Kiwiluck,

Nice to see other people from NZ.

I'm still trying to figure out what you mean.

Are you saying you have the questions, and then underneath all the questions, you have the fields for them to fill in to answer them, is that what you mean by answers, or is it the solution to the questions?

Anyways, what I do understand is hyperlinking within the same page, more commonly called bookmarking.

Here's just an example:

HTML Code:
<div id="first_question">Here's the first questions? <a href="#first_answer">To answer it click here</a></div>
<div id="second_question">Here's the second question? <a href="#second_answer">To answer it click here</a></div>
... (imagine this fills the page leaving a place to answer at the bottom) ...
<input id="first_answer" name="first_answer" type="text" /> <a href="#second_question">Click here to read second question</a>
...
This is just linking within pages, by using <a href="#???"> where ??? is the id attribute of where you want to go within the page.

If that's not what you mean, then from what I gather, you ask questions, have a field to fill in with answers and also have a place to check solutions.

If that's the case, you can use the above, but I feel there's no point in scrolling, you can actually hide the answers unless they click for solution. e.g.

HTML Code:
<label>Question 1: What is the Capital of New Zealand?</label> <input id="q1" name="q1" type="text" /><br />
<a href="#a1" onclick="javascript:document.getElementById('a1').style.display = (document.getElementbyId('a1').style == 'none') ? 'block' : 'none';">(Click here for solution)</a><br />
<div id="a1" style="display:none;">Wellington</div>
What this does is I'm hiding the solutuion, if they click on the solution link, it wil then appear underneath the question, click again, it'll hide it.

Maybe I've missed what you were wanting, if you can provide examples of what you're doing, then I might be able to help if I have not helped already.

Cheers,

MC
__________________
#------------------------------signature---------------------------------------------------------------------------------#
Quote:
I am well recognised for what I don't do than what I do. Chores are just one of those things.

Last edited by mastercomputers; 07-23-2006 at 04:49 AM..
mastercomputers is offline
Reply With Quote
View Public Profile Visit mastercomputers's homepage!
 
Old 07-23-2006, 08:52 AM Re: Hyperlink within same page, to form and back...
kiwiluck's Avatar
Novice Talker

Posts: 14
Name: Sheena
Location: New Zealand - First place to see a new day.
Trades: 0
oops... sorry for lack of clarification... user has to input the answer also the accompanied fields - title/topic, ID code, weblink name, must apply with each question when user decides what the answer may be...reason for each of those fields - title/topic is that ensures the answer came from that webpage, weblink ensures answer from site and ID code ensures that the answer submitted refers to those questions for that week.... hmmm do hope thats better understood... thank you for welcome!

Last edited by kiwiluck; 07-23-2006 at 09:11 AM..
kiwiluck is offline
Reply With Quote
View Public Profile Visit kiwiluck's homepage!
 
Old 07-23-2006, 09:57 AM Re: Hyperlink within same page, to form and back...
Ultra Talker

Posts: 256
Location: Auckland, New Zealand
Trades: 0
It sounds like you're creating a treasure hunt within your own website, or am I way off.

If you could provide source or the site in question, that would probably help me understand what you want.

What I'm thinking is, you require information that the user either has to put in, or at least should be sent with the answer, if that's the case you'll probably want hidden fields to handle this. Unless you also require the user to insert this information too.

I work better with seeing code.

Cheers,

MC
__________________
#------------------------------signature---------------------------------------------------------------------------------#
Quote:
I am well recognised for what I don't do than what I do. Chores are just one of those things.
mastercomputers is offline
Reply With Quote
View Public Profile Visit mastercomputers's homepage!
 
Old 07-23-2006, 08:49 PM Re: Hyperlink within same page, to form and back...
kiwiluck's Avatar
Novice Talker

Posts: 14
Name: Sheena
Location: New Zealand - First place to see a new day.
Trades: 0
Hi... Thank you for your reply and yes, a treasure hunt..kinda..( interaction from user is more indepth) The concept is similar but the use of other websites we network with enables this to happen. Please, visit kiwiquest.co.nz and go to FAQ section. This will give an indication of what and why the format(creating an appropriate form etc) is so important.

Greatly appreciate your assistance, from 1 kiwi to another.
PS.. would you know how I can stop multiple spam listing, in the guestbook ? I initiated all in admin area and even tho its slowed down the spam entries, I'm still getting them. Drastic scenario is the removal of guestbook, I quess.

Last edited by kiwiluck; 07-23-2006 at 10:18 PM..
kiwiluck is offline
Reply With Quote
View Public Profile Visit kiwiluck's homepage!
 
Old 07-25-2006, 05:13 AM Re: Hyperlink within same page, to form and back...
Ultra Talker

Posts: 256
Location: Auckland, New Zealand
Trades: 0
OK I understand your concept, but how you choose to deal with it is entirely up to you.

It seems that you want to list possible links that have the answer for the questions you'll be asking, and you don't want the links to actually take them away from the form but possibly open up in a new window so that they are still sitting at their form.

There is the HTML anchor method of using the target="_blank" which opens up the link in a new page, this is deprecated though and in XHTML the only way without breaking standards is using javascript to open the new window.

As for the guestbook problem, there's many ways of preventing spam, usually it should be the person who coded the guestbook to work on these means or at least someone who can code to fix the script.

Some things to consider is only members are allowed to post in the guestbook, the time that this person submitted should be disallowed for submitting again, a certain time limit say half a minute to a minute is quite good, but can get users frustrated, though they should not need to post more than one entry so you could make sure that only unique visitors are allowed to post, it's not like a chat system. Links should not be allowed to be posted and the only links that should be allowed are those that are in their profile, though it still not spam proof, it eliminates the guest spammers.

Another technique that I know of which is actually used in email scanning technology is the spam probability, where it scans what is sent and measures the amount of keywords that would be spam, if it's high, then it's most likely spam, I'm sure someone would have done something like this to prevent spamming on their sites.

There's also a spam blacklist you can get hold of which lists common IP addresses of spammers, so you could load that list for blocking known spammers, which can help prevent it too.

Other than this, usually the only thing you can do is monitor the guestbook and just remove spam as soon as you can, could also create a link in your guestbook that allows guests to submit to you if someone has posted spam on it.

Cheers,

MC
__________________
#------------------------------signature---------------------------------------------------------------------------------#
Quote:
I am well recognised for what I don't do than what I do. Chores are just one of those things.
mastercomputers is offline
Reply With Quote
View Public Profile Visit mastercomputers's homepage!
 
Old 07-25-2006, 09:25 AM Re: Hyperlink within same page, to form and back...
kiwiluck's Avatar
Novice Talker

Posts: 14
Name: Sheena
Location: New Zealand - First place to see a new day.
Trades: 0
Thank you! I have iniated removal of guestbook and in the process of looking at other guestbooks which will have features to provide spam deterrant, hopfully. I greatly appreciate your assistance, thank you again, from 1 kiwi to another.
__________________
It is said that 'No problem can be solved by the same consciousness that created it. We need to see the world anew.' Albert Einstein
kiwiluck is offline
Reply With Quote
View Public Profile Visit kiwiluck's homepage!
 
Old 07-25-2006, 11:00 AM Re: Hyperlink within same page, to form and back...
Skilled Talker

Posts: 92
Trades: 0
Quote:
Originally Posted by mastercomputers View Post
There is the HTML anchor method of using the target="_blank" which opens up the link in a new page, this is deprecated though and in XHTML the only way without breaking standards is using javascript to open the new window.

Not true. If you have the doctype set to Transitional you can use it.
__________________

Please login or register to view this content. Registration is FREE
Entertaining at least a few people every Monday night from 4-6 pm EST.
waffles is offline
Reply With Quote
View Public Profile Visit waffles's homepage!
 
Reply     « Reply to Hyperlink within same page, to form and back...
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.56823 seconds with 12 queries