Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #19922

Re: How can this work as it does

From Christoph Becker <cmbecker69@gmx.de>
Newsgroups comp.lang.javascript
Subject Re: How can this work as it does
Date 2013-05-24 14:29 +0200
Organization Aioe.org NNTP Server
Message-ID <knnmfa$vgl$1@speranza.aioe.org> (permalink)
References <knn912$659$1@dont-email.me> <XnsA1CA7177BEB17eejj99@194.109.133.133>

Show all headers | View raw


Evertjan. wrote:
> Tony wrote on 24 mei 2013 in comp.lang.javascript:
> 
>> This code works as it should but there is one thing that
>> I don't fully understand.
>>
>> In the html markup at the end I have this div
>>   <div id="dlgInsertLots" title="Insert Lots" style="width:500px; 
>> display:none">
>> ...
>> which is not displayed because we have said display:none
>>
>> Now to my question when I click on button with id= InsertLots this
>> function Click_InsertLots is called.
>> function Click_InsertLots()
>>   {
>>       //Create and display dialog dlgInsertLots
>>       $("#dlgInsertLots").dialog({
>>           width:700
>>       });
>>   }
> 
> This is about Jquery, why do you not programme in Javascript?

jQuery is a library that can be used with several ECMAScript
implementations, so programming in "Jquery" is programming in
"Javascript" (to stick with your wording), albeit mostly with a somewhat
unusual notation.

The code could have well been:

  function Click_InsertLots()
  {
      //Create and display dialog dlgInsertLots
      dialog(document.getElementById("dlgInsertLots"), {
          width:700
      });
  }

Then the question would arise what function dialog() does.  If it is a
library function, this should be looked up in the library's documentation.

-- 
Christoph M. Becker

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

How can this work as it does "Tony" <tony.johansson@inport.com> - 2013-05-24 10:44 +0200
  Re: How can this work as it does "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2013-05-24 11:09 +0200
    Re: How can this work as it does Tim Streater <timstreater@greenbee.net> - 2013-05-24 12:55 +0100
      Re: How can this work as it does JJ <duh@nah.meh> - 2013-05-25 04:33 +0700
        Re: How can this work as it does Tim Streater <timstreater@greenbee.net> - 2013-05-24 22:50 +0100
    Re: How can this work as it does Christoph Becker <cmbecker69@gmx.de> - 2013-05-24 14:29 +0200
      Re: How can this work as it does Denis McMahon <denismfmcmahon@gmail.com> - 2013-05-24 22:13 +0000
        Re: How can this work as it does Christoph Becker <cmbecker69@gmx.de> - 2013-05-25 00:56 +0200
  Re: How can this work as it does tony@mountifield.org (Tony Mountifield) - 2013-05-24 14:25 +0000
    Re: How can this work as it does Christoph Becker <cmbecker69@gmx.de> - 2013-05-24 17:21 +0200
  Re: How can this work as it does JJ <duh@nah.meh> - 2013-05-25 04:30 +0700

csiph-web