Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

It isnt possible to add arguments to a function that takes no arguments in javascript

  • 24-01-2008 11:30pm
    #1
    Closed Accounts Posts: 67 ✭✭


    I saw a funny piece of code on a seemingly professional webdesign website in my town.(Well it really is). I am not going to name it incase any of you are out there on boards.

    Anyway the website uses Macromedias built in javascript functions to play around with the images.

    The function was mm_preLoadImages() ..... No Arguments.

    The company must of thought the javascript magically accepts arguments from a non argumented function such as above.

    They added 5 or 6 arguments.

    You see javascript is one pain in the h**** to decipher problems with. I know so well. It actually dosent give out any errors if you add arguments unlike any other languages I know of C for example.

    If I am wrong please tell me but I really dont think that Javascript can take no existent arguments;

    Another thing I see in many scripts online is this "<!-- //-->" so called hack which was origionally intended for first generation browsers Netscape 1 and mosaic and can actuall can errors as javascript complies the "HTML" comments.


Comments

Advertisement