|
I suggest using JQuery[^] as it's functionality is compatible in all(most) browsers as far as I know.
Then you may want to use the Ajax Post Method[^] as I find it easier.
hmmm pie
|
|
|
|
|
I have a regular expression to strip out all the html tags except tag the regular expression is:
<\S[^><]*[^p\s]>
The problem with the expression is it strips out all the tag except but needs a space if there is any attributes inside.
It works fine for <p attributes="asdf" >
but doesnot work for
<p attributes="asfd">
What may be the problem.
Further i need to add tag as well so that the regular expression strips out all the html tag but not and
Thanks in advance
modified on Tuesday, March 17, 2009 8:06 AM
|
|
|
|
|
Hi Friends,
IIS 5.1 SMTP virtual Server doesn't show in inetmgr I am using win XP. Admin login "IIS 5.1 SMTP virtual Server" showed but doesn't shown in user login what i do..
plz help me..
|
|
|
|
|
Member 4482742 wrote: showed but doesn't shown
what is your question? it shows or it does not show?
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
Hi Friends,
How to come in google's first page in my website.. anybody known help me...
|
|
|
|
|
Do you want to be the first item in the result list?
Two options:
Option One: Easy but expensive - give Google money so that you will be inserted as an advertiser
Option Two: Difficult and expensive - build a website everbody knows and love
Was this your question?
Regards
Sebastian
|
|
|
|
|
Hi thanks for your information, but my office no need to spend money for this one but improment google page rate what i do.. this is my milestone..
|
|
|
|
|
|
Hi,
Thanks for your valiable information and links.. I will try...
|
|
|
|
|
Is it possible to create a flash control that would allow you to drag and drop files and folders from the computer into the browser for purposes of uploading the files and folders (structure intact) to a server?
I just need to know if we can capture the data/events on the client and how we would do that.
Thanks for any input!
Jason
|
|
|
|
|
Hi everyone,
Im hoping someone can help me out here before I have a nervous breakdown...
Im trying to create a dynamic array of items which have been passed through from a php form. The script is designed to check that each of the form fields have been completed, return an error message if they havent and then enter them in to an array. The array is to then be passed to another PHP script for other things to be done to it.
The part Im stuck on is the creation of the array key. This needs to be done in a way that allows me to add the form field name as the key and the value of the form field as the array value so something like: "array[firstname] = Bryant;"
At the moment I have this all being done in the middle of a for loop which is iterating through the form fields to see if they have been completed. The code for this is below.
function submitForm(form, messageDiv, action)
{
var targetDiv = document.getElementById(messageDiv);
var inputs = document.forms[form].getElementsByTagName("input");
var selects = document.forms[form].getElementsByTagName("select");
var fieldName = document.getElementsByTagName("label");
var length = selects.length + inputs.length;
var data = new Array();
for(i=0; i < length; i++)
{
if (inputs[i])
{
if (inputs[i].value == "")
{
targetDiv.innerHTML = inputs[i].name+" is missing";
var error = 1;
return;
}
else
{
var error = 0;
var field = inputs[i].name;
var value = inputs[i].value;
data[field] = value;
}
}
if (selects[i])
{
if (selects[i].value == "")
{
targetDiv.innerHTML = selects[i].name+" is missing";
var error = 1;
return;
}
else
{
var error = 0;
var field = selects[i].name;
var value = selects[i].value;
data[field] = value;
}
}
}
if (error == 0)
{
targetDiv.innerHTML = "";
saveForm(form, messageDiv, data);
}
}
I've managed to half do this by using a numerical value for the key but I really need to have the form field name as the key so that I can associate the form field with the data when I pass it to the php script. Having said that when I use numeric keys on the second half is completed (the selects) becuause the inputs are all over written because the array key isnt incremented until the next iteration of the for loop.
I would really apprciate some guidance on this, Im kinda new to JavaScript!!
Cheers y'all
Bryant May
|
|
|
|
|
I wrote this on the fly.
function checkForm(formID)
{
var data = new Array();
var form = document.getElementById(formID);
for (var i = 0; i < form.elements.length; i++)
{
if(form.elements[i].value != "")
data[form.elements[i].name] = form.elements[i].value;
else
return 0;
}
return data;
}
It "should" work for both input and select which will save you the hastle of doing each seperatly
hmmm pie
|
|
|
|
|
Hi there - cheers for getting back to me. The form checking that you provided is awesome, and much quicker than the way I was going to be doing it!!!
Unfortunately the array bit doesnt work. Im returning the 'data' array to another function and when I try to alert the contents it comes up with nothing.....no matter how I try to get at the content. Presumably the array should contain my seven form field values along with the relevant field name keys but I cant get at any of it.
No errors are thrown and eveything looks like it should be working.
Any ideas?
Again, cheers for getting back to me so quickly! 
|
|
|
|
|
alert(data) will not work, but alert(data['anExampleFieldName']) will.
If you try and go through the array using indexing then it won't work either
Edit: Have you tried using the Firefox[^] Add-on called Firebug[^] which has a very useful JavaScript debugger.
hmmm pie
modified on Tuesday, March 17, 2009 12:07 PM
|
|
|
|
|
Alternativley if you want to use indexing then you can use a 2d array.
var data = new Array()
for (var i = 0; i < LENGTH; i++)
{
if(notEmpty)
{
data[i] = new Array(2);
data[i][0] = name;
data[i][1] = value;
}
}
That will be able to use indexing, although the structure is not what you previously asked for.
hmmm pie
|
|
|
|
|
Hi Friends,
I am using IIS Server with ASP, my mail code doesn't work whenever i send a mail it will go only Queue's folder it will not deliver.., but this code work well in my friend PC.
my OS Windows XP
Here My code
<%
Set myMail=CreateObject("CDO.Message")
myMail.Subject="Sending email with CDO"
myMail.From="dmanivelan@siminfosystems.com"
myMail.To="dmanivelan@siminfosystems.com"
myMail.Bcc="dmanivelan@siminfosystems.com"
myMail.Cc="dmanivelan@siminfosystems.com"
myMail.TextBody="Testing." & Time
myMail.Send
set myMail=nothing
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>
<body>
</body>
</html>
Please Reply immediately...
modified on Monday, March 16, 2009 11:07 AM
|
|
|
|
|
|
Hi, You are sending IIS configuraion IIS 6.0 but i was working with IIS 5.1. it will support IIS 5.1
|
|
|
|
|
|
I Change the setting but still same problem.. mail goes to queue folder any other way..
|
|
|
|
|
It could be that your ISP is blocking mail going out from your local server, or other things really hard to say without seeing the configuration. You could however try to use an outside mail server if you have one and set CDOSYS to authenticate like the following:
Set myMail = CreateObject("CDO.Message")
//now set the mail server
myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "mail.yourdomain.com"
//set the port
myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
//set code to authenticate
myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1
//set the email address for authentication
myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusername") = "username@yourdomain.com"
//set password for authentication
myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendpassword") = "password"
myMail.Subject="Sending email with CDO"
myMail.From="dmanivelan@siminfosystems.com"
myMail.To="dmanivelan@siminfosystems.com"
myMail.Bcc="dmanivelan@siminfosystems.com"
myMail.Cc="dmanivelan@siminfosystems.com"
myMail.TextBody="Testing." & Time
myMail.Send
set myMail=nothing
Let me know if that helps.
Matthew Vass
QA Analyst
mvass@hostmysite.com
http://www.hostmysite.com?utm_source=bb[^]
|
|
|
|
|
Hi, Again same problems.. mails sent in QUEUE folder
|
|
|
|
|
Ok i was getting the same issue as you when using XP and localhost for smtp relay. I think i may have missed something in my original code snippet, but i did test this on my local and got this working hopefully this will help with your issue.
Set myMail=CreateObject("CDO.Message")
myMail.Subject="Sending email with CDO"
myMail.From="matt@xynergypc.com"
myMail.To="livenitup603@yahoo.com"
myMail.TextBody="This is a message."
myMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusing")=2
'Name or IP of remote SMTP server
myMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserver")="youremailserver"
'Server port
myMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserverport")=25
'authenticate
myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1
'email address for authentication
myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusername") = "youremailaddresshere"
'email password
myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendpassword") = "youremailpasswordhere"
myMail.Configuration.Fields.Update
myMail.Send
set myMail=nothing
|
|
|
|
|
Hi friend,
error '80040211'
"myMail.Send"
/ASP/Sim File/MailCode/NewMail.asp, line 71
i am getting error this line "myMail.Send"
|
|
|
|
|
This usually means that your unable to send mail via that smtp relay.
1. does your email/website provider allow smtp relay?
2. do you login to your email with your full email address or just username
Basically the cdosys script is working but unable to connect to the email server for what ever reason. If your mail server doesn't require authentication (although all most do) then you will not need the username/email address and password. If they do require authentication you will need to make sure that the username/email address and password are correct as well as the server name and port. If all that information is correct you may want to ensure you can send mail on port 25. To do that you can try and telnet to your mail server on port 25, if this doesn't connect try port 50. The default smtp mail port is 25, but there usually is always an alternate port such as with our company which is port 50. If neither of these work then you should contact your email provider and find out what ports they allow smtp relay on, that is if they do.
Hope this helps.
|
|
|
|