|
Ganesh:
I would be glad to help, with the understanding that I am by no means expert in either Javascript or vml. However, I have implemented several scientific graphic projects using vml and may be able to point you in the right direction.
To get a basic understanding of vml, check out the following links:
http://msdn.microsoft.com/workshop/author/vml/default.asp
http://www.w3.org/TR/NOTE-VML
http://www.steema.com/downloads/dwn_tch_office.html
About 1998 (I think) Microsoft and others submitted vml to the W3 crowd in an attempt to obtain recognition of their markup language as a web standard. However, Adobe and others also submitted a similar language to W3 at about the same time. W3 accepted neither, instead deciding to merge ideas from both and come up with yet another graphics language, SVG or scaleable vector graphics. SVG is now a web standard.
Microsoft's motive was this: they already had planned to bring out vml anyway as a means of exporting web graphics in Office 2000. If you check out one of the programs in the Office suite, say Excel, you will see the vml code when you export to html. The Microsoft output is, however, a mess: too verb verbose and opaque for understanding vml coding. You will obtain much simpler code from using Tchart Office (third link above, Steema software). This program is a free download.
Try out the Tchart program, adjusting the chart dimensions and other parameters with data you may already have. Export the graph to VML and examine the resulting code. This may be sufficient to get you started, if you already know html and javascript, and have read a bit from the first two links above.
If not, let me know. I am willing to post some code that may help you implement your project.
--Retired Alchemist
|
|
|
|
|
Ha! Pardon me if I reply to my own post. I just noticed that our own Simon Stewart has an article on VML:
http://www.codeproject.com/html/vml101.asp
|
|
|
|
|
Hi
I am using html server controls with vb.net.
I used sqlDataAdapter and Dataset to connect to tables.
I am using sqlCommand to insert records in to database.
If there is a better way to insert or update custom fields please tell me.
Error: System.FormatException: Input string was not in a correct format
Error Code:
If Not Text4.Value.Empty Then SqlInsertCommand1.Parameters("@Date_Reg_RI").Value = Text4.Value
Date_Reg_RI is a dateTime field in Database sql server2000 and i want to keep it blank.
Any quick help is welcome.
Regards
Varun
|
|
|
|
|
|
Datetime doesn't except null values (that is usually how it is set up), so if you want to insert a blank value I believe you can just insert "' '".
Let me know if it works.
Scott Stocker
|
|
|
|
|
Hi
I am using html server controls with vb.net.
I used sqlDataAdapter and Dataset to connect to tables.
I am using sqlCommand to insert records in to database.
If there is a better way to insert or update custom fields please tell me.
Error: System.FormatException: Input string was not in a correct format
Error Code:
If Not Text4.Value.Empty Then SqlInsertCommand1.Parameters("@Date_Reg_RI").Value = Text4.Value
Date_Reg_RI is a dateTime field in Database sql server2000 and i want to keep it blank.
Any quick help is welcome.
Regards
Varun
|
|
|
|
|
Hi ,
How to display a Tool tip for drop down list in asp pages which does not have enough column width and for the list box also.
Thanks,
Mahie
|
|
|
|
|
Hello,
i did a forum aplication for my website. i do have a error sounds -
METADATA tag contains a TypeLibrary specification that does not match any registry entry.
Do i have to change the line to any other???
Im using a PWS on a windows98 platform.
error 'ASP0223' TypeLib Not Found.
Thanx A Lot.
amalan simon
|
|
|
|
|
I want to set some initial text in the textbox of the <input type=file> element. How to do? Thanks.
|
|
|
|
|
<INPUT TYPE="file" NAME="oFile1" value="file.html"/>
<hr><h5><italic>Work hard, Work effectively and a bit of luck is the key to success. </h5></italic>
|
|
|
|
|
I used the same. It is not working. My requirement is the text "file.html" should come in the Textbox of the file browse control in browser.
Thanks
|
|
|
|
|
I have a asp page that get the html string from a 3rd-webserver by using ASPTear component.
The problem is: it perform on server-side (my webserver), so my server is hard-loaded.
How could I transfer the process load html string from 3rd-webserver to the client side, not server side.
Thanks.
|
|
|
|
|
hi this is code in my program for sending message , followed by the session
void sendMessage()
{
Properties properties=new Properties();
properties.put("mail.smtp.host",mailhost);
properties.put("mail.smtp.auth","true");
properties.put("mail.from",source.getText());
MyAuthenticator auth=new MyAuthenticator();
Session session=Session.getDefaultInstance(properties,auth);
session.setDebug(true);
try{
MimeMessage message=new MimeMessage(session);
InternetAddress[] addresses=InternetAddress.parse(dest.getText());
message.setRecipients(Message.RecipientType.TO,addresses);
message.setSubject(subject.getText());
//check if there are attachments,create a "multipart" message
//else create a "text/plain" message
// create and fill the first message part i.e content
MimeBodyPart mbp1 = new MimeBodyPart();
//mbp1.setContent(content.getText(),"text/plain");
FileWriter fw=new FileWriter("content.html");
MinimalHTMLWriter out = new MinimalHTMLWriter(fw, content.getStyledDocument());
out.write();
fw.close();
mbp1.setDataHandler(new DataHandler(new FileDataSource("content.html")));
mbp1.setDisposition("Part.INLINE");
//mbp1.setContentType("text/html");
// create the Multipart and add first message part
Multipart mp = new MimeMultipart();
mp.addBodyPart(mbp1);
if(list.getItemCount()!=0)
{
for(i=0;i<list.getitemcount();i++)
{=""
="" get="" the="" file="" to="" be="" attached
="" filedatasource="" fds="new" filedatasource(list.getitem(i));
="" create="" message="" parts,attach="" multipart="" message
="" mimebodypart="" mbp2="new" mimebodypart();
="" mbp2.setdatahandler(new="" datahandler(fds));
="" mbp2.setdisposition("part.attachment");
="" mbp2.setfilename(fds.getname());
="" add="" remaining="" parts
="" mp.addbodypart(mbp2);
="" }
="" message.setcontent(mp);
="" set="" date:="" header
="" message.setsentdate(new="" date());
="" transport="" transport.addconnectionlistener(new="" connectionhandler());="" transport.addtransportlistener(new="" transporthandler());
="" message.savechanges();
="" transport.connect(mailhost,25,emailid,passw);
="" transport.sendmessage(message,message.getallrecipients());
="" transport.close();
="" catch="" (exception="" ex)="" {
="" ex.printstacktrace();
="" }=""
debug:="" setdebug:="" javamail="" version="" 1.3.2ea
debug:="" getprovider()="" returning="" javax.mail.provider[transport,smtp,com.sun.mail.s
mtp.smtptransport,sun="" microsystems,="" inc]
vipulthakur26u8998u
debug="" smtp:="" useehlo="" true,="" useauth="" true
debug="" trying="" connect="" host="" "smtp.gmail.com",="" port="" 587,="" isssl="" false
220="" mx.gmail.com="" esmtp="" h19sm743564rnb
debug="" connected="" port:="" 587
ehlo="" vipul-kbykg320p
250-mx.gmail.com="" at="" your="" service
250-size="" 20971520
250-8bitmime
250-starttls
250="" enhancedstatuscodes
debug="" found="" extension="" "size",="" arg="" "20971520"
debug="" "8bitmime",="" ""
debug="" "starttls",="" "enhancedstatuscodes",="" use8bit="" false
mail="" from:<vipulthakur26@gmail.com="">530 5.7.0 Must issue a STARTTLS command first
javax.mail.MessagingException: 530 5.7.0 Must issue a STARTTLS command first
at com.sun.mail.smtp.SMTPTransport.issueCommand(SMTPTransport.java:1189)
at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:842)
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:491)
at Mail.MailClient.sendMessage(MailClient.java:410)
at Mail.MailClient$MyActionlistener.actionPerformed(MailClient.java:515)
|
|
|
|
|
Hi,
When I open a child window from the parent window, is there a way from the child to know if the parent window has fully loaded or not?
Thanks
Hitesh
|
|
|
|
|
Hi Hitesh:
1) In Parent window, you can have a global JavaScript variable and set its value to a defined one, from its window.onLoad event.
2) In Child window, you can query this value. If it does not match or is 'undefined' or null, then it means, parent has not loaded completely. Else, it means, the parent has completely loaded.
Did this help you?
Deepak Kumar Vasudevan
Personal Web: http://vdeepakkumar.netfirms.com/
I Blog At: http://deepak.blogdrive.com/
|
|
|
|
|
I am using
window.showModalDialog(...
to open a modal dialog window. Does anyone know how I can hide the titlebar.
Thanks in advance
Ami
|
|
|
|
|
When I click a button on an ASP page, I want to open a new popup window and submit the parent ASP page to itself. Once this ASP page is reloaded, I want to close the popup window.
How do I do this?
Hitesh
|
|
|
|
|
|
I am trying to write a simple batch file to get a project from source safe, build it using the vs.net cmd line and then deploy it somewhere.
I am using the following line to get the project from vss:
ss get $/MyProjects/MyProject1 -R -I- -NL
–R -> recursive
-I- ->don’t ask for input
-NL -> use long names (alternatively –NS for short names)
However, this is an asp.net project, all the filenames are being trimmed when getting from vss, and this results in files being copied over. I have searched the documentation and on the web and cant find my answer, can anyone help?
Thanks,
Rob
|
|
|
|
|
> Hello,
> I would like to know how can I download html files from the
> internet and save them programmatically. I want to perform
> the task in VBA. Currently I am using Microsoft Internet Controls shipped
> with Internet Explorer and the ExecWB method supported.
> I was able to invoke the saveas dialog using the same, but I would like
that
> to happen automatically without user intervention.
> Example :
> ie.ExecWB OLECMDID_SAVEAS, OLECMDEXECOPT_DONTPROMPTUSER,
> "C:\Temp\Testing.htm"
>
> Another problem is that the resources embedded in the HTML are not
> downloaded using this mechanism.
> I would want a functionality similar to IE SaveAs Option.
> Any guidance would be helpful.
>
> Thanks,
> Abhishek.
|
|
|
|
|
Hi All!!
I am using classic ASP and I am having the following error:
· Error Type:
Microsoft VBScript runtime (0x800A000D)
Type mismatch: 'Session'
//global.asa, line 15
· Browser Type:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)
· Page:
GET /nederburg/admin/updateBids.asp
And this how I have it in my global.asa file:
Sub Session_OnStart
Session("SafeTrack") = ""
Application.Lock
Application("Sessions") = Application("Sessions") + 1
Application.UnLock
' Brendans addition
'----------------------------------------------------------------
' Store database connection string - MS ACCESS
'----------------------------------------------------------------
Application("ConnectionString") = "Provider=Microsoft.Jet.OLEDB.4.0;User ID=;Password=;Data Source=" + Server.MapPath("/db/db.mdb")
End Sub
Line 15 refers to Session("SafeTrack") = ""
I don't understand the error. When does global.asa get loaded? Does it only get loaded through a default.asp in the root directory?
I would appreciate any help.
Thanks
Brendan
|
|
|
|
|
If you are using Session to store varchar values then you have to initialize with some values such as Session("SafeTrack")="none", or
If you are using Session to store integer or float values then you have to initialize with some values such as Session("SafeTrack")=0
Session("SafeTrack") = "" does not specify data type you are storing in session. hence it leads to Type Mismatch
Hope this helps,
AnandG
|
|
|
|
|
I am creating a web app that has several UserControls loaded. What I want to do is when the user clicks the Datalist Item that has a Controls corresponding value, it sets the UserControl to being visible. All the other UserControls are set to hidden.
I know how to set Textboxes etc to hidden and visible using Javascript, but how do I set the UserControl to hidden and visible when the correct item in the datalist is selected.
Any help would be greatly appreciated.
Graeme
|
|
|
|
|
|
Thanks Deepak I will try that and let you know how it goes.
Graeme
|
|
|
|