• Starting today August 7th, 2024, in order to post in the Married Couples, Courting Couples, or Singles forums, you will not be allowed to post if you have your Marital status designated as private. Announcements will be made in the respective forums as well but please note that if yours is currently listed as Private, you will need to submit a ticket in the Support Area to have yours changed.

  • CF has always been a site that welcomes people from different backgrounds and beliefs to participate in discussion and even debate. That is the nature of its ministry. In view of recent events emotions are running very high. We need to remind people of some basic principles in debating on this site. We need to be civil when we express differences in opinion. No personal attacks. Avoid you, your statements. Don't characterize an entire political party with comparisons to Fascism or Communism or other extreme movements that committed atrocities. CF is not the place for broad brush or blanket statements about groups and political parties. Put the broad brushes and blankets away when you come to CF, better yet, put them in the incinerator. Debate had no place for them. We need to remember that people that commit acts of violence represent themselves or a small extreme faction.

Web Design Help

Bodidily

Active Member
Feb 24, 2003
44
0
✟22,654.00
Faith
Christian
There seems to be quite a few experienced web designers/developers knocking about in this forum. So i thought it might be useful (for us all!) to help each other out with HTML, XHTML, XML, CSS, Javascript, PHP, ASP and so on.. queries.

What do ya reckon?

The newbies could ask for quick code snippets and guidence, and the more experienced users could discuss various methods etc.

Just a thought...!
 
Feb 21, 2003
5,058
171
Manchester
Visit site
✟28,683.00
Faith
Seeker
Marital Status
Single
Today at 05:25 PM OLDoMiNiON said this in Post #5 (http://www.christianforums.com/showthread.php?postid=677373#post677373)

Indeed swelch.
- Tutorials are not always the answer.
- Talking to Doreen is never the answer.
- Talking to other programmers/scripters/web developers is usually a good idea!

LMAO!

I found my answers fine in the w3schools tutorial - but granted, sometimes it wont always give the answer (though it should! for it's the w3c!).
 
Upvote 0
Feb 21, 2003
5,058
171
Manchester
Visit site
✟28,683.00
Faith
Seeker
Marital Status
Single
Today at 05:38 PM Bodidily said this in Post #7 (http://www.christianforums.com/showthread.php?postid=677390#post677390)

actually S_Walch.... you asked me a lot of questions cos you thought W3C was wrong!!! but actually you had misunderstood, and therefore invalidated your documents by removing the <body> and <head> tags!!!! :D

That was due to the fact that the link they gave for you to put in your HTML document was this:

<link rel="stylesheet" type="text/css"
href="mystyle2.css" />

But they failed to mention that that is actual, as you already know, the XHTML way to link it, but the HTML version, as you already know is this:

<link rel="stylesheet" type="text/css"
href="mystyle2.css" >

So, it did actually tell me that the Head and Body tags were wrong!
So I removed them and the validator said it was validated HTML :p

Edit: oh and Oldo - if you call me Swelch again - I will be forced to slap you later on in the week :p
 
Upvote 0

* kittie *

Contributor
Oct 19, 2002
6,315
385
✟39,171.00
Faith
Christian
Marital Status
Private
how do you know where you put a prompt in javascript?
do ya put it between the head tags, or in the body tags?

also, how would you do it if you needed three prompts.

for instance, when you open up the page, a prompt is supposed to ask you a certain question.
if you type yes, another prompt is supposed to pop up, followed by another one.

(a no would end the program)

...would you put all three prompts in the same place?

...i'm about the rip my hair out :(
 
Upvote 0

Bodidily

Active Member
Feb 24, 2003
44
0
✟22,654.00
Faith
Christian
depends how you call them.

personally, i would create an iterative function in the <head> of the document which opens the prompts and validates the answer given. You could then call this function with an even handler in the <body> (eg - clicking on a link starts the prompts opening, or just loading the page).

Something like..... (this is not javascript! just psuedo code!)

Code:
function prompts
 (
   while count != 5 do
      open prompt
      store answer in variable
      compare answer with a constant value (yes or no)
         if answer = no then
              break
         else
             count++
         endif
      endwhile
 )
 
Upvote 0