|
more than what?
Garbage collection, making life better - for weenies!
|
|
|
|
|
|
Nnamdi Onyeyiri wrote:
i took this to be that CP aint worth much
then you took it incorrectly.
Garbage collection, making life better - for weenies!
|
|
|
|
|
Chris Losinger wrote:
just like CP, i suppose.
Yes, perfect if you can find the right situation.
I have a hard time finding the 'right situation' for Java; but I don't hold that against it.....ok maybe I do :p
James
"Java is free - and worth every penny." - Christian Graus
|
|
|
|
|
Chris Losinger wrote:
James T. Johnson wrote:
"Java is free - and worth every penny." - Christian Graus
just like CP, i suppose.
Hmmm....I sure hope we are not comparing Java to Code Project, I think we all know who the winner of that is.
Nick Parker
|
|
|
|
|
no... just playing one of my all-time favorite games: point out the innacuracy of the blanket statement. Fun for the entire family! (unless you don't like that kind of thing, of course)
-c
Being just contaminates the void. --Robyn Hitchcock
|
|
|
|
|
Thanks James. Lucky you answered me, or I'd sue you for quoting me in your sig....
Christian
I am completely intolerant of stupidity. Stupidity is, of course, anything that doesn't conform to my way of thinking. - Jamie Hale - 29/05/2002
Remember that amateurs built the ark. Professionals built the Titanic.
|
|
|
|
|
James
"Java is free - and worth every penny." - Christian Graus
|
|
|
|
|
Hi everybody,
I've been developing/maintaining several websites with Interdev for quite some time now, and I really like the concept of connecting to a server and maintaining ASP pages "just like that". Then I can ftp the files to the webserver when they are ready. Anyway, I installed Visual Studio .NET - and I can't find any way to connect to a website. All .NET wants me to do is "create a webservice" (Thanks, but no thanks) etc. I just can't get to maintain ASP pages in a simple manner. Of course I can drag the files into the ide and edit them - but then I might as well just go back to notepad.
I thought .NET would have a replacement for Interdev - or are the MS guys just still cooking ?
Any help appreciated!
Best regards
/Jan Hansen
(I also posted this in the .NET forum.. that was before I realized that this had to be the correct place to ask)
|
|
|
|
|
For your project type, select "ASP.NET Web Application". You can then type in the URL of your web server right in the same dialog.
Bonus! Like Interdev, VS.NET tries to use FrontPage server extensions for authoring. In addition it can now manage web sites over the file system. You can use drive letters or even UNC (\\) paths.
|
|
|
|
|
Hello,
I get next error message while I try to add new record to my Access database:
Error Type:
Microsoft JET Database Engine (0x80040E09)
Cannot update. Database or object is read-only.
/Project6/AddUserToDB.asp, line 44
My critical code is:
' Create and establish data connection
Set DataConn = Server.CreateObject("ADODB.Connection")
DataConn.ConnectionTimeout = 15
DataConn.CommandTimeout = 30
'Our SQL Server code - use above line to use sample on your server
DataConn.Open strConnect
Set rsUsers = Server.CreateObject("ADODB.Recordset")
Response.Write "ADODB.Recordset is created..."
With rsUsers
.Open "Users", DataConn, adOpenDynamic, adLockOptimistic, adCmdTableDirect
.AddNew
.Fields("FirstName") = arrayTest(0)
.Fields("LastName") = arrayTest(1)
.Fields("Address") = arrayTest(2)
.Fields("Telephone") = arrayTest(3)
.Fields("EMail") = arrayTest(4)
.Fields("UserName") = arrayTest(5)
.Fields("Password") = arrayTest(6)
.Update
End With
This code works fine on MS SQL Server 7.0...
Please, help me...
Thank you in advance,
Tesic Goran
|
|
|
|
|
Assuming you've checked File and DB permissions try changing your statement to using a SQL command instead, some thing like "SELECT * FROM Users WHERE ID=0" and leave off the adCmdTableDirect paramater.
Its possible that the JET provider only supports Read-Only cursors when used with TableDirect command type whereas the more powereful SQLOLEDB provider is able to hande it.
|
|
|
|
|
In EZEvents Ver 1.1 when a person adds an entry across more than 1 month, the Summary option picks it up in the current month but not in the following month(s). It appears that it only looks at the DateVal field and not concerned with the DateVal2 field. Do you have an update to this so when i span dates (eg. June 28 to July 2) when I go to the July calendar I will see this entry in the July Summary option?
strSQL = "SELECT * FROM calendar WHERE DateVal >= " & CDbl(dMonthStartDate) & " AND DateVal <= " & CDbl(dMonthEndDate) & " ORDER BY DateVal"
Nick Jacobini
|
|
|
|
|
The Situation:
When adding a new product, the client must be able to select which package(s) he wants it to belong to. I want to use 2 listboxes(if possible) to do this. I use one listbox to list the available options(list1) and the other to display the options the user has just selected(list2).
The problem I am experiencing though is that it seems I can only add as many packages to list2 as list2 has "<option></option>" coded into it beforehand...
The HTML code:
<tr>
<td>
<select name=list2 size=8>
<option></option> <%'*** this will allow me to add only 1 option%>
</select>
</td>
<td>
<input type=button name=AddToPackage value="<<" onclick="addSelection()">
<input type=button name=RemFromPackage value=">>" onclick="remSelection()">
</td>
<td>
<select name=list1 size=8 multiple>
<%
'***here i load entries using a recorset
%>
</select>
</td>
</tr>
</table>
</td>
</tr>
The JavaScript I am using:
function addSelection()
{
frm = document.frmAddProduct;
for(var x = 0; x < frm.list1.length; x++)
{
if(frm.list1[x].selected)
{
frm.list2[x].text = frm.list1[x].value;
}
}
}
Any help or comments on this will be GREATLY appreciated. Are there alternative ways to doing this? Is it even possible? How about using VBScript instead of JavaScript?
|
|
|
|
|
You're limited to the length of options to the SELECT you're adding to. To increase the length use the add() method of the options collection:
function addSelection()
{
frm = document.frmAddProduct;
for(var x = 0; x < frm.list1.length; x++)
{
if(frm.list1[x].selected)
{
var newOption = document.createElement("option");
frm.list2.options.add(newOption);
newOption.text = frm.list1[x].value;
}
}
}
|
|
|
|
|
I have encountered a problem in which IFRAMES would solve nicely, however it's to important to try and keep cross browser friendly...I really have littel experience with LAYER tag and I dunno if NS6+ even support still...???
Anyways...Whats your opinion on using FRAMES which seem to be more cross browser friendly...?
Only they are so messy...but I have the need to only refresh part of the screen/window...and getElementById() is NOT and option...
Any ideas...?
Thanx!
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
Why is getElementById() not an option? Even if its dynamically created you can still assign it an id and store it in an array.
Of course there are other options, if its in response to an event that occurs inside the IFRAME you know what element generated the event. Also if you know its position relative to another known element you could traverse the DOM to get to it:
var anonIFrame = document.getElementById("parentElementWithKnownId").childElements[3].childElements[0];
|
|
|
|
|
Hey Chris
getElementById() is not an option because of browser compatibility...I would like the code to work under as many browsers as possible...
I dunno...I might go with that approach yet, i'll have to see
Cheers!
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
Is it possible to have a non .net-enabled web server or application connect to a web service and execute a function?
Life, just a little more please!
|
|
|
|
|
yes -- If that other web server has either a web service api, or you are willing to hack up an adapter for the return XML.
For example, you can get/post your params to the web service (with get you simply stack the params on the URL as query string values), and in response get the XML document. You can then parse the XML for the data you need.
|
|
|
|
|
I wish to provide clients to my web sight, password protected file and form upload to my server space.
Specific detail: Car Dealership: updating inventory.
I want to take info from a form for an auto along with an image file. My ultimate goal is to automatically process this data into a database and spit out the pages I need for my web site.
If I can get just the form and image sent to my server so that I can manually process the data, I would be ecstatic.
But the developer in me wants to do the full-blown package.
I need to know what is the best language to use, JavaScript, ASP, Perl or what...
I am an avid C++ and dBase developer. I am currently learning SQL. And yes, even though I have been developing in C++ for over 8 years, I have yet to develop for in an SQL environment.
Thanks,
Rob Couch
|
|
|
|
|
|
I am looking for a way of removing instances of a web address/URL from an amount of text, where the URL is in the format
<a href="http://www.something.com">Site Description</a>
and replacing/reformatting the text (for a text only newsletter) into a form like
Site Description - www.something.com
I am running WSH 5.0 - so some advanced regular expression features are out....any other ideas on how this could be achieved??
|
|
|
|
|
The RegExp object was added to VBScript in version 5, and to JavaScript in version 3.
Just of the top of my head, you need something like:
<a\s[^>]*?href=['"]([^'">]*?)['"][^>]*?>(.*?)</a>
to be replaced with:
$2 [$1]
(with IgnoreCase = True, Global=True, MultiLine = False)
|
|
|
|
|
i have this code:-
sub goodMSG(msg)
Dim badwords
badwords = Array("arse")
For i=0 to badwords.length
wen run on my IIS server on my ocmp, it gives the error:-
Error Type:
Microsoft VBScript runtime (0x800A01A8)
Object required: 'badwords'
having only had 3hrs experience of VB, i ave not got a clue as to why this is happening.
Email: theeclypse@hotmail.com URL: http://www.onyeyiri.co.uk "What goes up must come down. Ask any system administrator"
|
|
|
|