Current location: Hot Scripts Forums » General Web Coding » JavaScript » jascript that allows visitor to enter page id inform and go hidden url


jascript that allows visitor to enter page id inform and go hidden url

Reply
  #1 (permalink)  
Old 03-23-04, 12:54 PM
pccreative pccreative is offline
New Member
 
Join Date: Mar 2004
Location: St. Louis
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Exclamation jascript that allows visitor to enter page id inform and go hidden url

okay, I got a problem

Website in Question: http://alliancefinancialgroupstl.com

Task: Site owner has relationship with another site (http://www.path2plenty.com) where she can sign people up for their Path2Plenty affiliate program. She has a member code, which actually lead to specific member page at the path2plenty site where you can sign up for the affiliate program. She wants a form for two reasons (1)you only have to remember one url (2)you can use her site as a jumpoff point to enter other path2plenty affiliate sites by entering the last 4-6 digits of the url address.

When you enter this site's member number (6057AL) and it should take you to their path2plenty page.

Problem is, it works fine in Opera 7+, but stalls in Internet Explorer. This is a serious problem.

I need help. Maybe I can help someone else solve a problem in exchange for tackling this one. Feel free to "view source" to see the script in question as it sits on my site.
Reply With Quote
  #2 (permalink)  
Old 03-24-04, 03:29 AM
TwoD TwoD is offline
Community VIP
 
Join Date: Sep 2003
Location: 404
Posts: 1,813
Thanks: 0
Thanked 0 Times in 0 Posts
Here's what I found:

The form uses a form validator created by FrontPage and tries to send the page to a .cgi script and passes the form-field values in the url when submit is pressed. Since the FrontPage stuff isn't needed (the textfield is checked in website()), I suggest you delete it.
Remove the onsubmit and language stuff from the form-tag. Make the button a type="button" instead of submit to be really sure that no field-values will be passed in the url.

like this:

<FORM name="FrontPage_Form1">
<p align="center" style="margin-top: 0; margin-bottom: 0" left="left">
<INPUT type="hidden" NAME="the_url1" VALUE="http://www.path2plenty.com/cgi-bin/info.cgi/">
<INPUT type="text" name="the_url2" size="6" maxlength="6">
&nbsp;&nbsp;
<INPUT name="Submit" type="button" onClick=website() value="Go!">

this should work in any browser. I'm surprised that it worked in Opera, but maybe they ignore FrontPage extensions..
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump


All times are GMT -5. The time now is 02:14 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.