dcsimg
www.webdeveloper.com

Search:

Type: Posts; User: Vassil Catsarov

Page 1 of 8 1 2 3 4

Search: Search took 0.04 seconds.

  1. Kevin2, thank you for your answer - it confirmed...

    Kevin2, thank you for your answer - it confirmed my suspicions - from the chart it looks like this feature is not supported by "conventional" browsers. But does anyone know of a software, plugin,...
  2. Paged Media - css controlled headers and footers on printed pages

    I have just learned that CSS has control over the document print layout via @page rule.
    I managed to add different margins for the first and the rest of the pages, but trying to set headers and...
  3. Thank you, DaveyErwin - your solution is simple...

    Thank you, DaveyErwin - your solution is simple and effective - I didn't know strings could be manipulated as an array (or object?) in your while(a[++i]) ... a[i] expression.


    Sempervivum, thank...
  4. \\.\, my Linux experience was mainly with Ubuntu...

    \\.\, my Linux experience was mainly with Ubuntu and Linux Mint, on the latter again some monitor issues - my old (I like the old 4:3 aspect ratio) 19'' Fujitsu-Siemens monitor displays only at a...
  5. Ubuntu 15.10 is just fine, but the large...

    Ubuntu 15.10 is just fine, but the large Blaupunkt TV I use attached to my laptop as a monitor is not recognized, so the resolution is low with distorted aspect ratio, nothing suggested in the forums...
  6. Two of the excel columns have data, formatted as...

    Two of the excel columns have data, formatted as JavaScript arrays, the elements of which are a varying in length series of numbers, formatted in an unpredictable and inconsistent way. So I cannot...
  7. The original JavaScript structure I have is...

    The original JavaScript structure I have is something like this:

    LA.A4C_a = new CreateParam("LA.A4C_a","LA.A4C_a",true,"","площ от A4C","площ от...
  8. Yes, there are numbers formatted in different...

    Yes, there are numbers formatted in different ways - integers, floats, "integers" with trailing zeroes, etc. To keep things simple i did not include the whole array, only the first elements.

    ...
  9. Sort of - if a number in the array is declared as...

    Sort of - if a number in the array is declared as an integer eg 15, I want to return it as such: 15
    If it is a float: 15.0 - that's what I want to get back - no more or less trailing zeroes than...
  10. This is my experiment so far: original array:...

    This is my experiment so far:

    original array:
    [[46.5,15.0],[52.7,14.3]]


    document.write(" <td>'" + JSON.stringify(obj[i][12]) + "</td>");
    '[[46.5,15],[52.7,14.3]]
  11. Sorry, Sempervivum - it was your suggestion, not...

    Sorry, Sempervivum - it was your suggestion, not \\.\ 's I wrote of in my previous reply. toFixed appends zeroes indiscriminately, and toString puts quotation marks and still removes the zeroes.
  12. The arrays come from an excel table but the files...

    The arrays come from an excel table but the files got infected and destroyed by a crypto virus so all I have is something like this:


    var obj=[
    ["Ao.Ann","Ao.Ann",true,"","диаметър на аортния...
  13. convert array elements into string (to preserve trailing zeroes)

    I have a list of "multidimensional" arrays with different structures, ie:



    [[46.5,15.0],[52.7,14.3]]
    [[[67,162.0], [163,186], [187,210]],[[88,224], [225,258], [259,292]]]


    My final goal is...
  14. \\.\, thank you for explaining the prototype...

    \\.\, thank you for explaining the prototype feature - I think I have a vague idea of what it is by now, but with a standalone function, or with extended object functionality, I still don't know if...
  15. Kever, here is another valid solution (proposed...

    Kever, here is another valid solution (proposed by me at the beginning of this thread:



    var parentObj = {
    childObj1 : {property1: "property1 of childObj1", property2: "property2 of...
  16. 17063 \\.\, thank you for your detailed answer....

    17063
    \\.\, thank you for your detailed answer. Can you please explain in greater detail if posiible how the prototype works in your second suggestion, as it might do the job Iím interested in and...
  17. Get object name and a certain object property by a sibling property

    Let's assume I have defined an object with a name vehicle and a nested vehicle.car object with the following properties



    vehicle.car.name = "Fiat"
    vehicle.car.model = 500


    I need to write...
  18. Sempervivum, thank you for yor detailed...

    Sempervivum, thank you for yor detailed explanations!
  19. \\.\ , thank you for your answer! The three...

    \\.\ , thank you for your answer! The three approaches - switch- case, else if and the ternary structure do the job.

    else if is the most readable format according to me. But to conclude this...
  20. xelawho - yes, this is an issue I was not aware...

    xelawho - yes, this is an issue I was not aware of, though it seems the returned value depends on the construction of the conditional statement, not only on the expression that is evaluated, as is...
  21. I think it is not the construction but the...

    I think it is not the construction but the condition inside the brackets that is not working as expected.

    \\.\ , am I wrong?
  22. PS: LA.area1 && LA.length1 && LA.area2 &&...

    PS: LA.area1 && LA.length1 && LA.area2 && LA.length2 really returns 8. Can anybody explain why is that? Boolean() does the job, I didn't know such method existed. But what amazes me at the first...
  23. Sempervivum, thank you for your answer! What I...

    Sempervivum, thank you for your answer!
    What I am trying to check in case #2 is whether all the 4 properties are true, set, etc. And as they are in my example, case #2 has to be executed and the...
  24. Replies
    4
    Views
    1,100

    You can write a function that checks if an option...

    You can write a function that checks if an option is selected, in which case a div can be shown or hidden accordingly. The task will be more complex however if an item falls into more than one...
  25. [RESOLVED] Switch Statement not working

    I have a custom object LA. Based on which properties of that object are set (are true), a switch - case statement is used to perform different tasks. The problem is that the second case is not...
Results 1 to 25 of 187
Page 1 of 8 1 2 3 4
HTML5 Development Center



Recent Articles