Gossamer Forum
Home : Products : Links 2.0 : Customization :

ADD A SITE IS NOT REFRESHING ???

Quote Reply
ADD A SITE IS NOT REFRESHING ???
I have everything setup and working properly, however when I go to add a site, it submits the new link but the add page does not refresh, it just keeps trying to submit until I click the stop button. When I check the admin section to validate the new link, the newly added link shows up, however when I select to validate it, the page doesn't refresh, but the link is added to the site when I select build. Any ideas as to why the submit pages are not refreshing? Please advise...
Quote Reply
Re: ADD A SITE IS NOT REFRESHING ??? In reply to
Does anyone have any ideas on this? Please help...
Quote Reply
Re: ADD A SITE IS NOT REFRESHING ??? In reply to
Hi,

Can you post the website address of your site, so as we can check it out for ourselves, and see your html code.. it might be something really simple.

Simon
_____________________________________________
Free Stuff resources http://hertsinternet.com
Quote Reply
Re: ADD A SITE IS NOT REFRESHING ??? In reply to
the website address is:
hrrp://www.ultra-web.com/worldtalk

feel free to post...

Note from Bobsie: the URL should be http://www.ultra-web.com/worldtalk to make it easier for people to get there.

[This message has been edited by Bobsie (edited August 24, 1999).]
Quote Reply
Re: ADD A SITE IS NOT REFRESHING ??? In reply to
Hi zzach,

Ive been to your site, and tried to submit a link.. it just waited and waited for ages.. it was trying to load a page, but timed out..

also, go into the Live Radio category, click "Add a link" - it's pointing to the wrong place... should be http://www.ultra-web.com/cgi-bin/worldtalk/add.cgi

I guess your using templates?? (not sure)

Was it the fact that your site isn't submitting that was causing the problem? or was it something else?

Simon
_____________________________________________
Free Stuff resources http://hertsinternet.com
Quote Reply
Re: ADD A SITE IS NOT REFRESHING ??? In reply to
Well the site is submitting ok, I can go into the admin section and it's there, its just that the page is not refreshing, (timed out)

why doesn't the page refresh?

could this be a problem with the sendmail routine or is it a permissions problems?

I checked both of these and everything seems ok.

Any ideas?
Quote Reply
Re: ADD A SITE IS NOT REFRESHING ??? In reply to
Do you recieve the mail, and how fast is your server, or web host?

------------------
-----------------
Lavon Russell
LookHard! Search
www.lh.yi.org
webmaster@lh.yi.org


Quote Reply
Re: ADD A SITE IS NOT REFRESHING ??? In reply to
The web host is fast enough... I have another site using links and its working fine on the same host.

I don't receive any mail regarding links added... I check for them in the admin section.
Quote Reply
Re: ADD A SITE IS NOT REFRESHING ??? In reply to
I am using templates, if that makes a difference...
Quote Reply
Re: ADD A SITE IS NOT REFRESHING ??? In reply to
Are you using style sheets (css), because i've heard and seen many cases where stylesheets stall or even close a browser.

------------------
-----------------
Lavon Russell
LookHard! Search
www.lh.yi.org
webmaster@lh.yi.org


Quote Reply
Re: ADD A SITE IS NOT REFRESHING ??? In reply to
I am using the GE Globe Yahoo templates, I don't think that uses css...
Quote Reply
Re: ADD A SITE IS NOT REFRESHING ??? In reply to
just wondering.. did you mod your add.cgi at all?
Quote Reply
Re: ADD A SITE IS NOT REFRESHING ??? In reply to
No I haven't changed anything in the add.cgi. Does this need to be changed at all?
Quote Reply
Re: ADD A SITE IS NOT REFRESHING ??? In reply to
From what I see, you may have two different problems on your add form page:

Quote:
<form action="http://ultra-web.com/cgi-bin/worldtalk/search.cgi" method="GET">
<table border=0><tr><td>
<font face="Arial" size="2">
<input type="text" size=30 name="query"> <input type=submit value=Search>
</font>
</td></tr></table>
</form>

The <form> </form> tags are outside your table. This is not a good idea. Try putting them inside the table like this:

Quote:
<table border=0><tr><td>
<form action="http://ultra-web.com/cgi-bin/worldtalk/search.cgi" method="GET">
<font face="Arial" size="2">
<input type="text" size=30 name="query"> <input type=submit value=Search>
</font>
</form>
</td></tr></table>

Right below that table, you have this code:

Quote:
<table border=0 cellpadding=0 width="80%">
<form action="http://ultra-web.com/cgi-bin/worldtalk/add.cgi" method="POST">
</table>

You then open up another table with the form's <input> and <select> tags in it, and the ending </form> is outside of that table. This is all wrong. The <form> and </form> and all the other form tags need to be inside the same table. Forms are very fussy about how they are used with tables.

I hope this helps.
Quote Reply
Re: ADD A SITE IS NOT REFRESHING ??? In reply to
Hey Bobsie,

I changed the add.html the way you described but I'm still having the same problems with the page not refreshing after its submitted.

Any other ideas on what this could be?
Please advise...
Quote Reply
Re: ADD A SITE IS NOT REFRESHING ??? In reply to
Does anyone have any other ideas? please help, I need to get this corrected...

thanks
Quote Reply
Re: ADD A SITE IS NOT REFRESHING ??? In reply to
Have you got an Add Success page? I use site_html.pl, so it might be different, but maybe you don't have the template, so it doesn't know what to look for? maybe?

I really don't know, but it's worth a try.

Simon
_____________________________________________
Free Stuff resources http://hertsinternet.com
Quote Reply
Re: ADD A SITE IS NOT REFRESHING ??? In reply to
  
Code:
<table border=0 cellpadding=0 width="80%">
<form action="http://ultra-web.com/cgi-bin/worldtalk/add.cgi" method="POST">
</table>

is wrong. You open a table, start the form, then close the table and open another table lower down the page where the other tags for the form are. That will not work. The <form> and </form> tags should be in the same table as all the other form tags.

I hope this helps.

[This message has been edited by Bobsie (edited August 26, 1999).]
Quote Reply
Re: ADD A SITE IS NOT REFRESHING ??? In reply to
bobsie.. location of form tags don't matter.. although i beleive you are correct with the "get" thing.. i have put a form tag above my body tag and below my /html tag and nothing is wrong.. all it says is any input fields inside those tags are part of the form.. that's all..

the thing i find REAL strange about this is (1) the script loads Smile [the form] (2) it hasn't been modded [so he says] (3) i can't think of anything else.. just STRANGE..

anyways. you say the link does show up.. just no email? well.. let's skip the email.. (could be numerous reasons there) jump directly to the not loading.. i beleive this problem is part of your sub html_add_success in your site_html_templates.pl .. (if you use templates).. maybe you "copied" and "pasted" some code from another sub.. add.cgi is cgi generated.. meaning it doesn't use a $output variable.. instead it just prints whatever comes along.. i'm thinking.. nothing is coming along Smile)

can you put these pieces of code up for view?

sub html_add_success (site_html_templates.pl)
add_success.html

uhh.. that's all for now.

jerry
Quote Reply
Re: ADD A SITE IS NOT REFRESHING ??? In reply to
ok Here's what I have...


sub site_html_add_success {
# --------------------------------------------------------
# This routine determines how the add success page will look like.

&html_print_headers;

print &load_template ('add_success.html', {
%in,
%globals
});
}


