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....
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....
how to set a specific size for a page that you are linking with a hypertext link to open in a new browser?
View Replies View RelatedDoes 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 can I accomplish the following:
I want to upload image files (jpg) into a sub-directory of a website root directory using a web interface allowing the user to browse their drive and select the jpg file to upload.
Also, is there a way to parse the information from the jpg file and insert the information into a SQL database table which would hold the file name, image height, and image width?
I'm new to handling binary files, so I'm not sure how to accomplish this?
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....
View Replies View RelatedHow can i ingore the " - example: - The ones i want ingored are the ones surrounding the word WHITE
<%
Response.Write("<font color="white">")
%>
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.
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:
View Replies View RelatedWe 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:
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:
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">
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.
Does anyone know of a way where I can remove an attribute from a querystring? For example, say my URL is thispage.asp?view=all&filter=col1 is there a way I can request the querystring but remove the filter=col1 attribute?
View Replies View RelatedI 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
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:
View Replies View RelatedI am trying to update and append to an existing XML file. However I seem to be stuck. I am using ASP as my scripting language.
The form fields has the same value as the KEY attribute so all i have to do is loop through the submiting form for its fields and use the name to update the XML via the keys... Code:
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>
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.
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.
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
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.
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.
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.
why Firefox is displaying some of my ASP code to the user, it works fine in IE, is there a fix for this?
View Replies View RelatedI 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:
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...
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("<"&"item"&">"), which works fine in IE, I get a nice
<item>
But in firefox I get:
<item>
Any ideas?
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.
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?
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
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?
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.
View Replies View Relatedi 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?
View Replies View Related