On Mar 29, 2006, at 2:27 PM, laurin1 wrote:

>
> Ok, i'm REALLY new.
>
> I'm just trying to use getElement like this:
>
> function showrs(){
>
>       var $a = document.getElement[id('iRecordSet')].innerHTML
>       alert($a)
>       }
>
> Is my syntax off, or am i just OFF?

The syntax is way off.  It might help you to give the screencast a  
watch, or look at some of the code in the examples and  
documentation.  Playing with the interpreter demo is a good way to  
get a feel for how things work, because you can see the result of a  
function immediately.

For reference, that code should just be:
function showrs() {
        var a = getElement("iRecordSet");
        alert(a);
}

screencast:
http://mochikit.com/screencasts/MochiKit_Intro-1.html

examples:
http://mochikit.com/demos.html

documentation:
http://mochikit.com/doc/html/MochiKit/index.html

-bob

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"MochiKit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/mochikit
-~----------~----~----~----~------~----~------~--~---

Reply via email to