xhtml

mailto: problem

[亡魂溺海] 提交于 2020-01-06 08:22:30
问题 I'm trying to set up the following mailto: link: <a href='mailto:info@example.com?subject=Testing&body=http://www.google.com?foo=1&bar=2'>Send mail</a> However the second argument (bar) is cut off because it is seen as an argument of the mailto link and not the link I'm putting in the body. I tried & but it does the same thing since it's being rendered into the link. 回答1: What about something like this : <a href='mailto:info@example.com?subject=Testing&body=http%3A%2F%2Fwww.google.com%3Ffoo

Based on what parameters does browser decide what the `width` of an element should be(when width=“auto”)?

≡放荡痞女 提交于 2020-01-06 06:24:11
问题 1) If textbox element ( <input type=”text” /> ) has its width property set to inherit , then textbox doesn’t overflow. But if textbox has width set to auto , then it overflows due to browser calculating the width . a) Why doesn’t browser take into the account that textbox is inside another element and thus adjusts the width of a textbox accordingly? b) Based on what parameters does it decide what the width of a textbox should be? <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang=

jQuery UI dialog doesn't show in IE7

谁说胖子不能爱 提交于 2020-01-06 05:42:09
问题 I've finally got the datepicker to work on my MVC demo site and also the dialog. I still have a few issues: the dialog doesn't show in IE7 so when I click a link where a confirm dialog is supposed to appear it just removes the row without showing the dialog. It works great in Firefox3 and Safari . Please try for yourself on my Demo site. Click the link "Boka plats" on the menu. then login with: email: test@test.nu password: tester when logged in try to click one of rows "avboka" link (this is

Wrong value being sent to converter JSF

半腔热情 提交于 2020-01-06 04:14:05
问题 Final solution of the problem for getting the converter, equals and JSF code to work. The Player is a Player bean with a few properties. The service access the Player and writes player info to the database (besides the point :) <h:selectOneListbox size="1" value="#{player}" converter="playerConverter" id="playerList"> <f:selectItems value="#{servicePlayer.allPlayers}" var="n" itemValue="#{n}" itemLabel="#{n.combinedName}" itemLabelEscaped="true"/> </h:selectOneListbox> In ServicePlayer public

What is the best way to display a drop down menu?

妖精的绣舞 提交于 2020-01-06 03:03:14
问题 What is the best way to display a drop down menu? for the sake of best practices. keeping in mind: -Accessabilty , Its viewable with javascript off screen readers -backwords capatabilty , viewable in IE6 -cross browser I'm asking this because I've recently been working on some site that have css only drop down menu's that do not display the drop downs in IE6 Is displaying the drop down as a list if javascript is off the right way to do it? 回答1: The standard for javascriptless dropdown are

Java XHTML Doclet: fatal exception

冷暖自知 提交于 2020-01-05 12:10:57
问题 Has anyone used XHTML Doclet, and can you provide some hints as to how to get it to work successfully? I run it like this: \sunjdk\bin\javadoc -doclet net.sourceforge.xhtmldoclet.Doclet -docletpath c:\sw\java\XHTML_Doclet_0.4.jar -d <output> [class files here] (all on one line) When I run it I get this: javadoc: error - In doclet class net.sourceforge.xhtmldoclet.Doclet, method validOptions has thrown an exception java.lang.reflect.InvocationTargetException java.lang.Error: Fatal: Resource

Why do mouse clicks not always work for styled input buttons?

早过忘川 提交于 2020-01-05 09:14:26
问题 Throughout our application, we use styled input buttons for submitting forms. For some reason you have to precisely click them in order for the click to be registered. Over half the time, it looks like the button is clicked (i.e. changes on mousedown/mouseup), but nothing happens and we have to click again. If we simply remove the css styling, the button works fine all the time. Example: Our users really like the look of the styled buttons, but are a bit annoyed by not knowing if the click

Why do mouse clicks not always work for styled input buttons?

百般思念 提交于 2020-01-05 09:12:09
问题 Throughout our application, we use styled input buttons for submitting forms. For some reason you have to precisely click them in order for the click to be registered. Over half the time, it looks like the button is clicked (i.e. changes on mousedown/mouseup), but nothing happens and we have to click again. If we simply remove the css styling, the button works fine all the time. Example: Our users really like the look of the styled buttons, but are a bit annoyed by not knowing if the click

How to decide What should be chosen to make heading bold <strong> or <h3/h4/h5>?

我只是一个虾纸丫 提交于 2020-01-05 08:16:44
问题 How to judge what should be <h2> , h3 h4 h5 h6 or <p><strong>Some text</strong></p> If we don't have knowledge about context Only title of the page i can judge easily <h1> How to judge others I always get content from clients in MS word 2007 format and client always use fontsize to make things smaller and bigger. How we can best judge where client want Headings level and where he used bold text only for styling and where He really want to give emphasize on text. <p><strong>Some text here<

IE doesn't allow to upload the file, if it is not keybord click for input type=file

十年热恋 提交于 2020-01-05 05:46:05
问题 I have a requirement where i need to trigger the input[type=file] from another button and upload the files. This input[type=file] is a popup window for browsing the file which the user wants to upload. This window opens successfully but when uploading the file, it gives me SCRIPT5: Access is Denied error . I cannot replace the fake button with input[type=file], is there a way i can trigger click on input[type=file] even it is not from keyboard click and still upload the file. As per my