Please login or register.

Login with username, password and session length
Advanced search  

News:

You need/want an older version of sNews ? Download an older/unsupported version here.

Author Topic: Standalone contactform ?  (Read 6255 times)

Patric Ahlqvist

  • Nobodys perfect, but Im pretty effing close
  • ULTIMATE member
  • ******
  • Karma: 65
  • Posts: 4867
  • I'm a self-made man and worships my creator.
    • p-ahlqvist.com
Standalone contactform ?
« on: June 05, 2006, 01:43:14 PM »

Hej, L-man Would it be difficult to get the contact bit to work as a function like the others right, left and center ??

Patric.
Logged
"It's only dead fish that goes with the flow... "
Updated

Luka

  • Administrator
  • ULTIMATE member
  • ******
  • Karma: 36
  • Posts: 1716
    • http://www.snewscms.com
Standalone contactform ?
« Reply #1 on: June 05, 2006, 01:46:29 PM »

Yeah that's a good idea!

But when I think about it only one solution come to my mind:

[contact] tag which makes contact form appear within a page.
Logged

Patric Ahlqvist

  • Nobodys perfect, but Im pretty effing close
  • ULTIMATE member
  • ******
  • Karma: 65
  • Posts: 4867
  • I'm a self-made man and worships my creator.
    • p-ahlqvist.com
Standalone contactform ?
« Reply #2 on: June 05, 2006, 02:18:32 PM »

Ok, that don't mean anything to me, whohaaa... What I thought of having was on every contactlink on a page have that "popups" like the thingy I have on my first page, so that the form would appear floating "above" the site... Know what I mean ??

*a few minutes later*

I mean like this: http://p-ahlqvist.com/mailformpopup.php

Patric.
Logged
"It's only dead fish that goes with the flow... "
Updated

brauck

  • Hero Member
  • *****
  • Karma: 18
  • Posts: 556
    • http://www.hbw-webdesign.nl/
Standalone contactform ?
« Reply #3 on: June 05, 2006, 02:51:20 PM »

That looks very nice Patric. Can you share that with us?
Logged
Confidence is reduced complexity.
brauck.nl for free css templates

Patric Ahlqvist

  • Nobodys perfect, but Im pretty effing close
  • ULTIMATE member
  • ******
  • Karma: 65
  • Posts: 4867
  • I'm a self-made man and worships my creator.
    • p-ahlqvist.com
Standalone contactform ?
« Reply #4 on: June 05, 2006, 03:08:07 PM »

Hehe I could but there isn't any functionality to it just yet... The form itself is not working as I mearly mad an example to show Luka what Iimeant by "standalone contactform" in snews...

But what I've done is simply what I've done with the welcome text on my site:

In head tag, the js:
Code: [Select]
<script type="text/javascript">
 // <![CDATA[
 function toggleBox(szDivID, iState) // 1 visible, 0 hidden
{
    if(document.layers)   //NN4+
    {
       document.layers[szDivID].visibility = iState ? "show" : "hide";
    }
    else if(document.getElementById)  //gecko(NN6) + IE 5+
    {
        var obj = document.getElementById(szDivID);
        obj.style.visibility = iState ? "visible" : "hidden";
    }
    else if(document.all) // IE 4
    {
        document.all[szDivID].style.visibility = iState ? "visible" : "hidden";
    }
}
 // ]]>
</script>
Could rename that "toggleBox" something else if you use this on more functions...And change the appropriate things in the
underlying code aswell...:

Link to form:
Code: [Select]
<a href="#" onclick="toggleBox('popup',1); return false;">CONTACT ME</a>The form with closing link:
Code: [Select]
<div id="popup" class="mail">

<form>
Here's where I thought the standalone contactform function would be instead of these form tags...
</form>

<a href="#" onclick="toggleBox('popup',0); return false;">Close contact form without sending Email</a>
</div>
Patric.
« Last Edit: September 09, 2007, 09:29:10 AM by philmoz »
Logged
"It's only dead fish that goes with the flow... "
Updated

brauck

  • Hero Member
  • *****
  • Karma: 18
  • Posts: 556
    • http://www.hbw-webdesign.nl/
Standalone contactform ?
« Reply #5 on: June 05, 2006, 04:36:30 PM »

Thanks Patric, will fiddle around a bit with it. Could be usefull
Logged
Confidence is reduced complexity.
brauck.nl for free css templates

Patric Ahlqvist

  • Nobodys perfect, but Im pretty effing close
  • ULTIMATE member
  • ******
  • Karma: 65
  • Posts: 4867
  • I'm a self-made man and worships my creator.
    • p-ahlqvist.com
Standalone contactform ?
« Reply #6 on: June 05, 2006, 05:17:45 PM »

When starting to see opportunities with this you might want to consider an external JS file for each function... I know I will go there, but just not tonight ;).

Patric.
Logged
"It's only dead fish that goes with the flow... "
Updated