Logo

Advertisement

Web Forms :: Masterpage Not Displaying Properly In IE Compatibility View Or Safari

forums.asp.net

I am building a website that isnt displaying properly accros browsers. It displays fine in FireFox and IE but does not display correctly in IE compatibility view or Safari. The problem is that I have a background header image that is different on the left and right so I cant do a repeat and center the content div. I was able to acheif the effect by building a table with three columns. But on safari, the backround of the outside columns does not show because there is no content in those columns. In IE compatibiliy mode, the columns disappear and the center column is shifted to the left. Anyone have any ideas? HEre is my code. <body> <form id="form1" runat="server"> <table cellpadding="0" cellspacing="0" style="width: 100%"> <tr> <td style="background-image: url(Images/MasterPage/BKGbodyLeft.png); background-repeat: repeat-x; background-position: left top"> </td> <td style="width: 1020px"> <div> <div id="Header"> </div> <div id="Content" style="padding-top: 20px; height: 630px"> <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server"> </asp:ContentPlaceHolder> </div> <div id="Footer"> </div> </div> </td> <td style="background-image: url(Images/MasterPage/BKGbodyRight.png); background-repeat: repeat-x; background-position: left top"> </td> </tr> </table> </form> </body>

View Answers
Very similar questions

Advertisement

Advertisement

SQL Reporting :: Toolbar Of ReportViewer Control Displaying Incorrectly In Safari forums.asp.net

I'm using the VS2005 & SP1 and my web forms report viewer control toolbar is acting very strangely in Safari during runtime. (1) Not like in IE 7 - display all buttons in one line. it is displaying icons on several separate lines . (2) The report contents were narrowed in Safari. it was not wide as in IE 7. ( see RED vertical lines ) [Code]....

Firefox And Opera Not Compatible Browser stackoverflow.com

In web application I'm using devexpress toolkit, and have the right (correct) result in IE only (using also some java-script), on clicking event for example is working in chrome and safari, but in Firefox and Opera not The grid view are not showed properly in division in any other browser, except IE!

Web Forms :: Code Behind A Command For Compatibility View For All Time Active? forums.asp.net

