Zikula: A Flexible Open Source Content Management System
home | forum | contact us

Dizkus

Bottom
Using javascript in htmlpages
  • Posted: 22.12.2007, 01:30
     
    veinoM
    rank:
    Freshman Freshman
    registered:
     June 2004
    Status:
    offline
    last visit:
    21.12.07
    Posts:
    36
    Edit: Bah, I hate spelling mistakes. Make that "javascript" in the subject icon_wink

    I have a page with some dropdowns that I want to fill with the current date on page load of the htmlpage.

    The code to do so is:

    Quote


    //populatedropdown(id_of_day_select, id_of_month_select, id_of_year_select)
    window.onload=function(){
    populatedropdown("daydropdown", "monthdropdown", "yeardropdown")
    }


    However, it doesn't appear to be working and I don't think it's the script. The htmlpage parses the quotes in the script to be " so I'm thinking that might have something to do with it.

    Is this the case? And if so is there any way I can prevent this?



    edited by: veinoM, Dec 21, 2007 - 03:31 PM
  • Posted: 22.12.2007, 18:25
     
    kaffeeringe.de
    rank:
    Professional Professional
    registered:
     September 2002
    Status:
    offline
    last visit:
    19.11.08
    Posts:
    879
    .764 or .8RC2?

    Normally PostNuke should filter all JavaScript from inputs for security.

    --
    best regards from Kiel, sailing city

    Steffen Voss

    Member of the PostNuke Steering Committee
    Read The Zikulan's Blog

Main Menu

Extensions Database

Documentation

Development

Login

Donate to Zikula