Anyone good with DHTML??

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pornguy
    Too lazy to set a custom title
    • Mar 2003
    • 62910

    #1

    Anyone good with DHTML??

    Need a little help with a script. Or at least where to find it.


    Thanks
    PornGuy skype me pornguy_epic

    AmateurDough The Hottes Shemales online!
    TChicks.com | Angeles Cid | Mariana Cordoba | MAILERS WELCOME!
  • KMR Stitch
    I am cool
    • Jul 2003
    • 14494

    #2
    Dynamic html :-x

    I had some fun with that in 2002 with frontpage lol.

    Bump for you.

    Comment

    • PMdave
      Confirmed User
      • Dec 2003
      • 1517

      #3
      maybe this site can help you out? http://www.dynamicdrive.com/

      Comment

      • pornguy
        Too lazy to set a custom title
        • Mar 2003
        • 62910

        #4
        I need to do something with a form that is not working out right.
        front page nor dreamweaver will do it.


        PornGuy skype me pornguy_epic

        AmateurDough The Hottes Shemales online!
        TChicks.com | Angeles Cid | Mariana Cordoba | MAILERS WELCOME!

        Comment

        • pornguy
          Too lazy to set a custom title
          • Mar 2003
          • 62910

          #5
          Thanks PMdave. I tried them already.

          They have a great site, but this is one of those things that I can never find.
          PornGuy skype me pornguy_epic

          AmateurDough The Hottes Shemales online!
          TChicks.com | Angeles Cid | Mariana Cordoba | MAILERS WELCOME!

          Comment

          • PMdave
            Confirmed User
            • Dec 2003
            • 1517

            #6
            some contact info or description of what you need, example page,... ,... could be usefull. Not easy to help this way

            Comment

            • pornguy
              Too lazy to set a custom title
              • Mar 2003
              • 62910

              #7
              I am working on a form that needs to valadate a field, If the field is not filled in then put the error on that page. not pop a warning box.

              I know that j-a-v-a s-c-r-i-p-t does it, but it refreshes the page. DHTML does it as well and does not refresh the page..
              PornGuy skype me pornguy_epic

              AmateurDough The Hottes Shemales online!
              TChicks.com | Angeles Cid | Mariana Cordoba | MAILERS WELCOME!

              Comment

              • aiken
                Confirmed User
                • Jun 2003
                • 204

                #8
                This is off the top of my head and hand-typed, so probably won't work as is (and definitely needs the usual browser-compatible approach to getElementByID). But the principle is what you want, I think.

                Apologies for the color coding; GFY doesn't respect the code tag like it does the php tag. And a few words tweaked to avoid hahahaha-age.

                PHP Code:
                <div id="errormsg"&nbsp;</div>
                <for_m name=myform action="whatever" method="get">
                hahahahahahaha type=text name="checkme">
                hahahahahahaha type=submit value="Submit" onclick="if (documen_t.forms.myform.checkme = = 'bad') {documen_t.getElementByID('errormsg').innerHTML='You entered an invalid value'; return false;">
                </form> 
                
                Cheers
                -b
                ICQ: 12005327

                Comment

                • pornguy
                  Too lazy to set a custom title
                  • Mar 2003
                  • 62910

                  #9
                  Thanks aiken.

                  Trying it now.
                  PornGuy skype me pornguy_epic

                  AmateurDough The Hottes Shemales online!
                  TChicks.com | Angeles Cid | Mariana Cordoba | MAILERS WELCOME!

                  Comment

                  • Coyote
                    Drinker of Scotch
                    • May 2003
                    • 236

                    #10
                    A lot will depend on your form layout, but you could append an image tag whose source attribute is a blank gif/jpg and name attribute is identical to the name of the data field. As you loop through the datafields, each empty field can have the corresponding image source (using the images collection) changed to whatever icon you want, such as an exclamation point, etc. This will help identify the offending fields.

                    You can also replace or insert text, oriented in whcihever way to the offending fields, that states your specific error message, such as "First name is required.", etc.

                    To keep the elements from re-flowing when you add text/images, make room for them ahead of time. For example, make room for the input field and appended image tag in the table data tag, or add a blank table row (for the error messages) between each data field row. Style settings can then be used to format the presentation accordingly, such as error text in a smaller/larger font size/color, etc.

                    If any form field validation fails simply cancel the form submit action.
                    Ethernet Servers

                    Quote:
                    CS: Linux can pretty much run on a potato. Which is a GOOD thing.

                    Comment

                    • pornguy
                      Too lazy to set a custom title
                      • Mar 2003
                      • 62910

                      #11
                      Thanks for the info coyote
                      PornGuy skype me pornguy_epic

                      AmateurDough The Hottes Shemales online!
                      TChicks.com | Angeles Cid | Mariana Cordoba | MAILERS WELCOME!

                      Comment

                      Working...