I am trying to replace a form with another form in web pages (Freefind code for Google code). While I cannot get this to work in the web pages if I create a text file with the code of one form it will be replaced with the other form code.
Can anyone help, please? I'm hoping to do this on 2,500 web pages.
Algy
html code replacement
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
-
- Posts: 2461
- Joined: Sun Mar 02, 2003 9:22 pm
html code replacement
I want to replace code in each page of my web site as follows:
FIND
<FORM ACTION="http://search.freefind.com/find.html"
METHOD="GET" target="_self">
<p>
<font size=1 face="arial,helvetica" ><A HREF="http://search.freefind.com/find.html?id=517987">
<font color="#FFFF00">Search this site</font></a><font color="#FFFF00">
powered by </font> <A HREF="http://www.freefind.com"><font color="#FFFF00">FreeFind</font></A><br>
<INPUT TYPE="HIDDEN" NAME="id" SIZE="-1" VALUE="517987">
<INPUT TYPE="HIDDEN" NAME="pid" SIZE="-1" VALUE="r">
<INPUT TYPE="HIDDEN" NAME="mode" SIZE="-1" VALUE="ALL">
<INPUT type="HIDDEN" name="n" value="0">
<INPUT TYPE="TEXT" NAME="query" SIZE="20">
<INPUT TYPE="SUBMIT" VALUE=" Find! "></font></p>
</FORM>
REPLACE
<FORM method=GET action=http://www.google.com/custom>
<TABLE bgcolor=#FFFFFF cellspacing=0 border=0>
<tr valign=top><td>
<A HREF=http://www.google.com/search>
<IMG SRC=http://www.google.com/logos/Logo_40wht.gif border=0 ALT=Google align=middle></A>
</td>
<td>
<INPUT TYPE=text name=q size=31 maxlength=255 value="">
<INPUT type=submit name=sa VALUE="Google Search">
<INPUT type=hidden name=cof VALUE="S:www.disabilityfilms.co.uk;GL:0;AH:center;AWFID:13ee7c928d291f89;">
<input type=hidden name=domains value="www.disabilityfilms.co.uk"><br><input type=radio name=sitesearch value=""> Search WWW <input type=radio name=sitesearch value="www.disabilityfilms.co.uk" checked> Search www.disabilityfilms.co.uk
</td></tr></TABLE>
</FORM>
FIND
<FORM ACTION="http://search.freefind.com/find.html"
METHOD="GET" target="_self">
<p>
<font size=1 face="arial,helvetica" ><A HREF="http://search.freefind.com/find.html?id=517987">
<font color="#FFFF00">Search this site</font></a><font color="#FFFF00">
powered by </font> <A HREF="http://www.freefind.com"><font color="#FFFF00">FreeFind</font></A><br>
<INPUT TYPE="HIDDEN" NAME="id" SIZE="-1" VALUE="517987">
<INPUT TYPE="HIDDEN" NAME="pid" SIZE="-1" VALUE="r">
<INPUT TYPE="HIDDEN" NAME="mode" SIZE="-1" VALUE="ALL">
<INPUT type="HIDDEN" name="n" value="0">
<INPUT TYPE="TEXT" NAME="query" SIZE="20">
<INPUT TYPE="SUBMIT" VALUE=" Find! "></font></p>
</FORM>
REPLACE
<FORM method=GET action=http://www.google.com/custom>
<TABLE bgcolor=#FFFFFF cellspacing=0 border=0>
<tr valign=top><td>
<A HREF=http://www.google.com/search>
<IMG SRC=http://www.google.com/logos/Logo_40wht.gif border=0 ALT=Google align=middle></A>
</td>
<td>
<INPUT TYPE=text name=q size=31 maxlength=255 value="">
<INPUT type=submit name=sa VALUE="Google Search">
<INPUT type=hidden name=cof VALUE="S:www.disabilityfilms.co.uk;GL:0;AH:center;AWFID:13ee7c928d291f89;">
<input type=hidden name=domains value="www.disabilityfilms.co.uk"><br><input type=radio name=sitesearch value=""> Search WWW <input type=radio name=sitesearch value="www.disabilityfilms.co.uk" checked> Search www.disabilityfilms.co.uk
</td></tr></TABLE>
</FORM>
-
- Posts: 2461
- Joined: Sun Mar 02, 2003 9:22 pm
html code replacement
Hi
I want to replace all the 'found' text with the 'replace' text. Will WildEdit not allow the replacement of such a large chunk of text?
I want to replace all the 'found' text with the 'replace' text. Will WildEdit not allow the replacement of such a large chunk of text?
-
- Posts: 2461
- Joined: Sun Mar 02, 2003 9:22 pm
html code replacement
Thanks for the trouble you're taking. This is what I have been doing which is why it is so frustrating. Luckily I'm only trying this out on a few pages so the results are instant.
-
- Posts: 2461
- Joined: Sun Mar 02, 2003 9:22 pm
html code replacement
Bingo. It did work in the test field and it worked on the files when I ticked the option Linefeed Only. So thankyou very much.
David
David