You are here: Re: Help - A HREF="#" - Difference between NS/IE and Mozilloids « HTML « IT news, forums, messages
Re: Help - A HREF="#" - Difference between NS/IE and Mozilloids

Posted by Cranio on 06/18/05 12:32

David Dorward wrote:
> Cranio wrote:
>
>
>>I have an ASP-generated code that spits out a form.
>>
>>This form contains links like:
>>
>><A HREF="#"
> Don't do that.

Had some suspects I shouldn't :)

> '<a href="something.html" onclick="somefunction();
> return false"> where something.html is meaningful
> to the non-javascript capable'
>>onClick=".......;submit()"
> So it does something, then it calls a function called submit(). It obviously
> isn't calling the submit method of the form, and there isn't such an
> internal function, so it must be defined elsewhere in your code. (And as I
> can't see it ...)

Wait.. maybe the submit() button is "loose", if you forgive my bad
English and my bad explanations :)

But I've tried to force the submit() also as a method of the form with

document.getElementById("formname").submit() or
document.getElementById("submitbuttoname").submit()...

still nothing

>>My goal is to force a Form submit, thereby passing
>>also the QueryString values.
> Use a submit button then. You can always style it as a link if you really
> want to, but things that look like links say "visit a page" to the user,
> things that look like submit buttons say "send this form data somewhere",
> so it probably isn't a very good idea.

It's better to explain...

I have this database table admin page... every row of the table has a
clickable link to select it, passing the primary key ID via querystring
to the SAME page... If this ID is not undefined, the page will also
display a form to change the field values and update the DBso the
HREF="#" will REFRESH the page in IE and NS,
passing this data.

Is there a more proper method to accomplish this?

>>In IE and Netscape it works fine..
> Netscape 4.x?
[...]
> What about Opera and Safari/Konqueror?

You are right... my tests for now are very limited... but I'm on the
path of Learning :)

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация