problem in html href

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pavancognizant
    New Member
    • May 2007
    • 7

    problem in html href

    Hi,

    I am having a html table with lots of check box, and i am having a link in html on click of that i call a function and append all checkboxes with id value pair in href, not the problem is when the checkboxes are less, the <a href> is working fine, but if checkboxes are many, the href is not working, i mean IE does not post request to the server, nothing happens when i click on link, it really strange behaviour, do anyone has idea why this is happening.....
  • merseyside
    New Member
    • Mar 2007
    • 48

    #2
    Are you dynamically changing the href attribute of an A element for the user to click on? Or do you want to post a form? Would it be possible to post the code you're using?

    Comment

    • pavancognizant
      New Member
      • May 2007
      • 7

      #3
      yeah i am dynamically changing the href of A element when user clicks on link, actually submitting the form would not sufice my need, i have to modify the href of A element, and the number of parameters i am adding to the href is huge, because of that it is not submitting the link to the server.


      Originally posted by merseyside
      Are you dynamically changing the href attribute of an A element for the user to click on? Or do you want to post a form? Would it be possible to post the code you're using?

      Comment

      • merseyside
        New Member
        • Mar 2007
        • 48

        #4
        Originally posted by pavancognizant
        yeah i am dynamically changing the href of A element when user clicks on link, actually submitting the form would not sufice my need, i have to modify the href of A element, and the number of parameters i am adding to the href is huge, because of that it is not submitting the link to the server.
        So you're trying to create a link like

        thepage.html?na me1=value1&name 2=value2&name3= value3.......

        There aren't any +'s or &'s, for example, in the name/value pairs? Have you escaped the values?

        Possibly, for the checkboxes try a comma separated list?

        Comment

        • pavancognizant
          New Member
          • May 2007
          • 7

          #5
          yes i am doing like thepage.html?na me1=value1&name 2=value2&name3= value3....... this , actually the problem is large number of name/value pair in href which causing the problem, is there any limitations on the number of name/value pairs we can give in href???

          Originally posted by merseyside
          So you're trying to create a link like

          thepage.html?na me1=value1&name 2=value2&name3= value3.......

          There aren't any +'s or &'s, for example, in the name/value pairs? Have you escaped the values?

          Possibly, for the checkboxes try a comma separated list?

          Comment

          • merseyside
            New Member
            • Mar 2007
            • 48

            #6
            Originally posted by pavancognizant
            yes i am doing like thepage.html?na me1=value1&name 2=value2&name3= value3....... this , actually the problem is large number of name/value pair in href which causing the problem, is there any limitations on the number of name/value pairs we can give in href???
            Yep, there is a limitation to a URL length. "Traditiona lly" is was 255, but some browsers allow longer URL's, off the top of my head, IE about 2080, Opera about 4000, FF not sure, Googling will give you the exact numbers. But, there could also be a restriction at the server end.

            Comment

            • pavancognizant
              New Member
              • May 2007
              • 7

              #7
              i am copying the href getting generated and checking the size of it by pasting into text file, its hardly 5 KB, then also its not working....

              Originally posted by merseyside
              Yep, there is a limitation to a URL length. "Traditiona lly" is was 255, but some browsers allow longer URL's, off the top of my head, IE about 2080, Opera about 4000, FF not sure, Googling will give you the exact numbers. But, there could also be a restriction at the server end.

              Comment

              • merseyside
                New Member
                • Mar 2007
                • 48

                #8
                Can you post what's in the href or the code generating it?

                Comment

                Working...