KeyserSoze
Newbie   Posts: 2 Registered: 3/14/2003 Status: Offline
|
posted on 3/14/2003 at 03:02 PM |
Hi,
I'm trying to use postwrap to modify a html block I created in
PostNuke. The block is a html weather block that works fine and creates a
nice looking weather block. Here is the code:
<!-- begin weather.com logo include code -->
<table cellpadding=0 cellspacing=0><tr><td align="center"
width=120>
<a
href="http://www.weather.com?par=internal&code=659931&site=logo&
;promo=english">
<img border=0
src="http://image.weather.com/pics/oap/slogo.gif"></a>
</td></tr><tr><td align="center" width=120>
<form method="post"
action="http://www.weather.com/cgi-bin/uncgi/zip_city_search.cgi?par=intern
al&code=659931&site=logo&promo=english">
<table cellpadding=0 cellspacing=0><tr><td valign=center
width=120 colspan=2>
<font face="Arial, Helvetica, Chicago, Sans Serif" color="#004371"
size="2">
Enter city or US Zip </font></td></tr><tr>
<td width="40" align="left" valign="bottom">
<input name="destination" type="text" size="8" value="">
</td><td width="20" align="left" valign="bottom">
<input type="image" src="http://image.weather.com/pics/button_go.gif"
width="26" height="23" border="0" alt="go!" value="Go
City"></td></tr>
</table></form>
</td></tr></table>
<!-- end weather.com logo include code-->
Just add the above code into a new Core/html block and your almost
there.
My question is when I enter the ZIP and hit go, can I modify the above
script with Postwrap to have the delivered content show up in the PostNuke
main area/window?
Currently it leaves PN and goes to the weather.com page for the zip
entered.
Thanks,
Keyser
[Edited on 14/3/2003 by KeyserSoze] |
| |
| |
shawn
Administrator   Posts: 4608 Registered: 10/7/2002 Status: Offline
|
posted on 3/15/2003 at 05:06 AM |
I haven't tested but you can try this as your form action:
modules.php?op=modload&name=PostWrap&file=index&page=http://www
.weather.com/cgi-bin/uncgi/zip_city_search.cgi?par=intern
al&code=659931&site=logo&promo=english
On a side note, I don't think you use a get request string in an action
URL, especially a POST action. Try using just:
http://www.weather.com/cgi-bin/uncgi/zip_city_search.cgi
And add the vars as hidden in your form.
HTH
-Shawn |
| |
KeyserSoze
Newbie   Posts: 2 Registered: 3/14/2003 Status: Offline
|
posted on 3/15/2003 at 05:30 AM |
Shawn,
Much closer and thanks for the help! It postwraps into the main
area/window now, but for some reason the ZIPCODE that is entered get's
dropped/lost. You get a default weather.com page as if you just pasted:
http://www.weather.com/cgi-bin/uncgi/zip_city_search.cgi?pa
r=intern%20al&code=659931&site=logo&promo=english
into your browser. Getting very close!
Thanks Again,
Keyser |
| |