Jump to content

Reg Edit

Members
  • Content Count

    411
  • Joined

  • Last visited

Everything posted by Reg Edit

  1. The variable a starts out with a number value of 10, but when set from the textarea it takes on a string value such as "12". Now, if you'd asked me, I would have said that javascript being weakly typed, your colors() function would work just the same with a being 12 or "12". But the fact is, that's actually what's stopping it working! You will see this if you change the code to set a to a number value: function setAmount(x) {a = x * 1;} If someone can explain why a string value in a is not treated as a number by colors(), I'd be interested to know the reason.
  2. Reg Edit

    Read XML file

    Well, I don't know Navision AT ALL , but from the look of that nested REPEAT-UNTIL syntax, and from your expectation to get 3 then 2, the intent is to address Items A on the first pass and items B on the second pass. But from the XML structure that is not going to happen. The nested code LoadNodeList(XMLDocument,XMLNodeList2,'Report/Items/Item'); TotNumbOfRecsB := XMLNodeList2.length; looks to me as if it will select all the item elements each time, because '/Report/Items/Item' is the collection of all 5 items: 3 from A, and 2 from B.To select either items from A or B, you would need the
  3. Does MySQL have a COALESCE function? That's how you'd do it if it was MS SQL.
  4. That’s communications protocol!Protocol, like deprecate, is a word that’s acquired specialised definitions in the technical realms: not arbitrary definitions but specialisations of original, more general definitions. In the case of deprecate this can be seen from the discussion so far. In the case of protocol, one of the original, more general definitions is- the regulations, customs, etiquette, etc to be observed by any group or on any occasionand synonyms include- procedure, formalities, convention, custom, etiquette, manners, code of behaviourCommunications protocol is concerned with the ru
  5. Absolutely. Just do the same as for "readout", where a div is already used instead of an input field.
  6. Well, I wouldn't get too excited about useCapture, because, did you notice, the IE implementation doesn't have a useCapture argument... so I doubt if you'll find many examples while IE is a major browser meaning people need their sites to work in IE. But the DOM Level 3 Events link sheds some light, depicting the DOM event flow, including the capture phase.
  7. You can use addEventListener/attachEvent to refer to a named function.EDIT: but that's only of incidental interest as you then can't pass arguments which was asked for here.
  8. But then again, you could leave the dismal look, beause it's there for a good reason. Changing the appearance of a read-only/disabled input field is an important part of good UI design, because it communicates to the user that the field will act differently from the non-dismal ones. A UI that fails to make this distinction is likely to cause confusion/annoyance when users try and type in the field.
  9. Sounds like you've already identified that the problem is the absolute positioning--I think you'll need go back and rework it to use relative positioning to fix this problem. http://www.w3schools.com/css/css_positioning.asp
  10. Actually it's both. In Internet Explorer it's a protocol, but that reference gives as its source RFC 2368 which calls it the mailto URL scheme.
  11. No need for javascript, just add the hidden field to the form:<input type="hidden" name="mysubmit" value="Print"> EDIT: Or does the page have just the one form, with several submit buttons? In that case you could still add the hidden field to the form, just use javascript to set its value. But if you use more than one form, each with its own submit button, that would let you add a hidden field to each with a fixed value. If you have further queries please post the full html form(s) so we know what we're dealing with.
  12. Reg Edit

    Problem with indices?

    Most of those conditions are WHERE conditions, not join conditions. Try:select art.art,art.desc,book1.cust,book1.pricefrom PUB.art join PUB.prbk as book1 on book1.company = art.companywhere art.company='company1'and...(everything else) It would also help if you gave the tables an integer ID field rather than using the string "company" as the ID. The join would then be on the integer field.
  13. Let's assume that's the webserver, and the html is a public web page. In that case, currently the submit button will be part of an html form, and when it's clicked, the form fields are sent to the webserver in the normal way.The webserver then executes cobol code you wrote to interpret the form fields submitted. If your <input> change has stopped things working, I think the cobol logic may be incorrect. Because if you paste your new <input> into this w3schools try-it editor and click the image placeholder, it submits the form and shows the following results: As you can see, the re
  14. Reg Edit

    Music Portal

    1. What is this?Topic title a bit of a giveaway perhaps, but seems to be a music portal... 2. What strikes you on this page?The "cards" for the songs. Very striking. Looks good.3. What would you click on first?The plus sign above a song. It is a very nice plus sign! I must buy that song!4. What can I do here?Some connection with photos, but mainly I can download music, possibly to play online, or take round with me, or even load my jukebox, given the "themes" at the bottom? Then again, what about these different sizes....? (Square is not a size... )I like the look and feel but for me there's a
  15. I know. But my original remark went wider than that.And now, if you'll excuse me, I must go and pray for deliverance from mailto:
  16. LOL well I deprecate* it, and from what I've seen I'm not alone, so I think "somewhat deprecated" is accurate! *dep·re·cate /ˈdɛprɪˌkeɪt/ Pronunciation Key –verb (used with object), -cat·ed, -cat·ing.1. to express earnest disapproval of.2. to urge reasons against; protest against (a scheme, purpose, etc.).3. to depreciate; belittle.4. Archaic. to pray for deliverance from.
  17. Could be a handy safety feature. Shut off the power to save the cat from being electrocuted?
  18. Yeah, mailto: is somewhat deprecated because it relies on whatever mail software (Outlook Express etc) is installed on the user's own computer. So PHP or another server-side approach is needed really.
  19. What kind of program? Can't tell enough from your description to know what the problem might be. Can you post the code that does the check?
  20. and "With Internet Explorer, the unofficial <xml> tag can be used to create an XML data island." (first line of page, in bold!)
  21. In other words, the work your existing XSLT does is to transform an input XML document into its current output form (which may also be XML). You now need to update/replace that existing XSLT with XSLT that transforms your input XML into a different output document. That output document is an XSL-FO document. An XSL-FO document is just an XML document containing XSL-FO formatting information.
  22. Think you just got carried away renaming your variables: x is not defined, so this line will throw an error.
  23. Reg Edit

    dataset

    Well, presumably articles has an article_date field? You'll need to refer to that, to select the latest article. You could either load the articles table separately into the dataset, and set bindings/relationships to suit, or, if you want it all in the one dataset table, you'll need a subquery:SELECT * FROM writers w INNER JOIN articles a ON w.author_id=a.author_idWHERE a.article_date = ( SELECT max(article_date) FROM articles WHERE author_id = w.author_id )
  24. That'll just be the index argument to insertRow:document.getElementById('myTable').insertRow(0); Instead of 0, use an increasing number; n-1 looks right at a quick glance: document.getElementById('myTable').insertRow(n-1);
  25. Try this, and you should be able to adapt it to use the actual input numbers:<html><head><script type="text/javascript">function populatetable(m,x,r,p){ var table=document.getElementById('myTable'); for (i = table.rows.length - 1; i >= 0; i--) table.deleteRow(i); for (n=1; n < m; n++) { x = x + 0.5*r*i - x/p; i = x - i; var row=document.getElementById('myTable').insertRow(0); var cell0=row.insertCell(0); var cell1=row.insertCell(1); cell0.innerHTML=n; cell1.innerHTML=Math.round(x); }}</script></head><body><input type="button" onclick="popul
×
×
  • Create New...