www.webdeveloper.com
Results 1 to 2 of 2

Thread: Internet explorer - Lost style segments

  1. #1
    Join Date
    Jul 2012
    Posts
    2

    Arrow Internet explorer - Lost style segments

    I have a stylesheet for each browser, like Internet explorer. But on IE when i fill the login form and submit, some of the styling is missing and i don't know why this happen. When a user is autenticated , two more <li> elements are appear at top navigation, but they are already "stylized" by the stylesheet before. And if i refresh that page, all the elements are as they are supposed to be.

    Best regards

  2. #2
    Join Date
    Jul 2012
    Posts
    2

    [solved]

    I found my own solution. If u have all the fields treated on css but still getting problems on submit a login form for example, especially on internet explorer, u just need to do an automatic refresh. I found this code on a search, and u just need to call the function whatever u need it.

    function reloadPage() {

    checkit = self.location.href;
    if(!checkit.match('#')) {
    window.location.replace(checkit + '#');
    window.location.reload();

    }
    }

    if u wanna run this code only on IExplorer, u just need to do something like this on javascript.

    var appName = navigator.appName;

    if(appName.search("Explorer")>0){
    alert("Your browser is: " + appName); // just to see if it is right
    reloadPage(); // Invoke your function
    }

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles