|
Hi all,
Is there any way in which i can find out, using javascript, the width & height of a string when used with a particular font and size.
eg.
<font size=4 face="verdana">Hello</font>
i wish to know what will be the width of "Hello" above as displayed on the web-page.
Thanks in advance.
*** Who said nothing is impossible? I have been doing it for a long time ***
|
|
|
|
|
No. You have to put the text in an element, put the element on the page so that it's rendered, and then get the measurements of the element.
---
b { font-weight: normal; }
|
|
|
|
|
Thanks Guffa, again...
*** Who said nothing is impossible? I have been doing it for a long time ***
|
|
|
|
|
If you are a web developper and would like to work on some projects and get paid for it, you can join www.Project4Hire.com and bid on the projects posted there. It is absolutely free.
Project4Hire.com - Find Freelance Progammers and Graphic Designers for all your project needs
|
|
|
|
|
|
You are right. Sorry.
Project4Hire.com - Find Freelance Progammers and Graphic Designers for all your project needs
|
|
|
|
|
Hi all,
Hoping for some bright ideas to help me decide how best to design and implement a piece of .Net work I am about to do for a client.
Some background: my client runs many different job sites but they are all hosted by one company (who specialise in hosting job portals) but, unbeleivably, offer no way of uploading batches of jobs.... so each job must be entered on the site by hand.
My client wants to get around this by allowing his clients (ie: companies wanting to place jobs on the various sites) to enter multiple job adverts in a spreadsheet and then (somehow) I need to take that s/sheet, read each job and create a URL which emulates the job entry page on the hoster's site (eg: www.[jobsite].com\newjob\addjob.jsp?title=Engineer&location=london&startdate=01-Jun-06... etc etc). The hosting site uses JSP so I can't do anything much from .Net except create a URL to submit each job... but at least we do know we can emulate the URL to submit a new job. So my task is really to somehow receive the s/sheet, build each URL and submit it.
So my question is, given these requirements, how should I go about it? I was thinking of a web service which the clients placing jobs can call from their own browser but I don't know if a web service could read a s/sheet (I assume not). Failing that, I guess we could have an interim web page on a web server somewhere that allows the clients to upload and process the s/sheet. Other ways I thought of was allowing them to email the s/sheet as an Outlook attachment to an email address which would be monitored by a .Net service which would then do the reading and URL creation/submission.
I guess what I'm trying to write here is almost middleware (I like to call it "squeezeware" as we're squeezing it in where nothing should really be!) so any ideas or comments on what I've suggested so far would be much appreciated. I'm not looking for anyone to do this for me - just after some fresh ideas!
TIA for any help/suggestions...
Mike
-- modified at 20:55 Thursday 20th April, 2006
|
|
|
|
|
The other thing I should have mentioned is that I can use .Net 2.0 if I want (my client leaves that sort of thing up to me) so anything that v2.0 can offer me to get this done better/quicker I'd be happy to hear about (I haven't used v2.0 very much at all yet).
Mike
|
|
|
|
|
An interim web page with upload would seem to make sense to me if someone will be manually uploading the spreadsheet - then you can display error messages etc.
I don't really see the speed gains though if they still have to enter all the job data into the spreadsheet first... If they have a DB that's going to write out the SS data, then they might be better getting the DB to spit out xml and pass that to a webservice of yours (bit more simple on your part...).
|
|
|
|
|
You're right of course - the problem here is that the clients have to enter the jobs *somewhere* and if they've already entered it in their own systems then they don't want to have to do it again for us. Anyway, after another conversation with my client we have agreed that we will forget the Excel thing (way too perilous) and request the users to supply us with an XML or CSV document - that way they can use the data already existing in their system(s) and we will (hopefully) get a properly structured "job" object which the web service or web page can parse and then create the URL to post to the hosted job site.
Mike
|
|
|
|
|
I want to disable the statusbar of Explore. Is there any way to disable the client's Explorer's statubar with the help of Javascript.
Abhinav Gour
|
|
|
|
|
You can only do that when using window.open to open a new window. Also the status bar can only be removed if the web site is added as a trusted site.
---
b { font-weight: normal; }
|
|
|
|
|
Hi All... Currently i am doing my banking application using ASP.Net,C#, SQL Server2000... i want some technical solution realated securities from you guys as follow..
i already logged to my application by using username and password.. after login page my home page Home.aspx coming on screen.. i have features all like Balance Inquiry, Mini Statement, Last Transaction, Private Banking, Net Banking in my Home Page in left menu side. All Features are working very well.. For Security Reason i want some technical help from all of you guys...
Problem is After my successful login page If i not touch the Home page or if i not click on any features available in home page for 10 minutes.. Like if i click on Balance Inquiry Link after 10 minutes that time Page Login.aspx want to open instead of BalanceInquiry.aspx... After my successful login by username and password i want to open page BalanceInquiry.aspx (do not want open Home.aspx Page Again)... For that what i have to do in my Application to make more secure... if u have any articles link then please send me..
Please Please Help me if you people have some technical solution... Bcz right now i am on mid way of that project... if u have any articles or articles link please help me out....
Regards,
Patel...
|
|
|
|
|
Set the session timeout to the duration you require, then catch the session_end event in global.asax and redirect the user appropriately.
|
|
|
|
|
Hi
I have one GridView and in this gv i have two column one is mark-printer other is model-printer.So i done this column like template but i don't know how to do exchanging of data when i doing edit???I mean if i choos for example "HP" i want to see only models for hp not all how to link both controls pleas help me.
Good bye best regards
|
|
|
|
|
Have you used the latest versions of Yahoo mail and Windows Live Mail.
I am wondering which technologies have been used to develop these applications.
I particularly like the fact that I can use Delete key on my keyboard and it deletes the email on the web page. Also, if I right click on an email, I get a customised menu.
Any ideas on the technologies used, and any tutorials on using those technologies.
regards
|
|
|
|
|
Is it Possible to have 2 header rows(header for header)for a scrolling datagrid with fixed header.Plz Help.
Thanks in advance.
|
|
|
|
|
http://www.codeproject.com/useritems/add_an_extra_header_to_th.asp
|
|
|
|
|
string dateText = ((DateTextBox)grdProfiles.Items[rowNumber].FindControl("txtDate")).Text;
The value of dateText is in "dd/mm/YYYY" format.
Now I have to change it into DateTime
|
|
|
|
|
DateTime Fdate =Convert.ToDateTime(dateText.Trim()); string TempDate1 = string.Format("{0:yyyy/MM/dd}", Fdate);
Fdate =Convert.ToDateTime(TempDate1);
Rizwan Afsar
Associate Member, Technical Team
IAP Company Ltd, Gurgaon
INDIA
www.iap-online.com
|
|
|
|
|
TextBox1.text= Date from test box
var test=Convert.ToDateTime(TextBox1).ToString("YYYY/MM/DD")
Send me reply soon if it solve ur purpose
or
string Test=Convert.ToDateTime(todayDate).ToString("yyyy/MM/dd");
OR
DateTime Fdate =Convert.ToDateTime(dateText.Trim());
string TempDate1 = string.Format("{0:yyyy/MM/dd}", Fdate);
Fdate =Convert.ToDateTime(TempDate1);
Rizwan Afsar
Associate Member, Technical Team
IAP Company Ltd, Gurgaon
INDIA
www.iap-online.com
-- modified at 3:48 Thursday 20th April, 2006
|
|
|
|
|
I need to create a DDL that is what I would call intelligent. What I mean is that a user could type what they are looking for and the DDL would automatically go to the closest option. It's killing me - I don't know what to call it so I can't find anything online of how to do it. Any help is really appreciated.
|
|
|
|
|
|
You rock - that is exactly what I was looking for. THANK YOU!
|
|
|
|
|
You have to define how to determine what option is the closest one. If I for an example type "ice", should it find "mice", "Antarctica", "water", "cold" or "skating"?
---
b { font-weight: normal; }
|
|
|
|