This is just my point, but you should never have a form without a submit button. Javascript is good only if it works all the time (meaning every browser) and if thing's still work without it. It should only be to get "more", but never to prevent the site from being navigated. If you'd like to make something auto-submitting and hide the button, but still work if javascript is not available, you just need:
-in your select:  onChange="this.form.submit()"
-then a script/noscript part:
-----------
<script type="text/javascript"><input type="submit" value="Rechercher" name="search"><input type="hidden" name="WOSubmitAction" value="search"></script> <noscript><input type="submit" value="Rechercher" name="search"><input type="hidden" name="WOSubmitAction" value="search"></noscript>
-----------

The submit in the script part is hidden using a css rule
The submit in the noscript part will be displayed if javascript is disabled, so the user can still submit the form

Hope this help;)

Xavier



Hey Xavier,

Thanks for the info.

I'm using the value binding in conjunction with javascript to allow users to navigate to other parts of the site without using a submit button.

Like so:


menu: WOPopUpButton {
        list = category.parent.newContentSubCategories;
        item = categoryItem;
        value = activeContentLink;
        displayString = categoryItem.nameWithUnreadItemsCount;
        noSelectionString = noSelectionString;
        name = "menu";
onChange = "location.href=(menuform.menu.options [menuform.menu.selectedIndex].value)";
        escapeHTML = false;
}


-Olav


On Apr 2, 2007, at 12:00 AM, Dev WO wrote:

Hi Olav,

It's not related to DST update. I think it appears in the 5.3.x but I'm not completely sure. It's a but when using the "href" binding, but I don't understand why you have a hyperlink in an option value, maybe it's just a test you made. Anyway, search the list for "bozo ampersand" you'll find some way to get around this (Daniel Muller, "WebObjects 5.3.1 Redirect Bug" - 17th february 2006)

I'm pretty much never use the "href" binding and instead use the directaction bindings, but maybe someone using Wonder frameworks can confirm if Wonder also experience this bug.
If it's not the case, you could link to Wonder frameworks.

Xavier

PS: Thanks for not using a previous thread to post a new question, it's ruining the thread view;)


Hey,

I just upgraded to 5.3 DST from 5.2 and noticed a bug in the WOPopUpButton component.

I'm sending down a url as a value and it get double escaped like so:

<option value="/WebObjects/Resolver.woa/wa/resolve? catId=1001221&amp;amp;ni=y&amp;amp;sort=ddown#1001221">/ WebObjects/Resolver.woa/wa/resolve? catId=1001221&amp;ni=y&amp;sort=ddown#1001221</option>

Notice the two &amp;amp; ?

That's the first amp being escaped.


Has anyone else experienced this problem?

Thanks!




_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/webobjects% 40anazys.com

This email sent to [EMAIL PROTECTED]




 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to