Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hi All, Yet another problem I'm

Status
Not open for further replies.

ChrisMacPherson

Programmer
Jul 3, 2000
157
GB
Hi All,

Yet another problem I'm having with netscape!

I'm trying to access a form from a menu which is inside a <div>. I am trying to change the value of the action, then submit the form. I am doing this from a javascript URL like so :

<a href=&quot;javascript:top.document.clientdetail.action='viewClientConDetail.php'; top.document.clientdetail.submit();&quot;>Contact Details</a>

clientdetail is the form name. (should I use ID?)

It works in both IE and Netscape6, but not in good old 4.7(havent you heard that before somwhere!!) Can anybody see the flaw in my code, as I have tried everything,
parent.document, document.forms['clientdetail'], etc.etc.etc.

Thanks for any help. Chris MacPherson
thedamager@hotmail.com
Bring on the new Browza's!!
 
When I try this with the code in the href - I get the new value written to the page, which is no good, so I put it onClick instead, try that.;)

And yes Netscape is very bad, there are no two ways about that.
b2 - benbiddington@surf4nix.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top