Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
A

astrixtech

@astrixtech
About
Posts
22
Topics
8
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Breadcrumb not showing view name
    A astrixtech

    Any help would be highly appreciated :^)

    Web Development sharepoint tutorial question

  • Breadcrumb not showing view name
    A astrixtech

    Hi, I have a Sharepoint list named Employee. Employee has different views - Details and Projects. Now I have included the below code in master page under PlaceholderTitleBreadcrumb.

    Under SharePoint:VisualUpgradePreviewStatus,I have put the below code:

    Details and Projects are two options available in quicklaunch menu which will direct to the respective page. Its showing the breadcrumb navigation but if you select Details or Projects,the breadcrumb shows Employee. How to show the view name? :^) ie, if user selected the Details,it should show Details in breadcrumb.

    Web Development sharepoint tutorial question

  • Styling links
    A astrixtech

    Thank you vbmike. it worked. :)

    Web Development css com help

  • Styling links
    A astrixtech

    Hi, Theres a requirement like, give different image links for different sites in left navigation bar. There are 5 sites to be listed out.So I have put them in a table format by hiding quick launch menu( I modified the master page).Everything is working fine. But the next requirement is ,hovering on each link / when the link is active,it should show orange color. The following is the code of one site in master page

    <label id="lblGoogle" >

    Google</label>

    And in the css file I have written the below for hover:

    #ex1:hover
    {
    background-color:orange !important;
    color:white !important;
    }

    Instead of having ex1 as id, I have tried it with class. Even that is not working fine. Please help.:~ Many thanks

    Web Development css com help

  • Radio button default checked
    A astrixtech

    Okay I thought the code started to work a bit cos of runat attribute. Thanks for the info. :) Please find below the code.

    $(document).ready(function() {
    var chbx = $(".s4-itm-cbx");
    var element = chbx.replaceWith('<input type="radio" runat="server" name="rdList" style="width:12px; height:12px;" value="'+checkbox.attr('value')+'"/>');
    //document.getElementById("#rdList").checked = true;
    //$("#rdList").checked = true;
    //$(this).trigger('click');
    //$('input:radio[name=rdList]')['0'].checked = true;
    $('input:radio[name=rdList]:nth(0)').attr('checked',true);
    $("input:radio[name=rdList]:checked").trigger('click');

    $("input[type='radio']").click(function(){
    var crbx = document.activeElement;
    $("input[type='radio']").each(function () {
    if(this!= crbx && this.checked == true){
    this.checked = false;
    $(this).trigger('click');
    }
    });
    });
    });

    Couple of other information: I am creating a Sharepoint list,where checkboxes are allowed. The requirement is ,the user should be able to select only one listitem at a time.Thats why I am changing the checkboxes to radio button. Again, the first list item should be selected by default.Hope, this information is sufficient.

    Web Development question

  • Radio button default checked
    A astrixtech

    I have tried putting them in a group and making the first element checked. But the result is the same. Just now I have added runat="server" in radio button control. After that when I used document.getElementById("rdList").checked = true;, it threw error saying getelementID is having Null object. When I used $("#rdList")[0].checked = true;, it threw error saying '0' is null.

    Web Development question

  • Radio button default checked
    A astrixtech

    Uncheck means, deselected by its own. Suppose if any user checks a radio button, the whole list item will be highlighted showing its selected. But here, the list item is not highlighted ,only the radio button is checked.And that state is not stable. I dont have any refresh interval implemented. And the id is rdList. Its a typo. :doh: ,my mistake :-D

    Web Development question

  • Breadcrump
    A astrixtech

    Any help? :(

    Web Development help question

  • Radio button default checked
    A astrixtech

    If any one could help, then that will be greatly appreciated as I am stuck with this issue. I have googled a lot. But still I didnt get an answer why the selection disappears after few seconds. :(

    Web Development question

  • Form close code
    A astrixtech

    David Mujica wrote:

    This could be browser dependent.
     
    Have you tried your page in different browsers? IE, Chrome, Firefox, Safari

    Yes tested in different browsers and its the same result. But hey I got it fixed by using SP.UI.ModalDialog.commonModalDialogClose(1, null); :) Anyways thanks for responding :thumbsup:

    Web Development help

  • Form close code
    A astrixtech

    Hi, I have added a custom cancel button for closing a form. On click of cancel I have added code as below:

    window.frameElement.commonModalDialogClose(0,'Cancel');

    Also, I have tried with the below code.

    window.close()

    Both didnt close the form. Please help. Many thanks

    Web Development help

  • Radio button default checked
    A astrixtech

    Hi , I am using the below code to convert the checkboxes in a list to radio buttons

    var element = checkbox.replaceWith('<input type="radio" id="rdList" style="width:12px; height:12px;" value="'+checkbox.attr('value')+'"/>');

    This changes all the check boxes to radio buttons. Since I needed on of the radio button to be checked ,I used the below code.

    document.getElementById("myradio").checked = true;

    This makes the first list item to be checked but only for few seconds. Then it unchecks by itself. I also used the below code for the same purpose.

    $("#myradio")[0].checked = true;

    The result is the same. Any idea why the check status doesnt stay as it is? Many thanks in advance.

    Web Development question

  • Highlight a button on mouse hover
    A astrixtech

    Just now I have tried this code. One thing I have noticed is that , in the sharepoint designer, the properties that listed out once I wrote '.btn:' didnt contain 'disabled'. Still I have put the code as told,but the result is the same. I have mentioned !important also. But with no change in the result.

    Web Development css sharepoint help question

  • Highlight a button on mouse hover
    A astrixtech

    Hey Theres some improvement in the issue.I have made the below changes

    input name="btnOkay" class="btn" title="btnOkay" disabled="disabled" type="button" value="Okay" style="position:relative;left: 50%;top:50%;zoom: 1;width:150;height:30;border-radius:10px;color:white;" />

    Now its showing the color change. But I have to do some more modifications like , the button shouldnt highlight when its disabled. Currently its highlighting irrespective of the disable status.Should I use JQuery to apply this logic or is there any other alternative?

    Web Development css sharepoint help question

  • Highlight a button on mouse hover
    A astrixtech

    The following is the button that I have created.I havent mentioned background color for default style.

    Still it doesnt work.

    Web Development css sharepoint help question

  • Highlight a button on mouse hover
    A astrixtech

    It is in the style sheet. And for the button I have mentioned the class as btnhover.

    Web Development css sharepoint help question

  • Breadcrump
    A astrixtech

    Hi, I have to implement breadcrump of the navigation within the site by a user. I have found the following code in the v4.master.

    The above was replaced by the following code.

    This partially worked by showing the first link that user visits ,on left top of the site. But the problem is ,its replacing the site's logo.Also its showing only the first link.After that it doesnt show anything. Any idea what changes do I have to make?

    Web Development help question

  • Highlight a button on mouse hover
    A astrixtech

    Actually its a typo from my side when entered the question.Still its not working.

    Web Development css sharepoint help question

  • Highlight a button on mouse hover
    A astrixtech

    Hi , I am creating a list in sharepoint with two buttons for creating and getting the details of the list item.Here,when the user is hovering the mouse on buttons,the buttons should be highlighted. I have put the below code in css for changing the color. btn:hover { background-color:Silver; } Here,btn is the class name. But this didnt bring the expected change. What am I missing? Pls help.

    Web Development css sharepoint help question

  • Displaying a page in the calling page itself
    A astrixtech

    Thank you for the reply. I am quite new to this site. :thumbsup:

    SharePoint javascript sharepoint design help
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups