browser

Why does using document.write to create an iframe "cancel out" all remaining Javascript?

This happens in all browsers, so there must be a reason. Example: <html> <body> <script>var a="support/"; var aa='<iframe src="http://google.com/' + a + '" />'; document.write(aa)</script> <script>alert('test')</script> </body> </html> The code after the iframe write (in this case alert('test')) doesn't execute. Why? ...

Need a print button in a browser that will print a PDF file

I need to set up a print button in HTML that will print a certain PDF file, hopefully without having to download the file first. I've tried a few things but some only work in IE. and some require downloading the file as an embedded object which also is not acceptable. Embedding javascript in the PDF sounds the most promising, but I'd ra...

Why does the browser go crazy when I write things like <div/>?

I mean, aren't <div/> and <div></div> supposed to be exactly the same thing? By browser I mean the latest Firefox and Internet Explorer. And by go crazy I mean ignore styles of tags that contain the <div/>. ...

Seeking opinions on vendor-specific prefixes

Specifically in relation to this article on 'A List Apart': http://www.alistapart.com/articles/prefix-or-posthack/ I was hesitant initially, as they did seem a bit hack-ish, but I've started working with the prefixes here and there for progressive enhancement and I've got to say that for me the technique has actually gotten me more exc...

YUI Two levels of tabs control browser history.

I want to be able to have two levels of tabs control the browser history, to allow for back/forward button functions. I would like the first row of tabs open up a set of links, that would open one more step, and then allow the back button to trace back each step one by one. Example is: My Friends (The First Tab) --Click to--> Joe Brown...

Detecting IE browser version using PHP

I'm using $_SERVER['HTTP_USER_AGENT'] to detect user's browser. When I run the var_dump on my localhost on IE8 it returns: ...compatible; MSIE 8.0; ... But when I upload it to my host (godaddy), I get: ...compatible; MSIE 7.0; ... What's the problem? ...

Flex canvas resizing

Hello, I have a certain behavior that i want from my screen to implement in Flex. My screen is devided to 2 areas: Navigator pane and content pane.(from left to right) When I shrink the browser, i want the content-pane show scroll bars and the components stay the same size originally. When I expand the browser to right(like in wide scree...

display vector images in browser

I need to display vector images in the following formats(.eps, .ai, .cdr, .pdf, .cs3, .cs5 ) in major web browsers (IE, firefox, safari, chrome). How do I accomplish the same? I tried searching for java libraries that will convert the vector images to bitmaps but could not find a library that will convert all the formats mentioned abo...

Order of JavaScript <script> tag executions not guaranteed in major browsers?

Is it true that there are no guarantees across major browsers that the following script tags will always execute both sequentially AND in order of declaration? i.e. should I assume that the following code will not always yield x == 'ab' in alert? <head> <script type="text/javascript"> //tag A var x = x || ''; x += 'a'; ...

Is 5MB the de facto limit for W3C Web Storage?

I am looking into using browser sessionStorage for a web application, and was trying to find current information on size limitations. It appears most desktop browsers have imposed a 5MB limit. However, I am not finding many recent articles nor information on the mobile browsers. The Disk space of the W3C Web Storage specification says...

Writing a simple web crawler that interacts with the browser (Java)

Hi guys, I need to create an automated process (preferably using Java) that will: Open browser with specific url. Login, using the username and password specified. Follow one of the links on the page. Refresh the browser. Log out. This is basically done to gather some statistics for analysis. Every time a user follows the link a bun...

Brwser and http

Where is the link at the framework layer between the Web veiw and HTTP [Browser Activity] | V [web view , Web Core , Web Client , webkit | V [?????????????????????????????????] | V [Google Http , andorid Http clients] | V [java.net.socket] ...

Browser redirect tool?

I need to create a tool that sits in Windows in the background and everytime a certain web page is entered, e.g. www.google.com, the tool should automatically redirect to another site. (Not intended to be a virus, I promise. There is actually a genuine need for this for a client.) Is this feasible? I know there are lots of viruses/spyw...

To tell Javascript version of your browser

I have the following script from http://javascript.about.com/library/bljver.htm <script type="text/javascript"> var jsver = 1.0; </script> <script language="Javascript1.1"> jsver = 1.1; </script> <script language="Javascript1.2"> jsver = 1.2; </script> <script language="Javascript1.3"> jsver = 1.3; </script> <script language="Javascript...

Need ASP menu control that works on all browsers, including mobile

I'm writing a web site (ASP.NET/C#) that is specifically targeted at mobile phones. On the master page I have put an ASP menu. This works fine in IE8 and Firefox, but when I try viewing it from my Nokia browser, while the menu is visible, its behavior is incorrect: I tap on the menu to open it, and instead of opening the next level of ...

Query on browsers

Hi All, I have used Firefox, Chrome and now Opera. Everytime when I switch browsers, I find that some of the websites don't display or display incorrectly i.e. in terms of box alignments etc. I have never understood why does this happen. Which property differs in all the browsers that leads to this issue? ...

What calendar control can I use for mobile web site?

I'm developing a web site in ASP.NET/C# that is targeted at mobile users. What calendar control do you recommend, that will work on Nokia, Safari, Opera? ...

Identify Terminal on WTS from Web Server/Javascript

I have a web server that shows an application that in turn manages some networked devices. Previously, the application was used by "fat clients", and it was trivial to associate a fat client with the device - by means of the fat clients' IP address. Now, in a Terminal Server environment with "real" thin clients (Wyse Terminals, e.g.) sh...

browser cache emulation in jmeter?

Running some user-load tests with jmeter, and noticed that for each page load after the first load, the load sizes are similar. This leads me to believe that jmeter's simulation does not use browser cache emulation (e.g. the caching of css and javascript). Anyone know of a method for emulating browser cache in jmeter? ...

Is is possible to create a custom view when accessing ftp folders through a browser?

I have a number of ftp accounts on my website where each account is accessible by a limited number of people. The accounts can be accessed for download by going to ftp.mysite.com in a browser. I would like to make the directory display look like the rest of the site when people goto ftp.mysite.com. Is this possible? Edit: Not using any...