|
XML support is almost non-existant in PHP. It is listed as experimental. XML isn't an experiment any longer it is a powerful and useful tool the ASP.NET and the .NET Framework take full advantage of.
|
|
|
|
|
Not only full advantage, but you can treat XML files almost the same way you treat databases... this is very helpfull in some cases and opens new capabilities for developers...
|---------------|
| theJazzyBrain |
|---------------|
|
|
|
|
|
Many said about PHP here, so I'll say something about MySQL. Guys, I can't imagine a database that has NO support for stored procedures (which is MySQL). All it gives you is tables and that's all. Phhhhh.
Yes, PHP is very powerful scripting language, but has a lack of OOP support. Well yes, you can create kinda "classes" in PHP, but is this ALL you need in OOP? Where is inheritance? Where is protected/private/public members? This is not OOP. Maybe they added it in latest version (5 I guess), I dunno, the last one I worked with was PHP4
Philip Patrick
Web-site: www.stpworks.com
"Two beer or not two beer?" Shakesbeer
|
|
|
|
|
I need to redist soap 3.0 in a wise install script(.wse
file).
What are all the dlls that I need to pack in the wise
script?
What keys need I modify in the regedit?
|
|
|
|
|
If you're using Wise for Windows Installer (if you have it - use it - MSI's are much better), the redist includes a merge module. If not, you'd best check the Wise Solutions web site. They might have a downloadable object you can insert into your setup. If not, you'll have to make your own.
PS: Newer setup IDE's have built-in support for finding pre-canned objects and merge modules. If you have a newer version, try looking under the Tools menu (usually) or consult the documentation for more information.
-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
|
|
|
|
|
I need to create more than one text box with the same name(this call array),with the code;
for i = 1 to CInt(request.Form("quantity"))
count = count + 1
serial_field = "serial"&count
end loop
then, when I need to check whether user already fill in this text box, I can not access that text box name.Text box name suppose to be serial1, serial2 and so on.I am using this code;
for (a=o;a<=30;a++){
if (document.Reg.element.serial[a].value == "") {
err = true;
msgstring = "Fill in serial number";
}
}
I can access the value only if I directly use the name like;
if (document.Reg.element.serial1.value == "") {
err = true;
msgstring = "Fill in serial number";
}
Any suggestion what I should do to solve this problem. I am sorry my explanation is quite massy.
Thanks
|
|
|
|
|
serial_field = "serial"&count gives all the fields different names - serial1, serial2 etc...
Just use serial_field = "serial";
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
Ya, that true according to logic but the problem bow, the object(text box) has been created first than we need to check when user click on save button.
How we can refer to the object name?
|
|
|
|
|
I'm not a javascript expert, but you should be able to use
document.all.serial[0].value
document.all.serial[1].value
etc... Hope this helps,
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
Ya, it suppose can work but I don't know why it can't
Anyway Thanks for your help.
|
|
|
|
|
What about after creating serial1, serial2, etc, using
function foo(bar) {<br />
eval('serial'+bar+'.value = ...');<br />
}
HTH
Paul
Tiny problem with said member has been corrected. Chris Maunder
modified 18-Jul-18 11:59am.
|
|
|
|
|
This would work if the fields all have the same name (serial in this example). But here the fields include an increasing number so he needs to use:
<br />
for(var i = x; i < y; i++) {<br />
document.formName["serial" + i];<br />
}<br />
where x is the number of the first field and y is the number of the last.
|
|
|
|
|
Yeah I know, hence my first reply
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
Try this:
(Note: Change the 6 in the first "for loop" with your total number of textboxes.)
function fnCheck()
{
var strTextBoxName;
for(var i=1;i<6;i++)
{
strTextBoxName = "serial" + i;
for(var j=0;j<document.f1.elements.length;j++)
{
if(document.f1.elements[j].name==strTextBoxName)
{
if(document.f1.elements[j].value=="")
{
alert("in for : " + strTextBoxName);
//Fill in your error message here
}
}
}
}
}
Written on a gravestone:
Here lies a father of 29. He could have had more but he didn't have the time!
|
|
|
|
|
Ya, that great, I get all the idea and it work.
Thanks guys.
|
|
|
|
|
Hello,
In an ASP script is there a function which when called will instruct the server to compress the page's output using gzip or some other method? I don't want to enable compression for everyone of my scripts.
Thanks,
Aaron Stubbendieck
modified 12-Jul-20 21:01pm.
|
|
|
|
|
i need help creating a html calendar for entire company to view. i just don't know where to begin. it will be posted on intranet.
|
|
|
|
|
M,
You can do something like this:
This is the top of the template | Some Number Here | Some Number Here | Some Number Here | Some Number Here | Some Number Here | Some Number Here | Some Number Here | Some Number Here | Some Number Here | Some Number Here | Some Number Here | Some Number Here | Some Number Here | Some Number Here | Some Number Here | Some Number Here | Some Number Here | Some Number Here | Some Number Here | Some Number Here | Some Number Here | Some Number Here | Some Number Here | Some Number Here | Some Number Here | Some Number Here | Some Number Here | Some Number Here |
You can add some ASP Scripting for date validation and such.
You can also add some CSS to format the text, table cells, and borders.
check here for CSS stuff> Cascading Style Sheets
If you are using the Visual Studio.NET suite, you can drag and drop the calendar control into the workspace and everything is done for you.
There is also one here on CP --> Calendar Control Article
HTH
Tony
|
|
|
|
|
Massy Sumlin wrote:
i just don't know where to begin
I'd begin at the 1st January
#include <beer.h>
|
|
|
|
|
Why didn't I think of that !! D'OH !!!!!!!!!
Tony
|
|
|
|
|
I'm trying to modify a string so that any hyphens or spaces can be removed. At the moment, the code looks something like:
var strNum = document.all[document.all["MyValidator"].controltovalidate].value;
if(isNumberValid(strNum) && isCardTypeCorrect(strNum))
return true;
else
return false;
All I want to do is insert some code before the conditional so that any hyphens or spaces are removed from the strNum variable.
I've tried using the .replace method with a /-/gi regular expression but that doesn't seem to work -- I've not done any regex's in JavaScript before so I've probably missed something pretty obvious!
--
Paul
"Put the key of despair into the lock of apathy. Turn the knob of mediocrity slowly and open the gates of despondency - welcome to a day in the average office."
- David Brent, from "The Office"
MS Messenger: paul@oobaloo.co.uk
Download my PGP public key
|
|
|
|
|
Ok...
you go:
strNum = parseString(strNum);<br />
<br />
function parseString(strNum){<br />
while(strNum.indexOf(" ") != -1)<br />
{<br />
strNum= strNum.replace(" ","");<br />
}<br />
while(strNum.indexOf("'") != -1)<br />
{<br />
strNum= strNum.replace("'","");<br />
}<br />
return strNum;<br />
}
Hope this helps
|---------------|
| theJazzyBrain |
|---------------|
|
|
|
|
|
Thanks for the info, as it happens, I found this nifty little regex:
strNum = strNum.replace(/-|\s/g,"");
--
Paul
"Put the key of despair into the lock of apathy. Turn the knob of mediocrity slowly and open the gates of despondency - welcome to a day in the average office."
- David Brent, from "The Office"
MS Messenger: paul@oobaloo.co.uk
Download my PGP public key
|
|
|
|
|
I have a simple html document. Inside, there are some links. The question is, how do i make those links act as "goto" commands? i.e. when the link is clicked, the page is scroll down to a show a specific paragraph.
Thanks.
Weiye, Chen
When pursuing your dreams, don't forget to enjoy your life...
|
|
|
|
|
Look here
http://www.basictips.com/tips/article_89.shtml
for instance.
You specify an anchor in the target location ()
and then have the link go there (go to trg)
HTH,
Frank
|
|
|
|