Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    ASP




Images On Firefox Browser Ignoring The Width Attribute


I have some ASP.NET code which works fine on IE, but on Mozilla Firefox it completely ignores the width attribute and puts the images out at their full size.

here is the code....




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
Height And Width Of New Browser
how to set a specific size for a page that you are linking with a hypertext link to open in a new browser?

Page Redirect For Browser Width
Does anyone know of any ASP code that would redirect a page that has a small page width....such as a mobile phone, Blackberry, Sidekick, etc to another page designed for the width.

I have one with Java script but many of these devices don't handle Java too well.

How To Resize All Images Sizes And Coordinates Of The Images On Resize Browser
My page have background image,on that image have more images and text. My problem is whenever resize browser that images are not resized and also not moved correct place .(i.e look not like before alignment).I want to do everything in dyanamic....

Ignoring " In ASP
How can i ingore the " - example: - The ones i want ingored are the ones surrounding the word WHITE

<%
Response.Write("<font color="white">")
%>

IIS On NT 4.0 Is Ignoring The Session Variables In The Gloabl.asa
I have only seen this occur when the global.asa is not in the root of the virtual
directory. this does not appear to be the case.

Ignoring Blank Input Boxes
i have created a database system for work but when you input job details you have to fill in every box i want it to be able to process and add the data to the database without having to have every box filled in. Here is the code:

Detecting Or Ignoring Locked Files
We have an ASP script for updating web content which deploys a whole bunch of files from one server to another on the click of a button. Here are the steps it takes - pretty simple:

1. Delete all files requiring an update from Server B (remote server)
2. Copy all new files from Server A (local) to Server B

The problem is that many of these files are ASP scripts themselves and if someone is browsing the 'live' website on Server B (remote) then IIS will have the current scripts locked. So our delete script runs but gets to a file locked by IIS and fails, having deleted half the site, and does not continue with copying over the new version of the site. Very messy! I have to Remote Access to the server, wait for a gap in usage and manually delete the offending scripts before running the 'Deploy' functionality again.

So, I need to be able to check if a file is locked and ignore it in the process (perhaps reporting on that later) or be able to over-write locked files regardless. Code:

Server Ignoring FrmTest_OnSubmit Code
I've got all these great books and code samples from the internet, but when I try to use them, they don't work!

For example, the following code ignores all the code in the frmTest_OnSubmit, and proceeds to go to the next form as if everything is ok: Code:

Id Attribute
I want to know if we need id attribute? Or just name attribute is fine?
For example:
Name: <input type="text" id="text" name="fname">

Attribute Value
The code
<input type="button" name="btn" value="ok">

will produce a html button with caption ok and value ok.
The problem is the width of button is dependent on the length of
attribute value.

And I do the following, which is not a good solution.

<input type="button" name="btn" value=" ok ">

The problem is if I want to get the button's value:
Request.Form("btn"), then I need to trim the data.

CDO Attribute For Bulk Mail?
I was wondering if there was a CDOSYS attribute to mark the importance of mail messages. I'd like to set their importance to "80" so the CDO Generated messages are treated as low priority by my mail server.

I was wondering if their was an configuration attribute like the following which I could use.

ObjMessage.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusing")=2
ObjMessage.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserver") ="mail.domain.com"
ObjMessage.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserverport")=25
ObjMessage.Configuration.Fields.Update

XMOL Dom Object Attribute Value
I have some code to build a table list of all our clients in xml i am buioding an html table with all the links using asp here is the code:

What Is The Bext Way To Scroll Through Elemtns In My Page Checknig The Id Attribute
I am trying to scroll through all elements in my page testing each element for a particular id I have set a <td> tage :

<td id="myvalue">blah</td>

does anyone have any JS I can use to scroll through elements checknig the id attribute???

can I wrap the <td> in a <form> and use :

<code>
numelements = document.form1.elements.length;
for (var j=0; (j < numelements); j++)
if (document.form1.elements[j].id == "saletotal") {
alert("INSALETOTAL");
strsumsaletotal = document.form1.elements[j].text;
break;
}
</code>

