|
|
apadana_1989@yahoo.com
ali.inanloo.1989@gmail.com
|
|
|
|
|
I have just spent the entire day (plus a couple of hours yesterday) trying to figure out why, after I implemented a menu system with dropdown in CSS (replacing a set of <tables> etc), most pages on the web site worked in IE9, but a few didn't, while everything worked every time in Chrome.
The pages are generated from ASP using VB, but the problem turned out to depend simply on whether the DOCTYPE directive was output as the first line or whether there was anything else (or it was missing).
Now, I always though that the DOCTYPE only affected the actual HTML, but it seems that IE also uses it to switch CSS compatibility as described here.
This also mentioned that a lot of 'workarounds' for IE could probably be dispensed with if people simply specified (using DOCTYPE) what standard of HTML/CSS they are using and stopped using 'Quirks Mode'. As this article mentions, a lot of people probably don't realise that IE's strange behaviour in many areas is simply try to provide backward compatibility because you haven't told it not to!
As mentioned, Chrome doesn't care! Presumably it's 'Quirks Mode' corresponds to a standards compliant set!
[PS: Just felt I needed to tell someone. ]
[PPS: this started as a post to ask how to fix the problem; while trying to write a mininal test case, I 'discovered' that the DOCTYPE directive controls CSS behaviour as well!]
|
|
|
|
|
As I found out there are a heap of cases (maybe even a majority?) where CSS2 properties are supported by IE8 only if a !DOCTYPE is present. The other browsers seem to have done a better job of shedding their historical baggage (or maybe they hadn't accumulated as much in the first place ).
Cheers,
Peter
Software rusts. Simon Stephenson, ca 1994.
|
|
|
|
|
The *REALLY* frustrating (mis-)feature is that IE8 seems to ignore the "Derek
-- [Please select comment...]
|
|
|
|
|
I was to experiment with my slowly developing skills in J2EE programming .. so far only with JSP, hibernate and a little struts. But soon i will want to show real applications to people and exposing my home systems to the web via dynDNS is not an option.
i have found free/cheap LAMP sites .. but i really need a glassfish or tomcat java container server
anyone know anyone that can point me in a direction ?
|
|
|
|
|
Your question's not completely clear.
Are you asking where you can download Tomcat or Glassfish? Or are you asking if there are any websites that provide a free hosting service to run J2EE apps?
|
|
|
|
|
i work in project data from our site to customers
but i need to do something
i don't wan't that data to be send as regaul string
i want it to apperat inside table
i send customers offer price
so i want to be easy to read
some thing like that
Serial ProductName Quantity Price
i want my data to dir in that structure in email sent to customers
md_refay
|
|
|
|
|
And your question is what exactly?
|
|
|
|
|
Don't post your questions in multiple sections. Please wait for the responses because weekend too, many people started to enjoying that.
Already you have posted your question in Q/A section[^]
thatraja
My Tip/Tricks My Dad had a Heart Attack on this day so don't...
All these are my opinions. Different people. different way of thinking. I am no one to judge others - Chandru
|
|
|
|
|
i think u can use grid view for create table and mail that page to your recipient
|
|
|
|
|
You can use <table>
Or, better still <div>
<div> is better because there is more manipulation available.
------------------------------------
I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave
CCC Link[ ^]
Trolls[ ^]
|
|
|
|
|
Any one knows of a Free alternative to Urchin 6 which is not js based and is able to process log files like Urchin?
Thanks
|
|
|
|
|
Hi folks,
Let's say I need to display 1000 products in one single page on a table with 2 columns: Product Image and Product Name.
Let's assume, I only have 2 product images, the first image will be displayed on odd-numbered rows and the second image on even rows as shown below.
<table>
<tr>
<td><img src="odd.jpg"></td>
<td>One</td>
</tr>
<tr>
<td><img src="even.jpg"></td>
<td>Two</td>
</tr>
<tr>
<td><img src="odd.jpg"></td>
<td>Three</td>
</tr>
<tr>
<td><img src="even.jpg"></td>
<td>Four</td>
</tr>
...
</table>
I assume the web browser will request the web server to send "odd.jpg" and "even.jpg" 500 times each (1000 total).
Is this assumption correct?
Or, are web browsers optimized by default to request the same image once and apply it across the page
as needed?
Your support is appreciated.
Thanks,
...Alex
|
|
|
|
|
neualex wrote: Is this assumption correct?
No. Web browsers (even the infamous you-know-what) are smarter than that. A quick snap with Wireshark will show you.
Cheers,
Peter
Software rusts. Simon Stephenson, ca 1994.
|
|
|
|
|
No, as has been said, the browser will only request the same image once. However, it can a only use some many active connections to the same domain so if you have that many images you could improve performance by using a few subdomains to load the images from.
This will load faster
<img src='doman1/image1.jpg'/>
<img src='doman1/image2.jpg'/>
<img src='doman2/image3.jpg'/>
<img src='doman2/image4.jpg'/>
<img src='doman3/image5.jpg'/>
<img src='doman3/image6.jpg'/>
<img src='doman4/image7.jpg'/>
<img src='doman4/image8.jpg />
than this
<img src='doman1/image1.jpg'/>
<img src='doman1/image2.jpg'/>
<img src='doman1/image3.jpg'/>
<img src='doman1/image4.jpg'/>
<img src='doman1/image5.jpg'/>
<img src='doman1/image6.jpg'/>
<img src='doman1/image7.jpg'/>
<img src='doman1/image8.jpg'/>
And of course if you want to optimize even more you can use a table-less layout
I know the language. I've read a book. - _Madmatt
modified on Friday, August 12, 2011 10:14 AM
|
|
|
|
|
Keep in mind this is only partly true. Currently browsers are supporting more then 2 parallel connections, see table below.
Firefox 2: 2
Firefox 3: 6
Opera 9.26: 4
Opera 9.5 beta: 4
Safari 3.0.4 Mac/Windows: 4
IE 7: 2
IE 8: 6
|
|
|
|
|
Yes, they keep updating. How many does IE 9 support?
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
I have no idea why your message was 1-voted. I compensated.
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997
|
|
|
|
|
Thanks
John Simmons / outlaw programmer wrote: I have no idea why your message was 1-voted
Typical CP pettiness of course.
No comment
|
|
|
|
|
You may be able to use image preloading to an array...google it and try.
Chris J
www.redash.org
|
|
|
|
|
I have a simple aspx page with 2 inputs(a button and a text box), when I hit the button I send the text box' value via ajax to a server method. When I use chrome/firefox it goes well, but when I send non-eng chars in explorer(versions: 7,8,9) I see in the server something like ???????
I have placed utf-8 meta tag at the aspx page and I save the file as an encoded-utf8 file.
|
|
|
|
|
Hi Friends,
I am using asp to import data from .txt (tab delimited) to SQL Server 2008.
I have found some problem with my code now. ie., some data is not getting read from textfile hence its not inserted into table. But still data present in .txt. I am not sure what will be the cause for this issue. Below is my code.
cnnText.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=D:\Sangeetha\commodul\ACDT\UploadFile\;" & _
"Extended Properties=""text;HDR=YES;IMEX=0;FMT=TabDelimited"""
' Load ADO Recordset with Text Data
Set rstText = Server.CreateObject("ADODB.Recordset")
'rstText.Open "Select * from [" & file_name & "]", cnnText,2,3,adcmdText
rstText.Open "Select * from [" & file_name & "]", cnnText
Set rstAccess = Server.CreateObject("ADODB.Recordset")
rstAccess.Open "select * from CReport", connection, 2,3
Do Until rstText.EOF
With rstAccess
'if not(isnull(rstText.Fields("reporting_date"))) then
.AddNew
.Fields("credit_group").Value = rstText.Fields.Item("credit_group")
.Fields("credit_group_aig_number").Value = rstText.Fields.Item("credit_group_aig_number")
.Fields("credit_group_gdr_id").Value = rstText.Fields.Item("credit_group_gdr_id")'new
.Fields("credit_group_domicile_code").Value = rstText.Fields.Item("credit_group_domicile_code")
.Fields("credit_group_domicile").Value = rstText.Fields.Item("credit_group_domicile")
rstText.MoveNext
'else
'rstText.MoveNext
'end if
End With
Loop
rstAccess.UpdateBatch
I have tried by keeping IMEX as 1. Only for some of the columns this problem is happening. Eg:
credit_group_aig_number is a column where for some row records is getting read and for some row this col value its not at all reading from connector. I tried with Response.Write, no value is printing even that row is having value in text file.
I have noticed that column has input of 9 digit id which starts with number as well as alphabet. Only where its start with alphabet this is problem.
Kindly help.
Thanks,
|
|
|
|
|
Hi,
I am working on an aspx file which uses css. It displays fine in IE but not in Safari, Chrome, Firefox etc. I am trying to get my head around it but all in vain..
When it get displayed in other browsers all the li jumps to the right only displaying only half of each li.
What i think is the width(eg : width :67px for li.studylink a:active) given in the css is not being identified by other browsers.
It would be very helpful if someone could help me sort it out. I am posting my html contents and css which doesn't gets displayed right.
Thanks in advance.
Payal
CSS
----
.HeaderMenu ul {float:right;height:20px;font-size:6pt;padding-top:2px;}
.HeaderMenu li {display:inline;font-family:arial,arial,sans-serif;font-size:6pt;height:20px;padding:0 0 0 15px; }
li.studylink a:link, li.studylink a:visited, li.studylink a:active {background-image:URL(/Test/Images/studylinkoff.jpg);background-repeat:no-repeat;background-position:left center;width:67px;vertical-align:middle;padding:6px 5px 7px 23px;color:#000;text-decoration:none;height:100%; }
li.studylink a:hover {background-image:URL(/Test/Images/studylinkon.jpg);background-repeat:no-repeat;background-position:left center;color:#000;text-decoration:none;height:100%; }
li.home a:link, li.home a:visited, li.home a:active {background-image:URL(/Test/Images/home_off.gif);background-repeat:no-repeat;background-position:left center;width:67px;vertical-align:middle;padding:6px 5px 7px 23px;color:#000;text-decoration:none;height:100%; }
li.home a:hover {background-image:URL(/Test/Images/home_on.gif);background-repeat:no-repeat;background-position:left center;color:#000;text-decoration:none;height:100%; }
li.print a:link, li.print a:active, li.print a:visited {background-image:URL(/Test/Images/print_off.gif);background-repeat:no-repeat;background-position:left center;width:80px;vertical-align:middle;padding:6px 5px 7px 23px;color:#000;text-decoration:none;height:100%; }
li.print a:hover {background-image:URL(/Test/Images/print_on.gif);background-repeat:no-repeat;background-position:left center; color:#000;text-decoration:none;height:100%; }
HTML
------
<table border="0" cellspacing="0" cellpadding="0" width="770" height="70">
<tr>
<td>
<A id="a1" href="/Test/Info/Information/HomePage.aspx" runat="server">
</A><img src="/Test/Images/Head.jpg" border="0">
<div class="HeaderMenu">
<ul>
<li class="studylink">
<a href="http://www.google.com/" title="Study Link. "></a>
</li>
<li class="home">
<a href="http://www.yahoo.com/" title="Back to the Homepage. "></a>
</li>
<li class="print">
<a href="#" onclick="javascript:print();return false" title="Print this page. "></a>
</li>
</ul>
</div>
</td>
</tr>
</table>
modified on Tuesday, August 9, 2011 11:01 PM
|
|
|
|
|
I have come across this recently myself, in answer to oyur problem, if it's not too late, you can set margin-left:1%; or however much and that will force the thing back into view, however, a better solution is to force the bullet inside of the LI tag, by default it acts as though it is outside. To do this, put
li { list-style-position:inside; } it's completely standard css and works best.
Hope this helps, Ed
|
|
|
|