i have master page that when i run this with ie(in compatibility view) page correct load and my menu bgground repeate as true! but when compatibility view is disable page dont show in correct and menu section bgground not repeate and a part of page show empty page bgground(bgground for this section can't show)!!! how i can set in code behind a command for compatibility view for all time active? and in firefox or google Chrome howto?(in these browser page show like ie normal mode)

Page Has All Images And Style In Design View But Not Loading In Browser? forums.asp.net

I have asp.net web site which has master page ajax and css file.... I have change masterpage and change master page reference in each page to new masterpage name. then i open aspx page and open in design view no problem i can see new lay out colours and images, when i right click on file name and click on view on browser page open in IE but not images no styles. try on Firefox same problem.

IE8 Only Error 'undefined' Is Null Or Not Object www.codingforums.com

I have a bug that is only seeming to effect IE 8.Also has a weird display issue in IE8, but not in "compatibility view", which the bug may fix. Works and looks beautiful is Safari and Firefox.

JavaScript Function In Linkbutton Not Firing In FireFox Browser? bytes.com

when i click the link button in Masterpage the window has to close. This function is working properly in IE but in fireFox or chrome or Safari Other than IE in all browsers postback is happening. my code : [code]....

Web Forms :: Master Page Cannot View After Forms FormsAuthentication.SignOut(); forums.asp.net

Created in VS2008 The login page is created with the masterpage and it has the header picture. After Logout or run FormsAuthentication.SignOut(); The login page is not showing correctly with the header (from master page). And the setting on the web.config as below: <authentication mode="Forms"> <forms loginUrl="Login.aspx" name=".ASPXFORMSAUTH"> </forms> </authentication> <authorization> <deny users="?" /> </authorization> Is there any reason why the header from masterpage can not be viewed from the login page?

MasterPage And ViewState - Inherit From System.Web.UI.Page? stackoverflow.com

I have written methods to override the LoadPageStateFromPersistenceMedium and SavePageStateToPersistenceMedium methods. now the problem is that i am using a masterpage, so how do i maintain using my masterpage and still inherit from System.Web.UI.Page? Bear in mind that the .vb Code behind the masterpage already inherits System.Web.UI.MasterPage. Anybody know how i can "properly" override these methods in a MasterPage?

Web Forms :: Built-in Menu Control In .NET 2.0 Comes To Browser Compatibility? forums.asp.net

I would just like to raise an opinion regarding the asp.net menu control in .NET Framework 2.0.We have a number of web applications,both internal and external,that currently employs the menu control.This is placed in a masterpage and pulls its data from a sitemap file.This is indeed a very handy and the least expensive(than employing expensive third-party asp.net menu controls too powerful for its use) solution as we needed basic navigation menu functionalities only. However,the built-in menu control in .NET 2.0 is a problem when it comes to browser compatibility.Two issues that I want to highlight are:its compatibility with Safari and Chrome its compatibility with Internet Explorer 8 Compatibility issues with Safari and Chrome To fix this issue is plain and simple.You can add the below code to your pre_init event: [Code]... You may have hundreds of pages and pasting this into each page may be a dilemma especially if you hate working like a repetitively-tasked labour monkey for hours. You can simply place this code in a global class(mine is named PageBase.vb)and inherit every page from it ("inherit PageBase" will replace "inherit System.Web.UI.Page").This will reduce your task to simply doing a quick find-and-replace method. Compatibility issues with Internet Explorer 8 I am aware that the .NET Framework team and the IE team had a debate on this making the .NET Framework team to admit they were wrong in their dynamic menu control display mechanism.From here,the .NET guys issued a hotfix to fix a number of issues within .NET Framework 2.0.Find more details here. Apparently,we have a number of applications in a number of our servers.For people who may want to slag me for not having a central server for web applications,we do this for DMZ zoning for different target client/customer groups.This hotfix now requires us to install it to all servers where it is needed.This is another problem and it is costly.We have a number of third party applications,both web and desktop softwares,that maybe affected by this hotfix.This may require risk assessments and systematic testing to applications using .NET Framework 2.0. Our IT is our strategic asset so doing small hotfixes like this may pose huge risks to our current operations.I am not looking for answers as what I raised was no question but an opinion.

Directory Listing Displayed Rather Than Webpage? forums.asp.net

I've just started developing a web site in VS 2008. When I try and view the page (click 'start debugging') an IE window pops up displaying a directory listing of all the files in my web application directory rather than my masterpage or content. Why is this and how can I correct it?

Advertisement

Web Forms :: Menu Or SiteMapPath Not Displaying Properly? forums.asp.net

I have web.sitemap file that is setup properly.I have a menu that is displaying the parent but popouts are not displaying the sublevel menu items, the popup appears but there are no links.The sitemappath does not even show up on the screen.web.sitemap [Code].... masterpage menu & sitemappath controls [Code]....

Epoch Calendar Works On IE But Will Not Pop Up In Firefox Or Safari www.codingforums.com

The calendar pops up in IE but will not work in Firefox or safari. The page can be viewed at[url]

Software :: Plugins To View Webpages On Internet Explorer With Mac OSX forums.appleinsider.com

Are there any plugins or something like that where you can view web pages in Internet Explorer? I have both Safari and Firefox. Firefox has an IE view add-on, but it doesn't work with Max OSX. I don't want to have to run Boot Camp or similar product to run windows. I just want to see what web pages look like in IE when I am coding.

Professional :: Swf Files Themselves Not Browser Compatible? forums.adobe.com

The following swf file does not render properly in many versions of IE on various Windoze platforms, but does on others and in my Mac OS Snow Leopard on Safari and almost correctly (small error) in FF: http:[url].... � The following swf file does not pull up the assets at least in my Mac OS Snow Leopard on FF but does do so in Safari. Also same problem on IE 8 on either Vista or XP (think Vista): http:[url].... That same swf file, embedded in a really stripped down plain Jane html doc as follows, does not render anything in Mac OS Snow Leopard with FF but has no problem in Safari: http:[url].... �<html><body><OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-[code]...... Flash doesn't have browser compatibility issues?

Content Not Displaying In Safari? www.sitepoint.com

not 100% sure if this is the right spot for this one, so apologies if it's not.A friend asked me to build a wordpress theme based on a layout he'd mocked up in photoshop. airly straight forward so far. Anyway, yesterday I uploaded it and it all looked fine in both FF and IE. I then checked it in Safari and the post and page content does not appear.When I view source code the content is in there, it just isn't being rendered to the page.Here's a link to a 'page' that views fine in firefox and ie, but doesnt display anything in safari.Here's a link to the archive page, where the same thing happens.Finally, here's a link to a post. Again, the same thing. Fine in FF and IE, blank in safari.Like I say, the site works as expected in IE and Firefox. I've also

Webpages Do Not Load With Or Without Compatibility Mode In IE9? www.sevenforums.com

Most web sites that I try to visit cause an error to display at the bottom of the screen - A problem displaying xxxx.com caused internet explorer to refresh the web page using compatibilty view.The problem is that even though it's using compatibility mode, it usually only displays the web site header info, there's no detail. This happens on most web sites. I have another pc with Windows 7 and IE9 and have no problems. I compared the settings and everything looks OK.

Asp.net - Add New Item, "Web Content Form" Option Is Missing? stackoverflow.com

Today I realized that I no longer have a "Web Content Form" option (where you select a MasterPage) when I add new items to my ASP.NET web application. I know how to manually add a MasterPage to a web form, it's just such a pain - and I really don't understand why Web Content Forms suddenly are missing. Visual Studio Team System 2008, SP1, VB.NET, ASP.NET 3.5 I recently installed and uninstalled VisualSVN. My best guess is that screwed up my poor VS somehow.How do I get Web Content Forms back?

MVC :: Sharing MasterPage View? forums.asp.net

Has anyone come across a good way to share MVC MasterPage views across different solutions? I am able to do it using web forms with a virtual directory but the same method does not seem to work for MVC MasterPages.

Mac Safari :: Viewing PDFs In Safari In 64 Bit Mode? discussions.apple.com

For me, in 64 bit mode, Safari insists on using Preview to view PDFs (and which is slow and clunky). If I make Safari downgrade itself to 32 bit mode, it properly calls up Acrobat to view PDFs. How can I have Safari running in native 64 bit mode and call up Acrobat to view PDFs on webpages? Or is it not possible? Information: Mac mini Mac OS X (10.6.2)

Displaying In Different Browsers? forums.adobe.com

My SWF works well in all three browsers when tested on my local system: Firefox, IE and Safari.However,when tested from the server FireFox and Safari both do not complete a portion of the SWF motion.I have a number of dots that move in from different directions then line up followed by moving text and objects.� in both Firefox and Safari the dots only begin to move then the SWF move on to display the other objects correctly.Am I looking at a timing issue or a loading issue?The site is [url].... view the top banner.

Web Forms :: Master Page Styles Not Inherited When Content Page Is Not In Root Folder? forums.asp.net

I have a MasterPage at Rool level. I have 2 content pages: RootContent.aspx - at Root folder where MasterPage is, and SubFolderContent.aspx - inside a subfolder. Now, the css styles like backgroung images etc are displayed properly when I open RootContent.aspx, but when I navigate to SubFolderContent.aspx, these style are not displayed. Is there any security issue that SubFolderContent.aspx cannot access the Root level master page style. I have used the following Page Directive in SubFolderContent.aspx: <%@ Page Title="" Language="VB" MasterPageFile="~/DefaultMaster.master" ...

Internet Explorer Compatilbility View - All Websites www.sevenforums.com

How to Display All Websites in Compatibility View in Windows 7 Internet Explorer ?

AJAX :: Update A Masterpage Label From A Content Page? forums.asp.net

Using .NET 3.5 I have a MasterPage with no Ajax on it. I have one Content page with my Ajax ScriptManager and UpdatePanel with a Multi-View. When I navigate on a button click in the Multi-View I need to update a Label on the MasterPage. I wrote some code using FindControl and it updates the MasterPage Label in the code but my MasterPage Label does not change. I guess it's because the MasterPage isn't reloading?

Web Forms :: Button Server Side Click Event Not Firing On IE? forums.asp.net

I have a register form that have many controls and validators.On the left side of the form, there's File upload control and one button name upload which has both client side and server side event.The problem is my upload button was working properly on firefox, chrome, safari but it's server side click event not firing on IE, not event postback. I was already define causes validation for that button was false.I don't know why and if anyone know the solution.

Web Forms :: Getting All Added Controls Instead Of Intended Page? forums.asp.net

Most of my pages use a master page. If I design the page completely in the Design View the controls display on the page properly, within their content placeholder space. But if I add the control programatically, its added outside the content placeholder area, which is to say, its basically added to the masterpage. Im trying to programatically add a System.Web.UI.WebControls.Table to a page in the Page_Load event with the following statement: Table table1 = new Table(); this.Controls.Add(table1); Everytime I view the page, the table is showing up below the <asp:Content></asp:Content> elements where Master content should be displayed. Do I have to add the table to the Content Control on the Masterpage? And if so, what would that code statement look like.

Web Forms :: How To Manipulate UserControl Objects From Main Page forums.asp.net

I have a Masterpage which contains two contentpalceholder, first one for a Usercontrol and second one for my web forms. Now I want to change the usercontrol's property of sqldatasource from out side of usercontrol such as some web forms. Can I access objects of usercontrol from the other web forms or masterpage?

IDE :: CS4 Animation Layout Varies Between Mac And PC www.kirupa.com

I am having an issue with an animation constructed on a Mac using CS4 appearing differently when viewed online using a PC. When viewed on a PC the letter 'a' within the logo drops below the border of the small red square. On a Mac it appears as designed, centered within the red square. Website [URL]. It seems to be a PC hardware difference as the animation appears incorrectly using either IE and Safari using a PC while on a mac on all available browsers, Safari, Firefox,Opera, Flock the animation displays correctly.

Web User Control Not Rendering In Web Form forums.asp.net

I have created a Web User control that is made up of a Multiview with 2 views inside the Multiview. I have buttons on both views and a gridview on 1 view. My question is when I drop this Web User Control on a Web Form all I see is [MultiView"MultiView1"] and when I view the from in the browser I dont see the Web User Control. why the Web User Control is not displaying or rendering.

Visual Studio :: Cannot See "select Masterpage" Options forums.asp.net

I start a new blank project on VS2008. I right click the blank solution on solution explorer and click the add new project command I choose a web project template. Firs I add a new item as a masterpage. Later, I want to add a new file to the web project which is use a masterpage but I can not see to select "select master page" options on "add new item" display screen If I start a new project as a web site directly, no prob.

Visual Studio :: Use 4.0 Controls In 2008? forums.asp.net

The .NET Framework 3.5 renders the ASP.NET Menu Control as nested tables (bad for browser compatibility), however .NET Framework 4.0 renders the Menu Control as UL and LI's which is CSS friendly (good for browser compatibility especially for Google Chrome & Safari).So how would one go about registering asp.net 4.0 on the web server and with my VS 2008 WAP to get the .NET Framework 4.0 rendered results for the Menu Control. FYI I already installed .NET Framework 4.0 on the 2008 Web Server

App To Read HTML Of Webpages On IPad 3G www.ipadforums.net

I'm not looking for an app that lets me read the HTML of web pages or create web pages which is all I can see to find searching the store. I have a folder of offline HTML files that I use as reference material and I used Dropbox to put it on my iPad 3rd Gen and it won't let me open it in Safari and says I don't have an app to view the files. I need an app that I can use to view the files or a way for me to upload them so I can view them in safari.

Date Strings In The Form "2011-01-27T04:59:00Z" — Some Browsers Accept Them Some Don't? stackoverflow.com

I'm getting a date string in the form "2011-01-27T04:59:00Z" from a web service call. Firefox and Chrome have no problem parsing the string with var d = new Date("2011-01-27T04:59:00Z"), but Safari and IE won't stand for it. I can parse the string myself and feed it to Date.parse() or Date.UTC(), but I'm wondering why (1) such a disparity exists among browsers in something so basic as a Date object, and (2) why a public API would return a date string in a format that is rejected by Safari and (especially) IE.

Web Forms :: Connecting To Payment Gateway Using HTML Button (not Working In Master Page Inherited Aspx... forums.asp.net

Im developing a website in asp.net where i want to connect the Payment gateway(rbs worldpay) as instructed im connecting to the payment gateway...the problem is, there im using some html button to connect the gate way as per the instructions the input button should be in form tag .in masterpage inherited aspx page we dont have any form tag the button is working properly when i placed that html code in content placeholder 1 but the button is displayed above the page......if i place that code in content place holder 2 the button is not working........... im placing the code [code]....

HttpHandlers / Modules :: Context.response.write Is Not Work In Mozilla? forums.asp.net

I m using Asp.net 2.0 to develop my web app. i m using Webhandler (.ashx) pages to wrrite some html from backend.. the code is work finr for IE but it is not work for mozilla,safari.. [Code].... alert message is not showing on mozilla,safari but it is working in IE. so i think context.Response.Write is not working ..

Web Forms :: Referencing Menu On MasterPage? forums.asp.net

I have a Masterpage that contains a menu (Menu1) In my WebPage Load Procedure (default1.aspx.vb) I have code Menu1.items(0).text="Blah Blah" Visual Studio says Menu1 is not declared. It is declared in MasterPage and Default1.aspx is properly bound to MasterPage. I do not want to put code in masterpage.aspx.vb. Events for Menu1 are handled in Default1.aspx.vb so why can't I access Menu1 properties in Page Load? How do I do it?

Asp.net - Navigation SiteMathPath - SiteMapPath Control Is Not Displaying On The Masterpage When I Log... stackoverflow.com

My application has a number of different users, currently there are different masterpages set up for them. The idea is for some type of breadcrumb in the system i.e. home > details > ...What is the best approach for this? I think I will need to define the separate paths that each user can have (all the pages they can view) in the Web.sitemap (will have multiple SiteMapPaths) and then add the sitemap control to masterpage and link them to the appropriate SiteMapPath, does this sound like the right way to approach this? I am having an issue with setting up the SiteMapPath within the masterpage. I used the following tutorial http:[url]....aspx to try to use the control, but the SiteMapPath control is not displaying on the masterpage when I log in do you know what the problem might be? Web.sitemap: <?xml version="1.0" encoding="utf-8" ?> <siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >[code].....

Actionscript 3 :: Flash / TextField / Safari - Can't Type Into Text Field When Wmode Is Set To Trans... stackoverflow.com

Why are text fields not catching events properly in Safari when wmode is transparent (no problems in ie/ff/chrome)? The only workarounds I've found involve sending html form field events to flash through an external interface (eg. overlaying html form on flash). Edit: Swfobject embed code...<script> var swfVersionStr = "10.2.0"; var xiSwfUrlStr = "playerProductInstall.swf"; var flashvars = {}; [Code].....

Error / The Type Or Namespace Name 'DefaultLayoutMain' Does Not Exist In The Namespace forums.asp.net

I'm getting an error: The type or namespace name 'DefaultLayoutMain' does not exist in the namespace 'StockHill.Web.MasterPages' (are you missing an assembly reference?) and (I think related) error:'object' does not contain a definition for 'Master' This is my code: public new StockHill.Web.MasterPages.DefaultLayoutMain Master { get { return ((StockHill.Web.MasterPages.DefaultLayoutMain)(base.Master)); }

OnChange Behaving Differently On Firefox And IE? www.codingforums.com

I am creating web page. I am in the early stages of building. But I have found that my onChange function behaves different on Firefox and IE.It work as it suppose to on Firefox but not on IE. On IE, onChange is not triggered when you select the an option. But triggers when you click the mouse the second time. Here the code, <html> <head> <title>Compatibility Test</title> [code].....

Applications :: Unable To Use Multiple Safari Windows forums.macrumors.com

Now that I got my 24" LCD that apparently can't be pivot from landscape to portrait mode in OSX, I would like to at least be able to view two web pages side by side, since the 24" display is wide enough for this. Alas, I don't see a way of opening a second instance of Safari (the way you can do it with IE Explorer in Windows side).

Javascript :: Mousewheel Scroll On Flash Content stackoverflow.com

I'm trying to change event for mousewheel after leaving / entering flash content. on flash - I want to scroll flash carousel on web - I want to scroll web content My problem is: Different browsers give different "focus" for flash element and therefore not properly triggered in events: Event.MOUSE_LEAVE, MouseEvent.MOUSE_OVER. I have JS triggered for MOUSE_OVER and MOUSE_LEAVE but this seems not to work. Also mouseWheel is attributed to the browser, not a flash object. Firefox 4.x/5.0 - fires them properly, without clicking Chrome 12.0.742.112 - it fires after the grant of "focus" or click on the flash object, like IE 9.0.1 JS code: function stopWheel(e){ if(!e){ e = window.event; } /* IE7, IE8, Chrome, Safari */ if(e.preventDefault) { e.preventDefault(); } /* Chrome, Safari, Firefox */ [Code]....

IWeb 09 :: Photo Albums Not Appearing In Safari On IPad discussions.apple.com

Using iWeb, I have successfully dragged photo albums onto a page and published the page (part of several). The published page displays and works properly when viewed in Safari on any standard laptop or workstation. The albums do not display however on the iPad.

Internet Explorer 8 - IE 8 To Reload A Page In Compatibility View? stackoverflow.com

I'm testing a fairly complex Javascript-based web application in Internet Explorer 8 on Windows Vista. After loading the application, IE is in "standards" browser mode and "IE 8 standards" document mode. While the application is running, IE will sometimes reload the page and display a message saying something like "A display problem with (URL) has caused Internet Explorer to reload the page in compatibility view" (not the exact message, I'm on a non-English version of Vista). After the reload, the browser is in Quirks mode. Debugging the Javascript code has been an exercise in futility since the problem can't be reliably reproduced or narrowed down

Web Forms :: Reference The Images On Masterpage So They Work Both On Pages In The Root Of Web Site And... forums.asp.net

I have a MasterPage which is in the root folder of my web. The MasterPage contains an image which is stored in a folder called Imaages which is below the root folder. The reference in the MasterPage is: <img src="Images/LeagueHeader.gif" alt="LeagueHeader"/> [Code].... The pages in the sub folders work, but the ones in the root do not.How do I reference the images on my Masterpage so they work both on pages in the root of my web site and in sub folders?

Localization :: Page Can't Display Chinese Characters? forums.asp.net

I spent a couple days to try to find the solutions online. I am developing a web site which needs to display some Chinese characters. In the MasterPage, I put <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> in the <Head>. In the MasterPage there are are navigation menus which are Chinese character. I have a web page Default.aspx which uses the MasterPage. In Default.aspx I have some <asp:Label>s which are Chinese characters. On the local computer, I can see all of the Chinese characters. But the problem is: after I ftp all of the files to my web server (DiscountAsp.Net), I only can see the Chinese characters in the MasterPage, I can not see the Chinese characters which belongs to the Default.aspx. Instead of Chinese characters, it displayed weird letters.

Enlarging Fonts In Safari? discussions.apple.com

Other web browsers (IE, Firefox), let the user enlarge the font size for web pages. The ipad's Safari browser does not do this. This makes reading some web sites very difficult -- Such as the Apple Support Forum you're reading now. Panning and zooming the screen ins a very poor solution, because some sites won't zoom, but also because you have to scroll horizontally for every line of text. Is there a font size adjustment in the ipad Safari browser? Information: iPhone 4, iPad, MacBook Pro iOS 4

CSS Styles Not Applied On Dynamic Elements In Internet Explorer 7? stackoverflow.com

When we render dynamic elements with Javascript in IE7, the CSS styles are not applied. When we use the Web Developer toolbar to view the page, the dynamic elements do not appear. Pages render fine in Firefox, Chrome, and Safari. Is IE7 unable to apply CSS styles to dynamically created elements? IE8 renders the dynamic elements properly. This question applies to IE8 since we use the meta tag to force IE8 to render in IE7 mode.

Copy Web Pages Viewed In Safari And Paste In Pages Document? forums.macrumors.com

Can you copy from a web page viewed in Safari and then paste it in a Pages document (on the iPad)?

Web Forms :: View The Submenus Without Changing The Compatability Settings? forums.asp.net

i created a navigation page by using asp:menu control,and after when i viewed it in Internet explorer8, the SubMenu's are not displaying. But when i checked the Compatibility view button which is next ot Stop and Refresh Or in Tools->CompatabilityView. then it is displaying the submenus. same problem exists in Google Chrome but not in FireFox how to view the submenus without changing the Compatability settings.

Cannot View A Live Webcam On My IPad 2 discussions.apple.com

I have Safari. Why can't I view live web cams? Info:iPad 2

Viewing Web Sites With Adobe Flash Contents? discussions.apple.com

How can I view web sites with adobe Flash player plugin for safari on iPad? Information: Ipad Other OS iPad 64

Eclipse Internal Browser To The Chrome Web Browser? stackoverflow.com

PHP Eclipse Internal Browser set the Internal Browser to the Chrome Web Browser.Clicked Windows > web Browser > Chrome (the other options of course were default, IE, FF) viewing a web page in the External Chrome Browser rendered differently when viewed in the PHP Eclipse Internal Browser(Set To Chrome).In comparing internal PHP Eclipse browser set to Chrome with external Chrome Browser.Negative Margins showed differently, Text Line heights showed differently.the presentation would be the same on the Internal and External Browser.changed the PHP Eclipse Internal Browser to use IE and Fire Fox.The presentation of webpages in internal PHP Eclipse browser does not seem to change despite changing the web browser it is to use.

Switching Betwen Datasheet And Form View - Version: Any Version www.utteraccess.com

I've got a main form with a subform on it. I've got a button on my mainform, that when pressed will determin what view the subform is in, either datasheet or form view. i want to be able to change views, ie, if its in form view, change it to datasheet view, and if its in datasheet view, change it to form view. Forms!frmCustomer.sfrmCustomerProjects.Form.CurrentView determines the view, but I am not sure how to set it, when I do Forms!frmCustomer.sfrmCustomerProjects.Form.CurrentView = 2, I get an error message saying the control is read only Any idea's

Visual Studio :: Masterpage Won't Display In The Editor? forums.asp.net

I've got an interesting one here - I honestly don't think I've had this issue before. My folder system looks something like this (as noobish as it may be): -Root ../Pages ../Pages/Admin ../Pages/OtherFolder ../Pages/AnotherFolder etc. Now - I've got a Masterpage file in the Pages folder which is the general look of the entire site. Then, in each Pages Folder there's going to be another Masterpage inheriting the Page Folder Masterpage File.This seemed like a very simple and standard approach. But I'm having an issue. When editing the application in VWD2008E - I can see the Page Masterpage file just fine in Design View. But when trying to look at the the Masterpage Files, say the Admin Folder or the OtherFolder, in Design View - nothing shows except the Page Masterpage. It's really frustrating. Oddly, when running the application, no errors pop up and the sub-folder masterpages/pages show up just fine. They simply won't display in the editor.

Android :: Images In Web View On Motorola Droid stackoverflow.com

I am developing a Java Android application that displays web content from the assets folder in a web view. I had no problem getting this content to display in the application but I am confused as to why my images are not displaying properly. I'm working with a Motorola Droid that is supposed to be 480x854 resolution. When I create banner images using these dimensions and attempt to display them in the web view they're enormous and they flow off of the screen. It doesn't appear that the web view is actually 480x854. Can somebody let me know what I am missing here? I do not know what size to set the images to so they are just right.

Content Not Showing Up After LoopedSlider In IE In Wordpress Install / Fix It? www.sitepoint.com

I am using a WooTheme for Wordpress that has the loopedSlider script in it. Everything works fine in Firefox and Safari, etc. But in IE, no content is displayed after the slider. However, when you view source, you can see that it is there, but it is not displayed on the screen.code...

Storing Querystring Variables In Hidden Form Elements In Masterpage? www.sitepoint.com

I would like to store some querystring variables in hidden form elements on the masterpage and reference them from web user controls so that I can preserve the information and consolidate the code in one place... However, I cannot seem to get access to the information from the web user controls.... I am using public variables on the masterpage to set and get the hidden form element data, e.g: [code].....

Creating An Pdf From A Memorystream To A Web Browser www.vbforums.com

I am dynamically creating an pdf from a memorystream to a web browser, using itextsharp. It is called via https and it works in IE and Firefox but not Safari or Opera. I don't care about Opera but I do want it to work in Safari though. If I make the call with http it does work (creates the pdf) in Safari but not https The error I get is The error is: unknown error (CFURLErrorDomain:303).

Web Forms :: Lock Gridview Header In IE8 Browser Normal View? forums.asp.net

I am using IE8 browser. I would like to Lock column header of gridview in IE 8 Normal View. I can lock in In compatibility View . I could not Lock In Normal view of IE8 Browser. I have developed Asp.net Application(c#) usingNote: Gridview column Header is dynamically loaded as per Client Requirement.

IWeb 09 :: Pages Have Different Lengths In Safari Versus Firefox discussions.apple.com

I have a website created with iWeb '09 that contains some rather long HTML tables that I inserted using HTML snippets. These tables display properly in Safari v 5.0.2 and Chrome (6.0.472.59), but get cut off at the bottom when I use Firefox 3.6.9. Alternatively, if I force the web page to be long enough to satisfy Firefox, then I have too much dead (i.e., empty) space with Safari and Chrome. See this page: [URL] Information: Mac Pro Quad 2.66 Mac OS X (10.6.4)

Form In Internet Explorer Or Firefox And Click On Submit? www.phpfreaks.com

When I fill my php form in internet explorer or firefox and click on submit, the spry alidaitons will be displayed; but using google chrome or safari they are not displayed.I tried the form using safari but on localhost, they are displayed but over the internet the form will skip to the database and will not be validated.

Web Forms :: Force IE8 To Render In Standard Mode? forums.asp.net

We are developing a web application that will be used exclusively on intranets. We are designing the site to work on IE8 and have come across an issue where IE7 mode (or compatibility mode) really screw everything around. Is there a way to force IE8 to display in IE8 mode and not allow the user to override this?I have tried using the following:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"><meta http-equiv="X-UA-Compatible" content="IE=8" > Also note that all our users will be using IE8.

Web Forms :: DropDownList Width? forums.asp.net

I am facing one strange scenario i.e. I am using dropdown list in my web form with width as 100px and populates the list from database. But when I view my dropdown list in IE it hides the long text after 100px, but when I view the same form in firefox then the dropdown's list box width is stretched according to the long text size.How can we achieve the same behavior of firefox in IE too.

Css Styling With Safari And IE 8? stackoverflow.com

I am using a css stylesheet in one of my web pages. The styles work perfect for Mozilla and IE 7 and below. However theres a problem with it in IE8 and safari. The width of class in the css is 700px. I have used a contentplaceholder in the master page from where this web page inherits. Now in IE8 it displays a little less than 700px. I think it displays a width of 600px. How can I solve this problem? Is there a tool for IE 8 similar to Firebug? EDITED: I have figured exactly where the problem is by debugging the page source and the css. I dont know how I can change the width and alignment for ONLY IE8 I have fixed it for IE8 but having issues with Mac Safari. Anyway to target ONLY safari?

JQuery :: Firefox Does Not Render <input> Element Inside The Modal Dialog stackoverflow.com

I have tried to search for any clues but have not discovered any. Take a look at the following page: [UR] Popup is renders correctly in IE, Chrome, Safari and Opera. Firefox 3.6.13 does not render the popup with correctly. You can view withoutinput.aspx at the same URL to see that Firefox renders it correctly, since this page does not have <input> element. I have tried the following with no resolution to this peculiar problem: Changed doctype Used to enclose <input> Used to enclose <input> Used all possible CSS display attributes for <input>

Safari 5 Developer Tools Not Working (Windows 7) forums.techguy.org

I can't get the Safari developer tools to work. I have enabled the "Develop" menu option, but none of the tools display.I added the "Web Inspector" button to my toolbar, but the "Web Inspector" does not display.If I right-click on a page element and choose "Inspect Element" nothing happens.I have uninstalled, and reinstalled Safari and rebooted yet none of the developer tools will display.I checked and Javascript is enabled and popups are allowed.

Safari :: 5.1.4 Verify Certificate Errors discussions.apple.com

After upgrading to Safari 5.1.4 I'm constantly getting error meesage pop-ups similar to these.Currently I'm running Lion 10.7.3 My computer time & date is correct.� I have reset Safari's cache / cookies, etc to no no avail.�On some websites its no displaying graphics properly and its starting to get extremely frustrating.Safari is running in 64-bit mode�.Is it time to uninstall Safari 5.1.4 and install the previous release? Message was edited by: blads Info:Mac Pro, Mac OS X (10.7.3), 24" Cinema Display

Mac Safari :: Webpages Not Loading Properly - No Images discussions.apple.com

I am having a problem in safari loading problem, i.e it is not loading properly for the last 5 days. Only text is shown but no images. i.e. websites are not displaying in proper order. I have checked the display images option in safari preferences and also change the user agent via Develop option but all in vain. Information: Mac OS X (10.6.6)

How To Use JQuery Scripts With MasterPage / Content Page Scenario stackoverflow.com

I have created a great stand-alone web form in asp.net utilizing many jQuery features and CSS. It works fine. When I re-create it as a web content form as part of a MasterPage, my jQuery and javascript is completely ignored. I am referencing the pertinent jQuery and CSS in my of the MasterPage. I have a content placeholder at the bottom of the masterpage called "ScriptContent". In my content page, this is where I plug in the various jQuery methods and javascript. When I view the page source everything is there. However, it's all being ignored so to speak. What am I doing wrong?

Gallery Coding - Not Working In IE? www.webdeveloper.com

I've created a website for a client for their business, and the javascript is working in Safari & Mozilla, but not in IE. In IE you can click the image, but nothing activates. The ability to move from left to right to view images still works however. I'm wondering if having both of the javascript capabilities is fighting with the IE browser?I would love to hear of a solution - I'm not an expert in Javascript by any means.

IE Extremely Choppy When Scrolling Webpage? forums.asp.net

for some reason when i view it in IE the page scrolling is extremely choppy. When i view it in firefox or safari the site is really smooth.I am not sure if i added somthing which made IE choppy because i do not remember it being choppy.... but i never really paid attention until i started to notice it.Is scrolling the site in IE choppy for you also?I tried to remove all the jquery and java - scripts i had, still choppy when scrolling. I'm not sure whats going on? The website is quite image heavy, even backgrounds are quite big, however firefox and safari have not problems... is it a IE chaching problem?

Web Forms :: Hiding A Dynamic Menu In Masterpage? forums.asp.net

i have dynamic menu in masterpage . in one place i have to dispaly a page in the browser that page is binded with the master page in that page there is another page that consist of onother page this page is aslo binded with masterpage . now i needed to hide the dynamic menu in the second page i tried in other ie.. but it is not comming any control outside of masterpage contentplaceholder can be accessible or not

Bullet Lists - Symbols Don't Appear On My Browser View forums.asp.net

The symbols don't appear on my browser view, but they do show on the display for the masterPage. The list code is: <asp:BulletedList ID="BulletedList1" runat="server" Width="200px" CssClass="list" BulletStyle="Square" BackColor="#FFFF99"> <asp:ListItem>Free Evaluations</asp:ListItem><asp:ListItem Value="Disease Diagnosis"></asp:ListItem><asp:ListItem>Standarized Pruning</asp:ListItem><asp:ListItem>Stump Grinding</asp:ListItem><asp:ListItem Value="Hedge Trimming"></asp:ListItem><asp:ListItem>Fertilization</asp:ListItem><asp:ListItem>Tree Planting</asp:ListItem><asp:ListItem>Free Mulch</asp:ListItem></asp:BulletedList> Why can I see the symbols on the design page but not on the web site?

IWeb 09 :: Scroll Over Highlight Function Not Working On Links discussions.apple.com

I've created a custom nav bar in iWeb [URL]. I have it set up so that the text highlights when scrolled over. This function works in iWeb but does not work on my published site in Safari; however, works in my published site on IE. Any ideas on how to get the scroll over highlight to work on my published safari site? All the links work properly. Information: MacBook Pro Mac OS X (10.6.3)

LINK : Fatal Error LNK1104: www.xtremevbtalk.com

Hi wizzies! well my problem is that whenever I try to compile a DLL, that has a binary compatibility set(With the correct file at valid location), it gives me the following error;---------------------------Microsoft Visual Basic---------------------------Unexpected error occurred in code generator or linker. --View error messages?---------------------------Yes No Help ---------------------------And the detail error message is as ...LINK : fatal error LNK1104: cannot open file "[somepath][somefile.dll]"But if I compile with "No Compatibility", then it properly makes the DLL.Can anyone help me with this one? Thanks in advance...

IE7 Ignores 'overflow:hidden' When Moving Element forums.devshed.com

In the top right of the page is a JavaScript (Prototype) Carousel that scrolls through images when you click the arrows. It works properly in all browsers except IE 6 & 7 (it does work properly in IE 8) with my primary concern being IE 7. When you click on the right arrow to scroll to the next image it scrolls properly but the entire strip of images is displayed and it sites on top of the page's content.I've tried all of the overflow:hidden hacks I could find so.

C# - IIS6 Ignores IE7 Compatibility Mode Tag In Web.config? stackoverflow.com

From; ASP.NET Ignores IE7 Compatibility Mode Tag in Web.config <system.web> <httpProtocol> <customHeaders> <clear /> <add name="X-UA-Compatible" value="IE=EmulateIE7" /> </customHeaders> </httpProtocol> </system.web> Related to the answer Chris Shouts added; When I attempt to add the <httpProtocols> sections into the <system.web> I get Parser Error Message: Unrecognized configuration section system.web/httpProtocol. I ideally need to be able to add customHeaders through the IIS6 web.config (I however am assuming this won't work)

AJAX :: Webservice Call From Javascript Fails If Masterpage In Force? forums.asp.net

I am calling a web service via Javascript. I tried it first in a web page that does not have a Masterpage and it worked perfectly. Then I moved everything over to a web page that does use a Masterpage, and I get a "Microsoft JScript runtime error: Object required" on the javascript statement that calls the web service. My javascript statements look like so: [Code].... The web service looks like: [Code].... The page source is: [Code]....

VB6/VBA Autologin To IE 6 Web Page With Frames www.xtremevbtalk.com

This question was posted under "populate internet explorer forms with excel data" and "excel to Internet explorer form and back" and others but it wasn't clear how to deal with multi-frame/pane web pages.Group,Using VBAI am trying to automatically log on to a web page that has two frames. The HTML for the logon is on the right hand frame. Right click on the right of the page at http://www.alaron.ranweb.com/login/alr.asp and select View Source to see the HTML/frame code.I assume that the logon HTML code is in form 1 (Forms(1)?) but I am not sure. Logically, the left frame would be Forms(0) and the right Frame is Forms(1). I have tried using SendKeys but it does not seem to work with framed web pages.Here is the function:Option ExplicitFunction TestLogonIE() As Boolean'test to logon to an IE web page Dim IE As Object Dim hwnd As Long Dim oForm As Object Set IE = CreateObject("InternetExplorer.Application") IE.Navigate "http://www.alaron.ranweb.com/login/alr.asp" IE.Visible = True Do While IE.Busy And IE.ReadyState <> 4 DoEvents 'wait until IE is done loading page. Loop hwnd = IE.hwnd SetFocusToBrowser (hwnd) 'API call to set focus to newly opened browser window, not sure if required, can be deleted? ' *** the code below does not work Set oForm = IE.Document.Forms(1) oForm.Elements("Username").Value = "username" oForm.Elements("Password").Value = "password" oForm("AnchorLogOn").Click End function Declare Function GetWindow Lib "user32" (ByVal hwnd As Long, _ ByVal wCmd As Long) As Long Declare Function GetWindowLong Lib "user32" _ Alias "GetWindowLongA" (ByVal hwnd As Long, _ ByVal nIndex As Long) As Long Declare Function SetFocusAPI Lib "user32" _ Alias "SetFocus" (ByVal hwnd As Long) As Long Declare Function GetFocus Lib "user32" () As Long Declare Function SendMessage Lib "user32" _ Alias "SendMessageA" (ByVal hwnd As Long, _ ByVal wMsg As Long, ByVal wParam As Long, _ lParam As Long) As Long 'GetWindow constants Public Const GW_CHILD = 5 'GetWindowLong constants Public Const GWL_STYLE = (-16) Public Const WS_VSCROLL = &H200000 Sub SetFocusToBrowser(hBrowserHwnd As Long) Dim lStyle As Long Dim lResult As Long Dim hwnd As Long hwnd = hBrowserHwnd While (lResult = 0) And (hwnd <> 0) hwnd = GetWindow(hwnd, GW_CHILD) lStyle = GetWindowLong(hwnd, GWL_STYLE) lResult = lStyle And WS_VSCROLL Wend SetFocusAPI (hwnd) End Sub

How To Update Panel And Masterpage bytes.com

Update panel and masterpage problem hav a problem with updatepanel on the page. i have 2 update panels on the page which are wortking fine, but there is a display which is on masterpage used by the page which is not displaying as it is partial postback...and i cannot place it in other update panel as it is getting error display from masterpage which i cannot change as it is usde by lot of other pages.

"Result Of Expression 'this.form.fireEvent' [undefined] Is Not A Function" www.codingforums.com

My webpage can work normally in IE but not in Safari(e.g. when I clicked on some buttons like 'Delete' button, the page opened in Safari stays the same while it should delete the object chosen). When I tried debugging on Safari, after clicking the 'update' button, this message error appeared: "TypeError: Result of expression 'this.form.fireEvent' [undefined] is not a function". I believe this code makes the incompatability between the 2 browser: How should I amend the script for it to work on 2 browser concurrently?

OS X :: Open Specific Website In Safari When Firefox Is Default? forums.macrumors.com

I have a website that I need to open with Safari as it won't display properly in Firefox 3.6.3. From the Address Bar in Safari, I dragged a link to my desktop, right-clicked and checked it to always open with Safari. The name of the link is something like "PITA.webloc" When it opens that first time, it dose open in Safari, but subsequently, always opens in FF. I also right-clicked to "Get Info" and indicated it to always open with Safari. While "Get Info" shows that correctly, it still always opens in FF.

Why IE And Opera Won't Prevent This Form From Submitting www.sitepoint.com

Anybody have a clue why IE and Opera wont prevent this form from submitting? [URL] If you click "Submit Form" in FX/Safari/Chrome it shows how it should work - it is supposed to prevent submission unless the spam question is filled out correctly. However IE/Opera only show the red error if you put a value in the input. But they still do not prevent submission. In IE/Opera it goes strait to the php validation. I am using the [URL]

Web Forms :: Styling Of Checkboxlist And Radiobuttonlist In IE forums.asp.net

I have this issue which isstopping me from completing my web forms. there are checkbox lists and radiobutton lists in my page. In FF, they are displayed properly. But in IE, there is an extra box around the checkbox and an additional circle around the radiobuttons. I tried using different stylehseets with no results.

Forms Data Controls :: Need To Display All These Values In A Detail View? forums.asp.net

I'm currently working on a project, i have got a web form and some text fields and drop down lists and radio buttons, i manage to store them in the database after the users click on the submit button. Now i need to display all these values in a detail view in a new web form page. Is it possible? How should i go about doing it or is there any other alternatives since i did not use the grid view for users to store their information.

Web Forms :: Insert Custom Method To System.Web.UI.MasterPage? forums.asp.net

]just would like to know if there's a way i could call a custom method in the OnLoad event of System.Web.UI.MasterPage? for example, everytime the masterpage was used by a page, the code below executes: [Code].... i dont want to create a class that inherits System.Web.UI.MasterPage as base class. i just want a chunk of code be rendered everytime the masterpage is invoked. i dont know if partial class will do the trick and if this can be done

Web Forms :: Disable Skin For One Particular Text Box? forums.asp.net

i am using skin for text boxes , for one perticular text box i don't wont any skin properties how can i disable following code methods i used i sets globally in master page <%@ Master EnableTheming="true" Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %> in skinFile.skin i used this tag <asp:TextBox runat="server" BorderColor="#6BB7E1" BorderStyle="Solid" BorderWidth="1px"></asp:TextBox> for disable one text box i followed this method <asp:TextBox ID="tb_search" runat="server" BorderStyle="None" Width="235px" EnableTheming="False"></asp:TextBox> with this, skin style not appeared in disable mode in all mozilla, and chorme but IE 6 still i am getting skin properties , how can disable skin properties for IE 6 browser

Applications :: Using Safari / Websites Not Displaying Properly? forums.macrumors.com

The last 2 days my sites in safari haven't been displaying properly. Here's an example: As you can see the page is displaying in half the window. Other users are having no problem in safari, just me. When I reset Safari the problem seems to go away, only to come back in a couple hours. This problem has only come about in the last couple days, anyone ever have this problem and know how to fix it?

Load Data From One Form To Another www.dreamincode.net

im new to vb.net.i have two forms.first form contains two textboxes and a view button.when i click my view button second form open and it displays datagrid contains values.this works properly.but i want do some more. when i double click the datagridviewcell of second form how to pass the particular cell value to my first form's textboxes.

IPhone :: 4s Calendar Displays Incorrectly In List View? discussions.apple.com

Having an issue with the calendar on my iPhone 4S. Events display one day late in list view, but display properly in month view. For instance, an event I just created for tomorrow, Thursday April 5th, will display under Friday April 6th in the list view, but display properly in day and month views. Also some events are simply not shown. For instance, for a three day consecutive event, the first two events are shifted forward a day and the third drops out of view. All events are synced and display properly on my iPad, however. Info: iPhone 4S, iOS 5.1

AJAX :: Windows XP - Yahoo Hosting - Site Worked Fine In IE But Not In Firefox www.webdeveloper.com

I ran in to a strange problem with a client who uses Yahoo hosting. The web site uses AJAX (jquery, php, javascript). There is no problem viewing the site using IE8, Firefox on a Windows 7 computer. On an XP computer the site worked fine in IE, but not in Firefox. The site never worked properly using Chrome or Safari. I tried jquery 1.3.2 and 1.4.2 but got the same results. I use this same combination (jquery, php, javascript) on other web hosts and don't have these problems. I know that Yahoo hosting injects tracking code in the web pages it serves for the sites it hosts (at least for my client). I think this could be the source of the problem. When I removed jquery (I was only using the load function anyway) and used my own code- the problem disappeared. The site now works in all browsers.

Safari :: Won't Display Embedded Google Calendars discussions.apple.com

Has anyone encountered Safari's inablity to display embedded Google calendars on web pages?

Web Forms :: File Upload Field Is Not Displaying Correctly Accross Multiple Browsers forums.asp.net

I have the following in my aspx page <asp:FileUpload ID="pdfupload" runat="server" Width="500px" /> Within IE it displays correctly Within Firefox its cut short.. Within Chrome no textbox is visable, just a "Choose File" button Within Opera it displays like in IE correctly Within Safari no textbox is visable, just a "Choose File" button Now when i say correctly, i mean the width of the control, i do realize that each browser displays input controls differently, so just not sure if i have to add more property settings to the control to help have a consistant feel or am i out of luck on that?

Design View Freezes In Visual Studio 2008 Web Application? stackoverflow.com

i have visual studio 2008 and ms office 2007..when i try to develop a web application in vs 2008, i didnt able to open the design view of the web page.. i can only able to see the source view..came to know by googling as, there is some compatibility issues between vs 2008 and ms office 2007 in web authoring components.

AJAX :: Modal Popup In IE 8 Rendering In Quirks Mode? forums.asp.net

I seem to be experiencing a problem with the modal popup on a page. I'm forcing IE 8 to render with the IE 5 engine using: <meta http-equiv="X-UA-Compatible" content="IE=5" /> as a quick fix while true IE 8 compatibility is being worked on. Problem is the modal popup doesn't really work. It just displays at the bottom of the page, and when I scroll up/down, the page gets wider and wider..

Tooltips Not Showing In Desktop Report Viewer social.msdn.microsoft.com

I added tooltips to�the column headings in a�report deployed to SQL05 RSvc.� When the report is viewed in the web-based report viewer, the tooltips display properly.� The report is normally launched by a Winforms app that opens a window containing a .Net report viewer (2008 version).� In this viewer, the tooltips do not display.� Does the desktop viewer not support tooltips on report items?

Programmatically Detect Browser Handles Window.close()? stackoverflow.com

Different web browsers handle the window.close() function differently. IE prompts the user for confirmation, while Firefox and Safari just fail to honor it unless the window was originally opened with Javascript and display a message saying as much in the console. A third party web application used internally in our organization that I support displays a 'close' button at the end of a wizard-like series of pages. This works well for IE, which is what the majority of our users use. However, this obviously fails in FF. I'd prefer to leave the button in and use Javascript to gracefully degrade the UI by not displaying that button in any browser that will not perform the window.close(). As a rule of thumb, I try to check browser capability rather than relying on a hard-coded policy based on browser detection whenever possible. Is there a way to programmatically check the support for window.close() so I can determine whether the button should be displayed in the first place?

IPad :: IOS 7.1.2 - Safari / FaceTime Not Working discussions.apple.com

Safari & Time Face not working but Skype running properly.  Info: iPad, iOS 7.1.2

JQuery :: Date Picker Not Working Properly In IE 7? forum.jquery.com

The Date J query Date Picker Not working properly in IE 7