Manipulating A Button Based On Readonly Attribute Of A Check Box
I have a asp page where a checkbox, when clicked will disable all text boxes
associated with the page.

The following is a part of a code for the checkbox with its name and
readonly attributes. name="chk_Complete" <%= isReadOnly %>

I have to disable(or make sure does not disaplay) a save button in the same
page when this checkbox's attribute is readonly. I have no idea how to do
this.

Manipulating Save Button Based On Readonly Attribute
I am trying to use the following code to make the save button invisible in
the asp form when the checkbox is either on or the session variable has a
particular value.

THE CODE IS AS FOLLOWS:

<%If ( cbool(l_IsChecked) = "FALSE" ) or (session("sess_FiscalFirst") <>
"Y") then%>
<input type="submit" value="Save" name="btn_Save">

<%End If%>

In the above, my logic is if the value of the checkbox is not true or the
value of the session variable is not Y then only show the SAVE button.

However this is not happening. I find that when the second part or the first
part is not there, the logic goes fine i.e. the logic holds with only the
first condition or the second condition itself but not with the or syntax.
Not sure why.

Invalid ProgId Attribute Error Has Grounded My Project WinXP PRO
I am using WinXP Pro and IIS. For some reason, I can not get any ASP pages to work. All I get is this error below. I have even removed all sites on the server, but I still get the error. Html pages work just fine. All permissions are in order. How do I fix this? When I view same pages on Win2000 machine, they work fine

Active Server Pages error 'ASP 0134'
Invalid ProgID attribute
//global.asa, line 1
The object has an invalid ProgID of 'MSWC.MyInfo'.

My OS is XP Pro

Carriage Return Does Not Display Properly In Mozilla In A Title Attribute
Am facing a problem when trying to display a carriage return in firefox in a title attribute,i ve tried using VbCr and chr(13) ,in either cases a strange character appears instead of the carriage return. does anyone know about this error. The code looks like this:

titles(iday) = titles(iday) & chr(13) & objRS("event_title")
<a href="javascript:showevent('0<%=links(i)%>')" title=" <%=titles(i)%>"><%=i%></a>

Am not having this strange character when running it on explorer.

Regex :: Grab Any Style Attribute Within HTML That Uses Double Quotes
I have the following regular expression:

re.Pattern = "style[^=]*=[^""]*""[^""]*"""

It will grab any style attribute within HTML that uses double quotes, and put it in the re.Matches collection.Now, I want to include single quotes into this regular expression. Here's what I have so far:

re.Pattern = "style[^=]*=[^""']*(""|')[^1]*1"

but it does not work.

Odd FireFox
The site in question is Roger Funk Cars
In IE it works fine. In FireFox when the page is displayed the navigation bar on the left side does not expand down, it leaves a gap. This happens on all pages depending on how much the side bar has to expand. The strange part is that if I refresh the page it will start working right.

Firefox & ASP
why Firefox is displaying some of my ASP code to the user, it works fine in IE, is there a fix for this?

Cookies IE Vs. Firefox
I am trying to create a cookie based on a querystring. Firefox creates and displays the cookie without a problem. IE on the other had seems to not even create the cookie. I HATE BUILDING FOR 2 BROWSERS!

Here is the creation code:

Links In Firefox But Not IE
I wish to hide links, i'm at present trying to 'float' as such invisible links over a background image....
the line i'm wishin to use that i think is right is

#links a i {visibility: hidden;}

when taken out we can see the links, as needed, but the minute i add this line, they should be invisible but still there, this is the case in IE but with FF they disappear completely...

Firefox Problem
I'm almost finished with an ASP app that takes HTML form input and outputs that info into XML-ready text. The ASP creates the tags as follows:

Response.Write("&lt"&"item"&"&gt"), which works fine in IE, I get a nice
<item>

But in firefox I get:
&ltitem>

Any ideas?

ASP Different Results In Firefox And IE !
I have following code, picking an ID and saving it to Cookies.

<%
ItemID = Request("prod")
Response.Cookies("THREES")(ItemID) = Request("prod")
Set rdset=objConn.Execute("SELECT ID, Name, Large, Description
FROM shop_products WHERE ID=" & ItemID)
%>

In IE it works fine as it should, adding item id to Cookies

In Firefox it gives me the following error:

Cookies object, ASP 0102 (0x80004005)
The function expects a string as input.
/shop/addcart.asp, line 27

Any information on that. Any idea what is going wrong.

ValidationSummary With Firefox
I'm using a ValidationSummary with ShowMessageBox set to "True". It's
working fine with internet explorer but when it comes to Mozilla
Firefox it's not the same. No window is opened.

What can I do to make it work properly?Is there a way to do it?

Firefox When Using AJAX
I put some code together below, so you can see what I mean:rcntech.com/development/ajaxcars.asp

If you test the link above with IE works as it is supose to, however it doesn't display any elements withing the <form> tags in Firefox.

By the way, I am loading the page using AJAX, if you call the ASP directly in Firefox then it works fine, but that's not what I am trying to achieve.rcntech.com/development/login.asp

Viewing Firefox
i have work on this 4 days already but still cannot find a way to solve.is the way i code cannot be support by firefox?it work well in IE,but firefox cannot work.i have upload the file, can someone pls help me on that?

the asp.txt is my asp page, while the menubar.txt is the js file that i include in the asp page.it should work like ie.jpg but when i use firefox to browse,it show like firefox.jpg. is my code got problem?

BinaryWrite And Firefox
I am using Response.BinaryWrite to write a PDF to the browser. Everything works great on IE and Safari but when I try to use Firefox the browser hangs. The title bar says application/pdf but nothing ever shows up. Going directly to the pdf works fine but unfortunately am unable to do that in the long run and must use BinaryWrite.

Viewing In Firefox
i have work on this 4 days already but still cannot find a way to solve. is the way i code cannot be support by firefox??it work well in IE, but firefox cannot work. i have upload the file,. the asp.txt is my asp page, while the menubar.txt is the js file that i include in the asp page. it should work like ie.jpg but when i use firefox to browse, it show like firefox.jpg. is my code got problem?

Firefox Problem
I'm using an asp function FormatDateTime() in IE6 and it's working perfectly. When I try use it in Firefox it throws;

Microsoft VBScript runtime error '800a0005'

Invalid procedure call or argument: 'FormatDateTime'

/evacation_DEV/common/objects/calendar.asp, line 94

This line is;

objNewDay.DateString = FormatDateTime(DateSerial(mnYear, mnMonth, nDayIndex),2)

mnYear, mnMonth and nDayIndex are set to Integers. Has anyone any idea of how I can fix this?

Listbox Width
I have 6 list boxes and it may or may not have data from db to get fill in.
so what happens is whatever has data that comes to the size of the maximum length of the data in that list box and others comes as very small width as there are no data.
but what i want is all list boxes width should be of moderate size.
how can i make those empty list boxes appear as moderate size.
I dont have an option to put an default item in the db to load with that

A Firefox Database Blitch
When pulling information through from the database on firefox (using an asp document with a css), firefox seemed to be truncating the page. This is possibly due to an assumption of the amount of lines needed. To sort this and so to have scroll bars you will need to add another 'blank' div just underneath with a couple of line breakers ( <br />) this way, the asp sees that there is something physical upon the page apart from the original info pulled through from the database and thus displays the scroll bars!!!

Hyperlinks Explorer Vs. FireFox
I pull file paths from a database that point to files on our internal server and create links to them. For Explorer this works...

File://servername/file/path/filename.snp

But not for FireFox.

Loading Page For IE And Firefox
Here is the coding that i get from this forum last time...

<%
Response.Write("<br><h4><div id=""please_wait""><center><b>page loading, please wait......<b></center></div></h4>")
Response.Flush()

Response.Write("<script type=""text/javascript""> document.getElementById(""please_wait"").style.display = ""none"";</script>")
%>

Its for loading page to display the message to user. but some of my friend say it can display the text at they browser. it need change some setting?

Firefox Buffer Flush
I know some of the gurus round here use Firefox a lot. I'm experiencing problems with using:
Code:

<% Response.Buffer = True
...
Response.Flush %>

It never seems to flush the buffer. Does anybody have any ASP script with buffer flushing involved? Do they work for you on Firefox?

LDAP Problem With Firefox
I have a number of applications that use a particular technique to
authenticate users using IWA and LDAP.

These are for intranet application where the users all use IE6, however I'm
trying to debug some javascript code and I find that easier to do with FF.
However my applications that use this authentication technique have problems
when running through FF.

I get an 'error '80072020' authuser.asp, line 20', which point to an LDAP
call: Code:

Running ASP Scripts On FIREFOX
i encountered an issue on my webpage when browsed using Firefox. Issue:

ASP Scripts do not run on Firefox. When I click the button to add a comment or message, nothing happens. Niether error messages do not appear. It just not process the request of inserting the values I entered. To test my page, copy this link, www.mrniceash.tk, and paste it on your firefox web browser.

Array Trouble In IE & Firefox
I recently started testing my work in Firefox and noticed that when I am looping through an array where I say for example: Code:

for i=0 to ubound(myarray)-1

--work with the array values here--

next

I get the following results:
Firefox works with all items in the array EXCEPT the last one
IE works with the entire array.

Firefox Issue On Production
On our test server, the site works fine, but on production (the link above), if you click around the inside pages in FireFox, the left (navigation) column often loads at more than 100% of the sites width. If you press refresh, the page looks correct?

We are a microsoft shop, and this site is done in ASP.I'm the designer on this project, and there is seperate database programmer and support team (our publishers/admins) that have looked at this, and we can't figure it out. Any ideas? I may post this in another area of the forums because I'm not positive what issue this relates to.

Spaces Replaced With %20 In Firefox
y spaces are replaced in to %20 in firefox. The resulting text when viewed becomes unreadable junk like this

The%20resulting%20text%20when%20viewed%20becomes%20unreadable%20junk%20like%20 this.

Downloaded Is Damaged In Firefox
i have created a page that will enable users download mp3 files that are saved in a folder. All this works fine in Internet explorer, however if i download a mp3 file using firefox, it download the file but without recognizing it as an mp3 file, which automatically makes the file unusable: Code:

Get Image Width And Height
Does anybody know of a way to get an image width and height without using a custom dll? we have aspJPEG on the server, and there are methods to fetch image width and height with that, but it only works with JPEG and i need to get dimensions for gif and png, too.

Image Width And Height
I want to add image width and height into database when i am upload an image, i am using ASP script upload class how can i do this.

Urgent: Page Width
i have created asp pages and inserted the table which width is 100% percent but when and visit that page the width of page is less then 100% but if i refresh the same page then is shows 100%.i have included one file as header. it is because of that or what.

Width And Height For An Image
I have an ASP page which displays different images according to the querystring and the images are all of different sizes. However, in some browsers the image overlaps with the text next to it occasionally.

I guess by specifying the "width" and "height" of the image in the HTML should solve the problem. However, I do not want to store the width and height of each image in the database. (There are too many of them!) Is there any function I can use in my ASP page to obtain the width and height of an image?

Equal Width Of Button
I m using front page.I have used some button and value of all button is different so its width show different.I want to equal width of all buttons.I dont want to use link button.

Combo Box With Bigger Width
I am using a combo box to fill it with some price value which does not require much space in a table. but to select this value the user require to see the relation of this price with other fields e.g

2.00usd - orange - spain
1.50usd - orange - brazil
2.50usd - apple - italy
2.25usd - apple - france

does anyone give a hint how to show above three fields without changing the width of combo box ?

Textarea - Setting Width
If I have a textarea inside a table - the row is set to 100% wide with only one column. How can I ensure that when the window is resized, the textarea is as wide as the olumn in which it resides ?

Width/Height Of An Image
is there any way of determining an image's width or height through ASP code alone and without the need of a third-party object?


Copyright © 2005-08 www.BigResource.com, All rights reserved