One big thing (given the OP's location) is that divs are much better for RTL (or the wrong way round as I insist upon calling it to her indoors ) and for switching in bilingual sites that need LTR <--> RTL.
I am trying to achieve a simple upload of a file and a text parameter from a html form. The html page is deployed on jboss 4.2.3.GA (but the result is the same even if you put it anywhere outside the server, etc. on your C drive). My POST request always seems to be empty. I am executing request in Firefox 4.0 browser. Here is the web page:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<h1>Use the form to call webservice</h1>
<form action="http://localhost:8080/mobileEmailService/service/OEV" method="post" enctype="multipart/form-data">
Picture: <input type="file" name="img"/><br />
Name: <input type="text" name="name"/><br />
<input type="submit"value="Submit" />
I am using HttpFox utility in Firefox to examine my request. The POST data always seems to be empty so the parameters in the servlet are also empty. If i change the enctype="multipart/form-data" to enctype="application/x-www-form-urlencoded" then i can get all parameters, but they are only strings. For name parameter this is ok, but for file i just get the file name string and that is not ok I need a file.
So does anyone has idea how is this accomplished?
I am using jboss RESTeasy web service to read the request. But jboss resteasy webservices are just servlets in my opinion. But any way, the data does not even get into the request. So that is the main problem. The client does not even send it.
I don't know exactly what the plugin you use does with the post data, but remember that a multipart/form-data POST just puts everything in the body of the request sent to the server. So it is possible the plugin you use just doesn't understand this type of form submit.
I just verified using Fiddler and the POST data should be visible just fine as long as you look at the RAW data being sent to the server.
Yes... I've thought also on this solution... but... I guess that this will work only if I use the robots.txt in order to avoid Google & Co. to avoid reading the file in which I have the e-mail address written.
Is that in that way?
I've prepared the form. Then I've prepared the PHP file that is being executed once the user press the submit button. By doing this what I've only done is to put the mail address just in another file. Why is this better?
If you have everything configured properly, search bots should not be able to get at your server-side files. Those server side files render to HTML and that is what the search bots see. If you have your form setup the way I do, the postback that is initiated on the button click causes server code to run that sends the email. The client never sees the email address.
As an example, ASPX files are typically not visible from the client side. They are processed on the server side and the HTML page that results is served to the client. By default, I'm pretty sure IIS does not serve ASPX pages to the client. Kinda like how the web.config is not served to the client.
On one of the webapplications I'm working on we have an option to open a popup for printing pages. This popup first gives you several options followed by a page with a frameset on it. Which is something similar to this:
The weird part I can't figure out is that if I remove the frameset in a test it works and the content of the content-to-print.html page fits on the A4 paper. I changed it to something like this:
I've tried playing with the DOCTYPE from loose to strict as well as removing it all together. The loose and strict did have some positive effect but didn't remove the problem completely.
Now I know that using framesets is old school, but in this case its not that easy to remove them all. That would take to much time and affect to many parts of the web application. So how can I tell IE to print the exact same way when using a frameset as it does with the iframe solution. Is this at all possible.
I've tried setting all the pages that are loaded in the frameset as well as the page containing the frameset to the doctype //W3C//DTD HTML 4.01 Frameset//EN. Something I've also tried is setting all pages to that doctype except for the one being printed and setting that to doctype loose. Non of this helped in the scaling issue unfortunately.
With regards to the CSS styles, I've checked all styles but can't find any that are applied to the frameset itself or any of the other pages that the frameset loads that would stretch the frameset other then the page being printed.
not too sure but have you tried adding a css style tage with media print and foc the table to a certain size? Also a css reset may help remove browser specific layout issues, but you will need to add css after that to make a consistant appearance.
When I must debug weird display issues I sometime use background colors on certain elements to get an idea on how the page is being affect.
I make an inline style rule like
and move it from one block level element at a time. Sometimes you will need to different colors on seperate elements to find the cause. In one case I had a margin rule that was tossing the width of a parent element out of wack....and I think the style for the child was dynamic too...
It is one of those things that never occurred to me to ask about before.
I would like to present a web page that has a DIV to the left that is a fixed width (100px say), and the Whole of the rest of the real estate as the other part of the screen, regardless of the width of the users screen.
I can do it by %'s but I want that fixed width left pane.
I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave
I have been working with few customers and have come cross some session loss while using cookies, and one solution we usually have seen which works is adding our domain name to the trusted sites of our clients, which leads to a successful session completion.
Anyone of you have any idea or experience with it?
I know adding the trusted sites allows the domain or the website to have a faithful communication with the client.
but, why is it must to use it in some specific cases?
Why on earth would you want to display this many rows? There is no possible way for any user to reasonably make sense of that much data. What you should do is to return a sensible subset of the data and allow users to either filter or set up paging with some sort of load-on-demand. At most I would display 200 records (cos the user insisted) and page the rest. Even then put some form of filtering in place so that suers can select what they NEED to see.
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair. nils illegitimus carborundum
Is it possible to access local machine form webpage without IE/ActiveX? For example, can I execute an exe file on a local machine? Or, If viewer's machine hosts a webservice, can i invoke it through webpage?