Web Analytics Made Easy -
StatCounter Javascript runtime error for calendar software. Help! - CodingForum

Announcement

Collapse
No announcement yet.

Javascript runtime error for calendar software. Help!

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Javascript runtime error for calendar software. Help!

    OK if you go to the site using Internet Explorer:

    LifeStyleTour.com

    and you go to the calendar and try to switch the month. It gives you this runtime javascript error. Now if you run the same website in firefox, it doesn't give you a error, just changes the month like normally.

    The software being used is called Calpublisher

    the code to the software if needed

    I had to put it as a notepad file since it is too long to post.

    The source code

    Thank you!

  • #2
    In IE, special characters such as space, hyphen, square brackets, etc. are not allowed in window target (2nd parameter of window.open method). The only allowed special character is underscore (_).
    Glenn
    vBulletin Mods That Rock!

    Comment


    • #3
      what do you think I should do for it to be able to be opened in both browsers ? sorry I a nub to this stuff so far. I am trying to learn.

      Comment


      • #4
        Remove those illegal characters.
        Glenn
        vBulletin Mods That Rock!

        Comment


        • #5
          I went from:

          win=window.open(\"\",\"Calander_Publisher [WDYL-WTN]&[GTT] Rls\",\"scrollbars=yes,resizable=yes,width=400,height=400\")

          to

          win=window.open("Calander_PublisherWDYLWTNGTTRls"scrollbars=yesresizable=yeswidth=400height=400")

          Getting an error now, its not even showing up.. am I removing the right special characters?

          Comment


          • #6
            Ok, nvm I got it... Is there anyway to convert it so it jsut refreshes itself in teh iframe?

            Comment


            • #7
              No script needed.

              Just change this:

              Code:
              <A href="#"  onclick="goForm(); return false">  <img src="http://www.lifestyletour.com/calpublisher/icons/go.gif"alt="Go to Selected" border="0"></A>   
              ...
              <input type="hidden" name="page" value="dfdaa">
              to:
              Code:
              <input type="image" src="http://www.lifestyletour.com/calpublisher/icons/go.gif" alt="Go to Selected" title="Go to Selected" border="0" />   
              ...
              <input type="hidden" name="page" value="calendar" />
              Glenn
              vBulletin Mods That Rock!

              Comment


              • #8
                crap for some reason now its asking me to login into the adminstrator panel everytime i try to change dates... but when I deleted the :

                <input type="hidden" name="status" value="admin">
                <input type="hidden" name="password" value="$password">

                it went away i could change dates fine but then I couldn;t add any dates to the calendar
                Last edited by ge0man; Aug 2, 2005, 04:38 AM.

                Comment


                • #9
                  I visited your site and here's my observation:

                  At first, the calendar of the selected month is displayed without asking for login.
                  This goes on for several tries until at some point, it asked for login.
                  I analyzed it and found out that at those instances where it didn't asked for login, the generated form (which was submitted) contains these hidden fields:

                  <input type="hidden" name="page" value="calendar">
                  <input type="hidden" name="page_mode" value="final">

                  At the point it asked for login, the generated form submitted looks like this:

                  <input type="hidden" name="page" value="calendar">
                  <input type="hidden" name="page_mode" value="final">
                  <input type="hidden" name="status" value="admin">
                  <input type="hidden" name="password" value="">

                  The form now has "status" and "password" fields and password is blank.
                  Maybe that's the reason why it asked for login.
                  I don't know when and why the calpublisher.cgi script generates the said hidden fields.
                  Last edited by glenngv; Aug 2, 2005, 04:48 AM. Reason: You edited your post while I was composing this.
                  Glenn
                  vBulletin Mods That Rock!

                  Comment


                  • #10
                    hmm. I tried doing what you said.. took the pass value out. Still did the same thing.. but when I take out the last two lines about admin and password. its fine.. but when I go into the admin panel to add dates to other months besides august... it doesn't allow me...

                    Comment


                    • #11
                      I think it's only you who can solve the problem as you (or somebody else?) are the one who know the ins and outs of this calpublisher.cgi script.
                      Glenn
                      vBulletin Mods That Rock!

                      Comment


                      • #12
                        hahah, I don't. I just downloaded this script offline to use.

                        Comment


                        • #13
                          Check then if there is an available reference for this script.
                          Glenn
                          vBulletin Mods That Rock!

                          Comment

                          Working...
                          X