-------------------------------------------

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html>
<head><title><%site_title%> : Resource Added</title>
</head>
<body>
<table border=0 width="100%" cellspacing=0 cellpadding=0>
<tr><td valign=middle width="1%">
<a href="<%build_root_url%>"><font face="Arial" size="2"><img src="<%logos%>" alt="<%site_title%>" border=0></font></A>
</td><td valign=middle>
<table border=0 cellspacing=0 cellpadding=0 width="100%"><tr>
<td align=left valign=bottom></td>
<td align=right valign=bottom><font size="2" face="Arial"><A href="<%build_root_url%>">Home</A> -
</font>
<a href="<%db_cgi_url%>/search.cgi"><font face="Arial" size="2">Search Options</font></a>
</td></tr></table>
<hr size=1 noshade>
</td></tr></table>
<table border=0 hspace=4 cellspacing=2 width="100%" cellpadding=3>
<tr><td>
<a href="<%build_root_url%>">
<font face="Arial" size=2><%site_title%></a> : Resource Added</font>
</td></tr>
<tr bgcolor="<%color1%>">
<td width="100%"><font size="2" face="Arial"><b><nobr>Resource Added</nobr></b></font></td>
</tr>
</table>
<p align="center">
<font face="Arial" size="4">You Can Add An Advertisement Here!</font>
</p>
<table border=0 width="100%"><tr>
<td align=center valign=middle bgcolor="<%color5%>" width="33%">
<table bgcolor="<%color4%>" border="0" width="100%"><tr><td align=right width="20%"> <p align="left"> </p></td>
<td align=right width="80%">
<p align="left"><font face="Arial" size="2">|
<a class="menulink" href="<%build_root_url%>">Home</a> |
Add a Site |
<a class="menulink" href="<%db_cgi_url%>/modify.cgi">Modify a Site</a> |
<a class="menulink" href="<%build_root_url%>/New">What's New</a> |
<a class="menulink" href="<%build_root_url%>/Cool">What's Cool</a> |
<a class="menulink" href="<%db_cgi_url%>/jump.cgi?ID=random">Random Link</a> |
<a class="menulink" href="<%db_cgi_url%>/search.cgi">Search</a> | </font></td>
</tr></table>
</td>
</tr></table>
<table cellpadding=1 cellspacing=0 align=right border=0><tr><td>
<table border=0 bgcolor="<%color6%>" cellpadding=1 cellspacing=0 hspace=2 vspace=2 width=100><tr><td>
<table border=0 cellpadding=2 cellspacing=0 width="100%">
</table>
</td></tr></table>
<table border=0 bgcolor="<%color7%>" cellpadding=1 cellspacing=0 hspace=2 vspace=2 width=100><tr><td><table border=0 cellpadding=2 cellspacing=0 width="100%"><tr><td align=center bgcolor="<%color4%>" colspan=2><b><font face=arial size=2>Inside <%site_title%></font></b><p><font face="Arial" size="2"><a href="<%special_url1%>"><%special1%></a><br></font><small><hr size=0 width=85%></small><font face="Arial" size="2"><a href="<%special_url2%>"><%special2%></a><br></font><small><hr size=0 width=85%></small><font face="Arial" size="2"><a href="<%special_url3%>"><%special3%></a><br></font><small><hr size=0 width=85%></small><font face="Arial" size="2"><a href="<%special_url4%>"><%special4%></a></font></td></tr></table></td></tr></tab le></td>
</tr></table>
<form action="<%db_cgi_url%>/search.cgi" method="GET">
<table border=0><tr><td>
<font face="Arial" size="2">
<input type="text" size=30 name="query"> <input type=submit value=Search>
</font>
</td></tr></table>
</form>
<table border=0 cellpadding=0 width="80%">
</table>
<p><font face="Arial" size="2">We have received the following link:</font></p>

<pre><strong> Title: <%Title%>
URL: <%URL%>
Description: <%Description%>
Contact Name: <%Contact Name%>
Contact Email: <%Contact Email%>
Category: <%Category%>
</strong></pre>

<p><font face="Arial" size="2">Thank you! We will send you an email once your link has been validated.</font></p>
<table>
<tr><td>
<table border=0 cellpadding=0 width="100%">
<tr><td valign=top width="100%">
</td>
</tr>
</table>
</td></tr></table>
<hr size=0><font face="Arial" size="2"><b><%event_desc%></b> <a href="<%event_url%>"><%event%></a></font><hr size=0>
<p align="center"><font size="2" face="Arial"><%copyright%></font>
</body>
</html>




Thank You...
Quote Reply
Re: ADD A SITE IS NOT REFRESHING ??? In reply to
widgets,

