browser

What's the best practice to transfer a variable value to javascript from server?

I'm developing a pet project with jQuery. Now the application requires some variable value is transferred to client javascript when the page is loaded. I'm wondering what's the best practice to do it. I can image to do it in two ways. First, render it to be a javascript variable in the page. <script> <?php echo "var maxid = $maxid;"?> ...

How does the the browser decide which form fields are username/password?

Modern browsers save passwords. Which criteria affect this decision? Background: I have a registration page with the following form: <form action="/BlaBla/Account/Register" method="post"> <div> <fieldset> <legend>Account Information</legend> <p> <label for="username"> ...

I Want to draw a hierarchial tree in a browser

I want to draw a hierarchial tree in a browser. I have used CSS and HTML and Javascript to play with some basic UI stuff in Browser. But I want to draw cool nodes and awesome connectors and come up with an aesthetic hierarchial tree (not Windows Explorer Folder tree). At this point the nodes in the tree will be like the flash-cards that...

Wrong .aspx page layout in Blackberry browser

Hi friends, I have designed the website in Asp.net with C#, Its working fine on the Firefox I want to run the same page on the Blackberry, but page is not opening properly in blackberry and also i did insert query on the same page which also not working on the page when opening on the blackberry. The page is displaying but is not f...

spacing issues with Blackberry Browser 4.2

I am writing a web application targeting the Blackberry Browser 4.2. I want to had some vertical spacing between a list of links. I know 4.2 doesn't support padding and margin but I thought it supported height or line-height. I can't get either to work. I really don't want to use a line break. Any suggestions ...

transparent gif help

Hi, I have a website that I need to make some images that are colored, with a 45% opacity, so you can see through to the background. My problem is that for obvious reasons I cannot use a .png. I have used a gif. When I get it on the site, the opacity has read as far as the color, but you cannot see through it. How do I make this happen ...

Embed xna game in a webpage

Is there a way to run an xna game from a web page without installing anything? Something similiar to java, silverlight or very close to a wpf browser applications (XBAP). Scenario: Go on webpage, Get asked to install the game. Game installs, game screen shows up in webpage. Can full screen, etc. The game is a full blown xna ...

Xbap application: How can I prompt user to confirm exit when the user close the browser or browser tab?

application_exit and session_ending event in app.xaml cannot help. Is there any way to achieve this? ...

How can IE lose ability to execute Java applets?

I have an applet which is used on our company intranet. From time to time there are users who are suddenly no longer able to use the applet and they get an error message. I notice that the browser (IE6) no longer displays the Tools->Open Java Console menu. Java 1.5 is still installed and I can open the Java settings dialog from the Cont...

Upload of very large files

Hi there, I am looking for a way to upload very large files, means, 5 GB or more, via a Web-Interface. The language/server system can be chosen. POST-Requests seem not to work since the browser-internal filepointer only handles files up to 2 GB. Other options would be e.g. an Java-applet, a FTP-Request (for example done by a Javascript-...

Alternative to User-Agent in .jsp

Sometimes in my .jsp i use User-Agent in order to define what .css class or attribute to use dependently upon client's browser. example: <c:set var="browser" value="${header['User-Agent']}" scope="session"/> <c:if test="${(fn:contains(browser,'Safari'))||(fn:contains(browser,'Chrome'))}"> <c:set var="cellClass" va...

My asp .net Master Page is not correctly rendering in Firefox.

Somebody please help..... I am even starting to doubt ASP .Net....i should have opted for php on this project... It seems ASP >net is only good in IE and never good in Firefox,Safari etc Is there a way to just make my pages render correctly in Other browsers other than IE..... The last time i was told to put .browser in my project and th...

GWT Browser Returns Error, but GWT does not

I made some changes to GWT app without testing it in the client browser. I just now tested it in the browser and now the browser is throwing an error: "Error: uncaught exception: java.lang.IllegalArgumentException: Widget must be a child of this panel." How do I figure out why this is being thrown and where to fix it? I made so many ...

Detect if visitor is a browser and not a crawler

Hi How would I server side detect if the user of the webpage is a browser? The reason for detecting this is, that I'm storing statistics about visited pages and I don't want to store any statistics when the user is a crawler. So I'm not trying to detect which browser vendor. I only want a boolean answer, is the user a browser. I assum...

Detecting browser closure from flex application

Hi, I need to detect browser/tab closure from within a flex application in order to delete the session information in the server. I'm familiar with JavaScript events but I was wandering if there is an event in flex for application unload or something of that sort ... ...

Copy text to the client's clipboard using jQuery

The workflow is simple: You click inside a textarea. The text is copied to the client's clipboard. Display notice to the user. How do you do it? ...

Please help me trace how charsets are handled every step of the way

We all know how easy character sets are on the web, yet every time you think you got it right, a foreign charset bites you in the butt. So I'd like to trace the steps of what happens in a fictional scenario I will describe below. I'm going to try and put down my understanding as well as possible but my question is for you folks to correc...

Exit survey popup

I'm trying to create an exit popup to conduct an exit survey for a site I'm working on. The most common solution I've come across is to catch the page onunload event, and add an event handler to all link click events to block the popup. example: http://www.pgrs.net/2008/1/30/popup-when-leaving-website There are a couple of issues with...

Open the url in the current active browser

How can I open an url in the current active browser which is been provided as a part of the mail Example- I receive an email in my outlook.I am browsing also.If I click on the url provided in the email it must open in the current browser window which is open ...

how to browse web site with script to get informations...

I need to write a script that go to a web site, logs in, navigates to a page and downloads (and after that parse) the html of that page. What I want is a standalone script, not a script that controls Firefox. I don't need any javascript support in that just simple html navigation. If nothing easy to do this exists.. well then something...