Get ID of Item From Query String and Display It on Edit form Page.

Hi Folks,
We Have Online Sharepoint Request from for Users to Submit their Request once users submit the request admin Verify Request and edit it to tag.Now admin want to Display ID of the Item they are editing so they can reference in Comments and Workflow.
You Always can Use SPD to do this but i decide to go with Jquery.here is Jquery

     <script src="/JSLibrary/jquery-1.3.2.min.js" type="text/javascript"></script>
     <script type="text/javascript">
                $(document).ready(function() {
                      var qs= location.search.substring(1, location.search.length);
                      var args = qs.split("&");
                      var ID = args[0].split("=");
                      var Title=$("h2.ms-pagetitle").text();
                      var IDTitle = " (ID: "
                      var NewTitle= Title + IDTitle + ID[1] +")"
                      $("h2.ms-pagetitle").text(NewTitle)
               });
      </script>

This Will Display ID in Editform.aspx like Title of Item (ID: ##)


Thanks
Ronak

Modify UI in DVWP based on Users is in Sharepoint Group

I have DVWP which display data from Sql Server 2005 and i have also Insert,Edit and Delete link enable in DVWP.
Client wants like only Super admin can see all of these link,Admin can see only edit and Insert link and Read only users cant see any link.so what i did is i have Created 3 Sharepoint group as mention above and Used Jquery Web services library developed By Marc d Anderson to hide links based on whether users is in group or not.

<script src="/JSLibrary/jquery.SPServices-0.4.6.min.js" type="text/javascript"></script>
<script src="/JSLibrary/jquery1.3.min.js" type="text/javascript"></script></div>
<script type="text/javascript">
      $().SPServices ({
              operation: "GetGroupCollectionFromUser",
              userLoginName: $().SPServices.SPGetCurrentUser(),
              async: false,
              completefunc: function(xData, Status) {
                           if($(xData.responseXML).find("Group[Name='Read']").length == 1){ 
                                                    $("img[alt='Edit']").hide();
                                                    $("img[alt='Delete']").hide();
                            }
                          else if($(xData.responseXML).find("Group[Name='Admin']").length == 1){
                                                   $("img[alt='Delete']").hide();</div>
                                       }
                        }
});
</script>

Ronak