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

Support Forum

Start ::  PostNuke 0.7 Support ::  Core Modules & Blocks ::  Using javascript in htmlpages

Moderated by: Support Team

Bottom
Using javascript in htmlpages

  • Link to this postingPosted: 22.12.2007, 01:30
    Profile
    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
  • Link to this postingPosted: 22.12.2007, 18:25
    Profile Homepage
    kaffeeringe.de
    rank:
    Professional Professional
    registered:
     September 2002
    Status:
    offline
    last visit:
    14.08.08
    Posts:
    855
    .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
    Follow The Zikulan at Twitter

Start ::  PostNuke 0.7 Support ::  Core Modules & Blocks ::  Using javascript in htmlpages

Main Menu

Extensions Database

Documentation

Development

Login





 


 Log in Problems?
 New User? Sign Up!

Donate to Zikula