Jump to content

henke

Members
  • Posts

    5
  • Joined

  • Last visited

henke's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. Could you be more specific in your description? What does javascript console message say in firefox? Javascript does not care about that you are using JSP on the serverside. The responce on the socket back is what matters for the browser.
  2. In this case you are not right. IE and most modern browsers do this in one way. Firefox has done this according to w3c recommendations. Thanks for the url. That solved my problem. /Henrik
  3. Well you where right but i misunderstood you.. Thanks :)try { DaysObject.add(NewOption,null); // firefox solution } catch(ex) { DaysObject.add(NewOption); // All browsers except firefox }
  4. i tried to add "null", but i get another exception. Fel: uncaught exception: [Exception... "Could not convert JavaScript argument arg 1 [nsIDOMHTMLSelectElement.add]" nsresult: "0x80570009 (NS_ERROR_XPC_BAD_CONVERT_JS)" location: "JS frame :: .....I liked firefox but... (It seems that Firefox read w3c recommendations but no other web browser vendor did. i must say that firefox seems to take w3c recommendations to serously. Why not do as the all other browser vendors.)If firefox will implement a more complex way to do things developers will give up to fix the problems for this browser and the user with a broken page..
  5. Hi!When a user change month for example from February to Mars, i want to add nr of days in options. It works in ie, opera, but not in Firefox.My main question is.. Is there an easy way of adding options in compatible mode that works for all browsers?i get this message in firefox consolens_error_xpc_not_enough_argsFel: uncaught exception: [Exception... "Not enough arguments [nsIDOMHTMLSelectElement.add]" nsresult: "0x80570001 (NS_ERROR_XPC_NOT_ENOUGH_ARGS)" location: "JS frame :: theurl :: line 1111" data: no]my function call looks like thisfunction changeSelectOptions(){var userselectedYearMonth=document.getElementById("selectYearMonth").value;var year=userselectedYearMonth.substring(0,4);var month=userselectedYearMonth.substring(5);DaysObject=document.getElementById("dateselect");CurrentDaysInSelection = DaysObject.length;DaysForThisSelection = DaysInMonth(month, year); if (DaysForThisSelection > CurrentDaysInSelection) { for (i=0; i<(DaysForThisSelection-CurrentDaysInSelection); i++) { NewOption = new Option(DaysObject.options.length + 1); DaysObject.add(NewOption); } } }
×
×
  • Create New...