In my experience, when multiple forms appear on a page, and the page uses tables, then placement of the <form>..</form> tags becomes very important. If those tags were outside of the table (but not within separate tables themselves) that contains the form element tags, there would be no problem per se. MSIE, though, can mess with the form if things are not the way Microsoft thinks they should be (Netscape is far more forgiving).

Then again, that is in my experience and your's may be different (obviously). Smile
Quote Reply
Re: ADD A SITE IS NOT REFRESHING ??? In reply to
bobsie..

if what you are saying is true.. it has nothing to do with this matter.. the fact that when you press that submit button it goes somewhere tells you that nothing is wrong with his html..

he says it actually gets submitted into the validation just it doesn't load the success page.. so OBVIOUSLY the form worked..

just something is wrong with his cgi.. by the looks of that.. i see nothing wrong with those.. but i forgot to ask you something the last time and that is for you add.cgi sub process_form which is the subroutine that contains the code that goes to site_html_add_success...

anyways.. html is very flexible.. and really easy compared to other things in my opinion.. you can't get a program like frontpage to make you custom JAVA or C++ scripts... in my opinion they made html easy cause it needed to be easy.. (if it wasn't then why the heck are thousands of people addicted to the internet.. why the heck am i here?!?!?)

jerry
Quote Reply
Re: ADD A SITE IS NOT REFRESHING ??? In reply to
If you haven't modified add.cgi, maybe you should try just getting the one out of the box and replacing the other one.

------------------
-----------------
Lavon Russell
LookHard! Search
www.lh.yi.org
webmaster@lh.yi.org


Quote Reply
Re: ADD A SITE IS NOT REFRESHING ??? In reply to
Bobsie, I'm trying to change the add.html so the form tags are inside the tables, but where does this change go?

<table border=0 cellpadding=0 width="80%">
<form action="http://ultra-web.com/cgi-bin/worldtalk/add.cgi" method="POST">
</table>


============================================



<html>
<head><title><%site_title%> : Add a Resource</title>
</head>
<body><body background="http://www.ultra-web.com/worldtalk/bg1.gif">
<table border=0 width="100%" cellspacing=0 cellpadding=0>
<tr><td valign=middle width="1%">
<a href="<%build_root_url%>"><font face="Arial" size="2"><img src="<%logos%>" alt="<%site_title%>" border=0></font></A>
</td><td valign=middle>
<table border=0 cellspacing=0 cellpadding=0 width="100%"><tr>
<td align=left valign=bottom></td>
<td align=right valign=bottom><font size="2" face="Arial"><A href="<%build_root_url%>">Home</A> -
</font>
<a href="<%db_cgi_url%>/search.cgi"><font face="Arial" size="2">Search Options</font></a>
</td></tr></table>
<hr size=1 noshade>
</td></tr></table>
<table border=0 hspace=4 cellspacing=2 width="100%" cellpadding=3>
<tr><td>
<a href="<%build_root_url%>">
<font face="Arial" size=2><%site_title%></a> : Add a Resource</font>
</td></tr>
<tr bgcolor="<%color1%>">
<td width="100%"><nobr><b><font face="Arial" size="2">Add a Resource</font></b></nobr></td>
</tr>
</table>
<p align="center">
<font face="Arial" size="4">You Can Add An Advertisement Here!</font>
</p>
<table border=0 width="100%"><tr>
<td align=center valign=middle bgcolor="<%color5%>" width="33%">
<table bgcolor="<%color4%>" border="0" width="100%"><tr><td align=right width="20%"> <p align="left"> </p></td>
<td align=right width="80%">
<p align="left"><font face="Arial" size="2">|
<a class="menulink" href="<%build_root_url%>">Home</a> |
Add a Site |
<a class="menulink" href="<%db_cgi_url%>/modify.cgi">Modify a Site</a> |
<a class="menulink" href="<%build_root_url%>/New">What's New</a> |
<a class="menulink" href="<%build_root_url%>/Cool">What's Cool</a> |
<a class="menulink" href="<%db_cgi_url%>/jump.cgi?ID=random">Random Link</a> |
<a class="menulink" href="<%db_cgi_url%>/search.cgi">Search</a> | </font></td>
</tr></table>
</td>
</tr></table>
<table cellpadding=1 cellspacing=0 align=right border=0><tr><td>
<table border=0 bgcolor="<%color6%>" cellpadding=1 cellspacing=0 hspace=2 vspace=2 width=100><tr><td>
<table border=0 cellpadding=2 cellspacing=0 width="100%">
</table>
</td></tr></table>
<table border=0 bgcolor="<%color7%>" cellpadding=1 cellspacing=0 hspace=2 vspace=2 width=100><tr><td><table border=0 cellpadding=2 cellspacing=0 width="100%"><tr><td align=center bgcolor="<%color4%>" colspan=2><b><font face=arial size=2>Inside <%site_title%></font></b><p><font face="Arial" size="2"><a href="<%special_url1%>"><%special1%></a><br></font><small><hr size=0 width=85%></small><font face="Arial" size="2"><a href="<%special_url2%>"><%special2%></a><br></font><small><hr size=0 width=85%></small><font face="Arial" size="2"><a href="<%special_url3%>"><%special3%></a><br></font><small><hr size=0 width=85%></small><font face="Arial" size="2"><a href="<%special_url4%>"><%special4%></a></font></td></tr></table></td></tr></tab le></td>
</tr></table>
<table border=0><tr><td>
<form action="<%db_cgi_url%>/search.cgi" method="GET">
<font face="Arial" size="2">
<input type="text" size=30 name="query"> <input type=submit value=Search>
</font>
</form>
</td></tr></table>
<table border=0 cellpadding=0 width="80%">
<form action="<%db_cgi_url%>/add.cgi" method="POST">
</table>
<p><font face="Arial" size="2">Please fill out the form completely, and we'll add your resource as soon as possible.</font></p>
<div class="margin">
<table border ="0" cellspacing="0" cellpadding="0">
<tr><td align="right" valign="top"><font face="Arial" size="2">Title:</font></td>
<td><font face="Arial" size="2"><input name="Title" size="50"></font></td></tr>
<tr><td align="right" valign="top"><font face="Arial" size="2">URL:</font></td>
<td><font face="Arial" size="2"><input name="URL" size="50"></font></td></tr>
<tr><td align="right" valign="top"><font face="Arial" size="2">Category:</font></td>
<td><font face="Arial" size="2"><%Category%></font></td></tr>
<tr><td align="right" valign="top"><font face="Arial" size="2">Description:</font></td>
<td><font face="Arial" size="2"><textarea wrap="virtual" name="Description" value="" rows="3" cols="42"></textarea></font></td></tr>
<tr><td align="right" valign="top"><font face="Arial" size="2">Contact Name:</font></td>
<td><font face="Arial" size="2"><input name="Contact Name" value="" size="40"></font></td></tr>
<tr><td align="right" valign="top"><font face="Arial" size="2">Contact Email:</font></td>
<td><font face="Arial" size="2"><input name="Contact Email" value="" size="40"></font></td></tr>
<tr><td></td><td><font face="Arial" size="2"><input type="SUBMIT" value="Add Resource"></font></td></tr>
</table>
</div>
</form>
<table>
<tr><td>
<table border=0 cellpadding=0 width="100%">
<tr><td valign=top width="100%">
</td>
</tr>
</table>
</td></tr></table>
<hr size=0><font face="Arial" size="2"><b><%event_desc%></b> <a href="<%event_url%>"><%event%></a></font><hr size=0>
<p align="center"><font size="2" face="Arial"><%copyright%></font>
</body>
</html>

============================================

Also I downloaded a new add.cgi but it still does the same thing... I've noticed that if I wait awhile about 2 minutes, the form will eventually refresh to the thank you screen... weird uh?
Quote Reply
Re: ADD A SITE IS NOT REFRESHING ??? In reply to
  
Quote:
I've noticed that if I wait awhile about 2 minutes, the form will eventually refresh to the thank you screen... weird uh?

Not so weird. That is telling you that your add form is working. What isn't working is your email probably, and that is why it takes so long to get the success screen.

How is your email configured in links.cfg?

[This message has been edited by Bobsie (edited August 30, 1999).]