|
|
Hi,
I am using your DateSelector control i donwloaded from Code Project.
I have included the source in my project.
But for some reason the arrows to select month etc are not showing.
I copied the "cal" folder to of my app root folder and put this in the =
imgDir variable.
var imgDir = "cal/"
But it is not showing them. Do you know why??????/
Thanks
rotsey
|
|
|
|
|
What the heck is it...and how do I make one???
I have the following code:
$headers_client .= "Content-Type: multipart/mixed; boundary=\"{".$mime_boundary."}\"\n\n";
But the variable $mime_boundary has been left un-initialized and is never set anywhere in code?
What does this variable do...actually what the heck is mime_boundary ???
It's frustrating being a genius and living the life of a moron!!!
|
|
|
|
|
I don't know, but it looks like boundaries are used to mark parts of message for User Agent...
check Sample MIME Message[^].
I think these are here for compatibility or something. To answer your question how to make one.. hmm try it like they do it on MSDN...
maybe like
Content-Type: multipart/mixed;
boundary="boundary text"
and then
$mime_boundary = "--boundary text"
?
hope it helps.
David
Never forget: "Stay kul and happy" (I.A.)
David's thoughts / dnhsoftware.org / MyHTMLTidy
|
|
|
|
|
hi all,
can we change the INPUT tag 'type' attribute at run time using JavaScript.
for example i have the follong tag in my HTML page
<INPUT type="password" id="pswd">
can we change the type="password" attribute to type="text" attribute using javascript.
thank you all in advance
cheers
raju
|
|
|
|
|
Apparently not (just tried IE6).
You can just replace it with a new element:
function evolve()
{
var obj = document.getElementById("MyInput");
var newObj;
newObj = document.createElement("input");
newObj.type = "text";
newObj.id = "MyInput";
obj.parentNode.replaceChild(newObj,obj);
}
From a coding design point of view, it is probably better to just put 2 input controls on the page and hide/show the one you need. It can introduce errors if some code is expecting one type of input control, but receives another because it has morphed into something else.
|
|
|
|
|
How to get the input text field value by the form name? I am trying to call a function which calculates by taking the input text value times some value. I tried to get the input text value by form.the field name * 100 .
But when i run the program i have javascript error saying form.the input field value is null and not an object.
Can anyone let me know how should i get the value of the input text field?
Thanks,
angel
|
|
|
|
|
It looks like you are pointing to the input text object and not its value. Try something like document.formname.textboxname.value where formname and textbox name are the names of your form and text box. The value keyword points to the data typed in the box.
|
|
|
|
|
Hi there,
i'm again in trouble. Great trouble.
I have a WebUserControl written by me, in which all control rendered are dynamically generated on page_Load. It works well, so I've decided to extend it with another WebUserControl.
Public class ExtendedUserControl:MyUserControl
This mean that in this second page_load, a just-generated control is added in a collection before one of the inheriteds. It seems to work, but here begin my trouble.
I've done my WebForm for test, and the control extended is well-rendered. The problem is with the PostBack and ViewState : first it shows to me a message of Invalid_Viewstate.
I've tried to manage it by overloading SavePageStateToPersistenceMedium and LoadPageStateFromPersistenceMedium and make the __ViewState variable to be divided in packages lesser then 1024byte.
It then shows me an error of Invalid Cast in the private System.Web.UI.Page.LoadPageViewState() where I cannot either debug or do some.
It is clear the problem is with the viewState because making those methods to do nothing, the problem disappears. But the state, obviously, also was lost.
I need state functionality (as always in web form) and I don't like to go the ancient way to manage myself the state-infos. I think I don't know state-lore enought to understand what is really at work here. Should I have designed in another manner my WebUserControls? You know i don't go the common way to have the tags in aspx and the code in aspx.cs: I choose to make all in the .aspx.cs file so I can inherit from.
Are there some triks I wasn't able to find in the web? Or perhaps there are some requirement i don't know, and so don't meet?
Any help is quite appretiated and very welcome.
Parsiphal
|
|
|
|
|
I have a mail script but don't know how to catch any errors so that it will display email address that failed to send. Here is my code...
<br />
Dim mail<br />
Set mail = Server.CreateObject("CDO.Message")<br />
mail.From = "from@mail.com"<br />
mail.Bcc = "bcc@mail.com, bcc2@mail.com"<br />
mail.To = "to@mail.com"<br />
mail.Subject = "This is the subject of the email"<br />
mail.HTMLBody = "I am the message that will be displayed in the body"<br />
mail.Send()<br />
Set mail = Nothing<br />
How can I display a message that says that there's an error with sending the mail?
Thanks in advance
|
|
|
|
|
Hey all,
I have a quick question, i have a form that has several buttons, when the form loads, i set my "Save" button to have focus (using document.frmEdit.btnSave.focus();) However, when i my text boxes get focus (ie when i'm typing in them) the "Add" button recieves focus. Thus if i hit return, it doesn't have the desired effect. Is there anyway that I can have the "Save" button keep focus the entire time the form is loaded?
Thanks
Brian Van Beek
|
|
|
|
|
hi there,
I am a java/jsp/servlet programmer, trying to write something which you might call a WebTracker or WebMonitor.
My problem is:
"I want to create a kind of a web proxy so that
EACH url requested by a user passes through my
web application, and that I am able to save that
url somewhere."
What I have done is:
"I provide my users with a textbox in my jsp page, and
allow him/her to write a url and press "SUBMIT".Then I request that
url on the user's behalf just like a proxy server. Meanwhile, I parse
the HTML and JAVASCRIPT of the requested page and insert the url
of my webapp at the beginning. The example explains:
-- user requested: http://www.somewebsite.com
-- The request comes to my servlet, and I use an HTMLClient library to
request the url.
-- HTMLClient provides me with the HTML/Javascript/Text (whatever) stream
of the requested url.
-- Let us suppose there were links like /image_1.jpeg, http://www.url.com
and checkitout/mypage.jsp etc in stream of http://www.somewebsite.com
-- I change these links to:
** http://www.myurl.com/myservlet/http:/www.somewebsite.com/image_1.jpeg
** http://www.myurl.com/myservlet/http:/www.url.com
** http://www.myurl.com/myservlet/http:/www.somewebsite.com/checkitout/mypage.jsp"
Doing so doesn't cover all the cases. For example I can't
post data for the users and there are other problems of the like.
The web is SO heterogenous.
I think you have got the problem.
What my doubt is:
"There are so many anonymous proxy servers on the web which are completely
web-based and allow almost any kind of activity like submitting web-forms, images retreival
and all kinds of stuff. Check out the following:
--- http://www.the-cloak.com
--- https://proxify.com
--- https://www.megaproxy.com/freesurf/
I doubt there must be some kind of configuration possible in Apache Tomcat (which is my
web-server) which will allow me to track my users. I don't think that anonymous proxy
servers parse and alter HTML streams. There must be something which I don't know."
do you have a solution of any kind.. any ideas? Please help
Thanx in advance.
|
|
|
|
|
i have designed a client in JAVA to send and receive mail ,now the problem is , it(the software) is allowing only one email addr which @yahoo.co.in
(we connected client to smtp.mail.yahoo.com) for other email addrs it gives 507 authentication problem.(FOR MTNL CONNECTION)
SECONDLY it gives following err for every email id when connected to CABLE NET:
Mail.MailClient
DEBUG: setDebug: JavaMail version 1.3.2ea
DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.s
mtp.SMTPTransport,Sun Microsystems, Inc]
DEBUG SMTP: useEhlo true, useAuth true
DEBUG SMTP: trying to connect to host "smtp.mail.yahoo.com", port 25, isSSL fals
e
220 manage.24online ESMTP Sendmail 8.9.3/8.9.3; Sun, 27 Mar 2005 20:48:53 +0530
DEBUG SMTP: connected to host "smtp.mail.yahoo.com", port: 25
EHLO vipul-10od2y6fv
250-manage.24online Hello [172.16.51.5], pleased to meet you
250-EXPN
250-VERB
250-8BITMIME
250-SIZE
250-DSN
250-ONEX
250-ETRN
250-XUSR
250 HELP
DEBUG SMTP: Found extension "EXPN", arg ""
DEBUG SMTP: Found extension "VERB", arg ""
DEBUG SMTP: Found extension "8BITMIME", arg ""
DEBUG SMTP: Found extension "SIZE", arg ""
DEBUG SMTP: Found extension "DSN", arg ""
DEBUG SMTP: Found extension "ONEX", arg ""
DEBUG SMTP: Found extension "ETRN", arg ""
DEBUG SMTP: Found extension "XUSR", arg ""
DEBUG SMTP: Found extension "HELP", arg ""
DEBUG SMTP: use8bit false
MAIL FROM:<vipulthakur2004@yahoo.co.in>
250 <vipulthakur2004@yahoo.co.in>... Sender ok
RCPT TO:<vipulthakur2004@yahoo.co.in>
550 <vipulthakur2004@yahoo.co.in>... Relaying denied
DEBUG SMTP: Invalid Addresses
DEBUG SMTP: vipulthakur2004@yahoo.co.in
DEBUG SMTP: Sending failed because of invalid destination addresses
RSET
250 Reset state
javax.mail.SendFailedException: Invalid Addresses;
nested exception is:
class com.sun.mail.smtp.SMTPSendFailedException: 550 <vipulthakur2004@ya
hoo.co.in>... Relaying denied
at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1072)
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:492)
at Mail.MailClient.sendMessage(MailClient.java:410)
at Mail.MailClient$MyActionlistener.actionPerformed(MailClient.java:518)
|
|
|
|
|
I've got a website with a couple of Google ads on it. It works great, except, of course, when Internet Explorer blocks active content; in that case they simply don't show up.
I've seen a multitude of websites around with google ads that display fine, even if IE is set to block active content. I can't manage to figure out how this is done, though. Anybody know?
tantiboh
|
|
|
|
|
are you viewing your site locally or viewed off of a web server? IE will block more stuff if it is viewed locally, so if that is the case, try it off of a server as well to see if you get different results.
If you are looking at it off a web server, it must be in your code. post some of your javascript so we can compare it to other sites.
|
|
|
|
|
I have a console based C# program that calls web service proxy methods. I want to extract and insert the xml embedded in the SOAP body area. How is this done? I know that in Java setSOAPBody(...) and getSOAPBody(...) can do this, but how is this done in C#.
The main reason why I need to do this is that when I got a wsdl from a customer the .NET code generators produces web methods with classes as parameters. I would rather like to pass the xml text string instead of populating these self-generated classes. Is there a way to by pass this?
Thank you for your help...
|
|
|
|
|
Hi Guys:
I have an IFrame that is sitting on a page. The iframe is under another domain than the web page. It goes off and has a script that interacts with a server side piece of code (I believe that this is JSP). When it is done, I want the iframe to have a piece of code that updates the main page but I dont know how to do this when the two pages are on different domains.
To put the whole thing into context, the main page is in essence a static page and the other page is just hiding and showing things, it is is essence inviseble. It makes the main page look dynamic but it is not really.
Does anyone have any good suggestions for this?
Cheers,
Jim
Did I post well? Rate it! Did I post badly? Rate that too!
|
|
|
|
|
Hi
I am using classic ASP. I move from addCustomer.asp to addCustomerProcess.asp. The process section is where I add the data to the database. When a textbox has nothing entered into it, I want it to add Null to the field. How do I do this? Lets say the input textfield is called txtAddress, then in the process section I retrieve it like Request.Form("txtAddress"). In my SQL statement, I will do it like this.
strSQL = "INSERT INTO tblCUstomer (CustAddress) VALUES ('" & Request.Form("txtAddress") & "';"
Now when there was nothing entered in the textfield, a null value must be entered. Would I use a Replace function for this? If so, please advise.
Thanks
|
|
|
|
|
|
A parameterised query is where you put a placeholder in the query string in your code and add a parameter object to the command which the framework will send to the database system. The separation of the query code from the variable data elements reduces the possibility of a SQL Injection Attack as the injected string can no longer have an effect on the SQL code.
A stored procedure is just a procedure that is written in SQL, not all database systems support the concept. Access supports a sort of semi-stored procedure like concept called Stored Queries which appear to be like a view that accepts parameters.
Some databases may not support Stored Procedures (e.g. MySQL doesn't yet support them, although I believe that the next version will).
Here are some links that show how parameterised queries work:
http://www.4guysfromrolla.com/webtech/021799-1.shtml[^]
http://www.4guysfromrolla.com/webtech/111798-1.shtml[^]
I don't full like the next example. It shows how to build an MS Access Stored Query that accepts parameters (so it is a sort of half way house between a Stored Procedure and a View - it takes parameters, but it can only perform a single select) but the code to call the query is open to an SQL Injection Attack as it just injects the values into an SQL String in order to call the "Access Stored Query" object:
http://www.xefteri.com/articles/show.cfm?id=6[^]
If these links don't help (they were just the first few results in a google search) it should be fairly easy to find more examples with the keywords or variations on them: Parameterized Query ADO
My: Blog | Photos | Next SQL Presentation
WDevs.com - Open Source Code Hosting, Blogs, FTP, Mail and More
|
|
|
|
|
I have a section on my page which allows a user to login. When successful, I save true in a session variable called Session("isLoggedOn").
I have a menu on the left hand side of each page, and depending if the user is logged on or not displays Login (if isLoggedOn = false), or log off (if isLoggedOn is true). So when the user logs off, I use Session.Abandon at the top of the page, but the menu still displays Log off. How do I change this so that it changes Log off to Login as the session is only abandoned when the page has fully loaded.
Help would be appreciated.
|
|
|
|
|
You could set Session("isLoggedOn") to false at the top of the page as well as using Session.Abandon
|
|
|
|
|
I need to know what is the best way to test if 2 string are 100% the same. This I use to test if my password is the same as the password in my "confirm password" textbox.
I have it as:
if(string1 == string2)
// Strings are equal
Help would be appreciated.
|
|
|
|
|
Doesnt that work for you? I have string comparisons within my own code and I have the same thing and it seems to work fine.
What exactly is the problem that you are having?
Did I post well? Rate it! Did I post badly? Rate that too!
|
|
|
|
|
Try uppercase both strings.
<italic>Work hard, Work effectively and a bit of luck is the key to success.
|
|
|
|